Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Parameters - page of object PmCommData

Description:
The definition of parameters of the communication group data.
Configuration items:
Data refresh enabledIf checked, then automatic data update (reading) from the communication after startup is enabled (the data to be updated are defined on the Data page and the data in the PmData object containing ExtComm).

This configurator sets the initial value of the property UpdateEnabled.

If this configurator is not set, the data can be received by the method Refresh.

Communication refresh rate [ms]The time period in milliseconds to be used for reading the data by the PROMOTIC application.

This configurator sets the initial value of the property UpdateRate.

For some communication types this configurator is disabled (e.g. for the PmIEC8705 driver where the updated data is received without request).

Priority data refreshIf checked, then the dat refresh for this object will be executed with higher priority. I.e. the communication messages from this object will advance in the queue in front of the low priority messages. The common practice is that data refresh is not prioritized.

Usage example: It is necessary to transfer 3 "fast values" 10 times per second and 1000 "slow values" once every 10 minutes. Create two PmCommData objects, one with 3 and one with 1000 variables. If both objects had the same priority, it would not be possible to transfer the "fast values" once every 10 minutes. Therefore it is necessary to set the object with "fast values" to higher priority.

"onDataReceive" eventonDataReceive event calling type. Defines for which received variables the event will be triggered and what will be saved into the pEvent.Items parameter of such event. The event will be triggered for each received group of variables.
A = call for all registered variables (in this object and also in other PmData objects) - The event is called for all variables that have received values. These are:
- variables defined in this PmCommData object on the Data page.
- variables defined in PmData object that have the ExtComm data extension registered into this PmCommData object.

A list of data extensions of these variables (ExtComm type objects) will be in the onDataReceive event in the pEvent.Items parameter.

B = call only for variables defined in this object (obsolete) - The event is triggered only for variables that received values and were defined in this object on the Data page. In the onDataReceive event in the pEvent.Items parameter, there will be a list of variables (Var type objects).
Auto write when writing to itemIf checked, then at any writing into the data item the value of this item is immediately sent via the communication (at writing into data defined on the Data page and at writing into PmData object data containing ExtComm).

For some communication types the configurator is disabled (e.g. for the PmIEC8705 driver where the data is sent after requested from the opposite side).

If you write into more items of this object at a time, the transfer is invoked for each item separatelly!

Communication messages for sending data are set to high priority automatically.

Special ParametersAdditional parameters for this data group. These parameters depend on the communication driver type.

Some of the drivers do not have any special parameters, but some have, for example, the "Default PLC address" parameter. The PmModbusMr driver has additional parameters "Area base addresses", etc.

Some of these parameters can be modified by the SetSpecParam method and read by the GetSpecParam.

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