Introduction

Jump objects execute jumps to a jump target within the current section.

When the status of the left link is 1, a jump is made to a label (in the current section).

To generate a conditional jump, a jump object is linked to a Boolean FFB output.

To generate an unconditional jump, the jump object is assigned the value 1 using the AND function for example.

Selecting the jump object

You have the following options to select jump objects:

  • Use the Edit > New > Jump menu command.

    or

  • Choose the symbol.

The active placement mode for jump objects is indicated by the cursor symbol.

Note

In the Tools > Options dialog box, in the Data and Languages tab, if the Automatically affect a variable on a new graphical object check box is activated, its properties dialog box is automatically opened when an object is placed. The procedure explained here is valid for deactivated check boxes.

Executing a jump

Process the following steps to execute a jump:

Step

Action

1

Create the logic for the jump.

Example: Logic for conditional jump:

Example: Logic for unconditional jump:

2

Select the jump object.

3

Click the target position in the FBD section.

or

Use the arrow keys to move the cursor to the target position, and press Enter.

Result:The jump object is inserted.

Example: Logic for conditional jump:

Example: Logic for unconditional jump:

4

Create a link between the jump logic and jump object using a graphical link.

Example: Logic for conditional return:

Example: Logic for unconditional return:

5

To enter the jump target, open the properties dialog box of the jump object.

Result: The properties dialog box for the jump object is opened, see also Jump object properties dialog box.

6

You have the following options to enter the jump target:

  • You can now enter the name of the jump target and confirm using Enter.

    or

  • You can select the name of the jump target from the list of available jump targets using the symbol and confirm using Enter.

Result: The jump target is inserted and a syntax and semantics check is performed.

Example of a conditional jump:

Example of an unconditional jump:

If the jump target has already been defined (see also Jump target), the procedure ends here.

If the jump target has not yet been declared, continue with step 7.

7

Specify the jump target, see also Jump target.