Allen-Bradley FLEX I/O 1794-IP4 User Manual

Allen-Bradley FLEX I/O 1794-IP4 User Manual

4 input pulse counter module
Table of Contents
Allen-Bradley
FLEX I/O 4 Input
Pulse Counter
Module
(Cat. No. 1794-IP4)
Allen-Bradley HMIs
User
Manual
Table of Contents
loading

Summary of Contents for Allen-Bradley FLEX I/O 1794-IP4

  • Page 1 Allen-Bradley User FLEX I/O 4 Input Pulse Counter Manual Module (Cat. No. 1794-IP4) Allen-Bradley HMIs...
  • Page 2 DeviceNet, DeviceNetManager, and RediSTATION are trademarks of Allen-Bradley Company, Inc. PLC, PLC–2, PLC–3, and PLC–5 are registered trademarks of Allen-Bradley Company, Inc. Windows is a trademark of Microsoft. Microsoft is a registered trademark of Microsoft IBM is a registered trademark of International Business Machines, Incorporated.
  • Page 3 Allen-Bradley programmable controllers. The manual helps you install, program and troubleshoot your module. Audience You must be able to program and operate an Allen-Bradley programmable controller to make efficient use of your FLEX I/O module. In particular, you must know how to program block transfers.
  • Page 4 P–2 Using This Manual Conventions We use these conventions in this manual: In this manual, we show: Like this: that there is more information about a topic in another chapter in this manual that there is more information about the topic in another manual More For Additional Information...
  • Page 5 1794-5.12 1794-NM1 Mounting Kit 1794-2.13 1794-5.35 1794-PS1 24V dc Power Supply Summary This preface gave you information on how to use this manual efficiently. The next chapter introduces you to the frequency module. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 6 P–4 Using This Manual Publication 1794-6.5.16 – September 1998...
  • Page 7: Table Of Contents

    ........3–3 Allen-Bradley HMIs Chapter Summary ........
  • Page 8 Table of Contents Writing Configuration to and Chapter 4 Reading Status from Your What This Chapter Contains ......4–1 Module with a Remote I/O Configuring Your Pulse Counter Module...
  • Page 9 ........A–1 Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 10: Publication 1794-6.5.16 – September

    Table of Contents Publication 1794-6.5.16 – September 1998...
  • Page 11: Overview Of The Pulse

    (1, 2, 4, 8, 16, 32, 64 and 128 periods). The Pulse Counter has 4 identical pulse transmitter interfaces (12–24V dc), each with 2 signal inputs (N and D). Each input has + and – connections to the pulse transmitter. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 12 1–2 Overview of the Pulse Counter Module Control Word Optocouplers 16–bit Counter – 16–bit Counter – 16–bit Counter – 16–bit Counter – 16–bit Counter – 16–bit Counter – 16–bit Counter – 16–bit Counter – 12–24V dc Gavanically Isolated Internal +5V dc dc/dc Converter Configuration is selected by setting A (below) in the appropriate position (variable SelectMeasureType).
  • Page 13: What The Pulse Counter Module Does

    Your ladder program performs BTWs to the module when you power it up, and any time you wish to reconfigure the module. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 14: Typical Applications

    1–4 Overview of the Pulse Counter Module Typical Applications You can use the 1794–IP4 module in the power management, automotive, food and beverage, and oil and gas industries for various flow and/or turbine metering applications. Some sample applications include: quantity counting speed calulations brewery flow monitoring petrochemical flow and custody transfer...
  • Page 15: Start Period Time Measurement

    Use 1mHz clock frequency at 16–bit frequencies to avoid overflow in the counter at frequencies over 15Hz. ClockFrequency Function Clock frequency = 10MHz Clock frequency = 1MHz Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 16: Select Number Of Periods

    1–6 Overview of the Pulse Counter Module Select Number of Periods The number of periods to be measured can be selected using the variable NumberofPeriods. NumberofPeriods Function Measure during 1 period Measure during 2 period Measure during 4 period Measure during 8 period Measure during 16 period Measure during 32 period Measure during 64 period...
  • Page 17: How To Install Your Pulse

    EN 50081-2EMC – Generic Emission Standard, Part 2 – Industrial Environment EN 50082-2EMC – Generic Immunity Standard, Part 2 – Industrial Environment Allen-Bradley HMIs This product is intended for use in an industrial environment. Publication 1794-6.5.16 – September 1998...
  • Page 18: Low Voltage Directive

    Programmable Controllers, Part 2 – Equipment Requirements and Tests. For specific information required by EN 61131-2, see the appropriate sections in this publication, as well as the following Allen-Bradley publications: Industrial Automation Wiring and Grounding Guidelines For Noise Immunity, publication 1770-4.1 Guidelines for Handling Lithium Batteries, publication AG-5.4...
  • Page 19: Wiring The Terminal Base Units (1794-Tb3G Shown)

    24V dc Note: All modules powered by the same power supply must be pulse, frequency or TC/RTD/mV modules for this configuration. Total current draw through any base unit must not be greater than 10A Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 20: Installing The Module

    2–4 How to Install Your Pulse Counter Module Installing the Module Installation of the Pulse Counter module consists of: mounting the terminal base unit installing the module into the terminal base unit installing the connecting wiring to the terminal base unit If you are installing your module into a terminal base unit that is already installed, proceed to “Mounting the Pulse Counter Module on the Terminal Base”...
  • Page 21 DIN rail and release the locking tab to lock the 30077–M base in place. Allen-Bradley HMIs Gently push the flexbus connector into the side of the adapter to complete the backplane connection. Publication 1794-6.5.16 – September 1998...
  • Page 22: Panel/Wall Mounting

    2–6 How to Install Your Pulse Counter Module 5. Repeat the above steps to install the next terminal base. Panel/Wall Mounting Installation on a wall or panel consists of: laying out the drilling points on the wall or panel drilling the pilot holes for the mounting screws mounting the adapter mounting plate installing the terminal base units and securing them to the wall or panel...
  • Page 23: Mounting The Pulse Counter Module On The Terminal Base Unit

    The Pulse Counter module mounts on a 1794-TB3, TB3S, -TBN or -TBNF terminal base unit. 1. Rotate the keyswitch (1) on the terminal base unit (2) clockwise to position 1 as required for the Pulse Counter module. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 24 2–8 How to Install Your Pulse Counter Module 2. Make certain the flexbus connector (3) is pushed all the way to the left to connect with the neighboring terminal base/adapter. You cannot install the module unless the connector is fully extended.
  • Page 25: Connecting Wiring For Your Pulse Counter Module

    2. Connect the associated input common to the corresponding terminal on the 16-33 row (B) for each input as indicated in the table below. Allen-Bradley HMIs 3. Connect +24V dc to terminal 34 on the 34-51 row (C). Publication 1794-6.5.16 – September 1998...
  • Page 26 2–10 How to Install Your Pulse Counter Module 4. Connect dc return to terminal 16 on the 16–33 row (B). ATTENTION: To reduce susceptibility to noise, power frequency modules and digital modules from separate power supplies. Do not exceed a length of 33 ft (10m) for dc power cabling.
  • Page 27: Wiring To A 1794-Tbn Or -Tbnf Terminal Base Unit

    Even Numbered Terminals 0 thru 14 16, 0, 2, 4, 6, 8, 10, 12, 14, 33 34, 1, 3, 5, 7, 9, 11, 13, 15, 51 Odd Numbered Terminals 1 thru 15 1794-TBN, -TBNF Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 28: Wiring Connections For The 1794-Ip4 Pulse Counter Module

    2–12 How to Install Your Pulse Counter Module Wiring connections for the 1794–IP4 Pulse Counter Module Terminal Base Units Terminal Base Units 1794–TB3, –TB3S 1794–TBN, –TBNF Channel Channel Signal 0V dc 12/24V dc Signal Input 16–bit Period Time Measurement and 16-bit Accumulating Counter N–...
  • Page 29: Example Of 16-Bit Period Time Measurement And 16-Bit Accumulating Pulse Counter Wiring (4 Channels)

    12/24V dc Example of 32–bit Period Time Measurement Wiring (4 channels) – Channel 3 Channel 2 – – Channel 1 – Channel 0 Signal Inputs External Power Supply 0V dc 12/24V dc 12/24V dc Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 30: Module Indicators

    2–14 How to Install Your Pulse Counter Module Module Indicators The Pulse Counter module has one status indicator (PWR) that is on when power is applied to the module, an input on indicator for each channel, and an input status indicator for each input (8 in all). 4 CH PULSE COUNTER MODULE A = Power/status indicator –...
  • Page 31: Programming Your Pulse

    The transferred words contain module status, channel status and input data from the module. Your program should monitor status bits, block transfer read and block transfer write activity. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 32: Plc-2 Family Processor

    3–2 Programming Your Pulse Counter Module PLC-2 Family Processor The 1794 Pulse Counter module is not recommended for use with PLC-2 family programmable controllers due to the number of digits needed for high resolution. Important: The Pulse Counter module functions with reduced performance in PLC-2 systems.
  • Page 33: Slc-5 Programming

    1747-SN scanner must be in place before executing the following programs. Chapter 4 contains information on module configuration. For more information on using the 1747-SN scanner module and block transfer programming, refer to publication 1747-6.6, “Remote More I/O Scanner User Manual.” Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 34 3–4 Programming Your Pulse Counter Module Figure 3.1 SLC Programming for the 1794-IP4 Pulse Counter Module The 1794-IP4 module is located in remote I/O rack 1, group 0, slot 0. The 1747-SN scanner module is located in slot 1 of the SLC chassis. This program enables 1 BTW to configure the 1794-IP4 module at power-up.
  • Page 35 BTW DONE BIT B3:15 B3:10 0007 When a BTW successfully completes and the done bit is detected, all BTW flags are reset. BTW ENABLE BIT B3:110 CHECK BTW STATUS B3:15 To next page. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 36 3–6 Programming Your Pulse Counter Module Program Action BTW ERROR BIT B3:10 MOVE 0008 #M1:1.203 When a BTW occurs, the error code is moved SOURCE to N7:11. #N7:11 DEST 0< BTW PENDING B3:15 BTW ENABLE BIT B3:110 CHECK BTW STATUS B3:15 BTR ENABLE BIT BTR DONE BIT...
  • Page 37 This BTW control word is moved to the M0 file BTW DONE BIT M0:1.200 for the scanner module while the BTW is in DEST ?< B3:10 progress until the enable, done and error bits are turned off. BTW ERROR BIT B3:10 0013 Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 38: Chapter Summary

    3–8 Programming Your Pulse Counter Module Chapter Summary In this chapter, you learned how to program your 1794-IP4 Pulse Counter module using block transfer instructions and ladder logic. Now, you can configure your module. Configure the IP4 Module Publication 1794-6.5.16 – September 1998...
  • Page 39: What This Chapter Contains

    Addendum to configure this module. The IOCONFIG Addendum utility greatly simplifies configuration. If the IOCONFIG Addendum is not available, you must enter data directly into the data table. Use this chapter as a reference when performing this task. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 40: Reading Data From Your Module

    4–2 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter During normal operation, the processor transfers from 1 to 4 words to the module when you program a BTW instruction to the module’s address. Reading Data From Your Read programming moves status and data from the Pulse Counter Module module to the processor’s data table in one I/O scan.
  • Page 41 Counter 30 – 16–bit period measurement or low word of 32-bit period measurement for channel 3. (00–17) Bits 00–15 Counter 31 – pulse counter or high word of 32-bit period measurement for channel 3 (00–17) Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 42: Block Transfer Write Word Assignments For The Pulse Counter Module

    4–4 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter Read Definition Word Bit 00 Positive edge – Channel 0 – measurement ready Word 8 Bit 01 Positive edge – Channel 1 – measurement ready Bit 02 Positive edge –...
  • Page 43: Chapter Summary

    Start new measurement bit – Channel 3 – when set, start new measurement on positive edge Bit 04–15 Not used (04–17) Write Bit 04–15 Not used Words 3 (04–17) and 4 Chapter Summary In this chapter, you learned how to configure your module’s features and enter your data. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 44 4–6 Writing Configuration to and Reading Status from Your Module with a Remote I/O Adapter Publication 1794-6.5.16 – September 1998...
  • Page 45: What This Chapter Contains

    Slot 7 Input Data I/O Module I/O Module I/O Module Slot 0 Slot 1 Slot 7 Write Data Write Slot 0 Output Data Slot 1 Output Data Network WRITE Slot 7 Output Data Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 46: Adapter Input Status Word

    5–2 How Communication Takes Place and I/O Image Table Mapping with the DeviceNet Adapter Adapter Input Status Word The input status word consists of: I/O module fault bits – 1 status bit for each slot node address changed – 1 bit I/O status –...
  • Page 47: System Throughput

    Control Word 0 – Sets the measure function 0 to 3 Words Control Word 1 – Sets the clock frequency and period multiple Control Word 2 – sets the start of a new measurement Reserved Reserved Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 48: Block Transfer Read Word Assignments For The Pulse Counter Module (1794-Ip4)

    5–4 How Communication Takes Place and I/O Image Table Mapping with the DeviceNet Adapter Block Transfer Read Word Assignments for the Pulse Counter Module (1794-IP4) (Octal Bit ) Dec. Bit Word Read Counter 00 – 16–bit period measurement or low word of 32-bit period measurement for channel 0 Counter 01 –...
  • Page 49 1 = period time measurement with 1MHz internal clock selected Bits 01–03 Number of periods for measurement – Channel 0 1 period 2 periods 4 periods 8 periods 16 periods 32 periods 64 periods 128 periods Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 50 5–6 How Communication Takes Place and I/O Image Table Mapping with the DeviceNet Adapter Word Definition Write Bit 04 Clock frequency for period time measurement – Channel 1 – refer to bit 00. Wor 2 Word 2 Bits 05–07 Selection of Number of periods for measurement – Channel 1 – see bits 01–03 above (Cont.) (Cont.) Bit 08 (10)
  • Page 51: Defaults

    You can reduce the I/O data size to fewer words to increase data transfer over the backplane. For information on using DeviceNetManager software to configure your adapter, refer to the DeviceNetManager Software User Manual, More publication 1787-6.5.3. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 52 5–8 How Communication Takes Place and I/O Image Table Mapping with the DeviceNet Adapter Publication 1794-6.5.16 – September 1998...
  • Page 53: Chapter Objectives

    Words Status Status Status ControlNet Adapter Network Outputs Outputs Outputs Write Write Words Configuration Configuration Configuration Slot 0 Slot 1 Slot 7 Data is exchanged scheduled (when mapped) or unscheduled (using CIO instructions). Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 54: Scheduled Data-Transfer

    6–2 Input, Output and Configuration Files for Analog Modules when used with ControlNet Scheduled Data-Transfer Scheduled data transfer: is continuous is asynchronous to the ladder-logic program scan occurs at the actual rate displayed in the Actual Packet Interval field on the programming software ControlNet I/O mapping (monitor) screen Unscheduled Data-Transfer Unscheduled operations include:...
  • Page 55: I/O Structure

    I/O Module Fault Bits Bit: 10 through 15 Not Used I/O State Bit Created by PLC–5 controller Node Address Changed Bit The adapter input status word bit descriptions are shown in the following table. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 56: Safe State Data

    6–4 Input, Output and Configuration Files for Analog Modules when used with ControlNet Bit Description Explanation This bit is set (1) when an error is detected in slot position 0. This bit is set (1) when an error is detected in slot position 1. This bit is set (1) when an error is detected in slot position 2.
  • Page 57: Communication Fault Behavior

    I/O module input data sent by the adapter upon module removal is configurable. The adapter can: reset the module output data to zero (reset) leave the module output data in the last state before module removal (hold last state) Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 58 6–6 Input, Output and Configuration Files for Analog Modules when used with ControlNet Pulse Counter Module (1794-IP4) Image Table Mapping Module Image Counter 00 – 16–bit period measurement or low word of 32-bit period measurement for channel 0 Counter 01 – pulse counter for channel 0 or high word of 32-bit period measurement ControlNet Files Counter 10 –...
  • Page 59 1 = period time measurement selected Bits 03 Pulse counting and period time measurement selection for Channel 3 – 0 = pulse counting and period time measurement selected 1 = period time measurement selected Bits 04–15 Reserved (04–17) Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 60 6–8 Input, Output and Configuration Files for Analog Modules when used with ControlNet Configuration Definition Word Word 1 Bit 00 Clock frequency for period time measurement – Channel 0 – 0 = period time measurement with 10MHz internal clock selected 1 = period time measurement with 1MHz internal clock selected Bits 01–03 Number of periods for measurement –...
  • Page 61 When on, indicates the input is conrfigured for 32–bit period Yellow time measurement What’s Next To find out more about the IP4 module: See appendix A Specifications specifications on the IP4 module Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 62 7–2 Troubleshoot the Pulse Counter Module Publication 1794-6.5.16 – September 1998...
  • Page 63 Maximum 17.1 BTU/hr @ 26.4V dc Indicators (field side driven, 1 green/red power/status indicator logic side indication) 8 yellow status indicators – logic side 8 yellow measurement function indicators Keyswitch Position Specifications continued on the next page. Allen-Bradley HMIs Publication 1794-6.5.16 – September 1998...
  • Page 64 A–2 Specifications Specifications – 1794-IP4 4 Channel Pulse Counter Module General Specifications Dimensions Inches 1.8H x 3.7W x 2.1D (Millimeters) (45.7 x 94.0 x 53.3) Environmental Conditions Operational Temperature 0 to 55 C (32 to 131 F) Note: Do not connect maximum input voltage simultaneously to all inputs if the module ambient temperature is expected to exceed 40...
  • Page 65 ControlNet I/O unscheduled non-discrete I/O data transfer, 6–2 unscheduled operations ladder-rung messages, 6–2 keyswitch positions, 2–7 messaging from programming devices, 6–2 peer-to-peer messaging, 6–2 Allen-Bradley HMIs ControlNet I/O Transfer (CIO) instructions, ladder-rung messaging, 6–2 6–2 Publication 1794-6.5.16 – September 1998...
  • Page 66 Index I–2 mapping terminal bases, compatible, 2–9 1794-IJ2, 4–2, 5–3, 6–6 troubleshooting, 7–1 example, 6–2 explanation, 6–2 measurement check if measurement is complete, 1–5 unscheduled non-discrete I/O data transfer, select start period, 1–5 6–2 type of, 1–4 Message instructions, 6–2 module fault, 5–2 module installation, 2–7 wall/panel mounting, 2–6...
  • Page 67 Sequence What is not in the right order? Other Comments Use back for more comments. Your Name Location/Phone Return to: Marketing Communications, Allen-Bradley Co., 1 Allen-Bradley Drive, Mayfield Hts., OH 44124-6118 Phone: (216)646-3176 FAX: (216)646-4320 Allen-Bradley HMIs Publication ICCG-5.21-May 1990...
  • Page 68 Other Comments PLEASE FOLD HERE NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST-CLASS MAIL PERMIT NO. 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE TECHNICAL COMMUNICATION 1 ALLEN BRADLEY DR MAYFIELD HEIGHTS OH 44124-9705...
  • Page 69 Support Services At Allen-Bradley, customer service means experienced representatives at Customer Support Centers in key cities throughout the world for sales service and support. Our value-added services include: Technical Support SupportPlus programs telephone support and 24-hour emergency hotline software and documentation updates...
  • Page 70 Philippines Poland Portugal Puerto Rico Qatar Romania Russia–CIS Saudi Arabia Singapore Slovakia Slovenia South Africa, Republic Spain Sweden Switzerland Taiwan Thailand Turkey United Arab Emirates United Kingdom United States Uruguay Venezuela Yugoslavia Allen-Bradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444 Publication 1794-6.5.16 – September 1998 PN 955131–52...

Table of Contents