EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 1026

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...
993
Block Programming Instructions Section 3-30
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.
Flags
Precautions 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.
Note 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.
Examples When CIO 0.00 is ON in the following example, block program 00 will be exe-
cuted. Execution would proceed as follows:
1,2,3... 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
OFF
Operand bit
OFF
Operand bit
ON
"A"
executed.
"B" executed.
"C" executed.
"C"
executed.
"C"
executed.
Wait
Name Label Operation
Error Flag ER ON if WAIT(805) or WAIT(805) NOT is not in a block pro-
gram.
OFF in all other cases.

Table of Contents

Related product manuals