摘要
西门子ET200SP(远程分布式I/O)CM PtP(串口通信模块)在工业控制及自动化领域中应用广泛,负责与现场串行通信设备进行数据交互。其常规的编程方式是利用西门子自带的基础通信指令,此种方法使用难度大,程序编写繁杂,指令功能单一,且不易于调试和维护。在研究了CM PtP模块和基础通信指令的特点后,利用西门子编程软件STEP7开发编写了一种基于RS485接口的Modbus RTU主站通信程序。经过实际应用与验证,程序运行稳定可靠,实现了控制器作为主站时采用Modbus RTU通信协议的一对一和一对多的串行通信,该程序降低了使用难度,简化了程序编写,丰富了程序功能,且易于调试和维护,具有很大的应用价值,值得推广。
Siemens ET200SP(remote distributed I/O)CM PtP(serial communication module)is widely used in the field of industrial control and automation,responsible for data interaction with field serial communication equipment.Its conventional programming method is to use Siemens'own basic communication instructions,which is difficult to use,complicated programming,single instruction function,and not easy to debug and maintain.After studying the characteristics of CM PtP module and basic communication instructions,a communication program of Modbus RTU master station based on RS485 interface is developed and written by using Siemens programming software STEP7.Through practical application and verification,the program run is stable and reliable,and realize the controller as a master station adopts the Modbus RTU communication protocol of one-to-one and one-to-many serial communication,reduce the difficulty of using the program,simplifies the programming,enrich the application function,and easy to debug and maintain,has great application value and is worth promoting.
作者
薛春阳
尤丽静
陈炳秋
冀卫杰
XUE Chun-yang;YOU Li-jing;CHEN Bing-qiu;JI Wei-jie(Beijing HollySys System Integration Co.,Ltd.,Beijing 100176,China)
出处
《自动化与仪表》
2022年第7期99-102,108,共5页
Automation & Instrumentation