Method and apparatus for controlling printing
By employing a method of multiple round-trip printing and printhead stepping, along with different ink droplet ratios and UV curing lamp control, the problem of unclear characters and insufficient ink volume in PCB inkjet printers caused by printhead clogging was solved, achieving high-quality printing results.
Patent Information
- Application Number
- CN202311441589.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2043-10-31
AI Technical Summary
Existing PCB inkjet printers are prone to nozzle clogging in single-pass or double-pass printing modes, resulting in unclear characters and insufficient ink in color blocks.
By employing a method of multiple reciprocating printing and printhead device stepping, character data and color block data are printed in different directions using different ink droplet ratios. This includes printing character and color block borders in the first printing direction, printing color block filling areas in the second printing direction, and moving the printhead device in the stepping direction. Combined with the on and off of the ultraviolet curing lamp, the ink droplet ratio is controlled.
实现了PCB喷印机打印清晰的字符和墨量饱和的色块,避免了喷头堵孔导致的打印质量问题。
Smart Images

Figure CN117284000B_ABST
Abstract
Description
Technical field
[0001] The present invention relates to the technical field of PCB character printing, and in particular to a printing control method and device. [Background Technology]
[0002] A PCB (printed circuit board) printer primarily prints characters or text on PCBs. A PCB printer is a device used to print logos, text, graphics, and other information on PCBs. PCB printers typically use inkjet technology to spray ink onto the PCB surface to create the desired characters and color blocks.
[0003] Currently, printing is mostly performed in a single-pass or double-pass manner, where "pass" is used to indicate the number of times the image needs to be printed.
[0004] However, both the single-pass and double-pass methods have the problem of nozzle clogging, which results in unclear printed characters and insufficient ink volume in color blocks. [Summary of the invention]
[0005] The present invention provides a printing control method and device, which are used to enable a PCB inkjet printer to print clear characters and color blocks with saturated ink.
[0006] In a first aspect, an embodiment of the present application provides a printing control method. The printing control method includes: upon receiving data to be printed, dividing the data to be printed into character data and color block data; controlling a print head device to print the character data in a first printing direction and to print the color block data based on a preset first ink dot ratio; controlling the print head device to move a first preset distance in a stepping direction and to print the color block data in a second printing direction based on a preset second ink dot ratio, wherein the first printing direction is opposite to the second printing direction; controlling the print head device to move a second preset distance in the stepping direction and to print the character data in the first printing direction and to print the color block data based on a preset third ink dot ratio.
[0007] Optionally, printing the color block data based on a preset first ink dot ratio includes: dividing the color block data into color block border data and color block fill data; printing the color block border data based on a preset color block border ink amount, and printing the color block fill data based on the preset first ink dot ratio and the preset color block fill ink amount.
[0008] Optionally, controlling the nozzle device to print the color block data in the second printing direction based on a preset second ink dot ratio includes: controlling the nozzle device to print the color block filling data in the second printing direction based on a preset second ink dot ratio and the color block filling ink amount.
[0009] Optionally, the controlling the nozzle device to print the character data in a first printing direction and print the color block data based on a preset first ink dot ratio further includes: controlling a preset ultraviolet curing lamp to turn on.
[0010] Optionally, controlling the print head device to move a first preset distance in a stepping direction, and controlling the print head device to print the color block data based on a preset second ink dot ratio in a second printing direction, further includes: controlling the ultraviolet curing lamp to turn off.
[0011] Optionally, the first ink dot ratio is smaller than the second ink dot ratio, and smaller than the third ink dot ratio.
[0012] Optionally, printing the color block filling data based on a preset first ink dot ratio and a preset color block filling ink amount includes: determining a corresponding first matrix based on the preset first ink dot ratio; obtaining a second matrix corresponding to the color block filling data, wherein the first matrix and the second matrix are both binary matrices; performing an AND operation on the first matrix and the second matrix to obtain a target matrix; and printing the color block filling data based on the target matrix and the preset color block filling ink amount.
[0013] Optionally, before controlling the nozzle device to print the character data in the first printing direction, it also includes: controlling the nozzle device to move to a preset position, the nozzle device includes a starting end and a tail end, the stepping direction of the nozzle device is perpendicular to the first printing direction, the direction from the starting end to the tail end is the same as the stepping direction, and the distance between the starting end and the printed printed circuit board in the stepping direction is greater than or equal to the total distance between the first preset distance and the second preset distance.
[0014] Optionally, the nozzle device is provided with multiple columns of nozzles arranged sequentially from the starting end to the tail end; the first preset distance and the second preset distance are determined based on the distance between any two adjacent nozzles in the same column in the nozzle device and the number of prints on the printed printed circuit board.
[0015] In a second aspect, an embodiment of the present application provides a printing control device. The printing control device includes: a division module for dividing the data to be printed into character data and color block data when receiving the data to be printed; a first control module for controlling the nozzle device to print the character data in a first printing direction and print the color block data based on a preset first ink dot ratio; a second control module for controlling the nozzle device to move a first preset distance in a stepping direction and control the nozzle device to print the color block data in a second printing direction based on a preset second ink dot ratio, wherein the first printing direction is opposite to the second printing direction; and a third control module for controlling the nozzle device to move a second preset distance in the stepping direction and control the nozzle device to print the character data in the first printing direction and print the color block data based on a preset third ink dot ratio.
[0016] At least one advantageous aspect of the printing control method provided in the embodiment of the present application is that: by multiple round-trip printing and controlling the stepping of the nozzle device, the printing of character data and color block data is realized, and different ink dot ratios are used to print the color block data in different printing times, thereby enabling the PCB inkjet printer to print clear characters and ink-saturated color blocks, avoiding the problem of unclear printed characters and insufficient ink in the color blocks due to nozzle blockage.
Brief Description of the Drawings
[0017] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 Schematic diagram of a PCB (printed circuit board) printer in an embodiment of the present application;
[0019] Figure 2a This is a schematic diagram of an embodiment of the first printing effect in the embodiment of the present application;
[0020] Figure 2b This is a schematic diagram of an embodiment of the second printing effect in the embodiment of the present application;
[0021] Figure 2c This is a schematic diagram of an embodiment of the third printing effect in the embodiment of the present application;
[0022] Figure 2d This is a schematic diagram of an embodiment of the stepping method in the embodiment of the present application;
[0023] Figure 2e Schematic diagram of a nine-square grid with various ink dot ratios in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of an embodiment of a printing control method in an embodiment of the present application;
[0025] Figure 4 This is a schematic diagram of another embodiment of the printing control method in the embodiment of the present application;
[0026] Figure 5 This is a schematic diagram of an embodiment of the distance between the starting end of the nozzle device and the printed printed circuit board in the stepping direction before printing in an embodiment of the present application;
[0027] Figure 6 This is a schematic diagram of an embodiment of a control device printed in an embodiment of the present application;
[0028] Figure 7 This is a schematic diagram of another embodiment of the control device printed in the embodiment of the present application;
[0029] Figure 8 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. [Specific implementation method]
[0030] For ease of understanding of the present invention, the present invention will be described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as being "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as being "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween. The orientation or positional relationship indicated by the terms "upper", "lower", "inner", "outer", "bottom" etc. used in this specification is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0031] Unless otherwise defined, all technical and scientific terms used in this specification have the same meanings as those commonly understood by those skilled in the art to which this invention belongs. The terms used in this specification and in the description of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" as used in this specification includes any and all combinations of one or more of the relevant listed items.
[0032] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0033] Figure 1 Schematic diagram of a PCB (printed circuit board) inkjet printer in an embodiment of the present application. The PCB inkjet printer may include: a printer body 1, a nozzle device 2, a workbench 3 and an ultraviolet curing lamp (UV curing lamp) 4.
[0034] The printer body 1 can be any suitable type of device body, which can be equipped with a nozzle device, a workbench and a UV curing lamp, and can receive control signals to perform corresponding actions.
[0035] The nozzle device 2 is a functional module provided on the printer body 1. It can print character data and / or color block data on the printed circuit board on the workbench 3 and can move in two different directions, wherein the two different directions include a printing direction and a stepping direction.
[0036] The workbench 3 is a functional module provided in the printer body 1. It can transport the printed circuit board to be printed to a preset position so that the nozzle assembly 2 can print on the printed circuit board. It can also move in a direction perpendicular to its transport direction to move the printed circuit board to be printed in a direction perpendicular to the printing direction of the nozzle assembly 2. Therefore, the embodiment of the present application can realize two modes of movement during printing: one is that the workbench 3 is fixed at a preset position and the nozzle assembly 2 moves in the stepping direction and the printing direction; the other is that the nozzle assembly 2 is fixed and the workbench 3 moves in the opposite direction of the stepping direction and the opposite direction of the printing direction.
[0037] The UV curing lamp 4 is a functional module provided in the printer body 1. It can cure the ink printed by the nozzle device 2.
[0038] It should be noted that the embodiment of the present application is for the sake of simplicity and exemplification to illustrate the application scenario of the printing control method in a PCB inkjet printer. However, those skilled in the art will understand that based on similar principles, the printing control provided by the embodiment of the present application can also be applied to printing scenarios of other printers. The inventive concept disclosed in the embodiment of the present application is not limited to Figure 1 The device is shown as an application on a PCB inkjet printer, and can also be used in other similar printers.
[0039] In order to fully illustrate the printing control method provided in the embodiment of the present application Figure 1 The specific application process in the application scenario shown below is combined with Figures 2a to 2e , the principle of how to control the nozzle device to print character data and color block data on the printed circuit board to be printed is described in detail.
[0040] 1) PCB printers typically print data in the form of Gerber files. Gerber files are a collection of document formats used by PCB industry software to describe PCB images (such as circuit layers, solder mask layers, and character layers) as well as drilling and milling data. Gerber files are ASCII-coded files. After reading a Gerber file, the data must be parsed. The parsed data can be categorized into several types of primitives, such as points, lines, rectangles, circles, arcs, contours (arbitrary polygons), rounded rectangles, and arbitrary contours (including ellipses). Filled primitives are considered color blocks, while unfilled primitives are considered characters. This allows for the separation of color block data from character data based on primitive type.
[0041] Two binary bits are usually used to represent the amount of ink for a dot, that is, "00" is used to represent no dot (no ink), "01" is used to represent a small dot, such as the ink volume of a small dot is 10 picoliters (pL), "10" is used to represent a medium dot, such as the ink volume of a medium dot is 15 picoliters (pL), and "11" is used to represent a large dot, such as the ink volume of a large dot is 20 picoliters (pL). The specific ink volume of small dots, medium dots and large dots can be set according to the actual application scenario and is not limited here.
[0042] For example, the amount of ink printed on characters is a small dot, the amount of ink printed on the border of a color block is a large dot, and the amount of ink printed on the filling of a color block is a medium dot.
[0043] 2) When printing the printed circuit board for the first time (1st PASS) in the first printing direction, use small dots to print the characters, use large dots to print the borders of the color blocks, use mid-dots and spot-dots to print the areas to be filled in the color blocks, and turn on the UV curing lamp to cure the ink on the printed circuit board to form the following: Figure 2a The schematic diagram of the embodiment of the first printing effect is shown.
[0044] 3) When the printed circuit board is printed for the second time in the second printing direction (the second pass), only the area to be filled in the color block is printed, and the printing is performed in a midpoint and a sampling manner. During the second printing process, the UV curing lamp is turned off so that the printed ink can flow levelly in the area to be filled in the color block, and because the frame of the color block blocks the ink in the area to be filled, the ink in the area to be filled will not overflow, so as to form the following Figure 2b The schematic diagram of the embodiment of the second printing effect is shown.
[0045] 4) When printing the printed circuit board for the third time (3rd pass) in the first printing direction, use small dots to print the characters again, use large dots to print the borders of the color blocks again, use mid-dots and spot-dots to print the areas to be filled in the color blocks again, and turn on the UV curing lamp to cure the ink on the printed circuit board to form the following: Figure 2c The schematic diagram of the embodiment of the third printing effect is shown.
[0046] 5) In order to avoid the problem of poor printing effect caused by nozzle clogging, the nozzle device is moved in the stepping direction before printing the second and third passes, which can avoid the problem of poor printing effect caused by nozzle clogging.
[0047] For example, Figure 2d As shown, Figure 2d This is a schematic diagram of an embodiment of the stepping method in the embodiment of the present application. Figure 2d The position on the printed circuit board where the blocked holes correspond to the non-inking is row A. Before the second pass is printed, the nozzle device is moved several holes in the stepping direction, and the second pass is printed. As a result, the position on the printed circuit board where the blocked holes correspond to the non-inking is changed to row B, while the position on the printed circuit board where the blocked holes correspond to the non-inking is already covered by the normal hole output ink dots in row A. Before the third pass is printed, the nozzle device is moved several holes in the stepping direction on the basis of the second pass, and the third pass is printed. As a result, the position on the printed circuit board where the blocked holes correspond to the non-inking is changed to row C, while the position on the printed circuit board where the blocked holes correspond to the non-inking is already covered by the normal hole output ink dots in row A, and the position on the printed circuit board where the blocked holes correspond to the non-inking is already covered by the normal hole output ink dots in row B.
[0048] It is understandable that unless the nozzle holes are severely clogged, generally, slight blockages can be effectively solved by moving the holes in a step-by-step manner, thereby improving the printing effect.
[0049] 6) Currently, the PCB industry has increasingly stringent requirements for color block quality, requiring neither exposed base nor excessive thickness, with a minimum thickness of 25 microns (μm). As can be seen from the above examples, each of the three printing passes produces ink dots for the color blocks, resulting in more dots than the single-pass and double-pass methods used in existing technologies. Therefore, to prevent the color blocks from being too thick, a dot-sampling method is used for printing.
[0050] In this embodiment, the area to be filled of the color block to be printed can be divided into multiple blocks, each block is further divided into nine squares, and each square in the nine squares corresponds to an ink dot, so that the ink dots in the nine squares can be ink-dispensed according to the ink dot ratio (i.e., point sampling). For example, Figure 2eAs shown, Figure 2e This is a schematic diagram of a nine-square grid with various ink dot ratios in an embodiment of the present application (the ratio values are rounded up). In this diagram, solid dots represent ink application, and hollow dots represent no ink application. It can be understood that Figure 2e The ink dot ratio can also be set according to the actual application scenario and is not limited here.
[0051] Figure 3 This is a schematic diagram of an embodiment of a printing control method in an embodiment of the present application. The printing control method is as follows: Figure 2a-2e Based on the principle of printing character data and color block data shown in FIG, a printing control method is implemented, such as Figure 3 As shown, the printing control method includes the following steps:
[0052] S301 . When receiving data to be printed, divide the data to be printed into character data and color block data.
[0053] Optionally, the data to be printed is divided into character data and color block data, specifically including: (1) parsing the data to be printed to obtain multiple graphic element information; (2) judging whether the graphic element corresponding to each graphic element information needs to be filled; (3) if the graphic element corresponding to any graphic element information needs to be filled, then the any graphic element information is determined as color block data; (4) if the graphic element corresponding to any graphic element information does not need to be filled, then the any graphic element information is determined as character data.
[0054] PCB printers typically print data in the form of Gerber files. Gerber files are a collection of document formats used by PCB industry software to describe PCB images (such as circuit layers, solder mask layers, and character layers) as well as drilling and milling data. Gerber files are ASCII-coded files. After reading a Gerber file, the data must be parsed. The parsed data can be categorized into several types of primitives, such as points, lines, rectangles, circles, arcs, contours (arbitrary polygons), rounded rectangles, and arbitrary contours (including ellipses). Filled primitives are considered color blocks, while unfilled primitives are considered characters. This allows for the separation of color block data from character data based on primitive type.
[0055] S302: Control the print head device to print character data in a first printing direction, and print color block data based on a preset first ink dot ratio.
[0056] Optionally, controlling the print head device to print the character data in the first printing direction specifically includes: controlling the print head device to print the character data based on a preset character ink volume in the first printing direction.
[0057] As an example but not limitation, the preset character ink volume is a small dot, and the corresponding ink volume can be 7 picoliters (pL) or 8 picoliters (pL). The specific preset character ink volume can be set according to the actual application scenario.
[0058] S303, controlling the print head device to move a first preset distance in a stepping direction, and controlling the print head device to print color block data based on a preset second ink dot ratio in a second printing direction, wherein the first printing direction is opposite to the second printing direction.
[0059] The stepping direction of the nozzle device and the printing direction are perpendicular to each other.
[0060] As an example but not limitation, the first preset distance may be 5 mm or 6 mm. The specific first preset distance may be set according to the actual application scenario.
[0061] S304: Control the print head device to move a second preset distance in the stepping direction, and control the print head device to print character data in the first printing direction, and print color block data based on a preset third ink dot ratio.
[0062] The second preset distance may be the same as or different from the first preset distance, which is not limited here.
[0063] In this embodiment, the printing of character data and color block data is achieved through multiple round-trip printing and controlling the stepping of the nozzle device, and different ink dot ratios are used to print the color block data in different printing times, thereby enabling the PCB inkjet printer to print clear characters and ink-saturated color blocks, avoiding the problem of unclear printed characters and insufficient ink in color blocks due to nozzle blockage.
[0064] Figure 4 FIG. 1 is another schematic diagram of an embodiment of the printing control method in the embodiment of the present application. Figure 4 As shown, the printing control method includes the following steps:
[0065] S401 . When receiving data to be printed, divide the data to be printed into character data and color block data.
[0066] S402, controlling the nozzle device to move to a preset position.
[0067] In which, the nozzle device includes a starting end and a tail end, the stepping direction of the nozzle device is perpendicular to the first printing direction, the direction pointing from the starting end to the tail end is the same as the stepping direction, and the distance between the starting end and the printed printed circuit board in the stepping direction is greater than or equal to the total distance between the first preset distance and the second preset distance.
[0068] As an example but not limitation, the shape of the nozzle device can be a cube or a rectangular parallelepiped, which is not limited here.
[0069] It can be understood that the area corresponding to the preset position corresponds to the nozzle device, and the area of the preset position may include a top and a bottom, the starting end of the nozzle device corresponds to the top of the preset position, and the tail end of the nozzle device corresponds to the bottom of the preset position.
[0070] It should be noted that, since the embodiment of the present application needs to control the movement of the nozzle device in the stepping direction during the process of multiple printings on the printed circuit board, in order to avoid the problem that the nozzle device is lower than the printed circuit board to be printed due to the movement of the nozzle device, thereby making it impossible to print characters and color blocks on the printed circuit board above the nozzle device, before printing, it is necessary to control the distance between the starting end of the nozzle device and the printed printed circuit board in the stepping direction to be greater than or equal to the total distance between the first preset distance and the second preset distance, so as to ensure the integrity of the character data and color block data to be printed, thereby avoiding the problem of printing omissions. For example, if Figure 5 As shown, before printing, the distance between the starting end of the nozzle device and the printed printed circuit board in the stepping direction is d.
[0071] Optionally, the nozzle device is provided with multiple columns of nozzles arranged sequentially from the start end to the end; the first preset distance and the second preset distance are determined based on the distance between any two adjacent nozzles in the same column in the nozzle device and the number of prints on the printed printed circuit board.
[0072] As an example but not a limitation, in any two adjacent columns of nozzles, nozzles in different columns may be arranged in the same row or in different rows (ie, staggered distribution), which is not limited here.
[0073] The distance between any two adjacent nozzles in the same row is the distance between the center points of the nozzle holes of the two adjacent nozzles.
[0074] It can be seen from the above embodiments that controlling the nozzle device to move a preset distance in the stepping direction can effectively solve the problem of nozzle blockage. The principle is to stagger the blocked nozzle and the normal nozzle by moving the nozzle device, so that the normal nozzle will supplement the position where the blocked nozzle missed printing, and the sum of the distances between all adjacent nozzles in the same column (total distance) corresponds to the preset distance. Therefore, in order to ensure that the nozzles between two adjacent prints can be staggered, it is necessary to determine the first preset distance and the second preset distance of the nozzle device moving in the stepping direction based on the distance between any two adjacent nozzles in the same column. At the same time, the number of times the printed printed circuit board is printed determines the number of times the nozzle device moves in the stepping direction. For example, assuming that three times of printing are required, the number of times the nozzle device moves in the stepping direction is twice, and the distances of the two movements are the first preset distance and the second preset distance respectively.
[0075] S403: Control the print head device to print character data in a first printing direction, print color block data based on a preset first ink dot ratio, and control the preset ultraviolet curing lamp to turn on.
[0076] Optionally, printing the color block data based on a preset first ink dot ratio specifically includes: (1) dividing the color block data into color block border data and color block fill data; (2) printing the color block border data based on a preset color block border ink volume, and printing the color block fill data based on the preset first ink dot ratio and the preset color block fill ink volume.
[0077] As an example but not limitation, the preset ink volume of the color block border is large dots, and the corresponding ink volume can be 17 picoliters (pL) or 18 picoliters (pL). The specific ink volume of the color block border can be set according to the actual application scenario.
[0078] As an example but not limitation, the preset color block filling ink volume is the midpoint, and the corresponding ink volume can be 13 picoliters (pL) or 14 picoliters (pL). The specific color block filling ink volume can be set according to the actual application scenario.
[0079] It should be noted that the preset character ink volume is smaller than the preset color block filling ink volume, and the preset color block filling ink volume is smaller than the preset color block border ink volume.
[0080] It should be noted that since both the color block border data and the color block filling data are printed in the first PASS, in order to ensure that the ink in the filling area of the color block does not overflow, it is necessary to produce a small amount of ink or no ink in the filling area of the color block. Therefore, the first ink dot ratio can be zero, and the conditions that the first ink dot ratio is less than the second ink dot ratio and less than the third ink dot ratio are satisfied.
[0081] Optionally, printing color block filling data based on a preset first ink dot ratio and a preset color block filling ink amount specifically includes: (1) determining a corresponding first matrix based on the preset first ink dot ratio; (2) obtaining a second matrix corresponding to the color block filling data, wherein the first matrix and the second matrix are both binary matrices; (3) performing an AND operation on the first matrix and the second matrix to obtain a target matrix; (4) printing the color block filling data based on the target matrix and the preset color block filling ink amount.
[0082] From the above embodiments, it can be seen that if the first ink dot ratio is Figure 2e The ink dot ratio in the image is 88%, where solid dots indicate ink is present, represented by the binary number "11", and hollow dots indicate no ink is present, represented by the binary number "00". Therefore, the matrix corresponding to the ink dot ratio of 88% is: It can be understood that one row of the matrix has 6 binary bits. Since one ink dot is represented by 2 binary bits, and each byte in the data to be printed is 8-bit binary data, the following four identical matrices need to be modified.
[0083]
[0084] Modify the above 4 matrices into the following matrices:
[0085]
[0086] Convert the above matrix to hexadecimal representation: The first matrix corresponding to the ink dot ratio of 88% is:
[0087] Assume that the second matrix corresponding to the color block filling data is:
[0088]
[0089] Perform bitwise AND operations on the first matrix and each 3*3 group of the second matrix to obtain the target matrix. The target matrix is: Convert the target matrix into a binary matrix and print the color block filling data according to the preset color block filling ink amount.
[0090] S404, controlling the print head device to move a first preset distance in a stepping direction, controlling the print head device to print color block data based on a preset second ink dot ratio in a second printing direction, and controlling the ultraviolet curing lamp to turn off, wherein the first printing direction is opposite to the second printing direction.
[0091] Optionally, controlling the printhead device to print color block data in the second printing direction based on a preset second ink dot ratio specifically includes: controlling the printhead device to print color block filling data in the second printing direction based on the preset second ink dot ratio and color block filling ink amount.
[0092] It should be noted that during the second printing process, the UV curing lamp is turned off so that the sprayed ink can flow levelly to fill the area to be filled in the color block, and since the border of the color block formed by the first printing can prevent ink overflow, it effectively solves the problem of lack of ink and exposed bottom and the problem of insufficient ink in the color block.
[0093] S405: Control the print head device to move a second preset distance in the stepping direction, and control the print head device to print character data in the first printing direction, and print color block data based on a preset third ink dot ratio.
[0094] It should be noted that step S405 also includes: controlling the ultraviolet curing lamp to turn on.
[0095] As an example but not limitation, the second preset distance may be 6 mm or 7 mm. The specific second preset distance may be set according to the actual application scenario.
[0096] It should be noted that the second preset distance may be the same as or different from the first preset distance, which is not limited here. It only needs to ensure that the nozzles can be staggered between two adjacent printings.
[0097] The preset third ink dot ratio is greater than the preset first ink dot ratio. The preset third ink dot ratio and the preset second ink dot ratio may be the same or different, and are not limited here. For example, the first ink dot ratio is 11%, the second ink dot ratio is 100%, and the third ink dot ratio is 88%; or the first ink dot ratio is 11%, the second ink dot ratio is 88%, and the third ink dot ratio is 100%.
[0098] Optionally, printing color block data based on a preset third ink dot ratio specifically includes: printing color block border data based on a preset color block border ink volume, and printing color block filling data based on the preset third ink dot ratio and a preset color block filling ink volume.
[0099] By controlling the movement of the nozzle device and printing the character data again, the printed characters can be made clearer, and the borders in the color blocks can be printed again, and the area to be filled in the color blocks can be printed by sampling. At the same time, the ultraviolet curing lamp is turned on to cure the ejected ink, so that a color block with saturated ink can be printed.
[0100] In this embodiment, the printing of character data and color block data is achieved through multiple round-trip printing and controlling the stepping of the nozzle device, and different ink dot ratios are used to print the color block data in different printing times, thereby enabling the PCB inkjet printer to print clear characters and ink-saturated color blocks, avoiding the problem of unclear printed characters and insufficient ink in color blocks due to nozzle blockage.
[0101] Figure 6 This is a schematic diagram of an embodiment of the control device printed in the embodiment of the present application, as shown in FIG. Figure 6 As shown, the printing control device includes: a division module 601, which is used to divide the data to be printed into character data and color block data when receiving the data to be printed; a first control module 602, which is used to control the nozzle device to print the character data in the first printing direction, and print the color block data based on a preset first ink dot ratio; a second control module 603, which is used to control the nozzle device to move a first preset distance in the stepping direction, and control the nozzle device to print the color block data in the second printing direction based on a preset second ink dot ratio, wherein the first printing direction is opposite to the second printing direction; a third control module 604, which is used to control the nozzle device to move a second preset distance in the stepping direction, and control the nozzle device to print the character data in the first printing direction, and print the color block data based on a preset third ink dot ratio.
[0102] In this embodiment, the printing of character data and color block data is achieved through multiple round-trip printing and controlling the stepping of the nozzle device, and different ink dot ratios are used to print the color block data in different printing times, thereby enabling the PCB inkjet printer to print clear characters and ink-saturated color blocks, avoiding the problem of unclear printed characters and insufficient ink in color blocks due to nozzle blockage.
[0103] Figure 7 This is another schematic diagram of an embodiment of the control device for printing in the embodiment of the present application, as shown in FIG. Figure 7 As shown, the printing control device includes: a division module 601, which is used to divide the data to be printed into character data and color block data when receiving the data to be printed; a first control module 602, which is used to control the nozzle device to print the character data in the first printing direction, and print the color block data based on a preset first ink dot ratio; a second control module 603, which is used to control the nozzle device to move a first preset distance in the stepping direction, and control the nozzle device to print the color block data in the second printing direction based on a preset second ink dot ratio, wherein the first printing direction is opposite to the second printing direction; a third control module 604, which is used to control the nozzle device to move a second preset distance in the stepping direction, and control the nozzle device to print the character data in the first printing direction, and print the color block data based on a preset third ink dot ratio.
[0104] Optionally, the first control module 602 is specifically used to: divide the color block data into color block border data and color block fill data; print the color block border data based on a preset color block border ink amount, and print the color block fill data based on a preset first ink dot ratio and a preset color block fill ink amount.
[0105] Optionally, the second control module 603 is specifically configured to control the print head device to print the color block filling data in the second printing direction based on a preset second ink dot ratio and a color block filling ink amount.
[0106] Optionally, the first control module 602 is further configured to control a preset ultraviolet curing lamp to turn on.
[0107] Optionally, the second control module 603 is further configured to control the ultraviolet curing lamp to be turned off.
[0108] Optionally, the first ink dot ratio is smaller than the second ink dot ratio, and smaller than the third ink dot ratio.
[0109] Optionally, the first control module 602 is further specifically used to: determine the corresponding first matrix based on a preset first ink dot ratio; obtain the second matrix corresponding to the color block filling data, wherein the first matrix and the second matrix are both binary matrices; perform an AND operation on the first matrix and the second matrix to obtain a target matrix; and print the color block filling data based on the target matrix and the preset color block filling ink amount.
[0110] Optionally, the printing control device also includes: a fourth control module 605, used to control the nozzle device to move to a preset position, the nozzle device includes a starting end and a tail end, the stepping direction of the nozzle device is perpendicular to the first printing direction, the direction from the starting end to the tail end is the same as the stepping direction, and the distance between the starting end and the printed printed circuit board in the stepping direction is greater than or equal to the total distance between the first preset distance and the second preset distance.
[0111] Optionally, the nozzle device is provided with multiple columns of nozzles arranged sequentially from the start end to the end; the first preset distance and the second preset distance are determined based on the distance between any two adjacent nozzles in the same column in the nozzle device and the number of prints on the printed printed circuit board.
[0112] In this embodiment, the printing of character data and color block data is achieved through multiple round-trip printing and controlling the stepping of the nozzle device, and different ink dot ratios are used to print the color block data in different printing times, thereby enabling the PCB inkjet printer to print clear characters and ink-saturated color blocks, avoiding the problem of unclear printed characters and insufficient ink in color blocks due to nozzle blockage.
[0113] It should be noted that, in the embodiments of the present application, the functional modules named by functionality are used as an example to describe in detail the method steps to be implemented by the device provided by the embodiments of the present application. Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the device and module described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0114] Those skilled in the art may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application. The computer software may be stored in a computer-readable storage medium, and when executed, the program may include the processes of the embodiments of the above methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory, or a random access memory.
[0115] Figure 8 The schematic diagram of the structure of the electronic device of the embodiment of the present application is shown, and the embodiment of the present application does not limit the specific implementation of the electronic device. Figure 1 The device controller provided for the PCB (printed circuit board) printer shown.
[0116] like Figure 8 As shown, the electronic device may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .
[0117] Processor 802, communication interface 804, and memory 806 communicate with each other via communication bus 808. Communication interface 804 is used to communicate with other devices, such as client devices or other server network elements. Processor 802 is used to execute program 810, which can specifically perform the relevant steps of the above-mentioned printing control method embodiment.
[0118] Specifically, the program 810 may include program code, which includes computer operating instructions, and may be used to enable the processor 802 to execute the printing control method in any of the above method embodiments.
[0119] In the embodiment of the present application, depending on the type of hardware used, the processor 802 can be a central processing unit (CPU), and the processor 802 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0120] The memory 806 is used to store the program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory, a flash memory device, or other non-volatile solid-state memory device.
[0121] It has a program storage area and a data storage area, which are respectively used to store the program 810 and corresponding data information, such as non-volatile software programs, non-volatile computer executable programs and modules stored in the program storage area.
[0122] The present application also provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program.
[0123] When executed by a processor, the computer program implements one or more steps of the printing control method disclosed in the embodiments of this application. The complete computer program product is embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing the computer program disclosed in the embodiments of this application.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Under the concept of the present invention, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the present invention as described above. For the sake of simplicity, they are not provided in detail. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A printing control method, characterized in that: The printing control method includes: When receiving data to be printed, dividing the data to be printed into character data and color block data; Controlling the nozzle device to print the character data in a first printing direction and to print the color block data based on a preset first ink dot ratio; Controlling the printhead device to move a first preset distance in a stepping direction, and controlling the printhead device to print the color block data based on a preset second ink dot ratio in a second printing direction, wherein the first printing direction is opposite to the second printing direction; Controlling the print head device to move a second preset distance in the stepping direction, and controlling the print head device to print the character data again in the first printing direction, and to print the color block data based on a preset third ink dot ratio; Before the control nozzle device prints the character data in the first printing direction, the method further includes: Control the nozzle device to move to a preset position, the nozzle device includes a starting end and a tail end, the stepping direction of the nozzle device is perpendicular to the first printing direction, the direction from the starting end to the tail end is the same as the stepping direction, and the distance between the starting end and the printed printed circuit board in the stepping direction is greater than or equal to the sum of the first preset distance and the second preset distance.
2. The printing control method according to claim 1, characterized in that: Printing the color block data based on a preset first ink dot ratio includes: Dividing the color block data into color block border data and color block filling data; The color block border data is printed based on a preset color block border ink amount, and the color block filling data is printed based on a preset first ink dot ratio and a preset color block filling ink amount.
3. The printing control method according to claim 2, characterized in that: The controlling the nozzle device to print the color block data based on a preset second ink dot ratio in the second printing direction includes: The nozzle device is controlled to print the color block filling data in a second printing direction based on a preset second ink dot ratio and the color block filling ink amount.
4. The printing control method according to claim 1, characterized in that: The control head device prints the character data in a first printing direction and prints the color block data based on a preset first ink dot ratio, further comprising: Control the preset UV curing lamp to turn on.
5. The printing control method according to claim 4, characterized in that: The method of controlling the nozzle device to move a first preset distance in a stepping direction and controlling the nozzle device to print the color block data based on a preset second ink dot ratio in a second printing direction further includes: The ultraviolet curing lamp is controlled to be turned off.
6. The printing control method according to claim 1, characterized in that: The first ink dot ratio is smaller than the second ink dot ratio, and smaller than the third ink dot ratio.
7. The printing control method according to claim 2, characterized in that: Printing the color block filling data based on a preset first ink dot ratio and a preset color block filling ink amount includes: determining a corresponding first matrix based on a preset first ink dot ratio; Obtaining a second matrix corresponding to the color block filling data, wherein the first matrix and the second matrix are both binary matrices; Performing an AND operation on the first matrix and the second matrix to obtain a target matrix; The color block filling data is printed based on the target matrix and a preset color block filling ink amount.
8. The printing control method according to claim 1, characterized in that: The nozzle device is provided with a plurality of nozzles arranged sequentially from the starting end to the tail end; The first preset distance and the second preset distance are determined according to the distance between any two adjacent nozzles in the same column of the nozzle device and the number of times the printed printed circuit board is printed.
9. A printing control device, characterized in that: The printing control device includes: A division module, configured to divide the data to be printed into character data and color block data when receiving the data to be printed; a first control module, configured to control the print head device to print the character data in a first printing direction and to print the color block data based on a preset first ink dot ratio; a second control module, configured to control the printhead device to move a first preset distance in a stepping direction, and control the printhead device to print the color block data based on a preset second ink dot ratio in a second printing direction, wherein the first printing direction is opposite to the second printing direction; a third control module, configured to control the print head device to move a second preset distance in the stepping direction, and control the print head device to print the character data again in the first printing direction, and to print the color block data based on a preset third ink dot ratio; The nozzle device includes a starting end and a tail end, the stepping direction of the nozzle device is perpendicular to the first printing direction, the direction from the starting end to the tail end is the same as the stepping direction, and the distance between the starting end and the printed printed circuit board in the stepping direction is greater than or equal to the sum of the first preset distance and the second preset distance.
Citation Information
Patent Citations
Solder-resistant processing method of PCB and PCB
CN107509317A
Control method and device for bidirectional rotary printing
CN109435517A