Control Architect Help Documentation
×
Menu
Index

Working with Control Property Bindings

 
Control Property bindings define the mapping or relationship between a Property from a Data Source such as Excel and a Property or parameter in the target Control system Template type.  Control system Template types contain properties (parameters) that define its class.
 

Primary Key Attribute

 
You must specify a single Control Binding with the Primary Key attribute.  This is the Control Binding that defines the unique Entity name for the Control Entity that is being updated/created.  For the Honeywell platforms this would be the Target Property named "NAME" for LCN types and for PKS CEE Control Modules this would be the "BlockName" Target Property.  Click the button target to add the Primary Key attribute to the selected Control Binding.
 

Using the Rounding Options

 
Target properties that are typed as float or double can optionally be rounded using either a constant value or specifying a rounding function based on a source Property value.
 
The selected item below indicates that the rounding expression uses the SubString(...) function that is recognized by Control Architect.  This function uses the following parameters to extract the decimal rounding value from a source property value retrieved from the source Property name _PVFORMAT.
 
SubString(sourcePropertyName, startingPosition, count, defaultValue)
 
sourcePropertyName: Specify the source Property name that will contain the expected format value.  Honeywell Control types use the parameter PVFORMAT to specify an enumeration value in the enumeration set of { D0, D1, D2, D3 }.  You must prefix the Property name with the '_' character to indicate it is referencing a source Property.
 
startingPosition: Specify the one based character starting position where you expect to parse the decimal value from the enumeration value string.  If the PVFORMAT value contained the enumeration value "D1", the decimal value of "1" begins in character position 2.
 
count: Specify the number of characters to parse that defines the decimal value in the enumeration value string.  If the PVFORMAT value contained the enumeration value "D1", we would only need to parse one character to retrieve the full decimal value that defines the rounding expression.
 
defaultValue: Specify the default rounding expression value to use if the evaluation of the SubString(...) function fails to parse a valid decimal value or if the source Property value is an empty string.
 
Copy this example: SubString(_PVFORMAT, 2, 1, 1) to use as a rounding expression.  The Property PVFORMAT must exist as a Source Property.
 
 
You can also specify a constant value such as "2" for the rounding expression, which would round the real value to 2 places to the right of the decimal point.
 
Rounding can be disabled or enabled by checking the Check Box in the column labeled EnableRounding.
 
 

Common Errors

 
Control Binding Expressions
 
 
 

Tips & Tricks

 
 
Function Block Name Change
 
You can use the following expression as an example of how to change the name of a Block such as an I/O Channel Block:
_NewBlockName + '.' + _NewFBName
 
Where NewBlockName is the Control Module name Property in the Excel DataSource and NewFBName is the name of the I/O Channel Block Property in the Excel DataSource.  The leading '_' underscore character allows you to reference the source properties by their Property name when developing binding expressions.