摘要
本文介绍了基于VB语言环境,采用MSComm通讯控件和RS-232通讯协议实现PC与西门子S7-200PLC之间的通讯方法,并说明了这种通讯方式在机械手控制系统中的具体应用。重点叙述了PLC在自由通讯口模式下几个特殊存储器和VB串行通讯控件属性设置,给出了PLC实现数据接收与发送的具体编程方法。
This paper introduces a method to realize the communication between PC and SIEMENS S7-200 series PLC through MSComm ActiveX and RS-232 serial communication protocol under VB development environment,and explains the application of this way in the control system of pneumatic manipulator in detail. The focal point of introduction is about the function setting of special registers and MSComm ActiveX on VB under free-port communication in PLC, and the way to write program is described to realize receiving and sending the data of PLC.
出处
《微计算机信息》
北大核心
2008年第26期207-208,206,共3页
Control & Automation
关键词
机械手
PLC
VB
串行通讯
Pneumatic Manipulator
PLC
VB
Serial Communication