![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301226.webp)
1186
Block Programming Instructions
Section 3-32
3-32 Block Programming Instructions
This section describes block programs and the block programming instruc-
tions.
3-32-1 Introduction
Block Programs
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.
Instruction
Mnemonic
Function code
Page
BLOCK PROGRAM BEGIN
BPRG
096
1191
BLOCK PROGRAM END
BEND
801
1191
BLOCK PROGRAM PAUSE
BPPS
811
1193
BLOCK PROGRAM RESTART
BPRS
812
1193
CONDITIONAL BLOCK EXIT
(NOT)
EXIT (NOT)
806
1199
IF (NOT)
IF (NOT)
802
1196
ELSE
ELSE
803
1196
IF END
IEND
804
1196
ONE CYCLE AND WAIT (NOT)
WAIT (NOT)
805
1202
HUNDRED-MS TIMER WAIT
TIMW (BCD)
813
1206
TIMWX (binary)
816
COUNTER WAIT
CNTW (BCD)
814
1209
CNTWX (binary) 818
TEN-MS TIMER WAIT
TMHW (BCD)
817
1212
TMHWX
(binary)
815
LOOP
LOOP
809
1215
LOOP END (NOT)
LEND (NOT)
810
1215
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 ...