EasyManua.ls Logo

Fagor 8035-M - Conditional Binary Action Instructions

Fagor 8035-M
470 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 8035
8.
PLC PROGRAMMING
Action instruction.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·308·
8.5.2 Conditional binary action instructions
There are 3 instructions: SET, RES and CPL, that are used to change the status of the indicated
resource.
Their programming format is:
= SET
If expression “1”, it assigns a “1” to the resource.
If the result of evaluating the logic expression is a “1”, it assigns a “1” to the indicated resource. If
the result is "0", it does not change the resource.
Example: CPS T2 EQ 100 = SET B0R100
When the timing of timer T2 reaches 100 milliseconds, it sets bit 0 of register R100 to "1".
= RES
If expression “1”, it assigns a “0” to the resource.
If the result of evaluating the logic expression is a “0”, it assigns a “1” to the indicated resource. If
the result is "0", it does not change the resource.
Example: I12 OR NOT I22 = RES M55 = NOT RES M65
When the result of the logic expression is a "1", the PLC sets "M55 = 0"; but does not change M65.
When the result of the logic expression is a "0", the PLC sets "M65=0" and does not change M55.
= CPL
If expression = 1, it complements the resource.
If the result of evaluating the logic expression is a “1”, it complements the status of the indicated
resource. If the result is "0", it will not change the resource.
Example: DFU I8 OR DFD M22 = CPL B12R35
Every time an Up Flank (leading edge) is detected at input I8 or a down flank (trailing edge) in
mark M22 the PLC will complement the status of bit 12 of register R35.
= SET I 1/512
= RES O 1/512
= CPL M 1/5957
B 0/31 R 1/559

Table of Contents

Related product manuals