Limiter

This function block limits the range of the input signal INP to a defined minimum and maximum.

If the value INP is within the given range, it will be set to the output OUT. If the input exceeds the maximum, only the maximum will be set to the output OUT and the signal Qo will set to HIGH. If INP falls below the minimum, only the minimum will set to the output OUT and the signal Qu will set to HIGH.

If the value of MIN is greater than MAX, the value of MAX will be send to the output OUT and both outputs Qu and Qo will set to HIGH.

Operation

Condition Qu Qo OUT
INP <= MIN 1 0 MIN
MIN < INP < MAX 0 0 INP
MAX <= INP 0 1 MAX
MAX < MIN 1 1 MAX

Characteristic:

Signals

Name I/O Type(s) Function
INP I BYTE, UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE Input signal
MIN I BYTE, UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE Lower limit
MAX I BYTE, UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE Upper limit
OUT O BYTE, UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE Output signal
Qu O BIT Minimum reached
Qo O BIT Maximum reached

Parameters

The parameter dialog can be used to select a data type.

Comments

If no connection exists, another data type can be assigned by creating a new connection.

If the data type is changed by the parameter dialog, all invalid connections will be deleted.

The data type BYTE is used as unsigned.