毕业设计自动售货机PLC控制系统设计.doc

上传人:土8路 文档编号:10188336 上传时间:2021-04-27 格式:DOC 页数:20 大小:622.50KB
返回 下载 相关 举报
毕业设计自动售货机PLC控制系统设计.doc_第1页
第1页 / 共20页
毕业设计自动售货机PLC控制系统设计.doc_第2页
第2页 / 共20页
毕业设计自动售货机PLC控制系统设计.doc_第3页
第3页 / 共20页
毕业设计自动售货机PLC控制系统设计.doc_第4页
第4页 / 共20页
毕业设计自动售货机PLC控制系统设计.doc_第5页
第5页 / 共20页
点击查看更多>>
资源描述

《毕业设计自动售货机PLC控制系统设计.doc》由会员分享,可在线阅读,更多相关《毕业设计自动售货机PLC控制系统设计.doc(20页珍藏版)》请在三一文库上搜索。

1、1、总体设计方案1.1、总体设计思路自动售货机的基本功能就是对投入的钱币数进行计算,然后根据运算结果做出相应的判断,看看哪种商品可以进行购买,哪种商品不能购买,本次课程设计的要求是可识别三种钱币,分别是1元、2元、5元,采用三个按钮进行模拟,自动售货机共出售四种货物,其价格分别定为1元、3元、4元、6元,当投币数大于等于货物价格时且售货机里有这种货物时,指示灯亮,表示可以进行购买,四种货物分别用四个小灯代替进行模拟。除此之外,本次设计还涉及了显示、找零、送货等功能的实现,其中显示部分采用数码管进行显示,显示投币总数和购买后的余额;当按下找零按钮后,数码管显示进行清零,采用从高到低递减的形式进行

2、清零,例如:当余额为17元时,按下找零按钮后,先找三个五元数码管分别显示12、7、2,然后再找2元,清零。送货部分采用小车直线运动进行模拟,将四种货物分别送到四个不同的地点,采用四个光电开关分别代表四个不同的送货地点,当按下不同的送货按钮后,小车会以其对应的光电开关为终点做直线往返运动,表示送货过程由于售货机的全部功能是在上位机上模拟的,所以售货机的部分硬件是由计算机软件来模拟替代的这些并不会影响实际程序的操作,完全能模拟现实售货机的运行。1.2、PLC总体设计流程以下为PLC的一般工作过程流程图。 图一 PLC工作过程流程图2、硬件设计我们本次采用的是西门子公司的S7200系列PLC,它可以

3、提供4种不同的基本单元和6种型号的扩展单元,其系统构成包括基本单元、扩展单元、编程器、存储卡、写入器、文本显示器等。2.1、I/O地址分配本次课程设计的主要I/O分配如下:表一 I/O地址分配输入单元PLC地址输出单元PLC地址投币1元I0.1A货物显示Q1.0投币2元I0.2B货物显示Q1.1投币5元I0.3C货物显示Q2.0送货(A货物)I0.4D货物显示Q2.1送货(B货物)I0.5找零出口Q2.2送货(C货物)I0.6出货口Q2.3送货(D货物)I0.7电机正转Q2.6找零I0.0电机反转Q2.5数码个位显示I0.0I0.3数码十位显示I0.4I0.7限位开关S1I1.0限位开关S2I

4、1.1限位开关S3I1.2限位开关S4I1.32.2、中间继电器分配 表二 中间继电器分配中间继电器功 能中间继电器功 能M0.0送A货M1.2电机反转M0.1限位开关S1M1.3电机正转M0.2限位开关S2待添加的隐藏文字内容1M1.4电机正转M0.3送B货M1.5电机反转M0.4送C货M1.6电机正转M0.5限位开关S3M2.0送货延时M0.6送D货M2.1送货延时M0.7限位开关S4M2.2送货延时M1.0电机反转M20.0找零M1.1电机正转2.3、整体系统工作流程整个系统的整体工作流程如图二所示图二 整体工作流程图2.4、硬件接线图 图三 硬件接线图2.5、实物接线图图四 实物接线图

5、3、软件设计4、程序调试在整个程序的调试过程中,我遇到了一些问题,最初的设计比较简单,只是将投币,购买的过程考虑进去,而没有将购买之后送货的过程加进设计的方案中,后来在老师的提醒之下,我又将送货的过程采用了小车直线运动进行模拟,将四个光电开关模拟成四种货物的送货地点,分别在按下四个送货按钮之后,将货物送到四种地点,使得整个系统更加完善,功能更加强大。在数码显示的过程中也遇到了一些问题,数码显示时数据的传输所用到的中间继电器和后来送货时的中间继电器发生了冲突,使得程序运行过程发生了紊乱,后来在同学的帮助下,我明白了问题的关键,将其解决,使数码显示功能顺利实现。在最后的送货过程中,由于有四个地点,

6、所以要对电机的正反转分别进行控制,最初我是将所有的正转输入都采用了Q2.6进行驱动,所有的反转输入都采用了Q2.5进行驱动,当程序运行时,发现得不到预期的现象,经检查程序没有问题,后来经过考虑和同学的提醒,采用中间继电器进行驱动,现象就出现了,实现了最初预想的送货过程。在找零阶段,最初只是按下找零按钮后直接将数码显示清零,后来经过思考和老师的提醒,将找零部分又逐步进行了完善,将找零的过程在数码管上显示了出来先找大面额的钱币,后找小面额的钱币,其内部进行减法运算,使得整个找零的过程清晰可见。在购买货物的过程中最初忽略了如果货物售完该怎么办,后来经过完善将货物的数量进行了设定,只有当投币金额大于等

7、于所要购买的货物时,且货物数量大于零时才能进行购买,这使得整个过程更加完善。Employment tribunals sort out disagreements between employers and employees.You may need to make a claim to an employment tribunal if: you dont agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that

8、you have been dismissed unfairly.For more information about dismissal and unfair dismissal, seeDismissal.You can make a claim to an employment tribunal, even if you haventappealedagainst the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may redu

9、ce any compensation awarded to you as a result of your failure to appeal.Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are complaining about happened. If your application is received after this time limit, the tr

10、ibunal will not usually accept i.If you are worried about how the time limits apply to you, take advice from one of the organisations listed underFurther help.Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath

11、 or affirmation.Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the organisations listed underFurther help.If you are being represented by a solicitor at the tribu

12、nal, they may ask you to sign an agreement where you pay their fee out of your compensation if you win the case. This is known as adamages-based agreement. In England and Wales, your solicitor cant charge you more than 35% of your compensation if you win the case.If you are thinking about signing up

13、 for a damages-based agreement, you should make sure youre clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by e-mail, click onnearest CAB.For more

14、information about making a claim to an employment tribunal, seeEmployment tribunals.The (lack of) air up there Watch mCayman Islands-based Webb, the head of Fifas anti-racism taskforce, is in London for the Football Associations 150th anniversary celebrations and will attend Citys Premier League mat

15、ch at Chelsea on Sunday.I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport.For me its about how he felt and I would like to speak to him first to find out what his experience was.Uefa hasopened disciplinary proceedings against CSKAfor the racist behaviour o

16、f their fans duringCitys 2-1 win.Michel Platini, president of European footballs governing body, has also ordered an immediate investigation into the referees actions.CSKA said they were surprised and disappointed by Toures complaint. In a statement the Russian side added: We found no racist insults

17、 from fans of CSKA.Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day; May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mi

18、nd constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it.一字开头的年龄已经到了尾声。或许是愧疚于自己似乎把转瞬即逝的很多个不同的日子过成了同一天的样子;或许是追溯过去,对自己那些近乎偏执的怪异信念的醒悟,这些天以来,思绪一直很凌乱,在脑海中不断纠缠。总觉得自己自己似乎应该去做点什么,或者写点什么。二十年的人生轨迹深深浅浅,突然就感觉

