A Data Binding is an IEC 61131-3 Expression that links the visual appearance of something to a changing data source.
The IEC 61131-3 Expression can be a simple tag reference, for example:
%"Folder.Analog Data Point Tag"
The IEC 61131-3 Expression can also be a more complex expression, for example:
( %"Folder.Temperature Celsius" * 9.0 / 5.0 ) + 32.0
These features use data bindings:
Feature | Example Property |
---|---|
Graphic Editor |
The Graphic Editor uses data bindings to link the appearance of items on a graphic page to tags in the database.
For example:
See Graphic Editor Data Bindings for the list of available data bindings. |
Toolbar Editor |
The Toolbar Editor uses data bindings to manage the appearance of buttons on the Operator Interface Toolbar.
For example:
|
To edit a Data Binding:
Note: If there are syntax errors in the Data Binding Code, the editor will not accept the changes when you press the OK button. Either correct the errors, or press the Cancel button to cancel the changes.
When the Data Binding Editor is open, press Ctrl+Spacebar to open the autocomplete list to provide suggestions depending on the context:
The autocomplete list shows:
To select an item from the autocomplete list, do one of the following:
To insert the autocomplete reference into the code, do one of the following:
You can insert tag references directly into the code editor using the Insert Tag Reference... command:
Choosing the Insert Tag Reference... command opens the tag browser allowing you to select a tag reference directly:
Syntax errors in Data Binding Code are highlighted in the editor using a dashed red underline:
Note: If you move the cursor near the error, a tooltip will be displayed providing an explanation of the error.
The Data Binding Code Editor will not accept code with obvious syntax errors. It is still possible to enter code with more subtle semantic errors. To find and locate additional errors:
Note: The above message indicates an invalid parameter for the ROUNDSD Function.
Note: The property with the error is shown with red text.
Note: If you move the cursor near the error, a tooltip will be displayed providing an explanation of the error.
For information on using the graphic page editor.
For information on using the operator toolbar editor.
For information about editing properties of items using the Properties Window.
For the meaning of terms used in Fernhill SCADA.