This article introduced vending machine's basic principle as well as the work flow, divide into the transaction process several blocks, 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.