Printing device
The printing device adjusts printing parameters using pre-stored adjustment information from multiple-step testing, ensuring stable and readable print quality of information codes on workpieces by dynamically responding to environmental changes.
Patent Information
- Application Number
- JP2021010011
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-26
- Publication Date
- 2024-11-20
- Estimated Expiration
- 2041-01-26
AI Technical Summary
Existing methods for printing information codes on workpieces, such as circuit boards, face challenges in maintaining print quality due to variations in workpiece materials and shapes, and the need to adjust printing parameters without trial and error to prevent deterioration over time.
A printing device that includes a control unit to adjust printing parameters based on pre-stored adjustment information, acquired through multiple-step testing on verification workpieces, to maintain optimal print quality by associating index values with parameter values, allowing for real-time adjustments without trial and error.
The device ensures stable and readable print quality of information codes by dynamically adjusting printing parameters in response to changes over time, reducing the likelihood of print deterioration and improving readability during operation.
Smart Images

Figure 0007587135000001 
Figure 0007587135000002 
Figure 0007587135000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing device that prints an information code on a workpiece. [Background technology]
[0002] Conventionally, direct marking has been widely used, in which information codes such as QR Codes (registered trademark) are printed directly on media such as substrates that will become products (workpieces), and the results of reading these information codes are used for product management, etc. When printing information codes directly on substrates or other workpieces in this way, the printing quality may deteriorate depending on the condition of the workpiece, and it is therefore necessary to improve the printing quality of the information code in order to stably read the information code.
[0003] In particular, when printing an information code on a workpiece using direct marking, for example, in laser processing, there are various printing parameters such as the oscillation frequency and output of pulsed laser light, and in order to print an information code in a stable and readable manner, it is necessary to select printing parameters suitable for the workpiece. However, even for the same printing processing, suitable printing parameters may change depending on the material and shape of the workpiece, and there is a problem in that it is difficult to select printing parameters suitable for the workpiece.
[0004] As a technique for solving such problems, for example, a system for improving the print quality of an information code disclosed in Patent Document 1 below is known. This print quality improvement system is arranged in the manufacturing process for a workpiece, and is configured to verify the print quality of an information code printed on the workpiece by a printing device using a verification device, and if the print quality is poor (below a specified level), the verification result is fed back to the printing device and printing parameters suitable for the workpiece are reselected to improve the print quality of the information code. Then, when the print quality becomes good (above a specified level), the selected printing parameters are set as printing parameters for mass production, thereby improving the print quality of the information code printed by the printing device. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 2019-061315 Summary of the Invention [Problem to be solved by the invention]
[0006] Incidentally, even if an information code that improves an index related to print quality is printed by selecting and instructing the optimal print parameter value for the work at the start of operation, the index related to the print quality of the information code may deteriorate during operation due to changes over time or changes in the surrounding environment (hereinafter, simply referred to as changes over time, etc.). For example, even if an information code that improves a contrast value is printed by selecting and instructing the optimal output value of the pulse laser light for the work at the start of operation, the contrast value may decrease because the actual output value becomes lower than the selected and instructed value during operation due to changes over time, etc. In such a case, the value of the print parameter (e.g., the output value of the pulse laser light) can be adjusted so as to improve the index (e.g., the contrast of the information code). In this case, the value of the print parameter that improves the value of the acquired index can be obtained as the optimal print parameter value by using a work in operation, not a verification work that is not shipped as a product, and acquiring the value of the index of the information code to be printed together with the value of the print parameter that is changed stepwise for each work. In this way, by obtaining the optimal print parameter value at the current time, the value of the print parameter can be adjusted so as to improve the deteriorated index even during operation.
[0007] However, in the method of obtaining the optimal printing parameter values as described above, it is necessary to change the printing parameter values in many stages in order to obtain a more suitable index value. In this way, if the printing parameter values are changed in many stages during operation through trial and error, an information code with a relatively poor index, that is, an information code that is difficult to read, is printed on the work. There is a problem that such an information code that is difficult to read may be readable immediately after printing, but may be unreadable when the work is returned for repairs, etc.
[0008] The present invention has been made to solve the above-mentioned problems, and its purpose is to provide a configuration that makes it possible to change the printing parameter values to be selected without trial and error, even when improving the printing quality of an information code during operation. [Means for solving the problem]
[0009] In order to achieve the above object, the invention described in claim 1 of the claims is as follows: A printing unit (12, 13) for printing an information code (C) on the work (W); a control unit (11) capable of adjusting values of printing parameters of the printing unit when printing the information code on the work; a storage unit (16) in which information for adjusting the values of the printing parameters is stored in advance as adjustment information for each of the works; an index acquisition unit (11, 14) for acquiring an index value related to the print quality of the information code printed on the work by the printing unit; Equipped with The adjustment information is generated such that, when the control unit changes the value of the printing parameter in multiple stages and the printing unit prints the information code on a verification workpiece that is the same as the workpiece, the value of the index acquired by the index acquisition unit is associated with each of the multiple stages of the printing parameter value. a code area in which the information code is printed on one of the verification workpieces is divided into a plurality of print change areas, and the values of the print parameters when printing the information code are generated by changing the print parameters in a plurality of stages so that the difference between the print parameter values in a print change area including an area that does not need to be recognized among the plurality of print change areas and the print parameter values optimal for the workpiece is greater than the difference between the print parameter values in a print change area required for recognition of the code area and the optimal print parameter values, The control unit is characterized in that, when the value of the index acquired by the index acquisition unit reaches a predetermined deteriorated state, the control unit adjusts the value of the printing parameter so as to improve the predetermined deteriorated state based on the value of the index and the adjustment information stored in the memory unit. The symbols in parentheses above indicate the corresponding relationship with the specific means described in the embodiments described later. Effect of the Invention
[0010] In the invention of claim 1, an index acquisition unit is provided that acquires an index value related to the printing quality of the information code printed on the work by the printing unit. When the control unit changes the value of the printing parameter in multiple stages and the printing unit prints the information code on the verification work, the adjustment information generated so that the index value acquired by the index acquisition unit is associated with each of the multiple stages of the printing parameter value is stored in advance in the storage unit for each work as information for adjusting the value of the printing parameter. Then, when the value of the index acquired by the index acquisition unit reaches a predetermined deteriorated state, the control unit adjusts the value of the printing parameter so as to improve the predetermined deteriorated state based on the value of the index and the adjustment information stored in the storage unit.
[0011] As a result, even if the value of the index related to the printing quality of the information code changes from the optimal state to the above-mentioned predetermined deteriorated state due to a change in the value of the printing parameter during operation in which the information code is printed on the workpiece in sequence, the value of the printing parameter is adjusted so as to improve the predetermined deteriorated state, so that the printing quality of the information code can be improved even during operation. In particular, the adjustment information is generated by associating the values of the printing parameters and the index at multiple stages when printing the information code on the verification workpiece that is the same as the workpiece during operation with the index, so that the change tendency of the value of the printing parameter based on the index can be estimated from the adjustment information. Therefore, when the actual value related to the printing parameter deviates from the designated value due to a change over time or the like, the deviated actual value can be estimated from the current index value and the adjustment information, so that the value of the printing parameter to be selected to bring the value of the index closer to the optimal state (hereinafter also referred to as the selection value) can be set so that the difference between the selection value and the designated value is equal to the difference between the designated value and the actual value estimated as described above. For example, if it is estimated that the designated value "80" is deviated from the actual value "70," the selected value can be set to "90." In other words, since the selected value can be set from the actual value estimated for the print parameter value, even when improving the print quality of the information code during operation, the print parameter value can be changed to the desired value without trial and error.
[0012] In the invention of claim 2, the index is the contrast of the information code, so that the index can be a value that not only easily affects the print quality of the information code but also is easily obtainable.
[0013] In the invention of claim 3, the index is the length in the arrangement direction of each cell that constitutes the information code, so that the index can be a value that is not only likely to affect the printing quality of the information code but also easily obtainable.
[0014] In the invention of claim 4, the printing parameter is the laser output of the pulsed laser light irradiated from the printing unit, so that a value that may change from the indicated value during operation can be adopted as the printing parameter.
[0015] In the invention of claim 5, when the value of the index acquired by the index acquisition unit reaches a predetermined deteriorated state, the control unit adjusts the value of the printing parameter so as to improve the predetermined deteriorated state based on the value of the index and information obtained by linearly interpolating the adjustment information stored in the storage unit. This makes it possible to estimate the actual value of the printing parameter that has shifted as described above even if the number of index values and printing parameter values stored in advance in the storage unit as adjustment information is small.
[0017] Claim 1 In the invention, the adjustment information is generated by dividing an area where an information code is printed on one verification work into multiple print change areas, and changing the values of the print parameters when printing the information code in multiple stages so that they are different for each print change area. This makes it possible to obtain multiple index values and print parameter values from one verification work, thereby reducing the number of verification works required to generate the adjustment information. [Brief description of the drawings]
[0018] [Figure 1] 1 is a block diagram showing a schematic configuration of a printing device according to a first embodiment. [Diagram 2] 6 is a flowchart illustrating the flow of an adjustment information generation process performed by a control unit of the printing device in the first embodiment. [Diagram 3] 11 is an explanatory diagram illustrating an example of adjustment information generated by the adjustment information generation process. FIG. [Figure 4] 5 is a flowchart illustrating the flow of a printing parameter adjustment process performed by a control unit of the printing device in the first embodiment. [Diagram 5] FIG. 4 is an explanatory diagram illustrating a process for setting a laser output selection value for improving a specified deteriorated state based on the index value acquired when the specified deteriorated state occurs and the adjustment information of FIG. 3. [Figure 6]FIG. 6(A) is an explanatory diagram illustrating the state in which the area in which the information code is printed is divided into seven printing change areas in the second embodiment, and FIG. 6(B) is an explanatory diagram illustrating a method of calculating the contrast value in printing change area Da3. [Figure 7] FIG. 7 is an explanatory diagram for explaining the reason for setting the laser output value in the printing change area Da9 divided as shown in FIG. [Figure 8] Figure 8(A) is an explanatory diagram explaining the relationship between each block and printing change area Da9 at error correction level H, and Figure 8(B) is an explanatory diagram explaining the relationship between each block and printing change area Da9 at error correction level Q. [Figure 9] FIG. 13 is an explanatory diagram illustrating an example in which a print change area is set in codeword units in a modified example of the second embodiment. [Figure 10] FIG. 10(A) is an explanatory diagram explaining the blocks to which each printing change area belongs, and FIG. 10(B) is an explanatory diagram explaining the state of FIG. 10(A) using laser output values set on a block code word basis. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] [First embodiment] Hereinafter, an information code printing device according to a first embodiment of the present invention will be described with reference to the drawings. The printing device 10 according to this embodiment is configured as a device that performs a predetermined printing process to directly print an information code C on a workpiece W that has been transported to a predetermined printing position by a transport device 20. More specifically, the printing device 10 is configured as a laser marking device for direct marking that directly prints the information code C on the workpiece W using a pulsed laser beam.
[0020] The workpiece W is the product to which the information code C is to be attached, and is assumed to be made of various materials such as resin and metal, and to have various shapes such as a flat plate or an inclined surface. The information code C printed on the workpiece W is, for example, a QR code, and is formed such that a plurality of square cells are arranged in a manner that distinguishes between light color cells and dark color cells so that predetermined information is recorded. For this reason, a QR code consisting of a plurality of light color cells and dark color cells is printed on the workpiece W by performing a predetermined printing process on a portion (hereinafter also referred to as a processing target cell) that corresponds to either the light color cells or the dark color cells in the area (hereinafter also referred to as a code area) in which the QR code is provided on the workpiece W.
[0021] 1, the printing device 10 mainly includes a control unit 11, a laser oscillator 12, a laser irradiation unit 13, an imaging unit 14, an input unit 15, a storage unit 16, a display unit 17, and a communication unit 18. The laser oscillator 12 functions as a laser light source that oscillates and emits pulsed laser light L, and in this embodiment, a marking laser such as YAG is used. Note that the laser is not limited to a solid-state laser such as a fiber, and a gas laser or liquid laser may also be used.
[0022] The laser irradiation unit 13 is equipped with a scanner (such as a galvanometer scanner) that reflects the pulsed laser light L emitted from the laser oscillator 12 in a predetermined direction, and a lens that focuses the pulsed laser light L reflected by this scanner at a predetermined position on the workpiece W.
[0023] The control unit 11 is mainly composed of a microcomputer capable of controlling the entire printing device 10, and is made up of a CPU, a system bus, an input / output interface, etc., and functions to perform printing processing by the raster method by adjusting the values of printing parameters such as the laser output (power), irradiation position, and oscillation frequency of the pulsed laser light L to control the laser oscillator 12 and the laser irradiation unit 13, etc. The laser oscillator 12 and the laser irradiation unit 13 can correspond to an example of a "printing unit."
[0024] The imaging unit 14 is a camera equipped with a light receiving sensor (for example, a C-MOS area sensor, a CCD area sensor, etc.), and is arranged so that the imaging range is the information code C printed on the workpiece W by the pulsed laser light L irradiated from the laser irradiation unit 13. The imaging unit 14 is configured to be controlled by the control unit 11 and to output the captured image data to the control unit 11.
[0025] The input unit 15 is an input means for inputting information such as the material of the work W, information to be recorded in the information code C, the code size, finish, etc. (hereinafter also referred to as printing information) to the printer 10, and is configured to include a keyboard, a mouse, and other input devices. When information to be recorded in the information code C is input by the input unit 15, the information code C is generated as a QR code or the like so that the information, etc. is recorded by the control unit 11, and the number of cells constituting the information code C and the arrangement of each cell are determined.
[0026] The storage unit 16 is a storage device including a ROM, a RAM, a HDD, etc., and system programs and the like capable of controlling each piece of hardware such as the laser oscillator 12 and the laser irradiation unit 13 are stored in advance so as to be executable by the control unit 11. The storage unit 16 also stores in advance information for adjusting the values of the printing parameters for each workpiece W as adjustment information. This adjustment information will be described later.
[0027] The display unit 17 is configured with a known liquid crystal display (LCD) or the like, and the display contents are controlled according to the control by the control unit 11. The communication unit 18 is configured as a known communication interface that communicates via a predetermined network such as a LAN, and functions to communicate with external devices in cooperation with the control unit 11.
[0028] In the printing device 10 configured in this manner, an index acquisition process is performed by the control unit 11, and an image of the information code C printed on the workpiece W captured by the imaging unit 14 is used to acquire an index value related to the print quality of the information code C. The control unit 11 and the imaging unit 14 that perform the index acquisition process can correspond to an example of an "index acquisition unit."
[0029] In this embodiment, the contrast of the information code C is used as an index for the print quality of the information code C. After the decoding process is successful and the areas of light color cells and dark color cells in the captured image are determined, the contrast value P of the information code C can be calculated by the following formula (1), where ML1 is the average luminance value of the areas occupied by light color cells in the code area of the captured image, and ML2 is the average luminance value of the areas occupied by dark color cells. P = (ML1 - ML2) / ML1 (1)
[0030] In particular, in this embodiment, when the equipment is installed before the start of operation, the adjustment information generation process performed by the control unit 11 changes the value of the printing parameter in multiple steps to print an information code C on a verification workpiece that is the same as the workpiece W, and the adjustment information is generated and stored in the storage unit 16 so that the index values acquired by the index acquisition process are associated with the values of each printing parameter. Then, during operation, when the value of the index related to the printing quality of the information code C printed on the workpiece W becomes a predetermined deteriorated state due to the printing parameter adjustment process performed by the control unit 11, the value of the printing parameter is adjusted based on the adjustment information etc. associated with the workpiece W and stored in the storage unit 16 so as to improve the predetermined deteriorated state.
[0031] In this embodiment, the laser output value Lp of the pulsed laser light L is adopted as the printing parameter, and when this laser output value Lp is changed in multiple stages to print an information code C on a verification workpiece, the above-mentioned adjustment information is generated so that the acquired contrast value P is associated with the laser output value Lp.
[0032] Hereinafter, the adjustment information generating process performed by the control unit 11 at the time of equipment installation will be described in detail with reference to the flow chart shown in FIG. In addition, when the equipment is installed and is not affected by changes over time or changes in the surrounding environment (hereinafter simply referred to as changes over time, etc.), it is assumed that the values of the printing parameters that give the best index for the workpiece W are known.
[0033] First, the information code C is printed on the verification workpiece with the laser output value (hereinafter, also referred to as the laser output instruction value Lpo) that maximizes the contrast value P of the information code C for the workpiece W (S101 in FIG. 2). Next, the printed information code C is imaged by the imaging unit 14, and a decode process is performed on the imaged image to decode the information code C (S103). If the decoding is successful (Yes in S105), the contrast value P of the information code C is calculated and acquired from the imaged image using the above formula (1) (S107). The contrast value P thus acquired is associated with the laser output value Lp and stored in the memory unit 16 (S109).
[0034] Next, the laser output value Lp is changed and set so as to be decreased according to a preset value (S111), and then the information code C is printed on the next verification workpiece with the changed laser output value Lp (S101). Then, if the decode process for the captured image of the information code C is successful (Yes in S105), the contrast value P acquired from the captured image is associated with the changed laser output value Lp and stored in the storage unit 16 (S109). In this way, the gradually decreased laser output value Lp and the contrast value P of the information code C printed with the laser output value Lp are associated with each other and sequentially stored in the storage unit 16 until the decode process fails.
[0035] Then, if the decoding of the printed information code C fails due to insufficient laser output (No in S105), the laser output value Lp is adjusted in the increasing direction according to a predetermined value from the laser output instruction value Lpo (S113), and the information code C is printed on the next verification work with the changed laser output value Lp (S115). Then, a decode process is performed on the captured image of the printed information code C (S117), and if the decoding is successful (Yes in S119), a contrast value P of the information code C is calculated and acquired from the captured image (S121). The contrast value P thus acquired is associated with the laser output value Lp changed as described above and stored in the storage unit 16 (S123).
[0036] Next, after the laser output value Lp is changed and set so as to be increased according to the above-mentioned predetermined value (S125), the information code C is printed on the next verification workpiece with the changed laser output value Lp (S115). Then, if the decode process for the captured image of this information code C is successful (Yes in S119), the contrast value P acquired from the captured image is associated with the changed laser output value Lp and stored in the storage unit 16 (S123). In this way, the gradually increased laser output value Lp and the contrast value P of the information code C printed with this laser output value Lp are associated with each other and sequentially stored in the storage unit 16 until the decode process fails.
[0037] Then, when the decoding of the printed information code C fails due to excessive laser output (No in S119), this adjustment information generation process ends. From the multiple sets of laser output value Lp and contrast value P obtained by this adjustment information generation process, adjustment information is generated, for example, as illustrated in Fig. 3. From the adjustment information generated in this manner, it is possible to estimate the change tendency of the laser output value Lp for the workpiece W based on the contrast value P.
[0038] In the adjustment information generation process, the laser output value Lp is not limited to being changed so that it is always decreased by the same decrease amount according to the predetermined value, but the decrease amount of the laser output value Lp may be changed according to the acquired contrast value P. For example, after decreasing the laser output value Lp according to the predetermined value a predetermined number of times as an initial investigation, if the change in the contrast value P is small, the decrease amount thereafter may be made larger compared to when the contrast value P changes. This not only reduces the number of verification works for generating the adjustment information, but also reduces the work time for generating the adjustment information. In addition, if decoding fails, the decrease amount from the laser output value Lp that was successfully decoded last time is reduced to search for the minimum value of the laser output value Lp that can be decoded, thereby making it possible to obtain a wide range of laser output values Lp and contrast values P.
[0039] Similarly, in the adjustment information generation process, the laser output value Lp is not limited to being changed and set so that it is always increased by the same increase amount according to the predetermined value, but the increase amount of the laser output value Lp may be changed according to the acquired contrast value P. In addition, when decoding fails, the increase amount from the laser output value Lp that was successfully decoded last time is reduced to search for the maximum value of the laser output value Lp that can be decoded, thereby making it possible to acquire a wide range of the laser output value Lp and the contrast value P. Note that since the laser output value Lp as a printing parameter is likely to change in a decreasing direction due to changes over time, etc., by making the increase amount when changing the laser output value Lp larger than the decrease amount, not only can the number of verification works for generating adjustment information be reduced, but also the work time for generating adjustment information can be reduced.
[0040] Next, the printing parameter adjustment process performed by the control unit 11 to improve the printing quality of the information code C by using the above-mentioned adjustment information during the operation of printing the information code C sequentially on the workpiece W by the printing device 10 will be explained in detail using the flowchart shown in Figure 4, etc.
[0041] When the printing device 10 starts printing the information code C, the control unit 11 starts the print parameter adjustment process. Each time the information code C is printed (S201 in FIG. 4), a decode process is performed on the captured image of the information code C (S203). If the decode process is successful (Yes in S205), the contrast value P of the information code C is calculated from the captured image and acquired as the index value (S207). If the decode process fails (No in S205), a predetermined warning is issued to notify of a printing defect (S209), and the print parameter adjustment process ends.
[0042] If the contrast value P acquired as described above is equal to or greater than a predetermined threshold value Pth, it is determined that the printing parameter laser output value Lp is not in a predetermined deteriorated state that requires adjustment (No in S211), and the laser output value Lp is maintained. Note that the predetermined threshold value Pth can be set to, for example, an intermediate value between the best contrast value P and the contrast value P immediately before the image becomes unreadable.
[0043] Then, when the acquired contrast value P falls below the above-mentioned predetermined threshold value Pth due to aging or the like while sequentially printing the information codes C on each of the many works W, it is determined that a predetermined deteriorated state that requires adjustment of the laser output value Lp has occurred (Yes in S211).In such a case, the laser output value Lp, which is a printing parameter value, is changed (adjusted) based on the acquired contrast value P and the adjustment information previously stored in the storage unit 16 (S213).
[0044] Specifically, since the contrast value Pa less than the predetermined threshold value Pth is acquired, it is assumed that the laser output value Lp deviates from the laser output command value Lpo due to aging or the like, and the deviated actual laser output value Lpa is estimated based on the currently acquired contrast value Pa and the information obtained by linearly interpolating the adjustment information, as shown in FIG. 5. This allows the value of the printing parameter (hereinafter also referred to as the laser output selection value Lpb) to be selected to bring the contrast value P closer to the optimum state to be set so that the difference between the laser output selection value Lpb and the laser output command value Lpo is equal to the difference between the laser output command value Lpo and the actual laser output value Lpa estimated as described above. For example, if it is estimated that the actual laser output value Lpa deviates to "70" with respect to the laser output command value Lpo of "80", the laser output selection value Lpb can be set to "90". In particular, by using information obtained by linearly interpolating the adjustment information as described above, it is possible to estimate the actual values of the printing parameters that have shifted as described above even if the number of index values and printing parameter values that are pre-stored in memory unit 16 as adjustment information is small.
[0045] In addition, when the adjustment information is generated like an upwardly convex curve, when trying to obtain the value of the actual printing parameter based on the value of the index, two candidate values are obtained, and the actual printing parameter value may not be estimated. In such a case, the selection value is set on the premise that the actual printing parameter value is lower than the designated value, and if this setting does not improve the printing quality, the selection value can be reset on the premise that the actual printing parameter value is higher than the designated value. In particular, when the laser output value Lp is adopted as the value of the printing parameter, considering that the fluctuation of the laser output value Lp of the pulsed laser light L is due to short-term fluctuations due to temperature changes and a decrease in the laser output value Lp due to deterioration of parts, it is preferable to first set the laser output selection value Lpb on the premise that the actual laser output value Lpa is lower than the laser output designated value Lpo.
[0046] In addition, even if the adjustment information is generated as a curve that is convex upward, if the value of the index acquired when printing on a verification workpiece at the time of equipment installation with the designated value of the printing parameter (for example, the laser output designated value Lpo) deviates in the decreasing direction from the maximum value on the curve, one of the two candidate values can be estimated as the actual printing parameter value, taking into account the previous measurement data. For example, when the contrast value P falls below a predetermined threshold value Pth, if the contrast value P simply falls as a result of the previous measurement (until it falls below the predetermined threshold value Pth), it can be estimated that the laser output value Lp is lower than the laser output designated value Lpo. On the other hand, if the contrast value P rises once and then falls as a result of the previous measurement, it can be estimated that the laser output value Lp is higher than the laser output designated value Lpo.
[0047] In addition, even if the adjustment information is generated as an upwardly convex curve, or even if the index value acquired when printing on a verification workpiece at the time of equipment installation with the designated value of the printing parameter (for example, the laser output designated value Lpo) deviates in the upward direction from the maximum value on the curve, one of the two candidate values can be estimated as the actual printing parameter value, taking into account the previous measurement data. For example, when the contrast value P falls below a predetermined threshold value Pth, if the contrast value P simply drops as a result of the previous measurement, it can be estimated that the laser output value Lp is higher than the laser output designated value Lpo. On the other hand, if the contrast value P rises once and then falls as a result of the previous measurement, it can be estimated that the laser output value Lp is lower than the laser output designated value Lpo.
[0048] As described above, in the printing device 10 according to this embodiment, an index acquisition process is performed to acquire an index value related to the printing quality of the information code C printed on the workpiece W by the laser irradiation unit 13 or the like. When the control unit 11 changes the value of the printing parameter in multiple stages and the information code C is printed on the verification workpiece by the laser irradiation unit 13 or the like, the adjustment information generated so that the index value acquired by the index acquisition process is associated with each of the multiple stages of the printing parameter value is stored in advance in the storage unit 16 for each workpiece W as information for adjusting the value of the printing parameter. Then, when the value of the index acquired by the index acquisition process during operation becomes a predetermined deteriorated state (Yes in S211), the value of the printing parameter is adjusted so as to improve the predetermined deteriorated state based on the value of the index and the adjustment information stored in the storage unit 16 (S213).
[0049] As a result, even if the value of the index related to the printing quality of the information code C changes from the optimal state to the above-mentioned predetermined deteriorated state due to a change in the value of the printing parameter during operation in which the information code C is sequentially printed on the work W, the value of the printing parameter is adjusted so that the predetermined deteriorated state is improved, so that the printing quality of the information code C can be improved even during operation. In particular, the adjustment information is generated by associating the values of the printing parameters and the index at multiple stages when printing the information code C on the same verification work as the work W during operation with each other, so that the change tendency of the value of the printing parameter based on the index can be estimated from the adjustment information. Therefore, when the actual value (actual laser output value Lpa) related to the printing parameter deviates from the designated value (laser output designated value Lpo) due to a change over time or the like, the deviated actual value can be estimated from the current value of the index and the adjustment information, so that the selection value (laser output selection value Lpb) which is the value of the printing parameter to be selected to bring the value of the index closer to the optimal state can be set so that the difference between this selection value and the designated value is equal to the difference between the designated value and the actual value estimated as described above. In other words, since the above selected values can be set from the actual values estimated for the printing parameters, even when improving the printing quality of information code C during operation, the printing parameters to be selected can be changed with fewer changes without trial and error.
[0050] In this embodiment, the contrast of the information code C is used as the index, so that a value that not only easily affects the print quality of the information code C but also is easily obtainable can be used as the index.
[0051] Note that the index relating to the print quality of the information code C is not limited to the contrast of the information code C, and may be, for example, the length in the arrangement direction of each cell constituting the information code C (cell thickness). Even when the length in the arrangement direction of each cell is used as the index, a value that is not only likely to affect the print quality of the information code but also easily obtainable can be used as the index.
[0052] In addition, in this embodiment, the laser output value Lp of the pulsed laser light L irradiated from the laser irradiation unit 13, etc. is adopted as the value of the printing parameter, so that a value that may change from the indicated value during operation can be adopted as the printing parameter.
[0053] The printing parameter is not limited to the laser output value Lp, and may be, for example, the oscillation frequency, pulse width, pulse interval, scan speed, or the like of the pulse laser light L.
[0054] In this embodiment, the adjustment information is generated by changing the values of the printing parameters when printing the information code C on each of the multiple verification works in multiple stages so that the values of the printing parameters are different for each verification work. As a result, the more verification works there are, the more accurately the adjustment information can be generated that can estimate the change tendency of the printing parameters.
[0055] [Second embodiment] Next, the printing device according to the second embodiment will be described with reference to the drawings. The second embodiment is different from the first embodiment in that the adjustment information is generated based on the values of a plurality of indexes obtained from an image of an information code C printed on one verification workpiece. Therefore, the same reference numerals are used for the components substantially the same as those in the first embodiment, and the description thereof is omitted.
[0056] In this embodiment, the adjustment information is generated by dividing the area where the information code C is printed on one verification work into multiple print change areas, and changing the values of the print parameters when printing the information code C in multiple stages so that they are different for each print change area. This makes it possible to obtain multiple index values and print parameter values from one verification work, thereby reducing the number of verification works required to generate the adjustment information.
[0057] Specifically, as can be seen from Fig. 6(A), the area in which the information code C is printed on the verification work is divided into nine print change areas Da1 to Da9, and the laser output value Lp in each print change area Da1 to Da9 is changed in multiple stages so that it differs from one print change area to another. In this embodiment, the print change area Da1 is set to include two FP patterns (position detection patterns), and the print change area Da2 is set to include the remaining one FP pattern. The remaining areas are set as seven print change areas Da3 to Da9 with the same exclusive area.
[0058] In the print change areas Da1 to Da3, the laser output value Lp is set to the above-mentioned laser output instruction value Lpo in order to make it easier to recognize the rectangular code area (the code area including each of the print change areas Da1 to Da9) in which the information code C is printed from the captured image. Therefore, the print change areas Da1 to Da3 can be considered as one print change area in which the laser output value Lp is the same laser output instruction value Lpo. In each of the print change areas Da4 to Da9, the laser output value Lp is set to a value that increases the amount of change from the laser output instruction value Lpo as it moves away from the print change area Da3 that constitutes part of the outer edge (lower edge) of the code area. Therefore, the print change area Da9 is set to an area in which it is difficult to distinguish between light color cells and dark color cells printed therein, compared to the other print change areas Da1 to Da8.
[0059] Here, the reason why the laser output value Lp in the print change area Da9 is set to a value that results in a large amount of change from the laser output command value Lpo will be described with reference to FIG. If the light color cells and the dark color cells in the print change area Da9 cannot be distinguished and recognized, the data recorded in the print change area Da9 cannot be obtained. However, due to the characteristics of the QR code, the data recorded in the print change area Da9 is two parts, a part of the code word shown by the broken line S1 in FIG. 7 and a part of the code word shown by the broken line S2, and can be corrected by the error correction function of the QR code. Also, the lower and left cells in the print change area Da9 in FIG. 7 constitute a part of a pair of format information, and can be corrected by the error correction function of the format information. And, the remaining part of the light color cells in the print change area Da9 in FIG. 7 is an area that does not have information called a separation pattern that divides the FP pattern and data, so it is an area that does not need to be recognized. For this reason, the laser output value Lp in the print change area Da9 is set to a value that increases the amount of change from the laser output instruction value Lpo. In other words, the difference between the printing parameter values in the easy-to-correct area and the optimal printing parameter values for that work is made larger than the difference between the printing parameter values in the printing change area required to recognize the code area and the above-mentioned optimal printing parameter values.
[0060] As a result, even if the values of the printing parameters when printing the information code C on the verification work are changed in multiple stages so that they are different for each printing change area, the success rate of decoding the information code C is increased, and it is possible to prevent an information code C whose index value cannot be obtained from the captured image from being printed on the verification work.
[0061] In the captured image of the information code C printed on the verification workpiece in this way, the average brightness value of the light color cells and the average brightness value of the dark color cells in each print change area Da1 to Da9 are calculated and applied to the above formula (1) to calculate and obtain the contrast value P for each. More specifically, for example, the average brightness value of the light color cells in the print change area Da3 is calculated from the average brightness value of the 18 black circle parts in FIG. 6(B), and the average brightness value of the dark color cells is calculated from the average brightness value of the 10 white circle parts. At this time, the black circle and the white circle exemplify the position where the brightness value representing one square cell is obtained, and it does not necessarily have to be the brightness value of the center of the square as in FIG. 6(B), and it may be calculated from one pixel constituting one square cell, or may be calculated from the brightness values of multiple pixels in one cell. The print change areas Da1, Da2 and the print change areas Da4 to Da9 are similarly calculated and obtained. The adjustment information is generated such that each of the contrast values P acquired in this manner is associated with the corresponding laser output value Lp.
[0062] In this embodiment, the same laser output value Lp is used for the print change area Da1, the print change area Da2, and the print change area Da3, but each area has its own individual contrast value P. Calculating the contrast value P individually in this way provides a clue as to whether the entire code area has been photographed evenly, and makes it possible to determine whether the lighting is evenly illuminating the entire information code at the time of installation, or whether there are any shadows in any areas.
[0063] In the above-mentioned configuration, since the area where it is difficult to distinguish between light color cells and dark color cells, such as the print change area Da9, is known in advance, it is possible to grasp the code words and blocks that are easily affected when the print parameter values are changed in multiple stages in the print change area for each information code C. Therefore, by setting the error correction level of the information code C according to the area where it is difficult to distinguish, it is possible to increase the success rate of decoding the information code C.
[0064] For example, in the case of a Version 4 QR code, at error correction level H, as shown in Fig. 8(A), the codeword for error correction belongs to one of the four blocks Ba1 to Ba4, but when it becomes impossible to distinguish between light and dark in the print change area Da9, the codewords affected by this are concentrated in two blocks Ba3 and Ba4. Because error correction is performed on a block-by-block basis, the number of errors that can be corrected per block is exceeded, and decoding fails.
[0065] In contrast, when the error correction level is set to Q, as shown in Fig. 8B, even if the error correction codeword belongs to one of the two blocks Bb1 and Bb2 and it becomes impossible to distinguish between light and dark in the print change area Da9, the affected codeword is distributed almost evenly between the two blocks Bb1 and Bb2. Therefore, it is possible to decode without exceeding the number of corrections possible per block.
[0066] As a modified example of this embodiment, each printing change area in which the value of the printing parameter is changed in multiple stages is not limited to being set to the nine printing change areas Da1 to Da9 as described above, but may be set to be divided in another manner depending on the number of index values to be obtained.
[0067] For example, each print change area in which the print parameter value is changed in multiple stages may be set in codeword units. Specifically, as shown in Fig. 9, the QR code of Version 1 is divided into seven print change areas Db1 to Db7 in codeword units, excluding specific patterns such as FP patterns printed with the print parameter value that provides the best index, and format information, and the like, and the print parameter value in each of the print change areas Db1 to Db7 can be changed in multiple stages so that it is different for each print change area.
[0068] In addition, since the portion that can be changed in a QR code with a small version is smaller than that in a QR code with a large version, the difference in the number of cells in each print change area is likely to be large, so at least a part of the format information, etc. may be used as the print change area. For example, if the number of cells (number of code words) constituting the above-mentioned print change area Db1 or the number of cells constituting the print change area Db2 is smaller than others, the difference in the number of cells in each print change area can be reduced by, for example, matching the print parameter values in at least a part of the format information, etc. to the print parameter values in the print change area Db1 or the print parameter values in the print change area Db2.
[0069] In addition, it is preferable that the number of stages for changing the printing parameter values be an odd number, taking into account the characteristics of error correction. In QR Code Version 3 and later, because error correction is performed on a multiple block basis, if errors are concentrated in a specific block, the code will be unable to be decoded even if the number of errors is fewer than the number of codewords that can be corrected in the entire code.
[0070] To solve this problem, it is necessary to evenly distribute the print change area, which is printed with printing parameter values that may not be decodable, across multiple blocks. Many QR codes used in direct part marking (DPM) are relatively small in size, and for QR codes Version 6 and below, the number of blocks is always an even number, except when the number of blocks is 1.
[0071] For this reason, when printing QR codes below Version 6, the printing parameter value is changed to an odd number of steps, and the printing parameter values are changed in the order of the codewords, so that the value of one printing parameter is automatically distributed among multiple blocks. This makes it easier to distribute the printing change area evenly among multiple blocks, even if it becomes impossible to distinguish between light and dark in one printing change area, increasing the success rate of decoding.
[0072] For example, when printing a QR code with two blocks (blocks Bc1 and Bc2) on a verification workpiece in Version 4, if the laser output value Lp, which is the value of the printing parameter, is changed in seven steps from Lp1 to Lp7 to print each printing change area, each printing change area can be distributed to multiple blocks as shown in Figures 10(A) and 10(B). Note that in Figure 10(A), for convenience, the laser output value Lp is indicated by hatching for some codeword parts belonging to block Bc1, and the laser output value Lp is indicated by another hatching for some codeword parts belonging to block Bc2.
[0073] In addition, in order to successfully decode the information code even if the light and dark distinction is no longer possible in the printing change area due to a large change in the printing parameter value, it is desirable to set the printing change area taking into consideration the number of corrections possible per block, rather than using the code words of the entire code as the printing change area.In this case, if the code words to be changed are concentrated in one place in the code area, they will be easily affected by the shadow of the work itself and the intensity of the lighting, so it is desirable to distribute the code words to be changed (printing change area) throughout the entire code.
[0074] The present invention is not limited to the above-described embodiments, and may be embodied as follows, for example. (1) The printing process for printing the information code C on the workpiece W is not limited to the method of scanning the pulsed laser light L to print, and other processing methods such as printing may be used. In this case, the adjustment information can be generated by using printing parameters that are easily changed due to changes over time in that processing method.
[0075] (2) The information code C printed on the work W is not limited to being a QR code, and other types of information codes, such as one-dimensional codes such as barcodes, and two-dimensional codes such as data matrix codes and maxicodes, may also be used.
[0076] (3) In the process (S213) of adjusting the printing parameter value (laser output value Lp) during operation, the value of the printing parameter to be selected (selected value) is not limited to being calculated and set so that the difference between this selected value and the designated value is equal to the difference between the designated value and the estimated actual value. For example, the value may be calculated and set so that the rate of change of the actual value estimated with the designated value as the reference is equal to the rate of change of the designated value with the selected value as the reference. Here, assuming that the rate of change = (arbitrary value - reference value) / reference value, for example, if the estimated actual value is "70" when the designated value is "80", the rate of change is (70-80) / 80 = -0.125. If this value is regarded as a coefficient representing the relationship between the set value and the actually output value and a set value X is obtained such that the actually output value is "80", then -0.125 = (80-X) / X, so that approximately 91.4 can be set as the selected value. [Explanation of symbols]
[0077] 10...Printing device 11...Control unit (index acquisition unit) 12...Laser oscillator (printing unit) 13...Laser irradiation section (printing section) 14...Imaging unit (index acquisition unit) 16...Storage section C...Information code Lp...Laser output value (printing parameter value) Lpo: Laser output indication value P...Contrast value (index value) W…Work
Claims
1. A printing unit that prints an information code on the workpiece; a control unit capable of adjusting values of printing parameters of the printing unit when printing the information code on the workpiece; a storage unit in which information for adjusting the values of the printing parameters is stored in advance as adjustment information for each of the works; an index acquisition unit that acquires an index value related to the print quality of the information code printed on the work by the printing unit; Equipped with The adjustment information is generated so that when the control unit changes the value of the printing parameter in multiple stages and the printing unit prints the information code on a verification workpiece that is the same as the workpiece, the value of the index acquired by the index acquisition unit is associated with each of the multiple stages of the printing parameter value, and the adjustment information is generated by dividing a code area in which the information code is printed on one of the verification works into multiple print change areas, and changing the value of the printing parameter in multiple stages differently for each print change area when printing the information code, so that the difference between the value of the printing parameter in a print change area including an area that does not need to be recognized among the multiple print change areas and the value of the printing parameter that is optimal for the workpiece is larger than the difference between the value of the printing parameter in a print change area required for recognition of the code area and the optimal printing parameter value, The control unit adjusts the value of the printing parameter so as to improve a predetermined deteriorated state based on the value of the index and the adjustment information stored in the memory unit when the value of the index acquired by the index acquisition unit reaches a predetermined deteriorated state.
2. 2. The printing device according to claim 1, wherein the indicator is a contrast of the information code.
3. 2. The printing device according to claim 1, wherein the index is a length in an arrangement direction of each cell constituting the information code.
4. The printing unit prints the information code on the workpiece by scanning and irradiating the workpiece with a pulsed laser light, 4. The printing device according to claim 1, wherein the printing parameter is a laser output of the pulsed laser light.
5. The printing device according to any one of claims 1 to 4, characterized in that when the value of the index acquired by the index acquisition unit reaches a predetermined deteriorated state, the control unit adjusts the value of the printing parameter so as to improve the predetermined deteriorated state based on the value of the index and information obtained by linearly interpolating the adjustment information stored in the memory unit.
Citation Information
Patent Citations
Device for laser beam marking
JP2001300747A
Laser marking device, machining information setting device for laser marker, and computer program
JP2012061494A
Laser marking device, machining condition setting device for laser marker, and computer program
JP2012061495A
Laser processing system, condition corrector, and laser processing method
JP2016175120A
Laser processing device, processing pattern adjusting method for laser processing device, processing pattern adjusting program for laser processing device, computer readable recording medium, and recording apparatus
JP2018001237A
