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
ExecuteBOOLFALSE
Starts the function block at rising edge
FileNameSTRING(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
DoneBOOLFALSE
Shows the status of the function block. Done = TRUE if the execution is finished
BusyBOOLFALSE
The function block is not finished
ErrorBOOLFALSE
Signals that error has occurred within function block
AppErrorIDERROR_ID.NO_ERROR
Error identification. For error details refer to Enumeration ERROR_ID
Inout
ProfileReference to the parison profile which is going to write into the parison profile file