![Hitachi SJ700 Series Software Instruction Manual Download Page 64](http://html.mh-extra.com/html/hitachi/sj700-series-software/sj700-series-software_instruction-manual_140536064.webp)
Chapter 5 Instruction Words
5 - 10
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 three times.)
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)
select case syntax statement
Instruction to branch under multiple conditions
- Format
Format Description
select <conditional variable>
case <conditional value 1>
<instruction set 1>
case <conditional value 2>
<instruction set 2>
・・・
[case else]
[<instruction set n>]
end select
This instruction executes <instruction set 1> to <instruction set n-1>
described in a case statement when <conditional variable> matches
<conditional value 1> to <conditional value n-1> in the case statement,
respectively.
If the case else statement is described, <instruction set n> is executed
when <conditional variable> does not match any of <conditional value
1> to <conditional value n-1>.
- Explanation
This instruction executes <instruction set 1> to <instruction set n-1> described in a case statement
when <conditional variable> matches <conditional value 1> to <conditional value n-1> in the case
statement, respectively. If the case else statement is described, <instruction set n> is executed when
<conditional variable> does not match any of <conditional value 1> to <conditional value n-1>.
Summary of Contents for SJ700 Series Software
Page 8: ...Contents vii ...
Page 10: ......
Page 16: ...Chapter 1 Introduction 1 6 ...
Page 18: ......
Page 24: ...Chapter 2 Creation and Execution of a User Program 2 6 ...
Page 26: ......
Page 30: ...Chapter 3 Syntax 3 4 ...
Page 32: ......
Page 54: ......
Page 102: ......
Page 110: ...Chapter 6 Interface with the Inverter 6 8 ...
Page 112: ......
Page 115: ...Chapter 8 Appendix 8 1 Inverter Parameters and Available Settings 8 1 ...
Page 116: ......