easy-modbus

Issue while writing ModbusClient and ModbusServer together

风格不统一 提交于 2020-07-08 09:25:34
问题 About the Code I am using EasyModbus Nuget in C# Window Form Application. I am trying to fetch the changed Holding Register's Address Value through RTU(Real Time Update) using ModbusServer . Below code connect to server. void Connect() { ModbusClient client = null; client = new ModbusClient("IP Address", 502); client.Connect(); } Below code fetches the value of address given below Holding Register. client.ReadHoldingRegisters(10001, 1); So far, everything works perfectly. I was reading about

Issue while writing ModbusClient and ModbusServer together

我的未来我决定 提交于 2020-07-08 09:25:05
问题 About the Code I am using EasyModbus Nuget in C# Window Form Application. I am trying to fetch the changed Holding Register's Address Value through RTU(Real Time Update) using ModbusServer . Below code connect to server. void Connect() { ModbusClient client = null; client = new ModbusClient("IP Address", 502); client.Connect(); } Below code fetches the value of address given below Holding Register. client.ReadHoldingRegisters(10001, 1); So far, everything works perfectly. I was reading about