Chapter 2 Syntax
until loop statement
Instruction to conditionally execute a post-conditioned loop
- Format
Format
Description
until
<condition>
<instruction set>
loop
This instruction executes <instruction set> until
<condition>
is met.
Note that
<condition>
is checked after the execution of
<instruction
set>
.
- Explanation
This instruction executes
<instruction set>
repeatedly until <condition> is met. Note that
<condition>
is checked after the
execution of
<instruction set>
.
Execute
<instruction set>
Is
<condition>
met?
Yes
No
- Sample program
(Condition “X (00) = 0” is met after the loop is executed twice.)
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
Sequence of execution
㩷
until X(00)
= 1
㩷
㩷
䋺
(1)
㩷 㩷 㩷
(5) (9)
㩷
Y(00)= 1
㩷
㩷
㩷
㩷
䋺
(2)
(6) (10)
㩷
Y(00)= 0
㩷
㩷
㩷
㩷
䋺
(3)
(7) (11)
㩷
loop
㩷
㩷
㩷
㩷
㩷
䋺
(4)
(8) (12)
㩷
Y(00)= 1
㩷
㩷
㩷
㩷
䋺
(13)
2-13
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 ...