![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681226.webp)
1187
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
1192
BLOCK PROGRAM END
BEND
801
1192
BLOCK PROGRAM PAUSE
BPPS
811
1194
BLOCK PROGRAM RESTART
BPRS
812
1194
CONDITIONAL BLOCK EXIT
(NOT)
EXIT (NOT)
806
1200
IF (NOT)
IF (NOT)
802
1197
ELSE
ELSE
803
1197
IF END
IEND
804
1197
ONE CYCLE AND WAIT (NOT)
WAIT (NOT)
805
1203
HUNDRED-MS TIMER WAIT
TIMW (BCD)
813
1207
TIMWX (binary)
816
COUNTER WAIT
CNTW (BCD)
814
1210
CNTWX (binary) 818
TEN-MS TIMER WAIT
TMHW (BCD)
817
1213
TMHWX
(binary)
815
LOOP
LOOP
809
1216
LOOP END (NOT)
LEND (NOT)
810
1216
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...