




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 模块化建设策略-洞察与解读
- 智能经济法律规制-洞察与解读
- 超临界流体化学行为-洞察与解读
- 用户画像驱动的形象提升-洞察与解读
- 建筑工程合同风险防范与应对措施
- 沪教版八年级数学重点难点讲解
- 岗位调动交接工作的标准模版
- 项目合作模式与风险控制-洞察及研究
- 酒类电商市场准入分析-洞察及研究
- 虚拟化技术架构演进-洞察及研究
- 项目经理年中会议汇报
- 小学生美容知识培训内容课件
- 宅基地入股合作协议合同范本
- T/CCAS 022-2022水泥工业大气污染物超低排放标准
- 急性脑梗死取栓护理课件
- 普通高等医学教育非直属附属医院认定标准测评表(普通高等医学院校临床教学基地建设与医学教育临床基地建设)
- 安全生产“五个一”、“十个一次”活动内容
- 美团外卖服务合同(完整版)
- 客户回访方案
- 贵州省公路路产损害赔(补)偿收费项目及标准
- 临床技术操作规范麻醉学分册
评论
0/150
提交评论