78
4
4 Instructions4.2.4 Loop
CJEND: Conditional jump to the program end
◆
Overview
The CJEND instruction executes a jump to the program end when conditions are met. Then the current
scan cycle ends.
CJEND
Conditional jump to
the program end
Applicable model:
H3U
An independent instruction without operands and contact driving
16-bit instruction (3
steps)
DBAND:
Continuous
execution
4.2.4 Loop
FOR: Start of a loop
◆
Overview
The FOR instruction identies the start position of a loop.
FOR S1
Start of a loop Applicable model:
H3U
S1
Number of
repeats for
a loop
Number of repeats for a loop program
16-bit instruction
(3 steps)
FOR: Continuous
execution
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The FOR instruction identies the start position and the number of repeats for a loop. It must be used with
the NEXT instruction.
S1 is the variable that controls the number of repeats for the loop.
For details, see the description of the NEXT instruction.