Multi-valve continuous sampling control method and computer product
By using a multi-gate continuous sampling control method and adjusting the feeding belt, the problems of low sampling efficiency and misoperation in the tobacco re-drying production line were solved, achieving efficient and accurate leaf structure detection.
Patent Information
- Application Number
- CN202511749501.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-02-17
AI Technical Summary
In existing tobacco re-drying production lines, the valve sampling method is inefficient, has a high probability of sampling errors due to misoperation, and sampling is not timely, making it difficult to meet the needs of leaf structure testing.
By using a continuous sampling control method with multiple valves, the sampling time and number of times for each valve are set. Combined with the signal from the blade structure analyzer, the valves can automatically take turns sampling. The material layer thickness is adjusted by a multi-stage feeding belt to ensure uniform material supply.
This effectively reduced the probability of sampling errors, improved sampling efficiency, and ensured the accuracy and stability of blade structure analysis.
Smart Images

Figure CN121540472A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of tobacco leaf re-drying sampling technology, specifically to a method for continuous sampling control using multiple valves. Background Technology
[0002] In tobacco leaf re-drying production lines, leaf stem separation is a crucial process, and the size of the separated leaves is a key indicator. Therefore, it is often necessary to take samples at each stage of leaf separation for leaf structure testing.
[0003] Currently, the sampling method for tobacco leaf re-drying materials mainly involves sampling by process segment. For example, CN103783648A discloses a sampling method for raw materials and process samples of tobacco leaf re-drying, which divides the tobacco leaf re-drying process into raw material process, vacuum rehydration process, hot air moistening process, and leaf re-drying process, and performs specific sampling according to the process. Another example is CN117405434A, which discloses a quality inspection sampling method for tobacco leaf re-drying materials, which sets up multiple process segments according to the processing sequence of tobacco leaf re-drying materials, and obtains the material flow time within each process segment and the interval time between adjacent process segments; sampling points are set up in each process segment, and when sampling at the corresponding sampling points, the total material flow time from the process segment with adjusted processing parameters to the sampling node is calculated; after the processing parameters are adjusted in the process segment, the corresponding sampling point is sampled again after the total material flow time.
[0004] Sampling valves are common devices for real-time sampling on production lines. In the leaf and stem separation process of a re-drying line, there are usually several air-discharge outlets. Each outlet is equipped with a sampling valve. When sampling and testing is required for a specific outlet, the corresponding valve is opened individually and closed after a certain period. This process is repeated when sampling and testing is required for multiple outlets. This method is inefficient and results in untimely sampling of tobacco leaves at specific times. With a large number of sampling operations, the probability of sampling errors due to misoperation also increases. Summary of the Invention
[0005] To address the aforementioned problems, this invention provides a method for continuous sampling control of multiple valves, thereby reducing the probability of sampling errors caused by misoperation when the number of samplings is large.
[0006] A method for continuous sampling control of multiple valves includes:
[0007] Step 1: Determine if any door is selected. If so, proceed to Step 2; otherwise, repeat Step 1.
[0008] Step 2: Sort the selected doors by their serial numbers;
[0009] Step 3: Determine the actual number of samplings for each valve by sorting them by valve type.
[0010] Step 31: If the actual sampling count of the first-ranked valve is greater than or equal to the set sampling count of the valve, then execute step S4; otherwise, open the valve for sampling. At the moment of opening, the sampling time of the valve starts to run. After the time reaches the set value, the valve closes, and the actual sampling count of the valve is incremented by 1, and the sampling time of the valve is reset to zero.
[0011] Step 4: Wait for the blade structure analyzer to perform online detection. When a completion signal is received from the blade structure analyzer, determine whether the set sampling number of the next valve is greater than the set sampling number of the current valve. If so, repeat step S4. Otherwise, open the valve for sampling. The sampling time of the valve starts to run the instant it opens. After the timer reaches the set value, the valve closes. At the same time, the actual sampling number of the valve is incremented by 1, and the sampling time of the valve is reset to zero.
[0012] Step 5: Determine whether the actual sampling count of all selected doors is greater than or equal to the set sampling count of the door. If the actual sampling count of all selected doors is greater than or equal to the set sampling count of the door, end the sampling; otherwise, return and execute step 31.
[0013] Further, step 1 includes:
[0014] Step 11: Define the valve value as 0 or 1. When the valve value is 1, the valve is selected. When the valve value is 0, the valve is not selected.
[0015] Step 12: Obtain the door value of each door. If the door value of each door is 0, then no door is selected. If the door value of any door is 1, then a door is selected.
[0016] Further, step 2, the step of sorting the selected gates by their serial numbers, includes:
[0017] Determine the value of the first trapdoor. If the value of the first trapdoor is 1, move the first trapdoor to the first position; if the value is 0, proceed to the next step.
[0018] Determine the values of the first and second traps. If the value of the second trap is 1 and the value of the first trap is 0, then move the second trap to the first position. If the value of the second trap is 1 and the value of the first trap is 1, then move the second trap to the second position. If the value of the second trap is 0, then proceed to the next step. Continue in this manner until the last trap.
[0019] Furthermore, a multi-stage feeding belt is installed between the valve and the blade structure analyzer; the method also includes:
[0020] Step 6: Let the running speed of the current feeding belt be Y, the lower limit of the speed be Y1, and the upper limit of the speed be Y2; let the real-time target thickness of the next feeding belt be X, the lower limit of the material layer thickness be X1, and the upper limit of the material layer thickness be X2.
[0021] The current speed of the feed belt, Y, is:
[0022] Y=((Y1-Y2)*X+X1*Y2-Y1*X2) / (X1-X2);
[0023] Repeat the above process until the speed adjustment of the penultimate feeding belt is completed.
[0024] Furthermore, the feeding belt has four levels, namely: belt M1, belt M2, belt M3 and belt M4 arranged in sequence.
[0025] Furthermore, the present invention also provides a computer program product, including computer program instructions that, when executed by a processor, implement the steps of the above-described method.
[0026] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0027] (1) By selecting the corresponding gate and setting the sampling time and number of sampling rounds for each gate, the present invention realizes automatic sampling and detection of the selected gate in turn, which can effectively reduce the probability of sampling errors caused by misoperation when the number of samplings is large. It is a control method for a blade structure analyzer that can realize different combinations of sampling.
[0028] (2) By continuously adjusting the material layer thickness through multi-stage feeding belts, the problem of uneven material output thickness of valves or thickness not meeting the material supply requirements of blade structure analyzer can be effectively solved, resulting in poor analysis effect of blade structure analyzer. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of the automatic continuous sampling process with multiple valves in Example 1;
[0030] Figure 2 This is a flowchart of the continuous sampling control method for multiple valves in Example 1;
[0031] Figure 3 This is a flowchart of the continuous sampling control process for multiple valves in Example 1. Detailed Implementation
[0032] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings.
[0033] Example 1
[0034] like Figure 1As shown, continuous sampling from multiple valves involves a single blade structure analyzer performing blade structure detection on samples taken at each stage of blade separation. Valve SampleSel1, Valve SampleSel2, Valve SampleSel3, ..., Valve SampleSelN are defined; the sampling times for Valve SampleSel1, Valve SampleSel2, Valve SampleSel3, ..., Valve SampleSelN are defined; and the number of samplings Sa for Valve SampleSelN is defined. mpleTimesSet1, SampleTimesSet2, SampleTimesSet3, ..., SampleTimesSetN of valve N; Define the actual sampling count of valve 1, SampleTimesSet1, SampleTimesSet2, SampleTimesSet3, ..., SampleTimesSetN of valve N; Define the blade structure detection completion signal StaticAnalysisDone.
[0035] like Figure 2-3 As shown, this embodiment discloses a method for continuous sampling control of multiple valves, including the following steps:
[0036] Step 1: Determine if any door is selected. If so, proceed to Step 2; otherwise, repeat Step 1. The determination method is as follows:
[0037] Step 11: Define the valve value as 0 or 1. When the valve value is 1, the valve is selected. When the valve value is 0, the valve is not selected.
[0038] Step 12: Obtain the door value of each door. If the door value of each door is 0, then no door is selected. If the door value of any door is 1, then a door is selected.
[0039] For example: if the first gate is selected, SampleSel1 is set to 1; otherwise, SampleSel1 is set to 0. If all of SampleSel1 to SampleSelN are 0, no gate is selected; if any of them are 1, a gate is selected.
[0040] Step 2: Sort the selected doors by their serial numbers. The sorting method is as follows:
[0041] Determine the value of the first trapdoor. If the value of the first trapdoor is 1, move the first trapdoor to the first position; if the value is 0, proceed to the next step.
[0042] Determine the values of the first and second traps. If the value of the second trap is 1 and the value of the first trap is 0, then move the second trap to the first position. If the value of the second trap is 1 and the value of the first trap is 1, then move the second trap to the second position. If the value of the second trap is 0, then proceed to the next step. Continue in this manner until the last trap.
[0043] For example: Determine the value of SampleSel1. If its value is 1, move the first valve to the first position; if its value is 0, proceed to the next step. Determine the values of SampleSel1 and SampleSel2. If SampleSel2 is 1 and SampleSel1 is 0, move the second valve to the first position; if both SampleSel2 and SampleSel1 are 1, move the second valve to the second position; if SampleSel2 is 0, proceed to the next step. Determine the values of SampleSel1, SampleSel2, and SampleSel3. If SampleSel3 is 1, SampleSel1 is 0, and SampleSel2 is 0, move the third valve to the first position. If SampleSel3 is 1 and either SampleSel1 or SampleSel2 is 1, move the third valve to the second position. If SampleSel3 is 1, SampleSel1 is 1, and SampleSel2 is 1, move the third valve to the third position. If SampleSel3 is 0, proceed to the next step. Continue this process until the last valve, SampleSelN.
[0044] Step 3: Determine the actual number of samplings for each valve by sorting them by valve type.
[0045] Step 31: If the actual sampling count of the first-ranked valve is greater than or equal to the set sampling count of the valve, then proceed to step S4; otherwise, open the valve for sampling. At the moment of opening, the sampling time of the valve starts to run. After the time reaches the set value, the valve closes, and the actual sampling count of the valve is incremented by 1, and the sampling time of the valve is reset to zero.
[0046] If the actual sampling count SampleTimesL of the selected first gate SampleSelL is greater than or equal to SampleTimesSetL, proceed to the next step if yes. If no, the gate opens for sampling. At the moment of opening, the sampling time SampleTimerSetL of the gate starts timing. After the timing reaches the set value, the gate closes, and the cumulative sampling count SampleTimesL of the gate increases by 1, and SampleTimerSetL returns to zero.
[0047] Step 4: Wait for the blade structure analyzer to perform online detection. When a completion signal is received from the blade structure analyzer, determine whether the set sampling number of the next valve is greater than the set sampling number of the current valve. If so, repeat step S4. Otherwise, open the valve for sampling. The sampling time of the valve starts counting down the moment it opens. After the count reaches the set value, the valve closes, and the actual sampling number of the valve is incremented by 1, and the sampling time of the valve is reset to zero.
[0048] For example, when the blade structure analyzer sends a completion signal StaticAnalysisDone, it checks whether the actual sampling count SampleTimesM of the second sequence valve SampleSelM is greater than or equal to SampleTimesSetM. If yes, it proceeds to the next step; otherwise, the valve opens for sampling. At the moment of opening, the sampling time SampleTimerSetM of the valve starts timing. After the timing reaches the set value, the valve closes, and the cumulative sampling count SampleTimesM of the valve is incremented by 1, and SampleTimerSetM is reset to zero.
[0049] Step 5: Determine if the actual sampling count of all selected doors is greater than or equal to the set sampling count for that door. If the actual sampling count of all selected doors is greater than or equal to the set sampling count for that door, end sampling; otherwise, return and execute step 31. Determine if the actual sampling count of selected door SampleSelL (SampleTimesL) is greater than or equal to SampleTimesSetL; determine if the actual sampling count of selected door SampleSelM (SampleTimesM) is greater than or equal to SampleTimesSetM; ...; determine if the actual sampling count of selected door SampleSelN (SampleTimesN) is greater than or equal to SampleTimesSetN; if all of the above are yes, end sampling; otherwise, execute step 31.
[0050] A four-stage feeding belt system is installed between the valve and the blade structure analyzer, namely: belts M1, M2, M3, and M4 arranged in sequence. Figure 1 As shown in the figure, M1, M2, and M3 are adjustable speed belts, the speed of belt M4 is a constant value, and B1, B2, and B3 are corresponding material layer thickness detection devices.
[0051] Step 6: Let the running speed of belt M1 be Y, the lower limit of the speed be Y1, and the upper limit of the speed be Y2; let the real-time target thickness of belt M2 be X, the lower limit of the material layer thickness be X1, and the upper limit of the material layer thickness be X2.
[0052] The running speed Y of belt M1 is:
[0053] Y=((Y1-Y2)*X+X1*Y2-Y1*X2) / (X1-X2);
[0054] That is, the thickness of the material layer on belt M2 is controlled by controlling the running speed of belt M1.
[0055] Similarly, repeat the above process to adjust the running speed of belts M2 and M3 in sequence. Through three-level adjustment, the sampled material is output with a controllable and uniform thickness, ensuring the stability of subsequent material processing.
[0056] The above examples illustrate the present invention only to aid in understanding it and are not intended to limit the scope of the invention. Those skilled in the art can make various simple deductions, modifications, or substitutions based on the principles of this invention.
Claims
1. A method for controlling sequential sampling of a plurality of valves, comprising: The method comprises the following steps: Step 1: judging whether a valve is selected, if yes, executing step 2, otherwise, repeating step 1; Step 2: sorting the selected valves according to the serial numbers; Step 3: judging the actual sampling times of the valves according to the valve sorting: Step 31: if the actual sampling times of the first sorted valve is greater than or equal to the set sampling times of the valve, executing step S4, otherwise, opening the valve for sampling, starting the valve sampling time at the opening moment, closing the valve after the valve sampling time reaches the set value, and accumulating the actual sampling times of the valve by 1 and resetting the valve sampling time to zero; Step 4: waiting for the on-line detection of the blade structure analyzer, when receiving the completion signal sent by the blade structure analyzer, judging whether the set sampling times of the next valve is greater than the set sampling times of the valve, if yes, repeating step S4, otherwise, opening the valve for sampling, starting the valve sampling time at the opening moment, closing the valve after the valve sampling time reaches the set value, accumulating the actual sampling times of the valve by 1 and resetting the valve sampling time to zero; Step 5: judging whether the actual sampling times of all the selected valves is greater than or equal to the set sampling times of the valve, if yes, ending the sampling, otherwise, returning to step 31.
2. The multiple valve sequential sampling control method of claim 1, wherein, The step 1 comprises: Step 11: defining the valve value as 0 or 1, when the valve value is 1, the valve is selected, and when the valve value is 0, the valve is not selected; Step 12: obtaining the valve value of each valve, if the valve value of each valve is 0, no valve is selected, and if the valve value of any valve is 1, a valve is selected.
3. The multiple-valve sequential sampling control method of claim 1, wherein In the step 2, the step of sorting the selected valves according to the serial numbers comprises: judging the valve value of the first valve, if the valve value of the first valve is 1, placing the first valve at the first serial number, if the valve value of the first valve is 0, jumping to the next step; judging the valve value of the first valve and the valve value of the second valve, if the valve value of the second valve is 1 and the valve value of the first valve is 0, placing the second valve at the first serial number, if the valve value of the second valve is 1 and the valve value of the first valve is 1, placing the second valve at the second serial number, if the valve value of the second valve is 0, jumping to the next step, and so on until the last valve.
4. The method of claim 1, wherein, A plurality of feeding belts are arranged between the valves and the blade structure analyzer; the method further comprises: Step 6: setting the running speed of the current feeding belt as Y, the lower limit of the speed as Y1, the upper limit of the speed as Y2, the real-time target thickness of the next feeding belt as X, the lower limit of the layer thickness as X1, and the upper limit of the layer thickness as X2; the running speed of the current feeding belt Y is: Y= ((Y1-Y2)*X+X1*Y2-Y1*X2) / (X1-X2); repeating the above process until the running speed of the second last feeding belt is adjusted.
5. The method of claim 1, wherein, The feeding belt is provided with four levels, i.e. the belts M1, M2, M3 and M4 arranged in sequence.
6. A computer program product comprising computer program instructions, characterised in that, The computer program instructions are executed by the processor to realize the steps of the method in any one of claims 1-5.
Citation Information
Patent Citations
Sampling method for threshing and re-drying raw materials and process samples
CN103783648A
Quality testing and sampling method for tobacco threshing and redrying materials
CN117405434A