EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Block Programming Instructions

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
975
Block Programming Instructions Section 3-30
3-30 Block Programming Instructions
This section describes block programs and the block programming instruc-
tions.
3-30-1 Introduction
Block Programs Up to 128 block programs can be used within the overall user program (all
tasks). The execution of each block program is controlled by a single execu-
tion condition. All instructions between BPRG(096) and BEND<801> are exe-
cuted 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 979
BLOCK PROGRAM END BEND 801 979
BLOCK PROGRAM PAUSE BPPS 811 982
BLOCK PROGRAM RESTART BPRS 812 982
CONDITIONAL BLOCK EXIT
(NOT)
EXIT (NOT) 806 988
IF (NOT) IF (NOT) 802 984
ELSE ELSE 803 984
IF END IEND 804 984
ONE CYCLE AND WAIT (NOT) WAIT (NOT) 805 991
TIMER WAIT TIMW (BCD) 813 995
TIMWX (binary) 816
COUNTER WAIT CNTW (BCD) 814 998
CNTWX (binary) 818
HIGH-SPEED TIMER WAIT TMHW (BCD) 817 1001
TMHWX
(binary)
815
LOOP LOOP 809 1004
LOOP END (NOT) LEND (NOT) 810 1004

Table of Contents

Related product manuals