Have a look at this story :
https://www.thethingsnetwork.org/labs/story/using-codesys-on-raspberry-pi-to-poll-modbustcp-slave-datas-and-uplink-them-by-using-lorawan-atim-acw-xb
![](https://thethingsnetwork.org/media/posts/2e1bf31b550a4b10b30a161db7ac6298.large.png)
Have a look at this story :
https://www.thethingsnetwork.org/labs/story/using-codesys-on-raspberry-pi-to-poll-modbustcp-slave-datas-and-uplink-them-by-using-lorawan-atim-acw-xb