摘要
本文选用西门子S7-200PLC,根据它开放的自由口协议实现与单片机的通信。系统由STC89C52RC单片机作为上位机,通过键盘向PLC输入读写指令,由LED数码管显示读写结果,通过串口电路实现硬件上的通信。单片机与PLC的数据通信设计能实现系统参数的在线修改、数据实时记录等功能。
This article selects Siemens S7-200PLC,it according to opens the freeport agreement realize with MCU's correspondence.The system takes the superior machine by the STC89C52RC single chip microcomputer,through the keyboard to the PLC input readwrite instruction,by the LED nixietube demonstration read-write result,realizing on hardware's correspondence through the serial port electric circuit.The SCM and the PLC data communication design can realize system parameters online revision,data real-time record and so on.
出处
《微计算机信息》
2012年第9期351-352,161,共3页
Control & Automation
关键词
通信
单片机
PLC
自由口协议
Correspondence
Single Chip Microcomputer
PLC
Freeport Agreement