Mitsubishi MELSEC-q Programming Manual page 241

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

6 IEC FUNCTIONS
Function definition
6 - 54
BOOL LIMIT_E( BOOL EN, ANY_SIMPLE MIN, ANY_SIMPLE S1, ANY_SIMPLE
MAX, ANY_SIMPLE D1 );
Argument
Argument Name
IN/OUT
EN
IN
MIN
IN
S1
IN
MAX
IN
D1
OUT
Return value
Return Value
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 ) ;
Execution condition (Function is executed only when the result is TRUE)
Minimum output limit value
Input value
Maximum output limit value
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)
............................................................................... D1 = S1 (input value)
Description
For the usable data type, refer to "3.2.2 About ANY type".
Description
S1 (input value)
MAX (upper limit value)
*)
*)
*)
*)
6 - 54

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents