FB_TemperatureGroup
Class for group control of the temperature channels. The internal processing of the configuration can be traced using the state machine in GroupStates().
Syntax:
FUNCTION_BLOCK FB_TemperatureGroup EXTENDS FB_BaseMd
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_TemperatureGroup | ||||
AlarmAbsoluteHigh | BOOL | Get | FALSE | Group (at least one channel) has exceeded the absolute maximum temperature. |
AlarmAbsoluteLow | BOOL | Get | FALSE | Group (at least one channel) has fallen below the absolute temperature minimum. |
AlarmHighHigh | BOOL | Get | FALSE | Group (at least one channel) has exceeded the HighHigh tolerance. Alarms to the tolerance values are only active if the zones are actively controlled. |
AlarmHigh | BOOL | Get | FALSE | Group (at least one channel) has exceeded the High tolerance. Alarms to the tolerance values are only active if the zones are actively controlled. |
AlarmLow | BOOL | Get | FALSE | Group (at least one channel) has fallen below the Low tolerance. Alarms to the tolerance values are only active if the zones are actively controlled. |
AlarmLowLow | BOOL | Get | FALSE | Group (at least one channel) has fallen below the LowLow tolerance. Alarms to the tolerance values are only active if the zones are actively controlled. |
AlarmNoResponse | BOOL | Get | FALSE | Temperature value of the group (at least one channel) does not respond to the control. |
AttachableMdInterface | I_MdComponent | Get | - | Interface to the machine data component. |
ConfigHash | Get | 0x0 | Hash value of the current group configuration. | |
ConfigID | UINT | Get | 0 | ID of the group configuration (incremental). |
EnableConfigConfirmation | BOOL | Get | FALSE | Confirmation is required to load a new configuration. |
EnableLimitAlarms | BOOL | Get, Set | FALSE | Exceeding a tolerance value/limit triggers an alarm. |
Fault | BOOL | Get | FALSE | Group (at least one channel) has an error. |
Index | INT | Get | 0 | Index (ID) of the group. |
IsActive | BOOL | Get | FALSE | Group (at least one channel) is actively controlled. |
IsEnabled | BOOL | Get | FALSE | All channels of the group are enabled. |
IsStandby | BOOL | Get | FALSE | All channels of the group are in standby mode. |
LoadHash | Get | 0x0 | Hash value of the last configuration loaded from a file. | |
ZonesCount | INT | Get | 0 | Number of zones in the group. |
FB_BaseMd | ||||
MachineData | Get | - | Interface for machine data handling. | |
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_TemperatureGroup | |
EnablePLC( | Enables all zones of the group on the PLC side. |
Force( | Forces all zones of the group to heating/cooling 100%. |
UpdateGroup() | Updates the internal listing of the assigned groups. |
Zones( | Returns an interface to the xth zone of the group. |
FB_BaseMd | |
[ | Adds a component of type I_MdComponent to the machine data container. |
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. |
Procedure controlling methods (FB_AdaptableSequence)
Type | Description |
---|---|
Procedure for loading, executing and saving tuning. |
Possible events
ID | Description | Alarm/Message |
---|---|---|
20x | Invalid interface queried | Message |
401x | Temperature operation monitoring | Alarm |
402x | Tuning parameters loading process | Alarm + Message |
403x | Tuning parameters saving process | Alarm + Message |
404x | File operation not available | Alarm |
Machine data
Component | Description | Index range | Number of instances |
---|---|---|---|
File information | 0x0000 Fxxx | 1 | |
Parameters of the configured zones of a group | 0x0000 4xxx | Up to 20 (Default) |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_TemperatureGroup | Standard interface on FB_TemperatureGroup. |
I_AttachableMdInterface | Interface for containerless machine data components. |
I_BaseMd | Standard interface on FB_BaseMd. |
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) |