华北理工大学轻工学院
Qing Gong College North China University of Science and Technology
毕业设计说明书
设计题目: 基于PLC的霓虹灯控制系统
学生姓名:韩凯
学 号:201224470114 专业班级:12自动化1班 学 部:信息科学与技术部 指导教师:张伟 讲师
2016年6月8日
摘要 摘 要
随着改革开放的不断深入,社会市场经济也得到了迅速的发展,在中国的大中小城市都在争先展开亮化工程。为了更好的展现在身形象和提高知名度,大多都会采用性价比比较高的霓虹灯作为宣传手法。霓虹灯的各种用途也渐渐的被众人开发和应用,而这就涉及到了如何快捷、方便的控制这些霓虹灯的亮灭、闪烁,已经成为了不可避免的问题。
本系统通过PLC控制系统来实现对霓虹灯的控制。当按下开关后,“节日快乐”四个字连续不断的闪烁,在“节日快乐”四个字每个字周围都有一组数目为6个的绿色霓虹灯,这些绿色霓虹灯按照一定的顺序进行闪烁。除此之外,在“节日快乐”四个字每字上方和下方都有一组数目为5个的黄色霓虹灯,按照一定的顺序进行闪烁。当按下停止开关后,所有的霓虹灯立即熄灭。如果需要更改霓虹灯的删书欧效果,只需要更改程序即可,操作极为简单。因此,霓虹灯的控制多采用PLC进行控制。
通过这次研究,我们可以直观的感受到PLC对霓虹灯的控制能力特别强,同时PLC的快捷、简单、有效、方便等特点更值得我们深一步认识,在熟练掌握PLC的同时也要深入的开发PLC在其他领域的应用。
关键词 :西门子S7-200;霓虹灯;发展状况
I
Abstract Abstract
Along with the continuous deepening of reform and opening up, the social market economy has been rapid development in China's medium and small cities are rushed to spread lighting engineering. Some companies in order to better show in the body image and enhance the visibility, most of the use of high cost of neon lights as a means of publicity. The various uses of neon lights are gradually being developed and applied, and this is related to how fast and convenient control of these neon lights out, flicker, has become an inevitable problem.
The system based on PLC controller, through the program to achieve the \four word around six neon also shining 1s and in accordance with the order followed by bright 1s, when all words are lit up after, again at the same time bright 1s, then in reverse order in turn the bright 1s, the time interval is 1s. And the top of each word and the bottom of the five neon lights are in accordance with the order of a certain book light. If you need to change the effect of neon lights, only need to change the program can be simple and easy to operate, so the PLC based control system for the use of neon lights.
Through this research, we can intuitively feel the control ability of PLC for the neon lamp particularly strong, at the same time, PLC fast, simple, effective, convenient and more worthy of our further understanding of the, in the applications of master PLC, at the same time, but also to further the development of PLC in other areas.
Keywords :fountain control; PLC; urban landscape; monitoring
II
目录 目 录
摘 要 .................................................................. I Abstract ............................................................... II 目 录 ................................................................ III 第1章 绪论 ............................................................. 1
1.1 霓虹灯设计起源及意义 ............................................ 1 1.2 霓虹灯的发展现状 ................................................ 2 1.3 论文的主要设计任务 .............................................. 2 第2章 霓虹灯控制系统的硬件设计 ......................................... 4
2.1可编程控制器(PLC)的起源 ........................................ 4 2.2 可编程控制器(PLC)的特点及选择 ................................. 5
2.2.1 PLC的特点 ................................................. 5 2.2.2 PLC的选型 ................................................. 6 2.2.3 PLC的工作过程 ............................................. 7 2.3 霓虹灯的硬件设计 ................................................ 7
2.3.1 霓虹灯特点和按钮的选择 .................................... 7 2.3.2 霓虹灯电路图设计 .......................................... 9
第3章 霓虹灯控制系统的软件设计 ........................................ 12
3.1 霓虹灯工作过程 ................................................. 12 3.2 霓虹灯系统软件流程图 ........................................... 13 3.3 霓虹灯控制系统PLC梯形图 ....................................... 14 第四章 组态画面的设计 .................................................. 23
4.1 组态王与S7-226通信建立 ........................................ 23 4.2 组态王变量连接 ................................................. 27 4.3 建立画面 ....................................................... 31 4.4 运行 ........................................................... 32 结论 ................................................................... 34 参考文献 ............................................................... 35 谢辞 ................................................................... 36
III