Communication by the Modbus TCP/IP
protocol with ADAM
The preconfiguration creates the data for the corresponding number of analog (max. 8) and digital inputs (max. 8) and outputs (max. 8) and displays their status in the panel. This allows to define the required number for the specific connected device.
This preconfiguration can be activated when creating a new object (e.g. by "New object ..."
in the local object menu or by pressing the Insert
key after selecting the object) and is included in the group: "/ Communication / Protocols and other communications / Modbus"
This preconfiguration can be created in the object: PmaFolder
- The preconfiguration is created including the panel (object of the PmaPanel
type) is functional also a Web panel
- The panel is used for communication testing and it is not essential for the communication functionality.
In the PmaComm
object named "Comm
" the communication parameters are set (Network address
object named "data
" includes a "Parameters
" tab where Special Parameters
are defined (see PmModbusMr - Driver for communication by the Modbus Master protocol
). On the "Data"
tab, the items are imported by data extension of items defined in the PmaData
object (see ExtComm
). Each Data
corresponds to the selected device type by its structure and name.
object serves for displaying the settings of the communication between the application and the connected device. The caption section is included. The status and quality of the inputs and outputs of the connected device are indicated by different colors. There are three columns with PmgBox
objects. These objects share the same dinx
parameter. The parameter specifies the index (order) of the data for the specific group (AI, DI, DO). The embedded objects in each panel use this parameter in order to connect to the correct data source. These objects display the values, names and quality according to the current status. In the digital output column, there are two ON/OFF buttons for controling the digital outputs.
These configurators can be set before the preconfiguration is created:
|The name of created object||Name of the object created in the tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent chars), empty string, spaces and the first character must not be a number.
|Number of analog inputs||Allows to enter the number (0,2,4,6,8) according to the device type|
|Number of digital inputs||Allows to enter the number (0,2,4,6,8) according to the device type|
|Number of digital outputs||Allows to enter the number (0,2,4,6,8) according to the device type|
|Network address||Network address to which the communication will be connected.
The address can be entered by both IPv4 address (e.g. 192.168.0.15) or by computer name (e.g. server11).
The IPv4 address 127.0.0.1 is the local address of this computer.
Macro expression can be used for input (it is evaluated after starting the application).
After the preconfiguration is created, the "PmaComm > Setting the parameters of the Ethernet-client > Network address" configurator will be set to this value.
|Close the connection after each transmission||This option sets the following configurators simultaneously:
Not connect until first transfer. See: PmaComm > Setting the parameters of the Ethernet-client > Not connect until first transfer
Close connection after every transfer. See: PmaComm > Setting the parameters of the Ethernet-client > Close connection after every transfer
|Communication refresh rate [ms]||The period in milliseconds to be used for reading the current data by the PROMOTIC application.
After the preconfiguration is created, the "PmaCommGroup > Parameters > Communication refresh rate [ms]" configurator will be set to this value.
If the connected device contains more than 8 inputs/outputs, then it is necessary to modify the preconfiguration for the increased count:
- add the corresponding data item into the PmaData
- modify the added data item in ExtComm
and set the corresponding ItemID
- in the panel copy the new PmgBox
and modify the value of the dinx