1、 电气控制技术课程设计说明书电气控制技术课程设计说明书 自动售货机的 PLC 控制 系 、 部: 电气与信息工程系 学生姓名: 指导教师: 职称 副教授 专 业: 电 气 自 动 化 班 级: 完成时间: 电气控制技术课程设计任务书 一课题名称:自动售货机的 PLC 控制 二概述 图 1 所示为一自动售货机示意图,其工作要求如下: 1此售货机可投入 1 元、5 元或 10 元硬币。 2当投入的硬币总值超过 12 元时,汽水按钮指示灯亮;当投入的硬币总值 超过 15 元时,汽水及咖啡按钮指示都亮。 3当汽水按钮灯亮时,按汽水按钮,则汽水排出 7s 后自动停止,这段时间 内,汽水指示灯闪动。 4当
2、咖啡按钮灯亮时,按咖啡按钮,则咖啡排出 7s 后自动停止,这段时间 内,咖啡指示灯闪动。 5当投入的硬币总值超过所需的钱数(汽水 12 元,咖啡 15 元)时,找钱 指示灯亮,表示找钱动作,并退出多余的钱。 咖啡按钮 汽水按钮 汽水 咖啡 找零指示 找零口 硬币入口 图 1 自动售货机示意图 三设计任务及要求 1根据题意,设计该 PLC 控制系统。 2PLC 选择及 I/O 及其它 PLC 元器件分配。 3选择电器元件,编制元件目录表。找钱、汽水及咖啡指示灯为 6.3V 指示 灯。 4绘制梯形图。 5用计算机绘制主电路图、PLC 控制电路图、电器元件布置图。 6编写设计说明书及设计小结。 四设
3、计方案提示 1I/O 地址 X0:1 元识别器 X1:5 元识别器 X2:10 元识别器 X3:咖啡按钮 X4:汽水按钮 X5:复位按钮 Y0:咖啡出口 Y1:汽水出口 Y2:咖啡指示灯 Y3:汽水指示灯 Y4:找钱指示灯 Y5:找钱出口 2方案提示 硬币投入值的累加可采用计数指令, 也可用INC 加1指令或ADD加法指令。 汽水和咖啡选择可采用比较指令。 摘 要 本设计自动售货机以三菱 FX2N-48MR 型 PLC 为核心,能实现售货机的自动售 货功能,并能够长期稳定运行。 本文介绍了自动售货机的基本原理以及工作流程, 从硬件和软件上对系统进 行了较详细的设计。在软件设计时以一次交易过程为
4、例,把交易过程分为几个程 序块,分别对程序块编写梯形图程序,最后完成了总个系统的设计,使所设计系 统达到了设计要求。利用 PLC 控制的自动售货机提高了系统的稳定性,保证自动 售货机能够长期稳定运行。 关键词关键词 自动售货机;PLC;梯形图 ABSTRACT The design of the vending machine with Mitsubishi FX2N-48MR-PLC as the core, to achieve the automatic vending machine sales functions, and be able to run the long-term s
5、tability. This paper introduces the basic principles of the vending machine, as well as workflow, from the hardware and software systems for the more detailed design. In the software to design a course of dealing, for example, the transaction process is divided into several blocks, each block for th
6、e preparation of the ladder program, last month completed a total system design, so that the system designed to meet the design requirements. PLC control of the use of vending machines to improve the stability of the system to ensure that vending machines be able to run the long-term stability. Key words Vending machine;PLC;Ladder diagram 目 录 1 绪论