Supported device types and versions
Communication line configuration
Communication station configuration
Line protocol parameters
I/O tag configuration
Literature
Changes and modifications
Document revisions
The protocol executes a slaver communication with arbitrary devices that support standard MODBUS RTU in versions of serial communication and MODBUS over TCP/IP.
Configuration dialog box - table Parameters.
They influence some optional parameters of protocol. Following line protocol parameters can be set:
Table 1
Parameter | Meaning | Unit | Default value |
---|---|---|---|
Delay which is entered between transmission begin of each data packet. | ms | 50 | |
If timeout passes and no valid call comes, all station on the line will be in status of communication error. Values of output I/O tags will never become valid (server protocol). | mi:ss | 1:00 | |
If the value of parameter is set on YES, KOM process replies by error SLAVE_DEVICE_FAILURE upon each call which is send to station and this station is not configured. If the value is NO, KOM process ignores this call. | YES/NO | YES | |
Switching time of Moxa redundant devices in case of communication error or some problems. As this is a server protocol which wait on demands from other external devices, a failure of the communication demand for longer time than the value of this parameter is considered to be an error. It is used only for SerialOverUDP Device Redundant line. | sec | 10 sec |
There is possible to configure more stations with different addresses on one line, KOM process will reply to proper station. See also the protocol parameters of line Single Server.
Configuration dialog box - tab Parameter.
They influence some optional parameters of protocol. Following station protocol parameters can be set:
Table 2
Parameter | Meaning | Unit | Default value |
---|---|---|---|
Sets an address model of MODBUS protocol: MODBUS PDU data are addressed from 0 up to 65535. MODBUS data Model data are addressed from 1 up to 65536. Note: MODBUS PDU is a default value. If MODBUS data Model is set, the object with the address X is addressed as X-1 in MODBUS PDU. After you change this parameter, restart a proper communication process. | MODBUS PDU MODBUS data Model | MODBUS PDU |
Possible value types: Ai, Ao, Di, Do, Ci, Co.
In the protocol MODBUS there is the main address space divided into registers of Coils type (reading/writing), Discrete Inputs (reading), Holding Registers (reading/writing) and Input Registers (reading).
An independent address space of 2 byte, i.e. addresses from 0 up to 65535, is in each address space of given type of register.
Address format of I/O tag:
Address format is [I|U|f|F|C|D]Fn.Address[.BitNr] in which:
Implementation of protocol supports the following functions:
Note: This is a server type of protocol which is primary intended for sending the values out of D2000 system. Therefore the I/O tags should be configured as output (Ao, Co, Do) because of manipulation of their values directly or by control objects. If the I/O tag is configured as input (Ai, Ci, Di), KOM process does not make to send a valid value at reading by functions 1 - 4 until the value is written by function 5, 15, 6 or 16 from outside.
If KOM process does not have the valid value of I/O tag or request to read a nonexistent I/O tag is received, an implicit value False or 0 is sent at call to read (MODBUS protocol does not support the transfer of value quality).
You can read blogs about Modbus protocol (for now, in Slovak language only): |
-