6 - 56 6 - 56
6 IEC FUNCTIONS
Function definition
BOOL MUX_E( BOOL EN, INT n, ANY S1, ANY S2,….,ANY Sn, ANY D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
n IN
Selection
condition
S1 to Sn
IN
Selection target data
D1 OUT
Selection
result
When n = 1, D1 = S1
When n = 2, D1 = S2
: :
When n = n, D1 = Sn
Return value
Return Value
Description
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 );
*)
*)
*)
For the usable data type, refer to "3.2.2 About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......