Hi Peewit.
Oh thats a bit sad to know broadcast doesnt work with the standard Oscat network library.
Is it possible to get this working with some changes in the MB_Client and IP_Control2 for this special requirement.
I thought maybe in the MB_Client function block if i could set the C_Mode to 5 (Udp+passive+Ip Address) and then
in the IP_Control2 in the UDP_Init if the sockaddr.sin_addr be set to Broadcast, maybe it would work (please correct me).
It would be really nice if you just could suggest a way for me try out. I had found it rather difficult to find a implementation guide for Modbus UDp like the one present for Tcp. If you could suggest something it would be great.
Thanks and warm regards
Oh thats a bit sad to know broadcast doesnt work with the standard Oscat network library.
Is it possible to get this working with some changes in the MB_Client and IP_Control2 for this special requirement.
I thought maybe in the MB_Client function block if i could set the C_Mode to 5 (Udp+passive+Ip Address) and then
in the IP_Control2 in the UDP_Init if the sockaddr.sin_addr be set to Broadcast, maybe it would work (please correct me).
It would be really nice if you just could suggest a way for me try out. I had found it rather difficult to find a implementation guide for Modbus UDp like the one present for Tcp. If you could suggest something it would be great.
Thanks and warm regards