Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an emergency cache system applied to small cigarette processing, which can cache and reasonably distribute small cigarettes conveyed by a main machine when an auxiliary machine fails, and can improve the quality of distributed small cigarettes so as to solve the problems that the efficiency of the existing small cigarette processing process is low, the material conveying is not reasonable enough, and the distribution quality cannot be guaranteed.
In order to solve the problems, the invention is realized by the following technical scheme: an emergency cache system applied to small cigarette packet processing comprises a main control module, a material storage channel, a material discharging channel and a material storage mechanism, wherein the main control module is respectively and electrically connected with the material storage channel, the material discharging channel and the material storage mechanism, one ends of the material storage channel and the material discharging channel are respectively connected with the material storage mechanism, one end, far away from the material storage mechanism, of the material storage channel is connected with a host, one end, far away from the material storage mechanism, of the material discharging channel is connected with an auxiliary machine, a material shifting assembly is arranged at the joint of the material storage channel and the host, and the material shifting assembly is used for shifting small cigarette packets output by the host into the material storage channel;
the material storage mechanism comprises a material storage assembly and a material loading assembly, the material storage assembly is used for storing the small cigarettes input from the material storage channel, and the material loading assembly is used for distributing the small cigarettes stored in the material storage assembly to the material discharge channel;
the main control module comprises a signal receiving and transmitting unit, a batching control unit, a material storage control unit, a first detection unit and a storage unit, wherein the signal receiving and transmitting unit is used for receiving operation state signals of the auxiliary machine, and the operation state signals comprise operation normal signals and operation fault signals;
the main control module is configured with a first control strategy, the first control strategy comprises the step of sending a first operation signal to the stock control unit when the signal receiving and sending unit receives an operation fault signal, and the stock control unit controls the stock channel and the stock component to operate after receiving the first operation signal; when the signal receiving and transmitting unit receives a normal operation signal, a second operation signal is sent to the batching control unit, and the batching control unit controls the feeding assembly and the discharging channel to operate after receiving the second operation signal;
the first detection unit comprises a first counter and a second counter, the first counter is used for calculating a first number of the small cigarette packets input into the material storage assembly through the material storage channel, and the second counter is used for calculating a second number of the small cigarette packets distributed to the material discharge channel by the material storage assembly;
the main control module is also provided with a second control strategy, the second control strategy comprises the steps of comparing the first quantity with a preset first threshold value, and when the first quantity is equal to the first threshold value, sending a first stop signal to the material storage control unit, and after receiving the first stop signal, the material storage control unit controls the material storage channel and the material storage assembly to stop operating; when the second quantity is equal to the first quantity, sending a second stop signal to the batching control unit, and controlling the feeding assembly and the discharging channel to stop operating after the batching control unit receives the second stop signal;
the storage unit stores the output speed of the main machine and the processing speed of the auxiliary machine, wherein the processing speed is greater than the output speed;
the batching control unit is provided with a first algorithm, a second algorithm and a batching strategy, and the first algorithm calculates the batching speed according to the first quantity; the second algorithm calculates to obtain a differential value according to the output speed and the processing speed;
the batching strategy comprises the steps that when the batching speed is greater than the differential speed value, the feeding assembly and the discharging channel are controlled to operate according to the differential speed value; when the material mixing speed is less than or equal to the differential value, the material loading assembly and the material discharging channel are controlled to operate according to the material mixing speed.
Further, the first algorithm is configured to
Wherein Vp is the material mixing speed, x is the first quantity, k is a preset value and k is more than 1; the second algorithm is configured as V
c=V
j-V
sWhere Vc is the differential speed value, Vj is the machining speed, and Vs is the output speed.
Furthermore, a turning assembly is arranged on one side, close to the feeding assembly, of the discharging channel, the turning assembly is used for turning the small cigarette packets conveyed by the feeding assembly, and the main control module further comprises a second detection unit which is used for detecting whether the outer package of the small cigarette packets is sunken or bulged;
the second detection unit comprises a scanner, and the scanner is used for acquiring the three-dimensional picture information of the top surface of the small cigarette;
the main control module further comprises a processing unit, wherein the processing unit comprises a first processing strategy, a third algorithm and a first screening strategy;
the first processing strategy comprises the steps of carrying out 3D modeling according to the received three-dimensional picture information of the top surface of the small cigarette, and then uniformly obtaining a plurality of first distances between a plurality of points on the top surface of the small cigarette and the scanner;
the third algorithm calculates a first detection value according to the plurality of first distances;
the first screening strategy comprises the steps of comparing a first detection value with a preset first threshold value, and outputting a first unqualified signal when the first detection value is larger than the first threshold value; when the first detection value is smaller than or equal to a first threshold value, outputting a first qualified signal;
the first unqualified signal comprises that the top surface of the small cigarette packet is sunken or bulged, and the first qualified signal comprises that the top surface of the small cigarette packet is qualified.
Further, the third algorithm is configured to
Where P1 is the first detection value, Sx is the first distance, and n is the number of acquired first distances.
Furthermore, the second detection unit further comprises a displacement sensor, and the displacement sensor is used for acquiring the distance between a plurality of points on the side surface of the small cigarette and the displacement sensor;
the processing unit further comprises a second processing strategy, a fourth algorithm and a second screening strategy;
the second processing strategy comprises marking according to the distances between a plurality of points on the side surface of the received small cigarette and the displacement sensor, and respectively marking the distances between two opposite side surfaces of the small cigarette and the displacement sensor as a plurality of second distances and a plurality of third distances;
the fourth algorithm calculates a second detection value according to the plurality of second distances and the plurality of third distances;
the second screening strategy comprises the steps of comparing a second detection value with a preset second threshold value, and outputting a second unqualified signal when the second detection value is larger than the second threshold value; when the second detection value is smaller than or equal to a second threshold value, outputting a second qualified signal;
the second unqualified signal comprises that the side surface of the small cigarette has a depression or a bulge, and the second qualified signal comprises that the side surface of the small cigarette is packaged to be qualified.
Further, the fourth algorithm is configured to
Where P2 is the second detection value, Sy is the second distance, Sz is the third distance, and m is the number of the second and third distances acquired.
Further, the second detection unit further comprises a camera, and the camera is used for acquiring a first image of the top surface of the small cigarette;
the storage unit also stores a pre-stored image of the top surface of the small cigarette packet;
the processing unit further comprises a comparison strategy, wherein the comparison strategy comprises the steps of comparing the shape of the first image with the shape of a prestored image to obtain a first area difference value, and outputting a third unqualified signal when the first area difference value is larger than a preset third threshold value; when the first area difference value is smaller than or equal to a third threshold value, outputting a third qualified signal;
the third fail signal comprises the presence of a depression or bulge in a corner of the packet of cigarettes and the third pass signal comprises the packet of cigarettes being wrapped normally in a corner.
Furthermore, the comparison strategy further comprises a first area difference value obtaining sub-strategy, the first area difference value obtaining sub-strategy comprises a first frame and a second frame which are used for respectively obtaining the first image and the pre-stored image, the first frame and the second frame are overlapped, then a plurality of first areas of the first frame protruding out of the second frame are cut off, a plurality of second areas of the first frame sinking into the second frame are filled, and finally the areas of the plurality of first areas and the areas of the plurality of second areas are added to obtain a first area difference value.
Further, the comparison strategy further includes a frame acquisition sub-strategy, where the frame acquisition sub-strategy includes setting an area where a line is drawn along an outer edge of the first image as a first frame, and setting an area where a line is drawn along an outer edge of the pre-stored image as a second frame.
Furthermore, a rejecting assembly is further arranged on one side, away from the feeding assembly, of the overturning assembly, a rejecting unit is further configured on the main control module, and a rejecting strategy is configured on the rejecting unit and comprises the step of controlling the rejecting assembly to reject after the rejecting unit receives the first unqualified signal, the second unqualified signal or the third unqualified signal.
The invention has the beneficial effects that: the emergency cache system can be put into operation in time when the auxiliary machine is in fault, so that the main machine can continuously keep an operating state, the feeding assembly and the discharging channel can be opened in time when the auxiliary machine is in normal operation, the small cigarette packs in the storage mechanism can be sent out in time, and meanwhile, the batching speed can be adjusted according to the number of the small cigarette packs stored in the storage mechanism by arranging the batching control unit, so that fast and reasonable batching is realized, the processing efficiency is improved, and the operating rationality is guaranteed.
According to the invention, by adding the second detection unit and the processing unit, the quality of the small cigarette packets sent out by the feeding assembly can be detected, the top surface and the side surface of the small cigarette packets can be detected, meanwhile, the small cigarette packets can be comprehensively scanned and detected by matching with the overturning assembly, the problem that the small cigarette packets are sunken and bulged can be screened, and unqualified small cigarette packets can be removed in time by matching with the removing assembly.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further described with the specific embodiments.
In a first embodiment, please refer to fig. 1 and 2, an emergency buffer system 1 for processing small cigarette packets includes a main control module 14, a material storage channel 12, a material discharge channel 13, and a material storage mechanism 11, wherein the main control module 14 is electrically connected to the material storage channel 12, the material discharge channel 13, and the material storage mechanism 11, one end of the material storage channel 12 and one end of the material discharge channel 13 are connected to the material storage mechanism 11, one end of the material storage channel 12 away from the material storage mechanism 11 is connected to a host computer 2, one end of the material discharge channel 13 away from the material storage mechanism 11 is connected to an auxiliary machine 3, a material shifting assembly 115 is disposed at a connection position between the material storage channel 12 and the host computer 2, the material shifting assembly 115 is configured to shift small cigarette packets output by the host computer 2 into the material storage channel 12, during normal operation, the host computer 2 directly transmits the processed small cigarette packets to the auxiliary machine 3, and when the auxiliary machine 3 fails, the connection channel between the host computer 2 and the auxiliary machine 3 is closed, the material shifting component 115 is started to shift the small cigarette packets into the material storage channel 12, and then the small cigarette packets processed by the host machine 2 are stored into the material storage mechanism 11 through the material storage channel 12.
The material storage mechanism 11 comprises a material storage assembly 111 and a material loading assembly 112, the material storage assembly 111 is used for storing the small cigarette packets input from the material storage channel 12, the material loading assembly 112 is used for distributing the small cigarette packets stored in the material storage assembly 111 to the material discharging channel 13, after the auxiliary machine 3 is relieved from failure and normally operates, the material loading assembly 112 transmits the small cigarette packets to the material discharging channel 13, and the material discharging channel 13 transmits the small cigarette packets to the auxiliary machine 3.
Referring to fig. 3, the main control module 14 includes a signal transceiving unit 141, a batching control unit 142, a material storage control unit 143, a first detection unit 144, and a storage unit 145, where the signal transceiving unit 141 is configured to receive an operation state signal of the auxiliary device 3, and the operation state signal includes an operation normal signal and an operation failure signal.
The main control module 14 is configured with a first control strategy, where the first control strategy includes sending a first operation signal to the stock control unit 143 when the signal transceiver unit 141 receives the operation failure signal, and the stock control unit 143 controls the stock channel 12 and the stock component 111 to operate after receiving the first operation signal; when the signal transceiver 141 receives the normal operation signal, it sends a second operation signal to the batching control unit 142, and the batching control unit 142 receives the second operation signal and then controls the feeding assembly 112 and the discharging channel 13 to operate.
The first detection unit 144 comprises a first counter 1441 for counting a first number of cigarettes fed into the deposit member 111 by the deposit channel 12 and a second counter 1442 for counting a second number of cigarettes dispensed onto the outfeed channel 13 by the deposit member 112.
The main control module 14 is further configured with a second control strategy, where the second control strategy includes comparing the first quantity with a preset first threshold, and when the first quantity is equal to the first threshold, sending a first stop signal to the material storage control unit 143, and after receiving the first stop signal, the material storage control unit 143 controls the material storage channel 12 and the material storage component 111 to stop operating; when the second quantity is equal to the first quantity, a second stop signal is sent to the batching control unit 142, and the batching control unit 142 controls the feeding assembly 112 and the discharging channel 13 to stop operating after receiving the second stop signal. The number of the stored cigarettes and the number of the output cigarettes can be known through monitoring the first number and the second number, the first threshold value is an upper limit value stored by the material storage mechanism 11, and when the second number is equal to the first number, the fact that all the cigarettes in the material storage mechanism 11 are output is indicated.
The storage unit 145 stores the output speed of the main machine 2 and the processing speed of the auxiliary machine 3, the processing speed is greater than the output speed, the processing speed of the auxiliary machine 3 is greater than the output speed of the main machine 2, the main machine 2 can be ensured to be in a continuous operation state, and similarly, when the main machine 2 and the storage mechanism 11 convey materials to the auxiliary machine 3 together after the auxiliary machine 3 is relieved of faults, the processing amount of the auxiliary machine 3 can be ensured to fully digest the small cigarette packets output by the main machine 2 and the storage mechanism 11.
The batching control unit 142 is configured with a first algorithm, a second algorithm and a batching strategy, wherein the first algorithm calculates the batching speed according to the first quantity; the second algorithm calculates a differential value according to the output speed and the processing speed.
The batching strategy comprises the steps of controlling the feeding assembly 112 and the discharging channel 13 to operate according to a differential value when the batching speed is greater than the differential value; when the batching speed is less than or equal to the differential value, the feeding assembly 112 and the discharging channel 13 are controlled to operate according to the batching speed, the batching speed of the stock mechanism 11 to the auxiliary machine 3 can be increased as much as possible under the condition that the processing amount of the auxiliary machine 3 can be completely consumed in the process of ensuring that the stock mechanism 11 and the main machine 2 are used for batching the auxiliary machine 3, so that the small cigarette packets stored in the stock mechanism 11 can be conveyed completely as fast as possible, the allowance in the stock mechanism 11 can be emptied as soon as possible, and the risk resistance of emergency cache is improved.
The first algorithm is configured to
Wherein Vp is the material mixing speed, x is the first quantity, k is a preset value and k is more than 1; the second algorithm is configured as V
c=V
j-V
sWhere Vc is the differential speed value, Vj is the machining speed, and Vs is the output speed.
In the first algorithm, the denominator represents the time required for conveying the first quantity of small cigarettes, when x is larger than or equal to 1, the difference between a plurality of logarithmic values of x with 3 as the base is not large, so that no matter how large the first quantity is, the final batching time is not large, k is added in the denominator to serve as a preset value, the batching time can be adjusted according to the actual operation requirement, and the final batching speed can be obtained by removing the denominator through the first quantity of the numerator.
In the second algorithm, the differential value between the machining speed and the output speed can be obtained by calculating the difference between the two speeds.
The speed of all dispensing of small cigarettes in the storage mechanism 11 in as short a time as possible can be calculated through the first algorithm, the number of the small cigarettes stored in the storage mechanism 11 is different, the dispensing speed calculated through the first algorithm is also different, and the dispensing of the small cigarettes in different numbers can be completed in a similar time period by changing the dispensing speed. According to the distribution scheme, when the quantity of the small cigarette packets stored in the storage mechanism 11 is small, the batching speed can be reduced as much as possible to reduce the processing quantity of the auxiliary machine 3 in a certain time period, so that the auxiliary machine 3 can operate stably, and when the quantity of the small cigarette packets stored in the storage mechanism 11 is large, the batching speed is increased, so that the small cigarette packets in the storage mechanism 11 can be emptied as soon as possible, and the surplus is reserved for the next emergency. Can improve the rationality of the ingredients while ensuring the processing efficiency.
In the second embodiment, referring to fig. 4 and 5, a turning assembly 113 is disposed on one side of the discharging channel 13 close to the feeding assembly 112, the turning assembly 113 is used for turning the small cigarette packets conveyed by the feeding assembly 112, the main control module 14 further includes a second detecting unit 148, and the second detecting unit 148 is used for detecting whether the outer package of the small cigarette packets has a recess and a bulge.
The second detection unit 148 comprises a scanner 1481, and the scanner 1481 is used for acquiring stereoscopic picture information of the top surface of the small cigarette packet.
The master control module 14 further includes a processing unit 146, and the processing unit 146 includes a first processing policy, a third algorithm, and a first screening policy.
The first processing strategy comprises the steps of carrying out 3D modeling according to the received three-dimensional picture information of the top surface of the small cigarette, and then uniformly obtaining a plurality of first distances between a plurality of points on the top surface of the small cigarette and the scanner 1481;
the third algorithm calculates a first detection value based on the plurality of first distances.
The third algorithm is configured as
Wherein, P1 is a first detection value, Sx is a first distance, and n is the number of the acquired first distances;
the third algorithm is a standard deviation of n groups of first distances, the standard deviation can reflect the difference between the n groups of first distances, under the condition that the quality of the small cigarette packets is qualified, the distances between each point on the top surface of the small cigarette packets and the scanner 1481 are approximately the same, and if the small cigarette packets have the problem of bulge or recess, the distances between each point on the top surface of the small cigarette packets and the scanner 1481 are different. Can calculate first detected value through the third algorithm, first detected value can reflect the fluctuation value of top surface each point apart from the first distance of scanner 1481, and under the great condition of fluctuation value, there must be sunken or the problem of tympanites in the top surface of packet cigarette, can carry out accurate screening to unqualified packet cigarette, helps improving the quality of processing.
The first screening strategy comprises the steps of comparing a first detection value with a preset first threshold value, and outputting a first unqualified signal when the first detection value is larger than the first threshold value; and outputting a first qualified signal when the first detection value is less than or equal to a first threshold value. The first unqualified signal comprises that the top surface of the small cigarette packet is sunken or bulged, and the first qualified signal comprises that the package on the top surface of the small cigarette packet is qualified.
The second detecting unit 148 further includes a displacement sensor 1482, and the displacement sensor 1482 is used to obtain distances between points on the side of the small cigarette and the displacement sensor 1482.
The processing unit 146 further comprises a second processing strategy, a fourth algorithm and a second screening strategy.
The second processing strategy comprises marking the distance between a plurality of received small cigarette side points and the displacement sensor 1482, and marking the distance between two opposite side surfaces of the small cigarette and the displacement sensor 1482 as a plurality of second distances and a plurality of third distances respectively, wherein the sum of the distances between the corresponding points of the two opposite side surfaces of the small cigarette and the displacement sensor 1482 is approximately the same under the condition that the small cigarette is wrapped in an outer package.
And the fourth algorithm calculates a second detection value according to the plurality of second distances and the plurality of third distances.
The fourth algorithm is configured as
Where P2 is the second detection value, Sy is the second distance, Sz is the third distance, and m is the number of the second and third distances acquired. The fourth algorithm is a standard deviation obtained by adding the m groups of second distances and the m groups of third distances respectively, and the difference between the m groups of second distances and the m groups of third distances can be reflected by the standard deviation.
The second detection value can reflect the fluctuation condition of the sum of a plurality of second distances and a plurality of third distances of two opposite sides of the small cigarette packet, when the fluctuation condition of the sum of the second distances and the third distances is large, namely the second detection value is large, the problem that the two opposite sides of the small cigarette packet can be sunken and bulged is shown, and the problem that whether the side package of the small cigarette packet is sunken and bulged can be accurately obtained through the fourth algorithm.
The second screening strategy comprises the steps of comparing a second detection value with a preset second threshold value, and outputting a second unqualified signal when the second detection value is larger than the second threshold value; and outputting a second qualified signal when the second detection value is less than or equal to a second threshold value. The second unqualified signal comprises that the side surface of the small cigarette has a depression or a bulge, and the second qualified signal comprises that the side surface of the small cigarette is packaged to be qualified.
The second detection unit 148 further comprises a camera 1483, and the camera 1483 is used for acquiring a first image of the top surface of the small cigarette;
the storage unit 145 also stores a pre-stored image of the top surface of the small cigarette pack;
the processing unit 146 further includes a comparison policy, where the comparison policy includes comparing the shape of the first image with a pre-stored image to obtain a first area difference, and outputting a third unqualified signal when the first area difference is greater than a preset third threshold; when the first area difference value is smaller than or equal to a third threshold value, outputting a third qualified signal; through obtaining the image of the packet cigarette in the batching process and comparing, can sieve out the packet cigarette that the corner is sunken.
The third fail signal includes the presence of a depression or bulge in the corner of the packet of cigarettes and the third fail signal includes the packet of cigarettes being wrapped normally in the corner.
The comparison strategy further comprises a first area difference value obtaining sub-strategy, the first area difference value obtaining sub-strategy comprises a first frame and a second frame, the first frame and the second frame respectively obtain a first image and a pre-stored image, the first frame and the second frame are overlapped, then a plurality of first areas, protruding out of the second frame, of the first frame are cut off, a plurality of second areas, sinking into the second frame, of the first frame are filled up, and finally the areas of the plurality of first areas and the areas of the plurality of second areas are added to obtain a first area difference value.
The comparison strategy further comprises a frame obtaining sub-strategy, wherein the frame obtaining sub-strategy comprises setting an area where lines are drawn along the outer edge of the first image as a first frame, and setting the area where lines are drawn along the outer edge of the pre-stored image as a second frame. If the corners of the small cigarette packet have the depressions and the bulges, the shapes of the first frame and the second frame are certainly different when the cigarette packet is compared, and the areas of the protruded areas and the depressed areas are added to obtain whether the problems of the depressions and the bulges of the small cigarette packet are serious or not.
The side, away from the feeding assembly 112, of the overturning assembly 113 is further provided with a removing assembly 114, the main control module 14 is further provided with a removing unit 147, the removing unit 147 is provided with a removing strategy, the removing strategy comprises the step of controlling the removing assembly 114 to perform removing operation after the removing unit 147 receives the first unqualified signal, the second unqualified signal or the third unqualified signal, and unqualified small cigarette packets can be removed by adding the removing assembly 114, so that the overall processing quality is improved.
The working principle is as follows: the main machine 2 and the auxiliary machine 3 are in the normal operation process, the main machine 2 transmits the processed small cigarette packets to the auxiliary machine 3, the auxiliary machine 3 performs the next processing operation, when the auxiliary machine 3 is in fault shutdown, the signal transceiver unit 141 receives a fault signal, the material storage control unit 143 controls the material storage channel 12 and the material storage component 111 to operate, the small cigarette packets output by the main machine 2 can be stored in the material storage mechanism 11, after the auxiliary machine 3 is in fault shutdown and normal operation is removed, the signal transceiver unit 141 receives a normal signal, the batching control unit 142 controls the material loading component 112 and the material discharge channel 13 to operate, the small cigarette packets stored in the material storage mechanism 11 can be transmitted to the auxiliary machine 3, and emergency cache is realized.
Meanwhile, in the operation process of the feeding assembly 112 and the discharging channel 13, the main control module 14 can adjust the batching speed of the feeding assembly 112 and the discharging channel 13 according to the number of small cigarettes stored in the storage mechanism 11, so that the batching efficiency can be improved as much as possible, and the batching rationality can be ensured; the link of quality detection is carried out to the packet cigarette to increase in host system 14, detects through the problem that whether has the sunken and bulge to packet cigarette surface, can select unqualified packet cigarette, increases simultaneously and rejects subassembly 114 and can reject unqualified packet cigarette, guarantees the quality of processing and the rationality of batching.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.