Chapter 4: RLL Programming
Example 2: Timer/Counter Preset Value Compare
The Comparator insturction ca nbe used to compare Timer, Counter, and RTC values to a constant
value or to each other. In this example below, Mode 5 is the selected function that compares the value of
Counter (C1) to a constant value (N) of 15 counts (the decimal point is ignored). Status coil G1 turns ON
if C1 is
to 15 counts.
52
SG2 PLR User Manual
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