FB_TemperatureGroup

FB_TemperatureGroup 1:

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

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

T_SHA256

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

T_SHA256

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

I_MdBaseContainer

Get

-

Interface for machine data handling.

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_TemperatureGroup 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_TemperatureGroup

EnablePLC(bCmd)

Enables all zones of the group on the PLC side.

Force(bHeating, bCooling)

Forces all zones of the group to heating/cooling 100%.

UpdateGroup()

Updates the internal listing of the assigned groups.

Zones(x)

Returns an interface to the xth zone of the group.

FB_BaseMd

[PROTECTED] AddMdComp()

Adds a component of type I_MdComponent to the machine data container.

FB_Base

SetHMI(ipBase)

General assignment method for an FB_BaseHmi extending class.

Notice This method always fails in the FB_Base implementation. Overwriting is therefore absolutely necessary.

[PROTECTED] _QueryNamespace()

Extracts the first part of the instance path as an object namespace.

[PROTECTED] _QueryObjectName()

Extracts the last part of the instance path as the object name.

FB_TemperatureGroup 4:

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.

FB_TemperatureGroup 5: Procedure controlling methods (FB_AdaptableSequence)

Type

Description

GroupStates()

Procedure for loading, executing and saving tuning.

FB_TemperatureGroup 6: 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

FB_TemperatureGroup 7: Machine data

Component

Description

Index range

Number of instances

FB_MdFileInfo

File information

0x0000 Fxxx

1

FB_MdTempGrouping

Parameters of the configured zones of a group

0x0000 4xxx

Up to 20 (Default)

FB_TemperatureGroup 8: 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)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)