Promotic

Preconfiguration "PmCharServer configured as a Modbus slave server - Communication set with data and panel"

Communication driver configuration PmCharServer - Driver for communication by user defined ASCII/BIN protocol.

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the local object menu or after pressing the Insert key after selecting the object) and is included in the group: "/ Communication / Modbus".
This preconfiguration can be created in the object: PmaFolder or PmaRoot.

This preconfiguration can be used as an emulator of a real device that communicates by the Modbus protocol. This assumes that there is already a PmModbusMr driver configured in the application, which expects data in the data areas, with the required function and at the specified register address.
To do this, it is necessary:
- in the driver PmModbusMr in the "Network address" configurator a temporary address 127.0.0.1 is set
- there are variables in the Data object in the CommModbusSlave folder, that will be offered for PmModbusMr.
- in the Comm object in the CommModbusSlave folder there are methods SetBo, SetRo, GetBo, GetBi, GetRo, GetRi. In them, the switch command must be extended for the corresponding types according to the existing template.
- The panel is used for communication testing and it is not essential for the communication functionality.


Usage of this driver requires purchase of the PmChar licence. When developing the application (with development environment for testing purposes), this component is always functional. This component is not functional in the freeware mode PmFree.
These configurators can be set before the preconfiguration is created:
The name of created objectName 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, empty string, spaces and the first character must not be a number.
Default: "CommModbusSl"
TCP/UDP port numberEthernet port number for communication.
Ethernet transfer typeDeatiled Ethernet protocol type specification.
TCP (default) - Allows unlimited, security checked data transfers. The data are transferred by separate portions so-called packets.
UDP - Only limited data transfers are allowed (often limited to 500 bytes). The data transfer is very fast.
Received data will always be in only one packetIf checked, then it is assumed that the entire contents of the received message will always fit into a single IP packet.
This setting affects the optimization of the reception rate:
Once the packet is received the reception is terminated and the system does not wait for timeout (defined in the "Timeout of one packet transfer [ms]" configurator).
The packet size is predefined by current network. It can be e.g. 521 bytes, 1024 bytes etc.
Maximum number of characters in the value
Create panel "Received data"Creates panel that monitors the statistics of communication values
Panel titleDisplayed in the panel header

History:
Pm9.00.22: Created
PROMOTIC 9.0.22 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- PmCharServer configured as a Modbus slave server - Communication set with data and panel
 
 
© MICROSYS, spol. s r. o.