4 CH Counter Input Module (4634)
4 CH Counter Input Module (4634)
4 CH Counter Input Module (4634)
Document No.:ED-2002-022
Version: 1.0
MESSUNG SYSTEMS
EL-2, J- Block MIDC Bhosari,
Pune – 411026.(INDIA)
Revision
INDEX
INDEX OF FIGURES
FIGURE 1 :FRONT VIEW OF 4-CHANNEL COUNTER INPUT MODULE ................................................. 6
FIGURE 2 : BLOCK DIAGRAM ...................................................................................................... 10
FIGURE 3 :PULSE CATCH INPUT ................................................................................................. 11
FIGURE 4 :COUNTER MODE ....................................................................................................... 12
FIGURE 5 :ENCODER MODE ....................................................................................................... 13
FIGURE 6 : COUNTER ................................................................................................................ 14
FIGURE 7 :COUNTING RANGE..................................................................................................... 14
FIGURE 8 : CONNECTION DIAGRAM OF 4 CHANNEL COUNTER INPUT MODULE ............................. 17
FIGURE 9 : DIFFERENTIAL INPUT CONNECTIONS.......................................................................... 19
FIGURE 10 : OPEN COLLECTOR (NPN) INPUT CONNECTIONS ...................................................... 20
FIGURE 11 : OPEN COLLECTOR (PNP) INPUT CONNECTIONS ...................................................... 21
Note must be read and understood. Each of the symbols used is listed below; with a brief
description of its meaning.
Warning !
Warning !
1 Module Overview
• Module overview
• LED Indications
• General specifications
! Input frequency up to 50 KHz for counter mode operation and 25 KHz for
encoder mode operation.
Terminal
4634
COUNTER INPUT
Block Fixing
4CH
Screw
Module
Status
LED
Front
Shield
Plate
Input
Status
38 Pin
Removable
LEDs
Terminal
Block
IO
Label
Terminal
Block Fixing
Screw
The module provides LED indications on the front. Brief information about
inputs can be written on the front door. Behind front door, 38-pin removable
terminal block is provided for interfacing. The wiring details are shown on
backside of door.
The 4 channel counter input module can be configured in any slot of the
PLC. The number of such modules is limited by back panel current capacity.
The input signals are optically isolated and filtered. 4 channel counter input
module provides various configuration options. These options along-with
corresponding inputs are given in a tabular form below.
Inputs 12
Type of inputs Sink / source / differential selectable by type of connections to module
Counter Input Channels 4 maximum ( A, B, Z inputs for each channel)
Filter 10 µs
Minimum pulse width 10 µs for pulse catch type of input and reset type of input
50 KHz in Counter Mode of Operation
Maximum frequency
25 KHz in Encoder Mode of Operation
ON time minimum 10 µs for counter inputs
OFF time minimum 10 µs for counter inputs
3 mm Green LED for each input provided on digital side
Indications
3 mm Yellow LED for Error
7 mA for Sink / source input
Current
17 mA for differential input
Isolation Optical (1.5KV from internal bus)
Back plane current 210 mA
IO points consumed 12 Input bits and 8 output bits
Terminal connection Removable 38 pin Terminal block
Ordering code 4634
2 Module Operation
This chapter describes the basic operation of the module. This chapter
explains operational details of
! Normal Input
! Pulse Catch Input
! Counter Mode
! Encoder Mode
B Input 5
Normal Input 1
B Input 7
Interface
Circuit
Normal Input 2
B Input 9
Normal Input 3
B Input 11
The module provides first four inputs four inputs 0, 1, 2 and 3 as configurable
pulse catch inputs individually. These inputs can detect pulses having
minimum ON time 10 µs. The status of these inputs is available in input
image. The following figure describes operational details of Pulse Catch
input.
PLC Scan PLC Scan PLC Scan PLC Scan PLC Scan PLC Scan
Input Image
Status
10 µs
The pulse catch input latches the pulse till it is read in subsequent input scan.
After reading, the pulse catch control logic is again set to catch next pulse.
As can be seen, if additional pulses occur after latching of the first pulse and
reading of the same, then these pulses are not recognized. Thus the time
between two consecutive pulses should be more than the PLC scan time.
Count
Count
The module provides four hardware counters with configurable reset input.
The range of counter is -2048 to 2047. Counters can be configured for
required mode of operation.The configuration is written to module by
executing WRITE_W instruction. The hardware counter value and reset input
status can be read by executing READ_W instruction. The reset input clears
hardware counter. The Z input, if not configured as reset input, can be used
as normal input or pulse catch input. The figures below show the block
diagram and counting range.
A
WRITE Mode
Configuration Instruction Selection B
Circuit Z
READ
Instruction Hardware
Counter
Figure 6 : Counter
Up Direction
Down Direction
-2148 0 2047
When reset input is TRUE, hardware counter is cleared and reset status is
latched. When ever reset status is read, it is stored in user defined register
and after that latch is cleared. This provision is useful as external reset input
when TRUE, clears the counter asynchronous to PLC scan and counter can
count further pulses if reset input is FALSE again. In such a case, the status
of external reset input is available till subsequent READ_W execution. If
reset input status is detected as TRUE, user should transfer hardware
counter value to user defined register instead of adding to previous count.
• All power circuit wiring e.g. connected to Power Supply Module, power
contactors, etc i.e. high voltage wiring should be kept separate and apart
from high frequency counter input signals.
• Digital Input wiring and Digital Output wiring (especially, relay output and
AC output) should be separately bundled and kept as apart as possible
from high frequency counter input signals.
Depending upon the type of modules used in PLC, separate ducts should be
provided for
The figure below shows the input stage along with connection of differential
input.
CHn AV
3.9KΩ Opto
100Ω Isolation
CHn
1.5KΩ
100Ω
CHn A-
The figure below shows the input stage of hardware along with connection of
open collector (NPN) type of input.
CHn AV
+24 V 3.9KΩ Opto
Isolatio
CHn A+ 100Ω
No
Connection
1.5KΩ
100Ω
CHn A-
The figure below shows the input stage along with connection of open
collector (PNP) type of input.
PNP type of input is connected to terminal CHn AV, to terminal CHn BV and
to terminal CHn ZV. Supply ground is connected to terminal CHn A- , to
terminal CHn B- and to terminal CHn Z-, respectively.
+24 V
CHn AV
3.9KΩ Opto
Isolation
CHn A+ 100Ω
No
Connection
1.5KΩ
100Ω
CHn A-
4.1 Configuration
7 6 5 4 3 2 1 0
Input 3 Input 2 Input 1 Input 0 Input 3 Input 2 Input 1 Input 0
Individual bit decides operation of input 0 to 3 as Individual bit decides operation of input 0 to 3 as
normal input or as special input. pulse catch input or as reset to respective
FALSE – Normal Input counter input if special input configuration is
TRUE- Special Input selected.
Here, bit 4 decides operation of input 0, FALSE – Pulse Catch Input
bit 5 decides operation of input 1, TRUE- Reset to Counter Input
bit 6 decides operation of input 2, Here, bit 0 decides operation of input 0,
bit 7 decides operation of input 3, bit 1 decides operation of input 1,
bit 2 decides operation of input 2,
bit 3 decides operation of input 3,
Input 0 can be configured as reset to counter 0.
Input 1 can be configured as reset to counter 1.
Input 2 can be configured as reset to counter 2.
Input 3 can be configured as reset to counter 3.
7 6 5 4 3 2 1 0
Counter 3 Counter 2 Counter 1 Counter 0
Two bits decide operation of counter 0 to 3 as counter or encoder.
Counter
0 0
Mode
Don’t Encoder
1
Care Mode
4.2 Status
Hardware counter value and reset input status is stored in module registers
from 4 sequentially for counter 0 to 3.
4 channel counter input module consumes 12 bits in input image and 8 bits in
output image.
The status of all the 12 inputs is stored in input image. So this consumes
input image bits as Ixx.0 to Ixx.7 and I(xx+1).0 to I(xx+1).3. The status of
counter inputs in input image is not useful in application program. Normally
Processor updates input status in each input scan. If required, it can be
updated in logic scan using IMM_IN instruction. If 'IMM_IN' instrcution is
executed in logic scan for a particular slot, it stops current logic scan,
executes input scan for defined slot and resumes logic scan again. This is
useful when ever immediate updation as per input image is needed.
Output image bits are used as user commands to module. User can issue
command to module through application program. Processor writes
commands in output image area of module in output scan. If 'IMM_OUT'
instruction is executed in logic scan for a particular slot, it stops current logic
scan, executes output scan for defined slot and resumes logic scan again.
This is useful when ever immediate updation of output image is needed. For
4 channel counter input module, it is necessary to set Qxx.0 bit ON when
configuration is wriiten to the module. Module configures the mode sof
operation when it detects bit Qxx.o as ON. The functions of output image bits
are given below
Bit
No. Command Status Description
Address
ON Module Configuration Write over.
Configuration
1 Qxx.0
Write OFF Module configuration is not written.
4.4 Programming
The data in PLC variables is transferred to 4 channel counter input module
when 'WRITE_W' instruction is executed. The data in the PLC variables can
be updated using instructions like 'MOV_W', arithmetic or any other
instructions. The data from 4 channel counter input module memory can be
transferred to PLC variables when 'READ_W' instruction is executed.
The WRITE_W instruction below shows data transfer from the CPU module's
memory to 4 channel counter module memory. The details of transfer are -
'WRITE_W' instruction gets executed when condition for enable 'EN' is ON.
'ENO' output becomes ON, when EN is ON and instruction is executed
successfully. ENO is OFF if
The 'READ_W' instruction below shows data transfer from 4 channel counter
input module memory to PLC variables. The details of transfer are -
'READ_W' instruction gets executed when condition for enable 'EN' is ON.
'ENO' output becomes ON, when EN is ON and instruction is executed
successfully. ENO is OFF if
• Parameters of instruction are invalid or not within specified range.
• 4 channel counter input module is not accessible to CPU module
The following example shows how to program counters and use count value
is application program. In this example, first two counters are configured in
counter mode and remaining two are configured in encoder mode. First two
inputs are used as noraml inputs and next two inputs are used as reset to
counter inputs. Here, 4 channel counter input module is fixed in slot 2 and 32
point 24VDC input modules are fixed in slot 0 and 1.
The following table shows the configuration byte MB51 value should be
16#A0.
So configuration word MW50 should have value of $A0CC for this example
requirement.
S4.2 Q8.0
+---| |---+---------------------------------------+---(R)---
M1.1 ------I_TO_DI------
+---| |---+---------|EN ENO|
| |
| |
MW100-|DATA DOUT|-MD150
----------------------------------
M1.1 ------I_TO_DI------
+---| |---+---------|EN ENO|
| |
| |
MW104-|DATA DOUT|-MD154
----------------------------------
M1.1 ------I_TO_DI------
+---| |---+---------|EN ENO|
| |
| |
MW108-|DATA DOUT|-MD158
----------------------------------
M1.1 ------I_TO_DI------
+---| |---+---------|EN ENO|
| |
| |
MW112-|DATA DOUT|-MD162
----------------------------------
MESSUNG SYSTEMS
EL – 2, J - Block, MIDC, Bhosari,
PUNE – 411 026. INDIA
Tel. – (+91) –020 – 712 0807, 712 2807
Fax. – (+91) –020 –712 0391
Document No.:ED-2002-022