CN206649615U - Using medicine deposit position instruction device in the pharmacy of relay interface - Google Patents

Using medicine deposit position instruction device in the pharmacy of relay interface Download PDF

Info

Publication number
CN206649615U
CN206649615U CN201620495174.4U CN201620495174U CN206649615U CN 206649615 U CN206649615 U CN 206649615U CN 201620495174 U CN201620495174 U CN 201620495174U CN 206649615 U CN206649615 U CN 206649615U
Authority
CN
China
Prior art keywords
transistor
rs232c
triode
level
transistor logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201620495174.4U
Other languages
Chinese (zh)
Inventor
曾艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201620495174.4U priority Critical patent/CN206649615U/en
Application granted granted Critical
Publication of CN206649615U publication Critical patent/CN206649615U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

Medicine deposit position instruction device in a kind of pharmacy using relay interface, wherein, computer is connected with main frame by RS232C interfaces, five pieces of single-chip microcomputers in main frame are communicated with parallel, serial mode successively, their mouth line P1, P2 respectively constitutes 40 row output lines and 40 column output lines after 8 X, 2 X, 5 Transistor-Transistor Logic levels → RS232C electric level interfaces, and each Transistor-Transistor Logic level → RS232C electric level interfaces control a relay to realize level conversion task by a transistor switching circuit.In each position instruction element circuit, two input is connected respectively to the row, column output line on corresponding row, column output line crossover location, the RS232C being made up of triode → Transistor-Transistor Logic level Interface Controller acousto-optic indicating circuit.

Description

