自动药片装瓶机PLC控制系统设计院系:机电与自动化学院专业班级:姓名:学号:指导教师:2013年6月自动药片装瓶机PLC控制系统设计ThedesignofPLCcontrolsystemaboutautomatictabletbottlingmachine摘要PLC可编程序控制器其实质是一种专用于工业控制的计算机,其硬件结构基本上与微型计算机相同。它采用一类可编程的存储器,用于其内部存储程序,执行逻辑运算、顺序控制、定时、计数与算术操作等面向用户的指令,并通过数字或模拟式输入/输出控制各种类型的机械或生产过程。在现今医药行业中,自动装瓶机得到了广泛应用,它由PLC通过USS通信协议直接控制电动机。不仅能够实现对装药机方式运行的控制,而且能够根据需要灵活控制装药时间,达到节约电能,降低成本,提高生产效率等目的。PLC特有的I/O指示功能以及简便的PLC控制硬接线使得查找故障点十分迅速、方便。PLC主机工作可靠,本身故障率很低。所以,本文采用PLC设计装瓶机控制系统。关键词:工业控制系统PLC自动装瓶机AbstractPLCprogrammablecontrolleranditsessenceisakindofspecialforindustrialcontrolcomputer,anditshardwarestructureisbasicallythesamewithmicrocomputer.Itadoptsakindofprogrammablememory,foritsinternalstorageprocedures,theimplementationoflogical,sequentialcontrol,timing,countingandarithmeticoperationssuchasuser-orientedinstructions,andthroughdigitaloranaloginput/outputcontrolvarioustypesofmachineryorproductionprocess.Intoday'spharmaceuticalindustry,automaticbottlingmachinehasbeenwidelyused,IitfromthePLCthroughtheUSScommunicationprotocoltocontrolthemotordirectly.Notonlycanrealizethechargingmachineoperationcontrol,andcanflexiblycontrolthechargetime,saveenergy,reducecosts,improveproductionefficiencyandotherpurposes.PLCspecialI/OindicationfunctionandsimplePLCcontrolhardwiringthatfindthepointoffailureisveryrapid,convenient.PLChostworkreliability,failurerateisverylow.Therefore,thispaperusesPLCtodesignabottlingmachinecontrolsystem.Keywords:industrialcontrolsystemPLCautomaticbottlingmachine目录II摘要……………………………………………………………………………………….IAbstract………………………………………………………………………………….II绪论……………………………………………………………………………………….11方案设计……………………………………………………………………………...21.1任务描述……………………………………………………………………………21.2生产工作过程和要求………………………………………………………………31.3方案设计图…………………………………………………………………………41.4系统总体设计………………………………………………………………………52硬件设计……………………………………………………………………………...62.1PLC的基本结构……………………………………………………………………62.1.1PLC的软件结构………………………………………………………………….72.1.2PLC的编程语言………………………………………………………………….82.1.3用户程序结构…………………………………………………………………...102.2PLC的基本工作原理……………………………………………………………..102.3PLC控制系统的设计基本原则…………………………………………………..113软件设计………………………………………………………………………….…133.1PLC输入/输出(I/O)端口与资源分配……………………………………...…133.2硬件系统结构方框图………………………………………………………….….133.3软件系统设计与设备动作要求……………………………………………….….143.3.1信号预处理块………………………………………………………………..….143.3.2药瓶移位及药片装瓶模块………………………………………………….…..153.3.3状态指示及药片计数块………...