Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 1026

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Block Programming Instructions
Flags
Precautions
Note
Examples
1,2,3...
Operation with an Operand
An operand bit, B, can be specified for WAIT(805) or WAIT NOT(805). If the
operand bit is OFF (ON for WAIT NOT(805)), the rest of the instructions in the
block program will be skipped. In the next cycle, none of the block program will
be executed except for the execution condition for WAIT(805) or WAIT(805)
NOT. When the execution condition goes ON (OFF for WAIT(805) NOT), the
instruction from WAIT(805) or WAIT(805) NOT to the end of the program will
be executed.
Operand bit
OFF
Name
Label
Error Flag
ER
WAIT(805) and WAIT(805) NOT can be used for step progressions inside
block programs.
An error will occur and the Error Flag will turn ON if WAIT(805) or WAIT(805)
NOT is not in a block program.
The program addresses of WAIT instructions with operands specified and the
program addresses of the first instruction creating the execution conditions for
WAIT instructions without operands are recorded in memory to enable execu-
tion to be continued based on the execution condition/bit operand. If online
editing performed from the CX-Programmer, however, the WAIT status will be
cleared and the block program will again be executed from the beginning.
When CIO 0.00 is ON in the following example, block program 00 will be exe-
cuted. Execution would proceed as follows:
1. If CIO 0.01 is OFF, none of the block program will be executed until
CIO 0.01 turns ON. When CIO 0.01 turns ON, "A" will be executed.
2. If CIO 0.02 is OFF after "A" is executed, the rest of the block program will
not be executed until CIO 0.02 turns ON. When CIO 0.02 turns ON, "B" will
be executed
Operand bit
Operand bit
OFF
ON
"A"
executed.
"B" executed.
"C"
"C"
"C" executed.
executed.
executed.
Wait
Operation
ON if WAIT(805) or WAIT(805) NOT is not in a block pro-
gram.
OFF in all other cases.
Section 3-30
993

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents