Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1244

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Block Programming Instructions
Flags
Precautions
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.
Name
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.
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 a Peripheral Device, however, the WAIT status will be
cleared and the block program will again be executed from the beginning.
When CIO 000000 is ON in the following example, block program 00 will be
executed. Execution would proceed as follows:
1. If CIO 000001 is OFF, none of the block program will be executed until
CIO 000001 turns ON. When CIO 000001 turns ON, "A" will be executed.
2. If CIO 000002 is OFF after "A" is executed, the rest of the block program
will not be executed until CIO 000002 turns ON. When CIO 000002 turns
ON, "B" will be executed
3. If CIO 000003 is OFF after "B" is executed, the rest of the block program
will not be executed until CIO 000003 turns ON. When CIO 000003 turns
ON, "C" will be executed and the execution process will be repeated.
Operand bit
OFF
"A"
executed.
"C"
executed.
Wait
Label
ON if WAIT(805) or WAIT(805) NOT is not in a block pro-
gram.
OFF in all other cases.
Section 3-32
Operand bit
Operand bit
OFF
ON
"B" executed.
"C"
"C" executed.
executed.
Operation
1205

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents