西南科技大学 电气专业方向设计报告
设计名称: 自动售货机控制系统设计 姓 名: 学 号: 班 级: 指导教师: 起止日期: 2012-11-15
西南科技大学信息工程学院制
方 向 设 计 任 务 书
学生班级: 学生姓名: 学号: 设计名称: 自动售货机控制系统设计 起止日期: 2012-11-15 指导教师:
设计要求: 1、按下投币口按钮5角、1元、5元,数码显示投币金额为0.5、1.0、5.0。 2、显示金额减去所买货物金额后,数码显示余额,可以一次多买,直到金额不足,灯L1亮提示余额不足。 3、过4秒后,如果没有再操作,则取物口灯亮,有余额则退币口灯亮。 4、如不买货物,按退币钮则退出全部金额、数码显示为零,退币口灯亮。
2
方 向 设 计 学 生 日 志
时间 2012/11/15 2012/11/16 2012/11/20 2012/11/25 2012/12/1 2012/12/5 2012/12/7 2012/12/13 2012/12/14 分析题目,理论设计 设计内容 编写自动售货机PLC程序,调试程序。 学习分布式控制系统构成实验,组建了简单的水位控制系统演示工程 查阅网上资料,学习MCGS组态软件。 MCGS组态软件的界面设计 组态的编写,主要是脚本程序的编写 调试MCGS组态软件与外部设备,对自动售货机的远程控制。 调试MCGS程序以及PLC程序,修改程序 检查实验报告和实验数据,调试软件程序,确定作品能正常运行 3
目录 自动售货机简介........................................................................................................................ 4 一、设计目的和意义................................................................................................................ 5 二、控制要求............................................................................................................................ 6 三、设计方案论证.................................................................................................................... 5 四、系统设计............................................................................................................................ 7 4.1 自动售货机的功能分析 ................................................................................................. 7 4.2 I/O地址定义表 ............................................................................................................... 7 4.3 程序设计 .................................................................................................................... 7 4.4上位机MCGS组态软件画面 .......................................................................................... 5 4.4.1 MCGS组态软件 ..................................................................................................... 9 4.2.2 MCGS组态监控画面的制作 ................................................................................. 6 4.4.1 MCGS组态软件 ..................................................................................................... 6 五、设计结果及分析.............................................................................................................. 17 六、结束语.............................................................................................................................. 19 七、致谢.................................................................................................................................. 19 八、参考文献.......................................................................................................................... 19 九、附录(程序、电路图等).............................................................................................. 21 4
自动售货机
摘要
本文介绍了通过MCGS设计自动售货机的整体过程,以及自动售货机基本原理和工作流程,然后以一次交易过程为例,全面介绍了从送货、配货、到消费的全过程。具体说明了自动售货机的运行与作用。利用MCGS组态软件模拟自动售货机简单易懂,对组态软件的学习,积累了宝贵经验。
关键词 自动售货机;可编程序控制器;梯形图
Abstract
PLC control the design of the vending machine
This paper describes the design of the overall process of the vending machine by MCGS, as well as the basic principles of vending machines and work processes, then the process of a transaction, for example, a comprehensive introduction to the whole process from the delivery, distribution, to consumption. Specify the operation and role of the vending machine. MCGS configuration software to simulate the vending machine is easy to understand, to learn of the configuration software, and has accumulated valuable experience.
Keywords dispenser ;vending machine ; Ladder-shaped picture
5