Installation manual.
CNC 8060
CNC 8065
PLC PROGRAMMIN
G
.
4.
Co
nsul
tin
g
instructi
ons.
·349·
(R
EF
: 1709)
4.2.3
Comparing instructions.
CPS
Compare two operands.
With the CPS instruction, it is possible to make comparisons between two operands,
checking whether the first one is greater than (GT), greater than or equal to (GE), equal to
(EQ), different from (NE), less than or equal to (LE) or less than (LT) the second one.
It is possible to use as operands, timers (internal count), counters (internal count), registers,
registers for CNC-PLC communication and decimal (#) or hexadecimal numbers within
±2147483647 or between 0 and $FFFFFFFF.
If the required condition is met, the consulting instruction returns a logic value "1" and a "0"
if otherwise.
The programming format is:
CPS
T1··512
C1··256
R1··1024
R CNC-PLC
#
GT
GE
EQ
NE
LE
LT
T1··512
C1··256
R1··1024
R CNC-PLC
#
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 at timer "T2" is equal to 100 milliseconds, it will trigger timer
"T5" in monostable mode and with time constant of 2 seconds.
Summary of Contents for CNC 8060
Page 1: ...Ref 1709 8060 8065 CNC Installation manual...
Page 10: ...BLANK PAGE 10...
Page 14: ...BLANK PAGE 14...
Page 20: ...BLANK PAGE 20...
Page 32: ...BLANK PAGE 32...
Page 36: ...BLANK PAGE 36...
Page 38: ...BLANK PAGE 38...
Page 40: ...BLANK PAGE 40...
Page 41: ...PART 1 INSTALLATION MANUAL...
Page 42: ...BLANK PAGE 42...
Page 532: ...Installation manual CNC 8060 CNC 8065 9 CNC VARIABLES 532 REF 1709...
Page 533: ...PART 2 CONCEPTS...
Page 534: ...BLANK PAGE 534...
Page 548: ...Installation manual CNC 8060 CNC 8065 10 GENERAL SETUP Configuration examples 548 REF 1709...
Page 644: ...Installation manual CNC 8060 CNC 8065 14 SUBROUTINES Assistance for subroutines 644 REF 1709...
Page 668: ...Installation manual CNC 8060 CNC 8065 15 HARDWARE Configure the PT100 inputs 668 REF 1709...
Page 697: ...Installation manual CNC 8060 CNC 8065 697 User notes REF 1709...