Chapter 5 Relay Ladder Logic Programming
80
-
6B
Counter Instructions
The SG2 includes 31 counters that can be used throughout a program. Each
counter has a choice of 9 operation modes, 1 for pulse counter, 6 for general
purpose counting and 2 for high speed counting. Additionally, each counter has 6
parameters for proper configuration. The tables below describe each configuration
parameter and lists each compatible memory type for configuring counters.
Common Counter
Symbol description
Compatible
Instructions Range
①
Counting Mode (0-6)
Input I01-I0C/i01-i0C
Use (I01~g1F) to set counting up or down
Keypad input
Z01-Z04/z01-z04
OFF: counting up (0, 1, 2, 3……)
Output
Q01-Q08/q01-q08
②
ON: counting down (……3, 2, 1, 0)
Auxiliary coil
M01-M3F/m01-m3F
Use (I01~g1F) to reset the counting value
Auxiliary coil
N01-N3F/n01-n3F
ON: the counter value reset to 0
Expansion input
X01-X0C/x01-x0C
③
OFF: the counter continues to count
Expansion output
Y01-Y0C/y01-y0C
④
Counter current Value, range: 0~999999
RTC
R01-R1F/r01-r1F
⑤
Counter preset Value, range: 0~999999
Counter
C01-C1F/c01-c1F
⑥
Counter Code (C01~C1F total: 31 Counters)
Timer
T01-T1F/t01-t1F
Analog comparator
G01-F1F/g01-g1F
Normal open contact
Lo
※
The preset value of Counter could be a constant or other function current value.
Counter Mode 0 (Internal coil)
Mode 0 Counter (Internal Coil) used as internal auxiliary coils. No counter preset value. In the example below
shows the relationship among the numbered block diagram for a mode 0 counter, the ladder diagram view, and the
software Edit Contact/Coil dialog box.
PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor