![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301235.webp)
1195
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.
0
1
Block program 0
Block program 1 will be paused if CIO 000000
and CIO 000001 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 000002 is ON.
# 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)
0
Pauses block program 1
Pauses block program 2
Restarts block program 1
Restarts block program 2
Address Instruction
Operands
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...