Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 112

Script language
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents