EasyManua.ls Logo

Fagor CNC 8055i FL EN - Sequence Breaking Action Instructions

Fagor CNC 8055i FL EN
732 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...
·464·
Installation manual
CNC 8055
CNC 8055i
10.
PLC PROGRAMMING
SOFT: V02.2X
Action instructions
10.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/2000).
A subroutine is any part of the program that starts with a label (L1/2000) and end with the directing
instruction END.
= JMP
Unconditional Jump.
If the result of the logic expression is a "1", it will 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 of the logic expression is a "1", this action executes 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 of the logic expression is a "0", the PLC will ignore this action and the program will go
on without executing that 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 the logic expression is a "1”, this action will be treated by the PLC as if it were an END
instruction. 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.
The subroutines should be placed after the program END because if they are placed at the
beginning, the PLC will start executing them and will interpret the END of the subroutine as the end
of the module and it will interpret it as the end of the program since it could not find the call 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