Chapter 5 Instruction Words
5 - 13
Label definition statement Statement to define a label
- Format
Format Description
<label name> This statement defines <label name>.
- Explanation
Use this statement to define <label name> to be used in the goto or other instructions. The statement is
not executed when described alone.
- Sample program
:
goto LABEL1 : Branch to step "LABEL1".
:
LABEL1 Y(00) = 1 : Branch-target step (line)
:
wait statement Instruction to make processing wait
- Formats
Format Description
1 wait iii.ii This instruction makes processing wait for "iii.ii" seconds.
2 wait <condition> This instruction makes processing wait until <condition> is met.
- Explanation
Format 1: This instruction makes processing wait for "iii.ii" seconds. After "iii.ii" seconds elapse, the next
instruction is executed.
Format 2: This instruction makes processing wait until <condition> is met. After <condition> is met, the
next instruction is executed.
- Sample programs
Sample 1: Format 1
:
wait 1.00 : Wait 1 second.
Y(00) = 1
:
Sample 2: Format 2
:
wait X(00) = 1 : Wait until condition "X (00) = 1" is met.
LABEL1 Y(00) = 1
: