PAC_ProfileSelect (FB)

FUNCTION_BLOCK PAC_ProfileSelect

This function block selects a parison profile to the profile identifier which can be used by PAC_ParisonControl, and prepares the dispaly data for visualizations to show the newly selected parison profile.

Note

The execution of this function block takes a long time. Do not invoke this function block in the motion solution task

InOut:

Scope

Name

Type

Comment

Input

Execute

BOOL

Starts the function block at rising edge

ContinuousUpdate

BOOL

If this input is set to TRUE, before rising edge on Execute input, then any change to profile points will be detected. This on fly profile points update can be disabled anytime by setting this input to FALSE

ActivationMode

PAC_ACTIVATION_MODE

ActivationMode defines when and where the new data in parison profile will be activated

ActivationPoint

INT

The point of the parison profile which the new data in parison profile will be activated, only valid for activation mode: ACTIVATION_AT_POINT, range: 1 ~ Profile.NumberOfPoints

Output

Done

BOOL

Shows the status of the function block. Done = TRUE if the execution is finished. TRUE only lasts for one cycle when ContinuousUpdate = TRUE.

Busy

BOOL

The function block is not finished, and new output values are to be expected

Error

BOOL

Signals that error has occurred within function block

AppErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

ProfileID

PAC_ParisonProfileID

Refers to prepared data, to be used for PAC_ParisonControl

Inout

Profile

PAC_ParisonProfile

Reference to parison profile

DieAxis

Axis_Ref

Reference to the die axis

DisplayData

PAC_ProfileDisplayData

Reference to the display data