A method for verifying the functional effectiveness of a blank check detector

By establishing test status registers and judgment rules in the control system of cigarette packaging equipment, the automated, accurate, and visual verification of the empty head and missing branch detector was achieved. This solved the tracking difficulties and misjudgment problems caused by manual operation in the existing technology and improved the functional verification effect of the detector.

CN122096472APending Publication Date: 2026-05-29CHINA TOBACCO ANHUI IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA TOBACCO ANHUI IND CO LTD
Filing Date
2026-04-15
Publication Date
2026-05-29

Smart Images

  • Figure CN122096472A_ABST
    Figure CN122096472A_ABST
Patent Text Reader

Abstract

The application discloses a kind of cigarette packing machine empty head shortage detector's function effectiveness verification method, comprising: setting test guide rail, test type and delivery station by human-computer interface, establishing shift register corresponding to equipment station in controller;Test object identification is written into corresponding station register, and realizes station migration under the driving of equipment beat;Detector output signal is collected in preset detection station, and effectiveness determination is carried out in combination with test type, while the position of test object and determination result are synchronously displayed on interface, and test result is statistically analyzed.The application can realize the automatic, visual, traceable verification of empty head, shortage detector function, improve verification accuracy and efficiency.The application aims to solve the problems of relying on manual judgment, station tracking difficulty, invisible and untraceable verification process in the existing detector verification process, so as to improve the equipment quality control ability and detection system reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hard-pack cigarette packaging equipment technology, and in particular to a method for verifying the detection function of missing cigarettes in a cigarette packaging machine. Background Technology

[0002] To meet the demands of lean manufacturing, companies are increasingly stringent in their control over cigarette quality, requiring each quality inspection step to function perfectly. Therefore, after each round of maintenance, weekly maintenance, and monthly maintenance, the detection functions must be tested and verified to ensure their integrity. In cigarette packaging equipment, the empty and missing cigarette detector is a key detection unit for ensuring product quality; its accuracy directly determines the rejection effect of defective cigarette packs. Currently, the verification of empty and missing cigarettes on high-speed machines still relies on manually creating defective cigarettes and placing them in the cigarette storage area, observing whether the defective cigarettes are identified and rejected after passing through the detector during equipment operation. If the detector fails to identify the defective cigarette, it cannot be rejected at the subsequent rejection point, easily leading to defective cigarette packs flowing into the next process. Even if the increase in the number of empty and missing cigarettes indicates the detection of defective cigarettes, it cannot be determined whether these detected defective cigarettes are manually created test defective cigarettes; they could be other naturally occurring defective cigarettes. In this case, test defective cigarettes still cannot be effectively rejected at the rejection point, further increasing the risk of defective cigarette packs flowing into the next process and posing a significant quality risk. In addition, finding the target defective cigarette packs takes a lot of time, and removing the cigarette packs from the inspection equipment also causes a lot of material consumption, which seriously affects normal production.

[0003] In existing technologies, the verification of the function of the empty and missing cigarette detectors mainly relies on manually placing test cigarette packs and observing the detection results or rejection status, which has the following shortcomings: (1) It is difficult to accurately track the test object during its migration between multiple workstations on the equipment; (2) There is no precise correspondence between the detection signal and the test object; (3) The verification process relies on manual judgment, which is prone to misjudgment or omission; (4) Lack of visualization and statistical analysis methods, and the verification process is not traceable.

[0004] Therefore, there is an urgent need for a detector function verification method that can automatically track test objects, automatically determine detection results, and visualize the verification process. Summary of the Invention

[0005] The purpose of this invention is to overcome the problems of manual labor, difficulty in workstation tracking, and lack of visualization in the verification process of empty and missing parts detectors in the prior art. It provides a method for verifying the functional effectiveness of empty and missing parts detectors in cigarette packaging machines, so as to realize the automation, accuracy, and traceability verification of detector functions, thereby improving the equipment quality control capabilities and the reliability of the detection system.

[0006] To achieve the above-mentioned objectives, the present invention adopts the following technical solution: The present invention relates to a method for verifying the functional effectiveness of a cigarette packaging machine's empty head / missing cigarette detector, characterized in that it is applied to the control system of cigarette packaging equipment. The control system includes: a controller, an empty head detector, a missing cigarette detector, a rejection mechanism, and a human-machine interface communicatively connected to the controller. The method includes: S1. Receive verification configuration parameters input from the human-machine interface. The verification configuration parameters include at least: test rail, test type, test deployment station, test start command, and reset command. The test type includes at least: empty head test and missing support test. S2. Establish a test status register in the controller corresponding to the station sequence of the cigarette packaging equipment, and establish two independent sets of test status registers according to the test rails to characterize the current position and test category of the test object on the corresponding rails. S3. In response to the test start command, write a test identifier into the test status register unit corresponding to the cigarette packaging equipment station sequence, wherein the test identifier is used to distinguish between empty head test objects and missing branch test objects; S4. Acquire the cycle trigger signal during the operation of the cigarette packaging equipment, and each time the cycle trigger signal is detected, drive the test status register corresponding to the station sequence of the cigarette packaging equipment to perform a shift operation according to the station migration direction, so that the test identifier migrates position by position along the station sequence under the action of the cycle trigger signal during the operation of the equipment. S5. When the test identifier moves to the preset detection window station, the detection result signal output by the empty head and missing support detectors is collected, and the detection result signal is associated with the test type, the current position on the guide rail and the preset judgment rule to obtain the verification judgment result; wherein, the preset judgment rule includes: empty head test judgment rule and missing support test judgment rule; S6. Output the workstation migration status represented by the test status register and the verification judgment result to the human-machine interface to drive the corresponding graphical object to perform synchronous display; S7. Record the time information, test deployment station, current location, test type, detection result signal, and verification judgment result corresponding to each verification and form verification data. Then, perform itemized statistics on the verification data according to the test guide, test type, and verification judgment result, including the cumulative classification of test count, normal count, and failure count, and generate corresponding verification statistics results.

[0007] The functional effectiveness verification method of the empty head and missing branch detector described in this invention is also characterized in that the two sets of test status registers established in step S2 correspond to guide rail one and guide rail two respectively, and each register unit in each set of test status registers corresponds one-to-one with a physical station on the corresponding guide rail in the cigarette packaging equipment. The shifting operation in step S4 includes: after receiving the cycle trigger signal, shifting the test identifier in the register unit corresponding to the previous station to the register unit corresponding to the next station, and resetting the register unit corresponding to the previous station.

[0008] Furthermore, the test identifier includes at least: a first identifier for representing a short-end test object and a second identifier for representing a short-end test object; the association processing of the detection result signal with the test type in step S5 includes: When the test identifier corresponding to the current position is the first identifier, the empty test judgment rule is invoked; When the test identifier corresponding to the current position is the second identifier, the missing support test judgment rule is invoked.

[0009] Furthermore, the short position test determination rules in step S5 include: If a detection result signal consistent with the current test type is detected at the preset detection window station, it is determined that the empty head and missing support detector function is effective; If no detection result signal consistent with the current test type is detected at the preset detection window station, it is determined that the empty head and missing support detector function is malfunctioning. The missing support test determination rules include: If the detection result signal appears before the preset detection window station or after the preset detection window station, it is determined that the missing support detector is malfunctioning.

[0010] Furthermore, step S5 also includes: When the test identifier moves to the preset rejection station, the feedback signal corresponding to the rejection action in the rejection mechanism is collected, and the consistency of the feedback signal with the previously collected test result signal is verified. When the feedback signal matches the detection result signal, a closed-loop verification success result is output. When the feedback signal is inconsistent with the detection result signal, the closed-loop verification failure result is output.

[0011] Furthermore, in step S6, driving the corresponding graphical object to perform synchronous display includes: Establish a variable mapping relationship between the graphic display unit on the human-machine interface corresponding to the workstation sequence and the test status register; When the test identifier exists in the register unit corresponding to a certain workstation, control the graphic display unit corresponding to that workstation to highlight it in the first display state; When the verification result is normal, the corresponding graphic display unit is controlled to display in the second display state; When the verification result is invalid or abnormal, the corresponding graphic display unit is controlled to display in the third display state.

[0012] Furthermore, after step S1, the method further includes a parameter locking step: after the test is started, the test guide, test type and test deployment station are locked until the current verification process ends or a reset command is triggered.

[0013] This invention establishes a shift register model corresponding to each workstation, drives the movement of the test object workstation through controller cycle time, collects detector output signals at the workstation in the detection window, performs logical judgments based on the test type, and achieves synchronous display of workstation and results through HMI, enabling test result statistics and recording. Compared with the prior art, this invention has the following advantages: 1. Achieve precise station tracking of test objects: By constructing a station mapping model through the controller shift register, the position of the test cigarette pack can be tracked during equipment operation, solving the problem of difficulty in manual positioning.

[0014] 2. Achieving a one-to-one correspondence between detection results and test objects: By matching the detection window with the register position, the precise association between the detection signal and the specific test object is achieved.

[0015] 3. Achieve automated verification of detector functions: The entire process of test deployment, tracking, detection, and judgment can be completed without manual intervention.

[0016] 4. Improve verification accuracy and consistency: Avoid human judgment errors and improve the reliability of verification results.

[0017] 5. Visualize the verification process: The location of the test object and the judgment result are displayed in real time through the human-machine interface, which improves operability.

[0018] 6. Enable data statistics and traceability analysis: It can count the number of tests, the number of normal tests, and the number of failures, providing data support for equipment optimization.

[0019] 7. Suitable for complex working conditions with dual guide rails: Supports independent verification of guide rail one and guide rail two, improving system adaptability. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the system structure in this invention; Figure 2 This is a diagram showing the configuration of the human-machine interface in this invention; Figure 3 This is a diagram showing the test markings for the guide rail in this invention. Figure 4 This is a diagram showing the normal function of the guide rail-empty head detector in this invention. Figure 5 This is a diagram illustrating the functional failure of the guide rail-empty head detector in this invention. Figure 6 This is a test rejection diagram for the guide rail in this invention. Figure 7 This is a flowchart of the control method in this invention. Detailed Implementation

[0021] The present invention will be further described below.

[0022] The following detailed description, in conjunction with a verification process of the functionality of a missing branch detector implemented on the TwinCAT2 PLC Control platform, further illustrates the present invention. The following embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the present invention. Without departing from the concept of the present invention, those skilled in the art can make equivalent substitutions or modifications to the specific structure, parameter settings, and program implementation methods, all of which should fall within the scope of protection of the present invention.

[0023] This embodiment applies to the control system of the FOCKE FX2 703 cigarette packaging equipment, such as... Figure 1 As shown, the control system includes: a PLC controller, a human-machine interface (HMI), and interfaces for acquiring detector feedback signals, rejection action feedback, and equipment cycle signals, all connected to the PLC controller. The PLC controller is preferably a TwinCAT2 control system running on the Beckhoff IPC control platform. The HMI communicates with the PLC controller to input verification parameters, display station migration status, and display verification results.

[0024] In this embodiment, the cigarette packaging equipment is equipped with at least two independent conveying guide rails, namely guide rail one and guide rail two. Multiple physical workstations corresponding to the running trajectory of the cigarette packs are arranged along the guide rails, such as... Figure 2 As shown, this embodiment uses stations 113 to 130 as an exemplary station sequence, where station 113 is the test placement station, station 114 is the empty head detection window station, station 115 is the missing support detection window station, and station 129 is the rejection or confirmation station. It should be noted that the above station numbers are only a preferred embodiment; in actual applications, they can be adjusted according to the specific machine model, detector installation location, and rejection mechanism location.

[0025] In this embodiment, the human-machine interface (HMI) includes a test configuration input area and a status display area. The test configuration input area includes at least: a test button for guide rail 1 (empty end), a test button for guide rail 2 (empty end), a test button for guide rail 1 (missing support), a test button for guide rail 2 (missing support), a start test button, and a reset button. It also includes a test placement station input box. The operator selects the test guide rail, test type, and test placement station through the HMI and issues a start command by pressing the start test button.

[0026] Correspondingly, the PLC controller is configured with parameters to be started, which are used to receive verification configuration parameters input from the human-machine interface. The parameters to be started include at least the parameters of the guide rail to be tested, the parameters of the test type, and the parameters of the test placement station. In this embodiment, the parameters of the guide rail to be tested can be either guide rail one or guide rail two, the parameters of the test type can be either empty head test or missing support test, and the preferred test placement station is station 113.

[0027] To prevent operators from accidentally modifying parameters and causing inaccurate verification results after the test process has started, the PLC controller locks the current guide rail parameters, test type parameters, and test placement station parameters upon receiving a valid start command. This locking process remains in effect until the current verification process ends or a reset command is received. That is, during the parameter locking period, subsequent human-machine interface inputs will not change the verification parameters used in this process, thus ensuring the integrity and consistency of each verification process.

[0028] To correspond to the actual station migration process of the cigarette packaging equipment, this embodiment establishes two independent test status register groups in the PLC controller for guide rail one and guide rail two, respectively. Each test status register group consists of multiple register units, and each register unit corresponds one-to-one with a physical station on the corresponding guide rail. For example, for the station sequence from 113 to 130, guide rail one establishes a guide rail one test status register group, and guide rail two establishes a guide rail two test status register group, with each register unit corresponding to stations 113, 114, 115...130, respectively.

[0029] Each register unit can store a test status structure, which includes at least the following information: whether a test object is valid, test type identifier, verification judgment result, closed-loop judgment result, test deployment station, current position, initial judgment station, start time, judgment time, closed-loop verification time, whether it has passed the preset detection window, whether it has been correctly detected in the preset detection window, whether an early signal has appeared, whether a late signal has appeared, whether the closed-loop verification has been completed, and whether the statistical entry has been completed.

[0030] The test type identifier is preferably set as follows: the first identifier indicates a no-start test object, and the second identifier indicates a missing-support test object. In this way, during the bit-by-bit migration of the register, the PLC controller can identify in real time whether the current test object is a no-start test or a missing-support test by using the test type identifier stored in the register unit, and call the corresponding judgment rule accordingly.

[0031] In this embodiment, when the PLC controller receives a start test command from the human-machine interface, it first determines whether the current parameters are locked and whether the corresponding guide rail register group allows writing. When the start conditions are met, the PLC controller writes the test type identifier into the register unit corresponding to the test placement station. For example, when the operator selects "Guide Rail - Empty Head Test" on the human-machine interface, enters the test placement station as 113, and presses the start test button, the PLC controller writes the first identifier representing the empty head test into the register unit corresponding to station 113 in the guide rail register group, sets the validity flag of that register unit to valid, and records initial information such as start time and placement station.

[0032] During operation, the cigarette packaging equipment continuously generates a cycle trigger signal that is consistent with the equipment's rhythm. In this embodiment, the PLC controller collects this cycle trigger signal and, after detecting a valid rising edge of the cycle trigger signal, performs a shift operation on the test status register group according to the station migration direction. Preferably, the shift direction is from the lower-numbered station to the higher-numbered station, that is, the test status in the register unit corresponding to the previous station is transferred to the register unit corresponding to the next station, and the original register unit is cleared and reset.

[0033] For example, when there is an empty test object in the register unit of guide rail 113, after the next cycle trigger signal arrives, the PLC controller moves the test status from register unit 113 to register unit 114, and then to register unit 115 after the next cycle, and so on, until it is moved to station 129 for rejection or closed-loop verification. Through this register shifting method, the PLC controller realizes the digital mapping and synchronous tracking of the test object in the equipment station sequence.

[0034] In this embodiment, different test types correspond to different preset detection window positions. For empty head test objects, the preset detection window position is preferably set to position 114; for missing support test objects, the preset detection window position is preferably set to position 115. When the PLC controller detects that the test identifier stored in the test status register has migrated to the corresponding preset detection window position, it acquires the detection result signal output by the corresponding empty head / missing support detector within that cycle period and performs verification and judgment according to the preset judgment rules.

[0035] Specifically, when the test type identifier stored in the current position register unit is the first identifier, the PLC controller calls the empty head test judgment rule; when the test type identifier stored in the current position register unit is the second identifier, the PLC controller calls the missing head test judgment rule. If a detection result signal consistent with the current test type is detected at the corresponding preset detection window station, the empty head / missing head detector function is determined to be effective, and the verification judgment result of this test state is recorded as normal; if no detection result signal consistent with the current test type is detected at the corresponding preset detection window station, the empty head / missing head detector function is determined to be ineffective, and the verification judgment result is recorded as ineffective.

[0036] In addition to the above-mentioned normal and failure determinations, this embodiment further monitors abnormal situations. Abnormal situations include, but are not limited to: the detector outputting a detection result signal consistent with the current test type before the test object reaches the preset detection window station; or the detector outputting a detection result signal consistent with the current test type only after the test object has passed the preset detection window station. In the former case, the PLC controller marks the test object as having an abnormal early signal; in the latter case, the PLC controller marks it as having an abnormal delayed signal. Whether it is an abnormal early signal or a delayed signal, the verification determination result of the test object is recorded as abnormal.

[0037] Furthermore, during the judgment process, the PLC controller also records the workstation location and corresponding judgment time when the first judgment result is formed, so as to facilitate subsequent historical traceability and verification analysis.

[0038] To improve the reliability and integrity of the verification method, this embodiment also introduces a closed-loop consistency verification mechanism in the verification process. When the test object continues to migrate to station 129, i.e., the rejection station or the confirmation station, with the cycle signal, the PLC controller collects the feedback signal corresponding to the rejection action or the confirmation action, and performs consistency verification between the feedback signal and the detection result signal collected in the previous detection stage.

[0039] In this embodiment, it is preferable to take "whether a detection result signal consistent with the current test type has been received" as the detection stage result and "whether feedback on the elimination action corresponding to station 129 has been generated" as the execution stage result. If the two are consistent, it is considered that the detection judgment and the actual execution action are consistent in the closed loop, and the closed loop verification result is output as successful; if the two are inconsistent, it is considered that the detection judgment and the actual execution action are inconsistent, and the closed loop verification result is output as failed.

[0040] For example, for a given short-selling test object, if a short-selling identification signal is received from the short-selling detector during the detection phase, and a rejection action feedback signal is collected at station 129, it indicates that the detection and execution are consistent, and the loop closure is considered successful. Conversely, if there is an identification signal during the detection phase but no rejection feedback at station 129, or if there is no identification signal during the detection phase but rejection feedback occurs at station 129, the loop closure is considered to have failed. Through this loop consistency verification, this invention can not only verify the detector's identification function itself, but also verify whether the logical chain between the identification result and subsequent execution actions is complete.

[0041] In this embodiment, the human-machine interface is provided with a graphical display unit corresponding to the workstation sequence. Each workstation corresponds to a set of graphical objects, preferably including a large rectangle and a small rectangle, wherein the large rectangle is used to represent the workstation where the current test object is located, and the small rectangle is used to represent the test type and test result.

[0042] The PLC controller establishes a variable mapping relationship between the status information of the register groups of guide rail one and guide rail two and the human-machine interface graphical display unit. Specifically, when a valid test object exists in the register unit corresponding to a certain workstation, the large rectangle corresponding to that workstation is controlled to enter the first display state, preferably highlighted in yellow, to intuitively indicate the current position of the test object; when the test type identifier stored in the register unit is the first identifier, the number "1" is displayed in the corresponding small rectangle to indicate a no-head test, such as... Figure 3 As shown; when the test type identifier is the second identifier, the number "2" is displayed in the corresponding small rectangle to indicate a missing branch test.

[0043] When the verification result is normal, the corresponding small rectangle is controlled to enter the second display state, preferably green, such as... Figure 4 As shown; when the verification result is failure or abnormal, the corresponding small rectangle is controlled to enter the third display state, preferably red, such as... Figure 5 As shown in the diagram. In this way, operators can intuitively observe the migration process of the test object from the placement station, the detection window station, to the rejection station by observing the changes in the color and number of the station graphics without having to look at complex data, and can also understand the functional status of the detector in real time.

[0044] In this embodiment, the PLC controller also performs categorized and cumulative statistics on the verification results. The statistics include at least the number of tests, the number of normal tests, and the number of failures. During the statistics process, the PLC controller establishes independent statistical objects based on the test rail and test type, such as statistics for missing supports on rail one, missing supports on rail one, missing supports on rail two, and missing supports on rail two, thereby achieving detailed management by rail and by test type.

[0045] Preferably, the statistics are not entered into the final record immediately when the test object enters the inspection window station, but rather after the test object completes the entire verification process, especially after completing the closed-loop verification at station 129, the final judgment result is then written into the statistical results, such as... Figure 6 As shown. This avoids statistical conflicts that occur when a result is initially classified as faulty and then corrected to an anomaly due to a lag signal, thereby improving the accuracy of statistical results.

[0046] Furthermore, to meet the needs of traceability and query, this embodiment also sets up a historical record storage structure. Each time a verification process is completed, the PLC controller generates a corresponding historical record and writes it sequentially to the historical record storage area. Each historical record includes at least: record number, guide rail number, test type, test deployment station, initial judgment station, final station, start time, judgment time, closed-loop verification time, whether a detection result signal appeared, rejection feedback signal status, verification judgment result, and closed-loop verification result. The historical record storage area can be implemented using a circular queue to continuously retain the most recent verification data even with limited storage space, enabling long-term traceability and statistical analysis.

[0047] In this embodiment, the human-machine interface is equipped with a reset button. When the operator triggers the reset command, the PLC controller clears the register state on the current guide rail, restores the test process to the initial state, and unlocks the parameters. In addition, when the current verification process for all guide rails ends naturally, i.e., when there are no valid test objects in any register unit, the PLC controller can also automatically unlock the parameters to allow for the input of the next new verification configuration.

[0048] With the above settings, this embodiment ensures the stability of parameters during the execution of a single verification process, while also taking into account the ease of operation when switching between multiple subsequent verifications.

[0049] like Figure 7 As shown, the following uses a guide rail empty-end test as an example to illustrate the operation process of this embodiment.

[0050] The operator presses the "Guide Rail - Empty Head Test" button on the human-machine interface and sets the test placement station to 113, then presses the "Start Test" button. After receiving the start command, the PLC controller writes the first identifier representing the empty head test into the register cell corresponding to station 113 in the guide rail register group, and simultaneously locks the guide rail parameters, test type parameters, and test placement station parameters.

[0051] When the equipment cycle trigger signal arrives for the first time, the PLC controller drives the test state to transition from station 113 to station 114. Since station 114 is the empty-head detection window station, the PLC controller acquires the detection result signal output by the empty-head detector during this cycle. If an empty-head identification signal is acquired at station 114, the test object is determined to be functionally valid, and the determination time and station are recorded. If no empty-head identification signal is acquired at station 114, the function is determined to be faulty. If an empty-head identification signal is acquired before station 114, or after station 114 with a delay, the function is determined to be abnormal.

[0052] Subsequently, the test object continues to migrate position by position under the action of the cycle trigger signal until it reaches station 129. Upon reaching station 129, the PLC controller collects the rejection action feedback signal and performs a consistency check with whether a blank head identification signal has appeared before, thereby outputting a result indicating successful or unsuccessful closed-loop verification. Afterwards, the PLC controller writes the guide rail number, test type, placement station, judgment station, start time, judgment time, closed-loop verification time, detection result status, rejection feedback status, verification judgment result, and closed-loop result of this verification to the historical record area, and cumulatively updates the corresponding statistical items. Once the test object is removed from the process, the system automatically unlocks the parameters, awaiting the next test configuration.

[0053] The implementation process of the guide rail two empty head test, guide rail one missing support test and guide rail two missing support test is basically the same as the guide rail one empty head test. The only difference is the correspondence between the test guide rail and the preset detection window station. For the missing support test object, the preset detection window station is preferably station 115.

[0054] Using the method described in this embodiment, the station migration process of the test object in the cigarette packaging equipment can be accurately mapped by shifting registers one by one within the PLC controller, making the verification logic synchronized with the actual cycle time of the equipment; different judgment rules can be automatically invoked at the corresponding detection window station according to different test types, and abnormal signals such as early or late detection can be identified, improving the accuracy of the verification results; the detection results and subsequent rejection action feedback can be checked for closed-loop consistency, improving the integrity of the verification; and the station migration status and judgment results can be synchronously and visually displayed through the human-machine interface, and the verification data can be classified and statistically analyzed and stored historically according to guide rail and type, facilitating traceability, fault analysis, and functional assessment.

[0055] In this embodiment, an electronic device includes a memory and a processor. The memory stores a program that supports the processor in executing the methods described above, and the processor is configured to execute the program stored in the memory. In this embodiment, a computer-readable storage medium stores a computer program that is executed by a processor to perform the steps of the methods described above.

Claims

1. A method for verifying the functional effectiveness of a cigarette packaging machine's empty / missing item detector, characterized in that, This is a control system applied in cigarette packaging equipment. The control system includes: a controller, an empty head detector, a missing cigarette detector, a rejection mechanism, and a human-machine interface communicatively connected to the controller. The method includes: S1. Receive verification configuration parameters input from the human-machine interface. The verification configuration parameters include at least: test rail, test type, test deployment station, test start command, and reset command. The test type includes at least: empty head test and missing support test. S2. Establish a test status register in the controller corresponding to the station sequence of the cigarette packaging equipment, and establish two independent sets of test status registers according to the test rails to characterize the current position and test category of the test object on the corresponding rails. S3. In response to the test start command, write a test identifier into the test status register unit corresponding to the cigarette packaging equipment station sequence, wherein the test identifier is used to distinguish between empty head test objects and missing branch test objects; S4. Acquire the cycle trigger signal during the operation of the cigarette packaging equipment, and each time the cycle trigger signal is detected, drive the test status register corresponding to the station sequence of the cigarette packaging equipment to perform a shift operation according to the station migration direction, so that the test identifier migrates position by position along the station sequence under the action of the cycle trigger signal during the operation of the equipment. S5. When the test identifier moves to the preset detection window station, the detection result signal output by the empty head and missing support detectors is collected, and the detection result signal is associated with the test type, the current position on the guide rail and the preset judgment rule to obtain the verification judgment result; wherein, the preset judgment rule includes: empty head test judgment rule and missing support test judgment rule; S6. Output the workstation migration status represented by the test status register and the verification judgment result to the human-machine interface to drive the corresponding graphical object to perform synchronous display; S7. Record the time information, test deployment station, current location, test type, detection result signal, and verification judgment result corresponding to each verification and form verification data. Then, perform itemized statistics on the verification data according to the test guide, test type, and verification judgment result, including the cumulative classification of test count, normal count, and failure count, and generate corresponding verification statistics results.

2. The method for verifying the functional effectiveness of the missing branch detector according to claim 1, characterized in that, The two sets of test status registers established in step S2 correspond to guide rail one and guide rail two respectively, and each register unit in each set of test status registers corresponds one-to-one with a physical station on the corresponding guide rail in the cigarette packaging equipment. The shifting operation in step S4 includes: after receiving the cycle trigger signal, shifting the test identifier in the register unit corresponding to the previous station to the register unit corresponding to the next station, and resetting the register unit corresponding to the previous station.

3. The method for verifying the functional effectiveness of the missing branch detector according to claim 1, characterized in that, The test identifier includes at least: a first identifier for representing a short-end test object and a second identifier for representing a short-end test object; step S5 involves associating the detection result signal with the test type, including: When the test identifier corresponding to the current position is the first identifier, the empty test judgment rule is invoked; When the test identifier corresponding to the current position is the second identifier, the missing support test judgment rule is invoked.

4. The method for verifying the functional effectiveness of the missing branch detector according to claim 1, characterized in that, The short position test determination rules in step S5 include: If a detection result signal consistent with the current test type is detected at the preset detection window station, it is determined that the empty head and missing support detector function is effective; If no detection result signal consistent with the current test type is detected at the preset detection window station, it is determined that the empty head and missing support detector function is malfunctioning. The missing support test determination rules include: If the detection result signal appears before the preset detection window station or after the preset detection window station, it is determined that the missing support detector is malfunctioning.

5. The method for verifying the functional effectiveness of the missing branch detector according to claim 1, characterized in that, Step S5 further includes: When the test identifier moves to the preset rejection station, the feedback signal corresponding to the rejection action in the rejection mechanism is collected, and the consistency of the feedback signal with the previously collected test result signal is verified. When the feedback signal matches the detection result signal, a closed-loop verification success result is output. When the feedback signal is inconsistent with the detection result signal, the closed-loop verification failure result is output.

6. The method for verifying the functional effectiveness of the missing branch detector according to claim 1, characterized in that, Step S6, which involves driving the corresponding graphical object to perform synchronized display, includes: Establish a variable mapping relationship between the graphic display unit on the human-machine interface corresponding to the workstation sequence and the test status register; When the test identifier exists in the register unit corresponding to a certain workstation, control the graphic display unit corresponding to that workstation to highlight it in the first display state; When the verification result is normal, the corresponding graphic display unit is controlled to display in the second display state; When the verification result is invalid or abnormal, the corresponding graphic display unit is controlled to display in the third display state.

7. The method for verifying the functional effectiveness of the missing branch detector according to claim 1, characterized in that, The step S1 is followed by a parameter locking step: after the test starts, the test guide, test type and test deployment station are locked until the current verification process ends or a reset command is triggered.

8. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store a program that supports the processor in executing the method of any one of claims 1-7, the processor being configured to execute the program stored in the memory.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program is executed by the processor to perform the steps of the method according to any one of claims 1-7.