modjn:Netty用Java实现Modbus

上传者: 42117340 | 上传时间: 2021-09-06 09:59:02 | 文件大小: 633KB | 文件类型: ZIP
现代 使用Netty 4.x的Java中的Modbus TCP客户端/服务器实现 当前实现的Modbus功能 读线圈| 0x01 读取离散输入| 0x02 阅读保存寄存器| 0x03 读取输入寄存器| 0x04 写单线圈| 0x05 写单寄存器| 0x06 写多个线圈| 0x0F 写多个寄存器| 0x10 用法 服务器 为服务器业务逻辑实现ModbusRequestHandler, 为示例 ModbusServer modbusServer = new ModbusServer(502); try { modbusServer.setup(new ModbusRequestHandler()); } catch(ConnectionException ex) { System.out.println(ex.getLocalizedMessage()); }

文件下载

资源详情

[{"title":"( 51 个子文件 633KB ) modjn:Netty用Java实现Modbus","children":[{"title":"modjn-master","children":[{"title":".gitignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"java","children":[{"title":"de","children":[{"title":"gandev","children":[{"title":"modjn","children":[{"title":"ModbusClient.java <span style='color:#111;'> 11.01KB </span>","children":null,"spread":false},{"title":"ModbusConstants.java <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"entity","children":[{"title":"ModbusFunction.java <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"exception","children":[{"title":"ErrorResponseException.java <span style='color:#111;'> 1000B </span>","children":null,"spread":false},{"title":"NoResponseException.java <span style='color:#111;'> 824B </span>","children":null,"spread":false},{"title":"ConnectionException.java <span style='color:#111;'> 899B </span>","children":null,"spread":false}],"spread":true},{"title":"ModbusHeader.java <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"ModbusFrame.java <span style='color:#111;'> 882B </span>","children":null,"spread":false},{"title":"func","children":[{"title":"ModbusError.java <span style='color:#111;'> 6.78KB </span>","children":null,"spread":false},{"title":"Util.java <span style='color:#111;'> 628B </span>","children":null,"spread":false},{"title":"WriteSingleCoil.java <span style='color:#111;'> 905B </span>","children":null,"spread":false},{"title":"WriteSingleRegister.java <span style='color:#111;'> 708B </span>","children":null,"spread":false},{"title":"response","children":[{"title":"ReadInputRegistersResponse.java <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false},{"title":"ReadHoldingRegistersResponse.java <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"WriteMultipleCoilsResponse.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"ReadDiscreteInputsResponse.java <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"ReadCoilsResponse.java <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"WriteMultipleRegistersResponse.java <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":false},{"title":"AbstractFunction.java <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"request","children":[{"title":"WriteMultipleCoilsRequest.java <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"ReadInputRegistersRequest.java <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"WriteMultipleRegistersRequest.java <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"ReadHoldingRegistersRequest.java <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"ReadDiscreteInputsRequest.java <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"ReadCoilsRequest.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"handler","children":[{"title":"ModbusEncoder.java <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"ModbusResponseHandler.java <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"ModbusDecoder.java <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"ModbusRequestHandler.java <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false},{"title":"ModbusChannelInitializer.java <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"example","children":[{"title":"ModbusRequestHandlerExample.java <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"Example.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"ServerForTests.java <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"ExampleUI.form <span style='color:#111;'> 19.09KB </span>","children":null,"spread":false},{"title":"ExampleUI.java <span style='color:#111;'> 30.32KB </span>","children":null,"spread":false},{"title":"ClientForTests.java <span style='color:#111;'> 1008B </span>","children":null,"spread":false}],"spread":true},{"title":"ModbusServer.java <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"de","children":[{"title":"gandev","children":[{"title":"modjn","children":[{"title":"test","children":[{"title":"ModbusWriteSingleCoilTest.java <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"ModbusReadCoilsTest.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"ModbusTestSuite.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"ModbusReadInputRegistersTest.java <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"ModbusWriteMultipleCoilsTest.java <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"ModbusWriteSingleRegisterTest.java <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"ModbusWriteMultipleRegistersTest.java <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"ModbusReadDiscreteInputsTest.java <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"ModbusReadHoldingRegistersTest.java <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"doc","children":[{"title":"Modbus","children":[{"title":"Modbus_Application_Protocol_V1_1b.pdf <span style='color:#111;'> 320.73KB </span>","children":null,"spread":false},{"title":"Modbus_Messaging_Implementation_Guide_V1_0b.pdf <span style='color:#111;'> 436.62KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明