EasyManua.ls Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1188
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).

Table of Contents

Related product manuals