Selective Branch Control: Select - Case - Send - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Selective branch control: SELECT - CASE - SEND

Format
SELECT
CASE(S1) - CEND
CASE(S2) - CEND
CASE(Sn) - CEND
CELSE - CEND
SEND
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
device
(S) to (Sn)
■Description, data type of result
Setting data
Description
(S) to (Sn)
Conditional data which controls the flow of program
Processing details
• The block described between CASE and CEND is executed selectively according to the true/false of the data specified with
(S1) to (Sn).
• 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.
• When the data specified with (S1) to (Sn) are all false, the block described from CELSE to CEND is executed.
• 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.
• The following number of CASE(Sn) to CEND can be written between SELECT and SEND
CELSE
Not used
Used
• Maximum multiplicities of selective branch control are eight including conditional branch control. (IF - ELSE - IEND)
SELECT...
CASE...
IF...
SELECT...
CASE...
CEND
SEND
IEND
CEND
SEND
4 OPERATION CONTROL PROGRAMS
196
4.14 Program Control
Number of basic steps
SELECT: 1
CASE: 8
CEND: 5
CELSE: 1
SEND: 1
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
Number
64
63
(3 level) (2 level) (1 level)
Usable steps
F/FS
Constant
16-bit
32-bit
64-bit
integer
integer
floating
type
type
point
(K/H)
(K/H, L)
type (K)
G
Calculation
Bit
expression
conditional
expression
Data type of result
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents