30.5.9 Insert Label

You can insert JMP instructions (Jump) and jump labels anywhere in the logic program.

When the display unit executes the JMP instruction, the operation jumps to the label with the same name as the instruction, and the logic program continues to run.

Here, for example, a [LABEL-001] label is inserted in the jump instruction, and the operation jumps to the 3rd rung upon execution of the JMP instruction when the "Switch 1" in the 2nd rung turns on.

Inserting a Label

  1. Select the 2nd rung.

  2. Click the icon . The label is inserted in the 3rd rung.

    • You can also insert a label in any of the following ways.

    • On the [Logic (I)] menu, click [Insert Label (L)].

    • Right-click and then click [Insert Label (L)].

    • Press CTRL+L.

  3. Select the label name (for example, LABEL-001).

Inserting a JMP Instruction

  1. Insert a JMP instruction to the right of "Switch 1" of a NO instruction (Normally Open) in the 2nd rung.

  2. Specify an operand label [LABEL-001] for the JMP instruction operand.

    When the "LABEL-001" JMP instruction is detected, the operation jumps to the [LABEL-001] label. After the [LABEL-001] label is executed, the logic program runs from the next rung.