I am very new to Modbus and PyModBus, but I spent a lot of time reading and experimenting with it. If anyone could point me in the right direction, I would appreciate ...
I have a drive with distance, speed, acceleration and deceleration on registers 40001, 40003, 40005 and 40007 (respectively). At first I managed to write to the distance register using client.write_register (0000, n). After you tried to record the speed, the drive began to work with an error and vibrate, and the rotation was 10x as fast as it should be. However, reading registers are a real priority. I am trying to read data from these registers and have zero luck. I tried using
request = client.read_holding_registers(0000,4) response = client.execute(request) print response
However, all I get is "ReadRegisterResponse (0)".
So, my big priority is trying to read the values from these registers ... any tips? (By the way, this is TCP)
source share