电子与信息工程学院专科毕业论文论文题目基于plc智能交通灯的控制学生姓名学号专业电气工程及其自动化班级指导教师2012年9月摘要I摘要目前,我国许多大中城市的交通压力都非常大。部分交通路口的信号灯工作时间不合理,交通违章或肇事记录不确切。所以,改善与提高现有的交通系统的工作效率,加强交通路口的信号灯控制和安全状况的监控是非常重要的。本设计主要设计利用PLC来实现十字路口交通灯的控制与监控。通过交通中心的主机根据具体城市各路口的需要控制各个十字路口的PLC,从而控制十字路口交通灯的变化,以及对各个路口的安全状况进行监控,监控机动车是否违章、是否肇事,并把记录的结果存储、上传和处理。本设计的上位机采用PC机,通过安装在十字路口的监控设备以及移动电子监控设备,对各个十字路口的安全状况进行监控。下位机采用德国西门子的S7-200系列的CPU226做主机,配以扩展模块EM222。设计中采用S7-200编程软件STEP7-Micro/WIN3.2进行编程。采用顺序功能图与梯形图相结合的方法设计程序。实现对城市十字路口的合理控制与监控。关键词:PLC控制系统;梯形图;交通灯咸宁学院学士学位论文IIABSTRACTAtpresent,trafficpressureinmanylargeandmedium-sizedcitiesinChinaisverygreat.Sometrafficlights’sworkinghoursisunreasonable,violationandrecordsoftheincidentisinaccuratetoo.Therefore,toimproveandenhancetheexistingtransportsystem'sefficiencyandstrengthenthecontroloftrafficlightsandmonitoringthesecuritysituationisveryimportant.ThemainideaofdesignistoachievethecontroloftrafficlightsatcrossroadsandmonitoringbyPLC.ThroughthehostatcontrolcentretocontrolthevariouscrossroadsPLCaccordingtothespecificneedsofthejunctionofthecity,tocontrolthechangeoftrafficlightsatthecrossroads,andtomonitorthesecuritysituationatcrossroads,whetherthevehicleviolateregulations,whethercauseincident,andtorecordTheresults.then,storage,uploadandprocessing.Thisdesign'ssuperiormachineusesPC.Throughinstallsintheintersectionmonitoringequipmentaswellasthemobileelectronmonitoringequipment,carriesonthemonitoringtoeachintersection'ssafecondition.ThelowerpositionmachineusesGermanSimens'sS7-200seriesCPU226tomakethemainengine,matchesexpandsmoduleEM222.InthedesignusesS7-200programmingsoftwareSTEP7-Micro/WIN3.2tocarryontheprogramming.Usesmethodsdesignprocedurewhichthesmoothfunctionaldiagramandthetrapezoidalchartunify.Realizestothecityintersectionreasonablecontrolandthemonitoring.KEYWORDS:PLCcontrollingsystem;Trapezoidaldiagram;TrafficLight目录III目录1绪论......................................................................................................................................11.1交通灯发展现状...........................................................................................................11.2交通灯监控系统的设计意义.......................................................................................11.3PLC控制设计内容及任务............................................................................................22交通灯系统总体方案论证..................................................................................................32.1单片机系统控制...........................................................................................................32.2继电器接触控制...........................................................................................................32.3可编程序控制器控制...................................................................................................32.4控制方案的确定...........................................................................................................43系统硬件设计.......................................................................................................................63.1系统的组成框图...........................................................................................................63.2交通灯的控制过程.......................................................................................................63.3PLC的选型................................................................................................................73.4扩展模块的选择..........................................................................................................103.5监控系统......................................................................................................................143.6通信系统......................................................................................................................144系统软件设计.....................................................................................................................164.1系统控制过程..............................................................................................................164.2流程图..........................................................................................................................164.3交通灯工作时序图......................................................................................................194.4梯形图..........................................................................................................................204.5监控界面设计..............................................................................................................282.4.1系统构成..............................................................................................................282.4.2操作流程及通讯原理..........................................................................................295结论与展望............................................................................................错误!未定义书签。致谢....................................................................................................................................32参考文献..............................................................