Label printing fallback calibration method, device and computer-readable storage medium

By obtaining the difference relationship between the theoretical point distance and the actual point distance, the label printing coordinates are automatically calibrated, which solves the problem of position deviation during the printer label rollback and forward process, and achieves high-precision and efficient printing calibration.

CN116787946BActive Publication Date: 2025-08-29小彩牛智能技术(深圳)有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310919143.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-24
Publication Date
2025-08-29
Estimated Expiration
2043-07-24

AI Technical Summary

Technical Problem

During the label rollback and forwarding of existing printers, the label position deviation is caused by inconsistent motor stress, and the existing calibration methods are poor in accuracy and time-consuming and labor-consuming.

Method used

By obtaining the difference relationship between the theoretical point distance and the actual point distance, the label printing coordinates are automatically calibrated to realize adaptive label printing fallback calibration.

Benefits of technology

Improves the calibration accuracy and efficiency of printing positions and enhances the competitiveness of printing products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116787946B_ABST
    Figure CN116787946B_ABST
Patent Text Reader

Abstract

The present invention discloses a label printing retraction calibration method, device, and computer-readable storage medium. The method comprises: upon completion of the previous printing, obtaining the theoretical dot pitch to be retracted after the start of the current printing; upon completion of the current printing retraction, obtaining the number of labels that have been retracted; during the first forward phase of the current printing, obtaining the actual dot pitch executed by the motor when the number of labels has been advanced, and determining the difference between the theoretical dot pitch and the actual dot pitch; and during the second forward phase of the current printing, calibrating the print coordinates of the remaining labels based on the difference. The present invention implements an adaptive label printing retraction calibration scheme, effectively improving the calibration accuracy and efficiency of the printing position, and enhancing the competitiveness of printed products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of printing technology, and in particular to a label printing fallback calibration method, device, and computer-readable storage medium. Background Art

[0002] In existing printing technology, after the current batch of labels is printed, the printer will push the printed labels out of the tear-off position so that the user can tear off the labels. Since the tear-off position is some distance away from the heating line position of the print head, in order to improve the printing utilization rate of this distance, before printing the next batch of labels, the printer will retract the starting position of the first unprinted label (for example, the label at the tear-off position is used as the first label) to coincide with the heating line of the print head, and then start printing the next batch of labels based on this coincident position. Similarly, after the printing of this batch is completed, the printer will also push the last printed label of this batch to the tear-off position so that the user can tear off the label.

[0003] The current problem is that the tear-off opening of a typical industrial printer is a certain distance from the heating wire, ranging from a few millimeters to a few centimeters. During the two processes of retraction and advancement, the force applied to the motor is unlikely to be completely consistent. Specific influencing factors include the remaining amount of ribbon and the varying friction between the printer's structural components during retraction and advancement. As a result, after the motor performs the two processes, the actual retraction distance of the labels is not equal to the theoretical retraction distance. After these two processes, the position of the next batch of labels to be printed will deviate to a certain extent. This deviation is directly reflected in the position of the image or text printed on the label being either above or below the label.

[0004] The current solution to the above problem is to manually perform calibration and debugging after a period of accumulation. However, this method is not only less accurate, but also time-consuming and labor-intensive.

[0005] In summary, in response to the above-mentioned printing position deviation problem, how to effectively improve the calibration accuracy and efficiency of the printing position to ensure that the high quality requirements of each print are met has become a technical problem that needs to be solved urgently. Summary of the Invention

[0006] In order to solve the above technical defects in the prior art, the present invention proposes a label printing fallback calibration method, which includes:

[0007] When the previous print is completed, obtain the theoretical dot pitch to be returned after the current print starts;

[0008] When the current printing rollback is completed, the number of rolled-back labels is obtained;

[0009] In the first forward phase of this printing, the actual dot pitch of the motor when the number of labels has been advanced is obtained, and the difference between the theoretical dot pitch and the actual dot pitch is determined;

[0010] In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship.

[0011] Optionally, when the previous printing is completed, obtaining the theoretical dot pitch to be rolled back after the current printing starts specifically includes:

