![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-v2-0/cx-supervisor-v2-0_user-manual_744213310.webp)
OMRON
APPENDIX B – Frequently Asked Questions
Release 2.0
Page 287
Sleep can cause problems during shutdown of the runtime, if a sleeping script is still running.
Q How do I use System points in Visual Basic 'VBScript'?
Access CX-Supervisor points from Visual Basic style scripting called VBScript couldn't be simpler –
just use the point name normally, e.g. MsgBox(MyPoint).
However note that '$' is a reserved character so System Points can be accessed with 's_' prefix instead
e.g. MsgBox(s_Second) for $Second system point.
For up to date information and all help on scripting and the Windows Scripting Host see
http:\\www.microsoft.com/scripting
Q What are the syntax differences between VBScript and CX-Supervisor
script?
VBScript has some minor syntax differences to CX-Supervisor script. The most important are:
•
Boolean equality test == is only = in VBScript.
•
Boolean inequality test != is <> in VBScript.
•
Endif becomes End If in VBScript.
•
Array indexing using ( ) uses square brackets in VBScript [ ]
Note that CX-Supervisor interprets { and } characters as string delimiters, even in VBScript so the
following code does not work:
MsgBox("Press
{Enter}")
'does
not
work
Instead use the following to replace these characters:
MsgBox("Press " + chr(123) + "Enter" + chr(125))
Q Why are ActiveX events shown differently in the Animation Editor and
Property Browser?
New in CX-Supervisor version 1.2 the ActiveX Property Browser has an Events Tab, which allows
the object's events to be linked to scripts. These scripts are defined as VBScript subroutines defined
in the Page Initialisation script.
It is more efficient to load these subroutines once during page initialisation, than every time the event
occurs as per previous versions using the Animation Editor. However, this method is still supported
to allow editing of old projects. This difference is by design and is correct.
Summary of Contents for CX-SUPERVISOR - V2.0
Page 2: ...CX Supervisor User Manual Software Release 2 0...
Page 3: ......
Page 5: ...CX Supervisor User Manual OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor User Manual OMRON Page iv Revision 2 0...
Page 11: ...CX Supervisor User Manual OMRON Page viii Revision 2 0...
Page 13: ...CX Supervisor User Manual OMRON Page x Revision 2 0...
Page 15: ...CX Supervisor User Manual OMRON Page xii Revision 2 0...
Page 17: ...CX Supervisor User Manual OMRON Page xiv Revision 2 0...
Page 19: ...CX Supervisor User Manual OMRON Page xvi Revision 2 0...
Page 21: ...CX Supervisor User Manual OMRON Page xviii Revision 2 0...
Page 23: ......
Page 67: ......
Page 97: ......
Page 137: ...CHAPTER 7 Graphics Library OMRON Page 114 Release 2 0...
Page 183: ...CHAPTER 9 Animation OMRON Page 160 Release 2 0...
Page 215: ......
Page 263: ......
Page 269: ......
Page 274: ...OMRON CHAPTER 16 Connecting to Omron Industrial Components Release 2 0 Page 251...
Page 275: ......
Page 285: ......
Page 319: ......
Page 331: ......
Page 351: ......
Page 359: ...GLOSSARY OF TERMS CX Supervisor User Manual OMRON Page 336 Release 2 0...