EasyManua.ls Logo

Fagor CNC 8035 - Sequence Breaking Action Instructions

Fagor CNC 8035
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
PLC PROGRAMMING
Action instruction.
8.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·309·
8.5.3 Sequence breaking action instructions
These actions interrupt the sequence of a program, resuming it somewhere else in the program.
That area must be identified with a label (L 1/256).
A subroutine is any part of the program that starts with a label (L1/256) and end with the directing
instruction END.
= JMP
Unconditional Jump.
If the result of evaluating the logic expression is a “1”, it causes jump to the indicated label. If the
result is a "0", it goes on to the next program line.
Example:
= CAL
Call to a subroutine.
If the result obtained in the evaluation of the logic expression is a “1” this action will execute the
indicated subroutine.
Once the subroutine execution is over, the PLC will continue at the action instruction or executable
instruction programmed after CAL.
If the result obtained in the evaluation of the logic expression is a “0” this action will be ignored by
the PLC without executing the subroutine.
Example: I2 = CAL L5 = O2
With I2=1, subroutine L5 will be executed and once executed, the PLC will set O2 to the value
of input I2 (=1).
If I2=0, the subroutine is not executed and the PLC sets output O2 to the status of input I2 (=0).
= RET
Return or end of subroutine.
If the result obtained in the evaluation of the logic expression is a “1” this action will be treated by
the PLC as if it involved the directing instruction END. If the result is a "0", the PLC will ignore it.
If while executing a subroutine, the PLC detects a validated RET, it will conclude the subroutine.
If END is not programmed as end of subroutine, the PLC will continue executing until the end of the
module (END) or the end of the program and it will finish the execution of the subroutine at that point.
It is advisable to place the subroutines after the END of the main program since if these are placed
at the beginning, the PLC will start to execute them and will interpret the END of the subroutine as
the END of the module, and it will consider that this has finished because no call was made to the
subroutine.
I8 = JMP L12 If I8 = 1 it goes on to L12
M14 AND B7R120 = O8 If I8=1 it is not executed
CPS T2 EQ 2000 = O12 If I8=1 it is not executed
L12
(I12 AND I23) OR M54 = O6

Table of Contents

Related product manuals