摘 要: 自动售货机由于具有不受场地限制、24小时工作的特点已经广泛应用到我们生活中,但它还存在抗干扰差和扩展能力不足等弊端。针对以上问题,本文在熟悉自动售货机原理基础上设计一款基于PLC控制的自动售货机,该售货机由硬币感应器、缺货感应开关、驱动电磁阀和人机交互面板组成,采用S7-200 PLC为控制单元,由硬币感应器采集投币信息,用户通过人机交互面板选择商品,当PLC检测到外部输入信号后经内部比较,如果条件满足,电磁阀驱动出货,反之,电磁阀驱动退币,如果商品缺货,人机交互面板报警指示灯亮,而且该商品不能选购。此外,运营商还可以通过内部设置功能更改商品价格或种类。最后通过组态仿真模拟了本设计的工作流程。该自动售货机具有一定的推广价值。65876
毕业论文关键词:自动售货机,S7-200 PLC,组态售货机
Abstract: Vending machine has been widely applied to our lives with the advantages of no space restrictions and working all day. However, It also has the disadvantages of poor anti-interference performance and expansion capabilities. In order to overcome the problems, a vending machine based on PLC is designed after studying the principle. The machine is made up of the coin sensors, out of stock switch, electromagnetic valve and interactive panel. It uses the S7-200 PLC as control unit. The coin information is collected by the coin sensor and the user can select the merchandise through interactive panel. When external input signal is detected by the PLC, it will be compared with the inner information. If the conditions are fit to the requirements, the solenoid valve is driven and goods is put out. On the contrary, the solenoid valve is driven and the coin is sent back. If goods are not available, warning light will be turned on, and the goods cannot be selected. In addition, operators can change the commodity prices or types through the internal sets. Finally, the work process of the design is imitated by configuring the simulation. The vending machine has a certain value for generalization.
Key words: automatic vending machine, S7-200 PLC, Configuration vending machine
目 录
1 绪论 4
2 自动售货机的设计概述 4
2.1 自动售货机总体框图 4
2.2自动售货机设计的主要功能 5
2.3 自动售货机附加功能设置 5
2.4 PLC应用系统设计的原则和步骤 6
3 自动售货机的主要硬件选型 7
3.1 自动售货机的主要硬件系统组成 7
3.2 PLC的选型 8
3.3 自动售货机PLC硬件控制电路设计 10
4 自动售货机的PLC控制系统设计 12
4.1 自动售货机工作流程设计 12
4.2 自动售货机的软件配置 12
4.3 自动售货机PLC控制程序设计 13
4.4 自动售货机设计的相关说明 18
5 自动售货机PLC系统的仿真 18
5.1 S7-200软件的使用 18
5.2 自动售货机仿真 19
结 论 21
参 考 文 献 22
致 谢