modbus rtu and zuno

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
Vitali
Posts: 1
Joined: 04 Feb 2019 16:34

modbus rtu and zuno

Post by Vitali » 12 Jun 2019 21:09

Hey. I try to solve the problem by integrating z-wave and modbus RTU (RS-485) last 1-2 months. Does anyone have any experience with this? I'm trying to send a simple command to read or write the register, but it does not work. What I am sending is not recognized correctly. How to send a command to read and write? :( :?:

Code: Select all

 if (varState > 0) {
		 sendText = '01030200017984';
		}
	 else {
		 sendText = '0103020000b844';
		}
	 digitalWrite(pin_direction_RX_TX, HIGH);
	 delay(5);
	 Serial.print(sendText, HEX);
	 Serial0.print(sendText, HEX);
	 delay(5);
	 digitalWrite(pin_direction_RX_TX, LOW);

Post Reply