40
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
CONDITIONAL
JUMP
CJPN
511
Output
Not required
199
MULTIPLE JUMP
JMP0
515
Output
Required
202
MULTIPLE JUMP
END
JME0
516
When the execution condition for JMP0(515) is OFF, all instructions
from JMP0(515) to the next JME0(516) in the program are processed
as NOP(000). Use JMP0(515) and JME0(516) in pairs. There is no
limit on the number of pairs that can be used in the program.
Output
Not required
202
FOR-NEXT
LOOPS
FOR
512
Output
Not required
205
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
CJPN(511)
N
N: Jump number
The operation of CJPN(511) is almost identical to JMP(004).
When the execution condition for CJP(004) is OFF, program execution
umps directly to the first JME(005) in the program with the same jump
number. CJPN(511) and JME(005) are used in pairs.
Execution
condition ON
Execution
condition OFF
Instructions
executed
Instructions
jumped
Instructions in this section
are not executed and out-
put status is maintained.
The instruction execution
time for these instructions
is eliminated.
JMP0(515)
When the execution condition for JMP0(515) is OFF, all instructions
from JMP0(515) to the next JME0(516) in the program are processed
as NOP(000). Use JMP0(515) and JME0(516) in pairs. There is no
limit on the number of pairs that can be used in the program.
Execution
condition a ON
Execution
condition a OFF
Instructions
jumped
Instructions
executed
Execution
condition b ON
Execution
condition b OFF
Jumped instructions
are processed as
NOP(000). Instruction
execution times are
the same as
NOP(000).
Instructions
jumped
Instructions
executed
JME0(516)
FOR(512)
N
N: Number of
loops
Repeated N times
The instructions between FOR(512) and NEXT(513) are repeated a
specified number of times. FOR(512) and NEXT(513) are used in
pairs.
Repeated program section