Modbus TCP
Posted: Wed Apr 19, 2023 9:47 am
Hi
I am trying to integrate Modbus TCP into my project, I have basically copied the Modbus TCP Part 1 video, where you set a coil on the Master and read the value of the coil on the Slave.
I am using two BL0080 boards connected by a cisco switch using the W5500 Wiz ethernet modules. I can ping both of my devices successfully, I have also used wireshark and I can see the TCP packets port 502 being sent when the switch is pressed on my master and acknowleged by the slave.
But my LED never illuminates on the slave, I have written a loop at the start of my slave programme which flashes the LED 10 times to check its integrity.
I have attached my Master and Slave programmes, I would appreciate any help.
I am trying to integrate Modbus TCP into my project, I have basically copied the Modbus TCP Part 1 video, where you set a coil on the Master and read the value of the coil on the Slave.
I am using two BL0080 boards connected by a cisco switch using the W5500 Wiz ethernet modules. I can ping both of my devices successfully, I have also used wireshark and I can see the TCP packets port 502 being sent when the switch is pressed on my master and acknowleged by the slave.
But my LED never illuminates on the slave, I have written a loop at the start of my slave programme which flashes the LED 10 times to check its integrity.
I have attached my Master and Slave programmes, I would appreciate any help.