CN115991055B - Self-adaptive high-speed coding method and system - Google Patents
Self-adaptive high-speed coding method and system Download PDFInfo
- Publication number
- CN115991055B CN115991055B CN202310060678.8A CN202310060678A CN115991055B CN 115991055 B CN115991055 B CN 115991055B CN 202310060678 A CN202310060678 A CN 202310060678A CN 115991055 B CN115991055 B CN 115991055B
- Authority
- CN
- China
- Prior art keywords
- code
- printing
- coding
- code printing
- printer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000007639 printing Methods 0.000 claims abstract description 208
- 235000019504 cigarettes Nutrition 0.000 claims abstract description 83
- 238000004519 manufacturing process Methods 0.000 claims abstract description 54
- 238000001514 detection method Methods 0.000 claims abstract description 20
- 238000012545 processing Methods 0.000 claims abstract description 15
- 230000003044 adaptive effect Effects 0.000 claims description 15
- 230000008569 process Effects 0.000 abstract description 8
- 241000208125 Nicotiana Species 0.000 description 7
- 235000002637 Nicotiana tabacum Nutrition 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000004064 recycling Methods 0.000 description 2
- 238000002407 reforming Methods 0.000 description 2
- 238000007789 sealing Methods 0.000 description 2
- 108091026890 Coding region Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 210000000078 claw Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007648 laser printing Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention relates to a self-adaptive high-speed coding method and a system, comprising the following steps: s10: generating coding rules according to information input by a user; s20: the code printing terminal reads a preset number of trace codes from a trace code cache queue, generates a plurality of code printing information according to the code printing rule, and stores the code printing information into a local print cache queue of the printer; s30: when detecting that the cigarette case moves on the production line, generating a coding trigger signal corresponding to the moving speed of the cigarette case; s40: the printer takes out the code printing information in the local printing cache queue according to the code printing trigger signal, and sequentially carries out code printing according to the configured trigger mode; s50: the steps S20-S40 are repeated until the print job ends. The invention realizes intelligent automatic online high-speed code printing, recovers and manages the used traceability codes, can continue to use unused traceability codes, can realize online detection, can process unrecognizable and print quality analysis, and performs automatic adjustment processing.
Description
Technical Field
The invention relates to the technical field of tobacco equipment, in particular to a self-adaptive high-speed coding method and system.
Background
The production process of the cigarette factory is that firstly, 30 cigarettes are packed into 1 small package on a production line, then the small packages are packed into a secondary package (strip package) of one strip according to 10 packages, and then 50 strip packages are packed in one carton. The production process generally comprises two steps. 1. And (3) whole package: the cigarette packet from the small packet rolling and packing procedure enters a whole strip packet area under the transmission drive of a conveyor belt, small packets are integrated into a group of 10 packets through a mechanical device in the whole strip packet area, then the 10 packets are pushed into strip cigarette packet skins, the 10 packet-wrapped cigarette packet skins are automatically packed through the mechanical device, and then the wrapped cigarette packet is subjected to film-dressing and then enters a boxing area through the conveyor belt. 2. Boxing: there are two modes of operation, manual boxing and automatic boxing. And (3) manually boxing, namely putting the paper boxes into the paper boxes after quality detection according to a group of 5 cigarettes by workers, putting 50 cigarettes in total into the paper boxes after 10 times, and then sealing the boxes and putting the boxes into a tray. And (3) automatically boxing, pushing the cartons into the cartons after stacking according to a group of 5X 5 cigarettes through a boxing machine, completing loading 50 cigarettes into the cartons for 2 times, automatically sealing the cartons through a machine, and then conveying the cartons into a tray for stacking through a conveying belt. At present, bar codes on bags, bars and smoke boxes correspond to unique identity information of packages, but the box codes are opposite to the bar codes, and the bar codes are not related to the bag codes. Because of the requirements on product production and tracing in the market sales at home and abroad at present, the identity information of cigarettes and small cigarettes in a cigarette box is also stored in an information system so as to be convenient for product tracing, so that the problems of tracing in the production and circulation processes of cigarettes and high-speed coding in the production process are very necessary.
Disclosure of Invention
The invention aims to solve the technical problem of providing a self-adaptive high-speed coding method and a self-adaptive high-speed coding system aiming at the defects.
The invention is realized by the following technical scheme:
an adaptive high-speed coding method, comprising the following steps:
step S10: generating coding rules according to information input by a user; switching a printing file of a printer according to the coding rule, wherein the printing file comprises printing content, a traceability code printing position and size, printing power and a triggering mode;
step S20: the code printing terminal reads a preset number of trace codes from a trace code cache queue, generates a plurality of code printing information according to the code printing rule, sends the code printing information to a printer, and stores the code printing information in a local print cache queue of the printer;
step S30: when detecting that the cigarette case moves on the production line, generating a coding trigger signal corresponding to the moving speed of the cigarette case, and sending the coding trigger signal to a printer;
step S40: the printer takes out the code printing information in the local printing cache queue according to the code printing trigger signal, sequentially carries out code printing according to the configured trigger mode, and synchronously returns the printing completion message to the code printing terminal after the code printing is completed;
step S50: the steps S20-S40 are repeated until the print job ends.
Further, in the adaptive high-speed coding method, the step S20 further includes: when the number of the traceable codes in the traceable code cache queue is insufficient, the code printing terminal obtains a group of unused traceable codes from the traceable code pool and stores the traceable codes into the traceable code cache queue.
Further, the code printing rule comprises country codes, manufacturer codes, production line types and brands, and the code printing rule is used for determining coding digits, printing content and positions and sizes of the codes.
Further, in the adaptive high-speed coding method, the step S40 further includes: and the coding terminal calculates coding speed, production line speed and current coding content according to the printing completion information returned by the printer.
Further, the self-adaptive high-speed coding method further comprises the following steps:
step S45: the code quality is identified and analyzed through a code reader, if the traceability code on the cigarette case can not be identified, the cigarette case with the code is removed, the code terminal is informed, and when the number of removed cigarettes reaches a specified threshold value in a specified time interval, an alarm is given and a stop signal is sent to a production line.
Further, in the adaptive high-speed coding method, step S45 further includes:
if the traceability code on the cigarette case is successfully identified, analyzing the identified traceability code to acquire a printing position and printing content, and judging whether the printing position and the printing content are correct or not;
when the printing position is incorrect, notifying the coding terminal to adjust coding information;
when the print is incorrect, the cigarette box is rejected, and when the number of rejects reaches a specified threshold within a specified time interval, an alarm is given and a stop signal is sent to the production line.
Further, in the self-adaptive high-speed coding method, when the printing position is incorrect, the left-right offset and the up-down offset of the tracing code are obtained and sent to the coding terminal, and the coding terminal adjusts coding information according to the left-right offset and the up-down offset of the tracing code.
The self-adaptive high-speed coding system includes configuration module, coding terminal, printer and cigarette case detector,
the configuration module is used for generating a coding rule according to information input by a user, and switching a printing file of the printer according to the coding rule, wherein the printing file comprises printing content, a traceability code printing position and size, printing power and a triggering mode;
the code printing terminal is used for reading a preset number of trace codes from the trace code cache queue, generating a plurality of code printing information according to the code printing rule, sending the code printing information to the printer, and storing the code printing information in the local print cache queue of the printer;
the cigarette case detection device is used for detecting whether cigarette cases move on a production line, generating a coding trigger signal corresponding to the moving speed of the cigarette case when detecting that the cigarette cases move, and sending the coding trigger signal to the printer;
the printer is used for receiving the coding information sent by the coding terminal and storing the coding information into a local printing cache queue of the printer, taking out the coding information in the local printing cache queue according to the coding trigger signal sent by the cigarette case detection device, coding in sequence according to the trigger mode, and synchronously returning the printing completion information to the coding terminal after coding is completed.
Further, the adaptive high-speed coding system further comprises:
the coding quality detection device comprises a code reader and a rejecting device, wherein,
the code reader is used for identifying and analyzing the coding quality of each cigarette case;
the removing device is used for removing the cigarette case and notifying the coding terminal when the tracing code on the cigarette case cannot be identified by the code reader, and alarming and sending a stop signal to the production line when the removing quantity reaches a specified threshold value within a specified time interval.
Further, the self-adaptive high-speed code printing system is characterized in that the code reader is further used for analyzing the identified traceability code to obtain the printing position and the printing content when the traceability code on the cigarette case is successfully identified, judging whether the printing position and the printing content are correct or not, and
when the printing position is incorrect, notifying the coding terminal to adjust coding information;
when the printing content is incorrect, the cigarette case is rejected by the rejecting device, and when the rejection number reaches a specified threshold value within a specified time interval, an alarm is given and a stop signal is sent to the production line.
The invention has the advantages and effects that:
the self-adaptive high-speed coding method and system provided by the invention comprise the processes of managing, distributing, recovering and online coding of traceable codes, can adapt to the requirements of various production lines, coding and customizing contents, meets the strict process quality requirements of tobacco enterprises, and meets the requirements of the national health organization tobacco control framework convention (FCTC). The high-speed automatic online coding solution meeting the requirements related to the export cigarettes is provided for tobacco enterprises.
The self-adaptive high-speed coding method and system provided by the invention can automatically select a printing scheme according to national standards, product brands and traceability code printing standards, and send traceability codes to a printing task. Through reforming transform various production lines, install laser additional and beat sign indicating number equipment and realize intelligent automation and beat the function of sign indicating number at a high speed on line. And recycling and managing the used traceability codes, wherein the unused traceability codes can be used continuously. On-line detection, processing cannot be identified and print quality analysis is performed, and automatic adjustment processing is performed.
Drawings
FIG. 1 shows a flow chart of an adaptive high-speed coding method provided by the invention;
fig. 2 shows a coding rule schematic diagram of the adaptive high-speed coding method provided by the invention;
FIG. 3 shows a detection square wave diagram of a trigger device of the adaptive high-speed coding method provided by the invention;
fig. 4 is a schematic diagram of a picture collected by a code reader of the adaptive high-speed coding method provided by the invention;
fig. 5 shows a schematic structural diagram of a trigger device of the adaptive high-speed coding system provided by the invention;
fig. 6 shows a schematic structural diagram of a coding quality detection device of the adaptive high-speed coding system provided by the invention.
Detailed Description
In order to make the purposes, technical solutions and advantages of the implementation of the present invention more clear, the technical solutions in the embodiments of the present invention are described in more detail below with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are some, but not all, embodiments of the invention. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention. Embodiments of the present invention will be described in detail below with reference to the attached drawings:
as shown in fig. 1, the adaptive high-speed coding method provided by the invention comprises the following steps:
step S10: and generating coding rules according to the information input by the user. And switching a printing file of the printer according to the coding rule, wherein the printing file comprises printing content, a traceability code printing position and size, printing power and a triggering mode.
Specifically, for different export countries and regions, different contents and coding requirements are required for the traceability codes, so that the traceability codes also need to define corresponding rules to manage different coding rules, and meanwhile, different manufacturers also have different readability requirements for the traceability codes, and related rule configuration is also needed. Through selecting the coding rules, selecting the requirements of manufacturers, forming configuration combinations for coding requirements, and synchronously issuing the configuration combinations and the traceability codes to the print job.
The code printing rules comprise country codes, manufacturer codes, production line types and brands, and are used for determining coding digits, printing content and the positions and sizes of the codes. Such as: the country code may be Chinese (CHN), germany (DE), afiguan (AE), malaysia (MYS), etc., and the system may process the trace back code according to the coding rule of each country, for example, germany is a 17-bit long and short code pattern, afiguan is an 18-bit code, etc., and then generate the customer code (manufacturer code) according to the manufacturer. The production line and brand then specify the size, location, printable content, etc. that can be coded, these determine the print files that can be used.
Step S20: the code printing terminal reads a preset number of trace codes from the trace code cache queue, generates a plurality of code printing information according to code printing rules, sends the code printing information to the printer, and stores the code printing information in the local print cache queue of the printer.
Specifically, contents such as a traceback code and a client code are encoded into a binary code stream as shown in fig. 2 according to the code coding sequence.
When the number of the traceable codes in the traceable code cache queue is insufficient, the code printing terminal obtains a group of unused traceable codes from the traceable code pool and stores the traceable codes into the traceable code cache queue.
Step S30: when the cigarette case movement is detected on the production line, as shown in fig. 3, a coding trigger signal corresponding to the cigarette case movement speed is generated and sent to the printer.
Step S40: and the printer takes out the code printing information in the local printing cache queue according to the code printing trigger signal, sequentially carries out code printing according to the configured trigger mode, and synchronously returns the printing completion message to the code printing terminal after the code printing is completed.
Specifically, the coding terminal calculates coding speed, production line speed and current coding content according to printing completion information returned by the printer.
Step S45: the code quality is identified and analyzed through a code reader, if the traceability code on the cigarette case can not be identified, the cigarette case with the code is removed, the code terminal is informed, and when the number of removed cigarettes reaches a specified threshold value in a specified time interval, an alarm is given and a stop signal is sent to a production line.
If the traceability code on the cigarette case is successfully identified, analyzing the identified traceability code, acquiring the printing position and the printing content, and judging whether the printing position and the printing content are correct or not.
When the printing position is incorrect, notifying the coding terminal to adjust coding information; specifically, the left-right and up-down offset of the tracing code is obtained and sent to the code printing terminal, and the code printing terminal adjusts code printing information according to the left-right and up-down offset of the tracing code.
When the print is incorrect, the cigarette box is rejected, and when the number of rejects reaches a specified threshold within a specified time interval, an alarm is given and a stop signal is sent to the production line.
The specific detection condition judging method comprises the following steps:
identification of the code: the code reader directly identifies the content of the two-dimension code, if the identification is successful, the identified character string content is sent to the code printing terminal program, and if the identification is failed, the ERROR label of ERROR is sent. The code reader simultaneously sends the acquired pictures to a designated position. The storage location provided by the device running the coding terminal program can be accessed and read by the coding terminal program.
Processing codes: the code printing terminal program can analyze whether the content of the received two-dimensional code accords with the rule of the current task, and if the content does not accord with the rule (such as incorrect code length, content verification error and the like), an alarm is needed and a stop signal is sent to the production line.
Processing pictures: the code printing terminal program can check the pictures acquired by the code reader, can calculate the values of w1 and h of the printed codes relative to the black matrix as shown in fig. 4 after analysis by a graphic algorithm, and can analyze whether the whole graph is askew, the amount of left and right offset and the amount of up and down offset. The offset of the code printing on the left and right and the upper and lower sides can be obtained through processing the pictures acquired by the code reader, and the terminal program can adjust the position of the code in the printed file, but when the current real-time adjustment is carried out, the printer can change the printed file for a long time, so that a part of cigarette boxes cannot be printed during the command issuing process, but the subsequent rejection mechanism can reject the cigarette boxes, so that the production process is not greatly affected in practice.
Step S50: the steps S20-S40 are repeated until the print job ends.
In one embodiment, the method comprises the following steps:
(1) Task initialization: and receiving the printing task and updating the task information.
(2) Configuring a printing mode: and configuring the print file according to the task information, and sending a print file configuration command to the printer.
(3) And (3) switching a printing file: and switching the current printing file according to the printing file configuration command, wherein the current printing file comprises the printing content, the position and the size of the traceability code, the laser printing power, the triggering mode and the like.
(4) Starting coding task: and receiving an external command to start the coding task.
(5) Preparing a traceability code cache queue: and managing the traceable code cache queue, and requesting the traceable code to fill the cache queue to the main program.
(6) Extracting a traceability code: the code printing terminal obtains unused tracing codes from a tracing code pool of the print job and sends the tracing codes to the code printing thread.
(7) The traceback code is put into a traceback code cache queue: and pushing the obtained unused traceability codes into a traceability code cache queue.
(8) And (3) encoding a traceability code message: and according to the trace code configuration rule, configuring different two-dimensional code format contents in different countries/regions according to task configuration, filling corresponding readable content configuration according to product information, updating information such as the current production date and the like, and combining the information into a printer code printing message.
(9) Checking a cache queue: if the number of the current traceable code cache queues is insufficient, switching to the traceable code cache queue preparation step (5), and requesting the traceable code to fill the cache queues.
(10) Transmitting a traceability code message group: and taking out a certain number of tracing code messages from the tracing code cache queue, packaging the tracing code messages into a group, and sending the tracing code messages to the printer according to the communication protocol format of the printer.
(11) The traceability code message enters a print cache: and the printer stores the received traceability code information into a local print cache queue.
(12) Photoelectric triggering: the photoelectric sensor detects the movement of the cigarette case, generates waveforms corresponding to the actions of the production line, and synchronously sends the waveforms to the printer.
(13) Tracing code coding: and the printer takes out the traceable code information in the local printing buffer queue according to the code printing trigger signal, and sequentially codes according to the configured trigger mode.
(14) And (5) code printing notification of the traceability code: and when the printer finishes coding, synchronously transmitting the finished printing information back to the coding terminal.
(15) Analyzing the coding state: according to the returned printing information, calculating and analyzing to obtain the information such as the code printing speed, the production line speed, the current code printing content and the like, and simultaneously, according to the condition of the buffer memory of the printer, switching to the step (10) of sending the tracing code message group to request the next group of tracing code information to be sent.
(16) And (3) receiving a coding task: and after the coding task is completed, ending the task.
The invention provides a self-adaptive high-speed coding system which comprises a configuration module, a coding terminal, a printer, a cigarette case detection device and a coding quality detection device. The configuration module is used for generating a coding rule according to information input by a user, and switching a printing file of the printer according to the coding rule, wherein the printing file comprises printing content, a traceability code printing position and size, printing power and a triggering mode. The code printing terminal is used for reading a preset number of trace codes from the trace code cache queue, generating a plurality of code printing information according to the code printing rule, sending the code printing information to the printer, and storing the code printing information in the local print cache queue of the printer. The cigarette case detection device is used for detecting whether cigarette cases move on a production line, generating a coding trigger signal corresponding to the cigarette case moving speed when detecting that the cigarette cases move, and sending the coding trigger signal to the printer. The printer is used for receiving the coding information sent by the coding terminal and storing the coding information into a local printing buffer queue of the printer, taking out the coding information in the local printing buffer queue according to the coding trigger signal sent by the cigarette case detection device, coding in sequence according to the trigger mode, and synchronously returning the printing completion information to the coding terminal after coding is completed. The coding quality detection device comprises a code reader and a rejecting device. The code reader is used for identifying and analyzing the coding quality of each cigarette case. The rejecting device is used for rejecting the cigarette case and notifying the code printing terminal when the tracing code on the cigarette case cannot be identified by the code reader, and alarming and sending a stop signal to the production line when the rejecting quantity reaches a specified threshold value within a specified time interval. The code reader is also used for analyzing the identified traceability code to acquire the printing position and the printing content when the traceability code on the cigarette case is successfully identified, judging whether the printing position and the printing content are correct or not, and informing the code printing terminal to adjust the code printing information when the printing position is incorrect. When the printing content is incorrect, the cigarette case is rejected by a rejecting device, and when the number of rejects reaches a specified threshold value within a specified time interval, an alarm is given and a stop signal is sent to the production line.
For different production lines, no modification of the production line is required. Only a trigger device is additionally arranged on the production line, the production takt of the production line is matched, a laser printer is triggered to print codes, and the printing speed depends on the matching of the coding speed and the printing speed. The coding speed is based on a printing protocol corresponding to TCP connection adopted by coding terminal program coding, the coding speed is the sending speed of a code coding command of a trace code, the printing speed is based on the power of a laser machine and the coding content and the required coding quality, and the final coding speed is adjusted to be higher than the production speed of an actual production line. The content of the code printing can automatically adjust the printing content according to the code sending command, including selecting a proper printing file, controlling the printing position, the size and the like.
As shown in fig. 5, the triggering device in this embodiment is a photoelectric sensor 2, the photoelectric sensor 2 is installed at a position aligned with the cigarette case 1 and entering the conveyor belt, the eight-claw wheel 3 for transferring the cigarette case on the production line stops when moving to a corresponding position of the conveyor belt, and then the cigarette case push rod pushes the cigarette case on the claw wheel leftwards onto the conveyor belt, and simultaneously pushes the cigarette case leftwards gradually. As shown in fig. 3, the photosensor will experience a change from blocking to recovery, and the photosensor will send a square wave to the printer in turn, and the printer will trigger the code printing on the falling edge of the square wave. Under the cooperation of the photoelectric sensor 2 and the eight-claw wheel disc 3, the printer 4 assigns unique traceability codes to each small cigarette packet one by one. The production rate of the current production line can be calculated by measuring the time interval of the waveform. The time required by the printer to print is related to the actual code content, the size of the code printing area and the code printing scanning speed, and the printer calculates a code printing time according to the code printing time. The content comprises the production rate and the coding speed, and the printer feeds the production rate and the coding speed back to the coding terminal in real time for processing.
As shown in fig. 6, the code quality detecting device includes a code reader 5 and a rejecting device 6. The cigarette cases 1 are arranged to enter a coding quality detection device, a code reader 5 collects cigarette case images, reads traceable codes and analyzes the traceable codes, a defective cigarette case is removed according to the read result removing device 6, and a coding terminal is notified. In particular, the rejecting device 6 may be a pneumatic rejecting device or a mechanical rejecting device, and preferably a pneumatic rejecting device is used to avoid damage to the box package, because most of the box packages are soft in texture and easy to damage, but relatively light, so that the box packages can be rejected by using the pneumatic rejecting device.
In summary, the invention provides a self-adaptive high-speed coding method and system, which comprises the processes of traceability code management, distribution, recovery and online coding, can adapt to various production lines, code systems and customized content requirements, meets strict process quality requirements of tobacco enterprises, meets requirements of the national health organization tobacco control framework convention (FCTC), and provides a high-speed automatic online coding solution meeting the requirements related to export cigarettes for tobacco enterprises. The self-adaptive high-speed coding method and system provided by the invention can automatically select a printing scheme according to national standards, product brands and traceability code printing standards, and send traceability codes to a printing task. Through reforming transform various production lines, install laser additional and beat sign indicating number equipment and realize intelligent automation and beat the function of sign indicating number at a high speed on line. And recycling and managing the used traceability codes, wherein the unused traceability codes can be used continuously. On-line detection, processing cannot be identified and print quality analysis is performed, and automatic adjustment processing is performed.
The above embodiments are only for illustrating the technical solution of the present invention, and are not intended to limit the implementation scope of the present invention. All equivalent changes and modifications within the scope of the present invention should be considered as falling within the scope of the present invention.
Claims (5)
1. The self-adaptive high-speed coding method is characterized by comprising the following steps of:
step S10: generating coding rules according to information input by a user; switching a printing file of a printer according to the coding rule, wherein the printing file comprises printing content, a traceability code printing position and size, printing power and a triggering mode;
different contents and coding requirements on the traceability codes are provided for different export countries and regions; meanwhile, different manufacturers have different requirements on the readability of the traceability code; selecting code printing rules, selecting manufacturer requirements, forming configuration combinations for code printing requirements, and synchronously issuing the configuration combinations and the traceability codes to a print job;
step S20: the code printing terminal reads a preset number of trace codes from a trace code cache queue, generates a plurality of code printing information according to the code printing rule, sends the code printing information to a printer, and stores the code printing information in a local print cache queue of the printer;
step S30: when detecting that the cigarette case moves on the production line, generating a coding trigger signal corresponding to the moving speed of the cigarette case, and sending the coding trigger signal to a printer;
step S40: the printer takes out the code printing information in the local printing cache queue according to the code printing trigger signal, sequentially carries out code printing according to the configured trigger mode, and synchronously returns the printing completion message to the code printing terminal after the code printing is completed;
step S45: identifying and analyzing the coding quality through a code reader, if the traceability code on the cigarette case cannot be identified, rejecting the cigarette case with the coding, informing the coding terminal, and alarming and sending a stop signal to a production line when the rejection number reaches a specified threshold value within a specified time interval;
if the traceability code on the cigarette case is successfully identified, analyzing the identified traceability code to acquire a printing position and printing content, and judging whether the printing position and the printing content are correct or not;
when the printing position is incorrect, notifying the coding terminal to adjust coding information;
rejecting the cigarette case when the printing content is incorrect, and alarming and sending a stop signal to a production line when the rejection number reaches a specified threshold value within a specified time interval;
the identifying and analyzing includes:
identification of the code: the code reader directly identifies the content of the two-dimensional code, and if the identification is successful, the identified character string content is sent to the code printing terminal program; if the identification fails, an ERROR label of ERROR is sent;
processing codes: the code printing terminal program analyzes whether the content of the received two-dimensional code accords with the rule of the current task, and if not, the code printing terminal program needs to give an alarm and send a stop signal to the production line;
processing pictures: the code printing terminal program can check the pictures acquired by the code reader, and can analyze whether the whole graph is distorted or not through a graph algorithm, and the offset is left and right and the offset is up and down; the offset of the code printing left and right and up and down can be obtained through processing the pictures acquired by the code reader, and the code printing terminal program can be adjusted by adjusting the position of the code in the printed file;
step S50: the steps S20-S40 are repeated until the print job ends.
2. The adaptive high-speed coding method according to claim 1, wherein the step S20 further comprises: when the number of the traceable codes in the traceable code cache queue is insufficient, the code printing terminal obtains a group of unused traceable codes from the traceable code pool and stores the traceable codes into the traceable code cache queue.
3. An adaptive high-speed coding method according to claim 1, wherein the coding rules include country code, manufacturer code, line type and brand for determining coding bit number, print content and location and size of coding.
4. The adaptive high-speed coding method according to claim 1, wherein the step S40 further comprises: and the coding terminal calculates coding speed, production line speed and current coding content according to the printing completion information returned by the printer.
5. The self-adaptive high-speed coding system is characterized by comprising a configuration module, a coding terminal, a printer, a cigarette case detection device and a coding quality detection device, wherein,
the configuration module is used for generating a coding rule according to information input by a user, and switching a printing file of the printer according to the coding rule, wherein the printing file comprises printing content, a traceability code printing position and size, printing power and a triggering mode; different contents and coding requirements on the traceability codes are provided for different export countries and regions; meanwhile, different manufacturers have different requirements on the readability of the traceability code; selecting code printing rules, selecting manufacturer requirements, forming configuration combinations for code printing requirements, and synchronously issuing the configuration combinations and the traceability codes to a print job;
the code printing terminal is used for reading a preset number of trace codes from the trace code cache queue, generating a plurality of code printing information according to the code printing rule, sending the code printing information to the printer, and storing the code printing information in the local print cache queue of the printer;
the cigarette case detection device is used for detecting whether cigarette cases move on a production line, generating a coding trigger signal corresponding to the moving speed of the cigarette case when detecting that the cigarette cases move, and sending the coding trigger signal to the printer;
the printer is used for receiving the coding information sent by the coding terminal and storing the coding information into a local printing cache queue of the printer, taking out the coding information in the local printing cache queue according to the coding trigger signal sent by the cigarette case detection device, coding in sequence according to the trigger mode, and synchronously returning the printing completion information to the coding terminal after coding is completed;
the coding quality detection device comprises a code reader and a rejecting device, wherein,
the code reader is used for identifying and analyzing the coding quality of each cigarette case; and when the traceability code on the cigarette case is successfully identified, analyzing the identified traceability code to obtain the printing position and the printing content, judging whether the printing position and the printing content are correct, and
when the printing position is incorrect, notifying the coding terminal to adjust coding information;
when the printing content is incorrect, rejecting the cigarette case by the rejecting device, and when the rejecting quantity reaches a specified threshold value in a specified time interval, alarming and sending a stop signal to a production line;
the identifying and analyzing includes:
identification of the code: the code reader directly identifies the content of the two-dimensional code, and if the identification is successful, the identified character string content is sent to the code printing terminal program; if the identification fails, an ERROR label of ERROR is sent;
processing codes: the code printing terminal program analyzes whether the content of the received two-dimensional code accords with the rule of the current task, and if not, the code printing terminal program needs to give an alarm and send a stop signal to the production line;
processing pictures: the code printing terminal program can check the pictures acquired by the code reader, and can analyze whether the whole graph is distorted or not through a graph algorithm, and the offset is left and right and the offset is up and down; the offset of the code printing left and right and up and down can be obtained through processing the pictures acquired by the code reader, and the code printing terminal program can be adjusted by adjusting the position of the code in the printed file;
the removing device is used for removing the cigarette case and notifying the coding terminal when the tracing code on the cigarette case cannot be identified by the code reader, and alarming and sending a stop signal to the production line when the removing quantity reaches a specified threshold value within a specified time interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310060678.8A CN115991055B (en) | 2023-01-16 | 2023-01-16 | Self-adaptive high-speed coding method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310060678.8A CN115991055B (en) | 2023-01-16 | 2023-01-16 | Self-adaptive high-speed coding method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115991055A CN115991055A (en) | 2023-04-21 |
CN115991055B true CN115991055B (en) | 2023-07-07 |
Family
ID=85990039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310060678.8A Active CN115991055B (en) | 2023-01-16 | 2023-01-16 | Self-adaptive high-speed coding method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115991055B (en) |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645081A (en) * | 2009-08-19 | 2010-02-10 | 上海孙桥现代农业联合发展有限公司 | Method and system for tracing farm product information through two-dimension code |
JP2011213006A (en) * | 2010-03-31 | 2011-10-27 | Hitachi Solutions Ltd | Form printing system and program |
CN203568052U (en) * | 2013-11-07 | 2014-04-30 | 浙江中烟工业有限责任公司 | Device for printing commodity inspection batch numbers of cigarettes by using Videojet label printing and labeling machine |
CN103761546A (en) * | 2013-12-30 | 2014-04-30 | 武汉华工赛百数据***有限公司 | Quality safety tracing method for food processing enterprises |
CN105328997B (en) * | 2014-08-08 | 2018-01-23 | 北京赛腾标识***股份公司 | Low power laser quickly endowed method and endowed system |
CN106553463A (en) * | 2015-09-29 | 2017-04-05 | 贵州省烟草公司黔东南州公司 | A kind of adjustable for height stamp machine support and its using method |
KR20220123709A (en) * | 2020-01-15 | 2022-09-08 | 필립모리스 프로덕츠 에스.에이. | How to form a pack pair |
CN111967888A (en) * | 2020-08-27 | 2020-11-20 | 浙江中烟工业有限责任公司 | Method for improving uniqueness identification and tracing accuracy of cigarette wrapping strip |
-
2023
- 2023-01-16 CN CN202310060678.8A patent/CN115991055B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115991055A (en) | 2023-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070150219A1 (en) | Method of validating and applying radio frequency tags to an object | |
CN209889218U (en) | Cigarette case bar code and cigarette bar information correlation system of case packer | |
CN111348271B (en) | Cigarette carton and cigarette box code scanning correlation method for eliminating accumulative errors | |
JP6702986B2 (en) | Unit and container identification and tracking method and system | |
CN111570309A (en) | Logistics package sorting method and device and related equipment | |
CN111967888A (en) | Method for improving uniqueness identification and tracing accuracy of cigarette wrapping strip | |
JP2011515772A (en) | Method and system for managing the production of items | |
CN110039916A (en) | Printing quality detection method, computer device, and computer-readable storage medium | |
CN108122014B (en) | Bar code printing real-time detection and error prevention method, storage medium and printing terminal | |
CN109102049B (en) | Product information tracing method | |
CN111597857A (en) | Logistics package detection method, device and equipment and readable storage medium | |
CN111652541B (en) | Industrial production monitoring method, system and computer readable storage medium | |
CN104118605A (en) | PTP sheet detection system | |
CN115991055B (en) | Self-adaptive high-speed coding method and system | |
CN105217074A (en) | A kind of automatic Proofreading system and method for cigarette package Quick Response Code | |
CN111846465A (en) | Tobacco strip cigarette brand sorting, checking and tracing system and method | |
KR102253385B1 (en) | detecting system of multi-packaging error | |
CN206485852U (en) | Cigarette finished product Input System | |
CN104477458B (en) | Efficient signal transmission method based on filling liquid food production | |
CN110322199A (en) | The safe outbound device systems and method of image recognition | |
CN110647536A (en) | Printed matter packaging method based on two-dimensional code | |
CN104392258B (en) | RFID identification system based on filling liquid food production | |
CN218559280U (en) | High-speed cigarette packaging machine's barrel correlation system based on dot matrix code technique | |
CN114516458B (en) | Missing code product screening method and product packaging code printing device | |
CN110728341B (en) | Intelligent extraction, intelligent process quality monitoring and intelligent management method for variable digital printing data of winding drum |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 618, 6th Floor, Building 3, No. 32 Jinfu Road, Shijingshan District, Beijing, 100000 Patentee after: Beijing Zhuoxin Zhiheng Data Technology Co.,Ltd. Patentee after: Shanghai Tongji Electromechanical Technology Co.,Ltd. Address before: Room 1396, No. 40 Xiejia Hutong, Dongcheng District, Beijing, 100041 Patentee before: Beijing Zhuoxin Zhiheng Data Technology Co.,Ltd. Patentee before: Shanghai Tongji Electromechanical Technology Co.,Ltd. |