LIMIT
Function - Bounds an integer between low and high limits.
Inputs
Input |
Data type |
Description |
IMIN |
DINT |
Low bound. |
IN |
DINT |
Input value. |
IMAX |
DINT |
High bound. |
Outputs
Output |
Data type |
Description |
Q |
DINT |
IMIN if IN < IMIN; IMAX if IN > IMAX; IN otherwise. |
Function diagram
Remarks
In LD language, the input rung (EN) enables the operation, and the output rung keeps the state of the input rung.
ST Language
Q := LIMIT (IMIN, IN, IMAX);
FBD Language
LD Language
The comparison is executed only if EN is TRUE.
ENO has the same value as EN.
LIMIT |
IEC 61131-3 Automation platform > Programming - Reference guide > Arithmetic operations > LIMIT |
Created with the Personal Edition of HelpNDoc: Easily create Qt Help files