PAC_WriteProfileFile (FB)

FUNCTION_BLOCK PAC_WriteProfileFile

This function block is designed for storing a parison profile created within the profile editor into a file at runtime.

The existing parison profile file with the same name will be overwritten, after this function block executes.

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 to write, 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

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 is going to write into the parison profile file