OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 99
EnableErrorLogging
Syntax
returnstate = EnableErrorLogging(pointname)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
pointname
bool
A Boolean point.
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 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.
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”)
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...