Summary of the invention
In order to address the above problem, the invention provides a kind of medicine discharging management devices, long service life can reduce error probability, improves reliability.
Concrete technical scheme is as follows:
A kind of medicine discharging management devices that the embodiment of the present invention provides comprises control unit, actuating unit and display unit, wherein
Described control unit, comprise anti T-R device and microprocessor, described anti T-R device receives the serial data of upper computer and converts processor signal to passes to described microprocessor, described microprocessor carries out the ID coupling according to the processor signal that transmits, judge whether to carry out execution action and demonstration, control signal is sent to described actuating unit, demonstration information is sent to described display unit;
Described actuating unit receives the control signal of described control unit, and moves accordingly;
Described display unit, the demonstration information of the described control unit of reception shows drug quantity.
The preferred embodiment one of according to the present invention, described microprocessor adopts the AT89S52 chip, described anti T-R device adopts the MAX1487 chip, the pin two of anti T-R device is connected with the pin two 2 of microprocessor with pin 3, the pin one of anti T-R device and the pin of microprocessor 5 join, and the pin 4 of anti T-R device joins with the pin 7 of microprocessor.
The preferred embodiment one of according to the present invention, described actuating unit comprises relay and opens cabinet device, the described cabinet device of opening is provided with electromagnet, described relay connects described control unit with reception control signal, and control the described on off state of opening cabinet device by the attracting state of controlling described electromagnet, the medicine outlet that will open cabinet device when disconnecting the adhesive of electromagnet flicks.
The preferred embodiment one of according to the present invention, the serial data that described upper computer is sent is transmitted by the mode of radio communication or data line communication.
The preferred embodiment one of according to the present invention, described display unit comprises LED lamp and digital display tube, and the LED lamp indicates whether that medicine is arranged, and digital display tube shows Quantity of drugs, shows Quantity of drugs according to the demonstration information of control unit.
As can be seen from the above technical solutions, a kind of medicine discharging management devices provided by the invention, adopt the mode of microprocessor control relay, long service life, can reduce error probability, improve reliability, be furnished with simultaneously read out instrument, can show in real time drug quantity, be convenient to control drug quantity.
The specific embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
Embodiment 1
Fig. 1 is the functional block diagram of the medicine discharging management devices that provides of the present embodiment, and as shown in Figure 1, this device comprises control unit 10, actuating unit 20 and display unit 30, wherein
Control unit 10 comprises anti T-R device 101 and microprocessor 102.Anti T-R device 101 receives the serial data of upper computer and converts processor signal to passes to microprocessor 102, microprocessor 102 carries out the ID coupling according to the processor signal that transmits, judge whether to carry out execution action and demonstration, control signal is sent to actuating unit 20, demonstration information is sent to display unit 30.
Wherein, carrying out ID coupling is after converting through anti T-R device the serial data that upper computer sends over to processor signal, resolves the number of the management devices that needing to obtain execution action, if this number is the number of this device, be that ID can mate, move, medicine outlet is flicked; Otherwise do not move.
The serial data that upper computer is sent is transmitted by the mode of radio communication or data line communication, and serial data can be the signals such as RS232 or RS485.What in the present embodiment, serial data adopted is the RS485 signal.Processor signal refers to the signal that microprocessor 102 can be identified and process, as the Transistor-Transistor Logic level signal.Utilize anti T-R device 101 to convert 485 signals to Transistor-Transistor Logic level for microprocessor 102.
Actuating unit 20, the control signal of reception control unit 10, and move accordingly.
Actuating unit 20 comprises electromagnet and opens cabinet device, open cabinet device and be provided with electromagnet, described electromagnet connection control unit 10 is with reception control signal, and control out the on off state of cabinet device by the attracting state of controlling this electromagnet, the medicine outlet that will open cabinet device when disconnecting the adhesive of electromagnet flicks.
Actuating unit 20 is provided with 3 gears, is respectively locking shelves, manual and automatic transmission, arranges by manually stirring.When toggling it to the locking shelves, actuating unit has no idea to automatically perform, and namely electromagnet can't work, and can be used for the occasions such as carrying, provides insurance function, in order to avoid misoperation.When toggling it to automatic transmission, automatically move according to the formula that machine is set, when control signal is unlatching, automatically medicine outlet is flicked, be used for the normal operation occasion of this device.When running into outage, can also be manual by manually toggling it to, medicine outlet is flicked.
Display unit 30, the demonstration information of reception control unit 10 shows drug quantity.
Display unit 30 comprises LED lamp and digital display tube, and the LED lamp is used to indicate whether medicine is arranged, and digital display tube be used for to show Quantity of drugs, and the demonstration information that provides according to the microprocessor of control unit 10 shows Quantity of drugs.
When microprocessor 102 determines the needs action, provide the electromagnet that controls signal to actuating unit 20, electromagnet is disconnected, medicine outlet is flicked, medicine box ejects.Provide simultaneously display to display unit 30, the numeral that shows is upgraded.
Fig. 2 is the schematic circuit diagram of the control unit 10 that provides of the present embodiment, and as shown in Figure 2, microprocessor adopts AT89S52 chip U1, and described anti T-R device adopts MAX1487 chip U2.The pin 6 of chip U2 is connected with upper computer with interface JP8 by interface JP5 with pin 7, receives the rs 232 serial interface signal of upper computer.The pin two of anti T-R device (being chip U2) is connected with the pin two 2 of pin 3 with microprocessor (being chip U1), and the pin one of anti T-R device and the pin of microprocessor 5 join, and the pin 4 of anti T-R device joins with the pin 7 of microprocessor.
The pin 31 of chip U1 to the P0.0 of pin 37 ~ P0.6 signal is connected with the digital display tube of indication mechanism by interface JP1, and joins by pull-up resistor R6 ~ R13 and power supply.The pin one 8 of chip U1 is connected with the LED lamp of indication mechanism by interface JP1 with the P2.0 of pin one 9 ~ P2.1 signal.Wherein, P0.0 ~ P0.6 signal is used for the digital display tube of control display mechanism, and whether P2.0 ~ P2.1 signal control LED lamp also has medicine in the indication medicine box.The P2.6 signal of the pin two 4 of chip U1 is connected by the base stage of resistance R 1 with aerotron Q1, by P2.6 signal control relay U3 action, operates accordingly by interface JP7 output signal Y1 and the 24V power supply electromagnet to actuating unit.
Other peripheral circuits comprise crystal oscillating circuit, reset circuit, electric source filter circuit and indicator light circuit.Crystal oscillating circuit is made of crystal oscillator XT1 and capacitor C 4, C5, is connected to pin one 4 and the pin one 5 of chip U1.Reset circuit consists of by capacitor C 1 and resistance R 2 serial connections, and capacitor C 1 and resistance R 2 point of connection are connected with the pin 4 of chip U1 as the reset signal access point.Electric source filter circuit adopts capacitor C 2, C3 to consist of, and capacitor C 2, C3 are connected between power supply VCC and ground.Indicator light circuit comprises power light and working station indicator.Power light adopts light-emitting diode D2 to be connected to power supply VCC, and by resistance R 9 ground connection.Working station indicator adopts light-emitting diode D2, is connected with the pin one of microprocessor chip U1.
Medicine discharging management devices provided by the invention, the mode of employing microcontroller AT89S52 control relay, long service life, can reduce error probability, improve reliability, be furnished with simultaneously read out instrument, can show in real time drug quantity, be convenient to control drug quantity.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.