Tomas thank you for your fast reply. Using pymodbus.client fixed it. pyModbusTCP.client I used seems to be broken.