CHAPTER 6 – Functions and Methods
Typical Examples
OLE1Height = GetProperty("OLE1", "Height")
This will read the property 'Height' from the OLE object 'OLE1' and store it in the point
'OLEHeight'.
DM100Value = GetProperty("CXComms1", "DM", 100)
This will read the property 'DM' (with one parameter 100) from the OLE object 'CXComms1' and
store it in the point 'DM100Value'.
PutProperty
Description
Puts a value stored in a point into the property of an OLE object.
Syntax
PutProperty(object, property, ..., value)
Remarks
Argument
object
property
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'.
Page 128
Type
Text
The name of the OLE object containing the property to change.
Text
The name of the property to put.
. . .
n/a
Any number of parameters for the property.
value
n/a
The value to write to the property. Type is dependant on the
type of property. Can also be a number.
Description
Revision 2.0
OMRON
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?