![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212141.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 128
Revision 2.0
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
Type
Description
object
Text
The name of the OLE object containing the property to change.
property
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.
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’.
Содержание 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...