Overview of Jump Instructions
Description
You can use this instruction in all logic blocks, for example in organization blocks
(OBs), function blocks (FBs) and functions (FCs). The following Jump instructions are available:
· JMP Unconditional Jump in a Block
· JMP Conditional Jump in a Block
· JMPN Jump-If-Not
Jump Label as Address
The address of a Jump instruction is a label. The jump label indicates the destination to which you want the program to jump.
You enter the label above the JMP box. A label consists of a maximum of four characters. The first character must be a letter; the other characters can be letters or numbers (for example, SEG3).
Jump Label as Destination
The destination label must be at the beginning of a network. You enter the destination label at the beginning of the network by selecting LABEL from the FBD list box. An empty box appears. In the box, you type the name of the label.
0 comments:
Post a Comment