Block Programming Instructions; Introduction - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

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

Advertisement

Block Programming Instructions

3-32 Block Programming Instructions

3-32-1 Introduction

Block Programs
This section describes block programs and the block programming instruc-
tions.
Instruction
BLOCK PROGRAM BEGIN
BLOCK PROGRAM END
BLOCK PROGRAM PAUSE
BLOCK PROGRAM RESTART
CONDITIONAL BLOCK EXIT
(NOT)
IF (NOT)
ELSE
IF END
ONE CYCLE AND WAIT (NOT)
HUNDRED-MS TIMER WAIT
COUNTER WAIT
TEN-MS TIMER WAIT
LOOP
LOOP END (NOT)
Up to 128 block programs within the overall user program (all tasks) with the
CS/CJ-series. The execution of each block program is controlled by a single
execution condition. All instructions between BPRG(096) and BEND<801) are
executed unconditionally when the execution condition for BPRG(096) is
turned ON. The execution of all the block programming instructions except for
BPRG(096) is not affected by the execution condition. This allow program-
ming that is to be executed under a single execution condition to be grouped
together in one block program.
Each block is started by one execution condition in the ladder diagram and all
instructions within the block are written in mnemonic form. The block program
is thus a combination of ladder and mnemonic instructions.
Block programs enable programming operations that can be difficult to pro-
gram with ladder diagrams, such as conditional branches and step progres-
sions.
Mnemonic
Function code
BPRG
096
BEND
801
BPPS
811
BPRS
812
EXIT (NOT)
806
IF (NOT)
802
ELSE
803
IEND
804
WAIT (NOT)
805
TIMW (BCD)
813
TIMWX (binary) 816
CNTW (BCD)
814
CNTWX (binary) 818
TMHW (BCD)
817
TMHWX
815
(binary)
LOOP
809
LEND (NOT)
810
Section 3-32
Page
1192
1192
1194
1194
1200
1197
1197
1197
1203
1207
1210
1213
1216
1216
1187

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents