rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
928 stars 402 forks source link

System.IO.IOException when reading input registers #53

Open Koopidar opened 3 years ago

Koopidar commented 3 years ago

Hello, I have the following code: ModbusClient modbusClient = new ModbusClient(); void readdata(){ int[] adcvalue = modbusClient.ReadInputRegisters(15,1); }

However, after calling the function for a second or a third time, I get System.IO.IOException. this function is attached to button_click event. I have attached my stack trace

stacktrace.txt

GL1TCH1337 commented 1 year ago

@Koopidar Did you managed to fix it?

Koopidar commented 1 year ago

@Koopidar Did you managed to fix it?

No. I changed my modbus library to nmodbus. No more easymodbus for me.