rtsPLCredundancyandnormallycommunicationswiththemasterstationofthePLC.IfthemastersystemofPLCisintheeventoffailure,thecontroljobwouldbetakenoverbythereservesystem,ForceControlwoulddisconnectthecommunicationaccordingtotheswitchflagandturntothereservestationtoexchangedates.B.HardwareDesignofPLCSystemBeforeselectingPLCmodules,analyzethecontrolledobjecttocountoutI/Opoints.Thecurrentrequirementand-margitheworkefficiency.Consideringoildepot’shighrequirementsonreliabilityandcontinuity,redundancyschemeisdesignedtoimprovethereliabilityfurther.II.HARDWAREOFTHESYSTEMA.theOverallstructureandfunctionsFig.OverallstructurediagramofthesystemThestructureofthesupervisorysystemisshowninFig..Therearethreelevelsinthesystem:thefirstlevelissuperiorcomputers.TheyconsistofdualredundantIndustrialComputersinstalledwithconfigurationsoftwareForceControlandplacedinthemonitoringcenterroom,thesecondlevelisS-PLCthatadoptssoftwareredundancyandisplacedinthelocalcontrolrooms,andthefielddevicesincludingelectricallyoperatedvalvesandliquidlevelswitchesformthethirdlevel.IndustrialComputersareconnectedtotheIndustrialEthernetthroughgeneralnetworkcardsandPLCisconnectedtothesamenetbyEthernetcommunicationmodule,sotheycouldaccomplishthecommunicationbyusingTCP/IPprotocol.PLCcollectsfeedbackdatesofelectricallyoperatedvalves,collectsthestatusofliquidlevelswitchesandopensorclosesvalvesaccordingtothecommandfromsuperiorcomputersandthecontrolprogramintheCPUmodule.Inaddition,PLCcompletestheinterlockcontrolofvalveandliquidlevelswitch.ByexchangingdatawithPLC,superiorcomputersinstalledwithForceControl,monitorelectricallyoperatedvalvesandliquidlevelswitchesinrealtimeandgivecommandtoPLCtocontrolthevalves.Redundancystructureisadoptedinthesystem.ForceControlhastakentheleadinprovidingcompletesupportforredundancyamongtheChina-madeconfigurationsoftwareproducts,anditsupportsdeviceredundancy,networkredundancyandsuperiorcomputerredundancy.Therearetwosuperiorcomputersinthesystem,primarystationandsecondarystation.Innormalconditions,onlytheprimarystationcommunicateswithPLCandthedatainthesecondarystationsynchronizewiththeprimarystationtomakeabackup.Iftheprimarystationfails,thesecondarytakesoverthejob.AndthejobrdInternationalConferenceonPowerElectronicsSystemsandApplicationsDigitalReference:Kcouldcomebacktotheprimarystationormanuallyaftertheprimarystationreturnsnormal.ForceControlsupportsPLCredundancyandnormallycommunicationswiththemasterstationofthePLC.IfthemastersystemofPLCisintheeventoffailure,thecontroljobwouldbetakenoverbythereservesystem,ForceControlwoulddisconnectthecommunicationaccordingtotheswitchflagandturntothereservestationtoexchangedates.B.HardwareDesignofPLCSystemBeforeselectingPLCmodules,analyzethecontrolledobjecttocountoutI/Opoints.Thecurrentrequirementand-margi器,然后控制阀门。四个输出控制信号包括开通信号,关断信号和紧急停止、保护信号。三软件操作系统软件系统包括两个主要部分,可编程序控制器(PLC)STEPV.和ForceControlV.。A:电脑和可编程序控制器(PLC)之间通讯ForceControl开发了针对S-PLC一个特殊驱动器,因此对于用户来说没有必要熟悉他们之间通信协议,和程序或配置网络,可以很容易实现PC与PLC之间通信。这个系统一个主要问题是由于PLC软件冗余结构,当控制任务开关从主存储器断开CPU,ForceControl应该和正确对象交换数据。为了这个目,当装置可编程序控制器(PLC)在ForceControl建立,它该配置适当,实时数据库应该被建立,作为一个冗余切换标志。ForceControl配置第一个I/O设备,创造可编程序控制器(PLC)其设备地址设置为,如果设置为,ForceControl将不能连接PLC。备用通道启用和设备IP地址备用IP地址须与可编程序控制器(PLC)两个CP-以太网通信模块相连接。在I/O设备创建以后,定义一数据点实时数据库数据类型选为“冗余切换标志”。标志值正常状态是,当它值为时,ForceControl将转向另一个IP地址,然后值被自动清除。这里数据点连接MWPLC。相应程序装入可编程序控制器(PLC),当工作CPU是主站,MW设置为,当CPU工作是储备站,MW被置为,在可编程逻辑控制器(PLC)程序如下:B非凡电脑软件ForceControl组态软件解决问题()创建一个I/O设备可编程序控制器(PLC)()创造一个实时数据库和PLC数据点相连接;()显示油罐区工作状态图形界面和警觉状态信号,显示操作按钮;()互联图形和变化数据目是发出声音和光报警信号;()程序动作脚本控制阀门。当按钮被按下,一个鼠标事件将触发,然后相应脚本程序执行设置o开信号,关信号和停止标志为或。PLC软件系统中PLC完成功能:()硬件设置创建一个项目(例如两个站A、B),然后打开站A。为站A选择一个模块样式,插入电源设备、CPU--DP和CP-,建立了PROFIBUS网络和以太网,插入和配置ETM。开放站B,创建一个新PROFIBUSDP网络,同样以太网网络连接CP-,拷贝ETM站配置因为两站配置必须相同。()网络配置打开网络配置窗口Netpro,创造一个站A和站B连接,选择连接ISO类型。()编写软件冗余程序软件冗余包提供SWR_LIB,其含有特殊FB和FC。调用这些FB和FC,在根据相应“西门子软件冗余手册要求;()为阀门控制编写程序图变量关系图显示了ForceControl中在可编程控制器(PLC)与电动阀之间变量之间关系,。因为在控制系统中有大量阀和控制方法都是一样,为了简化程序结构一个特殊功能FC编写出来了。图就是FC流程。这种阀门具有两种控制模式,就地控制模式和远程控制模式。必要要判断阀门是不是远程控制模式因为只有用这种模式阀门才能由PLC控制。开启阀门过程如下:点击鼠标在ForceControl图形界面上开按钮,如果开按钮点下可编程序控制器(PLC)设置为,如果鼠标移开按钮返回,与实际开关变化相比,PLC会相应有一秒延迟。一旦前者等于或大于后者,立即传递给停止秒延迟。阀门关断是同样上述过程。当高级开关警报,PLC驱动继电器,然后阀门就会开启。结论优越F电脑配置组态软件提供良好人机界面,通过工业以太网与PLC相连,监督和控制系统对可编程序控制器(PLC)进行可靠和有效控制。双重冗余被采用,大大提高了系统可靠性。该系统结合了计算机和可编程序控制器(PLC)优点,提供简单人机界面、可靠性高,操作容易,而且提高了油库自动化水平。参考资料[]LiuMeijun.SiemensS-PLCApplicationandMaintenance,ChinaMachinePress,[]BeijingSunwayForceControlTechnologyCo.Ltd..Graphicalinterfaceanddevelopmentsystem,Beijing,[]SiemensLtd.,China.SoftwareRedundancyforSIMATIICS-andS-,SiemensLtd.,China,IndustrySector,IndustryAutomation&DriveTechnologies,[]SiemensLtd.,China.ETMDistributedI/Ooperationmanual,SiemensLtd.,China,IndustrySector,IndustryAutomtion&DriveTechnologies,theworkefficiency.Consideringoildepot’shighrequirementsonreliabilityandcontinuity,redundancyschemeisdesignedtoimprovethereliabilityfurther.II.HARDWAREOFTHESYSTEMA.theOverallstructureandfunctionsFig.OverallstructurediagramofthesystemThestructureofthesupervisorysystemisshowninFig..Therearethreelevelsinthesystem:thefirstlevelissuperiorcomputers.TheyconsistofdualredundantIndustrialComputersinstalledwi翻译部分rdInternationalConferenceonPowerElectronicsSystemsandApplicationsPLCandConfigurationSoftwareBasedSupervisoryandControlSystemforOilTanksAreaXiCHENYanboCHEK.W.ECHENGSchoolofElectricalEngineering&Automation,TianjinUniversity,TianjinChina.E-mail:ybche@tju.edu.cnDepartmentofElectricalEngineering,TheHongKongPolytechnicUniversity,HongKong,E-mail:eeecheng@polyu.edu.HKAbstract-AsupervisoryandcontrolsystemforoiltanksareabasedonPLCS-andconfigurationsoftwareForceControlisintroducedinthispaper.Thehardwarestructureofthesystemandthesoftwaredesignarebothdescribedindetail.Inthissystem,SuperiorcomputerscommunicatewithPLCthroughIndustrialEthernet.ThesuperiorcomputerssystemadoptsduplexredundancyandthePLCadoptssoftwareredundancy.ThismonitoringsystemintegratesthemeritofPLCandcomputerandimprovesthereliability.Keywords-PLC,configurationsoftware,supervisoryandcontrolsystem,softwareredundancyI.INTRODUCTIONWiththeincreasingcompetitionoftheoilmarketoildepotsareplayingamoreandmoreimportantrole,andithasbecomealong-termimportantjobtosuperviseandcontroltheoperationstateofoildepots.ThispaperdesignsasupervisoryandcontrolsystemforaoildepotinShandongProvince.Thisoildepotcollectedtankinformationandcontrolledvalvesmanuallybefore.Thereweresomeshortcomingsinitsuchasslowsupervisory,greaterrorandlowreliability.Soitisnecessarytoestablishabettersupervisoryandcontrolsystemthatistimely,accurateandreliable.ProgrammablelogiccontrollersPLChavebeenwidelyusedintheindustrialcontrolfieldsbecauseofitsmeritssuchassimplestructure,flexiblefunctions,highreliabilityandstrongabilityincommunication.Computershaveadvantagesinthedatadisplayandstorage,aswellasinhuman-computercommunications.ThispaperdesignsasupervisoryandcontrolsystemforoiltanksareabasedonPLCandcomputer.PLCisthecontrolcentreanditcompletesallthedetailsofthecontroltask.ItconnectswithdigitalandanalogsignalsoffielddevicesthroughgeneralI/Ointerfaces,collectsandprocessfielddataaccuratelyandquickly,andcompletesthelogic,timing,countingandmathematicaloperationseasily.Computersprovidehuman-machineinterface,displaythefeildworkingstastedynamicly,andmakestheoperationeasy.ThesystemcombinestheadvantagesofPLCandcomputer,providesaremotereal-timemonitoringforthetanksarea,ensuresafetyandreliabilityandimprovestheworkefficiency.Consideringoildepot’shighrequirementsonreliabilityandcontinuity,redundancyschemeisdesignedtoimprovethereliabilityfurther.II.HARDWAREOFTHESYSTEMA.theOverallstructureandfunctionsFig.OverallstructurediagramofthesystemThestructureofthesupervisorysystemisshowninFig..Therearethreelevelsinthesystem:thefirstlevelissuperiorcomputers.TheyconsistofdualredundantIndustrialComputersinstalledwithconfigurationsoftwareForceControlandplacedinthemonitoringcenterroom,thesecondlevelisS-PLCthatadoptssoftwareredundancyandisplacedinthelocalcontrolrooms,andthefielddevicesincludingelectricallyoperatedvalvesandliquidlevelswitchesformthethirdlevel.IndustrialComputersareconnectedtotheIndustrialEthernetthroughgeneralnetworkcardsandPLCisconnectedtothesamenetbyEthernetcommunicationmodule,sotheycouldaccomplishthecommunicationbyusingTCP/IPprotocol.PLCcollectsfeedbackdatesofelectricallyoperatedvalves,collectsthestatusofliquidlevelswitchesandopensorclosesvalvesaccordingtothecommandfromsuperiorcomputersandthecontrolprogramintheCPUmodule.Inaddition,PLCcompletestheinterlockcontrolofvalveandliquidlevelswitch.ByexchangingdatawithPLC,superiorcomputersinstalledwithForceControl,monitorelectricallyoperatedvalvesandliquidlevelswitchesinrealtimeandgivecommandtoPLCtocontrolthevalves.Redundancystructureisadoptedinthesystem.ForceControlhastakentheleadinprovidingcompletesupportforredundancyamongtheChina-madeconfigurationsoftwareproducts,anditsupportsdeviceredundancy,networkredundancyandsuperiorcomputerredundancy.Therearetwosuperiorcomputersinthesystem,primarystationandsecondarystation.Innormalconditions,onlytheprimarystat 翻译部分20093rdInternationalConferenceonPowerElectronicsSystemsandApplicationsPLCandConfigurationSoftwareBasedSupervisoryandControlSystemforOilTanksAreaXiCHEN1YanboCHE1K.W.ECHENG21SchoolofElectricalEngineering&Automation,TianjinUniversity,TianjinChina.E-mail:ybche@tju.edu.cn2DepartmentofElectricalEngineering,TheHongKongPolytechnicUniversity,HongKong,