FB_TemperatureHmi
HMI parallel class to the FB_Temperature.
Syntax:
FUNCTION_BLOCK FB_TemperatureHmi EXTENDS FB_BaseMdHmi
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_TemperatureHmi | ||||
AlarmAbsoluteHigh | BOOL | Get | FALSE | A channel (InUse = TRUE) has exceeded the absolute temperature maximum. |
AlarmAbsoluteLow | BOOL | Get | FALSE | One channel (InUse = TRUE) has fallen below the absolute temperature minimum. |
AlarmHighHigh | BOOL | Get | FALSE | At least one channel with active control has exceeded the HighHigh tolerance. |
AlarmHigh | BOOL | Get | FALSE | At least one channel with active control has exceeded the High tolerance. |
AlarmLow | BOOL | Get | FALSE | At least one channel with active control has fallen below the Low tolerance. |
AlarmLowLow | BOOL | Get | FALSE | At least one channel with active control has fallen below the LowLow tolerance. |
CountPfwChannels | LREAL | Get | 20.0 | Number of available TF8540 temperature channels. |
EnableRecipe | BOOL | Get, Set | TRUE | Enables recipe handling via I_Recipe. |
TempAmbient | LREAL | Get, Set | 18.0 | Standard ambient temperature (for simulation). |
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> |
|
Local HMI variables
Name | Data type | Description |
---|---|---|
fbParamHandle | FB_MdHandleHmi | Handling interface for loading and saving machine data. |
aChannels | ARRAY [] OF FB_TempChannelHmi | Array to the temperature channels. |
aGroups | ARRAY [] OF FB_TemperatureGroupHmi | Array to the groups. |
aRecipe | ARRAY [] OF FB_TempRecipe | Array of the recipe values of all temperature channels. |
fbParamTempChannel | ARRAY [] OF FB_MdTempChannelHmi | Array to the machine data of a temperature channel. Only intended for use with the FillParamTable function. |
fbParamTempSupply | ARRAY [] OF FB_MdTempSupplyHmi | Array to the machine data of a temperature supply channel. Only intended for use with the FillParamTable function. |
Methods
Name | Description |
---|---|
Reset() | Resets the error state of the class. |
FB_TemperatureHmi | |
Groups( | Returns an interface to the xth temperature group (HMI class). |
FB_BaseHmi | |
Init( | Default initialization method to pass the base class. |
FB_Base | |
SetHMI( | General assignment method for an FB_BaseHmi extending class. |
[ | Extracts the first part of the instance path as an object namespace. |
[ | Extracts the last part of the instance path as the object name. |
Exceptions avoidance The list access functions (e.g. Channels(x), Groups(x), etc...) return a pseudo variable if the requested index is invalid. In addition, a message is thrown in the EventLogger. |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_TemperatureHmi | Standard interface on FB_TemperatureHmi. |
I_Recipe | Interface for managing structured recipe values. |
I_BaseMdHmi | Standard interface on FB_BaseMdHmi. |
I_BaseHmi | Standard interface on FB_BaseHmi. |
I_BaseEmpty | For extension without standard interface. |
I_BaseDev | Covers all methods and properties of the base class. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.7.0) |