FB_PlcStateToHmi

PLC variables for the handshake are available in the FB_PlcStateToHmi function block. The below image shows properties/variables inside this function block.

FB_PlcStateToHmi 1:

Name

Type

Description

AxesInitialized

Bool

Used by the PLC.

BlockedAxisDataPlc

Bool

Used by the PLC.

BlockedTempDataPlc

Bool

Used by the PLC.

ClientID

UINT

The client ID of the client instance that manages the handshake communication.

DataReqFailed

Bool

Indication from the PLC that the data request has failed, need to reset the handshake state machine from the HMI.

DataRequestPlc

Bool

PLC requesting data from the active recipe.

DataRequestPlcActiveHmi

Bool

Is set to TRUE from HMI to inform that the HMI has received the request and is processing the data download to the PLC.

DataRequestPlcQuitHmi

Bool

Is set to TRUE from HMI when all data download is finished.

DataValidPlc

Bool

This is set from PLC to TRUE to indicate that the PLC has received and validated the data from the HMI and it is safe to allow user operations.

LiveSignHMI

UINT

This will be updated from the client that is overseeing the handshake operation, no live sign within a timespan indicates a connection loss.

ProductChangeEnable

Bool

Product change is allowed by the PLC.

ProductChangeRequestHmi

Bool

Request to perform a change of a recipe from the HMI.

ProductChangeConfirmPlc

Bool

Allowing a change of a recipe from the PLC.

Reset

Bool

Reset request from the HMI if the handshake failed and the DataReqFailed flag is set.

SaveDataRequestPlc

Bool

The PLC requests the HMI to save data from the PLC to the recipe.

SaveDataQuitPlc

Bool

HMI sets this variable to indicate the save data request received and completed.