摘要
重点介绍西门子PLC的第三方开源驱动库libnodave,并针对笔者实际工作需要对其进行了协议补充。首先从西门子PLC设备的应用及相关开发讲起,逐步引入开源驱动库libnodave的介绍,并着重讲述该库实现的原理及其架构问题,分别从应用的角度和库开发的角度对libnodave源代码进行解析;文末阐述了基于PPI协议的,通过Ethernet转RS-485设备连接PLC的驱动增强方法,并详细介绍了其硬件环境和测试源代码的实现。
The key points given in the paper were introduction on libnodave, which is one open source !ibrary of third party for Siemens PLC devices, and its improvement based on author's real works. The paper begins with the subject about how to develop with Siemens PLC devices, then describes the library libnodave, focusing on its structure and how it is realized. At the last, we discussed one method to improve the library, which is based on PPI protocol via Ethemet - to - RS485 device. Besides, an introdneron on hardware environment and how to be tested were given in detail.
出处
《核电子学与探测技术》
CAS
CSCD
北大核心
2013年第7期847-851,共5页
Nuclear Electronics & Detection Technology