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 context menu of the object or by pressing the
Insert key after selecting the object).
This preconfiguration is included in the
"/ Communication / Protocols and other communications / Modbus" group.
This preconfiguration can be created in the
PmaFolder,
PmaRoot or
PmaPrototype object.
This preconfiguration can be used as an emulator of a real device that communicates by the
Modbus protocol. This assumes that there is already the
PmModbusMr communication 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:
- 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 statement must be extended for the corresponding types according to the existing template.
- The panel serves 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 object | Name of the object created in the Pma object tree.
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 characters), empty string, spaces and first character must not be a number.
Default: "CommModbusSl" |
|
TCP/UDP port number | Ethernet port number for communication. |
Ethernet transfer type | Deatiled 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 only to 500 bytes).
The data transfer is very fast. |
|
Received data will always be in only one packet | If checked, then it is assumed that the entire content 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 for test data | Creates panel that monitors the statistics of communication values |
Panel title | Displayed in the panel header |
---|