This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Universal Modbus TCP/RTU Slave
#81
When LM is used as a Modbus TCP slave station, what kind of communication data is exchanged? For the code "registers = { [1] = '1/1/4' }", I want to write different values (1, 2, 3, etc.) to the data address 1. What would be the corresponding message? Could you give me a couple of examples? Thank you.
Reply
#82
What is your task? If you want to exchange data between two LMs then use MQTT. Modbus is not the best approach for this.
Reply
#83
(Yesterday, 09:30)admin Wrote: What is your task? If you want to exchange data between two LMs then use MQTT. Modbus is not the best approach for this.

No, I'm not trying to implement two LM remote data exchange. Instead, I want to know what the format of the control message frames is when LM acts as a Modbus TCP slave station?
Reply
#84
It's Modbus TCP protocol, what else could it be? Smile

https://en.wikipedia.org/wiki/Modbus#Modbus_TCP
Reply


Forum Jump: