Function module for AuditTrail Handling.
This module is already instantiated in the library as global variable g_AuditTrail.
Syntax
FUNCTION_BLOCK AuditTrail IMPLEMENTS VisuElems.IValueChangedListener
VAR_INPUT
m_sDatabase : STRING := '\mnplc\plclogic\AuditTrail.db';
m_DatabaseLimit : DATACOLLECTOR_DATALIMIT := DATACOLLECTOR_DATALIMIT.DATACOLLECTOR_DATALIMIT_NONE;
m_dwDatabaseSize : DWORD := 10000;
m_ItfAudiTrail : ItfAudiTrail;
m_sCommentDialog : STRING := 'AuditTrail.InputAudit'
m_bUseCommentDialog : BOOL := TRUE;
END_VAR
VAR_OUTPUT
sErrMsg: STRING(255); // Error Messages
END_VAR
Parameters
|
Parameter |
Beschreibung |
|---|---|
|
m_sDatabase |
Path and name of the AuditTrail database |
|
m_DatabaseLimit |
Limit entry:
|
|
m_dwDatabaseSize |
Value for m_DatabaseLimit |
|
m_ItfAudiTrail |
Interface for Callback Functions of the Audit Trail |
|
m_sCommentDialog |
Comment Dialog Name in the CODESYS Visu
|
|
m_bUseCommentDialog |
Activating/deactivating the comment function in the CODESYS Visu |
|
sErrMsg |
Error messages as text. |
Example
See: AuditTrailSample.project
Requirements
Remarks