徐州工业职业技术学院
摘 要
随着社会经济的发展,城市美化问题越来越引起人们的关注。由于流水灯所具有的特有流动感而广泛应用于广告控制及人们生活中,给人们一种美感,为人们生活带来乐趣。在现代生活中,大型楼宇的轮廓装饰或大型晚会的灯光布景,由于其变化多、功率大,数字电路则不能胜任。
实现流水灯闪烁系统的控制方法很多,可以用标准逻辑器件、可编程序控制器PLC、单片机等方案来实现。其中用标准逻辑器件来实现电路在很大程度上要受到逻辑器件如门电路等的影响,调试工作极为不易,而单片机编程复杂不容易掌握。因此,最终我们选择了用可编程的控制器PLC来实现系统功能的设计。
可编程序控制器在工业自动化中的地位极为重要,广泛的应用于各个行业。随着科技的发展,可编程控制器的功能日益完善,加上小型化、价格低、可靠性高,在现代工业中的应用更加突出。城市交通灯控制采用的可编程制器具有可靠性高、维护方便,用法简单、通用性强等特点,本文用三菱FX2N的可编程控制器控制流水灯闪烁来说明可编程控制器硬件、软件的设计。解决好流水灯控制问题将是保障城市美丽、时尚、快节奏生活的重要环节。三菱系列的可编程序控制器技术来实现对流水灯的信号控制。
关键词:PLC 流水灯 程序 控制
I
徐州工业职业技术学院
Abstract
With the development of economy and society, city beautification problems caused by more and more people's attention. , due to water lamp has a unique sense of flow and widely applied in control and the life of people, give people a sense of beauty, to people the life brings fun.
In modern life, a large building decorative outline or large party light background, because of its changes, big power, digital circuit is not equal to. Realization of road lights flashing system control method a lot of, can use the standard logic devices, programmable logic controller PLC, SCM scheme. The standard logic devices to realize the circuit to a large extent by the logic device such as a gate circuit and so on, debugging is extremely difficult, and the single chip microcomputer programming complex is not easy to grasp, therefore, we chose to use programmable controller PLC to realize the design of system function. The programmable controller in the industrial automation position is extremely important, is widely used in every industry.
With the development of science and technology, the function of the programmable controller is increasingly perfect, coupled with the miniaturization, low price, high reliability, application in modern industry is more outstanding. City traffic light control adopts programmable controller has the advantages of high reliability, convenient maintenance, easy to use, good commonality, the Mitsubishi FX2N programmable controller to control water lights to illustrate the programmable controller hardware, software design. Solve good light control problem would be to protect the city beautiful, fashionable, fast paced life important link. Mitsubishi series PLC technology to achieve the water light signal control Key words: PLC Light water Program Control
II
徐州工业职业技术学院
目录
摘 要.............................................................................................................................. I Abstract ........................................................................................................................ II 第一章 绪论 .................................................................................................................1
1.1引言................................................................................................................. 1 1.2采用流水灯的意义和目的............................................................................... 1 1.3 本次设计的主要内容...................................................................................... 1 第二章 流水灯系统的主要硬件设备的介绍 .............................................................2
2.1可编程控制器的发展历史............................................................................... 2 2.2三菱FX系列PLC计数器(C) ................................................................... 6
2.2.1内部计数器............................................................................................. 6 2.2.2高速计数器............................................................................................. 6 2.3三菱FX系列PLC定时器(T) .................................................................... 6
2.3.1 通用定时器............................................................................................ 6 2.3.2 积算定时器............................................................................................ 7 2.4三菱FX系列辅助继电器(M) .................................................................... 7
2.4.1通用辅助继电器..................................................................................... 7 2.4.2断电保持辅助继电器............................................................................. 7 2.4.3特殊辅助继电器..................................................................................... 7 2.5三菱FX系列PLC输出继电器(Y) ........................................................... 8 2.6三菱FX系列PLC输入继电器(X) ........................................................... 8 第三章 硬件电路设计及软件设计 .............................................................................9
3.1硬件电路设计................................................................................................... 9
3.1.1流水灯分布图......................................................................................... 9 3.1.2控制系统I/O点及地址分配 ................................................................. 9 3.2软件设计......................................................................................................... 10
3.2.1梯形图................................................................................................... 10 3.2.2指令表................................................................................................... 16 3.2.2 PLC程序指令简单说明 ...................................................................... 20
第四章 系统调试 .......................................................................................................21
4.1 运行并调试程序............................................................................................ 21 4.2 流水灯闪烁.................................................................................................... 21 设计总结 .....................................................................................................................22 参考文献 .....................................................................................................................23 致 谢 .........................................................................................................................24
III