评阅教师评阅书
评阅教师评价: 一、论文(设计)质量 1、论文(设计)的整体结构是否符合撰写规范? □ 优 □ 良 □ 中 □ 及格 □ 不及格 2、是否完成指定的论文(设计)任务(包括装订及附件)? □ 优 □ 良 □ 中 □ 及格 □ 不及格 二、论文(设计)水平 1、论文(设计)的理论意义或对解决实际问题的指导意义 □ 优 □ 良 □ 中 □ 及格 □ 不及格 2、论文的观念是否有新意?设计是否有创意? □ 优 □ 良 □ 中 □ 及格 □ 不及格 3、论文(设计说明书)所体现的整体水平 □ 优 □ 良 □ 中 □ 及格 □ 不及格 建议成绩:□ 优 □ 良 □ 中 □ 及格 □ 不及格 (在所选等级前的□内画“√”) 评阅教师: (签名) 单位: (盖章) 年 月 日
洛阳理工学院毕业设计(论文)
教研室(或答辩小组)及教学系意见
教研室(或答辩小组)评价: 一、答辩过程 1、毕业论文(设计)的基本要点和见解的叙述情况 □ 优 □ 良 □ 中 □ 及格 □ 不及格 2、对答辩问题的反应、理解、表达情况 □ 优 □ 良 □ 中 □ 及格 □ 不及格 3、学生答辩过程中的精神状态 □ 优 □ 良 □ 中 □ 及格 □ 不及格 二、论文(设计)质量 1、论文(设计)的整体结构是否符合撰写规范? □ 优 □ 良 □ 中 □ 及格 □ 不及格 2、是否完成指定的论文(设计)任务(包括装订及附件)? □ 优 □ 良 □ 中 □ 及格 □ 不及格 三、论文(设计)水平 1、论文(设计)的理论意义或对解决实际问题的指导意义 □ 优 □ 良 □ 中 □ 及格 □ 不及格 2、论文的观念是否有新意?设计是否有创意? □ 优 □ 良 □ 中 □ 及格 □ 不及格 3、论文(设计说明书)所体现的整体水平 □ 优 □ 良 □ 中 □ 及格 □ 不及格 评定成绩:□ 优 □ 良 □ 中 □ 及格 □ 不及格 教研室主任(或答辩小组组长): (签名) 年 月 日 教学系意见: 系主任: (签名) 年 月 日
I
洛阳理工学院毕业设计(论文)
摘 要
此次设计是基于PLC的自动售货机控制系统,首先分析了无人自动售货机的发展历程及发展前景,然后根据其的功能特点详细设计了在此次设计中所需要实现的功能,根据设计功能进行自动售货机的硬件及软件的设计和选型。在进行硬件设计时选用型号为XINX的步进驱动电机,硬币和纸币识别两种货币处理装置,弹簧推送式的送出机构,需要用到的按钮及指示灯种类,以三菱FX-2N-48MR型PLC为主控制器,软件设计时,基于GX Developer编程软件,采用梯形图进行系统控制程序的设计,包括投币累加、比较选择购买和退币复位程序,并采用GX—Simulator来进行程序的调试,最后使用组态王软件进行自动售货机的仿真。
该设计是基于市场需要进行的相关功能的设计及仿真,提高了可靠性,符合市场的需求。
关键词:自动售货机,可编程序控制器,梯形图
II
洛阳理工学院毕业设计(论文)
The design of the control system for vending machine based on
PLC
ABSTRACT
The design is a vending machine based on PLC control system, the first analysis of the development and development prospects of vending machine, then according to the features of the detailed design in the design of the need to implement the function. According to the functional design of the design and selection of hardware and software of the automatic vending machine. In hardware design selects the type XINX into driving motor, coins and paper currency recognition two currency handling apparatus, spring push the sending mechanism, need to use the buttons and indicator species, with Mitsubishi FX-2N-48MR type PLC based controller, software design, base on the GX developer programming software by ladder diagram of system control program design, including coin accumulation, comparison and selection of purchase and the coin reduction program, and the GX simulator to carry out the program debugging. Finally, Kingview software vending machine simulation.
The design is based on the market need for the relevant functional design and simulation, improve the reliability, in line with the market demand.
KEY WORDS: Vending machine,Programmable controller,Ladder diagram
III
洛阳理工学院毕业设计(论文)
目 录
前 言 ................................................................................................ 1 第1章 自动售货机介绍 ................................................................... 3
1.1 自动售货机功能分析 ........................................................... 3 1.2 本次设计的主要内容 ........................................................... 4 第2章 自动售货机硬件设计 ........................................................... 5
2.1 自动售货机控制子系统设计 ................................................ 5 2.2 自动售货机硬件组成 ........................................................... 6 2.3 PLC介绍及选择 .................................................................... 6
2.3.1 PLC产生及发展 ........................................................... 6 2.3.2 PLC硬件组成 ............................................................... 7 2.3.3 PLC的工作原理 ........................................................... 7 2.3.4 PLC的功能 ................................................................... 8 2.3.5 PLC的选择 ................................................................... 8 2.4 货币识别器选型 ................................................................. 10
2.4.1 硬币识别 ................................................................... 11 2.4.2 纸币识别 ................................................................... 11 2.5 送出机构 ............................................................................. 12 2.6 电机选择 ............................................................................. 12 2.7 按钮与指示灯选择 ............................................................. 13 2.8 显示装置 ............................................................................. 13 第3章 自动售货机软件设计 ......................................................... 14
3.1 自动售货机控制流程图 ..................................................... 14 3.2 自动售货机程序设计 ......................................................... 14
3.2.1 程序中所需要用到的部分主要指令 ........................ 15 3.2.2 自动售货机的控制程序 ............................................ 17
第4章 程序的调试及仿真 ............................................................. 24
4.1 梯形图调试 ......................................................................... 24
4.1.1调试前期准备 ............................................................ 24
IV