![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681228.webp)
1189
Block Programming Instructions
Section 3-32
Using Block Programming Instructions
Basically speaking, IF(802), ELSE(803), and IEND(810) are used for execu-
tion conditions (along with bits) inside block programs.
If “A” or “B” is to be executed then IF A ELSE B IEND are used as shown
below.
If “A” or nothing is to be executed, IF A IEND are used as shown below.
If execution is to wait until an execution condition or bit is ON (e.g., for step
progressions), then WAIT(805) is used.
If execution is to wait until for a specified period of time (e.g., for timed step
progressions), then TIMW(813), TIMX(816), TMHW(815), or TMHWX(817) is
used.
If execution is to wait until for a specified count has been reached (e.g., for
step progressions with counters), then CNTW(814)/CNTWX(818) is used.
If execution is to be repeated within part of a block program until a condition is
met, then LOOP(809) and LEND(810) are used.
If execution of the block program is to be ended in the middle based on an
execution condition, the EXIT(806) is used.
If another block program that is being executed is to be paused or restarted
from within a block program, then BPPS(811) and BPRS(812) are used.
Program
Block program 001
Block program n
Task 1
Task 2
Task n
"B" executed
(after ELSE).
"A" executed (be-
tween IF and ELSE).
Execution
condition ON?
Execution
condition
Execution
condition
Execution
condition ON?
"A" executed (be-
tween IF and IEND).
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...