資源描述:
《基于labview的plc與上位機(jī)通訊系統(tǒng)設(shè)計(jì)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、摘要論文以松下FP1系列PLC為研究對(duì)象,對(duì)其MEWTOCOL-COM協(xié)議,有關(guān)遠(yuǎn)程測(cè)控系統(tǒng)開發(fā),以及PLC指令的機(jī)器代碼進(jìn)行系統(tǒng)研究,并在此基礎(chǔ)上開發(fā)B/S模式的Web遠(yuǎn)程測(cè)控系統(tǒng)。論文首先介紹了PLC的運(yùn)用領(lǐng)域和發(fā)展前景;其次對(duì)MEWTOCOL-COM協(xié)議進(jìn)行了系統(tǒng)的研究分析,以實(shí)驗(yàn)統(tǒng)計(jì)的方式,得出了PLC基本指令的機(jī)器代碼表;接著基于LABVIEW10.0,開發(fā)了PLC與上位機(jī)的人機(jī)界面,簡(jiǎn)單實(shí)現(xiàn)了上位機(jī)對(duì)PLC端口,寄存器,定時(shí)器以及布爾命令的讀寫功能。接下來又介紹了通訊原理和通訊模式,描述了LABVIEW10.0中的通訊函數(shù),然后以16盞流水燈為例子,先在向PLC輸入梯
2、形圖,然后在通訊系統(tǒng)上對(duì)PLC的進(jìn)行監(jiān)控,以16盞布爾燈顯示其運(yùn)行過程。接著比較分析了DateSocket通訊,TCP通訊和Web通訊的優(yōu)缺點(diǎn),并解釋了最終通訊方案選擇的原因。最后基于Web通訊技術(shù)實(shí)現(xiàn)了PLC與上位機(jī)的遠(yuǎn)程通訊。本文技術(shù)對(duì)進(jìn)一步研發(fā)PLC與上位機(jī)通訊系統(tǒng)提供了一定的借鑒作用,尤其機(jī)代碼的測(cè)定在后續(xù)進(jìn)一步開發(fā)通訊界面提供了新的方向。關(guān)鍵字:松下PLC上位機(jī)串口通訊指令機(jī)代碼LABVIEW10.0Web服務(wù)器IVDesignaCommunicationSystemBetweenPLCandComputerABSTRCTThepaperseethePLCofFP1se
3、riesmadebyPanasonicastheresearchobject,studyingfortheMEWTOCOL-COMprotocol,thedevelopmentofremotemonitoringandcontrolsystem,aswellasthemachinecoderepresentedthePLCcommand,andfinallybuildaremotemeasurementandcontrolsystembasedontheWebinthemodelofB/S.Firstly,theapplicationfieldsanddevelopmentpro
4、spectsareintroducedinthispaper.Secondly,theMEWTOCOL-COMprotocolisstudiedinasystematicway.Meanwhile,themachinecodetableofthePLCbasiccommandwasfoundinstatisticalmethodsbyconductingseriousexperiments.Thirdly,aPCinterfaceliningtoPLCwasconstructedbasedonLABVIEW10.0,anditcanimplementsomefunctionsim
5、ply,suchasreadorwritethePLCports,registers,timers,ortheBooleancommandandsoon.Thenthepaperintroducesthecommunicationprincipleandcommunicationmodes,describescommunicationfunctioninLAB-VIEW10.0,andtakes12lampsforexample,weinputtheladderdiagramintoaPLC,andthenmonitorthePLCwithdisplay16Booleanlamp
6、sdisplayitsrunni-ingprocessbythecommunicationsystemwhichwehavedeveloped.ThenwedoacomparativeanalysisoftheDateSocketcommunication,TCPcommunicationandWebinadvantagesanddisadvantages.Finally,thePCinterfacerealizesthelong-distancecommunicationbetweenthehostPCandPLCbasedonWeb.Thetechnologystudiedi
7、nthisthesisprovidessomereferencefunctionforthedevelopmentofcommunicationssystembetweenPLCandhostPC.Keywords:PanasonicPLCHostPCSerialCommunicationMachineCodeLABVIEW10.0WebServerIV目錄摘要IABSTRCTII目錄III第一章緒論11.1引言11.1.1PLC概述11.1.2PLC在控制領(lǐng)域的發(fā)展前景21.2