Overview
Type:
|
Function
|
Available as of:
|
SystemInterface_1.32.6.0
|
Versions:
|
Current version
|
Task
Save the message log file on the bulk memory (for example, flash disk of the PacDrive LMC600).
Description
The content of the message log file is stored as a file on the bulk memory under the name i_sFilename. The file name is assigned automatically the file name extension ".mel".
A default name consists of one to eight characters (A ... Z, 0 ... 9). The device name "ide0:" and the file name extension are appended by the system.
A complex name consists of device name, file name, and file name extension.
If i_xReset is set to TRUE, the content of the message log file is deleted after having stored the file.
Messages that occur while the FC_MsgLogSave() function is being processed are kept.
NOTE: The processing time of this function is a few hundred milliseconds. There must be a one-time increase in the times for the cycle check of the task in which the function is executed. For example FC_CycleCheckTimeSet(500, 2).
Interface
Input
|
Data type
|
Description
|
i_sFilename
|
STRING [80]
|
Name of the saved file
|
i_xReset
|
BOOL
|
If TRUE, then the contents of the message log file is deleted after saving the file (as i_sFilename)
|
Return Value
Data type
|
Description
|
DINT
|
0: OK
-1: File not written
|