Breadcrumbs

AuditTrail (FB)

Function module for AuditTrail Handling. 

This module is already instantiated in the library as global variable g_AuditTrail.


Syntax

  FbAuditTrail.bmp


C++
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:
DATACOLLECTOR_DATALIMIT_NONE: No limit
DATACOLLECTOR_DATALIMIT_ENTRIES: Number of Entries
DATACOLLECTOR_DATALIMIT_SIZE: size of the file 

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
Here you can optionally refer to your own comment dialog.
In case of an own dialog, the interface as used in the dialog 'AuditTrail.InputAudit' must be adhered to. 

m_bUseCommentDialog 

Activating/deactivating the comment function in the CODESYS Visu 

sErrMsg 

Error messages as text.



Example

See: AuditTrailSample.project



Requirements



Remarks