Modbus TCP issues

When I look at the captures, it appears to me that you are not seeing the traffic between the Micrologix and the Omega controller which would be normal when using a true unmanaged switch. You will need a managed switch with port mirroring capability or a 'true' ethernet hub as Ken stated earlier. The unmanaged switch is filtering out the messages from your PC.
 
I managed to find a managed switch through my IT group. Here I do see a communication to 192.168.1.4 (Omega controller).

New wireshark file attached.

I do appreciate your help on this.

Thanks.
 
Based on that capture, I would try a Unit ID of 1. The Micrologix request looks good and there is a TCP ACK from the Omega controller so it looks like the Ethernet side is good, it just doesn't like the Modbus request.

It is not 'supposed' matter what the Unit ID is on Modbus TCP unless you are using a TCP to RTU bridge but a lot of devices care.
The only difference I see in the successful message from Modbus Poll versus the unsuccessful message from the MicroLogix is the Unit ID.
 
OK, now I do think I see something.

PLC to OMEGA looks like this:

00 06 00 03 00 27 00 01

MODBUS to OMEGA looks like this:

00 06 01 03 00 27 00 01

The unit ID is 0 and should be 1. Where is that controlled in the PLC? If I can change that I may have my answer?
 
Progress. Now I DO get a response, but it errors out immediately.

Error code 82. Illegal address.

Wireshark shows this is being sent...

06 01 03 00 27 00 64
 
I suggest QModBus, similar features as Wireshark as it pertains to Modbus but nicer GUI, but not as universal (i.e.- only works on Modbus).
http://qmodbus.sourceforge.net/

There's a mobile version written by yours truly, but I haven't maintained it lately and it won't run on current versions of Android. It worked well on Android 2.x, and iirc it ran on early 4.x versions.
https://sourceforge.net/projects/mqmodbus/
 

Similar Topics

Hi all, I've been trying to get Modbus TCP to communicate (read only) with the Modbus TCP AOI that Rockwell provides, but I'm having issues and...
Replies
2
Views
2,149
Has anyone had any experience using MODBUS/TCP with Beckhoff controllers? Specifically on TC3? I am using a CX8190 to communicate with an epson...
Replies
4
Views
2,744
Hi All, I have an issue with a Red Lion Data Station (Crimson 3.0 V707). The Data Station is set up as a Modbus Master TCP/IP and is connected...
Replies
18
Views
4,939
I have a PH meter that I am trying to bring its data into 1756-L81. I have downloaded the Rockwell MODBUS AOI kit, but I am not sure if I need to...
Replies
5
Views
138
Hello gentlemen, Im working on a small project on TIA Portal, about establishing a Modbus TCP connection between my ET200SP plc and a socomec...
Replies
12
Views
298
Back
Top Bottom