Using medicine deposit position instruction device in the pharmacy of relay interface
Technical field
The utility model belongs to application electric technology field, and in particular to a kind of electricity for indicating pharmacy Chinese medicine deposit position Sub-device.
Background technology
By the artificial deposit position for searching medicine in pharmacy, take great energy time-consuming.
The content of the invention
In order to improve the efficiency that medicine is deposited or extracted in pharmacy, the utility model provides a kind of using relay interface Medicine deposit position instruction device in pharmacy, it indicates the medicine in medicine according to the nomenclature of drug inputted in computer with sound or light Deposit position in room.
Technical scheme is used by the utility model solves its technical problem:The device include a computer, one Main frame and N number of position instruction element circuit, the X 40 of N=40, computer are connected to master by the RS232C interfaces of computer The RS232C interfaces of machine, main frame have 40 row output lines and 40 column output lines, the place peace that each row, column output line intersects Arrange a position instruction element circuit:One input of the position instruction element circuit is connected to corresponding row, column output line Row output line on crossover location, its another input are connected to the column output line on the row, column output line crossover location.
The main frame include a RS232C interface, 5 single-chip minimum systems, 8 X, 2 X, 5 Transistor-Transistor Logic levels → RS232C electric level interfaces, 40 row output lines, 40 column output lines ,+5V power supply VCC and -5V power supplys-VCC;+ 5V the electricity Source VCC power supply main frame each several parts, 5 single-chip minimum systems each include one piece of chip processor AT89S51 and its crystal oscillator electricity Road and electrification reset circuit, the RS232C interfaces are by a pair of level conversion drivers in level conversion drive circuit MAX232 RS232 level inputs, RS232 level output ends and+5V power supplys VCC negative pole GND form, this drives to level conversion The TTL level inputs of device, Transistor-Transistor Logic level output end are connected respectively to first piece of mouth line in the chip processor AT89S51 TXD, RXD, first piece of chip processor AT89S51 and second piece of chip processor AT89S51, the 3rd piece of chip processor AT89S51 and the 4th piece Parallel communications is carried out by mouth line P0 ,/WR ,/INT0 respectively between chip processor AT89S51, each in above-mentioned mouth line P0 is It is connected with a pull-up resistor, second piece of chip processor AT89S51 and the 3rd piece of chip processor AT89S51, the 4th piece of single-chip microcomputer Serial full-duplex communication is carried out by mouth line TXD, RXD respectively between AT89S51 and the 5th piece of chip processor AT89S51, this five pieces Each in mouth line P1, P2 of the chip processor AT89S51 input for being connected respectively to a Transistor-Transistor Logic level → RS232C electric level interfaces End, the output end of this 8 X, 2 X, 5 Transistor-Transistor Logic levels → RS232C electric level interface are divided into two groups, have respectively constituted 40 row outputs Line and 40 column output lines.
The structure of 8 X, 2 X, 5 Transistor-Transistor Logic levels → RS232C electric level interfaces in the main frame is identical:Each TTL electricity The input of flat → RS232C electric level interfaces is by a base resistance after and under the base stage of NPN triode and one Pull-up resistor is in parallel ,+5V power supplys VCC and the coil of a relay, the colelctor electrode of the NPN triode and its emitter stage in main frame Series loop, a both ends fly-wheel diode in parallel for the coil of the relay are formed, the relay has single-pole double-throw switch (SPDT), The hilted broadsword forms the output end of this Transistor-Transistor Logic level → RS232C electric level interfaces, the hilted broadsword after a current-limiting resistance The both ends of the non-knife of commutator are connected respectively to the+5V power supply VCC and -5V power supplys-VCC in main frame.
Each position instruction element circuit includes RS232C → Transistor-Transistor Logic level interface, acousto-optic indicating circuit and+5V power supplys Two inputs of VCC, RS232C → Transistor-Transistor Logic level interface constitute two inputs of this position instruction element circuit, The output end of RS232C → Transistor-Transistor Logic level interface is connected to the control terminal of acousto-optic indicating circuit;The RS232C → Transistor-Transistor Logic level interface An input by the emitter junction of a triode, a base resistance R2, three triodes emitter junction after connect To triode Q1 base stage ,+5V power supplys VCC and triode Q1 collector load resistor, triode Q1 colelctor electrode And its emitter stage composition series loop, triode Q1 colelctor electrode are also connected to a PNP triode by a resistance R7 Q11 base stage;Another input of the RS232C → Transistor-Transistor Logic level interface passes through emitter junction, a base for a triode Electrode resistance R5, the emitter junction of three triodes are connected to triode Q6 base stage ,+5V power supplys VCC and triode Q6 later Collector load resistor, triode Q6 colelctor electrode and its emitter stage composition series loop, triode Q6 colelctor electrode is also PNP triode Q12 base stage is connected to by a resistance R8;+ 5V power supplys VCC the transmittings with PNP triode Q11 successively Pole and its colelctor electrode, PNP triode Q12 emitter stage and its colelctor electrode and a collector load resistor R9 composition are connected back Road;PNP triode Q12 colelctor electrode forms the output end of the RS232C → Transistor-Transistor Logic level interface;Triode Q6, Q1 base stage are also A pull down resistor is respectively connected with, two inputs of the RS232C → Transistor-Transistor Logic level interface are also each connected with one Negative pole GND of the 0.01u electric capacity to+5V power supplys VCC.
The beneficial effects of the utility model are that computer is defeated by serial communication according to input or the nomenclature of drug selected Go out medicine deposit position address code to first piece of single-chip microcomputer in main frame, the single-chip microcomputer in main frame passes sequentially through parallel communications, string The medicine deposit position address code is transmitted in row communication, is encoded corresponding to mouth line P1, P2 of each piece of single-chip microcomputer therefore output, accordingly Position instruction element circuit lights or sounding so that searching the work of medicine deposit position realizes automation;In addition, using after Electrical equipment undertakes TTL---RS232C level conversion tasks so that can be beyond 15M in the transmission range of RS232C interface regulations Local installation position indicating member circuit.
Brief description of the drawings
The utility model is further illustrated with reference to the accompanying drawings and examples.
Fig. 1 is circuit block diagram of the present utility model, and computer is not drawn in figure.
Fig. 2 is the circuit theory diagrams of a Transistor-Transistor Logic level → RS232C electric level interfaces in Fig. 1.
Fig. 3 is RS232C → Transistor-Transistor Logic level interface circuit schematic diagram in Fig. 1 in a position instruction element circuit.
In figure, the RS232C interfaces in 1. main frames, 21.-25. single-chip minimum systems, 40 of 6. corresponding row output lines Transistor-Transistor Logic level → RS232C electric level interfaces, 40 Transistor-Transistor Logic levels → RS232C electric level interfaces of 7. corresponding column output lines, 8. 1 TTL Level → RS232C electric level interfaces, 78. relays with single-pole double throw output switch, 9. 1 position instruction element circuits, 91. RS232C → Transistor-Transistor Logic level interface in a position instruction element circuit, 92. acousto-optic indicating circuits.
Embodiment
As shown in figure 1, main frame includes a RS232C interface(1), 5 single-chip minimum systems(21)-(25), corresponding row 40 Transistor-Transistor Logic levels → RS232C level of 40 Transistor-Transistor Logic levels of output line → RS232C electric level interfaces (6), corresponding column output line Interface(7).RS232C interfaces in main frame(1)By a Transistor-Transistor Logic level in one piece of MAX232 → RS232C level conversions driving Device, a RS232C level → Transistor-Transistor Logic level conversion driver are formed.Mouth line P1, P2 of this 5 single-chip minimum systems is divided into two Group, respectively by 40 Transistor-Transistor Logic levels → RS232C electric level interfaces(6), 40 Transistor-Transistor Logic level → RS232C electric level interfaces(7)Form 40 row output lines and 40 column output lines.These Transistor-Transistor Logic levels → RS232C electric level interfaces(8)Structure it is identical, physical circuit Fig. 2 is shown in, using the relay with single-pole double throw output switch(78)Level conversion task is completed, its antijamming capability ensures Adjacent position indicating member circuit(9)The distance between can normal work in 15 meters.These row, column output lines form one Individual matrix, the row, column output line where each crosspoint of the matrix are connected respectively to a position instruction element circuit(9) An input.Therefore, each position instruction element circuit(9)It correspond to a medicine deposit position address code.
Each position instruction element circuit(9)All by a RS232C → Transistor-Transistor Logic level interface(91)Electricity is indicated with acousto-optic Road(92)Composition.The position instruction element circuit(9)In RS232C → Transistor-Transistor Logic level interface(91)Physical circuit be shown in Fig. 3, Only when the row output line being connected to, all occur RS232C level logics " 0 " higher than 3.1V on column output line when, should RS232C → Transistor-Transistor Logic level interface(91)Output end Transistor-Transistor Logic level just occur logically high, and with this high level driving acousto-optic instruction electricity Road(92)Act.The RS232C → Transistor-Transistor Logic level interface(91)Realize that there is good anti-interference using transistor circuit Energy.Acousto-optic indicating circuit(92)Design as needed, it is typically luminous using transistor switching circuit control buzzer sounding, control LED lighting.
Main frame passes through RS232C interfaces(1)The computer being connected in pharmacy.Depositing the position arrangement of each medicine One position instruction element circuit(9).Nomenclature of drug of interest is inputted or chosen on the keyboard of computer, and computer passes through Its serial port send out to should medicine deposit position code to single-chip minimum system(21).Single-chip minimum system(21)With Single-chip minimum system(22), single-chip minimum system(23)With single-chip minimum system(24)Between all lead in a parallel fashion Letter, single-chip minimum system(22)With single-chip minimum system(23), single-chip minimum system(24)With single-chip minimum system (25)Between all communicated in a manner of serial full duplex.Output correspond to the medicine deposit position in their mouth line P1, P2 The row, column output line signal of address code.Again by level conversion, the position that correspond to the medicine deposit position address code refer to twice Show element circuit(9)In acousto-optic indicating circuit(92)It can light or sounding.
The quantity for increasing the single-chip microcomputer of cascade can be with the quantity N of expanding location indicating member circuit.

