coassoftwaresystems / delphi-modbus

Delphi ModbusTCP components
MIT License
119 stars 64 forks source link

How to read subnet #25

Open gotoxy opened 6 years ago

gotoxy commented 6 years ago

I can connect to the controler via TCP/IP and read the registry, but i would like to read registry from the subnet of that device (that device is a panel with modbus ID:1 and i have thermostat connected via zigbee using modbus with different ID ex: 253,252,251,250,etc...) how can i read the registry of a modbus subnet ID:253 with this stack ?

plpolak commented 6 years ago

I do not know the implementation details of this setup, but I guess you should use the UnitID property of TIdModbusClient to specify the device.

gotoxy commented 6 years ago

Thx, works great. I thought at first that UnitID was for my client ID on the network.

Thanks again.