Monday, December 6, 2010

Modern control technology in intelligent dispensing system of traditional Chinese medicine (1)

Intelligent dispensing system Materia Medica (Intelligent Dispense System for Chinese Medicine) is with the Hospital of process systems management to electronic, network development and production.

The system works is: first through the hospital intranet will Terminal computer the prescription to a pharmacy dispensing a master computer, and then by the host computer in query drugs database formed on the basis of dispensing instructions and orders to the dispensing machine, complete dispensing process. At the same time, the host computer in dispensing machine terminal LCD screen display patient information, and driver printer output prescription of integrated information, comprehensive information together with the prescription dispensing machine output with good minutes together with the delivery note packaging with traditional Chinese medicine. Intelligent dispensing system of traditional control systems can be divided into mechatronic control systems and PC software control system, its structure diagram shown in Figure 1.

1 mechanical and electrical control system

Electromechanical control system is a hierarchical structure, use of PC + slave + IC Board integrated control of technology.

Its circuit system structure diagram as shown in Figure 2. Specifically as follows:

(1) PC using PC, is responsible for managing and monitoring and dispatching-level control.

PC not IPC reason is due to the system for interface, database and network contact, etc shall have higher requirements. PC's main function is to man-machine interface input binary encoding information via the RS-232 serial port to the slave and slave working conditions for real-time monitoring, complete prescription printing and LCD display. In addition, it and drug management information systems information exchange, through the hospital to the internal LAN and the introduction of the TCP/IP protocol implementation.

(2) lower computer responsible for device-level control.

Its function is to receive and decode the PC sends binary information, and then under the dispensing pharmacy information selected the desired Pharma, driven to the integrated circuit boards, and traditional Chinese control of the robot to locate, check out drug, wrapped into a bag, along with print prescription together deliver patients. Slave PLC was adopted without selecting a relatively inexpensive microcomputer, one of the reasons is that in order to meet the Chinese medicine dispensing machines for high speed operation, the x axis and Y axis guide rails are made of servo motor and servo motor for microcontroller to control relatively poor, very difficult to achieve precise control; the second reason is the intelligent dispensing system on traditional reliability is very high, while the single chip stability compared with the PLC, and less vulnerable to external electromagnetic interference.

(3) traditional DC motor control using ALTERA Corporation ACEX1KACEX1K chip at the core of the integrated circuit board to complete.

The chip integrates in Max + plus II development system using VHDL language control, counting and timing features. The Board's function is to receive from the PLC to command and the number of drug quality, control motor revolutions, in 0.07g/go to complete requirements for accuracy of the weight of the agents. Because this system uses up to 420 traditional DC motor, therefore use may reduce I/O points and PLC integrated circuit board wiring. The system of all traditional motor from 28 block circuit board control, each IC plate control agents part relatively independent. Thus, inspection and maintenance are not affected by position limit, high reliability and cost performance.

1.1 PLC control

1.1.1 PLC configuration

This system PLC configuration with OMRON plc company and C200HEC200HE on which extends a 16-point relay-type switch output module C200H-OC225, a 32 point transistor type switch output module C200H-OD215, two 16-point switch quantity input module C200H-ID212 and a four-axis position control module C200HE-NC413.

The role of each module as:

(1) two input module for receiving dispensing machines in various contactor position feedback or action of the fault feedback, on their profile without special requirements;

(2) two output module on command, used to manipulate the dispensing machine.

Relay-type switch output module driving current large, but not so frequent action, to control all of the solenoid valve and a variety of DC motors, stepper motors; transistor type switch output module is just the opposite, and its output TTL level, can and other advantages of IC interface, used to drive IC complete traditional operation.

(3) four-axis position control module to control four-axis (X, Y, Z, U) independent of the two servo motors and three stepper motor.

In the X, y axes respectively configured with two servo motors, and three stepper motors due to stagger the working hours of each other, all configuration on the U-axis. In addition, X, Y axis on the left and the origin of the limit switches and proximity switches 3, z axis have one origin, proximity switch, so that a total of 7 proximity switch on receiving C200HENC413. The module to not more than 10ms response time to obtain an order from the PLC memory, 500kp/s-frequency pulse and PLC memory data mapping, completed by modifying the memory data positioning servo motor and stepping motor position and through memory data feedback servo motor and stepping motor functions of the position.

1.1.2 servo motor control circuit

In this system, configured with two OMRON Corporation SMARTSTEP A servo system, on the X, Y axis positioning operation completes, the specific control circuit shown in Figure 3.

Including four-axis position control module C200HE-NC413, universal control cable R88A-CPU002S, servo drive R7D-R7M-A40030-BS1 AP04H, servo-motor (with brake band key straight axial cylindrical motor). Diagrams, CN1, on behalf of servo drives and servo motors CN2 representative coaxial resolution 2000 pulses/rotations of optical incremental encoder with connector, it can be done from the drive to the servo motor with position feedback and speed feedback loop control. The servo motor, M represents the motor itself, on behalf of the encoder E, B represents dynamic brake. Because fixed pulse represents a fixed distance, therefore when the servo motor control system received a number of bars after pulse instruction, you can complete the intended location. In this system, set the motor resolution of 5000 pulses/rotations (0.072/step), servo motor connected to the coaxial reducer with 3: 1 ratio, its driving guide movement rate to 60mm/go. Therefore, servo-motor driven rail movement rate to 20mm/5000 pulses. Servo motor control circuit control principle is: position control unit from the equipment place get a variety of control signals, and depending on the distance between the drug jar and 20mm/5000 pulse data generally work out mapped to four-axis position control module NC413NC413 in PLC's pulse data; then through universal control cable output high-speed pulse to servo drives, servo-motor driven by it, under error feedback automatically fine tune the data, and ultimately achieve accurate positioning purposes.

1.1.3 stepper motor control circuit

No comments:

Post a Comment