Claims (4)

1. medicine deposit position instruction device in a kind of pharmacy using relay interface, it is characterized in that:It includes a calculating Machine, a main frame and N number of position instruction element circuit, the X 40 of N=40, the RS232C interfaces that computer passes through computer connect The RS232C interfaces of main frame are connected to, main frame has 40 row output lines and 40 column output lines, what each row, column output line intersected Place arranges a position instruction element circuit:One input of the position instruction element circuit is connected to corresponding row, column Row output line on output line crossover location, the row that its another input is connected on the row, column output line crossover location are defeated Outlet.
2. medicine deposit position instruction device in the pharmacy according to claim 1 using relay interface, it is characterized in that: The main frame includes a RS232C interface, 5 single-chip minimum systems, 8 X, 2 X, 5 Transistor-Transistor Logic levels → RS232C level and connect Mouth, 40 row output lines, 40 column output lines ,+5V power supply VCC and -5V power supplys-VCC;+ 5V power supplys VCC power supplies the main frame Each several part, 5 single-chip minimum systems each include one piece of chip processor AT89S51 and its crystal oscillating circuit and electrification reset electricity Road, the RS232C interfaces are defeated by the RS232 level of a pair of level conversion drivers in level conversion drive circuit MAX232 Enter end, RS232 level output ends and+5V power supplys VCC negative pole GND are formed, the TTL level to level conversion driver Input, Transistor-Transistor Logic level output end are connected respectively to first piece of mouth line TXD, RXD in the chip processor AT89S51, first piece Chip processor AT89S51 and second piece of chip processor AT89S51, the 3rd piece of chip processor AT89S51 and the 4th piece of chip processor AT89S51 it Between parallel communications is carried out by mouth line P0 ,/WR ,/INT0 respectively, each in above-mentioned mouth line P0 is connected with a pull-up electricity Resistance, second piece of chip processor AT89S51 and the 3rd piece of chip processor AT89S51, the 4th piece of chip processor AT89S51 and the 5th piece of single-chip microcomputer Serial full-duplex communication is carried out by mouth line TXD, RXD respectively between AT89S51, the mouth line P1 of this five pieces of chip processor AT89S51s, Each in the P2 input for being connected respectively to a Transistor-Transistor Logic level → RS232C electric level interfaces, this 8 X, 2 X, 5 TTL electricity The output end of flat → RS232C electric level interfaces is divided into two groups, has respectively constituted 40 row output lines and 40 column output lines.
3. medicine deposit position instruction device in the pharmacy according to claim 2 using relay interface, it is characterized in that: The structure of 8 X, 2 X, 5 Transistor-Transistor Logic levels → RS232C electric level interfaces is identical:Each Transistor-Transistor Logic level → RS232C level connects Mouthful input it is in parallel with the base stage of NPN triode and a pull down resistor after a base resistance, main frame In+5V power supplys VCC and the coil of a relay, the colelctor electrode of the NPN triode and its emitter stage composition series loop, should The both ends of the coil of a relay fly-wheel diode in parallel;The relay has single-pole double-throw switch (SPDT), and the hilted broadsword passes through one The output end of this Transistor-Transistor Logic level → RS232C electric level interfaces, the non-knife of the single-pole double-throw switch (SPDT) are formed after individual current-limiting resistance Both ends be connected respectively to+5V power supply VCC and -5V power supplys-VCC in main frame.
4. medicine deposit position instruction device in the pharmacy according to claim 1 using relay interface, it is characterized in that: Each position instruction element circuit includes RS232C → Transistor-Transistor Logic level interface, acousto-optic indicating circuit and+5V power supply VCC, Two inputs of RS232C → Transistor-Transistor Logic level interface constitute two inputs of this position instruction element circuit, RS232C The output end of → Transistor-Transistor Logic level interface is connected to the control terminal of acousto-optic indicating circuit;One of the RS232C → Transistor-Transistor Logic level interface Input by the emitter junction of a triode, a base resistance R2, three triodes emitter junction after be connected to one Triode Q1 base stage ,+5V power supplys VCC and triode Q1 collector load resistor, triode Q1 colelctor electrode and its hair Emitter-base bandgap grading forms series loop, and triode Q1 colelctor electrode is also connected to PNP triode Q11 base by a resistance R7 Pole;Another input of the RS232C → Transistor-Transistor Logic level interface passes through emitter junction, a base resistance for a triode R5, the emitter junction of three triodes are connected to triode Q6 base stage ,+5V power supplys VCC and triode Q6 collection later Electrode load resistance, triode Q6 colelctor electrode and its emitter stage composition series loop, triode Q6 colelctor electrode also pass through One resistance R8 is connected to PNP triode Q12 base stage;+ 5V power supplys VCC successively with PNP triode Q11 emitter stage and Its colelctor electrode, PNP triode Q12 emitter stage and its colelctor electrode and a collector load resistor R9 composition series loop; PNP triode Q12 colelctor electrode forms the output end of the RS232C → Transistor-Transistor Logic level interface;Triode Q6, Q1 base stage are also each It is connected with a pull down resistor, two inputs of the RS232C → Transistor-Transistor Logic level interface are also each connected with 0.01u's Negative pole GND of the electric capacity to+5V power supplys VCC.
CN201620495174.4U 2016-05-27 2016-05-27 Using medicine deposit position instruction device in the pharmacy of relay interface Expired - Fee Related CN206649615U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620495174.4U CN206649615U (en) 2016-05-27 2016-05-27 Using medicine deposit position instruction device in the pharmacy of relay interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620495174.4U CN206649615U (en) 2016-05-27 2016-05-27 Using medicine deposit position instruction device in the pharmacy of relay interface

