Ah en Modbus Poll 111008 en 00
Ah en Modbus Poll 111008 en 00
Ah en Modbus Poll 111008 en 00
Application note
111008_en_00 © Phoenix Contact 2023-03-13
1 Description
This application note describes how to check Modbus com-
munication via a Modbus gateway to your end device (Mod-
bus server). For this purpose use Modbus Poll as a Modbus
client simulator.
You will need the following products:
Designation Item No. Connection Link to item
Ethernet Serial
One of the following gateways:
FL COMSERVER UNI 232/422/485 2313452 1 1 phoenixcontact.net/product/2313452
GW MODBUS TCP/RTU 1E/1DB9 2702764 1 1 phoenixcontact.net/product/2702764
GW MODBUS TCP/RTU 1E/2DB9 2702765 1 2 phoenixcontact.net/product/2702765
GW MODBUS TCP/RTU 2E/2DB9 2702766 2 2 phoenixcontact.net/product/2702766
GW MODBUS TCP/RTU 2E/4DB9 2702767 2 4 phoenixcontact.net/product/2702767
USB-to-serial converter, e.g.:
CM-KBL-RS232USB 2881078 - - phoenixcontact.net/product/2881078
WARNING:
This application note does not replace the device-specific documents.
Observe the safety information, conditions, and limits of use specified in the product documentation. Comply with them.
Make sure you always use the latest documentation. It can be downloaded using the links provided above.
MODBUS POLL
Table of contents
1 Description.................................................................................................................................. 1
2 Application.................................................................................................................................. 3
3 Installing Modbus Poll................................................................................................................. 3
4 Determining the end device settings ........................................................................................... 4
5 Configuring the Modbus gateway ............................................................................................... 7
5.1 FL COMSERVER UNI 232/422/485 ............................................................................................................... 7
5.2 GW MODBUS TCP/RTU... ........................................................................................................................... 10
8 Troubleshooting.........................................................................................................................18
2 Application
Often an end device, with the device role as Modbus/RTU
server, must be integrated into a controller via Modbus/TCP.
The controller manufacturers work with different engineer-
ing tools. This can make operating the tools or programming
the blocks for data communication very challenging.
This application note describes how to simulate a controller
as a Modbus/TCP client on a PC and how to poll the end de-
vice. To do this, use the Modbus Poll program.
The goal is that the communication from the end device via
the Modbus gateway to Modbus Poll on the PC works. Then
you can replace Modbus Poll on the PC with the final con-
troller as a Modbus client.
Figure 1 Overview
Serial interface
8 Troubleshooting
Error Cause Solution
The network connection to the Modbus – Modbus gateway is not accessible • Go to web-based management and
gateway is not established in the network. check the settings on the device.
Error message in Modbus Poll: – FL COMSERVER UNI 232/422/
485 is not in Modbus operation
“Modbus Connection Failed. Connect
mode
Timeout“
Error message in Modbus Poll: – The serial connection parameters • Check the serial settings of the
“Gateway target device failed to re- are not correct (RS-485, RS-232, Modbus gateway and the end de-
spond“ RS-422). vice.
– Incorrect serial interface configured • Check the wiring on the Modbus
Tx and Err counters incrementing
in the Modbus gateway gateway and on the end device.
– Faulty wiring
– Incorrect slave ID in Modbus Poll
Error message in Modbus Poll: – Incorrect Modbus register values in • Enter the correct Modbus register
“Illegal Data Value“ Modbus Poll values under “Read/Write Defini-
tion”.
Tx and Err counters incrementing
111008_en_00 Phoenix Contact GmbH & Co. KG • Flachsmarktstraße 8 • 32825 Blomberg • Germany 18 / 18
phoenixcontact.com