User manual

(LBL 1 )
X0
LOOP 1, DT 0
The program jumps when
the execution condition
(trigger) turns on.
(LBL 1 )
X0
LOOP 1, DT 0
The program is repeated
when the execution condi-
tion (trigger) turns on.
Basic Instructions
2 66
TM, CT, and SR instruction operation between the LOOP and LBL instructions
When the LBL instruction is located after the LOOP instruction:
TM instruction: The TM instruction is not executed.
If it is not executed once during a single scan,
the correct time cannot be guaranteed.
CT instruction: Even if the count input is on, counting is not
performed. The elapsed value is preserved.
SR instruction: Even if the shift input is on, no shift is
performed.
The contents of the specified register are
preserved.
When the LBL instruction is located before the LOOP instruction:
TM instruction: Because the timer will run several times
during a single scan, the correct time cannot
be guaranteed (see note).
CT instruction: If the state of the count input does not change
during the scan, it will operate in the usual
way.
SR instruction: If the state of the shift input does not change
during the scan, it will operate in the usual
way.
Note
With the FP2SH and FP10SH, the time can be kept accurately
even if these are executed multiple times during a single scan.
To use these together with the LOOP instruction, change the
setting of system register 4.