Need some help with pymodbus and USR-TCP232-410s
No response received, expected at least 8 bytes (0 received)
i do have it working with modbuspoll and radzio's modbus server but i would like for it to work in python somehow.
from pymodbus.client import ModbusTcpClient
client = ModbusTcpClient('192.168.1.195', port=26) # Replace with your server's IP and port
client.connect()
result = client.read_holding_registers(address=4000, count=10, slave=1)
if result.isError():
print("Error reading registers:", result)
else:
print("Register values:", result.registers)
client.close()