Until Loop Statement; Select Case Syntax Statement - Hitachi SJ700-2 Series Instruction Manual

Easy-sequence programming software ezsq
Hide thumbs Also See for SJ700-2 Series:
Table of Contents

Advertisement

Chapter 5 Instruction Words

until loop statement

- Format
Format
until <condition>
<instruction set>
loop
- Explanation
This instruction executes <instruction set> repeatedly until <condition> is met. Note that <condition> is
checked after the execution of <instruction set>.
- Sample program (Condition "X (00) = 0" is met after the loop is executed three times.)
until
X(00) =
Y(00) =
1
Y(00) =
0
loop
Y(00) =
1

select case syntax statement

- Format
Format
select <conditional variable>
case <conditional value 1>
<instruction set 1>
case <conditional value 2>
<instruction set 2>
・・・
[case else]
[<instruction set n>]
end select
- 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>.
Instruction to conditionally execute a post-conditioned loop
This instruction executes <instruction set> until <condition> is met.
Note that <condition> is checked after the execution of <instruction
set>.
Execute <instruction set>
Is <condition> met?
1
Instruction to branch under multiple conditions
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>.
Description
Yes
No
Sequence of execution
:(1)  (5)  (9) 
:(2)  (6)  (10) 
:(3)  (7)  (11) 
:(4)  (8)  (12) 
:  
  (13) 
Description
5 - 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sj700 series

Table of Contents