6 - 50 6 - 50
6 IEC FUNCTIONS
Function definition
BOOL MAX_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2,…., ANY_SIMPLE
Sn, ANY_SIMPLE D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1 to Sn
IN
Search target data
D1 OUT
Search
result
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
(*
When execution condition X0 turns ON, the data stored in iData1, iData2 and
iData3 are searched for the maximum value, and the result is stored into
Result.
M0 := MAX_E( X0, iData1, iData2, iData3, 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: ......