1、 毕 业 论 文(设 计) 论 文 ( 设 计 ) 题 目 : 自动售货机控制系统的设计 摘摘 要要 自动售货机是可完成无人自动售货的商业自动化设备,它不受任何场地限制,方 便快捷,可以每天24h售货,在我国也越来越普及。传统的自动售货机采用单片机作 为控制核心,但这样在输入输出接口上消耗很大。PLC不但可实现类似控制功能,还 具有可靠性高、编程简单、功能强、能耗低、调试方便等优点。本款售货机是基于汽 水和咖啡的自动售货设计的。 论文以三菱PLC设计自动售货机控制系统, 简要介绍PLC各硬件选型, 软件的设计, PLC梯形图的编写和系统的调试方法。 关键词关键词:自动售货机, PLC, 调试
2、Abstract Vending machine is a self-service device that can automatically sell goods to customers. It is not restricted to specific sites, which is convenient and sells 24 hours a day. Vending machines also become increasingly popular in China. The traditional vending machines use Single Chip Microco
3、mputer as the core of control, which costs greatly on its input/output interface. PLC not only fulfill a similar controlling function, but also has other advantages such as high reliability, easiness to program, strong function, low energy consumption, convenience to debug and so on. This vending ma
4、chine is based on the design of self-service selling for soft drinks and coffee . On the basis of Mitsubishi PLC, this paper gives a brief introduction to the various hardware selection, software design, the compilation of PLC Ladder Diagram and the debugging method of the system. KeyKey words:words
5、: Vending Machine, PLC, Debugging 目目 录录 摘要 . 错误错误! !未定义书签。未定义书签。 目录 . 错误错误! !未定义书签。未定义书签。 第 1 章 绪论 .5 第 2 章 自动售货机的工艺流程 .5 第 3 章 自动售货机的硬件选型 .7 3.1 红外线传感器 .7 3.2 红外检测器 .8 3.3 红外传感器 .8 3.4 数码管显示 .8 3.5 敲击防盗报警器 10 3.6 硬币识别原理 11 3.7 硬币的贮存和退币机构 12 第 4 章 自动售货机的软件设计 12 4.1 控制要求 12 4.2 方案设计 13 4.3 控制接线图 13 4
6、.4 I/O 口分配 14 4.5 控制流程图 15 4.6 程序设计 16 4.6.1 计币部分 17 4.6.2 比较部分 17 4.6.3 选择和饮料供应部分 18 4.6.4 余额计算部分 18 4.6.5 退币部分 19 4.6.6 报警部分 20 第 5 章 梯形图程序调试 21 结束语 .22 致谢 .23 参考文献 .23 附录 .25 第第 1 1 章章 绪论绪论 自动售货机是可完成无人自动售货,集光、机、电一体化的商业自动化设备。自 动售货机不受任何场地限制, 方便快捷, 可以每天 24h售货, 因此深受上班族的欢迎, 很多城市的公共场所里面都放置有自动售货机, 出售的商品五花八门, 从饮料、 零食、 香烟、糖果,到牙刷、方便面、自动照相机。近年来,我国的自动售货机行业突飞猛 进:在汽车总站、商厦、医院、小区、学校等地区纷纷涌现出自动售货机的踪迹。这 种方便快捷的购物方式越来越受到人们的青睐,同时也是现代化城市配套设施的需 求。传统的自动售货机控制系统采用单片机作为控制核心,这样不仅会在输入输出接 口上做大量的工