课程设计课程名称:工控组态软件控制设计题目:自动售货机PLC控制专业班次:姓名:指导教师:日期:摘要自动售货机是能根据投入的钱币自动付货的机器。
自动售货机是商业自动化的常用设备,它不受时间、地点的限制,能节省人力、方便交易。
是一种全新的商业零售形式,又被称为24小时营业的微型超市。
能分为三种:饮料自动售货机、食品自动售货机、综合自动售货机。
自动售货机是可完成无人自动售货,集光、机、电一体化的商业自动化设备。
近年来,我国的自动售货机行业突飞猛进:在汽车总站、商厦、医院、小区、学校等地区纷纷涌现出自动售货机的踪迹。
这种方便快捷的购物方式越来越受到人们的青睐,同时也是现代化城市配套设施的需求传统的自动售货机控制系统采用单片机作为控制核心,这样不仅会在输入输出接口上做大量的工作,而且系统的抗干扰性也比较差。
可编程逻辑控制器(Programmable Logical Controller),简称PLC。
可编程序控制器是综合了计算机技术、自动控制技术和通讯技术而发展起来的一种新型的工业控制装置,它具有可靠性高、编程简单、维护方便等优点,已在工业控制领域得到广泛地应用。
因为自动售货机作为社会上完成商品零售和综合服务的独立设施,要求它的结构必须可靠、稳定和执行效率高。
PLC是以CPU为核心, 综合了计算机技术和通信技术发展起来的一种通用的工业自动控制装置, 是现代工业控制的三大支柱(PLC、机器人和CAD/CAM) 之一。
PLC 的工作原理与计算机的工作原理基本是一致的。
但是PLC也有它自己的特点, PLC在确定了工作任务, 装入了专用程序后成为一种专用机, 它采用循环扫描工作方式, 系统工作任务管理及应用程序执行都是用循环扫描方式完成的。
目前,可编程控制器在国内外已广泛应用于钢铁、石油、化工、电力、建材、机械制造、汽车、轻纺、交通运输、环保等各行各业。
AbstractThe vending machine is based on the coin of input can be automatic pay the goods the machine. The vending machine is the commercial automation equipment, it is not commonly used by the time and location of the limit, can save the human, convenient deal. Is a new commercial retail form, also called 24-hour miniature supermarket. Can be divided into three types: drink vending machine, food vending machine, comprehensive vending machine. The vending machine is no one can accomplish the vending, with light, machine, electricity integration of commercial automation equipment. In recent years, our country vending machine industry by leaps and bounds: in the bus station, shopping malls, hospitals, communities, schools have sprung up in a vending machine of the missing men. This kind of quick and convenient shopping way more and more get the favour of people, but also the demand of modern city facilities of the traditional vending machine control system adopts single chip microcomputer as control core, this will not only in the input/output interface on a large amount of work, and the system of anti-jamming also relatively poor. Programmable logic Controller (Programmable Logical Controller), the abbreviation PLC. Programmable controller is integrated computer technology, automatic control technology and communication technology and developed a kind of new type of industrial control device. Because the vending machine as a social finished on retail and integrated services independent facilities, asking its structure must be reliable, stable and efficient. PLC is as the core, and the CPU integrated computer technology and communication technology developed a kind of general industrial automatic control device, is the modern industrial control of the three pillars (PLC, robots and CAD/CAM) one of. The working principle of computer and PLC of the basic working principle is consistent. But PLC has its own characteristics, PLC in determining the tasks, the load the special program became a kind of steels, it USES circulation scanning work way, work task management system and application of program execution is completed with the circulation of the scanning mode. At present, the programmable controller at home and abroad has been widely used in steel, petroleum, chemical industry, electric power, building materials, machinery manufacturing, automotive, light textile, transportation, environmental protection, and other industries.目录第一章引言 (1)1.1 自动售货机介绍 (5)1.2 自动售货机的基本功能 (5)第二章PLC控制系统设计 (6)2.1 PLC控制系统设计编程要求 (6)2.2 PLC控制系统设计的基本原则 (7)第三章自动售货机的组态软件设计 (8)3.1 组态软件控制设计任务书 (8)3.2 组态软件控制画面设计 (8)3.3 组态软件实际控制画面 (10)3.4 组态软件控制的程序设计 (12)第四章自动售货机PLC控制 (14)4.1 自动售货机PLC控制设计任务书 (14)4.2 自动售货机PLC控制方案设计 (14)4.3 自动售货机PLC控制程序设计 (15)第五章总结......................................................... ..18 参考文献.. (19)第一章引言1.1自动售货机介绍自动售货机是现代社会中的一种商务工具,2004年以后,中国的自动售货机产业将实现快速增长,奥运会和世博会为自动售货机市场带来了巨大商机,2008年后已进入发展期。
自动售货即将在中国零售业掀起继百货商店、超市之后的第三次零售业革命。
可完成无人自动售货,集光、机、电一体化的商业自动化设备。
近年来,我国的自动售货机行业突飞猛进:在汽车总站、商厦、医院、小区、学校等地区纷纷涌现出自动售货机的踪迹。
自动售货机的新奇、文明、高档、灵活方便等深受广大市民青睐。
自动售货机最基本的功能是对投入的货币进行运算,并根据所投入的货币数值判断是否能够购买某种商品, 并做出相应的反映。
因此, 售货机应能够辨识机内包含的商品, 能够对所投入的币值进行累计, 并提供所要购买的商品。
当按下选择商品的按钮时,自动售货机根据投入的币值, 起动电机, 提取商品到出货口, 顾客取出商品, 完成此次交易。
它还具有识币系统、货物和货币的传送系统来实现完整的售货功能。
中国自动售货机市场将到2012年后进入成熟期。
另外,北京的城市改造将使得很多小店小铺消失,同时随着金融支付手段的增多,IC卡、手机移动支付等技术才可以使自动售货机提供便利服务成为可能,这些自动售卖平台的创新模式,无疑为国内的自动售货业迅速成长创造了条件。
1.2自动售货机的基本功能在进行上、下位机程序编写之前,首先要做的工作是确定自动售货机本身所具备的功能及在进行某种操作后所具有的状态。
在实际生活中,我们见到的售货机可以销售一些简单的日用品,如饮料、常用药品和小的生活保健用品等。
售货机的基本功能就是对投入的货币进行运算,并根据货币数值判断是否能够购买某种商品,并作出相应的反应。
举一个简单的例子来说明,例如:售货机中有8中商品,其中01号商品(代表第一种商品)价格为2.60元,02商品为3.50元,其余类推。