3. Instructions
1060
CS/CJ/NSJ Series Instructions Reference Manual (W474)
BPRG/BEND
Applicable Program Areas
Operands
N: Block Program Number
The block program number must be between 0 and 127 decimal.
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
BLOCK PROGRAM BEGIN BPRG --- 096
Indicates the beginning of the block program area
specified by number.
BLOCK PROGRAM END BEND --- 801 Indicates the end of the block program area.
Symbol
BPRG BEND
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage Not allowed Not allowed OK OK OK 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
BPRG N --- --- --- --- --- --- --- --- --- --- OK --- --- --- --- --- --- ---
Name Label
Operation
BPRG BEND
Error Flag ER • ON if BPRG(096) is already being exe-
cuted.
• ON if N is not between 0 and 127.
• ON if the same block program number is
used more than once.
• OFF in all other cases.
• ON if a block program is not being exe-
cuted.
• OFF in all other cases.
N: Block program number
BPRG(096)
N
BEND(801)