Chapter 30 Selection Functions; Selecting A Value - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

30
SELECTION FUNCTIONS
30.1

Selecting a Value

SEL(_E)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These functions output the selected input value.
Ladder, FBD/LD
[Without EN/ENO]
s1
d
s2
s3
Setting data
■Description, type, data type
Argument
Description
EN
Execution condition (TRUE: Executed, FALSE: Not executed)
s1 (G)
Output condition (TRUE: s3 output, FALSE: s2 output)
s2 (IN0)
Input
s3 (IN1)
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
d
Output
Processing details
■Operation processing
• These functions output either the (s2) or (s3) input value, in the same data type as (s2) or (s3), from (d) according to the
value input to (s1).
• If the value input to (s1) is FALSE (=0), the (s2) input value is output from (d).
• If the value input to (s1) is TRUE (=1), the (s3) input value is output from (d).
Ex.
Data type of (s2) and (s3): INT (Argument names (s2) and (s3) correspond to the bit value (0 or 1) of (s1).)
FALSE
(s1)
BOOL
1234
(s2), (s3)
INT
5678
INT
• Input a BOOL data type value to (s1).
• Input a BOOL, INT, DINT, WORD, DWORD, REAL, LREAL, STRING, TIME, structure, or array data type value to (s2) and
(s3).
RnSFCPU RnSFCPU
(Standard)
(Safety)
[With EN/ENO]
EN
ENO
s1
d
s2
s3
(d)
SEL
1234
_G
SEL
_IN0
INT
_IN1
Structured text
[Without EN/ENO]
d:=SEL(s1,s2,s3);
[With EN/ENO]
d:=SEL_E(EN,ENO,s1,s2,s3);
Type
Input variable
Input variable
Input variable
Output variable
Output variable
Data type
BOOL
BOOL
ANY
BOOL
ANY
30 SELECTION FUNCTIONS
30.1 Selecting a Value
30
1931

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents