Page 3
No patent liability is assumed by Spectrum Controls with respect to the use of any of the information, products, circuits, programming, or services referenced herein.
Chapter 1 Overview And Specifications The 1746sc-CTR4 and the 1746sc-CTR8 are 4 and 8 channel Counter/ Flow Meter modules. The modules are suitable for general purpose counter and flow meter applications that require a large number of input channels and high accuracy. The module supports both AC and DC input signal types.
™ SLC 500 50 KHz Counter / Flowmeter Input Module Increased Accuracy and Reliability ± ± The counter module offers 1 count accuracy and 1% or better frequency measurement accuracy. Programmable functions allow the user to define counter ranges and flags to accommodate process-specific requirements.
Page 9
Chapter 1: Overview And Specifications Vmax Input impedance 25K ohms Input Filter Digital Filter 50kHz (Default) Digital Filter 30kHz Analog Filter 15kHz Min Pulse Time DC mode External Enable/Disable Enable and Disable setup time = 20us Channel Update Time Counter Output Scaling OFF 5.6 (msec per channel) Rate Output...
Page 10
™ SLC 500 50 KHz Counter / Flowmeter Input Module Data Format Counter mode Max Binary Value: -8,388,608 to +8,388,607 Rate mode Max Binary Value: -32,768 to +32,767 Isolation Channel to Rack 1000 VDC Continuous Optical & magnetic Channel to Channel...
Chapter 2 Installing And Wiring Your Module Read this chapter to install and wire your module. This chapter covers: • avoiding electrostatic damage • determining power requirements • selecting a rack slot • inserting your module into the rack • wiring your module Important - For UL and CUL compliance, power and input/output (I/O) wiring must be in accordance with Class I, Division 2, wiring methods [Article 501-4 (b) of the National Electrical Code , NFPA 70] and in...
™ ControlLogix Counter Module The following documents contain information that may help you as you install and wire your module: • National Electrical Code, published by the National Fire Protection Association of Boston, MA • IEEE Standard 518-1977, Guide for the Installation of Electrical Equipment to Minimize Electrical Noise Inputs to Controllers from External Sources •...
Chapter 2: Installing And Wiring Your Module Determining Power Requirements The backplane of the system can provide both 5 Vdc and 24 Vdc power. The following table shows the maximum current consumed by your module when using these power sources: Table 2.1.
POSSIBLE EQUIPMENT OPERATION Before installing or removing your module, always disconnect power from the SLC 500 system and from any other source to the module (in other words, don’t “hot swap” your module), and disconnect any devices wired to the module.
Before wiring the terminal block, take some time to plan your system: • Ensure that the SLC 500 system is installed in a NEMA-rated enclosure and that the SLC 500 system is properly grounded. • Route the field wiring away from any other wiring and as far as possible from sources of electrical noise, such as motors, transformers, contactors, and ac devices.
Page 16
™ ControlLogix Counter Module foil shield to their ground points. Connect only one end of the shield to the module. 2. At each end of the cable, strip some casing to expose the individual wires. 3. Trim the exposed signal wires to 2 in. lengths. Strip about 3/16 in. (about 5 mm) of insulation away to expose the end of each wire.
Chapter 2: Installing And Wiring Your Module To guard against electrostatic damage and improve chassis grounding, connect one of the shield pins on the terminal block of your module to the chassis itself. 7. Repeat steps 1 through 6 for each channel on your module. A system may malfunction due to a change in its operating environment.
™ ControlLogix Counter Module Labeling And Re- Installing The Terminal Block (if it is removed) The supplied label is mounted on the module door. This label helps ensure that the terminal block is wired correctly for the module. Once you have wired your module and properly labeled install the terminal block on your module: 1.
Chapter 3 Things To Consider Before Using Your Module This chapter explains how the module and the SLC processor communicate through the processor’s I/O image tables. It also describes the module’s input filter characteristics. Topics discussed include: • module ID code •...
™ SLC 500 50 KHz Counter / Flowmeter Input Module Module Addressing The CTR-8 module uses 32 input and 32 output registers, and the CTR-4 module uses 16 input and 16 output registers. Both modules use Class III mode operation and cannot be used with Class I operation. The following memory map shows you how the SLC processor’s output and...
Page 21
Chapter 3: Things To Consider Before Using Your Module Output Image - Configuration Words Thirty-two (CTR-8) or sixteen (CTR-4) words of the SLC processor’s output image table are reserved for the module. For the CTR8, output image words 0-31 are used to configure input channels 0-7. For the CTR4, output image words 0-15 are used to configure input channels 0-4.
™ SLC 500 50 KHz Counter / Flowmeter Input Module Operating Modes The module’s operating mode determines the number of available counters and which inputs are attached to them. There are two operating modes and their input assignments are summarized in the table below.
Page 23
Chapter 3: Things To Consider Before Using Your Module Note: The X1 Quadrature mode provides additional Anti-Jitter circuitry. This distinguishes between a valid quadrature sequence and an invalid sequence due to electrical noise or jitter. Jitter can occur if a quadrature encoder stops rotating right at an input sensor trip point.
™ SLC 500 50 KHz Counter / Flowmeter Input Module Gate Modes There are two methods to gate (start/stop) your counter, hardware and software. The counter’s gate/preset mode determines what, if any, gating is applied to the counter and what, if any, conditions will preset the counter to the preset value.
Page 25
Chapter 3: Things To Consider Before Using Your Module Input Response When a counter slot is disabled, the counter module continues to update its input image table. However, the SLC processor does not read input from a module that is disabled. Therefore, when the processor disables the counter module slot, the module inputs appearing in the processor table is not read.
Chapter 4 Channel Configuration, Data, and Status Read this chapter to: • configure each input channel • set user-defined scale limits • monitor each input channel • check each output channel’s configuration and status Configuring Each Input Channel The Data Register format uses Class 3 operation. Class 3 mode allows the module to use 32 input words and 32 output words of data, as listed below.
Page 28
™ SLC 500 50 KHz Counter / Flowmeter Module Figure 4.1 - Configuration Word Channel 0 Configuration Word Channel 0 Preset / M Factor Channel 0 Limit / K Factor Channel 0 Rate Limit / R Factor Channel 1 Configuration Word...
Page 29
Chapter 4: Channel Configuration, Data, and Status Figure 4.2 - Configuration Word Settings Channel 0 Configuration Word 0 = Start 00 = UniDirect 1 = Stop 01 = BiDirect 0=Standard 0 = Off 0 =Normal 10 = Quad x1 1=Extended 1 = Program 1 = On 11 = Quad x4...
Page 30
™ SLC 500 50 KHz Counter / Flowmeter Module Reset Flags: (Configuration Bit 2) The reset flags command is performed when this bit is set. Reset flags affects the counter zero, counter limit and counter maximum flags (Status word bits 8, 6, and 5 respectively.) These particular flags remain high, regardless of the counter behavior, until a reset is performed.
Page 31
Chapter 4: Channel Configuration, Data, and Status Rate - Instant: When this bit is reset to “0” the rate detection circuit operates in “Instant” mode. Instant measurements are fast, in that they calculate a rate based on one cycle. However the accuracy of the measurement degrades as the input clock rate goes up to 50KHz, and any jitter within one cycle will be measured.
Page 32
™ SLC 500 50 KHz Counter / Flowmeter Module Count Mode: (Configuration Bits 6-7) The Count Mode bit selects 1 of 4 types of counter operation. The Unidirectional counter mode is configured as an Up or Down counter. The module will support 8 unidirectional input channels. Every clock pulse increments the counter.
Page 33
Chapter 4: Channel Configuration, Data, and Status Stop on Limit: (Configuration Bit 9) This bit, when set, will hold the counter output at its limit value. When the counter counts to the limit value it will either rollover to zero, or hold its output at the limit value, until the Limit Flag is cleared.
™ SLC 500 50 KHz Counter / Flowmeter Module Counter Roll Under: (Configuration Bit 14) When the counter rolls under zero it can continue to count down into negative numbers, or it can start at the user defined preset value. When this bit is set to 0 the counter will continue to count down through zero into negative numbers.
Page 35
Chapter 4: Channel Configuration, Data, and Status Note: In extended count mode (counts up to +/- 8M) the preset will be multiplied by 256 internally such that a user preset of 1000 will result in a preset of 25600. This allows the preset value to cover the whole +/- 8 million count range.
Page 36
™ SLC 500 50 KHz Counter / Flowmeter Module Rate Limit / R Factor: The rate limit function is used in the Normal operation mode. The Rate Limit represents a target maximum value for rate. When the rate value is greater then or equal to the rate limit value the Rate Limit flag bit will be set.
Chapter 4: Channel Configuration, Data, and Status Input Registers - Channel Data The channel data consists of 4 words, the lower counter data value, the upper counter data value, the rate data value and the channel status data. Table 4.4 - Data Word Addresses CTR8 CTR4 Scale/Limit Value...
Page 38
™ SLC 500 50 KHz Counter / Flowmeter Module Counter Data, Low word: This input data register contains the lower word of the counter accumulator. This register is a signed16 bit word in binary 2’s complement format and will allow count values up to ±32K. This word is used in conjunction with the counter’s upper output word when in the extended...
Chapter 4: Channel Configuration, Data, and Status Check each input channel’s configuration and status Channel Status Flags Figure 4.13 Channel Status Flags Address I:e.3 Channel 0 Status Word I:e.7 Channel 1 Status Word I:e.11 Channel 2 Status Word I:e.15 Channel 3 Status Word I:e.19 Channel 4 Status Word I:e.23...
Page 40
™ SLC 500 50 KHz Counter / Flowmeter Module Counter Start/Stop Echo: (Status Bit 0) This bit echo’s the setting of the Counter Enable bit set in the channels control register. The counter enable bit allows the counter to continue to count up or down from its present value.
Page 41
Chapter 4: Channel Configuration, Data, and Status Counter Zero Flag: (Status Bit 8) The flag is set when the counter counts down through zero. Refer to the configuration word section of this chapter for a description of this flag’s operation. Max Rate Flag: (Configuration Bit 9) The max rate flag is set when the input rate exceeds its maximum range of 32,767kHz.
Chapter 5 Programming / Application Examples Learning to configure your counter to meet your application requirements will require knowledge of counter configuration, ladder logic programming and data management. Read this chapter to familiarize yourself with how to use the advanced features of your module for: Sample Counter Configuration Simple Linear...
™ SLC 500 50 KHz Counter / Flowmeter Module Note: If we change Configuration Bit 9 to 1 the counter will reach the limit and then hold its value until the Limit Flag is cleared. Then it will roll to 0, and continue counting to 10,000. Each time the limit is reached the flag must be reset before proceeding.
Chapter 5: Ladder Program Examples Sample Configuration Simple Ring Counter w/ Flags (20k Limit): This configuration for the counter module will allow the user to count from a minimum value of 0 to a limit value of 20,000 counts Each time a revolution has occurred the counter limit flag will be set.
™ SLC 500 50 KHz Counter / Flowmeter Module The above figure illustrates counting in a clockwise direction. Using Preset Values with Extended Mode The Counter Preset and Counter Limit functions are affected by the Count Size Configuration Bit 11. The default counter range is ±32K but may be extended to ±8M.
Chapter 5: Ladder Program Examples Rate Limit Flag = 10,000Hz * 2 = 20,000Hz Application: Meter Proving The 1746sc-CTR4/8 module provides a feature that allows the user to perform meter proving functions. A typical meter proving application would include two detector sensors that are located a fixed distance from each other within a section of pipe used specifically for meter proving.
™ SLC 500 50 KHz Counter / Flowmeter Module The external enable line accommodates 5 Vdc, 12 Vdc and 24 Vdc signals and is pulled low internally. The counter input accommodates 5 Vdc, 12 Vdc, 24 Vdc and up to 75 Vac inputs.
Page 49
Chapter 5: Ladder Program Examples In order to clear the factored data 0 must be loaded into the Preset / K Factor, Limit / M Factor and Limit / R Factor registers. After entering 0 into these registers bit 15 of the module Configuration register must be toggled from 0 to 1 and then back to 0.
• interpreting the LED indicators • interpreting I/O error codes • troubleshooting Before testing your module, test your SLC 500 system using the procedures described in your system’s Installation & Operation Manual. Inspecting Your Module You can prevent many potential problems by simply inspecting your analog module: 1.
LED to illuminate. The most probable reasons for the LED not illuminating are: • The SLC 500 system is not receiving power from its power supply. • The rack slot where your module is located is defective.
Chapter 6: Testing Your Module Interpreting The LED Indicators Your module has nine LEDs: eight channel status LEDs (numbered 0–7 for channels 0–7, respectively) and one module status LED. Figure 6.1. LED block CHANNEL CHANNEL STATUS STATUS MODULE MODULE CTR4 CTR8 Operation The module has 9 (5-CTR4) LED’s that indicate the following…...
™ SLC 500 50 KHz Counter / Flowmeter Module Codes I/O error codes appear in word S:6 of the SLC processor status file. The first two digits of the error code identify the slot (in hexadecimal) with the error. The last two digits identify the I/O error code (in hexadecimal).
Is problem corrected? Non-fatal channel error, such Is problem as an invalid configuration corrected? word. Check the configuration Bit 14 word. Correct and Retry. set (1) Contact you local distributor or Contact you local Spectrum distributor or Controls. Spectrum Controls.
Page 56
™ SLC 500 50 KHz Counter / Flowmeter Module ...continued from previous page. Module Status LED Both Count and Counter Mode is Frequency Mode Frequency not working. is not working. Modes Not Working Check K+M Reset K+M Fault Check F Scaling...
The printed circuit boards of your module must be protected from dirt, oil, moisture, and other airborne contaminants. To protect these boards, install the SLC 500 system in an enclosure suitable for its operating environment. Keep the interior of the enclosure clean, and whenever possible, keep the enclosure door closed.
Page 58
50 KHz Counter / Flowmeter Input Module Standing Clear Of Machinery – When troubleshooting a problem with any SLC 500 system, have all personnel remain clear of machinery. The problem may be intermittent, and the machine may move unexpectedly. Have someone ready to operate an emergency stop switch.
Appendix A Floating Point Rate Mode Read this appendix to: • configure rate for floating point mode • read input words to get data • use ladder logic to create floating point value Overview The floating point rate mode allows the user to monitor rate to a higher degree of accuracy.
Page 60
™ SLC 500 50 KHz Counter / Flowmeter Module Input Registers - Channel Data The channel data consists of 4 words, the lower counter data value, the rate data high value, the rate data low value and the channel status data.
Page 61
Appendix A: Floating Point Rate Mode Setting the Rate Limit / R Factor: The R Factor function is used to activate the floating point mode. Setting the value to -1 activates this mode. Use Bit 15 in your channel configuration word to save the R factor in the modules non-volatile memory.
Page 62
™ SLC 500 50 KHz Counter / Flowmeter Module Module status: Status remains the same as other modes. Information may be found in Chapter 4. Ladder Logic In order to create the floating point value it necessary to join the high and low rate data words.
Page 65
ESD packaging (such as static-shielding / metallized bag or black conductive container). Spectrum Controls reserves the right to void the warranty on any unit that is improperly packaged for shipment. For further information or assistance, please contact your local distributor...