Selective Branch Control: Select - Case - Send - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.17.2 Selective branch control: SELECT - CASE - SEND

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S) to (Sn)
[Setting data]
Setting data
[Functions]
SELECT
CASE(S1) - CEND
CASE(S2) - CEND
CASE(Sn) - CEND
CELSE - CEND
SEND
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(S) to (Sn)
Conditional data which controls the flow of program
(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
:
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
: 63
5 - 154
F/FS
Number of basic steps
Bit
64-bit
Calculation
floating
conditional
expression
expression
point
type (K)
Data type of result
G
SELECT : 1
CASE
: 4
CEND
: 3
CELSE : 1
SEND
: 1
Comparison
conditional
expression
: Usable

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents