Help configure waveshare modbus CTS_602 hmi #99
-
Hello, could someone help me set up Modbus for Nilan CTS602 HMI? I have this Modbus Waveshare, but I don't know how to configure it correctly to send data. Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 21 replies
-
https://github.com/veista/nilan/discussions?discussions_q=waveshare |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm sorry, I don't understand. What don't you have? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
The waveshare device you have might not be a "bridge" it might only be a repeater.
A bridge translates modbus RTU messages (rs485 in this case) to Modbus TCP and vice versa. These are two different protocols which the device should bridge.
If you only have a repeater (I do not know) your waveshare device will send Modbus RTU messages over TCP. In this case you have to edit the code to support this.
Easier if you edit the config_flow.py file:
Replace line: self.data.update({"com_type": "tcp"})
With: self.data.update({"com_type": "rtuovertcp"})
This way you can receive updates without modifying the file every time.