Modbus AOI Exception

Greetings, I am using the Allen-Bradley Modbus Messaging AOI "raC_Opr_NetModbuTCPClient". I have set up the Parameters and Transaction[0], I am connected to the Modbus Device and I am actively pulling in the correct data. I need to read 171 consecutive registers but the message throws an exception if my count/length is above 120. I have Transaction[0] pulling in registers 40000 - 40119, but when I set up Transaction[1] for registers 40120-40171, the instruction also throws an exception and Transaction[0] and [1] both throw exceptions and stop transmitting. Has anyone else had a similar experience? How did you work around it?
 

Attachments

  • Screenshot 2025-01-16 111951.png
    Screenshot 2025-01-16 111951.png
    28.7 KB · Views: 14
the modbus port is usually 502; is it 511 in that image?
Yes, it is 511. This manufacturer sells modular compressor systems. We only have a single compressor, but they have structured it such that Comp1 is port 511, Comp2 is 522, Comp3 is 533, etc. I have also attached an image of the two failed transactions.
 

Attachments

  • Screenshot 2025-01-16 112412.png
    Screenshot 2025-01-16 112412.png
    46.4 KB · Views: 9
Yes, it is 511. This manufacturer sells modular compressor systems. We only have a single compressor, but they have structured it such that Comp1 is port 511, Comp2 is 522, Comp3 is 533, etc. I have also attached an image of the two failed transactions.
They should be using station ID (UID) instead of changing port. Does not make any sense, but people do crazy things with Modbus :)
 
If you can't run more than 1 transaction then you may be running into the V35 / EN4TR anomaly see technote BF28874
I am running 34.03.00 with an 1756-EN2TR. My AOI is version 2.4, but lacks the GEQ mentioned in the TechNote. I will add this once site production allows me to do a download and see if this solves the issue.
 
I am running 34.03.00 with an 1756-EN2TR. My AOI is version 2.4, but lacks the GEQ mentioned in the TechNote. I will add this once site production allows me to do a download and see if this solves the issue.
No, this GEQ is irrelevant to any other versions, it's a harmless boundary check that is not related to message instruction, so its faulted for a different reason.
 
Greetings, I am using the Allen-Bradley Modbus Messaging AOI "raC_Opr_NetModbuTCPClient". I have set up the Parameters and Transaction[0], I am connected to the Modbus Device and I am actively pulling in the correct data. I need to read 171 consecutive registers but the message throws an exception if my count/length is above 120. I have Transaction[0] pulling in registers 40000 - 40119, but when I set up Transaction[1] for registers 40120-40171, the instruction also throws an exception and Transaction[0] and [1] both throw exceptions and stop transmitting. Has anyone else had a similar experience? How did you work around it?
At that length, your client is a cow grazing near a fuzzy fence. 120 items * 2 bytes per = 240 bytes, which is near the protocol frame limit - some devices simply don't support it. Your cow might also be trying to consume an abomination called a write-only register. If one of these is in the range of your read operation, your cow gets no food.
 
At that length, your client is a cow grazing near a fuzzy fence. 120 items * 2 bytes per = 240 bytes, which is near the protocol frame limit - some devices simply don't support it. Your cow might also be trying to consume an abomination called a write-only register. If one of these is in the range of your read operation, your cow gets no food.
Okay, so there are two WORDs in the middle of this mess used for remote control. I do not need these. All other data types are INT, DINT, or REAL. I have stopped transaction[0] shy of these two WORDs, and have set transaction[1] to carry on afterward. But I am now back to both transactions having a status of “2”.
 
What I ended up needing to do was to have only one transaction enabled at a time. When I get the Transaction[0].TransComplete bit, I disable Transaction[0] and enable Transaction[1]. When Transaction[1].TransComplete triggers, it disabled Transaction[1] and re-enables Transaction[0].
 

Attachments

  • Screenshot 2025-01-16 140549.png
    Screenshot 2025-01-16 140549.png
    37.8 KB · Views: 12
What I ended up needing to do was to have only one transaction enabled at a time. When I get the Transaction[0].TransComplete bit, I disable Transaction[0] and enable Transaction[1]. When Transaction[1].TransComplete triggers, it disabled Transaction[1] and re-enables Transaction[0].
That was my initial thought, but then I assumed that either you already knew about it, or that the driver could handle multiple TCP connections.

Anyway, well done, you did it th'self and didn't need us!
 

Similar Topics

Hi all, I’m working on a CompactLogix system using Studio 5000, and I’m implementing Modbus TCP communications using the Modbus TCP Client AOI...
9
Replies
1,594
Views
Hi Everybody, I was tasked with setting up a new pump using Modbus. My initial approach was to use the AOI that is provided by Rockwell on their...
14
Replies
1,013
Views
I have a new Rockwell 5069-l310ERS processor. Imported the MBTCP AOI as instructed by manual and watched available videos to see if I missed...
16
Replies
2,733
Views
Good Day everyone, I have scoured the internet with no avail. A little background: - Redundant 1756-L83E Processor Racks - 3 Remote IO Racks...
15
Replies
2,523
Views
Hello all, Im trying to use modbus tcp aoi for communication between controllogix and a PC. Client is on plc and server is on PC. I've upgraded...
5
Replies
2,266
Views
Top