Modbus TCP communication

felipealencr

Member
Join Date
Mar 2024
Location
São Luís
Posts
10
Hi folks,

I have a Controllogix in communication with a zigbee coordinator using Logix AIO for modbus tcp. This zigbee coordinator have 3 slaves IO, but when I turn off one of those IO the coordinator hold the last input information and flag a timeout status and the status of input in PLC stay hold. Can I see this timeout flag in PLC monitor using the add on instruction, for each IO for example?
 
In the AOI block for the client you have some diagnostic tools for each client the AB PLC is connected to. In that senario you would be able to tell if you are getting a reply from the device

*Diagnostic.TransLastError* should probably return something you could work with but by monitoring the diagnostics when you disconnect the device you should see what you can reliably use.

If your Zigbee coordinator is a master and your 3 zigbee devices are connected to that and you are disconnecting one of them then you will not be abe to see that they are not responding in the AOI as the master will still be responding with their last known values. In this case you could either look in your zigbee modbus table for a tag that will tell you if your slaves aren't connected or you could monitor a parameter from the slave that you know will be continuously changing and if you do not see it change in the appropraite ammount of time than flag a comm error.

If your zigbee devices are responding through your master and using the master as a relay than you should be able to raise a response from it in the same manner as 1 but since they all use the same comm port you will need to monitor them in software to coorelate the failed messages with the device in question.
 
Can you post Zigbee device manual here?
If device is still responding with IO module off, then it should be a status register with some Modbus address indicating this and the AOI should be able to read it.
 
Can you post Zigbee device manual here?
If device is still responding with IO module off, then it should be a status register with some Modbus address indicating this and the AOI should be able to read it.
Coordinator:
Zigbee IO:
 
It looks like for each device reading registers starting 39600 can tell you if devices are responding or not.
In the AOI it will be command 4, Address 9599
 
Thanks!
For this coordinator I used the BeginAddress = 9600 (decimal) and Count = 3 in Transaction [1], because I have 3 IOs. Now I can read the inputs and the registers timeout.
The great detail is understand what is the BeginAddress, and this is the address in remote device.
 
You need to check your code: to address Input Register 39600 in the AOI, you must use 9599 as a BeginAddress
Using 9600 will be reading register 39601 - welcome to the "Shift by 1" world of Modbus :)
 
You need to check your code: to address Input Register 39600 in the AOI, you must use 9599 as a BeginAddress
Using 9600 will be reading register 39601 - welcome to the "Shift by 1" world of Modbus :)
When I use 9599 like BeginAddress the transaction results in a exception -1, I don´t know why, but I think it's a configuration on Zigbee coordinator. With 9600 it's works and I tested it by turning off each of the 3 IOs.
Exemple: it turning off the third IO
1714755384190.png
 

Similar Topics

Hi, i cant establish communication between fatek plc with an energy meter, both capable for modbus tcp, i did with modscan but fatek plc does not...
Replies
1
Views
213
can i send and recieve data using my yokogawa UT35A controller with my siemens s7 1200 plc using profinet communication without using gsd file
Replies
1
Views
436
CR3000 HMI ModBus TCP/IP Master has gotten erratic after increasing block size to 24 at DA70A in Protocol 1. What should a practical guide be for...
Replies
2
Views
587
Good day Programmers I have a RSTi-EP CPE100 Standalone Controller from Emerson as well as a STXMBE001 (MODBUS TCP/IP) as a Modbus communication...
Replies
0
Views
672
Bonjour, ceci est un message à destination des spécialistes en Schneider, je cherche à établir une communication en modbus tcp entre un api...
Replies
1
Views
1,062
Back
Top Bottom