




已阅读5页,还剩13页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
英文原文DevelopmentofamonitoringandcontrolplatformforPLC-basedapplicationsAbstractThispaperdiscussesthedesignandimplementationofaplatformtoremotelymonitorandcontrolPLC-basedprocessesoverTCP/IPorbyusingtheGSMnetwork.Theplatformisbuiltusingindustry-standardoff-the-shelfPLCS.IntegratedwitheachPLCarecommunicationprocessorsthatcanbeusedforconnectivitytothenetworkandtoaGSMmodem.Thecommunicationprocessormodule(Ethernetmodule)usedinthiswork,providesanindustrialcompatibleprotocoloverTCP/IPthatachievesthesamefunctionalityasProfinetbutatamuchhigherbandwidth(10/100Mbps).Additionally,amobile-basedcommunicationprotocolthatfacilitatesremotemonitoringandcontrolofPLCsusingSMSmessageshasalsobeendeveloped.Theintenthereistoprovidesystemuserswithaback-upcommunicationmechanismincaseofanetworkfailure.2007ElsevierB.V.Allrightsreserved.Keywords:PLC;TCP/IP;GSM;Remotemonitoring1.IntroductionTherecentgrowthofnetworkstechnologyandspeciallythewidespreadoftheInternethavepromotedthedevelopmentofdistributedmeasurementsystemsforavarietyofindustrialapplications.Thesedistributedmeasurementsystemscanbeusedinthemonitoringandcontrolofvariousinstrumentsinthenetwork1,2.AProgrammableLogicController(PLC)ismicroprocessorbasedcontrolsystemthatcanbeprogrammedtosense,activateandcontrolindustrialequipmentandthereforeincorporatesanumberofinput/outputterminalsforinterfacingtoanindustrialprocess.AcontrolprogramstoredinthePLCmemorydeterminestherelationshipbetweentheinputsandoutputsofthePLC.PLCsareintelligentautomationstationsthatpossesshighlyusefulanddesirablefeaturessuchas3:Robustness.Highdegreeofscalability:modernPLCfamilieshaveawidespectrumofCPUtypesthatallowseasyscalabilityinfunctionalityandperformance.Extensibility:themodulardesignofPLCsenablestheextensionwithawiderangeofdigitalandanalogI/Omodules.Also,variousintegratedtechnologymodulesareavailableforvariousapplicationareas.Sophisticatedcommunicationcapabilities:modernPLCshavecommunicationportsthatprovideforcentralizedordistributedconnectivity.Powerfuldevelopmentenvironment:modernPLCfamiliescomewithacrossdevelopmentenvironmentthatsupportdifferentlanguagesforprogrammability,allowssemigraphicalhardwareconfigurationandofferstrongdebuggingmechanisms.Remoteaccesstocontrolandmonitorvariousdevicesinanindustrialsettingisofvaluetoengineersandautomationfacilities.CurrentimplementationsofremotePLCmonitorandcontrolusededicatedPCsorwebserversconnectedtothePLC.Fig.1illustratesacommonarchitectureusedinindustry.Asshown,PLCSareconnectedtothenetworkthroughacomputer.ThePLCSystemisusuallyinterfacedtothiscomputerusingtheserialPortorProfibus.ThesetypesofsystemsaredisadvantagedbythededicateduseofaPCtoaccessthePLCsystem.Thearchitecturealsodoesnotmakeuseoftheadventsandstridesmadeinareassuchastelecommunicationsandwebtechnology.AComputerStandards&Interfaces30(2008)157166/locate/csiCorrespondingauthor.E-mailaddress:(A.Sagahyroon).0920-5489/$-seefrontmatter2007ElsevierB.V.Allrightsreserved.doi:10.1016/j.csi.2007.08.008InrecentyearsandduetotheeverincreasingcapabilitiesofPCcomputingandtheinfluxofnetworkprotocolsandstandards,therehasbeenasurgeinthedesignandimplementationofdistributedmeasurementandcontrolsystemsforindustrialapplications.Typically,thesesystemsarebasedontheclientserverarchitecturewhilesecuringcommunicationusingtheTCP/IPprotocol46.ModernPLCscomewithembeddedwebserversthatprovideopenaccesstousefulrealtimeinformationanddiagnosticsthatcanbeviewedviaanystandardwebbrowser.Thisremoteaccessibilityprovidesseveraladvantagesovermoretraditionalsolutions.Forexample,aproblemcaneasilybediagnosedandperhapsfixedremotely;alsoengineerscanhaveremoteaccesstothePLCCPUconfigurationtoolsandhenceallowingforremoteupload/downloadandconfigurabilityviatheintranetorinternet.InthispaperwewilldiscussthedesignandimplementationofanetworkedplatformforremotemonitoringandcontrolofPLCs.TheplatformisbuiltaroundtheSiemensS7seriesofPLCs.ThesePLCshaveanintegratedcommunicationprocessorthatcanbeusedtoprovideaccessibilitytotheinternet.Themonitoringandcontrolcanbeaccomplishedinawiredorwirelessenvironment,viaanintranetorinternethenceprovidingforacompletesolutionfortheremotemonitoringandcontrolofindustrialprocesses.WewillalsodiscusstheutilizationoftheGSMnetworkandtheoperationofacommunicationprotocolthatusesSMSmessagingtocommunicatewiththePLCstationsandaDatabaseServerintegratedwiththesystem.Thepaperisorganizedasfollows:inSection2wedescribetheoverallsystemarchitecture;sectionthreeincludesadiscussionofthesoftwareaspectsofthesystem.Sections4and5presentthecommunicationsmethodologyfollowedinthisprojectandthepaperisconcludedinSection6.2.SystemarchitectureTheproposedsystemarchitectureisillustratedinFig.2.Thesystemconsistsofthefollowingcomponents:SomaticS7200/300PLCsystemsandCommunicationProcessors(CPs).EachCPhasanintegratedcommunicationinterface(hardwareandsoftware)thatallowsthePLCtocommunicateinaLAN,WANorviaaGSMnetwork.Clientsandadministratorareconnectedtotheprocessviathenetwork(orwirelessly).Privilegescanbesetorresetbyadministratorstoallowforortolimitthevariousclientsoptions.ADatabaseServerconnectedtotheprocessviathenetworkfordataloggingandeventrecording.AvarietyofnetworkoptionsincludingGSM-basedaccessibility.ThePLCsystemEthernetmoduleisacommunicationprocessorfortheS7familyusedtoconnectthePLCtothenetwork.AnadditionalcommunicationprocessorisusedtoallowcommunicationbetweenthePLCandtheGSMmodemovertheserialport(RS232).Intheproposedimplementation,thePLCsystemreportsremotelythestatusoftheprocesstotheDatabaseServer.TheDatabaseServerrecordsthestatusofthePLCintime-basedtablesandperformsanyrequireddataanalysis.ThesystemalsoreceivesandexecutescommandsfromadministratorsandclientstoFig.1.PC-basedremoteaccessibility.158S.Danaetal./ComputerStandards&Interfaces30(2008)157166controltheprocess.GSMconnectivityisalsoimplementedtoallowuserswithdifferentprivilegestoaccessthestatusofthemandatoryfunctionsofthePLCandallowthemtocontrolthesefunctions.EthernetandGSMconnectivityofthePLCsisimplementedusingtheCP343,andtheCP340communicationprocessors7.Fig.2.Systemarchitecture.Fig.3.Systemsoftwarecomponents.S.Danaetal./ComputerStandards&Interfaces30(2008)157166159.TheSystemsoftwarewasimplementedmainlyusingSimaticManager7andJava.TheSimaticManagerenvironmentisusedforcommunicationwiththePLCsystem.Theproposedarchitectureallowsforprogramming,reprogramming,andconfiguringthesystemremotely.TheJavaapplicationisdevelopedusingtheS7-APIs(S7-ApplicationProgrammingInterfaces)toestablishthecommunicationbetweentheDatabaseServerandPLCstation8.Forexample,usingtheseAPIs,wecaninstantiateobjectsthatwillconnecttheDatabaseServertothePLCstationbyspecifyingtheIPAddressandtheS7addressoftheCPUcontainedinthePLCunit.ThePLCisconnectedtotheprocesssensorsandactuatorsusingI/Omodules.AftertheJavaapplicationrunningontheserversideestablishestheconnectiontoPLCusingtheS7-APIs,itthenusestheJavaDatabaseConnectorTechnology(JDBC)tostoretheretrieveddatathatreflectsthestatusofvariousPLCparametersintheDatabaseTables.JDBCisatechnologythatallowsJavatoconnecttoDatabaseservers.ItcontainstherequiredJavalibrariesthatincludeallthenecessarymethodsrequiredtoconnecttotheDatabaseServerandexecuteSQLstatements.TheoverallsystemallowsuserstosetprocessvaluesusingthePLC.Forexample,userscansetanoutput(actuateamotor)orchangethevalueofamemorycell(memorybit,byte,word,flag,etc.).Thesystemenvironmentalsoprovidesforobtainingthereadingsofinputvalues(sensorsreadings)aswellascapturingthestatusofthePLC.AChartplottercanbeusedtoconvertreadingsfromthePLCsintocharts.Anerrorreportingmechanismthatprovidesadministratorswithusefuldiagnosticinformationisalsoincludedinthecompleteenvironment.SystemadministratorscanalsoquerythestatusoftheprocessusingtheGSMnetworkintheformofSMSmessages.Finally,theproposedsystemarchitectureisscalablewiththeabilitytomonitoracompletenetworkofPLCsspreadingaroundtheIntranetorInternet.3.SystemsoftwarearchitectureThesystemssoftwareusedinthisprojectisdividedintothreecomponents:AdatabasemanagementsystemApplicationmodules(datamanipulationmodules,PLCcommunicationmodulesandGSMmodemmodules)Auserinterface.Fig.3depictsthesystemssoftwaremajorcomponentsandthedirectionsofcommunicationbetweenthem.Adescriptionofeachcomponentisprovidedinthefollowingsubsections.3.1.AnoverviewofthedatabasesystemThedatabasewascreatedusingOracle9i.Itconsistsofasetofinter-relatedtables.Fig.4illustratesthedatabaseschemausedinthiswork.Forthesakeofbrevityabriefdescriptionofeachtableisprovidedbelow:AStationtablethatcontainstheentireinformationassociatedwiththePLCsuchasstationIPaddress,stationname,etc.APointerstablethatcontainsinformationabouteachInput,Outputor,Memorythatthesystemisusing.PointersrepresentaddressesforInput,Outputor,Memory.APointersreadingtableusedtostorethevaluesreadfromitemspointedtobythevariouspointers.Thistableissimilartoalogtablethatholdsthevariousstationsactivities.Fig.4.Databasetablesrelationships.160S.Danaetal./ComputerStandards&Interfaces30(2008)157166AnAdmintablecontainsalltheinformationonsystemusers.ARankattributeindicatesthesecuritylevelforeachadministrator,suchas,MainAdmin,Supervisor,andTrainee.Additionalinformationincludeloginname,password,aHintattributeforpasswordrecovery,etc.AClienttablecontainsalltheinformationpertainingtoeachclientthatisusingthesystemsuchasuseridentification,passwordandphone.Admin_PLCandClient_PLCtablesusedtosetthecorrespondingadminorclienttoaspecificstationid,andpointerid.3.2.ApplicationmodulesThesemodulesareattheheartofthesoftwarecomponentsoftheoverallsystem.TheymanagethecommunicationbetweentheuserinterfaceandtheDBMS.TheyinitiatetheconnectiontothePLCsystemandcontaintheneededobjectsforGSMcommunication.Theapplicationmodulesconsistoffollowingthreesubmodules:Adatamanipulationmodule:thismodulehasseveralclassesthatarecalledfromwithintheuserinterface(GUI)toperformvariousdatamanipulationtaskswithinthedatabasesuchas:insert,update,anddelete.Forexample,theinsertclassisresponsibleofinsertinganynewdatareceivedthroughtheuserinterface.APLCcommunicationmodule:thismoduleconsistsofthreeclasses;theyareusedtoperformtaskssuchasacceptingstationsIDfromusers,verifyingthateachstationhasapointerassociatedwithit,establishingconnectiontothePLCstation,etc.AGSMmodule:thismoduleprovidesforthecommunicationbetweentheGSMmodemandthecommunicationports.Thejavacommunicationpackageisused.Thispackageallowsjavatorecognizeboththeserialandtheparallelportsthatarepartofthesystem.ItcontainsthenecessaryfunctionsrequiredtosendandreceiveATcommandsandSMSmessagesthroughtheGSMmodem.3.3.TheuserinterfaceTheuserinterfaceusedinthisworkallowsusers(administratorsandclients)toaccessandmanipulatethedatabasetablesandtoissuebasiccontrolcommandstothedifferentPLCstations.Fordatabasemanipulationtheadministratordependingonhis/herrankcaninsert,update,orperformdifferentqueries.AdministratorscanalsoperformotheractivitiesusingthisGUIsuchassendingSMSmassagestodifferentclientsandadministrators.Dependingonhisorherrank,anadministratorcanentertheconfigurationarea,andperformactivitiessuchasviewingadminlogs,viewinghelpdocuments,viewingtutorialsofhowtousetheuserinterfaceaswellascontrollingsomeactivitiesinthestation.Fig.5showsoneoftheGUIscreensofthesystem.Thefigureshowsthedifferentfieldsthatcorrespondtothestationtableattributes.UserscanentervariousvaluespertainingtoaparticularstationsuchasitsIPaddress,itslocation,numberofinputsandmaximumnumberofoutputs.AsshownontheleftpaneloftheGUIinterface,usershavetheabilitytosearch,view,configure,andupdatetheinformationofaparticularstation.Fig.5depictsaGUIscreenfortheUpdatecommand.UsersmayusethiscommandtomodifyparticularstationinformationsuchasitsIPaddress,orlocation.Fig.6isasnapshotoftheGUIwheretheuserisembarkingonasearchtask.IntheshownsearchscreentheuserissearchingforaPLCstationbylocation.TheresponsetohissearchrequestisshowninFig.7.4.UsingTCP/IPtocommunicatewiththePLCTheCPmoduleisacommunicationprocessorfortheS7familythatallowsPLCstoconnecttoanIntranetortheInternetFig.5.AGUIdisplay.S.Danaetal./ComputerStandards&Interfaces30(2008)157166161inanyLANsetup.ThemodulesupportsthefollowingTCP/IPcommunicationservices7:SecureFTP(FileTransferProtocol)andHTTP(HyperTextTransferProtocol)serverloginwithuserIDsandpasswordSendE-mailmessageswithembeddedPLCdatatostandardSMTPmailserverFTPclientservicesforfiletransfertoaremoteserverFTPserverservicesforfiletransferto/fromaninternal8MBflashmemoryfilesystembyaremoteFTPclientHTTPserverservicesforremoteInternetbrowseraccessS7seriesprograminstructionsforInternetcommunication.Inadditionthemodulealsohasthefollowingfeatures:CommunicationbasedonTCP/IPandISOstandardsFactoryinstalledMACaddressPeer-to-peercommunicationcapabilitieswithotherS7devicesMultiple(upto8)connectionsEthernetclientorserverconfigurationoptionsPrograminstructionsforinitialization,reconfiguration,anddatatransfer.APLCcanbeprogrammedlocallyorremotelytosense,activateandcontrolindustrialequipmentandtherefore,incorporatesanumberofinput/outputterminalsthatareusedtointerfacethePLCtotheenvironmentorprocess.EachinputandoutputconnectionpointonaPLCmodulehasauniqueaddressthatidentifiesit.UsingtheTCP/IPprotocol,theIPaddressofthePLC,commandtypeandtheaddressoftheitem(I/Opoint)thatisreferencedareallcontainedintheIPpacket.TheIPaddressofthePLCisincludedintheheaderfield.ThepayloadfieldoftheIPpacketisallocatedtocarryvariousPLCFig.6.SampleGUIdisplay.Fig.7.Responsescreentoa“StationSearch”.162S.Danaetal./ComputerStandards&Interfaces30(2008)157166relatedparametersandcommands.Fig.8showsthecontentsoftheframesthataresentandreceivedfromthePLCsystem.TheMemoryParametersfieldcontainsinformation,suchastheaddressoftheitemtobemonitoredand/orcontrolled.Thisitemcanbeanyofthefollowing:InputOutputMemoryareaDatablock.Italsocontainsotherparameterssuchasdatatype(Boolean,integer,etc.),bitorbyteoffsetsandsoon.TheCommandTypefieldcontainsanyofthefollowingcommands:SetValueGetValueGetStatus.TheStatusfieldoftheframereturnsthestatusoftheaddresseditem.Thevaluefieldcontainsthevalueoftheaddresseditem.5.GSMaccessibilityForeseeingthepotentialofGSMservicesforlowvolumedatatransmissionandacquisition911wedecidedtoincorporatetheseservicesinoursystem.TheideahereisallowadministratorsandclientstoaccessthePLCsystemviatheGSMnetworkifneeded,andalsotobeabletoretrievevitalstatusinformationthroughit.TheJavacommunicationpackagewasusedtoallowforthecommunicationbetweentheGSMmodemandthevariousportsofthePLCsandtheserver.FortheGSMmodemthatisconnectedtothePLC,ladderdiagramsareusedtosendATAcommandsasstringstothemodem.SimilarlythereceivedSMSmessagesarereadasstrings.AmessagingcommunicationprotocolthatusesthepublicGSMservicesandissuitableforthisprojectwasdeveloped.Theprotocolusesvariousframestocommunicatewiththesystem.Fig.9depictstheformatusedforQueryframes.Abriefdescriptionofthevariousfieldsincludedintheaboveframeisgivenbelow.TypeofFrame(TOF):thisisa1bytefield.Theuser(administratororcustomer)shouldknowwhattypeofframehe/sheissending.Forthequeryframe,the“TypeofFrame”fieldshouldbesettothevalue1.C/A(Customer/Administrator):thisfieldindicateswhethertheuserisacustomerbywriting“c”oranadministratorbywriting“a”.Thisfieldhasasizeof1byte.UserID:thisfieldcontainsanIDforeachuser.Thelengthofthefieldis4bytes.Password:thisfieldindicateswhetherthepasswordbelongstoanadministratororaclient.Administratorshavefullaccessibilitytochangesensorsstatusbyusingthesetfunction,forexample.Themaximumlengthofthisfieldwillbe10byteswhichmeansthepasswordcantexceed10characters.StationID:thisfieldcontainstheStationIDnumber.Inthiswork,stationIDsareassumedtobeintherangeof1to9999.Thelengthofthisfieldis4bytes.PointerID:thisfieldhasthepointerIDnumber.ThepointersIDswillbeintherangeof1to9999.Thelengthofthisfieldis4bytes.TheQueryresponseframe:theresponseframewillbesentfromtheDatabasetotheadministratororclientwiththestatusofaspecificsensor.AframeillustrationisshowninFig.10.TheStationIDandPointerIDhavethesamemeaningasdescribedabove.TheValuefieldcontainsthereturnedvalueoftheitemwhosestatusisinterrogatedintheQueryframe.Notethatthefirst8bytesintheresponseframeareusedtostorethefollowingstring:“TheQueryResultsforPLC/PointerReadingis”.Fig.11showsanSMSresponsetoaquery.Fig.8.FramesusedtocommunicatewiththePLCsystemusingTCP/IP.Fig.9.MessagingformatfortheQueryframe.Fig.10.MessagingformatfortheResponseframe.S.Danaetal./ComputerStandards&Interfaces30(2008)157166163.Thequeryerrorframe:thisframewillbesenttotheAdministratororthecustomerviatheGSMnetworktoindicatethatanerrorhasoccurred.Thiserrorcanbeeitherinspecifyingthepassword,forexample,ortheStationIDdoesntexist,orthePointerIDdoesntexist.TheErrorframeformatisgiveninFig.12.Thefirst8bytesareusedtostorethestring:“Error:”.TheTypeofErrorfieldwillstateorclarifytheoriginoftheerror,forexample,acommandtypeisnotcorrect,orthePLCIDdoesnotexist.Commandframe:thecommandframecanbesentfromtheadministratortotheDatabaseServerorPLCseekingtochangethestatusofaspecificpointerusinga“setfunction”.ThedifferentframefieldsareshowninFig.13.Abriefdescriptionofeachfieldisprovidedbelow.TOF(TypeofFrame):Forthecommandframe,theTypeofFramefieldissettothevalue2.Value:thisfieldwillcontainthevaluethattheadministratorwantstosetthespecificaddresseditemto.Forexample,theBooleanwhichisusedtosetinputsandoutputssensorswillhavethevalueof0(false)and1(true).Therestofthefieldscarrythesamemeaningasdiscussedpreviously.Fig.14issnapshotofamobilescreencontainingacommandintheformofanSMSmessageusingtheframeformatdiscussedabove.Wealsoimplementeda“Reporting”mechanismbywhichSMSmessagesareautomaticallygeneratedandsenttotheadministratorperiodicallyorincaseofanemergency.ThesemessagescontainspecificcriticalstatusinformationaboutanyPLCstationthatmightrequireimmediateattention.Theimplementationofthismechanismisdetailedbelow.Thereportframe:theseframesaresentfromtheDatabaseServertotheadministrator.TherearetwotypesofReportsFrames:PeriodicalReports:sentperiodically(forexampleweekly)andareusedonlytoinformtheadministratoraboutthestatusofaStation.PeriodicalReportFrameshavetheformatdepictedinFig.15.Thefirst8bytesrepresentanormalStr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 形体礼仪课程课件
- 幼儿感官探索课件
- 二零二五年度跨境电商进出口合同清单
- 二零二五年度防火门产品安全标准制定合同
- 二零二五年度工衣采购与职业培训合作合同
- 二零二五年度建筑材料运输合同标准范本
- 二零二五版智慧城市照明系统升级补充合同范本大全
- 高三试卷:重庆南开中学高2025届高三第三次质量检测数学
- 高三试卷:辽宁省点石联考(辽宁县级协作体)2024-2025学年度上学期2025届高三年级期中考试数学试卷
- 高三试卷:江西省赣州市十八县(市、区)二十四校2025届11月期中联考数学试卷高三11月联考数学
- 小儿呼吸机相关知识详解课件
- SY∕T 5280-2018 原油破乳剂通用技术条件
- 维护手册v00-地铁3号线贯通道系统
- 苏教版五年级数学下册【全册课件完整版】
- 心力衰竭心脏再同步(CRT)治疗课件
- 人防地下室墙体后开洞整改施工方案(防办)
- 现金流量表的编制培训课程(共93张)课件
- 慢性肾衰竭(慢性肾脏病)诊疗指南(内容清晰)
- “县管校聘”教师岗位竞聘量化考评表
- 第十九章颅内和椎管内肿瘤
- 网吧员工消防安全培训记录表
评论
0/150
提交评论