摘 要 本文介绍了自动售货机的基本原理以及工作流程,售货机的售货领域非常广泛,是发达国家商品零售的一种主要方式。近几年,自动售货机逐渐被越来越多的消费者所接受。但由于售货机分布零散、范围宽阔的特点。本文以一次交易过程为例,把交易过程分为几个程序块,然后分别对程序块进行编程。具体说明了可编程序控制器在自动售货机中的作用。程序涉及到了自动售货机工作的绝大部分过程,绘制梯形图对售货过程进行了分析。利用 PLC 控制的自动售货机提高了系统的稳定性,保证自动售货机能够长期稳定运行。关键词: 自动售货机;可编程控制器;梯形图Abstract This article introduced vending machine's basic principle as well as the work flow, Introduces the basic principle of vending machines and work flow, and then to a transaction process, for example, the process is divided into several blocks, then respectively for program for programming block.then 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 controller's in vending machine function specifically. The procedure involved the vending machine work major part process. Enhanced system's stability using the PLC control's vending machine, the guarantee vending machine has been able the long-term stability movement.key words : vending machine; Programmable controller; Trapezoidal chart目 录摘 要..............................................................................................................................IAbstract...........................................................................................................................II第 1 章 绪论....................................................................................................................11.1 自动售货机讨论的目的和意义.........................................................................11.2 自动售货机的历史...............