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
LogAddRTS_IEC_RESULTReturns the runtime system error code (see CmpErrors.library)
Input
hLoggerRTS_IEC_HANDLEHandle 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.
stCmpNameSTRING(80)Component name which describes the source of the log entry.
NOTE: Actually this entry is ignored in the logger! Use LogAdd2() instead!
diClassIDDINTClassID of the logger. See LogClass.
diErrorIDDINTErrorID of the log entry. See CmpErrors.library.
diInfoIDDINTID of the info text to enable multiple language error texts
stInfoSTRING(255)Logger text which is displayed in the logger