Jumps
Remarks
A jump to a label branches the execution of the program after the specified label. Labels and jumps cannot be used in structured ST language. In FBD language, a jump is represented by the >> symbol followed by the label name. The input of the >> symbol must be connected to a valid boolean signal. The jump is performed only if the input is TRUE. In LD language, the >> symbol, followed by the target label name, is used as a coil at the end of a rung. The jump is performed only if the rung state is TRUE.
|
Backward jumps may lead to infinite loops that block the target cycle. |
ST Language
Not available.
FBD Language
In this example the TON block will not be called if bEnable is TRUE:
|
|
LD Language
In this example the second rung will be skipped if IN1 is TRUE:
|
|
Jumps |
IEC 61131-3 Automation platform > Programming - Reference guide > Basic Operations > Jumps |
Created with the Personal Edition of HelpNDoc: Easily create EBooks