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
LoggingInitAn 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
hPlcHandlerSysTypes.RTS_IEC_HANDLEThe instance to initialize logging on
logFilterUDINTThe active filter for log messages. For details of the messages classes have a look at the PLCHandler documentation.
Inout Const
logFileSTRING(255)The path of the logfile to store the messages in