ErrLog
- Last UpdatedJul 18, 2023
- 1 minute read
Logs a message to the Plant SCADA system log file.
This function is useful for logging errors in user functions, and for debugging user functions. The Plant SCADA system log file 'SYSLOG.DAT' is created in the local Windows directory of the computer, %PROGRAMDATA%\AVEVA Plant SCADA <VersionNumber>\Logs.
Syntax
ErrLog(Message)
Message:
The message to log. This field can also contain control (such as /n) and formatting characters.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
DebugMsg, DebugMsgSet, CodeTrace, TraceMsg, Halt
Example
FUNCTION MyFunc(INT Arg)
IF Arg<0 THEN
ErrLog("Invalid arg in Myfunc");
Halt();
END
END