FB_TrendHmi

FB_TrendHmi 1:

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:

Syntax:

FUNCTION_BLOCK FB_TrendHmi EXTENDS FB_Base

FB_TrendHmi 2: 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

E_BaseState

Get

eNotHandled

Initialization state of the class instance.

Error

BOOL

Get

FALSE

Class is in an error state.

ResultMessage

I_AppMessage

Get

-

Access to the class-internal EventLogger.

[PROTECTED] _Name

STRING

Get

<SourceName>

.Name without leading 'fb'.

FB_TrendHmi 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_TrendHmi

Append()

Appends a value to be recorded in the trend and selected in views.

AppendTempChannels()

Appends the temperature zones of an FB_Temperature instance

[PROTECTED] CheckSupport()

Checks the support of the appended object

ClearView()

Removes all configured values from a view.

ConfigDisplayName()

Overwrites the instance name of a display value.

ConfigDisplayLocalize()

Overwrites the instance name of a display value with a translatable localization key.

ConfigView()

Configures a value in a selectable view.

Idx(x)

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.

FB_TrendHmi 4:

Exceptions avoidance

The Idx() function returns the first element (root) of the list on invalid requested index.

1 Obsolete

FB_TrendHmi 5: 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 _IsMyself() or F_IsSameInstance().

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.19
TwinCAT 4024 >= v3.1.4024.71

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.14.0.0)