Semi-solid seasoning package bag mistake-proofing code spraying device
By using a PLC control module and image acquisition and recognition technology, combined with a bag positioning detection and rejection mechanism, the problem of inaccurate labeling information in flexible soft bag semi-solid seasoning packaging has been solved, achieving high-precision inkjet marking.
Patent Information
- Application Number
- CN202611514105.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-28
- Publication Date
- 2026-11-20
AI Technical Summary
Existing inkjet printing systems suffer from poor accuracy and missed printing issues in semi-solid seasoning packaging in flexible soft bags due to factors such as uneven material distribution, bag wrinkles, and conveyor vibration.
The system employs a PLC control module, a bag arrival detection module, a coding unit, an image acquisition and recognition module, and a rejection mechanism. Through image acquisition and recognition and coding status readback, it ensures the arrival of packaging bags and the quality of coding, and rejects unqualified products.
It improves the accuracy of the spray-painted markings on the outside of semi-solid seasoning packaging bags, reduces missed spraying, and ensures the integrity and clarity of the marking information.
Smart Images

Figure CN123129595A_ABST
Abstract
Description
Technical Field
[0001] This solution relates to the field of packaging equipment, specifically to a misprint prevention coding device for semi-solid seasoning packaging bags. Background Technology
[0002] In the packaging of semi-solid seasoning products such as hot pot base and compound seasoning sauce, by using independent outer bags and printing identification information such as production date, batch number, shift number or traceability code on the surface of the outer bag, the existing inkjet printing system usually uses a single photoelectric sensor followed by a fiber optic sensor to detect the position of the bag, and the PLC or inkjet printer controller outputs printing instructions.
[0003] However, since the outer bag is usually a flexible soft bag and the internal semi-solid seasoning product has a certain thickness and irregular shape, it is easily affected by factors such as uneven material distribution, bag surface wrinkles, conveyor belt vibration, and production line start-up and shutdown impact during the transportation process. This can cause the bag position and bag surface posture to be unstable, resulting in spray leakage and affecting the accuracy of the labeling information. Summary of the Invention
[0004] The present invention aims to provide a misprint prevention coding device for semi-solid seasoning packaging bags to reduce the occurrence of missed coding, thereby improving the accuracy of the markings sprayed on the outside of semi-solid seasoning packaging bags.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: a semi-solid seasoning packaging bag error-proof inkjet printing device, including a PLC control module and a bag arrival detection module and an inkjet printing unit arranged along the conveying mechanism. The bag arrival detection module is located upstream of the inkjet printing unit and is used to detect whether the packaging bag has reached the preset detection position and can output a bag arrival signal. The inkjet printing unit includes an inkjet printing status readback module. The input terminal of the PLC control module is connected to the inkjet printing status readback module and is also connected to an image acquisition and recognition module. The image acquisition and recognition module is located downstream of the inkjet printing unit and together with the PLC control module and the inkjet printing status readback module, forms an error-proof inkjet printing mechanism.
[0006] Furthermore, it also includes a rejection mechanism, which is located downstream of the image acquisition and recognition module and is linked with the inkjet coding error prevention mechanism via the PLC control module to reject packaging bags that are determined to be unqualified from the qualified product conveying path.
[0007] Furthermore, the inkjet printing status readback module includes a status signal acquisition interface, a communication interface, a signal isolation / filtering / level conversion unit, a status mapping register, and a timeout determination unit.
[0008] Furthermore, the image acquisition and recognition module includes a light source module and an image acquisition module, which are used to acquire images of the packaging bags after inkjet printing, and to perform OCR recognition and image quality judgment on the inkjet printing area.
[0009] Furthermore, the bag positioning detection module also includes a rising edge detector, which is connected to the PLC control module and can send rising edge signals to the PLC control module. Attached Figure Description
[0010] Figure 1 This is a connection diagram according to an embodiment of the present invention; Figure 2 This is a block diagram illustrating the functional implementation of the inkjet printing status readback module in this embodiment of the invention. Figure 3 This is a block diagram showing the connection relationship between the PLC control module and other modules, as well as the closed-loop control logic, in an embodiment of the present invention.
[0011] The reference numerals in the accompanying drawings include: conveying mechanism 001, PLC control module 100, bag arrival detection module 201, encoder position detection module 202, inkjet status readback module 203, image acquisition and recognition module 204, date compliance verification module 205, inkjet unit 301, and rejection mechanism 302. Detailed Implementation
[0012] Example The basic implementation examples are as follows: Figure 1-3 As shown, Figure 1-3 The semi-solid seasoning packaging bag anti-misprint coding device shown is as follows: Figure 1As shown, the system includes a bag positioning detection module 201, an encoder position detection module 202, a coding unit 301, a coding status readback module 203, an image acquisition and recognition module 204, a date compliance verification module 205, a rejection mechanism 302, and a PKCPLC control module 100, all arranged along the conveying mechanism 001. The bag positioning detection module 201 is located upstream of the coding unit 301 and is used to detect when the leading edge of the packaging bag reaches a preset detection position and output a bag positioning signal. It can employ a fiber optic sensor, photoelectric sensor, proximity sensor, or other bag detection element. The encoder position detection module is connected to the drive shaft, driven shaft, or synchronously moving parts of the conveyor belt of the conveying mechanism 001 to collect position pulse signals during the conveying process. In this embodiment, an incremental encoder is used for the encoder position detection module. The coding unit 301 is used to print preset marking information on the surface of the packaging bag, wherein the preset marking information is one of the following: production date, batch number, shift number, or traceability code. Multiple types of inkjet printers can be selected, including continuous inkjet printers, thermal inkjet printers, piezoelectric inkjet printers, laser inkjet printers, or other inkjet printers capable of marking bag surfaces. In this embodiment, the inkjet printing unit 301 uses a piezoelectric inkjet printer. The inkjet printing status readback module 203 is used to collect at least one of the following signals from the inkjet printing unit 301: running ready signal, ink path status signal, printing completion feedback signal, alarm signal, or communication heartbeat signal, and converts the above signals into discrete quantities or communication data that can be recognized by the PLC control module 100. The image acquisition and recognition module 204 is located downstream of the inkjet printing unit 301 and is used to acquire images of the packaged bags after inkjet printing, and to perform OCR recognition and image quality judgment on the inkjet printing area. The date compliance verification module 205 is used to obtain a reliable time and compare the date to be printed or the date already printed with a preset date rule. The rejection mechanism 302 is located downstream of the image acquisition and recognition module 204 and is used to reject packaging bags that are determined to be unqualified from the qualified product conveying path.
[0013] Specifically, such as Figure 2As shown, the inkjet status readback module 203 connects at least one of the following signals to the input terminal of the PLC control module 100: the ready-to-run signal, the ink path status signal, the printing completion feedback signal, or the alarm signal of the inkjet unit 301. The PLC control module 100 reads the status of the inkjet unit 301 before, during, or after outputting the printing trigger signal. When the inkjet unit 301 is in a state of not ready, ink path abnormality, printing failure, ink shortage, printhead malfunction, or alarm, the PLC control module 100 can perform at least one of the following actions: prohibit printing, stop conveying, output an audible and visual alarm, record an abnormality log, mark the corresponding packaging bag as a defective product, or control the rejection mechanism 302 to reject the packaging bag downstream. In this embodiment, the inkjet status readback module 203 can be implemented using a combination of hard-wired input and communication input. Hardwired inputs can include switch signals such as "Ready to Run," "Fault Alarm," "Printing Complete," and "Ink Shortage / Ink Path Abnormality" from the inkjet printer. Communication inputs can include status words, alarm codes, printing task numbers, and communication heartbeat information transmitted via RS485, Ethernet, Modbus, TCP / IP, or the inkjet printer's open communication protocol. To ensure signal stability, the inkjet status readback module 203 preferably incorporates opto-isolation, relay isolation, surge protection, filtering and debouncing, and level conversion circuits to convert PNP, NPN, relay contact, or communication data output from different inkjet printers into standard input signals recognizable by the PLC control module 100. The PLC control module 100 internally sets up a status mapping register, mapping the inkjet printer's ready state, ink path state, trigger response state, printing complete state, and alarm state to callable logic bits or status words. Before outputting the printing trigger signal, the PLC control module 100 reads the ready state and ink path state; if the state meets preset conditions, it allows entry into the trigger process. After outputting the printing trigger signal, it starts a feedback waiting timer and reads the printing complete feedback within a preset time. If the feedback times out, the inkjet printer alarms, communication is interrupted, or the status word is abnormal, the PLC control module 100 will associate and record the bag detection sequence number, encoder pulse range, inkjet trigger time, and abnormality type corresponding to the current bag, and execute at least one of the following actions: prohibit printing, stop alarm, remove rejection mark, or batch isolation.
[0014] The bag positioning detection module 201 can employ a fiber optic sensor, photoelectric sensor, proximity sensor, or other bag detection elements. The inkjet printing status readback module 203 includes a status signal acquisition interface, a communication interface, a signal isolation / filtering / level conversion unit, a status mapping register, and a timeout determination unit. The PLC control module 100 associates this status data with the bag detection record, encoder position window, and inkjet printing trigger record for inkjet printing permission determination, abnormal locking, audible and visual alarms, log recording, and downstream rejection marking. The rejection mechanism 302 can be selected from one of the following structures: cylinder push plate, air blowing rejection, lever rejection, or flip-plate rejection.
[0015] like Figure 3 As shown, the PLC control module 100 includes an input terminal and an output terminal. The input terminal is electrically connected to the bag positioning detection module 201, the encoder position detection module 202, the inkjet status readback module 203, the image acquisition and recognition module 204, and the date compliance verification module 205. The output terminal is electrically connected to the inkjet unit 301, the conveying mechanism 001, and the rejection mechanism 302. The PLC control module 100 establishes an inkjet position window based on the bag positioning detection signal and the encoder position pulse signal. The PLC control module 100 only outputs an inkjet trigger signal to the inkjet unit 301 when the bag positioning detection module 201 detects the packaging bag and the encoder position pulse is within the preset inkjet position window.
[0016] During operation, firstly, the bag positioning detection module 201 detects that the leading edge of the packaging bag has reached the preset detection position and outputs a bag positioning signal. Subsequently, triggered by the rising edge of the bag positioning signal, the encoder position detection module 202 is simultaneously started or called to collect the pulse signal corresponding to the displacement of the conveyor mechanism 001, and to determine whether the current encoder pulse count falls within the preset printing position window. Only when both the bag positioning signal and the encoder pulse count fall within the preset printing position window, the PLC control module 100 reads the ready status and ink path status of the inkjet unit 301 output by the inkjet status readback module 203. If both meet the preset printing conditions, a printing trigger signal is output to the inkjet unit 301. After the printing trigger signal is output, the PLC control module 100 starts a feedback waiting timer and reads the printing completion feedback signal returned by the inkjet status readback module 203 within a preset time. If no valid printing completion feedback is obtained within the preset time, or if an alarm signal is received from the inkjet unit 301, If a communication interruption signal or status word is abnormal, the current packaging bag will be marked as abnormal. The image acquisition and recognition module 204 acquires images of the packaged bags that have been printed downstream of the inkjet unit 301. The OCR recognition module performs character recognition on the inkjet area and performs multi-dimensional quality judgment based on character content, clarity, position offset, character overlap, repeated fields, inkjet ghosting, missed inkjet, and blur features. The date compliance verification module 205 obtains the current production date provided by a reliable time source and compares the date to be printed or the printed date recognized by OCR with the preset date rules. If it does not conform to the preset date rules, printing will be prohibited and the corresponding packaging bag will be marked as unqualified. The PLC control module 100 sets up a counting interlock unit to count at least three types of data, including bag detection count, inkjet trigger count, inkjet completion feedback count, visual recognition qualified count, and rejection count. When the deviation between any two types of counts exceeds the preset threshold, the system will stop, alarm, provide manual review prompts, or isolate the batch.
[0017] For example, when the leading edge of the packaging bag passes the bag positioning detection module 201, the PLC control module 100 records the rising edge signal and simultaneously starts or calls the encoder pulse count. When the packaging bag continues to run with the conveyor belt to the printing area, if the encoder pulse count falls within the preset printing position window, such as the range of the 100th to the 120th pulse, the PLC control module 100 outputs a printing trigger signal. If the bag detection signal changes multiple times due to shaking, wrinkles, or conveyor vibration, but the encoder position pulse is not within the preset printing position window, the PLC control module 100 does not respond to the secondary trigger, so that the printing trigger changes from a single sensor trigger to a dual-enabled trigger of "bag positioning signal and encoder position window", thereby effectively reducing the risk of repeated printing caused by shaking of the flexible packaging bag or shaking of the detection signal.
[0018] The above descriptions are merely embodiments of the present invention, and common knowledge such as specific technical solutions and / or characteristics are not described in detail here. It should be noted that the technical means for solving problems in the above embodiments of the present invention can be used in combination to solve multiple technical problems simultaneously. For those skilled in the art, several modifications and improvements can be made without departing from the technical solutions of the present invention, and these should also be considered within the scope of protection of the present invention. These modifications and improvements will not affect the effectiveness of the implementation of the present invention or the practicality of the patent. The scope of protection claimed in this application should be determined by the content of its claims, and the specific embodiments described in the specification can be used to interpret the content of the claims.
Claims
1. A device for preventing misprinting on semi-solid seasoning packaging bags, characterized in that: The system includes a PLC control module, a bag arrival detection module and a coding unit arranged along the conveying mechanism. The bag arrival detection module is located upstream of the coding unit and is used to detect whether the packaging bag has reached the preset detection position and can output a bag arrival signal. The coding unit includes a coding status readback module. The input terminal of the PLC control module is connected to the coding status readback module and is also connected to an image acquisition and recognition module. The image acquisition and recognition module is located downstream of the coding unit and together with the PLC control module and the coding status readback module, they form a coding error prevention mechanism.
2. The anti-misprint coding device for semi-solid seasoning packaging bags according to claim 1, characterized in that: It also includes a rejection mechanism, which is located downstream of the image acquisition and recognition module and is linked with the inkjet coding error prevention mechanism via the PLC control module to reject packaging bags that are determined to be unqualified from the qualified product conveying path.
3. The anti-misprint coding device for semi-solid seasoning packaging bags according to claim 2, characterized in that: The inkjet printing status readback module includes a status signal acquisition interface, a communication interface, a signal isolation / filtering / level conversion unit, a status mapping register, and a timeout determination unit.
4. The anti-misprint coding device for semi-solid seasoning packaging bags according to claim 3, characterized in that: The image acquisition and recognition module includes a light source module and an image acquisition module, which are used to acquire images of the packaging bags after inkjet printing, and to perform OCR recognition and image quality judgment on the inkjet printing area.
5. The anti-misprint coding device for semi-solid seasoning packaging bags according to claim 4, characterized in that: The bag positioning detection module also includes a rising edge detector, which is connected to the PLC control module and can send rising edge signals to the PLC control module.
