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

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

Advertisement

Block Programming Instructions
Flags
Precautions
Examples
1196
Name
Error Flag
ER
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.
The following diagram shows a basic example of pausing a block program.
0
Block program 0
1
Block program 1 If the BPPS(811) in block program 0 has
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.
0
Pauses block program 1
Pauses block program 2
Restarts block program 1
Restarts block program 2
Label
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 1 will be paused if CIO 000000
and CIO 000001 are both ON.
been executed, block program 1 will not be
executed even if CIO 000002 is ON.
Address Instruction
000000 LD
000001 BPRG(096)
000002 IF(802)
000003 BPPS(811)
000004 ELSE(803)
000005 BPPS(811)
000006 IEND(804)
000007 TIMW(803)
000008 BPRS(812)
000009 BPRS(812)
000010 BEND(801)
Section 3-32
Operation
Operands
000000
00
000001
01
02
0000
#
0100
1
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents