EasyManua.ls Logo

Fagor CNC 8060 - Comparing Instructions

Fagor CNC 8060
900 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Installation manual
CNC 8060
CNC 8065
PLC PROGRAMMING.
4.
(REF: 1402)
·249·
Consulting instructions.
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.

Table of Contents

Other manuals for Fagor CNC 8060

Related product manuals