5 - 154
5 OPERATION CONTROL PROGRAMS
F/FS G
5.17.2 Selective branch control: SELECT - CASE - SEND
Format
SELECT
CASE(S1) - CEND
CASE(S2) - CEND
:
CASE(Sn) - CEND
CELSE - CEND
SEND
Number of basic steps
SELECT : 1
CASE : 4
CEND : 3
CELSE : 1
SEND : 1
[Usable data]
Setting
data
Usable Data
Bit device
Word device Constant
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
Coasting
timer
16-bit
integer
type (K/H)
32-bit
integer type
(K/H, L)
64-bit
floating
point
type (K)
(S) to (Sn)
— — — — — — — —
: Usable
[Setting data]
Setting data Description Data type of result
(S) to (Sn) Conditional data which controls the flow of program —
[Functions]
(1) The block described between CASE and CEND is executed selectively according
to the true/false of the data specified with (S1) to (Sn).
(2) The true/false evaluation is carried out in order from the top, and the block
described between CASE which is first evaluated to be true and CEND is
executed. After that, no true/false evaluation is carried out until SEND, and the
next block of SEND is executed.
(3) When the data specified with (S1) to (Sn) are all false, the block described from
CELSE to CEND is executed.
(4) CELSE can be omitted. In that case, if the data specified with (S1) to (Sn) are all
false, the block between SELECT and SEND is not executed, and the next block
of SEND is executed.
(5) The numbers of CASE(Sn) - CEND that be described between SELECT and
SEND are as follows.
• When CELSE is not used : 64
• When CELSE is used : 63