1016
23 SELECTION FUNCTIONS
23.3 Limit Control
23.3
Limit Control
LIMIT(_E)
These functions output an input value controlled with the upper and lower limits.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
• These functions output an input value according to the BOOL, INT, DINT, WORD, DWORD, REAL, STRING, or TIME type
data input to (s1), (s2), and (s3) in the same data type as (s1), (s2), and (s3) from (d).
Ex.
Data type is INT
• A data value of the BOOL, INT, DINT, WORD, DWORD, REAL, STRING, or TIME type can be input to (s1), (s2), and (s3).
(The input value of (s1) must be smaller than the one of (s3).)
Ladder diagram, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=LIMIT(s1,s2,s3);
[With EN/ENO]
d:=LIMIT_E(EN,ENO,s1,s2,s3);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s1(MIN)
Lower limit value (minimum output threshold value)
Input variable
ANY_ELEMENTARY
s2(IN)
Input value to be controlled with the upper and lower limits
Input variable
ANY_ELEMENTARY
s3(MX)
Upper limit value (maximum output threshold value)
Input variable
ANY_ELEMENTARY
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d(LIMIT(_E))
Output
Output variable
ANY_ELEMENTARY
• When the input value of (s2) is larger than the one of (s3), these functions output the input value of (s3) from (d).
• When the input value of (s2) is smaller than the one of (s1), these functions output the input value of (s1) from (d).
• When the input value of (s1)
the input value of (s2)
the input value of (s3), these functions output the input value of (s2) from (d).
s1
d
s2
s3
EN
ENO
d
s1
s2
s3
LIMIT
_MN
_IN
_MX
OUT
-100
120
100
INT
INT
100
INT
(d)
(s1)
(s3)
(s2)
INT
(s1)
(s2)
(s3)
(d)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......