Printing calibration method and device, electronic equipment and computer storage medium

By adjusting the stepping cycle of the stepper motor and using the target printing calibration coefficient to calibrate the printing equipment, the problem of length deviation during the wire tube printing process is solved, and the accuracy and reliability of printing are improved.

CN119872090AActive Publication Date: 2025-04-25WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD

Patent Information

Application Number
CN202411954327.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

When printing a wire tube, due to the elastic properties of the wire tube, the length of the wire tube may be deviated during the printing process, resulting in inaccurate printing results.

Method used

By obtaining the target printing calibration coefficient of the wire tube to be printed, the coefficient is the tensile compression ratio between the actual length after printing and the theoretical length before printing, the stepping cycle of the stepper motor is adjusted to ensure that the printing device can accurately print the preset length of the wire tube.

Benefits of technology

It effectively solves the problem of length deviation during the wire tube printing process, improves the accuracy and reliability of the printing section length, and makes the printing equipment suitable for more types of wire tube printing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119872090A_ABST
    Figure CN119872090A_ABST
Patent Text Reader

Abstract

The invention discloses a printing calibration method and device, electronic equipment and a computer storage medium. The method comprises the following steps: acquiring a target printing calibration coefficient corresponding to a to-be-printed spool; the target printing calibration coefficient is a stretching compression ratio between the actual length of the section of the to-be-printed line pipe after printing and the theoretical length before printing; determining a target stepping period corresponding to the printing equipment according to the target printing calibration coefficient; and a printing head of the printing equipment is controlled to print according to the target printing period, and a stepping motor of the printing equipment is controlled to drive the to-be-printed line pipe to move forwards according to the target stepping period, so that the problem that the actually printed line pipe is too long or too short in the line pipe printing scene can be solved. And the accuracy and reliability of the printing segment length are improved, so that the printing equipment can meet the printing requirements of more types of line pipes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of printing technology, and in particular to a printing calibration method, device, electronic equipment and computer storage medium. Background Art

[0002] In the actual application scenarios of printing equipment, especially in the process of cable identification in the power, communication, and automation control industries, it is often necessary to print labels on wire tubes. As a commonly used cable protection material, wire tubes have the characteristics of elasticity and shrinkability. Although these characteristics give wire tubes flexibility and adaptability during installation and wiring, they also bring challenges to the printing process of printing equipment.

[0003] Specifically, when the printing device is printing, the wire tube often needs to be stretched or bent according to the guide path of the printing device. Since the wire tube itself has a certain elasticity, if the wire tube cannot maintain a stable state during the printing process, this stretching or bending may cause the actual length of the wire tube during the printing process to deviate from the preset value. Summary of the invention

[0004] The embodiments of the present application provide a printing calibration method, device, electronic device and computer storage medium, which adjust the stepping period of the stepper motor that drives the wire tube to be printed in the printing device to move forward through the target printing calibration coefficient corresponding to the wire tube to be printed, thereby solving the problem of the actual printed wire tube length being too long or too short in the wire tube printing scenario, improving the accuracy and reliability of the printing segment length, and enabling the printing device to be suitable for more types of wire tube printing needs.

[0005] In a first aspect, an embodiment of the present application provides a printing calibration method, the method comprising:

[0006] Obtaining a target printing calibration coefficient corresponding to the wire tube to be printed; the target printing calibration coefficient is a stretching and compression ratio between an actual length of the wire tube to be printed after printing and a theoretical length before printing;

[0007] Determine a target stepping cycle corresponding to the printing device according to the target printing calibration coefficient;

[0008] The print head of the printing device is controlled to print according to the target printing cycle, and the stepping motor of the printing device is controlled to drive the wire tube to be printed to move forward according to the target stepping cycle.

[0009] In a possible implementation, the above-mentioned obtaining of a target printing calibration coefficient corresponding to the wire tube to be printed includes:

[0010] According to the target printing cycle and the initial stepping cycle, the printing device is controlled to print a section of the to-be-printed wire tube of theoretical length, so as to obtain a section of the test wire tube; the initial stepping cycle is equal to the target printing cycle;

[0011] Obtain the actual length of the test line tube;

[0012] Calculate the target printing calibration coefficient corresponding to the to-be-printed wire tube according to the actual length and the theoretical length;

[0013] The above-mentioned determining the target stepping period corresponding to the printing device according to the above-mentioned target printing calibration coefficient includes:

[0014] The initial stepping period is adjusted according to the target printing calibration coefficient to obtain a target stepping period corresponding to the printing device.

[0015] In a possible implementation, the initial stepping period is adjusted according to the target printing calibration coefficient to obtain a target stepping period corresponding to the printing device, including:

[0016] When the target printing calibration coefficient is less than 1, the initial stepping period is reduced to a target multiple to obtain a target stepping period corresponding to the printing device;

[0017] When the target printing calibration coefficient is greater than 1, the initial stepping period is increased to the target multiple to obtain the target stepping period corresponding to the printing device;

[0018] Among them, the above-mentioned target multiple is the above-mentioned target printing calibration coefficient.

[0019] In a possible implementation, the target printing cycle includes a heating time and a cooling time; before and after the initial step cycle is adjusted, the ratio between the heating time and the cooling time corresponding to the print head remains unchanged.

[0020] In a possible implementation, the step of determining a target stepping period corresponding to the printing device according to the target printing calibration coefficient includes:

[0021] The product of the target printing period and the target printing calibration coefficient is calculated to obtain a target stepping period corresponding to the printing device.

[0022] In a possible implementation, the above-mentioned obtaining of a target printing calibration coefficient corresponding to the wire tube to be printed includes:

