Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

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.

DebugMsg, DebugMsgSet, CodeTrace, TraceMsg, Halt

Example

FUNCTION MyFunc(INT Arg)

IF Arg<0 THEN

ErrLog("Invalid arg in Myfunc");

Halt();

END

END

See Also

Error Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in