基于三菱FX2系列PLC自动饮料售货机控制系统
Beverage vending machines control system based on Mitsubishi
FX2 series PLC
总计 毕业设计 39 页 表 格 1 个 插 图 6 幅南昌工程学院本科毕业设计
摘 要
随着科技发展和生活水平的提高,在许多中大型城市的很多公共场合出现了自动售饮料机,极大的方便的人们的即时性需求,为人们进行简单物品的采购提供了一种便利。传统的自动售饮料机多采用单片机来控制,系统硬件设计复杂,抗干扰能力差,成本高,并且难以保证系统的稳定性,维护困难。
本文的设计是基于三菱PLC自动售饮料机的控制系统,阐述了自动售饮料机的发展背景与前景,详细的分析了自动售饮料机的功能及其特点,提出了总体设计方案。本文选用三菱FX系列PLC为主控控制器,基于FXGP编程软件,采用顺序控制的程序设计方法,设计了系统控制程序,包括计币系统、比较系统、选择系统、饮料供应系统、退币系统。本文的程序部分采用梯形图以及指令语句来编写。
该设计提高了自动饮料机的可靠性和执行效率,系统维护简单、方便,具有一定的场推广价值。
关键字:自动售饮料机 PLC 梯形图
I
摘要
ABSTRACT
With the development of technology and the improvement of living standards, in many large cities in many public places there are beverage vending machines, a great convenience to people's immediate needs, provides a convenient for simple procurement of goods. Traditional beverage vending machines with single-chip microcomputer to control system hardware design for a complex, anti-jamming ability, high cost, and it is difficult to guarantee the stability of the system, and difficult to maintain.
This design is based on Mitsubishi PLC beverage vending machine control system, presented the background and prospect of beverage vending machines, detailed analysis of the function and characteristics of the beverage vending machine, presented the overall design. This selection of Mitsubishi FX series PLC a master controller based on FXGP programming software, use of sequence control program design method, design system control program, including period of currency systems, comparative systems, selected systems, beverage supply systems, coin system.
Program section of this article use of ladder diagram and instruction statements to write. The design to improve reliability and efficiency in the implementation of an automatic drinks machines, system maintenance is simple and convenient, have a certain market value.
Keywords: automatic machine for beverages PLC ladder diagram
II 2
南昌工程学院本科毕业设计
目 录
摘 要 ........................................................................................................................ I ABSTRACT .............................................................................................................. II 第一章、自动售饮料机的介绍 .......................................................................................................... 1
1.1 自动售饮料机的概述 ....................................................................................................... 1 1.2自动售饮料机的功能分析 ................................................................................................ 2 1.3自动售饮料机研究现状 .................................................................................................... 3 1.4 自动售饮料机的前景分析 ............................................................................................... 4
第二章、三菱PLC的介绍 ................................................................................................................... 6
2.1 PLC的概述 ...................................................................................... 错误!未定义书签。 2.2 PLC的产生原因 ................................................................................................................ 6 2.3 PLC的特点 ........................................................................................................................ 7 2.4 PLC的应用领域 ................................................................................................................ 8 2.5 PLC的工作原理 ................................................................................................................ 9 2.6 PLC的选型步骤 ................................................................................................................ 9 2.7 三菱PLC的未来发展趋势 .......................................................................................... 10
第三章、自动售饮料机硬件设计 .................................................................................................. 12
3.1 控制要求 ......................................................................................................................... 12 3.2 光传感器 ......................................................................................................................... 12 3.3 金属硬币的识别原理 ..................................................................................................... 13 3.4 硬币的存储和退币 ......................................................................................................... 14 3.5 自动售饮料机PLC外部接线 ........................................................................................ 15
第四章、自动售饮料机的软件设计 ............................................................................................. 16
4.1设计要求 .......................................................................................................................... 16 4.2 主要设计思想 ................................................................................................................. 16 4.3 总体流程图 ..................................................................................................................... 17 4.4 I/O口地址分配 ................................................................................................................ 17 4.5 主程序设计 ..................................................................................................................... 18
4.5.1计币系统 ................................................................................................................ 18 4.5.2比较系统 ................................................................................................................ 20 4.5.3选择、供应饮料系统 ............................................................................................ 20 4.5.4退币系统 ................................................................................................................ 23
结论 .................................................................................................................................................................. 27 致谢 .................................................................................................................................................................. 29 参考文献 ....................................................................................................................................................... 30 附录.......................................................................................................................................................... ..... ..32