1、 1 自动售货机的自动售货机的 PLCPLC 系统设计系统设计 摘要: 本文介绍了自动售货机的基本原理以及工作流程,然后以一次交易过程为 例,把交易过程分为几个程序块,然后分别对程序块进行编程。具体说明了可编程序控 制器在自动售货机中的作用。程序涉及到了自动售货机工作的绝大部分过程。利用 PLC 控制的自动售货机提高了系统的稳定性,保证自动售货机能够长期稳定运行。 关键词 自动售货机;可编程序控制器;梯形图 Abstract: This article introduced vending machines basic principle as well as the work flow, t
2、hen take a transaction process as examples, divides into several blocks the transaction process, then carries on the programming separately to the block. Explained the programmable controllers in vending machine function specifically. The procedure involved the vending machine work major part proces
3、s. Enhanced systems stability using the PLC controls vending machine, the guarantee vending machine has been able the long-term stability movement. key word vending machine; Programmable controller; Trapezoidal chart 2 目录 绪论11 1 自动售货机的介绍 4 1.1 自动售货机功能分析4 1.1.1 自动售货机的基本功能5 1.2 PLC 的基本结构及原理 . . 5 1.3
4、PLC 的选型原则5 2PLC 系统设计 .7 2.1 可编程序控制系统设计的基本原则7 2.1.1 控制系统设计原则 7 2.1.2 控制系统设计的基本内容 7 2.1.3 控制系统设计的一般步骤 .8 2.1.4 程序设计的步骤. 8 3 自动售货机 PLC 程序设计10 3.1 仿真实验中售货机的分析.10 3.2 设计任务的确定.10 3.3 程序设计部分11 3.3.1 程序设计说明11 3.3.2PLC 程序设计11 3.4 仿真界面与 PLC20 3.5 数据连接24 3.5.1 定义 I/O 设备24 3.5.2 设计 26 3.5.3 运行 30 4 结束语.31 参考文献 .32 致谢33 3 绪论 从自动售货机的发展趋势来看,它的出现是由于劳动密集型的产业构造向技术密集 型社会转变的产物。大量生产、大量消费以及消费模式和销售环境的变化,要求出