FC_SafetyLogSave - General Information
Type: |
Function |
Available as of: |
SystemInterface_1.56.3.2 |
Versions: |
Current version |
Save the safety log file on the bulk memory (for example, flash disk of the PacDrive LMC600).
The content of the safety log file is saved as an XML file on the bulk memory in the path ide0:/SafeLog.
The file name is generated by using existing files and by using the number of log entries. A file name consists of 15 characters, for example Log00000005_035. It starts with Log and the file number that is incremented for each new file. The last three characters indicate the number of log entries. The name of the last file saved successfully is returned in the string i_sFilename.
NOTE: The processing of this function can take a few hundred milliseconds. Therefore, the duration for the cycle monitoring of the task, intended for executing this function, should be increased once. For example FC_CycleCheckTimeSet(500, 2).
Input |
Data type |
Description |
---|---|---|
i_sFilename |
STRING [80] |
Name of the saved file |
Data type |
Description |
---|---|
DINT |
0: OK -1: File not written, no new log -2: No SLC (Safety Logic Controller) configured -99: File not written, internal error detected |