LoggingInit
(FUN)
FUNCTION LoggingInit : Error
Configures and activates logging of PLCHandler messages into a logfile.
Note
If logging is necessary, then this method should be called immediately after the call to CreateInstance.
- InOut:
Scope
Name
Type
Comment
Return
LoggingInit
An errorcode representing the result of this operation. If the call is not done at the correct point of time, then Error.Busy is returned.
Input
hPlcHandler
SysTypes.RTS_IEC_HANDLE
The instance to initialize logging on
logFilter
UDINT
The active filter for log messages. For details of the messages classes have a look at the PLCHandler documentation.
Inout Const
logFile
STRING(255)
The path of the logfile to store the messages in