PLC与工控机串口通信设计.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PLC与工控机的串口通信设计 摘 要 随着计算机技术,自动控制技术及网络技术的迅速发展,在工业领域中对控制系统的要求逐渐增高。在众多的工业控制系统中,分布式控制系统应用最为广泛。在分布式控制系统中,PLC作为现场控制设备,被用于数据采集与控制。而PLC又由工业控制计算机进行编程从而实现两者的数据交换。PLC与工控机的结合,提供了一种可靠、经济和开发周期短的分布式控制系统构建方案。本文主要以PLC作为硬件基础,结合工控机编程软件实现两者间的串口通信。 串口通信的实现是工业控制系统的关键,它作为一种灵活、方便、可靠的数据传输方式,在工业现场得到了越来越多的应用。本文中使用的是三菱PLC与工控机进行通信。通过了解PLC的基本结构、工作原理、功能及特点、内部运作方式和扫描周期,以及三菱PLC的工作模式与网络通信结构,确定PLC与工控机的连接通过标准RS-232通信电缆实现。 PLC与工控机利用标准RS-232通信电缆连接后,首先要设置上下位机的通信格式,具体为数据长度、奇偶校验、停止位、波特率、标题、终结符、控制线、和校验、协议等内容的设置;继而还要设置通信控制协议格式。最后由工控机软件进行编程,编程软件由VC++6.0实现,在软件平台内采用通信空间MSComm空间进行工控机与PLC的通信。将PLC与工控机连接后进行了通信验证,可以证明该程序可以实现PLC与工控机的串口通信。 关键词:PLC、工控机、串口通信、VC++6.0 Abstract With the rapid development of the computer technology, the automatic control technology and the network communication, the demand presented by the industry and mining enterprise to the control system is higher and higher. In the multitudinous industrial control system, the distributed control system’s application is most widespread. In the distributed control system, they usually select PLC as the control device, using in the data acquisition and control. By the industrial control computer, PLC can be programmed to realize the data exchange. The combination of PLC and industrial controlling provides a reliable, economic and short development cycle to build distributed control system. Based on the hardware of the PLC ,the pape combined with software to realize the serial communication between industrial control programming. The implementation of serial communication is the key to the industrial control system, as a flexible, convenient and reliable way of data transmission, is becoming more and more popular in the industrial field of application. The paper use a mitsubishi PLC and industrial computer to realize the communicate. Through understanding the basic structure, working principle, functions and characteristics, internal operation and scan cycle of PLC. And the operation mode of the Mitsubishi PLC and network communication structure, dete

文档评论(0)

nnh91 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档