FB_PlcStateToHmi

FB_PlcStateToHmi 1:

Implements the handshake procedure for the TF8550 recipe management on the PLC side.

Syntax:

FUNCTION_BLOCK FB_PlcStateToHmi EXTENDS FB_BaseHmi

FB_PlcStateToHmi 2: Properties

Name

Type

Access

Initial value

Description

PLC / HMI2

AxesInitialised

BOOL

Get, Set

FALSE

Axes have been initialized, the recipe may be initialized.

PLC

ClientID

UINT

Get, Set

0

ID of the currently connected HMI client.

HMI

DataReqFailed

BOOL

Get, Set

FALSE

Errors in communication. The PLC is waiting for a reset.

PLC

DataRequestPlc

BOOL

Get, Set

FALSE

Requesting data during the start-up phase or a product change.

PLC

DataRequestPlcActiveHmi

BOOL

Get, Set

FALSE

Writing recipe data to the PLC active.

HMI

DataRequestPlcQuitHmi

BOOL

Get, Set

FALSE

Writing of recipe data to the PLC completed.

HMI

DataValidPlc

BOOL

Get, Set

FALSE

The recipe data has been loaded completely.

PLC

LiveSignHMI

UINT

Get, Set

0

Changing value of the HMI client to signal an active connection.

HMI

PlcInitialized

BOOL

Get, Set

FALSE

Alias to AxesInitialized.

PLC

ProductChangeConfirmPlc

BOOL

Get, Set

FALSE

The request to change the product is accepted.

PLC

ProductChangeEnable

BOOL

Get, Set

FALSE

Signals the possibility to change the recipe to the HMI.

PLC

ProductRequestHmi

BOOL

Get, Set

FALSE

Requests of a product change.

HMI

Reset

BOOL

Get, Set

FALSE

Request for reinitialization of the recipe.

HMI

SaveDataQuitPlc

BOOL

Get, Set

FALSE

Confirms the processing of a recipe storage.

HMI

SaveDataRequestPlc

BOOL

Get, Set

FALSE

Request to save the recipe.

PLC

VersionBaseApplication

STRING

Get

'v0.0.0.0'

Plastic Base Application version.

PLC

VersionTF8540

STRING

Get

'v0.0.0.0'

Version of the Temperature Control (TF8540, Plastic Processing Framework)

PLC

VersionTF8560

STRING

Get

'v0.0.0.0'

Plastic Technology Functions version (TF8560).

PLC

VersionPlasticFunctions1

STRING

Get

'v0.0.0.0'

Plastic Technology Functions version (TF8560).

PLC

1Is obsolete

2The PLC/HMI column describes the assignment of the write access.

FB_PlcStateToHmi 3: Methods

Name

Description

DeclareBeta()1

Adds a beta label to the display version of the Plastic Base Application.

1Is obsolete

FB_PlcStateToHmi 4: Interfaces

Type

Description

I_RecipeState

Interface for the handshake variables to be processed in the main procedure.

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