OMRON
Execute
Description
Execute a method of an OLE object.
Syntax
Execute(object, method, ...)
Remarks
Argument
object
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'.
Revision 2.0
Type
Text
The name of the OLE object.
Text
The name of the method to execute.
. . . .
n/a
Any number of parameters for the method.
CHAPTER 6 – Functions and Methods
Description
Page 129
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