OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 129
Execute
Description
Execute a method of an OLE object.
Syntax
Execute(object, method, ...)
Remarks
Argument
Type
Description
object
Text
The name of the OLE object.
method
Text
The name of the method to execute.
. . . .
n/a
Any number of parameters for the method.
Typical Examples
Execute(“OLE1”, “Start”)
This will call the method ‘Start’ on the object ‘OLE1’.
Execute(“CXComms1”, “OpenPLC”, “MyPLC”)
This will call the method ‘OpenPLC’ with one text parameter ‘MyPLC’ on the OLE object
‘CXComms1’
ExecuteVBScript
Description
Creates aliases allowing Visual Basic Script to be executed in line. This uses the Windows Scripting
Host. See chapter 5 for a list of supported functions and details of the Windows Scripting Host.
Syntax
@VBSCRIPT
@ENDSCRIPT
Typical Examples
@VBSCRIPT
OLE1.LEFT = Point(“PointName”)
@ENDSCRIPT
This Visual Basic Script will write the value from the point ‘PointName’ into the property ‘Left’ of
the OLE object ‘OLE1’.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...