Publications (1)

Publication Number Publication Date
CN206649615U true CN206649615U (en) 2017-11-17

Family

ID=60282259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620495174.4U Expired - Fee Related CN206649615U (en) 2016-05-27 2016-05-27 Using medicine deposit position instruction device in the pharmacy of relay interface

Country Status (1)

Country Link
CN (1) CN206649615U (en)

Similar Documents

Publication Publication Date Title
CN205353751U (en) Train network system
CN104102161A (en) Intelligent integrated power switch quantity monitoring module
CN102761793B (en) Matrix eID bus circuit
CN105156737B (en) A kind of the pilot type servo valve control system and its control method of voice coil motor driving
CN206649615U (en) Using medicine deposit position instruction device in the pharmacy of relay interface
CN106354041B (en) A kind of tandem type multinode industrial automation control system of non-all-key parallel bus
CN206649612U (en) Using medicine deposit position instruction device in the pharmacy of determinant relay interface
CN206058524U (en) A kind of crossing traffic modulating signal control device based on single-chip microcomputer and bluetooth module
CN202029362U (en) Novel injection molding machine control system function expansion device
CN205608716U (en) Multiunit optical module communication interface switching circuit
CN202040065U (en) Control host machine for emulsion pump station
CN208384968U (en) Nixie tube drive circuit and charger
CN204423022U (en) Can general purpose transducer opertaing device and system
CN206649614U (en) Using the medicine deposit position instruction device of master slave communication triode interface
CN201928255U (en) Household electronic appliance automation wire holder with sending data line management by serial port
CN203552294U (en) Counter device
CN206961112U (en) A kind of multi-standard interface system
CN102252402A (en) Circuit structure of drive chip of air conditioner display screen
CN206804302U (en) A kind of simulative automobile communication test device
CN205594383U (en) Microcontroller and input/output pin mapping circuit thereof
CN205827188U (en) Interactive communication system based on auspicious sa MCU
CN205212736U (en) Many machine controller of integrated form and many motor system
CN204302699U (en) A kind of control system being realized the control of touch-screen One screen multi-machine by short circuit port
CN202153043U (en) Circuit structure for driving chip of air conditioner display screen
CN208569910U (en) A kind of automatic production line feed control system based on single-chip microcontroller+HMI

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171117

Termination date: 20180527