Description

Used to limit a value within a preset range.

Function

This function block is used to limit a value within a preset range. It takes the minimum value if the input is less than the minimum value, the maximum value if the input is greater than the maximum value, and the input value if it is within the preset range.

Input

PIN

Description

INPUT

Analog input requiring a limit operation

Limit1

Preset limit 1

Limit2

Preset limit 2

Output

PIN

Description

Output

Output value calculated from the limit operation

Input value

PIN

Data type

Unit

Default value

Range

INPUT

Analog

N/A

N/A

-999999...999999

Limit1

Analog

N/A

N/A

-999999...999999

Limit2

Analog

N/A

N/A

-999999...999999

Output value

PIN

Data type

Unit

Default value

Range

Output

Analog

N/A

N/A

-999999...999999

Example

Y is limited to a value between b and a (a > b); if x < b, Y = b; if x > a, Y = a; if b ≤ x ≤ a, Y = x.