3. Instructions
1062
CS/CJ/NSJ Series Instructions Reference Manual (W474)
BPPS/BPRS
Applicable Program Areas
*1 BPRG(096) and BPRS(812) must be used in block programming regions even within subroutines and interrupt tasks.
Operands
N: Block Program Number
The block program number must be between 0 and 127 decimal.
z Operand Specifications
Flags
Note 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).
Function
z BPPS
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.
Note 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 program, the paused block program will restart from the next
instruction after BPPS(811).
z BPRS
BPRS(812) restarts the block program specified by N, the block program number. Once restarted, the
block program will be executed as long as the BPRG(096) for the block program has an ON execution
condition.
Instruction Mnemonic Variations
Function
code
Function
BLOCK PROGRAM PAUSE BPPS --- 811
Pause the specified block program from another
block program.
BLOCK PROGRAM RESTART BPRS --- 812
Restart the specified block program from another
block program.
Symbol
BPPS BPRS
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage Not allowed OK OK
OK*
1
OK*
1
Not allowed
Operand Description Data type Size
N Block program number Number 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
N --- --- --- --- --- --- --- --- --- --- OK --- --- --- --- --- --- ---
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.
BPPS(811) N
N: Block program number
BPRS(812) N
N: Block program number