Chapter 4: RLL Programming
Counter Instructions
The SG2 PLR includes a total 15 separate counters that can be used throughout a program. Each
counter has a choice of 8 operation modes, 6 for general purpose counting and 2 for high speed
counting. Additionally, each counter has 6 parameters for proper configuration. The tables below
describes each configuration parameter and lists each compatible memory type for configuring counters.
The figure to the right shows
the relationship between the
numbered block diagram for
a Counter, the ladder
diagram view, and the
software Edit Contact/Coil
dialog box.
34
SG2 PLR User Manual
Symbol Description
Counting Mode (1-6)
Use (I1 ~ gF) to set counting up or counting down
OFF: counting up (0, 1, 2, 3, 4….)
ON: counting down ( ….3, 2, 1, 0)
Use (I1 ~ gF) to RESET the counting value
ON: the counter resets to zero and OFF
OFF: the counter continues to count
Present Counting Value, range:0~999999
Target (Setting) Value, range:0~999999
Code of the counter (C1 ~ CF total: 15 counters)
Compatible Instructions
Range
Inputs
I1-IC / i1-iC
Outputs
Q1-Q8 / q1-q8
Auxiliary coil
M1-MF / m1-mF
Expansion inputs
X1-XC /x1-xC
Expansion outputs
Y1-YC / y1-yC
RTC
R1-RF / r1-rF
Counter
C1-CF / c1-cF
Timer
T1-TF / t1-tF
Analog comparator
G1-GF / g1-gF
6*3/58VHU0DQXDO
6HFXUHRQOLQHRUGHULQJIURP
,QWHUQDWLRQDO2IILFHZZZEEHOHFFRP
'D\WRQ5RDG32%R[
2WWDZD,/86$
)D[
RUGHUV#EEHOHFFRPVXSSRUW#EEHOHFFRP
(XURSHDQ2IILFHZZZEEHXURSHFRP
:HVWOLQN&RPPHUFLDO3DUN
2UDQPRUH&R*DOZD\,UHODQG
)D[
RUGHUV#EEHXURSHFRPVXSSRUW#EEHXURSHFRP