Chapter 2 Syntax
2-17
wait statement
Instruction to make processing wait
- Format
Format
Description
1
wait iii.ii
This instruction makes processing wait for “iii.ii” seconds.
2
wait <variable>
This instruction makes processing wait for “<variable> ×10 “ ms.
3
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 for “
<variable>
×
10
“
ms. After “
<variable>
×
10
“
ms elapse, the next
instruction is executed.
Format 3 : This instruction makes processing wait until
<condition>
is met. After
<condition>
is met, the next instruction is
executed.
- Sample program
Sample 1 : Format 1
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
wait 1.00
㩷
㩷
㩷
㩷
: Wait 1 second.
㩷
Y(00)= 1
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Sample 2 : Format 2
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
U(00)=
㩷
㩷
100
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
wait U(00)
㩷
㩷
㩷
㩷
: Wait 100×10ms.
㩷
Y(00)= 1
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Sample 3 : Format 3
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
wait X(00)
=
1
㩷
㩷
: Wait until condition "X (00) = 1" is met.
LABEL1 Y(00)=
1
㩷
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...