Putproperty; Execute - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

ActiveX Functions

6-19-2 PutProperty

6-19-3 Execute

This will read the property 'DM' (with one parameter 100) from the OLE object
'CXComms1' and store it in the point 'DM100Value'.
Description
Puts a value stored in a point into the property of an OLE object.
Syntax
PutProperty(object, property, ..., value)
Remarks
Argument
Type
object
Text
property
Text
- - -
n/a
value
n/a
Typical Examples
PutProperty("OLE1", "Left", NewLeftValue)
This will write the value stored in the point NewLeftValue to the property 'Left'
in the OLE object 'OLE1'.
PutProperty("CXComms1", "DM" 10, NewValue)
This will write the value stored in the point NewValue to the property 'DM' (with
one parameter 10) in the OLE object 'CXComms1'.
PutProperty("Gauge1", "Value", 25.2)
This will write the value 25.2 to the object 'Gauge1'.
Description
Execute a method of an OLE object.
Syntax
Execute(object, method, ...)
Remarks
Argument
Type
object
Text
method
Text
- - -
n/a
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'
SECTION 6 Functions and Methods
Description
The name of the OLE object containing the
property to change.
The name of the property to put.
Any number of parameters for the property.
The value to write to the property. Type is
dependant on the type of property. Can also
be a number.
Description
The name of the OLE object.
The name of the method to execute.
Any number of parameters for the method.
117

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents