The following code fails:
var factory = new ModbusFactory();
_master = factory.CreateMaster(new TcpClient(_ip, _port));
_master.ReadHoldingRegisters(1, 49, 7);
The exception we get is this:
XXX initialization failed with the following exception: system.indexoutofrangeexception: index was outside the bounds of the array.
What should I be looking for / configuring?
Thanks !
New contributor
Iris Yellin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.