6 - 54 6 - 54
6 IEC FUNCTIONS
Function definition
BOOL LIMIT_E( BOOL EN, ANY_SIMPLE MIN, ANY_SIMPLE S1, ANY_SIMPLE
MAX, ANY_SIMPLE D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
MIN
IN
Minimum output limit value
S1 IN
Input
value
MAX
IN
Maximum output limit value
D1 OUT
Output
value
When MIN (lower limit value) > S1 (input value)
.................................................................... D1 = MIN (lower limit value)
When MAX (upper limit value) < S1 (input value)
................................................................... D1 = MAX (upper limit value)
When MIN (lower limit value) S1 (input value) MAX (upper limit value)
............................................................................... D1 = S1 (input value)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
(*
(*
When execution condition X0 turns ON, the iData1 value is stored into Result
if the iData2 data is less than the iData1 data or minimum value, the iData3
value is stored if the iData2 data is greater than the iData3 data or maximum
value, or the iData2 value is stored otherwise.
M0 := LIMIT_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: ......