FB_BA_Trend
The function block FB_BA_Trend represents a trend within the project structure of TF8040.
Illustration
FUNCTION_BLOCK FB_BA_Trend EXTENDS FB_BA_EventObject IMPLEMENTS I_BA_Trend
VAR_OUTPUT
nRecordCount : UDINT;
nTotalRecordCount : UDINT;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
{region 'Fixed Parameters'}
nBufferSize : UDINT := BA_Param.nTrend_BufferSize;
{endregion}
{region 'Variable Parameters'}
aLogBuffer : T_BA_TrendLogBuffer;
bEnable : BOOL;
stStartTime : ST_BA_DateTime := BA_Param.stTrend_DefStartTime;
stStopTime : ST_BA_DateTime := BA_Param.stTrend_DefStopTime;
bStopOnFull : BOOL := BA_Param.bTrend_DefStopOnFull;
nLogInterval : UDINT := BA_Param.nTrend_DefLogInterval;
nNotificationThreshold : UDINT := BA_Param.nTrend_DefNotificationThreshold;
eLoggingType : E_BA_LoggingType := BA_Param.eTrend_DefLoggingType;
stReferencedParam : ST_BA_ObjectParameter;
{endregion}
END_VAR
VAR_OUTPUT
Name | Type | Description |
---|---|---|
nRecordCount | UDINT | Number of records. |
nTotalRecordCount | UDINT | Absolute number of records. |
VAR_INPUT CONSTANT PERSISTENT
Name | Type | Description |
---|---|---|
nBufferSize | UDINT | Size of the buffer. |
aLogBuffer | ST_BA_TrendEntry | Ring buffer for values with timestamp. |
bEnable | BOOL | Recording enable. |
stStartTime | Start time. | |
stStopTime | Stopping time. | |
bStopOnFull | BOOL | A TRUE stops the recording when the buffer is full. |
nLogInterval | UDINT | Interval for saving the parameters. |
nNotificationThreshold | UDINT | Limit value at which notifications are triggered. |
eLoggingType | Setting the type of saving. | |
stReferencedParam | Parameter object. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.35 | Tc3_XBA from v5.3.0.0 |