资源描述:
《毕业设计(论文)基于labview的plc与上位机通讯系统设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、摘要论文以松下FP1系列PLC为研究对象,对其MEWTOCOL-COM协议,有关远程测控系统开发,以及PLC指令的机器代码进行系统研究,并在此基础上开发B/S模式的Web远程测控系统。论文首先介绍了PLC的运用领域和发展前景;其次对MEWTOCOL-COM协议进行了系统的研究分析,以实验统计的方式,得出了PLC基本指令的机器代码表;接着基于LABVIEW10.0,开发了PLC与上位机的人机界面,简单实现了上位机对PLC端口,寄存器,定时器以及布尔命令的读写功能。接下来又介绍了通讯原理和通讯模式,描述了LABVIEW
2、10.0中的通讯函数,然后以16盏流水灯为例子,先在向PLC输入梯形图,然后在通讯系统上对PLC的进行监控,以16盏布尔灯显示其运行过程。接着比较分析了DateSocket通讯,TCP通讯和Web通讯的优缺点,并解释了最终通讯方案选择的原因。最后基于Web通讯技术实现了PLC与上位机的远程通讯。本文技术对进一步研发PLC与上位机通讯系统提供了一定的借鉴作用,尤其机代码的测定在后续进一步开发通讯界面提供了新的方向。关键字:松下PLC上位机串口通讯指令机代码LABVIEW10.0Web服务器IVDesignaCommu
3、nicationSystemBetweenPLCandComputerABSTRCTThepaperseethePLCofFP1seriesmadebyPanasonicastheresearchobject,studyingfortheMEWTOCOL-COMprotocol,thedevelopmentofremotemonitoringandcontrolsystem,aswellasthemachinecoderepresentedthePLCcommand,andfinallybuildaremoteme
4、asurementandcontrolsystembasedontheWebinthemodelofB/S.Firstly,theapplicationfieldsanddevelopmentprospectsareintroducedinthispaper.Secondly,theMEWTOCOL-COMprotocolisstudiedinasystematicway.Meanwhile,themachinecodetableofthePLCbasiccommandwasfoundinstatisticalme
5、thodsbyconductingseriousexperiments.Thirdly,aPCinterfaceliningtoPLCwasconstructedbasedonLABVIEW10.0,anditcanimplementsomefunctionsimply,suchasreadorwritethePLCports,registers,timers,ortheBooleancommandandsoon.Thenthepaperintroducesthecommunicationprincipleandc
6、ommunicationmodes,describescommunicationfunctioninLAB-VIEW10.0,andtakes12lampsforexample,weinputtheladderdiagramintoaPLC,andthenmonitorthePLCwithdisplay16Booleanlampsdisplayitsrunni-ingprocessbythecommunicationsystemwhichwehavedeveloped.Thenwedoacomparativeana
7、lysisoftheDateSocketcommunication,TCPcommunicationandWebinadvantagesanddisadvantages.Finally,thePCinterfacerealizesthelong-distancecommunicationbetweenthehostPCandPLCbasedonWeb.Thetechnologystudiedinthisthesisprovidessomereferencefunctionforthedevelopmentofcom
8、municationssystembetweenPLCandhostPC.Keywords:PanasonicPLCHostPCSerialCommunicationMachineCodeLABVIEW10.0WebServerIV目录摘要IABSTRCTII目录III第一章绪论11.1引言11.1.1PLC概述11.1.2PLC在控制领域的发展前景21.2