![]() 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? 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. #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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |