1、 摘要 I 基于PLC控制的自动售货机 摘 要 本文设计一套基于PLC的自动售货机控制系统,阐述了自动售货机的发展 背景与前景,详细分析其功能和特点,提出了总体设计方案;选用型号为L293D 的步进驱动电机,设计了平面式贮币、电磁阀退币的货币处理装置,双螺旋式的 送出机构,为降低成本和开发周期,创造性的选用了集成键盘、显示、设置功能 的控制面板; 以三菱FX2N-32MR型PLC为主控制器, 基于FXGP/WIN-C编程软件, 采用顺序控制的程序设计思路,设计了系统控制程序,包括投币程序、比较选择 购买程序和退币程序。 该设计提高了自动售货机的可靠性和执行效率, 且系统维护容易, 维修简单,
2、有一定的市场推广价值。 关键词:自动售货机,可编程序控制器,梯形图 II Based on PLC automatic vending machine system design ABSTRACT Chooses PC machine in the design to take the host workstation on position machine, the lower position machine uses PLC to make the controller, three PLC controllers respectively be from the workstation
3、 1, from the workstation 2, from the workstation 3, in the article exhaustively introduced the automat various hardware composition, and has completed the PLC exterior wiring diagram. In the article has manufactured on the position machine user management contact surface. The present paper key point
4、 places the PLC various hardware part the design and the introduction, the PLC trapezoidal chart Defers to in the overall design process “asks the question, the analysis question, solves the problem” the guiding ideology, has made the careful elaboration to the overall system design work. KEY WORDS:
5、 the vending machine, Programmable controller, Ladder diagram 河南城建学院本科毕业设计(论文) 目录 III 目 录 第1章 绪论 1 1.1课题研究背景 . 1 1.2自动售货机设计目的和意义 . 2 1.3自动售货机功能分析 . 2 1.3自动售货机发展趋势 . 3 第2章 自动售货机硬件结构设计 4 2.1PLC的硬件组成 4 2.2电机的选择 4 2.3货币处理装置 7 2.4送出机构 7 2.5按钮装置 10 2.6 显示装置 10 2.7 本章小结 11 第3章 总体设计方案 . 12 3.1自动售货机系统 12 3.1
6、.1硬件系统的组成部分及工作流程 12 3.1.2控制子系统简述 13 3.1.3PLC的选择 . 13 3.2 PLC控制系统设计编程要求及基本原则 . 14 3.2.1编程要求 14 3.2.2基本原则 15 3.3 系统硬件结构框图 16 第4章 自动售货机控制系统设计 18 4.1自动售货机控制方案设计 . 18 4.2 PLC选型. 18 4.2.1PLC概述 . 18 4.2.2PLC的主要功能 19 4.2.3 I/O点估算和PLC选型 20 4.3 I/O地址设计 . 21 4.4 流程设计 22 4.5PLC与现场器件的连接 24 4.6 程序设计 25 河南城建学院本科毕业设计(论文) 目录 IV 4.6.1比较指令和运算指令 . 25 4.6.2 投币程序 26 4.6.3价格比较程序 . 26 4.6.4根据投入的钱数指示灯显示的程序 27 4.6.5选择商品和送出部分程序 . 27 4.6.6找钱退币程序 . 28 4.6.7梯形图和指令表 . 29