Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 1065

Table of Contents

Advertisement

Function
BPRG(096) executes the block program with the
block number designated in N, i.e., the one
immediately after it and ending with BEND(801).
All
instructions
BEND(801) are executed with ON execution
conditions (i.e., unconditionally).
When the execution condition for BPRG(096) is OFF, the block program will not be executed and no
execution time will be required for the instruction in the block program.
Execution of the block program can be stopped using BPPS(811) from within another block program
even if the execution condition for BPRG(096) is ON.
Precautions
• Each block program number can be used only once within the entire user program.
• Block programs cannot be nested.
Nesting NOT possible.
• If the block program is in an interlocked program section and the execution condition for IL(002) is
OFF, the block program will not be executed.
• BPRG(096) and the corresponding BEND(801) must be in the same task.
Sample program
0.00
0.00
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
between
BPRG(096)
When CIO 0.00 turns ON in the following example, block
program 0 will be executed. When CIO 0.00 is OFF, the
0
0
block program will not be executed.
Block program 0
0.00
0
D100
D200
D200
0.01
and
D100
D200
D200
0.01
3. Instructions
Block program
Executed when the
execu-tion condition is ON.
The two program sections
shown below both execute
MOV(021),
++B(594),
SET for the same execution
condition (i.e., when CIO 0.00
turns ON).
3
and
1027

Advertisement

Table of Contents
loading

Table of Contents