28.06.2022, 06:54 
		
	
	
		If you read the whole data as array, you can use logic and shift to combine the two registers.
temp = bit.bor(bit.lshift(data[24], 16), data[25])
	
	
	
temp = bit.bor(bit.lshift(data[24], 16), data[25])
| 
					Modbus combine 2 registers
				 | 
| 
					« Next Oldest | Next Newest »
				 | 
| Messages In This Thread | 
| Modbus combine 2 registers - by thomasoppida - 01.06.2022, 09:22 RE: Modbus combine 2 registers - by admin - 01.06.2022, 09:36 RE: Modbus combine 2 registers - by Christian_EWW - 28.06.2022, 06:54 |