LogAdd
(FUN)
FUNCTION LogAdd : RTS_IEC_RESULT
<SIL2/> Add a new log entry to the log buffer. If the buffer is full when this function is called, the oldest log entry in the buffer will be overwritten.
- InOut:
Scope
Name
Type
Comment
Return
LogAdd
RTS_IEC_RESULT
Returns the runtime system error code (see CmpErrors.library)
Input
hLogger
RTS_IEC_HANDLE
Handle to the logger which was retrieved by LogCreate() or LogOpen(). Use LogConstant.LOG_STD_LOGGER as a pseudo handle to add this log entry to the standard plc logger.
stCmpName
STRING(80)
Component name which describes the source of the log entry.
NOTE: Actually this entry is ignored in the logger! Use LogAdd2() instead!
diClassID
DINT
ClassID of the logger. See LogClass.
diErrorID
DINT
ErrorID of the log entry. See CmpErrors.library.
diInfoID
DINT
ID of the info text to enable multiple language error texts
stInfo
STRING(255)
Logger text which is displayed in the logger