ST_BA_LimitParameter

This structure contains the data and commands for limit value monitoring. It can be used for upper or lower monitoring of analog values.

Limit value monitoring is only enabled if the variable bEnable is TRUE.

Upper limit value monitoring

The upper limit value monitoring is enabled when the value fValue is reached or exceeded and the time delay nTimeAbnormal has elapsed.

The active limit value monitoring is reset when the value of (fValue - fDeadband) has been reached or undershot and the time delay nTimeToNormal has elapsed.

Lower limit monitoring

The lower limit value monitoring is enabled when the value fValue is reached or undershot and the time delay nTimeAbnormal has elapsed.

The active limit value monitoring is reset when the value of (fValue + fDeadband) has been reached or exceeded and the time delay nTimeToNormal has elapsed.

Syntax

TYPE ST_BA_LimitParameter :
STRUCT
  bEnable                : BOOL;
  fValue                 : REAL;
  fDeadband              : REAL;
  nTimeToAbnormal        : UDINT;
  nTimeToNormal          : UDINT;
END_STRUCT
END_TYPE

Name

Type

Description

bEnable

BOOL

Limit value monitoring is enabled when the variable is TRUE.

fValue

REAL

Limit value to be monitored.

fDeadband

REAL

Absolute value, which is added to or subtracted from the limit value fValue depending on the application.

nTimeToAbnormal

UDINT

Time delay [s] for detecting an abnormal state.

nTeimeTonormal

UDINT

Time delay [s] for detecting a normal state.