Comparing Instructions - Fagor CNC 8060 Installation Manual

Hide thumbs Also See for CNC 8060:
Table of Contents

Advertisement

I n s t a l l a t i o n m a n u a l .
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
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.
T1··512
GT
C1··256
GE
R1··1024
EQ
R CNC-PLC
NE
#
LE
LT
T1··512
C1··256
R1··1024
R CNC-PLC
#
4.
CNC 8060
CNC 8065
(R
: 1709)
EF
·349·

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cnc 80658060 t power8060 l8060 m fl8060 t fl8060 m power ... Show all

Table of Contents