3. Instructions
196
CS/CJ/NSJ Series Instructions Reference Manual (W474)
JMP/JME
Applicable Program Areas
Operands
N: Jump Number
The jump number must be 0000 to 03FF (&0 to &1,023 decimal).
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the jump number must be between the range 0000 to 00FF
hex or &0 to &255 decimal.
z Operand Specifications
*1 For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the range is #0000 to #00FF (binary) or &0 to &1023 (decimal).
Flags
z JMP
*1 For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the range is 0 to 255 (0000 to 00FF hex).
z JME
There are no flags affected by this instruction.
Instruction Mnemonic Variations
Function
code
Function
JUMP JMP --- 004
When the execution condition for JMP(004) is
OFF, program execution jumps directly to the first
JME(005) in the program with the same jump
number.
JUMP END JME --- 005
Indicates the end position of a jump by JMP or
CJP instruction.
Symbol
JMP JME
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage Not allowed OK Not allowed OK OK Not allowed
Operand Description Data type Size
N Jump number UINT 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
JMP N OK OK OK OK OK OK OK OK OK OK
OK
*1
OK --- OK
--- --- --- ---
JME N --- --- --- --- --- --- --- --- --- --- --- --- ---
Name Label Operation
Error Flag ER • ON if N is not within the specified range of 0000 to 03FF. (See note.)
• ON if there is a JMP(004) in the program without a JME(005) with the same jump number.
• ON if there is a JMP(004) in the task without a JME(005) with the same jump number in the task.
• OFF in all other cases.
JMP(004)
N
N: Jump number
N: Jump number
JME(005)
N