Mitsubishi Electric MELSEC Q Series Programming Manual page 243

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

Advertisement

6 IEC FUNCTIONS
Function definition
6 - 56
BOOL MUX_E( BOOL EN, INT n, ANY S1, ANY S2,....,ANY Sn, ANY D1 );
Argument
Argument Name
IN/OUT
EN
IN
n
IN
S1 to Sn
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, one of the data stored in iData2,
(*
iData3, iData4 and iData5 is stored into Result, after judgment made from the
(*
data in iData1.
M0 := MUX_E( X0, iData1, iData2, iData3, iData4, iData5, Result );
Execution condition (Function is executed only when the result is TRUE)
Selection condition
Selection target data
Selection result
When n = 1, D1 = S1
When n = 2, D1 = S2
:
:
When n = n, D1 = Sn
Description
For the usable data type, refer to "3.2.2 About ANY type".
Description
*)
*)
*)
6 - 56

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents