Mitsubishi Electric MELSEC Q Series Programming Manual page 235

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS
Function definition
6 - 48
BOOL SEL_E( BOOL EN, BOOL S1, ANY S2, ANY S3, ANY D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
S2
IN
S3
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, the data stored in iData1 is stored
(*
into Result if the bit data in bData is FALSE, or the data stored in iData2 is
(*
stored into Result if the bit data in bData is TRUE.
M0 := SEL_E( X0, bData, iData1, iData2, Result ) ;
Execution condition (Function is executed only when the result is TRUE)
Selection condition
Data to be selected when S1 is FALSE
Data to be selected when S1 is TRUE
Selection result
When S1 is FALSE ....... Return value = S2
When S1 is TRUE ......... Return value = S3
Description
For the usable data type, refer to "3.2.2 About ANY type".
Description
*)
*)
*)
6 - 48

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents