Event/Error Commands SECTION 6 Functions and Methods
93
Typical Example
DisplayErrorLog()
A list of all currently logged errors is displayed in a dialog.
6-13-4 EnableErrorLogging
Syntax
returnstate = EnableErrorLogging(pointname)
Remarks
Typical Example
EnableErrorLogging(flag)
Error Logging is enabled based on the Boolean point 'flag'. If 'flag' is 'TRUE',
then error logging is enabled. If 'flag' is false, then error logging is disabled.
6-13-5 LogError
Syntax
returnstate = LogError("message", priority)
Remarks
Typical Example
LogError("This is an error", 1)
The message 'This is an error' appears as a medium priority error in the error
log.
6-13-6 LogEvent
Syntax
returnstate = LogEvent("message")
Remarks
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
pointname bool A Boolean point.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
message string Contains the text string that is displayed in the
Error Log.
priority integer Priority assigned to the error.
0 - low
1 - medium
2 - high