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

Fixed_Image

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

Fixed_Image

LD Language

The comparison is executed only if EN is TRUE.
ENO has the same value as EN.

Fixed_Image

Fixed_Image See also

MIN  MAX  MOD  ODD

 


Created with the Personal Edition of HelpNDoc: Easily create Qt Help files