![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681258.webp)
1219
Block Programming Instructions
Section 3-32
Flags
Precautions
Loops cannot be nested within loops.
Incorrect:
LOOP(809)
LOOP(809)
LEND(810)
LEND(810)
Do not reverse the order of LOOP and LEND.
Incorrect:
LEND(810)
:
:
LOOP(809)
Conditional block branching can be used within a loop, but the entire branch
operation must be within the loop.
Correct:
Incorrect:
LOOP(809)
LOOP(809)
IF(802)
IF(802)
IF(802)
IF(802)
IEND(804)
IEND(804)
IEND(804)
LEND(810)
LEND(810)
IEND(804)
NOP processing will be performed if LOOP(809) is not executed.
An error will occur and the Error Flag will turn ON if a Loop Control Instruction
is not in a block program.
Examples
When CIO 000000 is ON in the following example, the block program is exe-
cuted. After “A” is executed, “B” and the IORF(184) after it will be executed
repeatedly until CIO 000001 is ON, at which time C will be executed and the
block program will end.
Name
Label
Operation
Error Flag
ER
ON if a Loop Control Instruction is not in a block program.
OFF in all other cases.
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...