Installation manual
CNC 8055
CNC 8055i
PLC PROGRAMMING
10.
SOFT: V02.2X
·459·
Consulting instructions
Examples:
DFU I23 DFU B3R120 DFU AUXEND
Comparison
CPS
Used to compare two operands, checking whether the first one is greater than (GT), greater than
or equal to (GE), equal to (EQ), not equal to (NE), smaller than or equal to (LE) or less than (LT)
the second one.
The following may be used as operands: Timers (internal count), Counters (internal count),
Registers, CNC-PLC communication registers and numbers (#) within ±2147483647 or between
0 and $FFFFFFFF.
The programming format for the different combinations is:
If the required condition is met, the consulting instruction returns a logic value "1" and a "0" if
otherwise.
Programming examples:
CPS C12 GT R14 = M100
If the internal count of counter "C12" is GREATER than the value of register R14, the PLC
will assign the value of "1" to mark M100 and a "0" if otherwise.
CPS T2 EQ 100 = TG1 5 2000
When the time elapsed on the counter T2 is EQUAL to the value of 100, timer T5 will be
activated working as a monostable and with a time constant of 2 seconds.
I3 phy = I3 physical I3 rea = I3 real I3 ima = I3 image
CPS T 1/256 GT T 1/256
C 1/256 GE C 1/256
R 1/559 EQ R 1/559
#NE#
LE
LT