![Omron CJ1G-CPUxx Instructions Manual Download Page 1008](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_7424911008.webp)
987
Block Programming Instructions
Section 3-32
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.
Note If the block program that is being paused appears after BPPS(811), it will not
be executed. If the block program appears before BPPS(811), it will be
paused starting the next cycle.
If CIO 000000 is ON, the following program pauses execution of either block
program 1 or block program 2 depending on the status of CIO 000001. The
block program that was paused is then restarted after 10 seconds.
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.
Block program 0
Block program 1
Block program 1 will be paused if CIO 000000
and CIO 000001 are both ON.
If the BPPS(811) in block program 0 has
been executed, block program 1 will not be
executed even if CIO 000002 is ON.
1
0
Address
Instruction
Operands
# 0100
000000 LD
000000
000001 BPRG(096)
00
000002 IF(802)
000001
000003 BPPS(811)
01
000004 ELSE(803)
000005 BPPS(811)
02
000006 IEND(804)
000007 TIMW(803)
0000
000008 BPRS(812)
1
000009 BPRS(812)
2
000010 BEND(801)
Pauses block program 1
Pauses block program 2
Restarts block program 1
Restarts block program 2
0
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...