19、到有些事情,非做不可了。The end of our life, and can meet many things really do?而穷尽我们的一生,又能遇到多少事情是真正地非做不可?During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional; Junior high school, thought to h

20、ave a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isnt really grow up, it seems is not so important; Then in high school, think dont want to give vent to out your inner voice can be in the high school children of

21、the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already cant remember his appearance.童年时,觉得压岁钱和新衣服是过年必备,但是随着年龄的推进,会越来越发现,那些东西根本就可有可无

22、;初中时,以为要有一场暗恋才意味着真正的成长,但三年过去后,自己心平气和的写同学录的时候,突然就发现是不是真正的成长了,好像并没有那么重要了;然后到了高中,觉得非要吐露出自己的心声才能为高中生涯里的懵懂情愫划上一个句点,但毕业晚会的时候最终还是被梗塞在了咽喉,后来再次站在他曾经挥汗如雨的球场,看着他投过篮球的球框时,突然间发现自己已经想不起他的容颜。Originally, this world, can produce a chemical reaction to an event, in addition to resolutely, have to do, and time.原来,这个世界

23、上,对某个事件能产生化学反应的,除了非做不可的坚决,还有,时间。A persons time, your ideas are always special to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a lot of l

24、ove, there are a lot of miss, like shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection, or is a self-righteous spiritual.一个人的时候,自己的想法总是特别地清晰。想要的,不想要的,界限明确,好像没有什么可以撼动自己。也曾经好像已经下定了决心去做某件事,但更多的时候是最后又打起了退堂鼓。嫌恶过自己的怯懦,最终却发现有很多缘分,有很多错过,好像冥冥之中真的已经注定。那些曾经所谓的非做

25、不可,只是青葱年华里自己给自己注射的一支强心剂,或者说,是自以为是的精神寄托罢了。At the moment, the sky is dark, the air is fresh factor after just rained. Suddenly thought of blue plaid shirt; Those were broken into various shapes of stationery; From the corner at the beginning of deep friendship; Have declared the end of the encounter t

26、hat havent start planning. Those years, those days of do, finally, like youth, will end in our life.此刻,天空是阴暗的,空气里有着刚下过雨之后的清新因子。突然想到那件蓝格子衬衫;那些被折成各种各样形状的信纸;那段从街角深巷伊始的友谊;还有那场还没有开始就宣告了终结的邂逅计划那些年那些天的非做不可,终于和青春一样,都将在我们的人生中谢幕。Baumgartner the disappointing news: Mission aborted. r plays an important role in

27、 this mission. Starting at the ground, conditions have to be very calm - winds less than 2 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our day-to-day weather lives. It

28、will climb higher than the tip of Mount Everest (5.5 miles/8.85 kilometers), drifting even higher than the cruising altitude of commercial airliners (5.6 miles/9.17 kilometers) and into the stratosphere. As he crosses the boundary layer (called the tropopause),e can expect a lot of turbulence.The su

29、personic descent could happen as early as Sunda.The weatheThe balloon will slowly drift to the edge of space at 120,000 feet ( Then, I would assume, he will slowly step out onto something resembling an Olympic diving platform.Below, the Earth becomes the concrete bottom of a swimming pool that he wa

30、nts to land on, but not too hard. Still, hell be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end. Skydiver preps for the big jumpWhen he jumps, he is expected to reach the speed of sound - 690 mph (1,1

31、10 kph) - in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him completely.If he goes too fast or spins out of control, he has a stabilization parachute that can be deployed to sl

32、ow him down. His team hopes its not needed. Instead, he plans to deploy his 270-square-foot (25-square-meter) main chute at an altitude of around 5,000 feet (1,524 meters).In order to deploy this chute successfully, he will have to slow to 172 mph (277 kph). He will have a reserve parachute that will open automatically if he loses consciousness at mach speeds.Even if everything goes as planned, it wont. Baumgartner still will free fall at a speed that would cause you and me to pass out, and no parachute is guaranteed to work higher than 25,000 feet (7,620 meters).cause there

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1