![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.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...