LIMIT block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
currently restricted |
Graphical interface |
|
Available since |
version 1.22.0 (for Neuron Power Engineer) |
Functionality
The block limits a value to defined limits (minimum and maximum value): MIN(MAX(IN, MN),MX)
You connect a value at input IN
. If the value of IN
exceeds the maximum value connected at input MX
, the block returns the value of MX
. If the value of IN
is below the minimum value connected at input MN
, the block returns the value of MN
. If the value of IN
is within the defined limits or it is equal to one of the limits, the block returns the value of IN
.
Special cases (see under "Example for usage within ST-editor"): If the minimum value exceeds the maximum value, the block always returns the value of MX
.
Bitstring values (= ANY_BIT
values; see →generic data type} are treated like unsigned →integer values by the block. This behavior is a specification according to the →IEC-standard.
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
minimum value |
|
|
value |
|
|
|
maximum value |
|
Return value: |
– |
|
|
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.