FB_MdTempGroup

FB_MdTempGroup 1:

This machine data component contains parameters that are relevant for a temperature group configuration.

Syntax:

FUNCTION_BLOCK FB_MdTempGroup EXTENDS FB_MdBaseComponent

FB_MdTempGroup 2: Machine data

Index (Identifier)

Parameter

PLC storage location

0x0000 4E1x

GroupName (16 indices)

FB_TemperatureHmi.Groups(x) or <Local> (ReadMode)

0x0000 4E3x

ConfigHash (4 indices)

FB_Temperature.Groups(x) or <Local> (ReadMode)

0x0000 4E5x

ConfigNote (16 indices)

FB_TemperatureHmi.Groups(x) or <Local> (ReadMode)

0x0000 4E60

StartScheduled

FB_TemperatureHmi.Groups(x)

0x0000 4E61

ZonesCount

FB_Temperature.Groups(x) or <Local> (ReadMode)

FB_MdTempGroup 3: Properties

Name

Type

Access

Initial value

Description

Connected

BOOL

Get

FALSE

Component is connected to its dependencies (except for the MD container).

FB_MdTempGroup

AbortAfterLocalData

BOOL

Get, Set

FALSE

The component actively cancels the loading process of the container as soon as the values stored locally in the ReadMode have been loaded from the file.

ConfigHash

T_SHA256

Get, (Set)

0x0

Hash value of the group configuration read in ReadMode.

ConfigNote

STRING(128)

Get

‘‘

Descriptive note of the group configuration read in ReadMode.

GroupName

STRING(128)

Get

‘‘

Name of the group in the group configuration read in ReadMode.

ReadMode

BOOL

Get, Set

FALSE

The class does not transfer the data during the loading process, but saves it locally.

ZonesCount

LREAL

Get

0

Number of zones of the group configuration read in ReadMode.

FB_MdBaseComponent

LinkedContainer

I_MdBaseContainer

Get

NULL

Points to the container to which the component was appended.

Tc3_PlasticFunctions.FB_MdComponent

Further characteristics

<>

<>

<>

Implemented by FB_MdComponent

FB_MdTempGroup 4: Methods

Name

Description

AddNextComponent()

Adds the subsequent component to the component (list).

FB_MdTempGroup

ClearReadValuesRecurse()

Sets the data loaded in ReadMode to the initial value.
The method calls itself recursively for all subsequent elements in the linked container.

Connect(ipTempGroup, ipTempGroupHmi)

Connects the component with the necessary dependencies.

ReadModeRecurse(bReadMode)

Sets the ReadMode equal to the input variable.
The method calls itself recursively for all subsequent elements in the linked container.

FB_MdBaseComponent

[PROTECTED] ConfigCompType(eCompType)

Used with inheriting classes to initialize the encoding offset after E_StandardCompType.

[PROTECTED] ConfigCompTypeEx()

Used with the inheriting class to initialize the encoding offset.

[PROTECTED] NextString(…)

Simplified method for reading a text-based machine data parameter. This method is used within the MdNextParameter(...) Callback method.

[PROTECTED] SetString(…)

Simplified method for writing a text-based machine data parameter. This method is used within the MdSetParameter(...) Callback method.

Tc3_PlasticFunctions.FB_MdComponent

Other methods

Implemented by FB_MdComponent.

FB_MdTempGroup 5: Event-driven methods (callback methods)

Name

Description

MdNextParameter(…)

Container call for saving the parameters in a file, implemented by FB_MdComponent.

MdSetParameter(…)

Container call for loading the parameters into the runtime, implemented by FB_MdComponent.

FB_MdTempGroup 6: Interfaces

Type

Description

I_MdComponent

Standard interface on FB_MdComponent

I_MdTempGroup

Standard interface on FB_MdTempGroup.

I_MdReadMode

Interface to an MD component with ReadMode.

I_MdBaseComponent

Standard interface on FB_MdBaseComponent

Further interfaces

Implemented by FB_MdComponent

Prerequisites

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 (>= v12.10.2.0)