Skip to main content

Jump (Start)

Instruction Parameters

Supported PLC Series

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S

Supported Data Registers

MXYKLFTCSZRQD@DConstant
n--------------

Supported Flags

FlagBitSupport
ErrorF11.0-
ZeroF11.1-
CarryF11.2-

Number of Steps

Steps
2

Operands

OperandDescription
nThe only operand.
Entries are only constants.
This is the branch ID to jump to.

The value range is 0 ~ 127.

Notice

Subroutine Usage

The JMP ~ JME or JMPP ~ JME instructions are used in a SBRT ~ RET block.
The program may NOT use a jump statement inside a subroutine.

Instruction Behavior

The JMP and JMPP instructions behave as follows:

  • JMP:
    • When the execution condition of the JMP instruction is ON (1), the program jumps to the next step of the JME instruction within the identical branch ID, n.
    • When the execution condition of the JMP instruction is OFF (0), the JMP instruction is not executed, and the program does not jump.
    • When the JMP instruction is executed, all instructions between the JMP and JME instructions are NOT executed.
    • Multiple JMP n instructions can be placed before their related JME n instruction.
  • JMPP:
    • When the execution condition of the JMPP instruction is ON (1), the program jumps to the next step of the JME instruction with a matching branch ID, n for 1 scan.
    • When the execution condition of the JMPP instruction is OFF (0), the JMPP instruction is not executed and program does NOT jump.
    • When the JMPP instruction is executed, all instructions between the JMPP and JME instructions are not executed for 1 scan.

Examples