[0023] Get the target material type corresponding to the wire tube to be printed;

[0024] According to the above target material type, a query is performed in the preset coefficient mapping relationship to obtain the corresponding target printing calibration coefficient; the above preset coefficient mapping relationship is used to characterize the corresponding relationship between the material type of the wire tube and the printing calibration coefficient.

[0025] In a possible implementation, the above-mentioned obtaining of a target printing calibration coefficient corresponding to the wire tube to be printed includes:

[0026] When it is detected that the material type corresponding to the wire tube to be printed by the printing device changes, a target printing calibration coefficient corresponding to the wire tube to be printed is obtained.

[0027] In a possible implementation, the target material types corresponding to the to-be-printed wire tubes are different, and the target printing calibration coefficients are different.

[0028] In a second aspect, an embodiment of the present application provides a printing calibration device, the printing calibration device comprising:

[0029] An acquisition module is used to acquire a target printing calibration coefficient corresponding to the wire tube to be printed; the target printing calibration coefficient is a stretching and compression ratio between an actual length of a section of the wire tube to be printed after printing and a theoretical length before printing;

[0030] A determination module, used to determine a target stepping period corresponding to the printing device according to the target printing calibration coefficient;

[0031] The control module is used to control the print head of the printing device to print according to the target printing cycle, and to control the stepping motor of the printing device to drive the wire tube to be printed to move forward according to the target stepping cycle.

[0032] In a possible implementation, the acquisition module includes:

[0033] A control unit, used for controlling the printing device to print a section of the to-be-printed wire tube of theoretical length according to a target printing cycle and an initial stepping cycle, so as to obtain a section of the test wire tube; the initial stepping cycle is equal to the target printing cycle;

[0034] A first obtaining unit, used to obtain the actual length of the test line tube;

[0035] A calculation unit, used for calculating a target printing calibration coefficient corresponding to the wire tube to be printed according to the actual length and the theoretical length;

[0036] The above determination module is specifically used for:

[0037] The initial stepping period is adjusted according to the target printing calibration coefficient to obtain a target stepping period corresponding to the printing device.

[0038] In a possible implementation, the above-mentioned determination module is specifically used to:

[0039] When the above-mentioned target printing calibration coefficient is less than 1, the above-mentioned initial stepping period is reduced to the target multiple to obtain the target stepping period corresponding to the above-mentioned printing device; when the above-mentioned target printing calibration coefficient is greater than 1, the above-mentioned initial stepping period is increased to the above-mentioned target multiple to obtain the target stepping period corresponding to the above-mentioned printing device; wherein the above-mentioned target multiple is the above-mentioned target printing calibration coefficient.

[0040] In a possible implementation, the target printing cycle includes a heating time and a cooling time; before and after the initial step cycle is adjusted, the ratio between the heating time and the cooling time corresponding to the print head remains unchanged.

[0041] In a possible implementation, the above-mentioned determination module is specifically used to:

[0042] The product of the target printing period and the target printing calibration coefficient is calculated to obtain a target stepping period corresponding to the printing device.

[0043] In a possible implementation, the acquisition module includes:

[0044] A second acquisition unit is used to acquire a target material type corresponding to the wire tube to be printed;

[0045] The query unit is used to query the preset coefficient mapping relationship according to the above target material type to obtain the corresponding target printing calibration coefficient; the above preset coefficient mapping relationship is used to characterize the correspondence between the material type of the wire tube and the printing calibration coefficient.

[0046] In a possible implementation, the acquisition module is specifically used to:

[0047] When it is detected that the material type corresponding to the wire tube to be printed by the printing device changes, a target printing calibration coefficient corresponding to the wire tube to be printed is obtained.

[0048] In a possible implementation, the target material types corresponding to the to-be-printed wire tubes are different, and the target printing calibration coefficients are different.

[0049] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;

[0050] The above-mentioned memory is used to store a computer program, and the above-mentioned computer program is suitable for being loaded by the above-mentioned processor and executing the steps of the method provided by the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0051] In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method provided in the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0052] In an embodiment of the present application, a target printing calibration coefficient corresponding to the wire tube to be printed is obtained; the target printing calibration coefficient is the stretching and compression ratio between the actual length of a section of the wire tube to be printed after printing and the theoretical length before printing; the target stepping cycle corresponding to the printing device is determined according to the target printing calibration coefficient; the print head of the printing device is controlled to print according to the target printing cycle, and the stepping motor of the printing device is controlled to drive the wire tube to be printed to move forward according to the target stepping cycle, so that the stepping cycle of the stepping motor in the printing device that drives the wire tube to be printed forward is adjusted according to the target printing calibration coefficient corresponding to the wire tube to be printed, and the compression or stretching amount of the wire tube movement during the printing process is compensated, so as to solve the problem of the actual printed wire tube length being too long or too short in the wire tube printing scenario, realize segment length calibration, improve the accuracy and reliability of the printed segment length, and enable the printing device to be suitable for more types of wire tube printing needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 A schematic diagram of the structure of a printing device provided as an exemplary embodiment of the present application;

[0055] Figure 2 A flow chart of a printing calibration method provided by an exemplary embodiment of the present application;

[0056] Figure 3 A schematic diagram of a process for obtaining a target printing calibration coefficient provided by an exemplary embodiment of the present application;

[0057] Figure 4A A schematic diagram of a printing effect when a target printing calibration coefficient before printing calibration is less than 1 provided by an exemplary embodiment of the present application;

[0058] Figure 4B A schematic diagram of a printing effect when a target printing calibration coefficient before printing calibration is greater than 1 provided by an exemplary embodiment of the present application;

[0059] Figure 5AA schematic diagram of a target printing cycle and an initial stepping cycle provided for an exemplary embodiment of the present application;

[0060] Figure 5B-Figure 5C A schematic diagram of a target printing cycle and a target stepping cycle provided for an exemplary embodiment of the present application;

[0061] Figure 6 A schematic diagram of the overall implementation process of a printing calibration method provided by an exemplary embodiment of the present application;

[0062] Figure 7 A schematic diagram of the structure of a printing calibration device provided by an exemplary embodiment of the present application;

[0063] Figure 8 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0065] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0066] Please refer to the following Figure 1 , which exemplarily shows a structural diagram of a printing device provided in an embodiment of the present application. Figure 1 As shown, the printing device 100 may include, but is not limited to: a controller 110, a stepper motor 120 and a print head 130. Among them:

[0067] The above-mentioned printing device 100 can be a line numbering machine, which can be used for, but not limited to, printing characters on materials such as PVC sleeves, heat shrink tubes, and self-adhesive labels, such as, but not limited to, stand-alone line numbering machines, online line numbering machines, and Bluetooth line numbering machines. Its working principle is mainly to use thermal printing technology to heat the thermal paper to produce a chemical reaction, thereby displaying text or images. The line numbering machine uses thermal paper as the printing medium. The thermal coating on it is sensitive to heat and will change color when subjected to heat. When the print head of the line numbering machine is heated, the thermal paper changes color due to the heat, thereby forming the required text or image.

[0068] The above-mentioned controller 110 is the brain of the printing device 100, which is mainly responsible for receiving and processing printing instructions from a computer or other device (such as a terminal), and converting them into control signals suitable for the printer, and controlling the print head 130, stepper motor 120 and other components to work together according to the control signals to complete the printing task.

[0069] Specifically, when the controller 110 receives the printing calibration instruction, it can first obtain the target printing calibration coefficient corresponding to the wire tube to be printed, where the target printing calibration coefficient is the stretching and compression ratio between the actual length of a section of the wire tube to be printed after printing and the theoretical length before printing; then, determine the target stepping cycle corresponding to the printing device 100 according to the target printing calibration coefficient; finally, control the print head 130 of the printing device 100 to print according to the target printing cycle, and control the stepping motor 120 of the printing device 100 to drive the wire tube to be printed forward according to the target stepping cycle.

[0070] The stepper motor 120 is mainly responsible for driving the precise movement of the print head 130 and the mechanical transmission mechanism. It is usually composed of a stator, a rotor, a driver and other components, and has a simple structure and is easy to maintain. In the embodiment of the present application, the rotation of the stepper motor 120 can drive the glue roller to rotate after passing through the mechanical transmission mechanism, and then drive the wire tube to move.

[0071] The print head 130 is one of the core components of the printing device 100, and is responsible for transferring printing materials such as ink or toner to the wire tube to form text, images or charts. The structure and working principle of the print head 130 are different according to different printing technologies, and the embodiments of the present application do not limit this.

[0072] It can be understood that the printing device 110 may also include, but is not limited to, one or more buttons, display screens, indicator lights, and the like.

[0073] It can be understood that the printing calibration method provided in the embodiment of the present application can be executed by the controller 110 of the above-mentioned printing device 100, or by the controller 110 of the above-mentioned printing device 100 and a terminal connected to the above-mentioned printing device 100 for communication, and the embodiment of the present application is not limited to this.

[0074] Next, combine Figure 1 , introduces a printing calibration method provided by an exemplary embodiment of the present application. For details, please refer to Figure 2 , which exemplarily shows a flow chart of a printing calibration method provided in an embodiment of the present application. Figure 2 As shown, the printing calibration method includes the following steps:

[0075] S201, obtaining a target printing calibration coefficient corresponding to the wire tube to be printed, where the target printing calibration coefficient is a stretching and compression ratio between an actual length of a section of the wire tube to be printed after printing and a theoretical length before printing.

[0076] Optionally, when the user finds that the actual printing length of the wire tube to be printed deviates, for example, the wire tube after printing is compressed or stretched compared to before printing, the user can input the target printing calibration coefficient corresponding to the wire tube to be printed into the printing device through the display screen or buttons of the printing device based on experience.

[0077] Alternatively, if Figure 3 As shown, the implementation process of the above S201, obtaining the target printing calibration coefficient corresponding to the to-be-printed wire tube, may include but is not limited to the following steps:

[0078] S301, controlling the printing device to print a section of the to-be-printed wire tube of theoretical length according to the target printing cycle and the initial stepping cycle, to obtain a section of the test wire tube.

[0079] Specifically, in the online machine-level printing scenario, the printed image content is printed out row by row of pixels, that is, after printing a row of image content, the stepper motor rotates to drive the wire tube to move forward a row of pixels, and then prints the next row of image content. After all rows of image content are printed, a complete image is formed. The time required to print a row of content image is the printing cycle, and the time required for the stepper motor to rotate and drive the wire tube to move forward a row of pixels is the stepping cycle. Under normal circumstances, the printing cycle and the stepping cycle are equal, that is, printing is started once in a printing cycle, and the stepping motor drives the wire tube to move a row of pixels in a stepping cycle. The printing cycle and the stepping cycle are synchronized (started and ended at the same time) to complete the printing of a row of pixels. At this time, the ratio of the printing cycle to the stepping cycle is 1.0. For example, it takes 1s to print a 10mm long wire tube, and the printing cycle is executed 100 times. The printing cycle = 1 / 100 = 0.01s, and the corresponding stepping cycle also needs to be executed 100 times, and the stepping cycle = 1 / 100 = 0.01s. That is, in the test phase, the initial stepping cycle used to print a section of the to-be-printed wire tube of theoretical length is equal to the target printing cycle. The above theoretical length is the length corresponding to a section of the to-be-printed wire tube before printing in the test phase, and can also be understood as the target length that the to-be-printed wire tube needs to be printed in the test phase. In the test phase, the print head of the printing device can be controlled to print according to the target printing cycle, and the stepping motor of the printing device can be controlled to drive the to-be-printed wire tube to move forward according to the initial stepping cycle equal to the target printing cycle, until a section of the to-be-printed wire tube of theoretical length is printed, corresponding to a section of the test wire tube that has been printed.

[0080] S302, obtaining the actual length of the test line tube.

[0081] Optionally, the printing device may be, but is not limited to, equipped with a distance measuring component (such as, but not limited to, a laser distance meter). After the printing device prints a section of the to-be-printed wire tube of theoretical length to obtain a section of the test wire tube, the printing device may, but is not limited to, use its distance measuring component to scan the section of the test wire tube to obtain the actual length of the test wire tube after printing.

[0082] Optionally, the printing device may also be installed with, but not limited to, an image acquisition component (such as, but not limited to, a camera). After printing a section of the to-be-printed wire tube of theoretical length to obtain a section of the test wire tube, the printing device may also, but not limited to, use its image acquisition component to capture an image of the section of the test wire tube, and use image detection technology to detect the length of the test tube in the captured image to obtain the actual length of the test wire tube after printing.

[0083] Optionally, after the printing device prints a theoretical length of the wire tube to be printed to obtain a test wire tube, the user can, but is not limited to, use measuring tools (such as a ruler, vernier caliper, etc.) to physically measure the printed test wire tube to obtain its actual length, and input the actual length into the printing device through the display screen or buttons of the printing device or a terminal connected to the printing device for communication.

[0084] S303, calculating a target printing calibration coefficient corresponding to the wire tube to be printed according to the actual length and the theoretical length.

[0085] Specifically, after obtaining the actual length of a section of the wire tube to be printed after printing and the theoretical length before printing, the stretching and compression ratio between the actual length and the theoretical length can be directly calculated to obtain the target printing calibration coefficient. The above target printing calibration coefficient can be used to adjust the step cycle of the printing device to more accurately print the wire tube of the target length.

[0086] It can be understood that the above-mentioned target printing calibration coefficient can be a ratio between the actual length and the theoretical length, or it can be an adjustment factor calculated according to the difference between the actual length and the theoretical length, and the embodiment of the present application is not limited to this.

[0087] In some possible embodiments, the implementation process of obtaining the target printing calibration coefficient corresponding to the wire tube to be printed in S201 may include but is not limited to: first obtaining the target material type corresponding to the wire tube to be printed, for example but not limited to first obtaining the model, specification and other information of the wire tube to be printed, and then querying the corresponding target material type through the above information, or directly receiving the target material type input by the user through the display screen or buttons of the printing device or the terminal connected to the printing device, or using the image acquisition component to collect images of the wire tube to be printed, and using the image detection technology to detect the material type of the test tube to be printed in the collected image to obtain the target material type corresponding to the wire tube to be printed, etc. The above target material type refers to the type of material used by the wire tube to be printed. Then, according to the above target material type, query in the preset coefficient mapping relationship to obtain the corresponding target printing calibration coefficient, and the above preset coefficient mapping relationship is used to characterize the corresponding relationship between the material type of the wire tube and the printing calibration coefficient. The above preset coefficient mapping relationship may be but is not limited to a database or table for storing and querying the corresponding relationship between the material type of the wire tube and the printing calibration coefficient. With the development of new materials and printing technology, the above preset coefficient mapping relationship can be updated regularly to ensure its accuracy and applicability. The printing calibration coefficient is a predetermined coefficient used to correct errors caused by differences in material types and movement of the wire tube during the printing process.

[0088] In the embodiment of the present application, by querying the preset coefficient mapping relationship according to the target material type of the wire tube to be printed, the target printing calibration coefficient of the wire tube to be printed can be quickly and accurately obtained, thereby improving printing efficiency and accuracy.

[0089] It can be understood that the target material types corresponding to the above-mentioned wire tubes to be printed are different, and their corresponding target printing calibration coefficients are different, so that differentiated printing calibration can be achieved for the target material types of the wire tubes to be printed, thereby improving the pertinence and accuracy of the printing calibration, thereby further improving the printing effect.

[0090] In some possible embodiments, the implementation process of obtaining the target printing calibration coefficient corresponding to the to-be-printed wire tube in the above S201 may include but is not limited to: when it is detected that the material type corresponding to the to-be-printed wire tube of the printing device changes, the target printing calibration coefficient corresponding to the to-be-printed wire tube is obtained. That is, the printing device may be equipped with a sensor for detecting the material type of the current to-be-printed wire tube. When it is detected that the material type corresponding to the to-be-printed wire tube of the printing device changes, that is, when it is necessary to print the to-be-printed wire tube of a new material type, it may automatically trigger the acquisition of the target printing calibration coefficient corresponding to the current to-be-printed wire tube, so that the printing device can automatically adapt to the printing requirements of different material types without manually adjusting parameters, thereby reducing printing errors caused by material differences and improving the flexibility and usability of the printing device as well as the printing accuracy.

[0091] Please continue to refer to Figure 2 ,like Figure 2 As shown, in the above S201, after obtaining the target printing calibration coefficient corresponding to the to-be-printed wire tube, the printing calibration method may also include but is not limited to:

[0092] S202, determining a target stepping period corresponding to the printing device according to the target printing calibration coefficient.

[0093] Specifically, after the target printing calibration coefficient is obtained, the target stepping cycle can be calculated according to the obtained target printing calibration coefficient, for example, but not limited to, adjusting the reference stepping cycle of the printing device according to the target printing calibration coefficient to obtain the target stepping cycle. The above-mentioned reference stepping cycle is the rotation cycle of the stepping motor of the printing device under the default setting, for example, but not limited to, the initial stepping cycle used when the calibration coefficient of the test target is to be printed.

[0094] In some possible embodiments, the target printing calibration coefficient may be, but is not limited to, the stretching and compression ratio between the actual length of the to-be-printed wire tube after printing and the theoretical length before printing under the target printing cycle and the initial stepping cycle. The above S202, the implementation process of determining the target stepping cycle corresponding to the printing device according to the target printing calibration coefficient may include, but is not limited to: adjusting the initial stepping cycle according to the target printing calibration coefficient to obtain the target stepping cycle corresponding to the printing device.

[0095] Optionally, the process of adjusting the initial stepping period according to the target printing calibration coefficient to obtain the target stepping period corresponding to the printing device may include but is not limited to:

[0096] When the target print calibration factor is less than 1, such as Figure 4AAs shown, it means that the actual length of the wire tube to be printed after printing is less than the theoretical length before printing, and the actual printed length is compressed. It is necessary to reduce the initial step cycle to the target multiple (i.e., the target printing calibration coefficient) to obtain the target step cycle corresponding to the printing device, so that more step cycles can be included in one target printing cycle during the printing process, so that the printed content is elongated to compensate for the compression of the print. For example, under ideal conditions, the target printing cycle T1 required to print a 100mm length of wire tube is equal to the initial step cycle T2 = 1000, and one initial step cycle corresponds to a 0.1mm movement of the wire tube. In the test phase, if the theoretical length is 100mm and the actual length is 95mm, the print length is compressed. In an initial stepping cycle, the actual distance that the stepper motor drives the bobbin to move is less than the distance of a row of pixels. That is, when the stepper motor is not calibrated, the actual printed bobbin length is 95mm after 1000 initial stepping cycles. In an initial stepping cycle, the bobbin actually moves only 0.095mm. At this time, if the ratio of the target print cycle to the stepping cycle is still 1.0 (that is, the target print cycle and the target stepping cycle are equal), the actual printed length after starting a target print cycle is less than one. row pixel distance, the target printing calibration coefficient P1=0.95 can be determined; after the above segment length calibration is performed according to the above target printing calibration coefficient, a wire tube with a length of 100mm is printed. The target printing cycle is executed 1000 times in total. The target stepping cycle is executed 1000 / 0.95 times because it is reduced to 0.95 times of the initial printing cycle. The length of the wire tube moved in each target stepping cycle is 0.095mm. Therefore, the actual total printing length of the wire tube in 1000 / 0.95 target stepping cycles is L=(1000 / 0.95)×0.095=100mm, and the printing segment length calibration is realized.

[0097] When the target print calibration factor is greater than 1, such as Figure 4BAs shown, it means that the actual length of the wire tube to be printed after printing is greater than the theoretical length before printing, and the actual printed length is stretched. In this case, the initial stepping cycle needs to be increased to the target multiple (i.e., the target printing calibration coefficient) to obtain the target stepping cycle corresponding to the printing device, so that a target printing cycle can contain fewer stepping cycles during the printing process, so that the printed content is compressed to compensate for the stretching of the print. For example, when the theoretical length is 100mm and the actual length is 105mm, the printed length is stretched. The actual distance the stepper motor drives the wire tube to move in an initial stepping cycle is greater than the distance of one line of pixels. That is, when the stepper motor steps 1000 initial stepping cycles without calibration, the actual printed wire tube length is 105mm. In one initial stepping cycle, the wire tube actually moves only 0.105mm. At this time, if the ratio of the target printing cycle to the stepping cycle is still 1.0 (i.e., the target printing cycle and the target stepping cycle are equal), the actual printed length after starting a target printing cycle is greater than the distance of one line of pixels. , the target printing calibration coefficient P1=105 / 100=1.05 can be determined; after the segment length calibration is performed according to the target printing calibration coefficient, a wire tube with a length of 100mm is printed. The target printing cycle is executed 1000 times in total. The target stepping cycle is executed 1000 / 1.05 times because it is increased to 1.05 times of the initial printing cycle. The length of the wire tube moved in each target stepping cycle is 0.105mm. Therefore, the actual total printed length of the wire tube in the target stepping cycle of 1000 / 1.05 times is L=(1000 / 1.05)×0.105=100mm, and the printing segment length calibration is achieved.

[0098] Alternatively, if Figure 5A As shown in the figure, under ideal printing conditions, the ratio between the target printing cycle T1 and the initial step cycle T2 used by the printing device is 1. At this time, accurate segment length printing can be achieved without calibration. However, when the actual printing length is compressed, after printing calibration, Figure 5B As shown in FIG. 1 , due to the reduction of the step cycle, the ratio between the target printing cycle T1 and the adjusted target step cycle T3 will be greater than 1. When the actual printing length is stretched, after the printing calibration, as shown in FIG. Figure 5C As shown, due to the increase in the step cycle, the ratio between the target printing cycle T1 and the adjusted target step cycle T3 will be less than 1. The above target printing cycle includes heating time t1 and cooling time t2. The ratio between heating time t1 and cooling time t2 is different, and the density of the corresponding printing by the print head is also different. In order to keep the print density on the wire tube to be printed unchanged before and after calibration, the ratio between the heating time and cooling time corresponding to the print head will remain unchanged before and after the adjustment of the above initial step cycle, so as to achieve the actual printing length of the calibration wire tube while ensuring the printing effect on the wire tube.

[0099] In some possible embodiments, the above S202, the implementation process of determining the target step cycle corresponding to the printing device according to the printing calibration coefficient may include but is not limited to: calculating the product between the target printing cycle and the target printing calibration coefficient to obtain the target step cycle corresponding to the printing device. For example, when the target printing calibration coefficient under the target printing cycle T1 is P1, the calibrated target step cycle T3 = T1×P1 can be calculated.

[0100] S203, controlling the print head of the printing device to print according to the target printing cycle, and controlling the stepping motor of the printing device to drive the to-be-printed wire tube to move forward according to the target stepping cycle.

[0101] Specifically, after determining the target stepping cycle, the controller of the printing device will control the printing operation of the print head according to the target printing cycle, and at the same time, control the rotation of the stepping motor according to the target stepping cycle, thereby driving the wire tube to be printed to move forward at an appropriate speed and step length. The control of the print head and the stepping motor is synchronous to ensure the accuracy and continuity of printing.

[0102] In an embodiment of the present application, through the stretching and compression ratio between the actual length of a section of the wire tube to be printed after printing and the theoretical length before printing, that is, the target printing calibration coefficient corresponding to the wire tube to be printed, the stepping cycle of the stepper motor that drives the wire tube to be printed forward in the printing device is adjusted before printing, thereby compensating for the compression or stretching amount of the wire tube movement during the printing process, solving the problem of the actual printed wire tube length being too long or too short in the wire tube printing scenario, realizing segment length calibration, and improving the accuracy and reliability of the printed segment length, so that the printing device can be suitable for more types of wire tube printing needs.

[0103] Please refer to the following Figure 6 , which exemplarily shows a schematic diagram of the implementation process of a printing calibration method provided in an embodiment of the present application. Figure 6 As shown, when the user manually triggers or the printing device automatically triggers the segment length calibration (print calibration), after the printing device turns on the segment length calibration (print calibration), it can directly query the target material type corresponding to the obtained wire tube to be printed through the preset coefficient mapping relationship to obtain the target printing calibration coefficient of the wire tube to be printed. The printing device can also first print a theoretical length of the wire tube to be printed, and then measure the actual length of the test wire tube after printing, and calculate the target printing calibration coefficient of the wire tube to be printed based on the actual length and the theoretical length. Then, the target step cycle can be determined based on the target printing calibration coefficient by referring to a similar process as S202, but is not limited to. Finally, the print head of the printing device is controlled to print according to the target printing cycle. At the same time, the stepper motor of the printing device is controlled according to the above-mentioned target step cycle to drive the above-mentioned wire tube to be printed to move forward, so as to complete the segment length calibration and achieve more accurate printing.

[0104] Please refer to the following Figure 7 , which is a schematic diagram of the structure of a printing calibration device provided in an embodiment of the present application. Figure 7 As shown, the printing calibration device 700 comprises:

[0105] The acquisition module 710 is used to acquire a target printing calibration coefficient corresponding to the wire tube to be printed; the target printing calibration coefficient is a stretching and compression ratio between an actual length of a section of the wire tube to be printed after printing and a theoretical length before printing;

[0106] A determination module 720, configured to determine a target stepping period corresponding to the printing device according to the target printing calibration coefficient;

[0107] The control module 730 is used to control the print head of the printing device to print according to the target printing cycle, and to control the stepping motor of the printing device to drive the wire tube to be printed to move forward according to the target stepping cycle.

[0108] In a possible implementation, the acquisition module 710 includes:

[0109] A control unit, used for controlling the printing device to print a section of the to-be-printed wire tube of theoretical length according to a target printing cycle and an initial stepping cycle, so as to obtain a section of the test wire tube; the initial stepping cycle is equal to the target printing cycle;

[0110] A first obtaining unit, used to obtain the actual length of the test line tube;

[0111] A calculation unit, used for calculating a target printing calibration coefficient corresponding to the wire tube to be printed according to the actual length and the theoretical length;

[0112] The determination module 720 is specifically used for:

[0113] The initial stepping period is adjusted according to the target printing calibration coefficient to obtain a target stepping period corresponding to the printing device.

[0114] In a possible implementation, the determination module 720 is specifically configured to:

[0115] When the above-mentioned target printing calibration coefficient is less than 1, the above-mentioned initial stepping period is reduced to the target multiple to obtain the target stepping period corresponding to the above-mentioned printing device; when the above-mentioned target printing calibration coefficient is greater than 1, the above-mentioned initial stepping period is increased to the above-mentioned target multiple to obtain the target stepping period corresponding to the above-mentioned printing device; wherein the above-mentioned target multiple is the reciprocal of the above-mentioned target printing calibration coefficient.

[0116] In a possible implementation, the target printing cycle includes a heating time and a cooling time; before and after the initial step cycle is adjusted, the ratio between the heating time and the cooling time corresponding to the print head remains unchanged.

[0117] In a possible implementation, the determination module 720 is specifically configured to:

[0118] The product of the target printing period and the target printing calibration coefficient is calculated to obtain a target stepping period corresponding to the printing device.

[0119] In a possible implementation, the acquisition module 710 includes:

[0120] A second acquisition unit is used to acquire a target material type corresponding to the wire tube to be printed;

[0121] The query unit is used to query the preset coefficient mapping relationship according to the above target material type to obtain the corresponding target printing calibration coefficient; the above preset coefficient mapping relationship is used to characterize the correspondence between the material type of the wire tube and the printing calibration coefficient.

[0122] In a possible implementation, the acquisition module 710 is specifically used to:

[0123] When it is detected that the material type corresponding to the wire tube to be printed by the printing device changes, a target printing calibration coefficient corresponding to the wire tube to be printed is obtained.

[0124] In a possible implementation, the target material types corresponding to the to-be-printed wire tubes are different, and the target printing calibration coefficients are different.

[0125] The division of the modules in the above-mentioned printing calibration device is only for illustration. In other embodiments, the printing calibration device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned printing calibration device. The implementation of each module in the printing calibration device provided in the embodiment of this specification can be in the form of a computer program. The computer program can be run on a printing device or a terminal connected to the printing device. The program module constituted by the computer program can be stored in the memory of the printing device or the terminal connected to the printing device. When the computer program is executed by the processor, all or part of the steps of the printing calibration method described in the embodiment of this specification are implemented.

[0126] See next Figure 8 , Figure 8 FIG. 1 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device 800 may include: at least one processor 810 , a network interface 820 , a user interface 830 , a memory 840 , a print head 850 , a stepper motor 860 , and at least one communication bus 870 .

[0127] The communication bus 870 is used to realize the connection and communication between these components.

[0128] The network interface 820 may include a Bluetooth module, a near field communication module, a Wi-Fi module, etc.

[0129] The user interface 830 may include a display screen and a camera; optionally, the user interface 830 may also include a standard wired interface and a wireless interface.

[0130] The processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions of the electronic device 800 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 840, and calling data stored in the memory 840.

[0131] The stepper motor 860 is mainly responsible for driving the precise movement of the print head 850 and the mechanical transmission mechanism. It is usually composed of a stator, a rotor, a driver and other components, and has a simple structure and is easy to maintain. In the embodiment of the present application, the rotation of the stepper motor 860 can drive the glue roller to rotate after passing through the mechanical transmission mechanism, and then drive the wire tube to move.

[0132] The print head 850 is one of the core components of the printing device, which is responsible for transferring printing materials such as ink or toner to the wire tube to form text, images or charts. The structure and working principle of the print head 850 are different according to different printing technologies, and the embodiments of the present application do not limit this.

[0133] Optionally, the processor 810 may be implemented in at least one hardware form of digital signal processing, field programmable gate array, and programmable logic array. The processor 810 may integrate one or a combination of a central processing unit, an image processor, and a modem. It is understandable that the above-mentioned modem may not be integrated into the processor 810, but may be implemented separately through a chip.

[0134] The memory 840 may include a random access memory or a read-only memory. The memory 840 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a target printing calibration coefficient acquisition function, a print head control function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. Figure 8 As shown, the memory 840 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0135] In some possible embodiments, the processor 810 may be used to call program instructions stored in the memory 840 and specifically perform the following operations:

[0136] Obtain a target printing calibration coefficient corresponding to the wire tube to be printed; the target printing calibration coefficient is a stretching and compression ratio between an actual length of the wire tube to be printed after printing and a theoretical length before printing; determine a target stepping cycle corresponding to a printing device according to the target printing calibration coefficient; control a print head of the printing device to print according to the target printing cycle, and control a stepping motor of the printing device to drive the wire tube to be printed to move forward according to the target stepping cycle.

[0137] In some possible embodiments, when the processor 810 executes the above-mentioned acquisition of the target printing calibration coefficient corresponding to the to-be-printed wire tube, it is specifically used to execute:

[0138] According to the target printing cycle and the initial stepping cycle, the printing device is controlled to print a theoretical length of the wire tube to be printed to obtain a test wire tube; the initial stepping cycle is equal to the target printing cycle; the actual length of the test wire tube is obtained; and the target printing calibration coefficient corresponding to the wire tube to be printed is calculated according to the actual length and the theoretical length.

[0139] When the processor 810 determines the target stepping period corresponding to the printing device according to the printing calibration coefficient, it is specifically used to perform: adjusting the initial stepping period according to the target printing calibration coefficient to obtain the target stepping period corresponding to the printing device.

[0140] In some possible embodiments, when the processor 810 performs the adjustment of the initial step cycle according to the target printing calibration coefficient to obtain the target step cycle corresponding to the printing device, it is specifically configured to perform:

[0141] When the above-mentioned target printing calibration coefficient is less than 1, the above-mentioned initial stepping period is reduced to the target multiple to obtain the target stepping period corresponding to the above-mentioned printing device; when the above-mentioned target printing calibration coefficient is greater than 1, the above-mentioned initial stepping period is increased to the above-mentioned target multiple to obtain the target stepping period corresponding to the above-mentioned printing device; wherein the above-mentioned target multiple is the reciprocal of the above-mentioned target printing calibration coefficient.

[0142] In some possible embodiments, the target printing cycle includes a heating time and a cooling time; before and after the initial step cycle is adjusted, the ratio between the heating time and the cooling time corresponding to the print head remains unchanged.

[0143] In some possible embodiments, when the processor 810 performs the above-mentioned determination of the target stepping cycle corresponding to the printing device according to the above-mentioned target printing calibration coefficient, it is specifically used to perform:

[0144] The product of the target printing period and the target printing calibration coefficient is calculated to obtain a target stepping period corresponding to the printing device.

[0145] In some possible embodiments, when the processor 810 executes the above-mentioned acquisition of the target printing calibration coefficient corresponding to the to-be-printed wire tube, it is specifically used to execute:

[0146] Obtain the target material type corresponding to the wire tube to be printed; query the preset coefficient mapping relationship according to the above target material type to obtain the corresponding target printing calibration coefficient; the above preset coefficient mapping relationship is used to characterize the correspondence between the material type of the wire tube and the printing calibration coefficient.

[0147] In some possible embodiments, when the processor 810 executes the above-mentioned acquisition of the target printing calibration coefficient corresponding to the wire tube to be printed, it is specifically used to execute: when it is detected that the material type corresponding to the wire tube to be printed by the printing device changes, the target printing calibration coefficient corresponding to the wire tube to be printed is acquired.

[0148] In some possible embodiments, the target material types corresponding to the to-be-printed wire tubes are different, and the target printing calibration coefficients are different.

[0149] The present application also provides a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the various components of the above printing calibration device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0150] In the above embodiments, all or part of the processes in the above embodiments can be implemented by software, hardware, firmware or any combination thereof. A person of ordinary skill in the art can understand that all or part of the processes in the above embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disk or optical disk. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0151] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims of the present application.

Claims

1. A printing calibration method, characterized in that: The method comprises: Obtaining a target printing calibration coefficient corresponding to the wire tube to be printed; the target printing calibration coefficient is a stretching and compression ratio between an actual length of a section of the wire tube to be printed after printing and a theoretical length before printing; Determining a target stepping period corresponding to the printing device according to the target printing calibration coefficient; The print head of the printing device is controlled to print according to the target printing cycle, and the stepping motor of the printing device is controlled to drive the wire tube to be printed to move forward according to the target stepping cycle.

2. The method according to claim 1, characterized in that The step of obtaining a target printing calibration coefficient corresponding to the wire tube to be printed includes: Controlling the printing device to print a section of the to-be-printed wire tube of theoretical length according to a target printing cycle and an initial stepping cycle to obtain a section of the test wire tube; the initial stepping cycle is equal to the target printing cycle; Obtaining the actual length of the test line tube; Calculate the target printing calibration coefficient corresponding to the to-be-printed wire tube according to the actual length and the theoretical length; The step of determining a target stepping period corresponding to the printing device according to the target printing calibration coefficient includes: The initial stepping period is adjusted according to the target printing calibration coefficient to obtain a target stepping period corresponding to the printing device.

3. The method according to claim 2, characterized in that The step of adjusting the initial stepping period according to the target printing calibration coefficient to obtain a target stepping period corresponding to the printing device includes: When the target printing calibration coefficient is less than 1, the initial stepping period is reduced to a target multiple to obtain a target stepping period corresponding to the printing device; When the target printing calibration coefficient is greater than 1, the initial stepping period is increased to the target multiple to obtain a target stepping period corresponding to the printing device; Wherein, the target multiple is the target printing calibration coefficient.

4. The method according to claim 2, characterized in that The target printing cycle includes a heating time and a cooling time; before and after the initial step cycle is adjusted, the ratio between the heating time and the cooling time corresponding to the print head remains unchanged.

5. The method according to claim 1, characterized in that The step of determining a target stepping period corresponding to the printing device according to the target printing calibration coefficient includes: The product of the target printing period and the target printing calibration coefficient is calculated to obtain a target stepping period corresponding to the printing device.

6. The method according to claim 1, characterized in that The step of obtaining a target printing calibration coefficient corresponding to the wire tube to be printed includes: Get the target material type corresponding to the wire tube to be printed; According to the target material type, a query is performed in the preset coefficient mapping relationship to obtain the corresponding target printing calibration coefficient; the preset coefficient mapping relationship is used to characterize the corresponding relationship between the material type of the wire tube and the printing calibration coefficient.

7. The method according to claim 1, characterized in that The step of obtaining a target printing calibration coefficient corresponding to the wire tube to be printed includes: When it is detected that the material type corresponding to the wire tube to be printed by the printing device changes, a target printing calibration coefficient corresponding to the wire tube to be printed is obtained.

8. The method according to any one of claims 1 to 7, characterized in that: The target material types corresponding to the to-be-printed wire tubes are different, and the target printing calibration coefficients are different.

9. A printing calibration device, characterized in that: The printing calibration device comprises: An acquisition module is used to acquire a target printing calibration coefficient corresponding to the wire tube to be printed; the target printing calibration coefficient is a stretching and compression ratio between an actual length of a section of the wire tube to be printed after printing and a theoretical length before printing; A determination module, used to determine a target stepping period corresponding to a printing device according to the target printing calibration coefficient; The control module is used to control the print head of the printing device to print according to the target printing cycle, and to control the stepping motor of the printing device to drive the wire tube to be printed to move forward according to the target stepping cycle.

10. An electronic device, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 8.

11. A computer storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Precision calibration method for length of printed labels

    CN106956520A

  • Printing size calibration method and device, printing equipment and storage medium

    CN114987070A

  • Printing control method and device, printer and storage medium

    CN117908806A

  • Cutter printing method and device, electronic equipment and computer storage medium

    CN119872100A

  • Full-automatic wire marking machine

    CN215284020U

Cited By

  • Cutter printing method and device, electronic equipment and computer storage medium

    CN119872100A

  • Wire tube printing method and device, electronic equipment and computer storage medium

    CN119872100B

  • Tubing printing method and apparatus, electronic device, and computer storage medium

    WO2026138417A1