Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Data - tab of the PmaOpcDaClientGroup object

Description:
Data definition of the OPC group. The form of this tab is common to more Pma objects and hence the common description is stated in the description of the "PmaObject > Data" tab. Only configurators of one variable are described here that are specific only for the the of this object.
Buttons:
Adding one or multiple new variables.
New variable (empty) - Opens the "Variable" configuration window, where new variable can be added. The values of the properties of the variable will be empty.
New variable (copy of selected) - Opens the "Variable" configuration window, where new variable can be added. The values of the properties of the variable will be copied from currently selected variable.
Multiple new variables - Opens the "Multi items adding" configuration window, where any number of variables can be added.
Opens the "Variable" configuration window, where the marked variable can be edited.
Deletes the selected variables.
Moves the selected variable upwards in the list.
Moves the selected variable downwards in the list.
Opens window for text search.
Opens menu with additional options.
Export to XML file - see Data export to the XML text file. Various export types to the XML file are described in Import/Export in the editor of Pma objects.
Export to CSV file - see Data export to CSV text file
Import from XML file - see Data import from XML text file
Import from CSV file - see Data import from CSV text file
Import from the OPC server - This item is available only in the PmaOpcDaClientGroup object. Opens the "Viewing the OPC server address space" configuration 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 tab.
Sort - If 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 index (order).
Data extensions - Opens the "List of data extensions" configuration window, displaying a list of all found data extensions (defined anywhere in the application), designed for this specific target object (see the "Target object" configurator in the corresponding data extension).
Configurators of the variable - basic:
NameName of the variable.
The maximum name length is 80 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.
This configurator sets the initial value of the Name property.
PathWhole path to PmVar variable.
Data typeData type of the 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 - means that the variable preserves the last written value with its data type. Thus even an array can be stored into the variable (not allowed with the PmRtFree licence).
ValueHere you can define
- the value (expression), that will be assigned to the variable after starting the application, or
- the data binding to another value.

See Value property and see Data binding of the object PmVar.
Macro expression can be used for input (it is evaluated after starting the application).
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
NoteNote for better orientation in the project, applicable through the script interface even in the running application.
This configurator sets the initial value of the Note property.
Macro expression can be used for input (it is evaluated after starting the application).
Configurators of the variable - extended by data extension ExtOpcDa:
ItemIDText address/identifier of the variable in the OPC server. The address can be entered either manually or it can be selected from the window "Viewing the OPC server address space" that can be opened by the button right from the input. But the selective window can be opened only if the OPC-DA server is installed and if it supports the selection.
This configurator sets the initial value of the ItemId property.
Macro expression can be used for input (it is evaluated after starting the application).
AccessPathAccess path to the variable in the OPC server. The 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 input. But the selective window can be opened only if the OPC-DA server is installed and if it supports the selection.
This configurator sets the initial value of the AccessPath property.
Macro expression can be used for input (it is evaluated after starting the application).
Value recalculationIf checked, then the received and sent value will be recalculated by the PmValue = k/d * CommValue + q formula, where PmValue is the value in the PROMOTIC system, 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.
Macro expression can be used for input (it is evaluated after starting the application).
Note:
The script access to the variable on this tab is enabled by:
- by the Item method or
- by the Pm method with the usage of the #vars identificator


If the ExtOpcDa is used, then it is not necessary to define any data on this tab.
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice