FB_MdTempGrouping

FB_MdTempGrouping 1:

This machine data component contains parameters that are relevant for managing the temperature channels in a group. This creates compatibility with FB_MdTempChannel so that parameters of a temperature channel can be loaded.

Syntax:

FUNCTION_BLOCK FB_MdTempGrouping EXTENDS FB_MdTempChannel

FB_MdTempGrouping 2: Machine data

Index (Identifier)

Parameter

PLC storage location

0x0000 4010

GroupID (ModuleID)

FB_Temperature.Channel(x)

0x0000 4040

TuningLastExecution

FB_Temperature.Channel(x)

0x0000 4041

TuningRequired

0x0000 4050

ConfigID

0x0000 4051

ChannelIdx

0x0000 4011

ZoneID

FB_Temperature.Channel(x)

0x0000 4012

SupplyID

0x0000 4013

ExtruderID

0x0000 4020

OutputSel_C

0x0000 4021

OutputSel_H

0x0000 4022

OutputDelay

0x0000 403x

ZoneName (15 indices)

0x0000 4040

TuningLastExecution

0x0000 4041

TuningRequired

0x0000 4050

ConfigID

0x0000 4051

ChannelIdx

0x0000 4100

TempSensTerm

0x0000 4101

SensorType

0x0000 4102

TermChannel

0x0000 4103

TuningMethod

0x0000 4110

ColdJunction.CompMode

0x0000 4111

ColdJunction.CompZone

0x0000 4112

CoolerSwapIdx

0x0000 4113

HeaterSwapIdx

0x0000 4114

SensTermSwapIdx

0x0000 4160

SensorOffset

0x0000 4161

SensorLowerRange

0x0000 4162

SensorUpperRange

0x0000 4163

ActTempGain

0x0000 4164

ActTempOffset

0x0000 4200

InUse

0x0000 4201

Enable

0x0000 4202

UseCooling

0x0000 4203

TuneCooling

0x0000 4204

ForcedCoolingEnabled

0x0000 4205

ExtruderCompEna

0x0000 4206

EnableErrorHeating

0x0000 4207

NoFanWhileTrackdown

0x0000 4208

OpenLoopHeating

0x0000 4209

TuneExtruderComp

0x0000 420A

TuneHeaterLoad

0x0000 420B

TuneIdleLoad

0x0000 4210

HibernateICtrlHeat

0x0000 4211

HibernateICtrlCool

0x0000 4212

HighPrecision

0x0000 4213

DisableAutoStep

0x0000 4214

DisableTerminalCom

0x0000 4300
0x0000 4301

Kp (Heat/Cool)

0x0000 4302
0x0000 4303

Td (Heat/Cool)

0x0000 4304
0x0000 4305

Tn (Heat/Cool)

0x0000 4306
0x0000 4307

Tv (Heat/Cool)

0x0000 4308
0x0000 4309

Kff (Heat/Cool)

0x0000 430A

ICtrlLimit

0x0000 4320

TuneEnd

0x0000 4321

TuneKp

0x0000 4322

TuneTd

0x0000 4323

TuneTn

0x0000 4324

TuneTv

0x0000 4325

TuneY

0x0000 4326

Overshoot

0x0000 4327

dTmax

0x0000 4328

TuneTrackingTd

0x0000 4329

TrackingRate

0x0000 432A

WeightingCooling

0x0000 432B

ErrorHeatingFactor

0x0000 4340

RampingRate

0x0000 4341

RampingTolerance

0x0000 4342

RampingRateCooling

0x0000 4350

TrackingTd

0x0000 4351

SettlingTime

0x0000 4352

LoadIdle

0x0000 4360

ForcedCoolingOffTime

0x0000 4361

ForcedCoolingOnTime

0x0000 4370

ExtruderComp

0x0000 4400

SupplyLoadHeater

0x0000 4401

SupplyLoad

0x0000 4402

SupplyLoadCooler

0x0000 4410

AbsoluteHigh

0x0000 4411

AbsoluteLow

0x0000 4500

PwmMinOnTime

0x0000 4501

PwmMaxOnTime

0x0000 4503

PwmFactorCooling

0x0000 4010

GroupID (ModuleID)

<Local> (ReadMode)

0x0000 4050

ConfigID

0x0000 4051

ChannelIdx

FB_MdTempGrouping 3: Properties

Name

Type

Access

Initial value

Description

Connected

BOOL

Get

FALSE

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

FB_MdTempGrouping

ChannelIdx

INT

Get

0

Channel index that was read in ReadMode.

ConfigID

UDINT

Get

0

ID of the group configuration (incremental) that was read in ReadMode.

GroupID

INT

Get

0

Index (ID) of the group that was read in ReadMode.

OverflowMode

BOOL

Get, Set

FALSE

Overflow mode: The component can read ReadMode data without a connected channel

ReadMode

BOOL

Get, Set

FALSE

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

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_MdTempGrouping 4: Methods

Name

Description

AddNextComponent()

Adds the subsequent component to the component (list).

FB_MdTempGrouping

ClearChain()

Overwritten FB_MdComponent method, which additionally disables OverflowMode and ReadMode and triggers the method ClearReadValuesRecurse().

ClearReadValuesRecurse()

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

ReadModeRecurse(bReadMode)

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

SyncConfig()

Adopts the configuration from the ReadMode.

FB_MdTempChannel

ConnectChannel(ipChannel)

Connects the component with the necessary dependency.

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_MdTempGrouping 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_MdTempGrouping 6: Interfaces

Type

Description

I_MdComponent

Standard interface on FB_MdComponent

I_MdTempGrouping

Standard interface on FB_MdTempGrouping.

I_MdReadMode

Interface to an MD component with ReadMode.

I_MdTempChannel

Standard interface on FB_MdTempChannel.

I_MdTempZone

Standard interface on FB_MdTempZone.

I_MdBaseComponent

Standard interface on FB_MdBaseComponent

Further interfaces

Implemented by FB_MdComponent

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)