Control Theory and Control Engineering
摘要：Aging population, change in lifestyle and rise in chronic diseases has driven the pharmaceutical market growth and it will continue to maintain the level for a period of time in the future.The traditional pharmaceutical dispensary has been unable to meet the growing medical needs of the people. With the strong support of the government policies, the automatic transformation of traditional pharmacies is the inclination of the Times; the new type of intelligent pharmacy system will continue to promote the development of the pharmaceutical industry. Under this background, based on PLC control, the thesis proposed an intelligent storage and automatic drug delivery system; complete design of the lower computer's control system and the host computer's software system has been present.The system can be applied to dispensing work for Chinese herbal medicinal and Western medicines.Firstly, the essential of intelligent control system for pharmacy is discussed.After the analysis of the requirements, the overall scheme of the system design is presented.Secondly, introduces the software and hardware design of the lower computer's control system, including the selection of PLC and the selection of motion control system, the problem of the human-computer interaction module and the communication between PC and PLC solves, the program design and development of the PLC control system is completed.The design of the upper computer software management system is described in detail.By analyzing of E-R diagram, built the establish data, communication protocol between systems is customize, C++ Builder is adopted to realize interface module, supply module, main control module, etc. The paper also gives the implementations of the multi-threaded system and communication method.Lastly, each module of the lower computer control system is tested.Then, after building a test environment the function test of the upper computer software management system is completed.On this basis, the entire control system accepts the overall test.