■
Operation Example
X101
LBL 2
LOOP 2 DT 0
1 is subtracted from
the value stored in
DT0. If the result is not
to LBL2 and the code
between LBL2 and
LOOP2 is repeated.
■
Regarding operation of TM, CT, and SR instructions between LOOP and LBL
instructions
● If the LBL instruction is located at an address after the LOOP instruction, each instruction is
processed as follows when the LOOP instruction is executed.
LBL 1
X100
LOOP 1 DT 0
Jumps repeatedly
when the execution
condition is on.
1) TM instruction: Clocking is not performed. If it is not executed once during a single scan,
the correct time cannot be guaranteed.
2) CT instruction: Even if count input is ON, counting is not performed. The elapsed value is
retained.
3) SR instruction: Even if shift input is ON, no shift is performed. The contents of the
specified register are retained.
● If the LBL instruction is located at an address before the LOOP instruction, each instruction
is processed as follows when the LOOP instruction is executed.
3.27 LOOP, LBL (LOOP, Label)
WUME-FP7CPUPGR-12 3-89