EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 1016

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
983
Block Programming Instructions Section 3-30
Description BPPS(811) is used inside one block program to pause the execution of
another block program specified by N, the block program number. The block
program that is paused with BPPS(811) even if the BPRG(096) for the block
program has an ON execution condition. The block program will not be
restarted until BPRS(812) is executed for it.
BPRS(812) restarts the block program specified by N, the block program num-
ber. Once restarted, the block program will be executed as long as the
BPRG(096) for the block program has an ON execution condition.
Flags
Precautions An error will occur and the Error Flag will turn ON if BPPS(811) or BPRS(812)
is not in a block program or if N is not between #0000 and #007F (binary).
BPPS(811) can be used to pause the block program that contains it. When
the block program is then restarted using BPRS(812) from another block pro-
gram, the paused block program will restart from the next instruction after
BPPS(811).
If a paused block program contains TIMW(813), TIMWX(816), TMHW(815), or
TMHWX(817), the PV of the time will continue to elapse even while the block
program is paused.
Examples The following diagram shows a basic example of pausing a block program.
to
BPRS(812) executed
for block program n.
Block program n. This block
program will now be executed
as long as bit "a" is ON.
BPPS(811) executed
for block program n.
Block program n. Once
paused this block program
will not be executed even
if bit "a" is ON.
to
to
to
to
to
Name Label Operation
Error Flag ER ON if BPPS(811) or BPRS(812) is not in a block program.
ON if N is not between 0 and 127.
OFF in all other cases.
0
0.00
0.02
0.01
1
Block program 0
Block program 1 will be paused if CIO 0.00 and
CIO 0.01 are both ON.
Block program 1
If the BPPS(811) in block program 0 has
been executed, block program 1 will not
be executed even if CIO 0.02 is ON.

Table of Contents

Related product manuals