coassoftwaresystems / delphi-modbus

Delphi ModbusTCP components
MIT License
116 stars 64 forks source link

ModBusClient.ReadHoldingRegisters - Amount #45

Open faber33 opened 3 years ago

faber33 commented 3 years ago

Hi. How many registers can be read at once?

So far I can read up to 126 registers. Is this a limit or a bug in my program?

plpolak commented 3 years ago

According to the Modbus specification, there is a limit of 126 registers when reading the hold registers. Unfortunately the protocol specifies the amount in a word, suggesting it is possible to read more in one go.

Modbus protocol specification