PAC_ReadProfileFile (FB)

FUNCTION_BLOCK PAC_ReadProfileFile

This function block is designed for loading a parison profile at runtime and making it available for the function blocks PAC_ProfileEditor, PAC_ProfileSelect.

The parison profile to be loaded has to be created within the profile editor before and saved in a PPF ( PPF = Parison Profile File) file using PAC_WriteProfileFile.

The size of a loadable profile is limited by the global variable PAC_MAX_PROFILE_POINTS, PAC_MIN_PROFILE_POINTS and PAC_MAX_PHASE_CHECKERS.

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

Note

File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash ()!

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

FALSE

Starts the function block at rising edge

FileName

STRING(255)

‘TestProfile.PPF’

Name of the file, which contains the parison profile in the defined PPF format. The max length of file name supported is 255.

Output

Done

BOOL

FALSE

Shows the status of the function block. Done = TRUE if the execution is finished

Busy

BOOL

FALSE

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

Error

BOOL

FALSE

Signals that error has occurred within function block

AppErrorID

ERROR_ID

ERROR_ID.NO_ERROR

Error identification. For error details refer to Enumeration ERROR_ID

Inout

Profile

PAC_ParisonProfile

Reference to the parison profile which has been initialized according the data read from the parison profile file