![]() If i want to read 001A i had to convert from hex to dec = 26. ![]() I had to use read_float(0, functioncode=4, number_of_registers=2) where 0 is decimal. Iam totally confused, would be happy if someone could help me… The Manual stats that i have to send Adress+functioncode+data+crc – how to do this, or is pymod/minimod doing this automatically? How does it now the right Function Code etc? The manual states that I have to send a Hi and a Low Adress, but how can i do that? 0x00 is hexa – do i have to convert this? How? RS485MODBUS RTU energy storage grid-connected inverter communication protocol. ![]() It seems i can read Data (first script puts out 17942 and second 17248.īut honestly, i have no clue what to do with it. A simple python script to automate the modbus address value enumerations. #print ('Voltage: Volts'.format(Volts_A)) #Volts_A = rs485.read_float(0, functioncode=4, number_of_registers=4) Print(rs485.read_register(0, functioncode=4,)) Rs485 = minimalmodbus.Instrument('/dev/ttyUSB0', 2)
0 Comments
Leave a Reply. |