Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual
Page 92

Function Block Library
4–30
1336 FORCE — 5.9 August 1995
LIMIT
BLOCK TYPE 12 decimal 0C hexadecimal
Limit
ID =
Exec =
Output
NODE 0
Input 1
NODE 1
NODE 5
Min Lim
NODE 4
Max Lim
NODE 3
Max Val
NODE 2
Min Val
DEFINITION
Limits an input Input 1 to the programmed maximum Max Val and
minimum Min Val values.
INPUTS
Input 1 — A signed integer that is limited.
Max Val — A signed integer that represents a maximum input value.
Min Val — A signed integer that represents a minimum input value.
OUTPUTS
Max Lim — High limit flag that is true when Input 1 > Max Val.
Min Lim — Low limit flag that is true when Input 1 < Min Val.
Output — A signed integer that results from limiting Input 1.
FUNCTION
1. If Input 1 < Min Val, then Output = Min Val and Min Lim is
true.
2. If Input 1 > Max Val, then Output = Max Val and Max Lim is
true.
3. If Input 1 < Max Val and > Min Val, then both are false and
Output = Input 1.
PARAMETERS
DATA TYPE
LINKABLE
DEFAULT VALUE
RANGE
Input 1
Signed Integer
Yes
0
±
32767
Max Val
Signed Integer
Yes
0
±
32767
Min Val
Signed Integer
Yes
0
±
32767
Max Lim
Logic Output
No
—
True/False
Min Lim
Logic Output
No
—
True/False
Output
Signed Integer
No
—
±
32767
EXAMPLES
EXAMPLE 1
EXAMPLE 2
EXAMPLE 3
Input 1
5
11
5
Max Val
10
10
– 10
Min Val
– 25
– 25
10
Max Lim
False
True
True
Min Lim
False
False
False
Output
5
10
– 10