FB_TrendHmi

Support class for the TwinCAT HMI SQLiteTrend with pre-implemented views. The TF8550 function TcHmi.Functions.Plastic.UpdateTrend() is required for use. The selected view is additionally determined by the property SelectedView. The following objects with corresponding interface can be attached to the trend:
Type | Display value |
|---|---|
I_ExtruderHmi | Actual turn rate of the extruder [RPM] |
I_MonitoringHmi | Monitoring value [any] |
I_TempChannel | Actual temperature of a temperature channel [°C] |
I_Temperature | Actual temperature of each grouped temperature channel [°C] |
I_TempCtrlHmi 1 | Temperature of each zone [°C] |
1Obsolete
Internal functions:
- The first
xviews are pre-reserved for displaying the temperature groups - Default
x := 5 - Automatically adapting to the set number of groups
- When the FB_Temperature group configuration is changed, the views are automatically adapted as well
- All values attached via
Append()are available for configuration by theConfigXyz()methods
Syntax:
FUNCTION_BLOCK FB_TrendHmi EXTENDS FB_Base
Properties
Name | Type | Access | Initial value | Description |
|---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_TrendHmi | ||||
SelectedView | INT | Get, Set | 0 | Selected view |
UseLocalize | BOOL | Get, Set | FALSE | If TRUE, the TF8550 function Plastic.Localize() is used for all localizations. |
FB_Base | ||||
BaseState | Get | eNotHandled | Initialization state of the class instance. | |
Error | BOOL | Get | FALSE | Class is in an error state. |
ResultMessage | Get | - | Access to the class-internal EventLogger. | |
[ | STRING | Get | <SourceName> |
|
Methods
Name | Description |
|---|---|
Reset() | Resets the error state of the class. |
FB_TrendHmi | |
Appends a value to be recorded in the trend and selected in views. | |
Appends the temperature zones of an FB_Temperature instance | |
[ | Checks the support of the appended object |
ClearView() | Removes all configured values from a view. |
Overwrites the instance name of a display value. | |
Overwrites the instance name of a display value with a translatable localization key. | |
Configures a value in a selectable view. | |
Idx( | Returns the object at the xth position. |
AppendTempZones()1 | Appends the temperature zones of an FB_TempCtrl instance. |
ConfigDisplayLocalisation()1 | Overwrites the instance name with a localization key. |
ConfigDisplayLocalisationNuget()1 | Overwrites the instance name with a localization key from the TF8550.Localisation package. |
![]() | Exceptions avoidance The Idx() function returns the first element (root) of the list on invalid requested index. |
1 Obsolete
Interfaces
Type | Description |
|---|---|
I_Base | Standard interface on FB_Base. |
I_BaseDev | Covers all methods and properties of the base class. |
I_Comparable | Enables comparisons via |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT 4026 >= v3.1.4026.19 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.14.0.0) |
