FB_TemperatureHmi

FB_TemperatureHmi 1:

HMI parallel class to the FB_Temperature.

Syntax:

FUNCTION_BLOCK FB_TemperatureHmi EXTENDS FB_BaseMdHmi

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

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_TemperatureHmi 3: 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.

FB_TemperatureHmi 4: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_TemperatureHmi

Groups(x)

Returns an interface to the xth temperature group (HMI class).

FB_BaseHmi

Init(ipBase)

Default initialization method to pass the base class.

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_TemperatureHmi 5:

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

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)