I know this may seem like a duplicate question but the answers provided didn't solve the issue I am having. I am writing a program to read in analog channels from an ADAM 6017 using pymodbus. To start I am just asking for the first holding register 40000 or as I have it register 0, I can get a reading using Simply Modbus but when I run my code in Python all I get back is Exception Response(131, 3, IllegalAddress)
from pymodbus.client.sync import ModbusTcpClient as ModbusClient
client = ModbusClient("192.168.1.201", port=502, auto_open=True)
rr = client.read_holding_registers(0, 1, unit=0x00)
raw_value = client.read_holding_registers(0, 1, unit=0x00)
rr_response = client.execute(rr)
raw_value_response = client.execute(raw_value)
print(raw_value_response)
print (rr_response)