![Mitsubishi Electric MELSEC iQ-R Series Programming Manual Download Page 1933](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r-series/melsec-iq-r-series_programming-manual_2378411933.webp)
30 SELECTION FUNCTIONS
30.1 Selecting a Value
1931
30
30
SELECTION FUNCTIONS
30.1
Selecting a Value
SEL(_E)
These functions output the selected input value.
Setting data
■
Description, type, data type
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).)
• 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).
Ladder, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=SEL(s1,s2,s3);
[With EN/ENO]
d:=SEL_E(EN,ENO,s1,s2,s3);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Executed, FALSE: Not executed)
Input variable
BOOL
s1 (G)
Output condition (TRUE: s3 output, FALSE: s2 output)
Input variable
BOOL
s2 (IN0)
Input
Input variable
ANY
s3 (IN1)
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d
Output
Output variable
ANY
RnCPU RnENCPU
RnSFCPU RnSFCPU
RnPCPU
RnPCPU
(Standard)
(Safety)
(Redundant)
(Process)
s1
d
s2
s3
EN
ENO
d
s1
s2
s3
(s2), (s3)
(s1)
(d)
1234
5678
1234
FALSE
SEL
_G
_IN0
_IN1
SEL
BOOL
INT
INT
INT
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......