1、 1 自动售货机的 PLC 系统设计 摘要 : 本文介绍了自动售货机的基本原理以及工作流程,然后以一次交易过程为例,把交易过程分为几个程序块,然后分别对程序块进行编程。具体说明了可编程序控制器在自动售货机中的作用。程序涉及到了自动售货机工作的绝大部分过程。利用 PLC控制的自动售货机提高了系统的稳定性,保证自动售货机能够长期稳定运行。 关键词 自动售货机;可编程序控制器;梯形图 Abstract: This article introduced vending machines basic principle as well as the work flow, then take a tran
2、saction 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 process. Enhanced sys
3、tems 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 目录 绪论 .1 1 自动售货机的介绍 . 4 1.1 自动售货机功能分析 4 1.1.1 自动售货机的基本 功能 .5 1.2 PLC 的基本结构及原理 . . 5 1.3 PLC 的选型原
4、则 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 仿真界面与 PLC 20 3.5 数据连接 24 3.5.1 定义 I/O 设备 .24 3.5.2 设计 26 3.5.3 运行 30 4 结束语 .31 参考文献 .32 致谢 .33