Each property in the Database Exchange ActiveX control can be associated with a CitectSCADA tag, enabling data to be edited in the control and then downloaded directly to the tag.
Associations between tags and properties are configured in the Tag Association tab of the control's Properties dialog. Access the Properties dialog by double-clicking the ActiveX Control. The Tag Association tab includes the following fields:
Properties
The list of available properties. To select a property, click its checkbox.
Associate property with tag...
The CitectSCADA tag which the selected property will be associated with. Type in the name of the tag, or to choose from the list of defined tags, click the Insert Tag button.
Update association on
The event which causes tag values to update. To enable associated tag values to change as properties change, this must be set to DataDownloading. For descriptions of each event, see the full List of Events.
Property documentation
Most ActiveX objects come with some form of documentation to explain the object's controls and functionality. Some have a separate Help file included, others may have simple text prompts that briefly explain each property. Again, this depends entirely on what an object's creator has included.
The Property documentation field will display help information for a selected property, or will give appropriate instructions to obtain the Help required for a selected property. In most cases, the following message will appear:
"Click the '?' button to the right to display the Help topic for this property"
The button calls up the ActiveX object's Help file (if one is included), usually with the topic displayed that relates to the selected property. It should also provide information about the settings provided on any additional tabs the ActiveX object may call up on the properties dialog.
List Property Type
Lists the CitectSCADA types that are compatible with the selected property.
Clear Property
The Clear Property button clears the tag associations for ALL the ActiveX object properties. If you want to clear a tag association for a particular object property, you just need to uncheck the box to the left of the property.
If you accidentally click the Clear Property button, you can restore your tag associations by clicking Cancel and reopening the ActiveX properties dialog.
NOTE: For more information on Tag Association, see ActiveX: Associating Properties with Tags in the Citect help
You can associate tags and properties in three ways:
To create an association between a property and a CitectSCADA tag:
To create an association between a property and a CitectSCADA tag manually:
FUNCTION
Recipe_AN35_DataDownloading(Object
This)
STRING sValue;
sValue = _ObjectGetProperty(This,"Column001");
… your code here
END
To create an association between a property and a CitectSCADA tag at runtime:
Implement the Cicode function ObjectAssociatePropertyWithTag using the following syntax:
ObjectAssociatePropertyWithTag(sObject,sPropertyName,sTagName,sOnChangeEvent)
Refer to the CitectSCADA on-line help for how to use this function.