CN103129782A - Control device for counter - Google Patents
Control device for counter Download PDFInfo
- Publication number
- CN103129782A CN103129782A CN2011103760563A CN201110376056A CN103129782A CN 103129782 A CN103129782 A CN 103129782A CN 2011103760563 A CN2011103760563 A CN 2011103760563A CN 201110376056 A CN201110376056 A CN 201110376056A CN 103129782 A CN103129782 A CN 103129782A
- Authority
- CN
- China
- Prior art keywords
- pin
- unit
- microprocessor unit
- microprocessor
- display unit
- 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.)
- Pending
Links
Images
Abstract
The invention provides a control device for a counter. The control device comprises a microprocessor unit, a level converter, a display unit and an interface unit, wherein the interface unit is connected with an external keyboard and used for receiving an operation instruction of a user. The microprocessor unit receives the operation instruction transmitted by the interface unit, converts the operation instruction, outputs a control instruction to the level converter and outputs data to the display unit. The level converter converts the control instruction of the microprocessor unit into a programmable logic controller (PLC) signal and outputs the PLC signal to a PLC, and the display unit displays the output data of the microprocessor unit. According to the control device for the counter, the microprocessor processes the instruction input by the user and outputs the control instruction of the PLC to control the PLC to operate, so that the changing-over of a counting function and a checking function of the counter are achieved, and the control device operates and manages medicaments conveniently.
Description
Technical field
The present invention relates to a kind of counting apparatus control setup.
Background technology
In automatic dispensary, the counting apparatus with tally function is a kind of common equipment, usually is used in conjunction with together with the equipment of the needs such as Subpackaging machine counting.Be placed on after medicine box installs medicine on Subpackaging machine, by the function of counting of counting apparatus, can provide the medicine of specified quantity to carry out subpackage.Yet but can't learn for the total Quantity of drugs in medicine box the inside, might cause so the untimely supply of medicine, be not easy to very much medicine is managed.
Summary of the invention
In order to address the above problem, the invention provides a kind of counting apparatus control setup, the switching of the function of can counting and make an inventory, the function of increase counting apparatus, convenient operation and management medicine.
Concrete technical scheme is as follows:
A kind of counting apparatus control setup that the embodiment of the present invention provides comprises microprocessor unit, level translator, display unit and interface unit, wherein
Described interface unit connects external keyboard and described microprocessor unit, receives user's operating order, and this operating order is transferred to described microprocessor unit;
Described microprocessor unit receives the operating order that described interface unit transmits, and to described level translator, exports data to described display unit through output control command after conversion;
Described level translator connects described microprocessor unit, converts the control command of microprocessor unit to the PLC signal and exports to Programmable Logic Controller;
Described display unit connects described microprocessor unit, shows according to the output data of described microprocessor unit.
The preferred embodiment one of according to the present invention, described microprocessor unit adopts microprocessor chip AT89S52, the pin one 8 of its two-way I/O mouth to pin two 5 connects described interface unit, the pin 31 of two-way I/O mouth is connected with pin to pin 37 to pin one 1 and is connected described display unit, and the pin 5 of data receiver is connected pin 7 and is connected described level translators with sending end.
The preferred embodiment one of according to the present invention, described level translator adopts converter chip MAX232, is connected with described microprocessor unit with pin one 0 by pin 9, exports the PLC signals to Programmable Logic Controller by pin 7 and pin 8.
The preferred embodiment one of according to the present invention, described display unit adopt LED to show charactron, are connected with pin 8 to pin one 1 with pin 31 to the pin 37 of microprocessor chip.
The preferred embodiment one of according to the present invention, this device also is provided with indicator unit, is connected with described microprocessor unit, comprises power light and working station indicator.
As can be seen from the above technical solutions, counting apparatus control setup provided by the invention, adopt microprocessor the instruction of user's input to be processed the control command of rear output Programmable Logic Controller, controlling Programmable Logic Controller moves, realize counting apparatus count and the make an inventory switching of function, convenient operation and management medicine.
Description of drawings
Fig. 1 is the functional block diagram of the counting apparatus control setup that provides of the embodiment of the present invention;
Fig. 2 is the circuit diagram of the counting apparatus control setup that provides of the embodiment of the present invention.
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.
Fig. 1 is the functional block diagram of the counting apparatus control setup that provides of the present embodiment, and as shown in Figure 1, this device comprises microprocessor unit 10, level translator 20, display unit 40 and interface unit 30, wherein
Externally include function button and the digital keys such as make an inventory in a left side, making an inventory in the right side, counts in a left side and count in the right side on keyboard, the user is by pressing corresponding function button, to interface unit 30 transmit operation instructions, 30 of interface units receive user's operating order and transfer to microprocessor unit 10.
Fig. 2 is the circuit diagram of the counting apparatus control setup that provides of the present embodiment, and as shown in Figure 2, microprocessor unit adopts AT89S52 microprocessor chip U1, and level translator adopts MAX232 converter chip U2, and display unit adopts 4 LED to show charactron DS1.
In microprocessor chip U1, pin one 8 to pin two 5 as two-way I/O mouth is connected with interface JP2, pin 31 as two-way I/O mouth shows that with LED charactron DS1 is connected to pin one 1 with pin 8 to pin 37, and the connection mode of 4 LED charactrons is identical.Pin 5 as data receiver is connected with the pin 9 of converter chip U2, is connected with the pin one 0 of converter chip U2 as the pin 7 of data sending terminal.Converter chip U2 is by pin 7 and pin 8 output PLC signals, and the 7th pin by interface JP1 is connected with Programmable Logic Controller with the 8th pin.The 2nd, 4,5 of interface JP1 is connected with 3 with the pin two, 4,1 of microprocessor chip U1 respectively with 6 pin.
Indicator unit comprises power light and working station indicator.Power light adopts light-emitting diode D1, between divider resistance R4 serial connection and power supply VCC and ground GND.Working station indicator adopts bi-colour LED LED1 and LED2.The pin one of bi-colour LED LED1 is connected with the pin one of microprocessor chip U1, and the pin two of bi-colour LED LED1 is connected with the pin 44 of microprocessor chip U1, and the pin 3 of bi-colour LED LED1 is connected with power supply VCC by resistance R 5.The pin one of bi-colour LED LED2 is connected with the pin 3 of microprocessor chip U1, and the pin two of bi-colour LED LED2 is connected with the pin two of microprocessor chip U1, and the pin 3 of bi-colour LED LED2 is connected with power supply VCC by resistance R 6.Color by working station indicator shows to be in makes an inventory of goods in a warehouse or counts function.
Other peripheral circuits comprise crystal oscillating circuit, reset circuit and electric source filter circuit.Crystal oscillating circuit is made of crystal oscillator XT1 and capacitor C 1, C2, and crystal oscillator XT1 two ends are connected to respectively pin one 4 and the pin one 5 of microprocessor chip U1, and respectively by capacitor C 1 and capacitor C 2 ground connection.The pin 31 of microprocessor chip U1 to pin 37 joins by pull-up resistor R6 ~ R13 and power supply.Reset circuit consists of by capacitor C 3 and resistance R 2 serial connections, and capacitor C 3 and resistance R 2 point of connection are connected with the pin 4 of microprocessor chip U1 as the reset signal access point.Electric source filter circuit adopts capacitor C 13, C14 to consist of, and capacitor C 13, C14 are connected between power supply VCC and ground.
The counting apparatus control setup that the present embodiment provides can use by the compounding chemicals Subpackaging machine.Press when making an inventory button on keyboard as the user, this device switches to the function of counting apparatus and makes an inventory, be specially: the control command that after microprocessor unit receives, output is made an inventory through inter-process, and convert the PLC signal to and export to Programmable Logic Controller through level translator, complete by Programmable Logic Controller operation counting apparatus the operation of making an inventory.In like manner, after keying in as the user quantity that needs counting on keyboard by digital keys, then press when counting button, this device switches to the function of counting apparatus and counts.Such as, needing the quantity of counting is 5, inputs 5 by keyboard, and after switching to by this device the function of counting, exports corresponding PLC signal control counting apparatus and complete the operation of counting.
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.
Claims (5)
1. a counting apparatus control setup, is characterized in that, comprises microprocessor unit, level translator, display unit and interface unit, wherein
Described interface unit connects external keyboard and described microprocessor unit, receives user's operating order, and this operating order is transferred to described microprocessor unit;
Described microprocessor unit receives the operating order that described interface unit transmits, and to described level translator, exports data to described display unit through output control command after conversion;
Described level translator connects described microprocessor unit, converts the control command of microprocessor unit to the PLC signal and exports to Programmable Logic Controller;
Described display unit connects described microprocessor unit, shows according to the output data of described microprocessor unit.
2. device according to claim 1, it is characterized in that, described microprocessor unit adopts microprocessor chip AT89S52, the pin one 8 of its two-way I/O mouth to pin two 5 connects described interface unit, the pin 31 of two-way I/O mouth is connected with pin to pin 37 to pin one 1 and is connected described display unit, and the pin 5 of data receiver is connected pin 7 and is connected described level translators with sending end.
3. device according to claim 2, is characterized in that, described level translator adopts converter chip MAX232, is connected with described microprocessor unit with pin one 0 by pin 9, exports the PLC signals to Programmable Logic Controller by pin 7 and pin 8.
4. device according to claim 2, is characterized in that, described display unit adopts LED to show charactron, is connected with pin 8 to pin one 1 with pin 31 to the pin 37 of microprocessor chip.
5. device according to claim 1, is characterized in that, this device also is provided with indicator unit, is connected with described microprocessor unit, comprises power light and working station indicator.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103760563A CN103129782A (en) | 2011-11-23 | 2011-11-23 | Control device for counter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103760563A CN103129782A (en) | 2011-11-23 | 2011-11-23 | Control device for counter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103129782A true CN103129782A (en) | 2013-06-05 |
Family
ID=48490342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103760563A Pending CN103129782A (en) | 2011-11-23 | 2011-11-23 | Control device for counter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103129782A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4901067A (en) * | 1988-04-26 | 1990-02-13 | Uticor Technology, Inc. | Interface circuit for use in a programmable message display |
CN2126912Y (en) * | 1992-07-08 | 1993-02-10 | 机械电子工业部石家庄第五十四研究所 | Programmable counter angle digital display |
CN201145909Y (en) * | 2008-01-24 | 2008-11-05 | 宁波盛光包装印刷有限公司 | High speed paper counter based on imaging sensor |
CN201566855U (en) * | 2009-11-03 | 2010-09-01 | 北京建筑工程学院 | Short filamentous material full-automatic packaging system |
CN101973412A (en) * | 2010-08-16 | 2011-02-16 | 上海嘉迪机械有限公司 | Electric control system of full-automatic vacuum packaging machine |
CN202345971U (en) * | 2011-11-23 | 2012-07-25 | 苏州艾隆科技有限公司 | Control device for counter |
-
2011
- 2011-11-23 CN CN2011103760563A patent/CN103129782A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4901067A (en) * | 1988-04-26 | 1990-02-13 | Uticor Technology, Inc. | Interface circuit for use in a programmable message display |
CN2126912Y (en) * | 1992-07-08 | 1993-02-10 | 机械电子工业部石家庄第五十四研究所 | Programmable counter angle digital display |
CN201145909Y (en) * | 2008-01-24 | 2008-11-05 | 宁波盛光包装印刷有限公司 | High speed paper counter based on imaging sensor |
CN201566855U (en) * | 2009-11-03 | 2010-09-01 | 北京建筑工程学院 | Short filamentous material full-automatic packaging system |
CN101973412A (en) * | 2010-08-16 | 2011-02-16 | 上海嘉迪机械有限公司 | Electric control system of full-automatic vacuum packaging machine |
CN202345971U (en) * | 2011-11-23 | 2012-07-25 | 苏州艾隆科技有限公司 | Control device for counter |
Non-Patent Citations (1)
Title |
---|
程亮,林斌,查凌志: "PLC与单片机串口通信的实现", 《电气自动化》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201600587U (en) | Automatic vending machine replenish alarm achieving device | |
CN203134324U (en) | Mobile phone controlled LED display device | |
CN202345971U (en) | Control device for counter | |
CN101902238A (en) | USB wireless extension system | |
CN203455667U (en) | Electronic cam controller | |
CN202975723U (en) | Household intelligent controller and remote household control system | |
CN103129782A (en) | Control device for counter | |
CN204096551U (en) | A kind of shuttle wireless remote-control system | |
CN208781210U (en) | A kind of data transmission interactive device | |
CN202777281U (en) | Wireless auto-control electronic infusion pump | |
CN202600691U (en) | Circuit structure of USB (Universal Serial Bus) control module | |
CN108363336A (en) | A kind of remote control and the intelligent switching device locally controlled | |
CN204376386U (en) | A kind of intelligent low-pressure electromotor integrated protection device of many communication modes | |
CN203414788U (en) | Novel off-site integrated wireless monitoring device | |
CN1987560A (en) | CAN bus programmable display device | |
CN203444516U (en) | Automatically ball-counting apparatus of intelligent ball-picking robot | |
CN207833065U (en) | A kind of active optical transmission module of reinforcement type | |
CN100587752C (en) | Method and apparatus for controlling communication between double-system electronic equipments | |
CN204883192U (en) | Controller | |
CN205827188U (en) | Interactive communication system based on auspicious sa MCU | |
CN202351919U (en) | Display device of drug counting machine | |
CN205091718U (en) | Blue tooth body of intelligence feels mouse | |
CN109150911A (en) | A kind of screening machine communication protocol conversion device | |
CN103129899A (en) | Intelligent controlling method and device for goods shelf | |
CN203896328U (en) | Bluetooth wireless intelligent touch switch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130605 |