Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Data - page of object PmOpcClientData

Description:
Data specification of the OPC client group. The form of the page is common to more Promotic objects and hence the common description is stated in the PmObject > Data page description. Only configuration items of one variable are described here, the ones that are specific only for this object.
Buttons:
NewThe Variable window is opened where new variable can be added.
Multi newThe Multi items adding window is opened where any number of variables can be added.
EditThe Variable window is opened the marked variable can be edited.
DeleteRemoves the marked variable.
UpIt is possible to change the order of variables. By pressing the Up/Down button the marked item will be moved upward/downword in the list. The same effect can be achieved by pressing the key combination ALT+up key/down key.
DownIt is possible to change the order of variables. By pressing the Up/Down button the marked item will be moved upward/downword in the list. The same effect can be achieved by pressing the key combination ALT+up key/down key.
SortIf sorts variables in the alphabetical order by the variable name. The order of variables is changed. Be careful in cases when variables are accessed not by the name but by the index (order).
ExportIt is possible to export the data of items of this page
XML file - see Data export to the XML text file. Various export types to the XML file are described in Import/Export in the application editor.
ImportIt is possible to load (import) the data into this page.
Selection from OPC server - This item is available only in the PmOpcClientData obejct. It opens the "Browsing the OPC server address space" window. On the selected level, it is possible to select multiple variables (by using the Ctrl, or Shift key), that are then added into this page.
ExtensionsOpens the List of data extensions window, displaying a list of all found data extensions (defined anywhere in the application), designed for this specific target object (see the configurator "Target object" in the data extension).
Configuration items variables - basic:
NameName of the variable (no diacritics, no spaces, must start with a letter).

This configurator sets the initial value of the property Name.

Data typeData type of a variable. This data type is preserved in the variable and written values are converted into this data type. The exception is the Variant data type indicating that the variable preserves the last written value with its data type. Thus even an array can be stored in the variable (not allowed with the PmRtFree license).
ValueHere you can define
- the value (expression), that will be assigned to the variable at application start, or
- the data binding to another value.

See property Value and see Data binding configuration.

Macro expression can be used for input (it is evaluated while the application is launching).

RoundingIf checked then the value in the variable will be rounded do defined accuracy on each writing. It is functional only for numeric data types (Double, Single, Long, Short, Byte).

See also Pm.Round.

AccuracyPositive number indicating accuracy (number of decimal or whole places) to round the number to. For example:
0.01 = rounding to hundreths
0.1 = rounding to tenths
0.5 = rounding to five tenths
1 = rounding to whole numbers
10 = rounding to tens
25 = rounding to the closest multiple of 25
NoteComment for better orientation in the project, applicable through the script interface even in the running application.

This configurator sets the initial value of the property Note.

Macro expression can be used for input (it is evaluated while the application is launching).

Configuration items variables - extended by data extension ExtOpcClient:
ItemIDText address/identifier of the variable on the OPC server. The address can be entered either manually or it can be selected from the window "Browsing the OPC server address space" that can be opened by the button right from the user. But the selective window can be opened only if the OPC server is installed and if it supports the selection.

This configurator sets the initial value of the property ItemId.

Macro expression can be used for input (it is evaluated while the application is launching).

AccessPathAccess path to the variable on the OPC server. This value can often be empty. The path can be entered either manually or it can be selected from the selective window that can be opened by the button right from the user. But the selective window can be opened only if the OPC server is installed and if it supports the selection.

This configurator sets the initial value of the property AccessPath.

Macro expression can be used for input (it is evaluated while the application is launching).

Value recalculationIf checked, then the received and sent value will be recalculated by the PmValue = k/d * CommValue + q formula, where PmValue is the PROMOTIC system value, CommValue is the value from the communication, k,d,q are the recalculation constants defined in the configurator.

The conversion is applied also when sending the value. Then the inversion conversion is done according to the expression CommValue = d/k * (PmValue - q).

Caution: Vhen sending the value with conversion, some inaccuracy may happen and so the PmValue sent could differ from the PmValue received. For example for the conversion of PmValue = 1000 * CommValue and if CommValue is the value on 1B (Range 0-255), then when sending the PmValue=2008 the CommValue=2 is sent. If the CommValue=2 is received, then the PmValue will be 2000.

Note:
The script access to the variable on this page is enabled by:
- the Item property or
- by the Pm method with the usage of the #vars identificator
 
If the ExtOpcClient is used, then it is not necessary to define any data on this page.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice