CN112571999B - Multi-production-line printing task self-adaptive matching method, device, equipment and medium - Google Patents

Multi-production-line printing task self-adaptive matching method, device, equipment and medium Download PDF

Info

Publication number
CN112571999B
CN112571999B CN201910928142.7A CN201910928142A CN112571999B CN 112571999 B CN112571999 B CN 112571999B CN 201910928142 A CN201910928142 A CN 201910928142A CN 112571999 B CN112571999 B CN 112571999B
Authority
CN
China
Prior art keywords
printing
module
value
task
variable data
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
Application number
CN201910928142.7A
Other languages
Chinese (zh)
Other versions
CN112571999A (en
Inventor
曾利群
梅�明
黄中琨
陈艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Senda Shenzhen Technology Co Ltd
Original Assignee
Senda Shenzhen Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Senda Shenzhen Technology Co Ltd filed Critical Senda Shenzhen Technology Co Ltd
Priority to CN201910928142.7A priority Critical patent/CN112571999B/en
Publication of CN112571999A publication Critical patent/CN112571999A/en
Application granted granted Critical
Publication of CN112571999B publication Critical patent/CN112571999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/07Ink jet characterised by jet control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a multi-production-line printing task self-adaptive matching method, device, equipment and medium. The method comprises the steps that a first module for maintaining a background picture and n second modules for maintaining variable data are arranged, wherein n is more than or equal to 1 and is an integer; configuring the number of printing copies for the first module, and configuring variable data ID values matched with the number of printing copies; creating a first print task of the first module and a second print task of the second module; counting the printing times of the first module and transmitting the count value to the second module; judging whether the count value is equal to the variable data ID value of the second module; and when the count value is equal to the variable data ID value of the second module, reading the printing data of the first module and the second module and printing. The invention ensures the accuracy of the self-adaptive matching of the task target images of each production line in variable data printing.

Description

Multi-production-line printing task self-adaptive matching method, device, equipment and medium
Technical Field
The invention relates to the field of digital printing, in particular to a multi-production-line printing task self-adaptive matching method, device, equipment and medium.
Background
With the wide application of computers in graphic or word processing, printers are becoming more and more popular, and people can conveniently output characters or graphics in computers to pictures through the printers.
The Onepass printing is that the length direction (X direction) of a nozzle of a spray head is vertical to the moving direction (Y direction) of a printing medium, the spray head is generally fixed, the printing medium passes through the lower part of the spray head once to obtain a pattern to be printed, and the printing medium moves continuously without pause. Oneeglass printing has the advantages of high efficiency and large output, and is suitable for a large-batch and continuous production mode.
The existing Oneeglass printing equipment is formed by splicing a row of spray heads end to end, and when the width of a product in the arrangement direction of the spray heads is equal to the sum of the widths of the whole spray heads, the utilization rate of one-time printing spray heads can almost reach 100%; however, when the breadth of the product along the arrangement direction of the nozzles is small, if the breadth of the product is equal to the breadth of one nozzle, only one nozzle discharges ink at the moment, and other nozzles do not discharge ink, so that the utilization rate of the nozzles during printing is low, and the resource waste is serious. In the printing process of the variable data image and the background image, different production modules print different variable data contents and background images, and the contents of the variable data contents and the background images are pre-stored in a memory according to corresponding numbers. But each production module is triggered, and the process of creating the task is independent. Therefore, the problem that the work of different production modules is asynchronous, so that the serial number of the variable data cannot be matched with the serial number of the background image occurs, and the printer is in error in printing. Therefore, how to ensure that the printing data corresponding to the common nozzle can be accurately extracted to the corresponding production line when the task target image among the multiple production lines is adaptively matched and printed is also a difficult problem to be solved urgently in the technical field of inkjet printing.
Disclosure of Invention
The embodiment of the invention provides a multi-production-line printing task adaptive matching method, device, equipment and medium, which are used for solving the problems of how to ensure that task target images among multiple production lines are adaptively matched during printing of the multiple production lines and print data corresponding to a shared spray head can be accurately extracted to the corresponding production line during printing.
In a first aspect, an embodiment of the present invention provides a multi-production-line print job adaptive matching method, where the method includes:
setting a first module for maintaining a background picture and n second modules for maintaining variable data, wherein n is more than or equal to 1 and is an integer;
configuring the number of printing copies for the first module, and configuring variable data ID values matched with the number of printing copies;
creating a first print task of the first module and a second print task of the second module;
counting the number of times of printing of the first module and sending a count value to the second module;
judging whether the count value is equal to the variable data ID value of the second module:
when the variable data ID value is larger than the counting value, the dequeuing operation of the second printing task is not executed;
when the variable data ID value is smaller than the count value, executing the dequeuing operation of the second printing task until the variable data ID value is equal to the count value according to the difference value of the variable data ID value and the count value;
and when the count value is equal to the variable data ID value of the second module, reading the printing data of the first module and the second module and printing.
Preferably, the first module and the second module are a set of independent print task creation, management and printing system, the first module and the second module are both configured with independent print task data cache spaces, and the first module and the second module maintain independent data to be printed.
Preferably, the method further comprises:
the first module printing the same background image only performs one task dequeuing operation.
Preferably, the job queue content of the first print job includes a data address and a print number of the background image printed this time in a first memory space corresponding to the first module, and the job queue content of the second print job includes a data address and an ID value of the variable data printed this time in a second memory space corresponding to the second module.
Preferably, the reading and printing the print data of the first module and the second module includes:
confirming a shared physical channel and a single physical channel in all physical channels according to printing requirements, wherein the shared physical channel belongs to x production lines, the single physical channel only belongs to one production line, x is more than or equal to 2, and x is an integer;
n logic channels are configured for each shared physical channel, y physical channels are configured for each single physical channel, n is larger than or equal to x, y is larger than or equal to 1, and n and y are integers;
establishing a corresponding relation among the physical channel, the logic channel and the production line;
extracting the printing data corresponding to the current production line from the printing memory by taking the logic channel as a unit according to the corresponding relation;
and combining the printing data corresponding to the current production line according to the corresponding relation and inputting the combined printing data into the corresponding physical channel for ink-jet printing.
Preferably, the correspondence includes: the production line corresponding to each logic channel, the relative position of each logic channel in the corresponding production line, and the data length corresponding to each logic channel. Preferably, a nozzle corresponds to a physical channel or a row of nozzles on the nozzle corresponds to a physical channel, and each logical channel corresponds to one physical channel.
In a second aspect, an embodiment of the present invention provides an adaptive matching apparatus for multi-production-line print jobs, where the apparatus includes:
the module setting module is used for setting a first module for maintaining a background picture and n second modules for maintaining variable data according to printing requirements;
the configuration module is used for configuring the number of printing copies for the first module according to the printing requirement and configuring variable data ID values matched with the number of printing copies;
the task creating module creates a first printing task of the first module and a second printing task of the second module;
the counting and transmitting module is used for counting the printing times of the first module and transmitting the count value to the second module;
the judging module is used for judging whether the count value is matched with the variable data ID value of the second module;
and the printing output module is used for not executing the dequeuing operation of the second printing task when the variable data ID value is greater than the counting value, executing the dequeuing operation of the second printing task until the dequeuing operation is equal according to the difference value between the variable data ID value and the counting value when the variable data ID value is less than the counting value, and reading the printing data of the first module and the second module and printing when the counting value is equal to the variable data ID value of the second module.
In a third aspect, an embodiment of the present invention provides a printing system, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the foregoing embodiments is implemented.
In summary, according to the method, the apparatus, the system and the medium for adaptive matching of multi-production-line print tasks provided by the embodiments of the present invention, a first module for maintaining a background image and n second modules for maintaining variable data are provided, where n is greater than or equal to 1, and n is an integer; configuring the number of printing copies for the first module, and configuring variable data ID values matched with the number of printing copies; creating a first printing task of the first module and a second printing task of the second module; counting the printing times of the first module and transmitting the count value to the second module; judging whether the count value is equal to the variable data ID value of the second module; and when the count value is equal to the variable data ID value of the second module, reading the printing data of the first module and the second module and printing. The invention ensures the accuracy of the self-adaptive matching of the task target images of each production line in variable data printing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a multi-line print job adaptive matching method according to an embodiment of the invention.
FIG. 2 is a flow chart of a multi-line print job adaptive matching method according to an embodiment of the invention.
FIG. 3 is a schematic diagram of line-triggered printing of the multi-line print job adaptive matching method according to the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a nozzle of the Onepass printing device of the multi-production-line printing task adaptive matching method according to the embodiment of the invention.
FIG. 5 is a schematic diagram of the line allocation of the multi-line print job adaptive matching method according to the embodiment of the present invention.
FIG. 6 is a logic channel allocation diagram of the multi-line print job adaptive matching method according to the embodiment of the invention.
Fig. 7 is a flowchart of acquiring print data corresponding to current printing of each production line from the print memory according to the corresponding relationship in the embodiment of the present invention.
Fig. 8 is a flowchart of the inkjet printing method according to the embodiment of the present invention, in which the print data corresponding to the current production line is merged according to the corresponding relationship and then input to the corresponding physical channel.
Fig. 9 is a flowchart of determining invalid data in the data to be printed corresponding to each of the logical channels according to the correspondence relationship according to the embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a printer printing apparatus according to an embodiment of the present invention.
Fig. 11 is a schematic configuration diagram of a printer printing apparatus of an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
Referring to fig. 1, an embodiment of the present invention provides a multi-line print task adaptive matching method, where a first module for maintaining a background map and n second modules for maintaining variable data are arranged, n is greater than or equal to 1, and n is an integer; configuring the number of printing copies for the first module, and configuring variable data ID values matched with the number of printing copies; creating a first printing task of the first module and a second printing task of the second module; counting the printing times of the first module and transmitting the count value to the second module; judging whether the count value is equal to the variable data ID value of the second module; and when the count value is equal to the variable data ID value of the second module, reading the printing data of the first module and the second module and printing. The invention ensures the accuracy of the self-adaptive matching of the task target images of each production line in variable data printing. The method specifically comprises the following steps:
s1, setting a first module for maintaining a background picture and n second modules for maintaining variable data according to printing requirements, wherein n is greater than or equal to 1 and is an integer;
preferably, the print data of the background map and the print data of the variable data are maintained by different modules, respectively. A first module maintains a background picture, and different background pictures are maintained by different first modules; a second module maintains a variable data tag, and different variable data tags are maintained by different second modules.
S2, configuring the number of printing copies for the first module according to the printing requirement, and configuring variable data ID values matched with the number of printing copies;
in the present embodiment, each number of printed copies is provided with a number. The ID value indicates that a number corresponding to the number of printed copies is arranged for each variable data. For example, if the number allocated to the first printed copy is 1, the corresponding variable data ID value is 1, and if the number allocated to the second printed copy is 2, the corresponding variable data ID value is 2. It is understood that the variable data may be one tag, or may be two tags, and the number of tags of the variable data is not specifically limited herein, but the ID values of the tags in the same variable data are the same.
S3, creating a first print task of the first module and a second print task of the second module;
preferably, the first print job of the first module and the second print job of the second module are independently controlled, and the background map of the first print job and the variable data label of the second print job are printed on the same printing medium.
S4, counting the printing times of the first module and transmitting the count value to the second module;
specifically, when the same background image is printed a plurality of times but the variable label on the background image is varied, the number of copies of the currently printed background image needs to be counted. Count 1 when one background image is printed, count 2 when two background images are printed, and so on, and the count value of the printed background images is transmitted to the second module.
S5, judging whether the count value is equal to the variable data ID value of the second module:
for example, when the number of copies of the background image is 1, the counter counts and sends a count value of 1 to the second module. At this time, the variable data ID value corresponding to the number of copies printed on the background image in the second module is also 1. It is understood that the ID values of the plurality of tags in the variable data are all 1.
S6, when the variable data ID value is greater than the count value, not performing the second print job dequeuing operation;
preferably, the dequeue operation refers to reading the print job information that is queued at the front, and deleting the print job information in the queue when printing is completed. In this embodiment, when the variable data ID value is greater than the count value, the second print job does not perform the dequeue operation, and the variable data ID value in the second print job remains unchanged. At this time, the count value of the background map is still increasing until the count value is equal to the variable data ID value, and the first print job and the second print job are started to be executed.
S7, when the variable data ID value is smaller than the count value, the dequeue operation of the second print job is executed according to the difference value of the variable data ID value and the count value until the variable data ID value and the count value are equal;
specifically, when the variable data ID value is smaller than the count value, the second print job performs dequeue operation for multiple times, the variable data ID value continues to increase, and the count value of the print background map is not changed until the count value is equal to the variable data ID value of the second module.
And S8, when the count value is equal to the variable data ID value of the second module, reading the printing data of the first module and the second module and printing.
Preferably, the control system compares the count value with the variable data of the second module, and reads and prints the print data of the first module and the second module when the count value is equal to the variable data ID value of the second module.
Preferably, the first module and the second module are respectively an independent print job creating, managing and printing processing system, each module is configured with an independent print job data cache space, and each module maintains independent data to be printed.
Preferably, the creating the first print job of the first module and the second print job of the second module includes:
the first module printing the same background image only performs one task dequeuing operation.
Preferably, the task queue content of the first print task is a data address and the number of prints of the background image printed this time in a first memory space corresponding to the first module, and the task queue content of the second print task is a data address and an ID value of the variable data printed this time in a second memory space corresponding to the second module.
Application example 1
Several concepts are first defined:
a module: a set of independent task creation, management, print processing system; each module has an independent task data cache space; maintaining queues of task data in an independent cache space, wherein the queues comprise initial addresses and ID information of the task data in the cache space; there is a separate work queue.
task: for a printing process, a static background map and several copies of printed labels are used in the printing process.
work: printing a background picture and a plurality of corresponding printing labels as a work in the process of printing a task once; when a work is printed once, a trigger signal needs to be printed, and a printer is triggered to create a printing work. It can be seen that the print label of each work is different during the printing task, and the background image is the same.
The background image may be a fixed picture, printed n times in one print task. For example, the printing content of each work comprises 1 background picture and 3 printing labels; 3 printed labels need to be matched and each time the content is dynamically variable.
Because the static background images are always large, the static background images are repeatedly used after being loaded until the static background images are not needed any more; furthermore, because flexible switching of background graphs needs to be realized and the number of words of each task can be freely and flexibly defined, information (data addresses) of a plurality of background tasks are cached through a RAM memory; the logic channel receives the configuration from the user of the upper computer, and calculates and generates a printing task (including information of a storage starting address of the current background image data in the ddr and the number of work printed by the current task) to enter a queue according to the user requirement;
each module maintains a work queue.
When the channel corresponding to the module reads data, the address of the task is calculated after the printing label information is read from the corresponding work queue according to the sequence. And taking out the information of the next label from the queue only after all the current labels are printed.
The multi-production-line printing task self-adaptive matching method provided by the embodiment of the invention comprises the following specific steps of:
1. the module (first module) for printing the background picture adopts an ARM processor to maintain a queue, the content of the queue is the information of the background picture to be printed at this time, and the information mainly comprises a data address and the number of copies of the background picture to be printed at this time.
2. The other enabling modules (second module) maintain a word queue. The queue is the labels to be printed next and the ID of each label;
3. the system ensures that the IDs of the work are coordinated with each other and correspond to the background picture. Assume that there are two tasks in the background map queue: firstly, printing a background picture 1, and printing 100 copies; printing a background picture 2 after printing is finished, and printing 50 parts, wherein 100 parts of works corresponding to the background picture 1 must be printed in all module work queues according to a set sequence, and the ID information is 0-99; then, the ID information of 50 corresponding to the background figure 2 is printed and is 0-49.
4. When the tasks are synchronously created, a task printing process is performed once, and the first module for printing the background graph only needs to perform a task queue dequeuing operation once when the task is finished. The first module that prints the background map counts work for one task process, and sends the count value to the other modules (second module).
5. Except for the first module, when each work of each second module creates a task, the ID of the work in the current work queue is judged to be compared with the count value of the work sent by the first module, and if the ID is large, the second module does not execute the work dequeuing operation. And if the ID is small, the second module executes a plurality of times of queue-removing operations until the ID of the work in the queue is equal to the count value of the work of the current first module. Thus, self-adaptive synchronization of work among modules during long-time printing is ensured.
Preferably, referring to fig. 2, the reading the print data of the first module and the second module for printing and outputting includes:
s81, confirming a shared physical channel and a single physical channel in all physical channels according to the printing requirement, wherein the shared physical channel belongs to x production lines, the single physical channel only belongs to one production line, x is more than or equal to 2, and x is an integer;
s82, configuring n logic channels for each shared physical channel, and configuring y physical channels for each single physical channel, wherein n is more than or equal to x, y is more than or equal to 1, and n and y are integers;
s83, establishing the corresponding relation between the physical channel, the logic channel and the production line;
s84, extracting the printing data corresponding to the current production line from the printing memory by taking the logic channel as a unit according to the corresponding relation;
and S85, combining the printing data corresponding to the current production line according to the corresponding relation, and inputting the combined printing data into the corresponding physical channel for ink-jet printing.
Preferably, one nozzle corresponds to one physical channel or one row of nozzles on the nozzle corresponds to one physical channel, and each production line is not overlapped with each other, so that each production line is ensured to be independent. The production line comprises at least 1 physical channel, and all the physical channels can be located in one Oneepass printing device or a plurality of Oneepass printing devices.
Preferably, the printing memory has a plurality of copies, each copy of the printing memory correspondingly stores data to be printed of one production line, each copy of the printing memory correspondingly sets a task queue to be printed, each written task needs to be queued, and each read task needs to be queued. Referring to fig. 3, in this example, the print data corresponding to each production line is stored separately, the print task of each production line is triggered separately, and after the print task is triggered, the print data is extracted from the print memory according to the print task queue to the print control system, distributed to the data interface of each production line through the print control system, and then sent to the corresponding printing device.
Preferably, the correspondence includes: the production line corresponding to each logic channel, the relative position of each logic channel in the corresponding production line, and the data length corresponding to each logic channel. Referring to fig. 4 to 6, in this embodiment, a nozzle is defined as one physical channel, there are 12 physical channels in total, each physical channel is numbered with a certain end point of the nozzle arrangement direction (X-axis direction) as a starting point, the direction perpendicular to the nozzle arrangement direction is the printing direction (Y-axis direction), in this embodiment, the leftmost end of the nozzle arrangement direction is used as a starting point, the numbers of each physical channel are from PCH0 to PCH11, PCH0 represents a first physical channel, PCH1 represents a second physical channel, and PCH3 represents a third physical channel … … PCH11 represents a twelfth physical channel. In this embodiment, there are 4 production lines, the physical channel 3, the physical channel 7, and the physical channel 8 are shared physical channels, the physical channel 3 is shared by the production line 1 and the production line 2, the physical channel 7 is shared by the production line 2 and the production line 3, the physical channel 8 is shared by the production line 3 and the production line 4, and the others are single physical channels, in this embodiment, 4 logical channels are configured for each shared object channel, and 4 logical channels are configured for each single physical channel, so 48 logical channels are allocated in total, and the 48 logical channels are numbered from LCH0 to LCH47, LCH0 represents the first logical channel, and LCH1 represents the second logical channel … … LCH47 represents the forty-eighth logical channel. Referring to fig. 5, the corresponding relations between the logic channels and the generating lines are that the logic channels LCH 0-LCH 11 belong to production line 1, the logic channels LCH 12-LCH 23 belong to production line 2, the logic channels LCH 24-LCH 35 belong to production line 3, and the logic channels LCH 36-LCH 47 belong to production line 4; the specific establishment of the corresponding relationship is that each physical channel and each logical channel are numbered, the production line corresponding to each logical channel and the relative position of each logical channel in the corresponding production line can be determined according to the numbers, the data length corresponding to each logical channel is equal to the length of the physical channel, and the length of the physical channel represents the number of nozzles owned by the physical channel.
Preferably, referring to fig. 7, the step S84: acquiring the printing data corresponding to the current printing of each production line from the printing memory according to the corresponding relation, and specifically comprising the following steps of:
s841, acquiring the current printing task number of each production line;
s842, acquiring corresponding task parameters according to the current printing task number;
s843, acquiring the initial address of the printing data currently corresponding to each logic channel in the printing memory according to the task parameters and the corresponding relation;
s844, extracting the print data currently corresponding to each of the logical channels from the print memory according to the start address.
Specifically, each production line comprises a plurality of printing tasks, a task number of a current printing task is firstly obtained when printing is triggered, a task parameter of the current printing task is obtained according to the current printing task number, an initial address of the printing data currently corresponding to each logic channel in the printing memory is obtained according to the task parameter and the corresponding relation, and then the printing data is extracted from the printing memory according to the initial address. The task parameters comprise parameters related to the logic channel and the printing data, such as the starting address of the task data in the printing memory, the starting address of the task parameter in the printing memory and the like, each production line is provided with a corresponding trigger printing module, and the trigger printing modules of the production lines are mutually independent.
Preferably, referring to fig. 8, the step S85: the step of merging the printing data corresponding to the current production line according to the corresponding relation and inputting the merged printing data into the corresponding physical channel for ink-jet printing specifically comprises the following steps:
s851, determining invalid data in the data to be printed corresponding to each logic channel according to the corresponding relation;
s852, shielding invalid data in the data to be printed to obtain the printing data;
and S853, combining the printing data corresponding to each logic channel in sequence according to the sequence of each logic channel, and inputting the combined printing data into a corresponding physical channel for ink jet printing.
Referring to fig. 9, the step S851 specifically includes the following steps:
s8511, determining the printing range of the current production line according to the structure of the printing equipment;
specifically, an XY printing coordinate system with pixels as basic units is established according to the number of the physical channels owned by the equipment and the length of the physical channels, wherein the length of the physical channels represents the number of nozzles owned by the physical channels; determining a starting printing coordinate value X1 and an ending printing coordinate value X2 of the current production line on an X axis in the printing coordinate system according to the width of the current production line along the arrangement direction of the printing channel and the position of the current production line for starting printing, wherein X1 is not more than X2; determining the printing range of the production line 1 according to the starting printing coordinate value X1 and the ending printing coordinate value X2.
S8512, determining the channel range of each physical channel according to the structure of the printing equipment;
specifically, according to the number of each physical channel and the length of the physical channel, determining a starting channel coordinate value X3 and an ending channel coordinate value X4 of each physical channel on an X axis in the printing coordinate system, wherein X3 is not more than X4;
and S8513, when the channel range is out of the printing range, the printing data corresponding to the logical channel corresponding to the physical channel in the production line is invalid data.
Specifically, whether the physical channel is in the printing range of the production line is determined according to a start channel coordinate value X3 and an end channel coordinate value X4 of the physical channel, and when the physical channel is in the printing range of the production line, the printing data corresponding to the logical channel corresponding to the physical channel is valid data; when the printing range is out of the printing range, the printing data corresponding to the logical channel corresponding to the physical channel is invalid data;
when (X1 ≦ X3) ≦ N (X4 ≦ X2), the physical channel is located within the printing range of the production line;
when (X3 ≦ X1)) (X1 ≦ X4 ≦ X2), nozzles in the physical channel in the range of X1 to X4 are within the printing range, nozzles in the physical channel in the range of X3 to X1 are outside the printing range;
when (X1 ≦ X3 ≦ X2) ≦ N (X2 ≦ X4), nozzles in the physical channel in the range of X3 to X2 are within the image printing range, nozzles in the physical channel in the range of X2 to X4 are outside the printing range;
when (X4. ltoreq. X1. ltoreq. X2. ltoreq. X3), the physical channel is located outside the printing range.
And shielding the printing data corresponding to the logical channels outside the printing range, determining the invalid data in each production line according to the arrangement sequence of the production lines and the method for determining the invalid data, then shielding, combining the printing data corresponding to each production line according to the arrangement sequence of the production lines after the processing is finished, and inputting the combined printing data into the physical channels for ink-jet printing. In this embodiment, the print data corresponding to each production line is combined by using an or operation.
Referring to fig. 10, an embodiment of the present invention provides a printing apparatus for a printer, including:
the module setting module 10 is used for setting a first module for maintaining a background picture and n second modules for maintaining variable data according to printing requirements;
the configuration module 11 is configured to configure the number of print copies for the first module according to a print requirement, and configure a variable data ID value matching the number of print copies;
a task creating module 12, configured to create a first print task of the first module and a second print task of the second module;
a counting and transmitting module 13, configured to count the number of times of printing of the first module and transmit the count value to the second module;
a judging module 14, configured to judge whether the count value matches the variable data ID value of the second module;
and the printout module 15 is configured to, when the variable data ID value is greater than the count value, not perform the dequeuing operation of the second print job, when the variable data ID value is less than the count value, perform the dequeuing operation of the second print job until the dequeuing operation is equal to the dequeuing operation of the second print job according to a difference between the variable data ID value and the count value, and when the count value is equal to the variable data ID value of the second module, read the print data of the first module and the print data of the second module and print the print data.
And each logic channel corresponds to one physical channel.
Preferably, the correspondence includes: the production line corresponding to each logic channel, the relative position of each logic channel in the corresponding production line, and the data length corresponding to each logic channel.
Preferably, the printing memory has a plurality of copies, each copy of the printing memory correspondingly stores one piece of data to be printed of the production line, and each copy of the printing memory correspondingly sets one task queue to be printed.
In addition, the multi-production-line printing task adaptive matching method of the embodiment of the invention described in conjunction with fig. 2 can be realized by a printer printing device. Fig. 10 is a schematic diagram showing a hardware configuration of a printer printing apparatus according to an embodiment of the present invention.
The printer printing device may include a processor 401 and memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any one of the multi-line print job adaptive matching methods in the above embodiments.
In one example, the printer printing device may also include a communication interface 403 and a bus 410. As shown in fig. 10, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 410 includes hardware, software, or both to couple the components of the printer printing device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the multi-line print job adaptive matching method in the above embodiments, the embodiments of the present invention may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the multi-line print job adaptive matching methods of the embodiments described above.
In summary, according to the method, the apparatus, the device and the medium for adaptive matching of multi-production-line print tasks provided by the embodiments of the present invention, a first module for maintaining a background image and n second modules for maintaining variable data are provided, where n is greater than or equal to 1 and is an integer; configuring the number of printing copies for the first module, and configuring variable data ID values matched with the number of printing copies; creating a first printing task of the first module and a second printing task of the second module; counting the printing times of the first module and transmitting the count value to the second module; judging whether the count value is equal to the variable data ID value of the second module; and when the count value is equal to the variable data ID value of the second module, reading the printing data of the first module and the second module and printing. The invention ensures the accuracy of the self-adaptive matching of the task target images of each production line in variable data printing.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
It should also be noted that the exemplary embodiments noted in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A multi-production-line printing task adaptive matching method is characterized by comprising the following steps:
setting a first module for maintaining a background picture and n second modules for maintaining variable data, wherein n is more than or equal to 1 and is an integer;
configuring the number of printing copies for the first module, and configuring a variable data ID value matched with the number of the printing copies, wherein the ID value refers to that each piece of variable data is configured with a number corresponding to the number of the printing copies;
creating a first printing task of the first module and a second printing task of the second module, wherein a background image of the first printing task and a variable data label of the second printing task are printed on the same printing medium;
counting the number of printing times of a first printing task of the first module and sending a count value to the second module;
judging whether the count value is equal to the variable data ID value of the second module:
when the variable data ID value is larger than the counting value, the dequeuing operation of the second printing task is not executed;
when the variable data ID value is smaller than the count value, executing dequeuing operation of the second print job according to the difference value of the variable data ID value and the count value until the variable data ID value is equal to the count value;
and when the count value is equal to the variable data ID value of the second module, reading the printing data of the first printing task of the first module and the second printing task of the second module and printing.
2. The multi-line print job adaptive matching method according to claim 1, wherein the first module and the second module are respectively an independent print job creation, management and print processing system, the first module and the second module are respectively configured with a print job data buffer space, and the first module and the second module respectively maintain respective corresponding data to be printed.
3. The multi-line print job adaptive matching method according to claim 1 or 2, wherein said method further comprises:
the first module printing the same background picture only carries out the queue-out operation of the printing task once.
4. The multi-production-line printing task self-adaptive matching method according to claim 3, wherein the task queue content of the first printing task comprises a data address and the number of printing copies of the background image of the printing in a first memory space corresponding to the first module, and the task queue content of the second printing task comprises a data address and an ID value of the variable data of the printing in a second memory space corresponding to the second module.
5. The multi-line print job adaptive matching method according to claim 4, wherein said reading and printing print data of the first module and the second module comprises:
confirming a shared physical channel and a single physical channel in all physical channels according to printing requirements, wherein the shared physical channel belongs to x production lines, the single physical channel only belongs to one production line, x is more than or equal to 2, and x is an integer;
n logic channels are configured for each shared physical channel, y physical channels are configured for each single physical channel, n is larger than or equal to x, y is larger than or equal to 1, and n and y are integers;
establishing a corresponding relation among the physical channel, the logic channel and the production line;
extracting the printing data corresponding to the current production line from the printing memory by taking the logic channel as a unit according to the corresponding relation;
and combining the printing data corresponding to the current production line according to the corresponding relation and inputting the combined printing data into the corresponding physical channel for ink-jet printing.
6. The multi-line print job adaptive matching method according to claim 5, wherein the correspondence comprises: the production line corresponding to each logic channel, the relative position of each logic channel in the corresponding production line, and the data length corresponding to each logic channel.
7. The adaptive matching method for multi-line printing tasks according to claim 6, wherein one nozzle corresponds to one physical channel or one row of nozzles on a nozzle corresponds to one physical channel, and each logical channel corresponds to one physical channel.
8. A multi-line print job adaptive matching apparatus, the apparatus comprising:
the module setting module is used for setting a first module for maintaining a background picture and n second modules for maintaining variable data according to printing requirements, wherein n is more than or equal to 1 and is an integer;
the configuration module is used for configuring the number of printing copies for the first module according to the printing requirement and configuring a variable data ID value matched with the number of the printing copies, wherein the ID value is that each piece of variable data is configured with a number corresponding to the number of the printing copies;
the task creating module is used for creating a first printing task of the first module and a second printing task of the second module, and a background image of the first printing task and a variable data label of the second printing task are printed on the same printing medium;
the counting and transmitting module is used for counting the printing times of the first printing task of the first module and transmitting the counting value to the second module;
the judging module is used for judging whether the count value is equal to the variable data ID value of the second module;
and the printing output module is used for not executing the dequeuing operation of the second printing task when the variable data ID value is greater than the counting value, executing the dequeuing operation of the second printing task until the dequeuing operation is equal according to the difference value between the variable data ID value and the counting value when the variable data ID value is less than the counting value, and reading the printing data of the first printing task of the first module and the second printing task of the second module and printing when the counting value is equal to the variable data ID value of the second module.
9. A printing system, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-7.
10. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-7.
CN201910928142.7A 2019-09-28 2019-09-28 Multi-production-line printing task self-adaptive matching method, device, equipment and medium Active CN112571999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910928142.7A CN112571999B (en) 2019-09-28 2019-09-28 Multi-production-line printing task self-adaptive matching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910928142.7A CN112571999B (en) 2019-09-28 2019-09-28 Multi-production-line printing task self-adaptive matching method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112571999A CN112571999A (en) 2021-03-30
CN112571999B true CN112571999B (en) 2022-09-13

Family

ID=75110290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910928142.7A Active CN112571999B (en) 2019-09-28 2019-09-28 Multi-production-line printing task self-adaptive matching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112571999B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243584A (en) * 1997-01-17 2000-02-02 穆尔美国公司 Printing multiple page documents including variable data
CN1398378A (en) * 2000-02-09 2003-02-19 穆尔北美公司 Imaging documents having static content and variable data
US20110013209A1 (en) * 2009-07-17 2011-01-20 Hideyuki Yamazaki Variable Printing System
TW201132508A (en) * 2009-12-07 2011-10-01 Seiko Epson Corp Information processing apparatus and control method for the same
CN103029458A (en) * 2011-09-30 2013-04-10 北大方正集团有限公司 Control system and method for digital printing
CN107336523A (en) * 2017-07-28 2017-11-10 昆山海斯电子有限公司 Variable information digital spraying print equipment and jet printing method
CN108052298A (en) * 2017-12-14 2018-05-18 深圳华云科技实业有限公司 A kind of print control system, method and computer storage media
CN109710198A (en) * 2018-12-29 2019-05-03 森大(深圳)技术有限公司 Method of printing, device and the equipment of local dynamic station variable image
CN109725858A (en) * 2018-11-30 2019-05-07 森大(深圳)技术有限公司 Label image print control program, device, equipment and storage medium
CN109753252A (en) * 2018-12-29 2019-05-14 森大(深圳)技术有限公司 The method of multimode group printer and its synchronous creation print out task, storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243584A (en) * 1997-01-17 2000-02-02 穆尔美国公司 Printing multiple page documents including variable data
CN1398378A (en) * 2000-02-09 2003-02-19 穆尔北美公司 Imaging documents having static content and variable data
US20110013209A1 (en) * 2009-07-17 2011-01-20 Hideyuki Yamazaki Variable Printing System
TW201132508A (en) * 2009-12-07 2011-10-01 Seiko Epson Corp Information processing apparatus and control method for the same
CN103029458A (en) * 2011-09-30 2013-04-10 北大方正集团有限公司 Control system and method for digital printing
CN107336523A (en) * 2017-07-28 2017-11-10 昆山海斯电子有限公司 Variable information digital spraying print equipment and jet printing method
CN108052298A (en) * 2017-12-14 2018-05-18 深圳华云科技实业有限公司 A kind of print control system, method and computer storage media
CN109725858A (en) * 2018-11-30 2019-05-07 森大(深圳)技术有限公司 Label image print control program, device, equipment and storage medium
CN109710198A (en) * 2018-12-29 2019-05-03 森大(深圳)技术有限公司 Method of printing, device and the equipment of local dynamic station variable image
CN109753252A (en) * 2018-12-29 2019-05-14 森大(深圳)技术有限公司 The method of multimode group printer and its synchronous creation print out task, storage medium

Also Published As

Publication number Publication date
CN112571999A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN109703217B (en) Oneepass printing control method, device, equipment and medium
CN109605954B (en) Oneepass printing control method, device, equipment and medium
CN109710198B (en) Printing method, device and equipment for local dynamic variable image
CN109753252B (en) Multi-module printer, method for synchronously creating printing tasks and storage medium thereof
CN109739449B (en) Method, device, equipment and medium for synchronously processing printing parameters and printing data
CN109760431B (en) Print data processing method, device, equipment and storage medium
CN109263279B (en) Oneepass ink-jet printing method, device, equipment and storage medium
CN109263280B (en) Oneepass ink-jet printing method, device, equipment and storage medium
CN109669647B (en) Print image data processing method, apparatus, device and storage medium
CN112571999B (en) Multi-production-line printing task self-adaptive matching method, device, equipment and medium
CN106671608B (en) A kind of sequence number method of adjustment, device, consumable chip and imaging cartridge
US9916526B2 (en) Image forming apparatus capable of generating a handwritten document specific to a user
US20170039138A1 (en) Information processing system, information processing method, and recording medium storing an information processing program
CN109683834B (en) Gerber file conversion precision processing method, system, equipment and storage medium
CN113442581B (en) Printing method, device, equipment and storage medium
JP7031712B2 (en) Image processing mechanism
JPH06253066A (en) Multi-application arbitration device
CN108883640B (en) Printing independent images through a shared printer head
US11481589B2 (en) Onepass system inkjet printing control method, device and storage medium
CN112248668B (en) Method and device for controlling printing press
JP2012059187A (en) Image forming system
CN109542367B (en) Rate matching method and device for printer mainboard optical fiber communication and printing system
CN113682061B (en) Printing control method, device, equipment and storage medium
CN110936739B (en) Insert printing control method, device, equipment and storage medium
CN115291819A (en) Airborne printing method and system based on file queue mode

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