Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1228

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Block Programming Instructions
Using Block Programming Instructions
Task 1
Task 2
Task n
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.
Execution
condition
If "A" or nothing is to be executed, IF A IEND are used as shown below.
Execution
condition
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
Execution
condition ON?
"B" executed
"A" executed (be-
tween IF and ELSE).
(after ELSE).
Execution
condition ON?
"A" executed (be-
tween IF and IEND).
Section 3-32
1189

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents