FB_Temperature
Main class of temperature control to manage all temperature channels and groups.
Internal functions:
- Handling of the TcPfw temperature control (TF8540)
- Integrated data handling of grouping settings
- Management of individual sub-elements such as:
- Temperature groups
- Supply channels
- Scheduler
Syntax:
FUNCTION_BLOCK FB_Temperature EXTENDS FB_BaseMd
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_Temperature | ||||
DisableAlarms | BOOL | Get, Set | FALSE | Suppresses alarms triggered by errors of a temperature channel. |
DisableMessages | BOOL | Get, Set | FALSE | Suppresses debug messages of the TF8540 library. |
EnableCallback | BOOL | Get, Set | TRUE | Enables communication with the I/O components. |
EnableConfig | BOOL | Get, Set | TRUE | Enables the configuration of all temperature channels. |
EnableLooptest | BOOL | Get, Set | FALSE | Enables current monitoring of all zones. |
LibScopeVars | REFERENCE TO FB_Scope_TempCtrlVariables | Get | - | Access to an overview of TF8540 live data. |
Timer | Get | NULL | Access to the connected scheduler. | |
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_Temperature | |
Channels( | Returns an interface to the xth temperature channel of TF8540. |
Creates a default parameterization for all temperature channels. | |
Enables all temperature channels on the PLC side. | |
Groups( | Returns an interface to the xth temperature group. |
Assigns a linear arrangement of temperature channels to a group. | |
Assigns a group to a supply channel. | |
Assigns a temperature channel to a group. | |
SetScheduler( | Assigns a schedule to the temperature control. |
Sets all temperature channels to standby. | |
Supply( | Returns an interface to the xth supply unit. |
SupplyLines( | Returns an interface to the xth supply channel. |
UnlinkGroup( | Removes all temperature channels from the xth 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. |
Cycle methods
Name | Description |
---|---|
Cyclic() | Slow cycle method (default 25 ms) |
Possible events
ID | Description | Alarm/Message |
---|---|---|
20x | Invalid interface queried | Message |
Machine data
Component | Description | Index range | Number of instances |
---|---|---|---|
File information | 0x0000 Fxxx | 1 | |
Parameters of the supply units | 0x0000 4Dxx | ||
Grouping configuration | 0x0000 4Exx |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_Temperature | Standard interface on FB_Temperature. |
I_TempTaskInterface | Runtime interface for a slow PLC task. |
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.42 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.6.0) |