当前位置: 首页 > 文章 > 基于VC的上位机与PLC可靠通信的实现方法 中国农业大学学报 2005,10 (2) 70-74
Position: Home > Articles > A VC-based approach to realize a reliable communication between PLC and IPC Journal of China Agricultural University 2005,10 (2) 70-74

基于VC的上位机与PLC可靠通信的实现方法

作  者:
侯军卫;刘玉锋;王荣杰
单  位:
中国农业大学工学院
关键词:
串行通信;可编程控制器;VC编程;PLC
摘  要:
针对目前市场上上位机通信软件专用、封闭、不兼容等问题,提出了用VC实现上位机与PLC通信的方法。采用西门子公司的S7 -2 0 0系列PLC为下位机,按照RS 4 85标准与上位机通信;通信协议为以自由口模式创建用户自定义的协议,数据传输格式为16进制ASCII编码,求和校验;上位机采用VC编程的可视化界面,在编程过程中采用不可中断方式和多缓冲区结构,并建立相应的控制指针。试验结果表明,当数据传输速率为9 6kbit/s时误码率<10 -5,能够实现现场网络的在线监控、调试及数据修改。
译  名:
A VC-based approach to realize a reliable communication between PLC and IPC
作  者:
Hou Junwei, Liu Yufeng, Wang Rongjie (College of Engineering, China Agricultural University, Beijing 100083,China)
关键词:
serial communication; programmable controller; VC programming; PLC
摘  要:
The interfaces of most PC(IPC)communication software in the market has the problems of individual, enclosed, and less compatibility. The paper developed a VC-based communication approach for the communications between PLC and IPC and adopted PLC-S7-200 of SIEMENS as slave device, which communicate with IPC by RS-485 standard, in the realized system. A user-defined protocol created by freeport mode was taken as the communication protocol, and hexadecimal ASCII code as the form of data transform to verify the sum of ASCII. A non-maskable-interrupt and a multi-buffer structure were adopted and a corresponding controlling pointer was set up during the course of date receiving and sending. The test results indicated that the functions of online surveillance and remote debugging and amending could be realized with code-error less than 10 -5 when transferring data at a speed of 9.6 kbit/s.

相似文章

计量
文章访问数: 1
HTML全文浏览量: 0
PDF下载量: 0

所属期刊

推荐期刊