基于PLC的自动装药机的设计摘要本设计是一台可以根据不同需求切换装药数量并进行计数和装瓶的自动装药机,本篇论文主要介绍了自动装药机的整体控制系统、工作流程、硬件系统设计和软件系统设计。本系统采用一台三菱FX2N系列PLC完成对自动装药机的整体控制,利用PLC的控制实现装药机的启动/停止,根据需求切换药粒数目和药瓶自动封盖等功能,同时能够实现实时显示装填药粒数目的功能。自动装药机主要分为四个机构:主传动机构、计数机构、药瓶传送机构和自动瓶盖封盖机构,并且通过这四个机构的联动实现存料、选料、计数、装瓶、封盖、送瓶等6个步骤,完成整个自动装药机的自动化控制。本次设计的自动装药机具有控制灵活、计数准确性高、可靠性好、控制线路简单、使用性强等特点,适用于大多数的自动装药作业。关键词:PLC,自动封盖,GMP,装药机,光电传感器iPLC-basedAutomaticTabletbottlingmachinedesignAbstractThisdesigncanbeswitchedaccordingtodifferentneedsandcountthenumberofchargeandbottlingofprofessionalequipment,thispaperintroducestheautomaticloadingmachine'soveralldrugcontrolsystem,includingtheoverallworkflow,thehardwaresystemdesignandsoftwaresystemdesign.ThroughoutaMitsubishiFX2NSeriesPLCtocompletetheoverallmachineautomaticchargecontrol,theuseofPLCcontroltoachieveChargeMachinestart/stopswitchaccordingtodemandthenumberofdrugcapsules,vialsautomaticclosuresystemandotherfunctions,whileachievingreal-timeShowgrainsfillingdrugpurposefunctions.AutomaticChargeMachineismainlydividedintofour:Themaintransmissionmechanism,countingbodies,institutesandautomatictransmissionbottlecapscappingmechanism,andthroughthelinkageofthefouragenciestoachieveStores,choiceofmaterials,counting,bottling,cover,sendingbottlessixstepstocompletetheautomationofmachineautomaticchargecontrol.Thedesignofthemachinewithautomaticchargecontrolflexibility,countinghighaccuracy,reliability,controllines,easytouse,andothercharacteristics,suitableformostautomaticchargeoperation.Keywords:PLC,Automaticcapping,GMP,ChargeMachine,Photoelectricsensorsii目录第一章绪论.........................................................................................................................41.1自动药片装瓶机的发展现状.......................................................................................41.2自动装药机的研究目的及意义...................................................................................4第二章自动装药机的整体构造........................................................................................62.1控制系统整体结构........................................................................................................62.2生产过程和要求............................................................................................................6第三章系统的硬件设计.....................................................................................................83.1PLC简介......................................................................................................................83.2三菱PLC简介.............................................................................................................83.3主程序输入/输出点的分配.........................................................................................83.4加料器的构成...............................................................................................................93.5光电计数器计数分析.............................................................................................