Inventory method and device for medicine warehouse
By using multiple laser inventory counters and guide rail systems in the drug warehouse, combined with preset sequences and time correction values, the problem of inaccurate measurement during the inventory inventory process in the drug warehouse is solved, and accurate inventory of medicines is achieved.
Patent Information
- Application Number
- CN202410599587.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-05-15
AI Technical Summary
In the existing medicine warehouse, due to the distance difference between the laser inventory device and the medicine entrance of the medicine storage tank, the quantity of boxed medicine is inaccurately measured.
Design a medicine warehouse inventory method that uses multiple laser inventory machines and guide rail systems to perform laser emission and reception operations on each medicine entrance in a preset sequence, obtain the time difference and correct it, and generate an accurate number of boxed medicines. The laser inventory counter slides along the guide rail, and the left and right laser inventory counters are respectively aligned with the medicine entrances in different columns to achieve accurate inventory within the matrix.
It achieves accurate inventory of medicines in the medicine library, reduces measurement errors, and ensures the accuracy of the quantity of medicines.
Smart Images

Figure CN118164128B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medicine warehouses, and in particular to a method and a device for inventorying a medicine warehouse. Background Art
[0002] In today's hospitals, medicine warehouses are usually used to store boxed medicines. The structure of one of the medicine warehouses is as follows: Figure 1 and Figure 2 As shown, a plurality of rows and columns of drug storage tanks 1 are arranged in the drug store (in Figure 2 Only part of the medicine storage tank 1 is shown in the figure. Each medicine storage tank 1 is provided with a groove 12, which is used to store the box medicine. The groove 12 runs through the medicine storage tank 1 in the extension direction. The first end portion of the groove 12 is higher than the second end portion. When in use, the first end portion can be used as a medicine inlet, and the second end portion can be used as a medicine outlet. A baffle 13 is provided at the second end portion. The baffle 13 is movable and can cover or not cover the second end portion. In addition, as Figure 2 As shown, the medicine warehouse is provided with a medicine feeding device 2, which can move to the medicine feeding port of any medicine storage slot 1, and can put boxed medicine into each medicine storage slot 1, and laser inventory devices 21 are provided on both sides of the medicine feeding device 2.
[0003] After the medicine warehouse has been used for a period of time, it is necessary to conduct an inventory operation on the medicine warehouse. During the inventory operation, the medicine entry device 2 is controlled to move until the laser inventory device 21 moves to the medicine entry port of the medicine storage tank 1 that needs to be inventoried. Then, a laser is emitted to and received from the boxed medicines in the medicine storage tank 1. Then, the time difference between the received laser and the emitted laser is obtained to calculate the number of boxed medicines in the medicine storage tank 1. It can be understood that the more boxed medicines there are in the medicine storage tank 1, the smaller the time difference.
[0004] like Figure 2 As shown, during the production process of the medicine warehouse, due to differences in production processes, the distances between different laser inventory counters 21 and the medicine inlets of the medicine storage tanks 1 are different, that is, for the same medicine storage tank 1, different laser inventory counters 21 are used for inventory, and the numbers of boxed medicines obtained are different. Summary of the invention
[0005] The object of the present invention is to provide a method and device for inventorying a medicine storehouse.
[0006] In order to achieve one of the above-mentioned invention purposes, an embodiment of the present invention provides a method for inventorying a medicine store, wherein the medicine store is provided with a plurality of medicine storage tanks, each of which is provided with a medicine entry port, and the medicine entry ports of all the medicine storage tanks form a matrix with multiple rows and columns; the medicine store is also provided with a medicine entry device, and a plurality of laser inventory counters are provided on the medicine entry device, and the medicine entry device can move along a preset plane and can make any medicine entry port be aligned with at least one laser inventory counter, and the preset plane is parallel to the plane where the matrix is located; the medicine store is also provided with a memory, and the memory stores the laser inventory counter corresponding to each medicine entry port, and each laser The time correction value corresponding to the inventory counter; includes the following steps: receiving an inventory instruction; performing a first operation on each medicine entry port in turn in a preset order, the first operation specifically including: making the target laser inventory counter corresponding to the medicine entry port aim at the medicine entry port, controlling the target laser inventory counter to aim at the medicine entry port and emitting Num1 lasers; each time the laser is emitted, the time difference between the received laser and the emitted laser is obtained, and each time difference is increased by the time correction value corresponding to the target laser inventory counter; based on the average of Num1 time differences, the number of boxed medicines in the medicine storage slot corresponding to the medicine entry port is generated, wherein Num1 is a natural number.
[0007] As a further improvement of an embodiment of the present invention, the matrix has M columns, the distance between any adjacent columns is equal, M is a natural number, M≥2, and M is an even number; the row extends in the left-right direction, and from left to right, each column is numbered 1, 2, ..., M; a guide rail extending in the left-right direction is provided in the medicine feeding device, the number of the laser inventory devices is 2, and both laser inventory devices can slide along the guide rail; M=N*Num2, wherein N and Num2 are both natural numbers, and N is an even number; in the left-right direction, the guide rail can be aligned with at least N columns; wherein the medicine feeding port of the i*N+j column corresponds to the laser on the left side. The medicine entrances in the i*N+k column correspond to the laser inventory device on the right, i, j and k are all natural numbers, i=0,1,2,...,Num2-1, j=1,2,...,N / 2, k=N / 2+1,N / 2+2,...,N; the first operation is performed on each medicine entrance in a preset order, specifically including: P=0, and the second operation is continuously performed until P=Num2-1, and the second operation specifically includes: enabling the guide rail to align with the P*N+1 column to the (P+1)*N column, and then, performing the first operation on each medicine entrance in the P*N+1 column to the (P+1)*N column, and the value of P is increased by 1.
[0008] As a further improvement of an embodiment of the present invention, the first operation performed on each medicine inlet in the P*N+1 column to the (P+1)*N column specifically includes: controlling the guide rail to align with all rows in sequence and performing the third operation, and the third operation specifically includes: controlling the laser inventory device on the left to perform the first operation on all medicine inlets in the row with column numbers from the P*N+1 column to the P*N+N / 2 column, and at the same time, controlling the laser inventory device on the right to perform the first operation on all medicine inlets in the row with column numbers from the P*N+N / 2+1 column to the (P+1)*N column.
[0009] As a further improvement of an embodiment of the present invention, controlling the guide rail to align with all rows in sequence and perform the second operation specifically includes: based on the order of increasing row numbers, controlling the guide rail to align with all rows in sequence and perform the second operation.
[0010] As a further improvement of an embodiment of the present invention, controlling the guide rail to align with all rows in sequence and perform the second operation specifically includes: based on the descending order of row numbers, controlling the guide rail to align with all rows in sequence and perform the second operation.
[0011] The embodiment of the present invention further provides a drug storage inventory device, wherein the drug storage is provided with a plurality of drug storage slots, each of which is provided with a drug entry port, and the drug entry ports of all the drug storage slots form a matrix with multiple rows and columns; the drug entry device is further provided in the drug storage, and a plurality of laser inventory counters are provided on the drug entry device, the drug entry device can move along a preset plane and can make any drug entry port be aligned with at least one laser inventory counter, and the preset plane is parallel to the plane where the matrix is located; the drug storage is further provided with a memory, and the memory stores the laser inventory counter corresponding to each drug entry port and the time correction value corresponding to each laser inventory counter; including The following modules: an instruction acquisition module, used for receiving inventory instructions; an inventory module, used for performing a first operation on each medicine entrance in a preset order, the first operation specifically including: making the target laser inventory device corresponding to the medicine entrance aim at the medicine entrance, controlling the target laser inventory device to aim at the medicine entrance and emit Num1 lasers; each time the laser is emitted, the time difference between the received laser and the emitted laser is obtained, and each time difference is increased by the time correction value corresponding to the target laser inventory device; based on the average of Num1 time differences, the number of boxed medicines in the medicine storage slot corresponding to the medicine entrance is generated, wherein Num1 is a natural number.
[0012] As a further improvement of an embodiment of the present invention, the matrix has M columns, the distance between any adjacent columns is equal, M is a natural number, M≥2, and M is an even number; the row extends in the left-right direction, and from left to right, each column is numbered 1, 2, ..., M; a guide rail extending in the left-right direction is provided in the medicine feeding device, the number of the laser inventory devices is 2, and both laser inventory devices can slide along the guide rail; M=N*Num2, wherein N and Num2 are both natural numbers, and N is an even number; in the left-right direction, the guide rail can at least align with N columns; wherein the medicine feeding of i*N+j columns The medicine inlet in the i*N+k column corresponds to the laser inventory device on the left, and the medicine inlet in the i*N+k column corresponds to the laser inventory device on the right, i, j and k are all natural numbers, i=0,1,2,...,Num2-1, j=1,2,...,N / 2, k=N / 2+1,N / 2+2,...,N; the inventory module is also used for: P=0, continuously executing the second operation until P=Num2-1, the second operation specifically includes: enabling the guide rail to align with the P*N+1 column to the (P+1)*N column, and then, performing the first operation on each medicine inlet in the P*N+1 column to the (P+1)*N column, and the value of P increases by 1.
[0013] As a further improvement of an embodiment of the present invention, the inventory module is also used to: control the guide rail to align with all rows in sequence and perform a third operation, the third operation specifically including: controlling the laser inventory device on the left to perform a first operation on all medicine entry ports with column numbers from P*N+1 to P*N+N / 2 in the row, and at the same time, controlling the laser inventory device on the right to perform a first operation on all medicine entry ports with column numbers from P*N+N / 2+1 to (P+1)*N in the row.
[0014] As a further improvement of an embodiment of the present invention, the disk library module is further used to: based on the order of increasing row numbers, control the guide rail to align with all rows in sequence and perform the second operation.
[0015] As a further improvement of an embodiment of the present invention, the disk library module is further used to: based on the descending order of row numbers, control the guide rail to align with all rows in sequence and perform the second operation.
[0016] Compared with the prior art, the technical effect of the present invention is that: the embodiment of the present invention provides a method and device for counting medicine in a medicine warehouse, and the method includes the following steps: receiving a counting instruction; performing a first operation on each medicine inlet in turn in a preset order, and the first operation specifically includes: making the target laser counting device corresponding to the medicine inlet aim at the medicine inlet, controlling the target laser counting device to aim at the medicine inlet and emitting Num1 lasers; obtaining the time difference between the received laser and the emitted laser each time the laser is emitted, and increasing each time difference by the time correction value corresponding to the target laser counting device; based on the average of Num1 time differences, generating the number of boxed medicines in the medicine storage tank corresponding to the medicine inlet, wherein Num1 is a natural number. Thus, the medicines in the medicine warehouse can be accurately counted. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic structural diagram of a medicine storage tank in an embodiment of the present invention;
[0018] Figure 2 Schematic diagram of the structure of the medicine storehouse in the embodiment of the present invention;
[0019] Figure 3 It is a schematic diagram of the structure including a guide rail and a target laser inventory device in an embodiment of the present invention;
[0020] Figure 4 It is a flowchart of the inventory method in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The following description and accompanying drawings fully illustrate the specific embodiments of this article so that those skilled in the art can practice them. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of this article includes the entire scope of the claims, and all available equivalents of the claims. Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements. In fact, the first element can also be called the second element, and vice versa. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-other inclusions, so that the structure, device or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such structure, device or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exist except in the structure, device or equipment including the elements. Each embodiment is described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other.
[0022] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0023] Embodiment 1 of the present invention provides a method for inventorying a medicine storehouse, wherein a plurality of medicine storage tanks 1 are provided in the medicine storehouse, each medicine storage tank 1 is provided with a medicine entry port, and the medicine entry ports of all medicine storage tanks 1 form a matrix with multiple rows and columns; a medicine entry device 2 is also provided in the medicine storehouse, and a plurality of laser inventory devices 21 are provided on the medicine entry device 2, and the medicine entry device 2 can move along a preset plane and can make any medicine entry port be aligned with at least one laser inventory device 21, and the preset plane is parallel to the plane where the matrix is located; a memory is also provided in the medicine storehouse, The memory stores the laser counting device 21 corresponding to each medicine inlet and the time correction value corresponding to each laser counting device 21; here, due to the difference in production process, the distance between different laser counting devices 21 and the medicine inlet of the medicine storage tank 1 (which can be understood as the distance between the laser counting device 21 and the plane where the matrix is located) is different, and a preset value can be set. When the distance < the preset value, the time correction value > 0; when the distance = the preset value, the time correction value = 0; when the distance > the preset value, the time correction value < 0. It can be understood that each medicine inlet corresponds to at least one laser counting device 21, that is, the medicine inlet can have its corresponding laser counting device 21 to count the number of medicines.
[0024] like Figure 4 As shown, the following steps are included:
[0025] Step 401: Receive a stock inventory instruction.
[0026] Step 402: Perform a first operation on each medicine entrance in turn in a preset order, the first operation specifically comprising: aligning a target laser inventory device corresponding to the medicine entrance with the medicine entrance, controlling the target laser inventory device to aim at the medicine entrance and emit Num1 lasers; obtaining a time difference between receiving the laser and emitting the laser each time the laser is emitted, and increasing each time difference by a time correction value corresponding to the target laser inventory device; generating the number of boxed medicines in the medicine storage slot 1 corresponding to the medicine entrance based on the average of Num1 time differences, wherein Num1 is a natural number. The "order" here can be determined according to the actual situation. For example, in the matrix, the distance between adjacent columns is D. On the drug feeding device 2, multiple laser inventory devices 21 are arranged along the extension direction of the row, and the distance between adjacent laser inventory devices 21 is also D. It can be understood that the drug feeding device 2 can be moved to a certain position so that each laser inventory device 21 corresponds to a drug feeding port. If the laser inventory device 21 has a corresponding relationship with each drug feeding port, multiple drug storage tanks 1 can be counted at one time, and then, by controlling the drug feeding device 2 to move along the column direction, the drug storage tanks 1 in an area can be quickly counted; then, the inventory can be continued in the next area. Inventory can also be performed row by row or column by column.
[0027] Here, when taking inventory of the medicine storage tank 1, the laser is emitted at least once and then the average value is taken, thereby greatly reducing the error.
[0028] In this embodiment, Figure 3 As shown, the matrix has M columns, the distances between any adjacent columns are equal, M is a natural number, M≥2, and M is an even number; the rows extend along the left-right direction, and from left to right, each column is numbered 1, 2, ..., M.
[0029] The medicine feeding device 2 is provided with a guide rail 22 extending in the left-right direction, the number of the laser inventory devices is 2, and the two laser inventory devices 21 can slide along the guide rail 22; M=N*Num2, wherein N and Num2 are both natural numbers, and N is an even number; in the left-right direction, the guide rail 22 can at least align with N columns; wherein, the medicine feeding port of the i*N+j column corresponds to the laser inventory device 21 on the left, and the medicine feeding port of the i*N+k column corresponds to the laser inventory device 21 on the right, i, j and k are all natural numbers, i=0,1,2,...,Num2-1, j=1,2,...,N / 2, k=N / 2+1,N / 2+2,...,N.
[0030] The first operation is performed on each medicine inlet in a preset order, and specifically includes: P=0, and the second operation is continuously performed until P=Num2-1, and the second operation specifically includes: enabling the guide rail 22 to align with the P*N+1 column to the (P+1)*N column, and then, performing the first operation on each medicine inlet in the P*N+1 column to the (P+1)*N column, and the value of P is increased by 1.
[0031] Here, two sliders 23 may be provided on the guide rail 22 . The sliders 23 may slide along the guide rail 22 , and each laser inventory device 21 is mounted on one slider 23 .
[0032] Here, the matrix has M columns, and the M columns are divided into Num2 groups, namely the 1st group, the 2nd group, ..., the Num2th group, each group having N columns. In the left-right direction, the length of the guide rail 22 is greater than the length of N columns. In the i-th group, the i*N+1 column, the i*N+2 column, ..., the i*N+N / 2 column all correspond to the laser inventory device 21 on the left, that is, they are all counted by the laser inventory device 21 on the left, and the i*N+N / 2+1 column, the i*N+N / 2+2 column, ..., the i*N+N column all correspond to the laser inventory device 21 on the right, that is, they are all counted by the laser inventory device 21 on the right. During operation, the guide rail 22 is aligned with the 1st group, the 2nd group, ..., the Num2th group in turn, and then the two laser inventory devices 21 respectively count their corresponding medicine inlets.
[0033] In this embodiment, the first operation for each medicine inlet in the P*N+1 column to the (P+1)*N column specifically includes: controlling the guide rail 22 to align with all rows in sequence and perform the third operation, and the third operation specifically includes: controlling the laser inventory device 21 on the left to perform the first operation on all medicine inlets in the row with column numbers of P*N+1 column to P*N+N / 2 column, and at the same time, controlling the laser inventory device 21 on the right to perform the first operation on all medicine inlets in the row with column numbers of P*N+N / 2+1 column to (P+1)*N column. Here, the guide rail processes each row in sequence.
[0034] In this embodiment, controlling the guide rail 22 to align with all rows in sequence and performing the second operation specifically includes:
[0035] Based on the order of increasing row numbers, the guide rail 22 is controlled to align all rows in sequence and perform the second operation.
[0036] In this embodiment, controlling the guide rail 22 to align with all rows in sequence and performing the second operation specifically includes:
[0037] Based on the descending order of the row numbers, the guide rail 22 is controlled to align all the rows in sequence and perform the second operation.
[0038] Embodiment 2 of the present invention provides a drug storage device, wherein the drug storage is provided with a plurality of drug storage slots 1, each of which is provided with a drug entry port, and the drug entry ports of all drug storage slots 1 form a matrix with multiple rows and columns; the drug entry device 2 is also provided in the drug storage, and a plurality of laser inventory devices 21 are provided on the drug entry device 2, and the drug entry device 2 can move along a preset plane and can make any drug entry port be aligned with at least one laser inventory device 21, and the preset plane is parallel to the plane where the matrix is located; the drug storage is also provided with a memory, and the memory stores the laser inventory device 21 corresponding to each drug entry port and the time correction value corresponding to each laser inventory device 21; and the following modules are included:
[0039] The instruction acquisition module is used to receive the inventory instruction.
[0040] The inventory module is used to perform a first operation on each medicine entry in a preset order, and the first operation specifically includes: making the target laser inventory device corresponding to the medicine entry aim at the medicine entry, and controlling the target laser inventory device to aim at the medicine entry to emit Num1 lasers; each time the laser is emitted, the time difference between the received laser and the emitted laser is obtained, and each time difference is increased by the time correction value corresponding to the target laser inventory device; based on the average of Num1 time differences, the number of boxed medicines in the medicine storage slot 1 corresponding to the medicine entry is generated, where Num1 is a natural number.
[0041] In this embodiment, the matrix has M columns, the distances between any adjacent columns are equal, M is a natural number, M≥2, and M is an even number; the rows extend along the left-right direction, and from left to right, each column is numbered 1, 2, ..., M.
[0042] The medicine feeding device 2 is provided with a guide rail 22 extending in the left-right direction, the number of the laser inventory devices is 2, and the two laser inventory devices 21 can slide along the guide rail 22; M=N*Num2, wherein N and Num2 are both natural numbers, and N is an even number; in the left-right direction, the guide rail 22 can at least align with N columns; wherein, the medicine feeding port of the i*N+j column corresponds to the laser inventory device 21 on the left, and the medicine feeding port of the i*N+k column corresponds to the laser inventory device 21 on the right, i, j and k are all natural numbers, i=0,1,2,...,Num2-1, j=1,2,...,N / 2, k=N / 2+1,N / 2+2,...,N.
[0043] The inventory module is also used for: P=0, continuously executing the second operation until P=Num2-1, the second operation specifically includes: enabling the guide rail 22 to align with the P*N+1 column to the (P+1)*N column, and then performing the first operation on each medicine inlet in the P*N+1 column to the (P+1)*N column, and the value of P increases by 1.
[0044] In this embodiment, the inventory module is also used to: control the guide rail 22 to align with all rows in sequence and perform a third operation, the third operation specifically includes: controlling the laser inventory device 21 on the left to perform a first operation on all medicine entry ports with column numbers from P*N+1 to P*N+N / 2 in the row, and at the same time, controlling the laser inventory device 21 on the right to perform a first operation on all medicine entry ports with column numbers from P*N+N / 2+1 to (P+1)*N in the row.
[0045] In this embodiment, the disk library module is further used to: based on the order of increasing row numbers, control the guide rail 22 to align with all rows in sequence and perform the second operation.
[0046] In this embodiment, the disk library module is further used to: based on the descending order of row numbers, control the guide rail 22 to align with all rows in sequence and perform the second operation.
[0047] It should be noted that although the above describes the various steps in a specific order, it does not mean that the various steps must be executed in the above specific order. In fact, some of these steps can be executed concurrently or even in a different order as long as the required functions can be achieved.
[0048] The present invention may be a system, a method and / or a computer program product. The computer program product may include a readable storage medium carrying computer readable program instructions for causing a processor to implement various aspects of the present invention.
[0049] The readable storage medium can be a tangible device that holds and stores instructions used by the instruction execution device. The readable storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.
[0050] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for inventorying a medicine store, wherein the medicine store is provided with a plurality of medicine storage slots (1), each medicine storage slot (1) is provided with a medicine inlet, and the medicine inlets of all the medicine storage slots (1) form a matrix with multiple rows and columns; the medicine store is also provided with a medicine inlet device (2), and a plurality of laser inventory counting devices (21) are provided on the medicine inlet device (2), and the medicine inlet device (2) can move along a preset plane and can make any medicine inlet be aligned with at least one laser inventory counting device (21), and the preset plane is parallel to the plane where the matrix is located; the medicine store is also provided with a memory, and the memory stores the laser inventory counting device (21) corresponding to each medicine inlet and the time correction value corresponding to each laser inventory counting device (21); characterized in that The matrix has M columns, and the distances between any adjacent columns are equal, M is a natural number, M≥2, and M is an even number; the rows extend in the left-right direction, and from left to right, each column is numbered 1, 2, ..., M; the medicine feeding device (2) is provided with a guide rail (22) extending in the left-right direction, the number of the laser inventory devices is 2, and both of the two laser inventory devices (21) can slide along the guide rail (22); M=N*Num2, wherein N and Num2 are both natural numbers, and N is an even number; in the left-right direction, the guide rail (22) can at least align with N columns; wherein the medicine feeding port of the i*N+j column corresponds to the laser inventory device (21) on the left, and the medicine feeding port of the i*N+k column corresponds to the laser inventory device (21) on the right, and i, j and k are all natural numbers, i=0,1,2,...,Num2-1, j=1,2,...,N / 2, k=N / 2+1,N / 2+2,...,N; The following steps are involved: Receive inventory inventory instruction; P=0, continue to perform the second operation until P=Num2-1, the second operation specifically includes: enabling the guide rail (22) to align with columns P*N+1 to (P+1)*N, then controlling the guide rail (22) to align with all rows in sequence and perform the third operation, the third operation specifically includes: controlling the laser inventory device (21) on the left to perform the first operation on all medicine inlets with column numbers P*N+1 to P*N+N / 2 in the row, and at the same time, controlling the laser inventory device (21) on the right to perform the first operation on all medicine inlets with column numbers P*N+N / 2+1 to (P+1)*N The first operation is performed on all the medicine inlets in the column, and the value of P is increased by 1; the first operation specifically includes: making the target laser inventory device corresponding to the medicine inlet aim at the medicine inlet, controlling the target laser inventory device to aim at the medicine inlet and emitting Num1 lasers; each time the laser is emitted, the time difference between the received laser and the emitted laser is obtained, and each time difference is increased by the time correction value corresponding to the target laser inventory device; based on the average of Num1 time differences, the number of boxed medicines in the medicine storage tank (1) corresponding to the medicine inlet is generated, wherein Num1 is a natural number.
2. The method for inventorying according to claim 1, characterized in that: The controlling the guide rail (22) to align all rows in sequence and perform the second operation specifically comprises: Based on the order of increasing row numbers, the guide rail (22) is controlled to align all rows in sequence and perform a second operation.
3. The method for inventorying according to claim 2, characterized in that: The controlling the guide rail (22) to align all rows in sequence and perform the second operation specifically comprises: Based on the descending order of row numbers, the guide rail (22) is controlled to align all rows in sequence and perform a second operation.
4. A drug storage inventory device, wherein the drug storage is provided with a plurality of drug storage slots (1), each drug storage slot (1) is provided with a drug inlet, and the drug inlets of all drug storage slots (1) form a matrix with multiple rows and columns; the drug storage is also provided with a drug inlet device (2), and a plurality of laser inventory devices (21) are provided on the drug inlet device (2), and the drug inlet device (2) can move along a preset plane and can make any drug inlet be aligned with at least one laser inventory device (21), and the preset plane is parallel to the plane where the matrix is located; the drug storage is also provided with a memory, and the memory stores the laser inventory device (21) corresponding to each drug inlet and the time correction value corresponding to each laser inventory device (21); characterized in that, The matrix has M columns, the distances between any adjacent columns are equal, M is a natural number, M≥2, and M is an even number; the rows extend in the left-right direction, and from left to right, each column is numbered 1, 2, ..., M; a guide rail (22) extending in the left-right direction is provided on the medicine feeding device (2), the number of the laser inventory devices is 2, and both of the two laser inventory devices (21) can slide along the guide rail (22); M=N*Num2, wherein N and Num 2 are all natural numbers, and N is an even number; in the left-right direction, the guide rail (22) can be aligned with at least N columns; wherein the medicine inlet of the i*N+j column corresponds to the laser inventory device (21) on the left, and the medicine inlet of the i*N+k column corresponds to the laser inventory device (21) on the right, i, j and k are all natural numbers, i=0,1,2,...,Num2-1, j=1,2,...,N / 2, k=N / 2+1,N / 2+2,...,N; comprising the following modules: An instruction acquisition module is used to receive inventory instructions; The inventory module is used for P=0, and continuously performs the second operation until P=Num2-1, wherein the second operation specifically includes: enabling the guide rail (22) to align with columns P*N+1 to (P+1)*N, and then controlling the guide rail (22) to align with all rows in sequence and perform the third operation, wherein the third operation specifically includes: controlling the laser inventory device (21) on the left to perform the first operation on all medicine inlets with column numbers P*N+1 to P*N+N / 2 in the row, and at the same time, controlling the laser inventory device (21) on the right to perform the first operation on all medicine inlets with column numbers P*N+N / 2+1 to (P+ 1) All medicine inlets in the *N columns perform the first operation, and the value of P increases by 1; the first operation specifically includes: making the target laser inventory device corresponding to the medicine inlet aim at the medicine inlet, controlling the target laser inventory device to aim at the medicine inlet and emitting Num1 lasers; each time the laser is emitted, the time difference between the received laser and the emitted laser is obtained, and each time difference is increased by the time correction value corresponding to the target laser inventory device; based on the average of Num1 time differences, the number of boxed medicines in the medicine storage tank (1) corresponding to the medicine inlet is generated, wherein Num1 is a natural number.
5. The disk library device according to claim 4, characterized in that: The disk library module is also used for: Based on the order of increasing row numbers, the guide rail (22) is controlled to align all rows in sequence and perform a second operation.
6. The disk library device according to claim 5, characterized in that: The disk library module is also used for: Based on the descending order of row numbers, the guide rail (22) is controlled to align all rows in sequence and perform a second operation.
