![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681244.webp)
1205
Block Programming Instructions
Section 3-32
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 a Peripheral Device, however, the WAIT status will be
cleared and the block program will again be executed from the beginning.
Examples
When CIO 000000 is ON in the following example, block program 00 will be
executed. Execution would proceed as follows:
1,2,3...
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
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.
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...