Enableerrorlogging; Logerror; Logevent - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Event/Error Commands

6-13-4 EnableErrorLogging

6-13-5 LogError

6-13-6 LogEvent

Argument
Type
returnstate
bool
Typical Example
DisplayErrorLog()
A list of all currently logged errors is displayed in a dialog.
Syntax
returnstate = EnableErrorLogging(pointname)
Remarks
Argument
Type
returnstate
bool
pointname
bool
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.
Syntax
returnstate = LogError("message", priority)
Remarks
Argument
Type
returnstate
bool
message
string
priority
integer
Typical Example
LogError("This is an error", 1)
The message 'This is an error' appears as a medium priority error in the error
log.
Syntax
returnstate = LogEvent("message")
Remarks
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
A Boolean point.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Contains the text string that is displayed in the
Error Log.
Priority assigned to the error.
0 - low
1 - medium
2 - high
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents