Background technology
Medicine packaging facilities described herein refers to, the patient's that takes medicine medicament can be packaged into automatically a kind of automatic minute medicine equipment of the packed cartridge bag of independently taking in due order according to the doctor's advice record, various medicaments are divided by kind, in prepositioned each medicine box in the medicament cabinet of equipment, during equipment work, these medicaments by be attached to medicament feeder on the medicine box according to the requirement of doctor's advice by orderly from medicine box, spuing, being aggregated into medicament along the medicament collection channel gathers in the device, the medicament for the treatment of a bag medicine all by medicament gather device collect finish after, these medicaments are sent to bag sealing device and carry out envelope, at last, the medicine bag that this is packaged is discharged from equipment through going out bag mechanism, and the bag pharmaceutical worker who finishes a bag medicine in the doctor's advice does.
Although existing various style medicine packaging facilities has nothing in common with each other in concrete structure, during the single one bag medicine of equipment in handling a doctor's advice record, its work flow is really basic identical, all can be divided into 4 flow processs by shown in Figure 1, is respectively:
(1) drug flow process S1
When carrying out the drug flow process, send to the medicament feeder and to tell the medicine instruction, medicament spues from the medicament feeder simultaneously, enters in the medicament gathering-device;
(2) medicament is collected flow process S2
Medicament at first falls in the medicament collection channel, enters the medicament collection channel then, enters at last and gathers mechanism, and system is fed to envelope body with medicament after confirming that medicament all is collected;
(3) envelope flow process S3
In carrying out the envelope flow process, the medicament that enters envelope body is packaged into bag;
(4) output flow process S4
In carrying out the output flow process, packaged medicine bag is by outside the device for transferring successively.
The interrelation of above-mentioned four flow processs as shown in Figure 2, symbol N and N' are defined as the cartridge bag sequence number, wherein the scale on the ordinate 1 represents flow process at work, scale 0 represents this flow process to be stopped.Abscissa represents the time.Wherein: T1 represents the used time of drug flow process, and the used time of flow process is collected in the T2 representative, and T3 represents the used time of envelope flow process, and T4 represents the used time of output flow process; Delay time when finishing with respect to last time bag medicine output flow process when t1 represents the drug flow startup of this bag medicine, the i.e. time gap of the adjacent cartridge bag bag medicine of two bags, t2 representative collection flow process begins the delay time with respect to the end of drug flow process, t3 represents the envelope flow process to begin with respect to collecting the delay time that flow process finishes, and t4 represent the output flow process and begins delay time with respect to the end of envelope flow process.
With this, the used time of bag medicine overall process of finishing a cartridge bag is above-mentioned full-time summation, i.e. t1+T1+t2+T2+t3+T3+t4+T4.Yet under the situation more than a medicament in a medicine bag, there is small difference the time that each medicament spues, collecting flow process S2 needs just to begin to start when at first a medicament spue, and last medicament when spuing drug flow process S1 just finish, so negative value may appear in t2.
The bag medicine overall process of explaining among Fig. 2 is theoretical procedure.In fact, in order to improve bag medicine speed and efficient, in design, except reduce each flow process the shared time as far as possible, the method that the medicine packaging facilities has all adopted a kind of those of ordinary skills to be called " concurrent processing " is done concurrent processing to many bags medicine bag simultaneously, this method makes equipment when normal operation, a plurality of flow processs that many bag medicine bags are arranged of handling simultaneously as much as possible.Typical case's's " concurrent processing " method as shown in Figure 3, symbol N and N' are defined as the cartridge bag sequence number, Fig. 3 is with respect to Fig. 2, the td1 that increases newly among Fig. 3 is representing the pitch time of adjacent two drug flow process S1, td2 is representing adjacent two pitch times of collecting flow process S2, td3 is representing the pitch time of adjacent two envelope flow process S3, and td4 is representing the pitch time of adjacent two output flow process S4.Having the time that handled each different flow process of equipment of this " concurrent processing " function takies has nothing in common with each other.But because the restriction of factors such as cost, volume and structure, the mechanism that finishes each flow process function in the equipment all is single.Therefore, although the medicine packaging facilities can be handled a plurality of flow processs of a plurality of medicine bags simultaneously, can not handle the identical flow process of a plurality of medicine bags simultaneously.For example, the envelope flow process of the collection flow process of the drug flow process that can carry out the A cartridge bag simultaneously of medicine packaging facilities, B cartridge bag, C cartridge bag ... but the medicine packaging facilities can not be handled the same flow process of A, B, C cartridge bag simultaneously.Be that medicament will packet-by-packet be collected, envelope envelope etc. packet-by-packet, this point just shows as in Fig. 3, td1, td2, td3, td4 all can not be negative.Otherwise equipment can be made mistakes.For example, two overlapping (td1 is negative value) that contract out the medicine flow process mean that adjacent two bag medicaments tell medicine simultaneously, and in the equipment that is having only a cover gathering-device, the medicament that spues simultaneously will be collected in together, contract out the medicine that comes like this and will occur " string wraps " etc.Therefore, the needed time of each flow process of the control method of " concurrent processing " adopted in the existing installation can not continue compressed, and the longest flow process of time spent has determined the bag medicine speed of whole set equipment.
In four flow processs in the existing medicine packaging facilities, the longest flow process of holding time is to collect flow process.Because in this kind equipment, medicament relies on gravity to transmit in the medicament guiding channel, and its time that spends mainly comprises two parts, and the firstth, medicament is the used time of traveling in the medicament guiding channel, in this process, medicament is because the gravity effect has produced kinetic energy; The secondth, the medicament of having accumulated kinetic energy discharges kinetic energy and makes medicament static energy needed drop away time of getting off, when namely medicament is fallen the gathering-device bottom through the static what is called " bounce time " of getting off and spending in spring back several times.In traditional medicine packaging facilities, finish its extreme length of guiding channel parts of collection flow process function all above 1.2 meters, the summation that the maximum of medicament is walked line time and " bounce time " will reach nearly 1 second usually, therefore, the speed of traditional medicine packaging facilities is basically all about per minute 60 bags; Learn that by above-mentioned analysis the bag medicine speed of traditional medicine packaging facilities is difficult to big lifting.
In addition since medicament to walk line time long, the kinetic energy of accumulating is bigger, therefore, in medicament and the moment that the gathering-device bottom contacts, the spring bullet takes place very easily, the appearance medicament is lost and is damaged, even medicament is bounce back into other branched bottoms of its upper side by spring small probability event takes place.This situation has greatly reduced the global reliability of medicine packaging facilities.
The specific embodiment
Below in conjunction with specific embodiment the present invention is described in further detail.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
A kind of medicament collection control method that is applied to the medicine packaging facilities, for control medicine packaging facilities, as shown in Figure 4, comprise drug storage cabinet 1 and cabinet, the below of described drug storage cabinet 1 is cabinet, is equipped with in the described cabinet to gather mechanism 3, printing mechanism 4, package mechanism 5 and go out bag mechanism 6, described gather mechanism 3 below be provided with printing mechanism 4, described printing mechanism 4 connects package mechanism 5, and package mechanism 5 is communicated with bag mechanism 6.
Described drug storage cabinet 1 is arranged with at least one for medicine assembled unit 11, is illustrated in figure 5 as for medicine combination unit structure scheme drawing, and the described medicine assembled unit 11 that supplies comprises medicament feeder 111, medicament collection channel 112, device for trapping 113 and medicament guiding channel 114; Described have a plurality ofly be used to storing and the medicament feeder 111 of the medicament that spues for 11 dischargings of medicine assembled unit, the below of each medicament feeder 111 is provided with the medicament guiding channel 114 that skids off for medicament; The side of described medicament feeder 111 is provided with vertical medicament collection channel 112, and described a plurality of medicament guiding channels 114 are communicated with described medicament collection channel 112 respectively; The medicament guiding channel 114 of described medicament feeder 111 is communicated with the place with medicament collection channel 112 below is equipped be used to holding back and the device for trapping 113 of temporary medicament; The below of described medicament collection channel 112 is for gathering mechanism 3.In Fig. 2 example, for being provided with four medicament feeders 111 in the medicine assembled unit 11, namely the left side is arranged with 2, and the right side is arranged with 2, and the centre is medicament guiding channel 114.
A kind of medicament collection control method that is applied to the medicine packaging facilities comprises drug flow process S1, collects flow process S2, envelope flow process S3 and output flow process S4, and described drug flow process S1 and collection flow process S2 operate according to following steps:
(1) searches the medicament position
Read pharmacy information to be packaged, search medicament place medicament feeder 111 putting positions at drug storage cabinet 1;
(2) grouping
With it being grouped into for the number of plies X of medicine assembled unit 11 according to horizontal direction of arranging in the drug storage cabinet 1: ground floor for medicine assembled unit, the second layer for the medicine assembled unit ..., the X layer is for the medicine assembled unit; To be positioned at ground floor for medicine assembled unit, the second layer for the medicine assembled unit ..., the X layer divides into groups for the medicament to be packaged of medicine assembled unit: first group of medicament, second group of medicament ... X organizes medicament;
(3) drug flow process S1-1 for the first time
Send to the medicament feeder 111 at first group of medicament place and to tell the medicine instruction, medicament feeder 111 spues first group of medicament;
(4) collect flow process S2-1 for the first time
The bottom of the medicament collection channel 112 in the 1-X layer confession medicine assembled unit is equipped with the device for trapping 113 for buffering and temporary medicament respectively; The first group of medicament that spues in the step (3) enters ground floor and supplies the medicament collection channel 112 back vertical drops of medicine assembled unit to drop on the device for trapping 113 until it; After treating that first group of medicament all is collected, ground floor is sent action command for the device for trapping 113 in the medicine assembled unit 11, allow first group of medicament continue to fall to entering in the medicament collection channel 112 of the second layer for the medicine assembled unit earlier, allow device for trapping 113 reply ortho states again, be the state of device for trapping 113 before carrying out action command, for medicament is next time collected ready.
(5) drug flow process S1-2 for the second time
Send to the medicament feeder 111 that is second group of medicament place and to tell medicine instruction, medicament feeder 111 spues second group of medicament;
(6) collect flow process S2-2 for the second time
The second group of medicament that is spued in the step (5) falls in medicament collection channel 112, until dropping on the device for trapping 113 of the second layer for the medicine assembled unit; After treating that first and second group medicament all is collected, the second layer is sent action command for the device for trapping 113 in the medicine assembled unit, allow first and second group medicament continue to fall to entering down in the medicament collection channel 112 of one deck for the medicine assembled unit earlier, allow device for trapping 113 reply ortho states again, for medicament is next time collected ready.
(7) continue executable operations according to step (3)-(7), until first group of medicament to the X-1 group medicament be collected in jointly the X-1 layer for the device for trapping 113 in the medicine assembled unit on;
(8) the X time drug flow process S1-X
Send to the medicament feeder 111 that is X group medicament place and to tell the medicine instruction, medicament feeder 111 spues X group medicament;
(9) the X time collection flow process S2-X
The X group medicament that is spued in the step (8) falls in medicament collection channel 112, until dropping on the device for trapping 113 of X layer for the medicine assembled unit; Treat first and second ... after all being collected with X group medicament, the X layer is sent action command for the device for trapping 113 in the medicine assembled unit, allow earlier first and second ... fall in the lump with X group medicament and to gather mechanism.
For simplifying narration, selecting the drug storage cabinet of a two-layer structure for use at this is that example is illustrated its control flow; Being placed with two-layer same spline structure, every layer in the drug storage cabinet has several with the medicament feed unit of spline structure, and symbol N and N' are defined as the cartridge bag sequence number.
When system software records in certain concrete doctor's advice of execution, at first the statistics list wraps the medicament in the medicine bag, then the medicament in this bag medicine bag is divided into groups, in the drug storage cabinet example of this two-layer structure, be grouped into 2 groups, grouping is according to being the physical location that the medicament feeder is laid, and its medicament feeder of medicament that is divided into first group all is in interior the 1st layer of drug storage cabinet; Be divided into its medicament feeder of medicament of second group and all be in the drug storage cabinet the 2nd layer, (if the structure of drug storage cabinet more than 2 layers, group technology by that analogy).
According to the flow process of Fig. 6, when handling in the doctor's advice record single one bag of cartridge bag, carry out 7 flow processs concrete altogether, be respectively:
1, drug flow process S1-1 for the first time tells the medicine instruction to be first group of medicament for all medicament feeders of medicine send, and the medicament feeder spues first group of medicament.Press rule of classification, these medicaments are the medicament that spues in the 1st layer of structure of drug storage cabinet;
2, collect flow process S2-1 for the first time, collect in the flow process for the first time in execution, the medicament that is divided into first group at first falls in the medicine passage that falls, and is collected in then in the gathering-device that installs additional in the 1st layer of passage of drug storage cabinet, all is in the 1st layer of drug storage cabinet owing to the medicament that is divided into first group, therefore, system carries out and collects END instruction for the first time after confirming that medicament all is collected, and soon closes behind the valve opening in the 1st layer the collection channel again, medicament falls, and prepares to be fed to gather mechanism;
3, drug flow process S1-2 for the second time in carrying out for the second time the drug flow process, tells the medicine instruction to be second group of medicament for all medicament feeders of medicine send, and the medicament feeder spues second group of medicament;
4, collect flow process S2-2 for the second time, when execution is collected flow process for the second time, the medicament that is divided into second group falls in the medicine passage that falls, and is collected in then in the gathering-device that installs additional in the 2nd layer of passage of drug storage cabinet, all is in the 2nd layer of drug storage cabinet owing to the medicament that is divided into second group, therefore, system carries out and collects END instruction for the second time after confirming that medicament all is collected, and soon closes behind the valve opening in the 2nd layer the collection channel again, medicament falls, and is fed to gather in the collecting mechanism;
5, gather flow process S2-3, respectively collect medicament that flow process collects and be in the same place above-mentioned, present to envelope body;
6, envelope flow process S3, in carrying out the envelope flow process, the medicament that enters envelope body is packaged into bag;
7, output flow process S4, in carrying out the output flow process, packaged medicine bag is by outside the device for transferring successively.Finish whole operations of single cartridge bag.
Each flow process interrelation of corresponding this new mode as shown in Figure 7.Symbol N and N' are defined as the cartridge bag sequence number among the figure, and wherein the scale on the ordinate 1 represents flow process at work, and scale 0 represents this flow process to be stopped.Abscissa represents the time.T11 wherein represents the drug used time of flow process for the first time.T21 represents and collects the used time of flow process for the first time.T12 represents the drug used time of flow process for the second time.T22 represents and collects the used time of flow process for the second time.The T23 representative gathers the used time of flow process.T3 represents the used time of envelope flow process.T4 represents the used time of output flow process.Delay time when finishing with respect to last time bag medicine output flow process when t1 represents the drug flow startup of this bag medicine, the i.e. time gap of the cartridge bag bag medicine that two bags are adjacent.T21 represents and collects for the first time flow process and begin the delay time that the drug flow process finishes with respect to the first time, t23 represents for the second time, and the drug flow process begins with respect to collecting for the first time the delay time that flow process finishes, t22 represents and collects for the second time flow process and begin the delay time that the drug flow process finishes with respect to the second time, t24 representative gathers flow process and begins represent the envelope flow process and begin with respect to gathering the delay time that flow process finishes with respect to collecting for the second time t3 delay time that flow process finishes, and t4 represents the output flow process and begins delay time with respect to the end of envelope flow process.In new method, the used temporal summation of bag medicine overall process of finishing a bag cartridge bag is t1+T11+t21+T21+t23+T12+t22+T21+t24+T23+t3+T3+t4+T4.(reason same with aforesaid t2, negative value may appear in t21 and t22)
In order to raise the efficiency, in the specific embodiment of the present invention, also adopted " concurrent processing " of the prior art method equally, this method makes equipment when normal operation, a plurality of flow processs that many bag medicine bags are arranged of handling simultaneously as much as possible.For simplifying narration, still selecting the drug storage cabinet of a two-layer structure for use at this is that example is illustrated, each actual flow process interrelation as shown in Figure 8, in Fig. 8, symbol N and N' are defined as the cartridge bag sequence number, the td11 that increases newly is representing adjacent two pitch times of drug flow process for the first time, td21 is representing adjacent two pitch times of collecting flow process the first time, td12 is representing adjacent two pitch times of drug flow process for the second time, td22 is representing adjacent two pitch times of collecting flow process the second time, td23 is representing adjacent two pitch times that gather flow process, td3 is representing the pitch time of adjacent two envelope flow processs, and td4 is representing the pitch time of adjacent two output flow processs.
In sum, the usefulness of the control method of medicine packaging facilities of the present invention is: 1, the collection needed time of flow process has shortened; 2, the flow process time spent that increases newly is all short and comparatively average.
Collecting flow process the longest second time with holding time is example, and its used time only is to collect about half of used time of flow process in the original method.Concrete is calculated as follows:
Length is generally between 1.2~1.6 meters in the medicament collection channel of legacy equipment, and relying on gravity is that the medicament of propulsion source falls in collection channel will be according to the free-falling body rule, and its shared time is:
Wherein g is gravity acceleration value, and h is the collection channel height.In design, in order to guarantee reliability, the h value is the maximum height of passage, and the medicament lowering time that draws thus is about 0.57 second;
On the other hand, medicament has been accumulated kinetic energy when falling in collection channel, falling collection channel when bottom at medicament, generally is kinetic energy to be discharged through bouncing several times, makes at last that medicament is static to get off, just can be transported to next link, therefore, in this flow process, system need arrange the energy drop away time of medicament, namely so-called " bounce time " represented with Tp.Distribute because normal probability paper is pressed in the release of this energy, therefore, Tp can be expressed as:
Tp=P(N)
Wherein N is that medicament drops to the kinetic energy that has when contacting moment with the bottom in collection channel, and according to free fall law, the height h before this kinetic energy and medicament fall is linear relationship, and therefore, Tp can also be expressed as:
Tp=P’(h)
A large amount of statistical test and practical application in industry all show, are that the value of Tp is about 0.33 second under 1.6 meters the situation at maximum height.And it is relevant with highly linear in suitable scope.In new method, owing to adopted the method for repeatedly collecting (this example is 2 times).For shorten collection channel provide may, so the length of collection channel can shorten dramatically, and is example with 2 layers of structure only, actual maximum height is original about 1/3rd, is no more than 0.6 meter, brings formula into
(h) can draw with formula Tp=P ':
Ts+Tp=0.35+0.11=0.46 second
(wherein Tp=P ' (h) is reduced in 0.1~2.0 meter scope under identical variance to linear, and this conclusion is verified as accurately by experiment test)
Therefore, the bag medicine speed of new mode can reach more than per minute 120 bag under the identical prerequisite of reliability, doubles than the speed of orthodox method.
Realize that the functional block diagram of control method of the present invention is referring to Fig. 9.
At this, variable M is defined as the cartridge bag sequence number, software circulates according to variable M metering.Before entering this circulation, give initial value to M earlier.The once execution that now intercepts this circulation is illustrated.
Seven state variable FL have been defined in the program
1~FL
7, each variable can only be got " 0 " and " 1 ".FL
1Be defined as first group of drug state variable, FL
1For first group of drug do not finished in " 0 " expression, for first group of drug finished in " 1 " expression; FL
2Be defined as second group of drug state variable, FL
2For second group of drug do not finished in " 0 " expression, for second group of drug finished in " 1 " expression; FL
3Be defined as the summary status variable, FL
3Gather flow process for " 0 " is represented not finish, finished for " 1 " expression and gathered flow process; FL
4Be defined as the envelope state variable, FL
4For the envelope flow process is not finished in " 0 " expression, for the envelope flow process has been finished in " 1 " expression; FL
5Be defined as the output state variable, FL
5For the output flow process is not finished in " 0 " expression, for the output flow process has been finished in " 1 " expression.F FL
6Be defined as first group of collection status variable, FL
6Collect flow process for first group of " 0 " expression and do not finish, collect flow process for first group of " 1 " expression and finish.FL
7Be defined as second group of collection status variable, FL
7Collect flow process for second group of " 0 " expression and do not finish, collect flow process for second group of " 1 " expression and finish.
Execution in step S11 at first: each parameter of initialization, with FL
1~FL
7Zero clearing; Execution in step S12 again: with medicament in the M bag medicine by the rule grouping, (in the drug storage cabinet example of these 2 layers of structures, being grouped into 2 groups) grouping is according to being the physical location that the medicament feeder is laid, its medicament feeder of medicament that is divided into first group all is in interior the 1st layer of drug storage cabinet; Be divided into its medicament feeder of medicament of second group and all be in the drug storage cabinet the 2nd layer (if the structure of drug storage cabinet more than 2 layers, group technology by that analogy).Execution in step S13 again: control system begins to send the initiating task order, comprising: 1. (M bag) first group of medicament assembled unit tell medicine, 2. (M subtracts 1 bag) second group of medicament assembled unit tell medicine, 3. (M subtracts 2 bags) gather that mechanism gathers, 4. (M subtracts 3 bags) envelope body envelope, 5. (M subtracts 4 bags) medicament discharge mechanism output.
After being sent completely, detect FL in turn
1~FL
5State, execution in step S14 at first: judge FL
1Whether equal 1, under the situation of " Y ", execution in step S17 is under the situation of " N ", execution in step S15: judge whether (M bag) first group of drug is finished (after the enabled instruction 1. of the electromechanical integrated structure of equipment in receiving step S13, the medicament feeder of ground floor begins the medicament that spues, and mode of operation is returned apprizing system after finishing this work), under the situation of " N ", execution in step S17, under the situation of " Y ", execution in step S16: with FL
1Put 1; Start first group of medicament and collect the wait timing.Change and carry out next step S17.
Execution in step S17: judge FL
2Whether equal 1, under the situation of " Y ", execution in step S20, under the situation of " N ", execution in step S18: judge whether (M subtracts 1 bag) second group of drug is finished, and (after the enabled instruction 2. of the electromechanical integrated structure of equipment in receiving step S13, the medicament feeder of the second layer begins the medicament that spues, and after finishing this work, mode of operation is returned, apprizing system), under the situation of " N ", execution in step S20, under the situation of " Y ", execution in step S19: with FL
2Put 1; Start second group of medicament and collect the wait timing.Change execution in step S20.
Execution in step S20: judge FL
3Whether equal 1, under the situation of " Y ", execution in step S23, under the situation of " N ", execution in step S21: judge that (M subtracts 2 bags) gathers work flow and whether finish, (after the enabled instruction 3. of the electromechanical integrated structure of equipment in receiving step S13, the beginning medicament gathers, and after finishing this work, mode of operation is returned, apprizing system), under the situation of " N ", execution in step S23, under the situation of " Y ", execution in step S22: with FL
3Put 1.Change execution in step S23.
Execution in step S23: judge FL
4Whether equal 1, under the situation of " Y ", execution in step S26, under the situation of " N ", execution in step S24: judge whether (M subtracts 3 bags) envelope work flow is finished, (after the enabled instruction 4. of the electromechanical integrated structure of equipment in receiving step S13, beginning cartridge bag envelope, and after finishing this work, mode of operation is returned, apprizing system), under the situation of " N ", execution in step S26, under the situation of " Y ", execution in step S25: with FL
4Put 1.Change execution in step S26.
Execution in step S26: judge FL
5Whether equal 1, under the situation of " Y ", execution in step S29: under the situation of " N ", execution in step S27: judge whether (M subtracts 4 bags) output work flow is finished, (after the enabled instruction 5. of the electromechanical integrated structure of equipment in receiving step S13, the output of beginning medicine bag, and after finishing this work, mode of operation is returned apprizing system), under the situation of " N ", execution in step S29, under the situation of " Y ", execution in step S28: with FL
5Put 1.Change execution in step S29.
Execution in step S29: detect FL
1~FL
5Whether all variablees all are " 1 ", if be " 1 " all, change step S32, if all be not " 1 ", execution in step S30: judge whether system is overtime, if not overtime, beginning repeated execution of steps S14, in inferior detection, if overtime, system changes execution in step S31 over to: handle makeing mistakes.Program will change execution in step S32 under the normal circumstances.
Hold step S32: judge FL
6Whether equal 1, under the situation of " Y ", execution in step S35, under the situation of " N ", execution in step S33: judge (M bag) first group of medicament collects whether then to wait for timing, under the situation of " N ", execution in step S35, under the situation of " Y ", execution in step S34: carry out (M bag) first group of medicament and collect END instruction: open first group of medicament catcher valve (allowing first group of medicament fall) back valve-off, with FL
6Put 1.Change execution in step S35.
Hold step S35: judge FL
7Whether equal 1, under the situation of " Y ", execution in step S38, under the situation of " N ", execution in step S36: judge (M subtracts 1 bag) second group of medicament collects whether then to wait for timing, under the situation of " N ", execution in step S38, under the situation of " Y ", execution in step S37: carry out (M subtracts 1 bag) second group of medicament and collect END instruction: open second group of medicament catcher valve (allowing second group of medicament fall) back valve-off, with FL
7Put 1.Change execution in step S38.
Execution in step S38: judge FL
6With FL
7Whether be congruent to 1, under the situation of " N ", re-execute step S32, under the situation of " Y ", execution in step S39:M increases 1; Execution in step S40: judge whether to carry out at last, under the situation of " N ", re-execute step S11, the next circulation of beginning, under the situation of " Y ", bag medicine processing end.
The structural representation of device for trapping 113 as shown in figure 10 among Fig. 5, it comprises motor, turnover panel 1131, spacing shelves 1132 and coupler 1134, described coupler 1134 links to each other turnover panel 1131 with motor, described coupler 1134 is positioned at the center of medicament collection channel 112, described turnover panel 1131 and the middle spacing shelves 1132 that are provided with described turnover panel 1131 anglecs of rotation of control of motor; Turnover panel 1131 is subjected to electric machine control can the two-way rotation of cw conter clockwise centered by coupler 1134, can both make the inwall of being close to medicament collection channel 112 after turnover panel 1131 rotations again to guarantee its each rotation.The length of described turnover panel 1131 is consistent with the width of drug storage cabinet 1, to guarantee can to support a plurality of medicine assembled units 11 that supply after turnover panel 1131 stretches into medicament collection channel 112; In order to guarantee that device for trapping 113 can be close to the inwall of medicament collection channel 112, the transverse width of turnover panel 1131 needs the transverse width greater than medicament collection channel 112.
Preferably, described turnover panel 1131 serves as that axle is 45 ° with angle that the inwall of vertical direction forms when being close to the inwall of described medicament collection channel 112 with coupler 1134, is provided with described turnover panel 1131 anglecs of rotation of control in the middle of described turnover panel 1131 and the motor and is 90 ° spacing grade 1132; Be that turnover panel 1131 serves as the axle half-twist with coupler 1134, not only temporary medicament can be fallen, and turnover panel 1131 can be close on the inwall of medicament collection channel 112 again.During work, medicament is collected on the turnover panel 1131 and temporarily deposits, turnover panel 1131 is after receiving action command, can serve as the axle half-twist with coupler 1134, make temporary medicament continue to fall to entering down in the medicament collection channel 112 of one deck for the medicine assembled unit, can be close to again behind turnover panel 1131 half-twists on the inwall of medicament collection channel 112, for medicament is next time collected ready.
The below of described limiting block 1132 is provided with spacing energy disperser 1133, and its purpose is to increase its service life for reducing the noise that device for trapping 113 produces because of inertia when the normal operation.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.