Logs a message to the Citect SCADA system log file.
This function is useful for logging errors in user functions, and for debugging user functions. The Citect SCADA system log file 'SYSLOG.DAT' is created in the local Windows directory of the computer,
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
See Also
Published June 2018