[0012] When the previous printing is completed and the motor stops moving, determining the last label that exceeds or passes the detector position, and obtaining a first point distance between the leading edge of the last label and the detector position;

[0013] A second dot distance between the tearing opening position and the heating line position is obtained, and a difference between the second dot distance and the first dot distance is used as the theoretical dot distance.

[0014] Optionally, when the current printing rollback is completed, the number of rolled-back labels is obtained, specifically including:

[0015] controlling the motor to perform a retraction operation of the second dot pitch;

[0016] During the retraction operation, the number of retracted tags passing the detector position is detected.

[0017] Optionally, in the first forward stage of this printing, obtaining the actual dot pitch executed by the motor when the number of labels has been advanced, and determining the difference between the theoretical dot pitch and the actual dot pitch specifically includes:

[0018] Determine the calibration time when the last label passes the detector position again according to the number, and use the time from the start of this printing advance to the calibration time as the first advance stage;

[0019] The counter dot pitch of the motor in the first forward phase is used as the actual dot pitch.

[0020] Optionally, in the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship, specifically including:

[0021] When the actual dot pitch is greater than the theoretical dot pitch, increasing compensation is performed on the printing coordinates of the remaining labels according to a first difference between the actual dot pitch and the theoretical dot pitch;

[0022] When the actual dot pitch is smaller than the theoretical dot pitch, the printing coordinates of the remaining labels are reduced and compensated according to a second difference between the theoretical dot pitch and the actual dot pitch.

[0023] The present invention also provides a label printing fallback calibration device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the following is achieved:

[0024] When the previous print is completed, obtain the theoretical dot pitch to be returned after the current print starts;

[0025] When the current printing rollback is completed, the number of rolled-back labels is obtained;

[0026] In the first forward phase of this printing, the actual dot pitch of the motor when the number of labels has been advanced is obtained, and the difference between the theoretical dot pitch and the actual dot pitch is determined;

[0027] In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship.

[0028] Optionally, when the computer program is executed by the processor, it implements:

[0029] When the previous printing is completed and the motor stops moving, determining the last label that exceeds or passes the detector position, and obtaining a first point distance between the leading edge of the last label and the detector position;

[0030] A second dot distance between the tearing opening position and the heating line position is obtained, and a difference between the second dot distance and the first dot distance is used as the theoretical dot distance.

[0031] Optionally, when the computer program is executed by the processor, it implements:

[0032] controlling the motor to perform a retraction operation of the second dot pitch;

[0033] During the retraction operation, the number of retracted tags passing the detector position is detected.

[0034] Optionally, when the computer program is executed by the processor, it implements:

[0035] Determine the calibration time when the last label passes the detector position again according to the number, and use the time from the start of this printing advance to the calibration time as the first advance stage;

[0036] taking the counter point pitch of the motor in the first forward phase as the actual point pitch;

[0037] When the actual dot pitch is greater than the theoretical dot pitch, increasing compensation is performed on the printing coordinates of the remaining labels according to a first difference between the actual dot pitch and the theoretical dot pitch;

[0038] When the actual dot pitch is smaller than the theoretical dot pitch, the printing coordinates of the remaining labels are reduced and compensated according to a second difference between the theoretical dot pitch and the actual dot pitch.

[0039] The present invention also proposes a computer-readable storage medium, which stores a label printing rollback calibration program. When the label printing rollback calibration program is executed by a processor, the steps of the label printing rollback calibration method as described in any one of the above items are implemented.

[0040] The label printing retraction calibration method, device, and computer-readable storage medium of the present invention implement this method by obtaining the theoretical dot pitch to be retracted after the start of the current printing process upon completion of the previous printing process; obtaining the number of labels that have been retracted upon completion of the current printing process; obtaining the actual dot pitch executed by the motor when the specified number of labels have been advanced during the first forward phase of the current printing process, and determining the difference between the theoretical dot pitch and the actual dot pitch; and calibrating the print coordinates of the remaining labels based on the difference during the second forward phase of the current printing process. This method implements an adaptive label printing retraction calibration scheme, effectively improving the calibration accuracy and efficiency of the printing position, and enhancing the competitiveness of printed products. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0042] Figure 1 is a first flow chart of the label printing fallback calibration method of the present invention;

[0043] Figure 2 is a second flow chart of the label printing fallback calibration method of the present invention;

[0044] Figure 3 is a third flow chart of the label printing fallback calibration method of the present invention;

[0045] Figure 4 is a fourth flow chart of the label printing fallback calibration method of the present invention;

[0046] Figure 5 is a fifth flow chart of the label printing fallback calibration method of the present invention;

[0047] Figure 6 It is a printing structure position relationship diagram of the label printing fallback calibration method of the present invention;

[0048] Figure 7 This is a schematic diagram of the first state of the label printing fallback calibration method of the present invention;

[0049] Figure 8 2. It is a schematic diagram of the second state of the label printing fallback calibration method of the present invention;

[0050] Figure 9 This is a first compensation diagram of the label printing fallback calibration method of the present invention;

[0051] Figure 10 This is a second compensation diagram of the label printing fallback calibration method of the present invention. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0053] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are only used to facilitate the description of the present invention and have no specific meaning. Therefore, "module," "component," or "unit" can be used interchangeably.

[0054] Figure 1 This is the first flow chart of the label printing fallback calibration method of the present invention. This embodiment proposes a label printing fallback calibration method, which includes:

[0055] S1. When the previous printing is completed, obtain the theoretical dot distance to be returned after the current printing starts;

[0056] S2. When the current printing rollback is completed, the number of rolled-back labels is obtained;

[0057] S3. In the first forward phase of this printing, obtaining the actual dot pitch executed by the motor when the number of labels has been advanced, and determining the difference between the theoretical dot pitch and the actual dot pitch;

[0058] S4. In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship.

[0059] Optionally, in this embodiment, the technical idea adopted is to set a detectable reference object, based on which, first determine the theoretical retraction distance required to be executed, and then determine the actual forward distance of the reference object in the retraction stage and the forward stage. Thus, according to the difference between the theoretical retraction distance and the actual forward distance, the compensation value to be calibrated is obtained.

[0060] Optionally, in this embodiment, when executing label printing, if the label sizes of various labels remain consistent, the aforementioned labels may be used as reference objects.

[0061] Optionally, in this embodiment, when performing label printing, if the labels are arranged at equal intervals on the paper support, the above labels or intervals are used as reference objects, and if the labels are arranged continuously on the paper support, the seams between the two labels are used as reference objects.

[0062] Optionally, in this embodiment, based on the above technical ideas, if a fixed spacing is preset when performing non-label printing, and multiple virtual reference segments are divided on the paper support according to the above fixed spacing, the virtual reference segments or the intervals between the virtual reference segments are used as the above reference objects.

[0063] Optionally, in this embodiment, based on the above technical ideas, if a fixed spacing is preset when performing non-label printing, and multiple reference points, reference lines and other reference marks are printed on the paper support according to the above fixed spacing, this reference mark is used as the above reference object.

[0064] Optionally, in this embodiment, based on the above technical ideas, when executing label printing, if the label sizes of each label are inconsistent, the set virtual reference segment or the interval of the virtual reference segment on the paper support or label will be used as the above reference object according to the above preset fixed spacing, or the set reference mark will be used as the above reference object.

[0065] Optionally, in this embodiment, one detection mechanism for the reference object is to perform detection through a detector originally arranged in the printer, that is, to use the existing detector to perform position positioning and position detection of the reference object.

[0066] Optionally, in this embodiment, another detection mechanism for the reference object is to detect the above-mentioned reference object by setting a dedicated calibration detector in the printer; optionally, the above-mentioned calibration detector is set between the print head and the existing detector; further, the closer the distance between the calibration detector and the print head, the higher the calibration efficiency achieved, and the closer the distance between the calibration detector and the existing detector, the higher the calibration accuracy achieved.

[0067] Optionally, in this embodiment, before explaining label printing as an example, please refer to Figure 6 The printing structure position relationship diagram shown in FIG. 1 shows the position relationship of various structures of an existing printer. It can be seen that there is a certain distance between the paper tearing port of the printer and the heating line.

[0068] Specifically, in this embodiment, first, when the previous printing is completed, the theoretical dot pitch to be retracted after the start of this printing is obtained, and the theoretical dot pitch is obtained based on the position detection of the reference object; then, when the retraction of this printing is completed, the number of retracted labels is obtained, wherein the retraction number is the actual retraction number; then, in the first forward stage of this printing, the actual dot pitch executed by the motor when the said number of labels has been advanced is obtained, and the difference relationship between the said theoretical dot pitch and the said actual dot pitch is determined, wherein the actual dot pitch executed by the motor is obtained by counting the dot rows by the counter, and this data is actual data, and the positive and negative values ​​and the size of the difference between the theoretical dot pitch and the actual dot pitch respectively reflect the compensation method and compensation size for retraction and advancement; finally, in the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated based on the said difference relationship. For example, when the retraction is too much, the label coordinates are positively compensated, and when the retraction is too little, the label coordinates are negatively compensated, so that the updated label printing coordinates are consistent with the label theoretical coordinates set at the beginning of the printing program.

[0069] The beneficial effects of implementing this embodiment include obtaining the theoretical dot pitch to be retracted after the start of the current print when the previous print is completed; obtaining the number of labels that have been retracted when the current print is retracted; obtaining the actual dot pitch executed by the motor after the number of labels have been advanced during the first forward phase of the current print, and determining the difference between the theoretical dot pitch and the actual dot pitch; and calibrating the print coordinates of the remaining labels based on the difference during the second forward phase of the current print. This implements an adaptive label print retraction calibration scheme, effectively improving the calibration accuracy and efficiency of the print position, and enhancing the competitiveness of printed products.

[0070] Figure 2 This is a second flow chart of the label printing rollback calibration method of the present invention. Based on the above embodiment, optionally, when the previous printing is completed, the theoretical dot pitch to be rolled back after the current printing starts is obtained, specifically including:

[0071] S11, when the previous printing is completed and the motor stops moving, determining the last label that exceeds or passes the detector position, and obtaining a first point distance between the leading edge of the last label and the detector position;

[0072] S12: Obtain a second dot distance between the tearing opening position and the heating line position, and use the difference between the second dot distance and the first dot distance as the theoretical dot distance.

[0073] Alternatively, in this embodiment, considering that the minimum unit running distance of a label printer is 1 dot row, for example, for a 300 DPI printer, there are 12 dots in 1 mm, so this embodiment will use dots or dot pitch as the quantification of distance.

[0074] Optionally, in this embodiment, the distance from the tear-off position of the printer to the heating line position of the print head of the printer is set as X dot, and the distance from the heating line of the print head to the detector position of the paper is set as Y dot.

[0075] Optionally, in this embodiment, the detection position of the label is set to the leading edge of the paper output direction, that is, the leading edge of a single label is used as its positioning position; further, for the convenience of description and calculation, this embodiment stipulates that the origin of the system coordinate is the tearing edge position, and the unit of measurement is dot.

[0076] Optionally, in this embodiment, after the paper detection operation or the completion of the previous round of printing, the motor is in a stationary state. At this time, the control software of the printer obtains how many labels have been detected in the distance X+Y, and obtains the position coordinates of each label. That is, all labels within the X point (dot) distance from the detector position to the tear-off position direction of the origin are calculated. For example, starting from the tear-off position, the coordinate list is marked in sequence as: LB1(a1), LB2(a2), LB3(a3), LB4(a4), ..., LBz(az), where the coordinate position value at the leading edge of each label is after the brackets, and the unit is dot.

[0077] Alternatively, in this embodiment, please refer to Figure 7 The first state diagram is shown. Considering that the current printing will be rolled back by a distance of X dots, this embodiment obtains all labels within this distance of X dots and then calculates that the last label LBz (i.e., the label closest to the detector and the last label in the label list) exceeds or passes the detector position by M dots. Finally, the calculated distance between label LBz and the detector position is (XM) dots, which is used as the theoretical dot distance of this embodiment.

[0078] Figure 3 This is a third flow chart of the label printing rollback calibration method of the present invention. Based on the above embodiment, optionally, when the current printing rollback is completed, the number of rolled-back labels is obtained, specifically including:

[0079] S21, controlling the motor to perform a retraction operation of the second dot pitch;

[0080] S22. During the retraction operation, detect the number of retracted tags that pass through the detector position.

[0081] Alternatively, in this embodiment, please refer to Figure 8The second state diagram is shown. When a user sends a print request to the printer, the printer processes the print request and, before executing the current print operation, the printer motor retracts a distance of X dots, allowing the first label to retract until its leading edge aligns with the print head heater line. During this retraction process, the detector detects labels. Its strategy is to detect from the start to the end of the retraction, recording the number of labels that pass the detector position as P, and using this number of labels for subsequent software-assisted judgment.

[0082] Figure 4 This is a fourth flow chart of the label printing retraction calibration method of the present invention. Based on the above embodiment, optionally, in the first forward stage of this printing, obtaining the actual dot pitch executed by the motor when the number of labels has been advanced, and determining the difference between the theoretical dot pitch and the actual dot pitch specifically include:

[0083] S31, determining a calibration time when the last label passes the detector position again based on the number, and taking the time from the start of this printing advance to the calibration time as the first advance stage;

[0084] S32: Taking the counter dot pitch of the motor in the first forward phase as the actual dot pitch.

[0085] Optionally, in this embodiment, when the printer processes a print request and executes the current print operation, the printer performs heated printing, resets the counter N before the motor operates, and the detector detects labels again as the motor advances. Combined with the number of retracted labels P obtained above, the final label LBz can be located. The actual number of dot rows N (dots) the motor operates on when label LBx passes the detector again is recorded. This value is used to indicate that the entire segment of labels LB1-LBx has actually moved forward N dots (dots), serving as the actual dot pitch in this embodiment.

[0086] Figure 5 This is a fifth flow chart of the label printing fallback calibration method of the present invention. Based on the above embodiment, optionally, in the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship, specifically including:

[0087] S41. When the actual dot pitch is greater than the theoretical dot pitch, increasing compensation is performed on the printing coordinates of the remaining labels according to a first difference between the actual dot pitch and the theoretical dot pitch;

[0088] S42: When the actual dot pitch is smaller than the theoretical dot pitch, reduce and compensate the printing coordinates of the remaining labels according to a second difference between the theoretical dot pitch and the actual dot pitch.

[0089] Optionally, in this embodiment, considering that the labels are pasted on the same paper support, the deviation value of the last label LBz is equivalent to the deviation values ​​of other labels. Therefore, after the elements in all coordinate lists are compensated and corrected, the positions of each label can be adjusted to the correct state.

[0090] Alternatively, in this embodiment, please refer to Figure 9 The first compensation diagram is shown. Among them, when the actual point N is greater than the theoretical point (XM), it indicates that in the step of motor retraction, the actual number of points retracted is [N-(XM)] more than the theoretical number. The software corrects the detected label coordinate list, and all label coordinate values ​​increase by [N-(XM)] points. At this time, the modified coordinate list is: LB1(a1+[N-(XM)]), LB2(a2+[N-(XM)]), LB3(a3+[N-(XM)]), LB4(a4+[N-(XM)]), ..., LBz(az+[N-(XM)]). As a result, at the end of this printing, the paper output of the entire label segment (LB1-LBz) is moved an additional [N-(XM)] points.

[0091] Alternatively, in this embodiment, please refer to Figure 10 The second compensation diagram is shown. When the actual point N is less than the theoretical point (XM), it indicates that the actual number of points retracted during the motor retraction step is [(XM)-N] points less than the theoretical number. The software corrects the detected label coordinate list, and all label coordinate values ​​are reduced by [(XM)-N] points. At this time, the modified coordinate list is: LB1(a1-[(XM)-N]), LB2(a2-[(XM)-N]), LB3(a3-[(XM)-N]), LB4(a4-[(XM)-N]), ..., LBz(az-[(XM)-N]). As a result, at the end of this printing, the paper output of the entire label segment (LB1-LBz) is moved less by [(XM)-N] points.

[0092] It should be noted that this embodiment artificially divides the entire printing process into a first forward phase and a second forward phase. This division is virtual and does not constitute a printing stop. As can be seen from the above technical solution, the motor advances until LBx passes the detector again, at which point software compensation begins. At this point, although a revised coordinate list has been obtained, the first few labels in the list, such as LB1, have already been printed before they have passed the heater line in the first printing phase, and the positions of these labels remain uncalibrated. Based on this, the present embodiment sets the labels of the first forward stage as blank and not printed at the software level, so that the correction process of retreat and advancement will not affect the printing accuracy of any label coordinates; or, the present embodiment identifies the printed content at the software level, for example, determines whether the object printed in front is a requirement for high precision based on the content or the category of the content, and if so, sets the blank and not printed at the software level, that is, the previous printing and the current printing are non-continuous printing, and if not, continuous printing is implemented according to the above-mentioned compensation scheme of the present embodiment; or, the present embodiment identifies the printed content at the software level, on the one hand, determines whether the object printed in front is a requirement for high precision based on the content or the category of the content, and on the other hand, when the content does not have the high precision requirement, detects whether the printing size of the content is within the printing range of the above-mentioned first forward stage, and if it is determined that the object printed in front does not have the high precision requirement and the printing size of the content is within the printing range of the above-mentioned first forward stage, continuous printing is implemented according to the above-mentioned compensation scheme of the present embodiment.

[0093] Based on the above embodiments, the present invention further proposes a label printing fallback calibration device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the following is achieved:

[0094] When the previous print is completed, obtain the theoretical dot pitch to be returned after the current print starts;

[0095] When the current printing rollback is completed, the number of rolled-back labels is obtained;

[0096] In the first forward phase of this printing, the actual dot pitch of the motor when the number of labels has been advanced is obtained, and the difference between the theoretical dot pitch and the actual dot pitch is determined;

[0097] In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship.

[0098] Optionally, when the computer program is executed by the processor, it implements:

[0099] When the previous printing is completed and the motor stops moving, determining the last label that exceeds or passes the detector position, and obtaining a first point distance between the leading edge of the last label and the detector position;

[0100] A second dot distance between the tearing opening position and the heating line position is obtained, and a difference between the second dot distance and the first dot distance is used as the theoretical dot distance.

[0101] Optionally, when the computer program is executed by the processor, it implements:

[0102] controlling the motor to perform a retraction operation of the second dot pitch;

[0103] During the retraction operation, the number of retracted tags passing the detector position is detected.

[0104] Optionally, when the computer program is executed by the processor, it implements:

[0105] Determine the calibration time when the last label passes the detector position again according to the number, and use the time from the start of this printing advance to the calibration time as the first advance stage;

[0106] taking the counter point pitch of the motor in the first forward phase as the actual point pitch;

[0107] When the actual dot pitch is greater than the theoretical dot pitch, increasing compensation is performed on the printing coordinates of the remaining labels according to a first difference between the actual dot pitch and the theoretical dot pitch;

[0108] When the actual dot pitch is smaller than the theoretical dot pitch, the printing coordinates of the remaining labels are reduced and compensated according to a second difference between the theoretical dot pitch and the actual dot pitch.

[0109] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the device embodiment, which will not be repeated here.

[0110] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, which stores a label printing rollback calibration program. When the label printing rollback calibration program is executed by a processor, the steps of the label printing rollback calibration method as described in any one of the above items are implemented.

[0111] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the medium embodiment, which will not be repeated here.

[0112] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0113] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0115] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.

Claims

1. A label printing fallback calibration method, characterized in that: The method comprises: When the previous printing is completed, the theoretical dot distance to be retracted after the current printing starts is obtained, wherein, when the previous printing is completed and the motor stops moving forward, the last label that exceeds or passes the detector position is determined, and a first dot distance between the leading edge of the last label and the detector position is obtained, and a second dot distance between the tear-off position and the heater position is obtained, and the difference between the second dot distance and the first dot distance is used as the theoretical dot distance; When the current printing rollback is completed, the number of rolled-back labels is obtained; In the first forward phase of this printing, the actual dot pitch of the motor when the number of labels has been advanced is obtained, and the difference between the theoretical dot pitch and the actual dot pitch is determined; In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship; in, Determine the calibration time when the last label passes the detector position again according to the number, and use the time from the start of this printing advance to the calibration time as the first advance stage; A complete printing process is divided into the first forward stage and the second forward stage. The first forward stage and the second forward stage are virtual divisions, and there is no situation where printing stops.

2. The label printing fallback calibration method according to claim 1, characterized in that: When the current printing rollback is completed, the number of rolled-back labels is obtained, specifically including: controlling the motor to perform a retraction operation of the second dot pitch; During the retraction operation, the number of retracted tags passing the detector position is detected.

3. The label printing fallback calibration method according to claim 2, characterized in that: In the first forward stage of this printing, obtaining the actual dot pitch executed by the motor when the number of labels has been advanced, and determining the difference between the theoretical dot pitch and the actual dot pitch specifically includes: The counter dot pitch of the motor in the first forward phase is used as the actual dot pitch.

4. The label printing fallback calibration method according to claim 3, characterized in that: In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship, specifically including: When the actual dot pitch is greater than the theoretical dot pitch, increasing compensation is performed on the printing coordinates of the remaining labels according to a first difference between the actual dot pitch and the theoretical dot pitch; When the actual dot pitch is smaller than the theoretical dot pitch, the printing coordinates of the remaining labels are reduced and compensated according to a second difference between the theoretical dot pitch and the actual dot pitch.

5. A label printing fallback calibration device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the computer program implements: When the previous printing is completed, the theoretical dot distance to be retracted after the current printing starts is obtained, wherein, when the previous printing is completed and the motor stops moving forward, the last label that exceeds or passes the detector position is determined, and a first dot distance between the leading edge of the last label and the detector position is obtained, and a second dot distance between the tear-off position and the heater position is obtained, and the difference between the second dot distance and the first dot distance is used as the theoretical dot distance; When the current printing rollback is completed, the number of rolled-back labels is obtained; In the first forward phase of this printing, the actual dot pitch of the motor when the number of labels has been advanced is obtained, and the difference between the theoretical dot pitch and the actual dot pitch is determined; In the second forward stage of this printing, the printing coordinates of the remaining labels are calibrated according to the difference relationship; Among them, the calibration moment when the last label passes through the detector position again is determined according to the quantity, and the start moment of this printing to the calibration moment is taken as the first forward stage; the complete process of this printing is divided into the first forward stage and the second forward stage, and the first forward stage and the second forward stage are virtual divisions, and there is no situation where printing stops.

6. The label printing fallback calibration device according to claim 5, characterized in that: When the computer program is executed by the processor, it realizes: controlling the motor to perform a retraction operation of the second dot pitch; During the retraction operation, the number of retracted tags passing the detector position is detected.

7. The label printing fallback calibration device according to claim 6, characterized in that: When the computer program is executed by the processor, it realizes: taking the counter point pitch of the motor in the first forward phase as the actual point pitch; When the actual dot pitch is greater than the theoretical dot pitch, increasing compensation is performed on the printing coordinates of the remaining labels according to a first difference between the actual dot pitch and the theoretical dot pitch; When the actual dot pitch is smaller than the theoretical dot pitch, the printing coordinates of the remaining labels are reduced and compensated according to a second difference between the theoretical dot pitch and the actual dot pitch.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a label printing rollback calibration program, which, when executed by a processor, implements the label printing rollback calibration method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Self-calibration method and system for thermal transfer label printer structure

    CN112339448A

  • Label printer and label accurate positioning printing method thereof

    CN113978137A