Barcode printing device, printing control method, electronic equipment and storage medium

By introducing an independent carbon ribbon recovery motor and controller into the barcode printer, and adjusting the motor speed according to the operating status and ribbon roll diameter, the problem of difficulty in adjusting ribbon tension in the existing technology is solved, and printing stability and effect are improved.

CN118849652APending Publication Date: 2024-10-29JIANGMEN DASCOM COMP PERIPHERAL
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411176819.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing barcode printers lack a separate motor when recycling the ribbon, resulting in the inability to actively adjust the ribbon tension, which affects the printing effect. Especially when the tension requirements are inconsistent under different operating conditions, it is prone to insufficient or excessive tension.

Method used

A barcode printing device is designed, including a paper feeding motor and a ribbon recycling motor. The controller determines the motor rotation direction and target tension according to the operating status, and adjusts the recycling motor speed according to the ribbon roll diameter to ensure constant output of the ribbon tension. .

Benefits of technology

It realizes the active adjustment of the ribbon tension, improves the stability and reliability of the printer, ensures the printing effect under different operating conditions, and avoids the decrease in printing effect caused by insufficient or excessive tension.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118849652A_ABST
    Figure CN118849652A_ABST
Patent Text Reader

Abstract

The invention discloses a bar code printing device, a printing control method, electronic equipment and a storage medium. The device comprises a printing paper feeding mechanism, a thermal transfer ribbon conveying mechanism, a thermal transfer ribbon recycling mechanism, a paper feeding motor, a thermal transfer ribbon recycling motor, an encoder and a controller. Wherein the paper feeding motor is connected with the printing paper feeding mechanism through the paper feeding transmission mechanism, the thermal transfer ribbon recovery motor is connected with the thermal transfer ribbon recovery mechanism through the thermal transfer ribbon transmission mechanism, the controller is electrically connected with the paper feeding motor and the thermal transfer ribbon recovery motor, and the controller is used for obtaining the operation state of the bar code printing device. The rotating directions of the paper feeding motor and the thermal transfer ribbon recovery motor and the target tension of thermal transfer ribbon recovery are controlled according to the running state, and the rotating speed of the thermal transfer ribbon recovery motor is adjusted according to the target tension and the thermal transfer ribbon rolling diameter, so that the torque of the motor is output constantly, and the target of keeping the tension of the thermal transfer ribbon is achieved; and therefore, the printing effects in different running states are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, the main function of a barcode printer is to form barcodes, text or images on label paper by printing carbon ribbons to meet various identification needs. Barcode printers need to recycle the carbon ribbon during the paper feeding and printing process.

[0003] However, when the existing barcode printer recycles the carbon ribbon, it does not use a separate motor as a power source, but relies on a paper feed motor to complete the carbon ribbon recycling work. Since there is no separate carbon ribbon recycling motor, the recycling tension of the carbon ribbon is completely controlled by the paper feed motor, and the main task of the paper feed motor is to drive the movement of the printing paper. Its output torque and speed are designed according to the paper transmission requirements. Usually, the carbon ribbon recycling tension requirement is not consistent with the paper transmission requirement, which makes the existing barcode printer unable to actively adjust the carbon ribbon tension, and the recycling tension requirements of the barcode printer in different operating states are also different, which makes it easy for the carbon ribbon tension to be insufficient or excessive, affecting the printing effect. Summary of the invention

[0004] The embodiments of the present application provide a barcode printing device, a printing control method, an electronic device and a storage medium, which can at least ensure that the present application determines the rotation direction of the paper feeding motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating status, and further adjusts the speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon roll diameter, so that the motor torque is output constantly, thereby achieving the goal of maintaining the carbon ribbon tension, and thus ensuring the printing effect under different operating conditions.

[0005] In the first aspect, an embodiment of the present application provides a barcode printing device, comprising: a printing paper feed mechanism for transmitting printing media, a carbon ribbon conveying mechanism for transmitting a carbon ribbon through the printing paper feed mechanism, a carbon ribbon recovery mechanism for recovering the carbon ribbon passing through the printing paper feed mechanism, a paper feed motor, a carbon ribbon recovery motor, an encoder and a controller; wherein the paper feed motor is connected to the printing paper feed mechanism through a paper feed transmission mechanism, the carbon ribbon recovery motor is connected to the carbon ribbon recovery mechanism through a carbon ribbon transmission mechanism, and the controller is electrically connected to the encoder, the paper feed motor and the carbon ribbon recovery motor; the controller is used to obtain the operating status of the barcode printing device, determine the rotation direction of the paper feed motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating status, and obtain the carbon ribbon roll diameter corresponding to the carbon ribbon recovery mechanism through the encoder, and adjust the rotation speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon roll diameter.

[0006] In some embodiments, the operating state includes a paper feeding state and a printing state; in the paper feeding state, the controller is used to control the paper feeding motor to rotate reversely to feed paper, and the carbon ribbon recovery motor starts to rotate forward at a first target tension and a first initial speed corresponding to the current carbon ribbon roll diameter, and during the rotation process, as the carbon ribbon roll diameter gradually increases, the actual speed of the carbon ribbon recovery motor is gradually reduced; in the printing state, the controller is used to control the paper feeding motor to rotate forward to feed paper, and the carbon ribbon recovery motor starts to rotate forward at a second target tension and a second initial speed corresponding to the current carbon ribbon roll diameter, and during the rotation process, as the carbon ribbon roll diameter gradually increases, the actual speed of the carbon ribbon recovery motor is gradually reduced; wherein, the first target tension is less than the second target tension.

[0007] In some embodiments, the operating state also includes an idle state; in the idle state, the controller is used to control the paper feeding motor to stop rotating, and the carbon ribbon recovery motor rotates forward at a third target tension and a third initial speed corresponding to the current carbon ribbon roll diameter, and the third target tension is greater than the first target tension, and the third target tension is less than the second target tension.

[0008] In some embodiments, the barcode printing device also includes a support plate, the print head assembly, the print roller, the carbon ribbon conveying mechanism and the carbon ribbon recovery mechanism are arranged on one side of the support plate, the paper feed motor, the paper feed transmission mechanism, the carbon ribbon recovery motor and the carbon ribbon transmission mechanism are arranged on the other side of the support plate, the drive unit of the print roller passes through the support plate and is connected to the paper feed transmission mechanism, and the drive unit of the carbon ribbon recovery mechanism passes through the support plate and is connected to the carbon ribbon transmission mechanism.

[0009] In some embodiments, the controller is used to obtain a printer status code corresponding to the barcode printing device, so as to determine the operating status of the barcode printing device under the current working condition according to the printer status code.

[0010] In a second aspect, an embodiment of the present application provides a printing control method for a barcode printing device, the method being applied to a controller in the barcode printing device, the barcode printing device further comprising a printing paper feed mechanism for transmitting a printing medium, a carbon ribbon conveying mechanism for transmitting a carbon ribbon through the printing paper feed mechanism, a carbon ribbon recovery mechanism for recovering the carbon ribbon passing through the printing paper feed mechanism, a paper feed motor, a carbon ribbon recovery motor, an encoder and a controller, the paper feed motor being connected to the printing paper feed mechanism via a paper feed transmission mechanism, the carbon ribbon recovery motor being connected to the carbon ribbon recovery mechanism via a carbon ribbon transmission mechanism, the controller being electrically connected to the encoder, the paper feed motor and the carbon ribbon recovery motor; the method comprising: obtaining the operating status of the barcode printing device; obtaining the carbon ribbon roll diameter corresponding to the carbon ribbon recovery mechanism via the encoder; determining the rotation direction of the paper feed motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating status, and adjusting the rotation speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon roll diameter.

[0011] In some embodiments, the operating state includes a paper rewinding state and a printing state, and the rotation directions of the paper feed motor and the ribbon recovery motor and the target tension of the ribbon recovery are determined according to the operating state, and the speed of the ribbon recovery motor is adjusted according to the target tension and the ribbon roll diameter, including: in the paper rewinding state, the paper feed motor is controlled to rotate in the reverse direction to rewind the paper, the ribbon recovery motor starts to rotate forward at a first target tension and a first initial speed corresponding to the current ribbon roll diameter, and gradually reduces the actual speed of the ribbon recovery motor as the ribbon roll diameter gradually increases during the rotation process; in the printing state, the paper feed motor is controlled to rotate forward to feed the paper, the ribbon recovery motor starts to rotate forward at a second target tension and a second initial speed corresponding to the current ribbon roll diameter, and gradually reduces the actual speed of the ribbon recovery motor as the ribbon roll diameter gradually increases during the rotation process; wherein, the first target tension is less than the second target tension.

[0012] In some embodiments, the operating state also includes an idle state, and the method also includes: in the idle state, controlling the paper feeding motor to stop rotating, and the carbon ribbon recovery motor to rotate forward at a third target tension and a third initial speed corresponding to the current carbon ribbon roll diameter, the third target tension is greater than the first target tension, and the third target tension is less than the second target tension.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a printing control method for a barcode printing device as described in any one of the embodiments in the second aspect is implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the printing control method of the barcode printing device as described in any one of the embodiments in the second aspect.

[0015] The present application has at least the following beneficial effects: the present application realizes active adjustment of the carbon ribbon tension by adding an independent carbon ribbon recovery motor and controlling it through a controller. Compared with the traditional barcode printer which only relies on the paper feed motor to complete the carbon ribbon recovery, the present invention can actively adjust the carbon ribbon tension according to the operating state of the barcode printer and the carbon ribbon recovery demand, and solve the problem of reduced printing effect caused by insufficient or excessive carbon ribbon tension, thereby improving the stability and reliability of the printer; it can be understood that the controller in the present invention obtains the operating state of the barcode printer and determines the operating state according to the operating state. The rotation direction of the paper feed motor and the ribbon recovery motor and the target tension of the ribbon recovery can realize the preliminary control of the paper feed motor and the ribbon recovery motor. During the rotation of the ribbon recovery motor, the ribbon roll diameter corresponding to the ribbon recovery mechanism can be obtained through the encoder, and the speed of the ribbon recovery motor can be adjusted according to the target tension and the ribbon roll diameter to ensure that no matter how the ribbon roll diameter changes, the ribbon recovery motor can ensure a constant output of torque to achieve the goal of maintaining the ribbon tension. When the printing medium moves, the ribbon recovery motor tightens the ribbon and maintains the appropriate tension, thereby improving the printing quality and stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a schematic diagram of the front and side directions of a barcode printing device proposed in one embodiment of the present application;

[0017] Figure 2 A schematic diagram of the back side of another embodiment of the present application;

[0018] Figure 3 This is a front view schematic diagram of another embodiment of the present application;

[0019] Figure 4 Another front view schematic diagram of another embodiment of the present application;

[0020] Figure 5 A schematic diagram of the rotation control of a paper feeding motor proposed in another embodiment of the present application;

[0021] Figure 6 A schematic diagram of the rotation control of a carbon ribbon recovery motor according to another embodiment of the present application;

[0022] Figure 7 A flowchart of a printing control method for a barcode printing device proposed in another embodiment of the present application;

[0023] Figure 8 This is a schematic structural diagram of an electronic device proposed in another embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] In some embodiments, although the functional modules are divided in the system diagram, in some cases, the modules can be divided differently from those in the system. The terms first, second, etc. in the specification, claims, and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0026] In addition, unless otherwise clearly specified and limited, the term "connected" should be understood in a broad sense. For example, it can be a fixed connection or a movable connection, a detachable connection or a non-detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or the two can communicate with each other; it can be a direct connection or an indirect connection through an intermediate medium.

[0027] In the description of the embodiments of the present application, the description of reference terms "one embodiment / implementation", "another embodiment / implementation" or "certain embodiments / implementations", "in the above embodiments / implementations", etc. means that the specific features, structures, materials or characteristics described in combination with the implementation or example are included in at least two embodiments or implementations disclosed in the present application. In the disclosure of this application, the schematic representation of the above terms does not necessarily refer to the same embodiment or implementation. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that in the flowchart.

[0028] At present, the main function of a barcode printer is to form a barcode, text or image on a label paper by printing a carbon ribbon to meet various identification requirements. The barcode printer needs to recycle the carbon ribbon during the paper feeding and printing process; however, the existing barcode printer does not use a separate motor as a power source when recycling the carbon ribbon, but relies on the paper feeding motor to complete the recycling of the carbon ribbon. Since there is no separate carbon ribbon recycling motor, the recycling tension of the carbon ribbon is completely controlled by the paper feeding motor, and the main task of the paper feeding motor is to drive the movement of the printing paper. Its output torque and speed are designed according to the transmission requirements of the paper. Usually, the recycling tension requirement of the carbon ribbon is inconsistent with the transmission requirement of the paper, which makes the existing barcode printer unable to actively adjust the carbon ribbon tension, and the recycling tension requirement of the barcode printer under different operating conditions is also different, which makes it easy for the carbon ribbon tension to be insufficient or excessive, affecting the printing effect.

[0029] Based on this, the embodiments of the present application provide a barcode printing device, a printing control method, an electronic device and a storage medium, which can at least ensure that the present application determines the rotation direction of the paper feeding motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating status, and further adjusts the speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon roll diameter, so that the motor torque is output constantly, achieving the goal of maintaining the carbon ribbon tension, and thereby ensuring the printing effect under different operating conditions.

[0030] The embodiments of the present application are further described below in conjunction with other drawings.

[0031] refer to Figure 1 to Figure 2 , Figure 1 This is a schematic diagram of the front and side direction of a barcode printing device proposed in an embodiment of the present application. Figure 2A schematic diagram of the back direction of another embodiment of the present application; in the first aspect, the embodiment of the present application provides a barcode printing device, including: a printing paper feed mechanism for transmitting a print medium, a carbon ribbon conveying mechanism 101 for transmitting a carbon ribbon 111 through the printing paper feed mechanism, a carbon ribbon recovery mechanism 102 for recovering the carbon ribbon 111 passing through the printing paper feed mechanism, a paper feed motor 109, a carbon ribbon recovery motor 107, an encoder and a controller; wherein the paper feed motor 109 is connected to the printing paper feed mechanism via a paper feed transmission mechanism 110, and the carbon ribbon recovery motor 107 is connected to the printing paper feed mechanism via a carbon ribbon transmission mechanism 108. The carbon ribbon recovery mechanism 102 is connected, and the controller is electrically connected to the encoder, the paper feed motor 109 and the carbon ribbon recovery motor 107. The controller is used to obtain the operating status of the barcode printing device, determine the rotation direction of the paper feed motor 109 and the carbon ribbon recovery motor 107 and the target tension of the carbon ribbon recovery according to the operating status, and obtain the carbon ribbon roll diameter corresponding to the carbon ribbon recovery mechanism 102 through the encoder, adjust the rotation speed of the carbon ribbon recovery motor 107 according to the target tension and the carbon ribbon roll diameter to adjust the tension of the carbon ribbon 111, and make the carbon ribbon move synchronously with the printing medium when the paper feed motor 109 drives the printing medium to move.

[0032] Among them, the present application realizes active adjustment of the carbon ribbon tension by adding an independent carbon ribbon recovery motor 107 and controlling it through a controller. Compared with the traditional barcode printer that only relies on the paper feed motor 109 to complete the carbon ribbon recovery, the present invention can actively adjust the carbon ribbon tension according to the operating state of the barcode printer and the carbon ribbon recovery demand, so as to solve the problem of reduced printing effect caused by insufficient or excessive carbon ribbon tension, thereby improving the stability and reliability of the printer; secondly, since the recovery tension requirements of the barcode printer are different under different operating states, the controller in the present invention obtains the operating state of the barcode printer and controls the paper feed motor 109 and the carbon ribbon according to the operating state. The recovery motor 107 determines the rotation direction and the target tension of the carbon ribbon recovery, and adjusts the speed of the carbon ribbon recovery motor 107 according to the carbon ribbon roll diameter so that the motor torque output is constant, thereby achieving the goal of maintaining the carbon ribbon tension, and thus ensuring the printing effect under different operating conditions. When the printing medium moves, the carbon ribbon recovery motor 107 tensions the carbon ribbon and maintains appropriate tension to reduce the relative displacement of the printing medium and the carbon ribbon. The carbon ribbon can move synchronously with the printing medium to ensure that the carbon ribbon is not wrinkled and can pass smoothly through the print head during printing, thereby ensuring the continuity and accuracy of the printing process, improving printing efficiency, reducing printing errors caused by the mismatch between the movement of the carbon ribbon and the printing medium, and ensuring printing quality.

[0033] It can be understood that after preliminarily controlling the rotation direction of the paper feed motor 109 and the carbon ribbon recovery motor 107 according to the operating status and confirming the target tension of the carbon ribbon recovery, the present application will further adjust the speed of the carbon ribbon recovery motor according to the carbon ribbon roll diameter. Specifically, the controller will continuously monitor the operating status of the barcode printing device and the changes in the carbon ribbon roll diameter; when the operating status changes, the controller first adjusts the basic torque setting of the paper feed motor 109 and the carbon ribbon recovery motor 107 according to the preset operating status rules to determine the rotation direction of the paper feed motor 109 and the carbon ribbon recovery motor 107, and determines the initial speed of the carbon ribbon recovery motor 107 based on the target tension and the current carbon ribbon roll diameter; then, the controller fine-tunes the speed of the carbon ribbon recovery motor according to the real-time carbon ribbon roll diameter information to ensure that the ideal carbon ribbon tension can be maintained regardless of how the carbon ribbon roll diameter changes. This dynamic adjustment mechanism based on the carbon ribbon roll diameter can better adapt to the changes in the carbon ribbon during use, further improving the printing quality and stability.

[0034] In some embodiments, the printing paper feed mechanism includes a print head assembly 106 and a print roller 103. The print roller 103 is connected to the paper feed motor 109 through a paper feed transmission mechanism 110. The print roller 103 is used to drive the printing medium to move under the drive of the paper feed motor 109 so that the printing medium and the carbon ribbon pass through the print head assembly 106 together.

[0035] In some embodiments, the barcode printing device also includes a support plate 104, a print head assembly 106, a print roller 103, a carbon ribbon conveying mechanism 101 and a carbon ribbon recovery mechanism 102 are arranged on one side of the support plate 104, a paper feed motor 109, a paper feed transmission mechanism 110, a carbon ribbon recovery motor 107 and a carbon ribbon transmission mechanism 108 are arranged on the other side of the support plate 104, a driving unit of the print roller 103 passes through the support plate 104 and is connected to the paper feed transmission mechanism 110, and a driving unit of the carbon ribbon recovery mechanism 102 passes through the support plate 104 and is connected to the carbon ribbon transmission mechanism 108.

[0036] refer to Figure 3 to Figure 4 , Figure 3 This is a front view diagram of another embodiment of the present application. Figure 4 This is another front view schematic diagram of another embodiment of the present application, where n1 and n2 represent the rotation directions of the ribbon conveying mechanism 101 and the ribbon recycling mechanism 102, respectively. Figure 3 Most of the middle carbon ribbon 111 is wound on the carbon ribbon conveying mechanism 101. At this time, the carbon ribbon roll diameter on the carbon ribbon conveying mechanism 101 is larger, and the carbon ribbon roll diameter on the carbon ribbon recycling mechanism 102 is smaller. Figure 4Most of the carbon ribbon 111 is wound on the carbon ribbon recovery mechanism 102. At this time, the carbon ribbon roll diameter on the carbon ribbon recovery mechanism 102 is larger, and the carbon ribbon roll diameter on the carbon ribbon conveying mechanism 101 is smaller. Therefore, if a separate carbon ribbon recovery motor 107 is not used, but a paper feeding motor 109 is used as the power for paper delivery, the carbon ribbon 111 is pulled by the paper feeding friction, which will affect the printing accuracy due to the different roll diameter forces of the carbon ribbons.

[0037] In some embodiments, the barcode printing device also includes an encoder, and the encoder and the carbon ribbon conveying mechanism 101 are arranged on the same side of the support plate 104. The encoder is electrically connected to the controller, and the encoder is used to obtain the carbon ribbon roll diameter of the carbon ribbon recovery mechanism 102, so that the controller controls the speed of the carbon ribbon recovery motor 107 according to the target tension, so that the motor torque output is constant.

[0038] In some embodiments, the encoder may include a code disk for measuring angular displacement. The present application cooperates with a motor and the code disk. The code disk detects the roll diameter of the carbon ribbon in real time through a sensor and feeds this information back to the controller. The controller adjusts the speed of the motor according to the information provided by the code disk to ensure that the carbon ribbon can maintain appropriate tension, thereby avoiding breakage or damage of the carbon ribbon due to excessive tension while smoothly recycling.

[0039] In some embodiments, the barcode printing device further includes a plurality of ribbon support shafts 105 , which are arranged on the same side of the support plate 104 as the ribbon conveying mechanism 101 , and are used to support the ribbon to avoid obstruction of ribbon transmission.

[0040] In some embodiments, the controller may obtain a printer status code corresponding to the barcode printing device to determine the printer operating status under the current working conditions, and then perform subsequent motor control actions.

[0041] refer to Figures 5 and 6 , Figure 5 This is a schematic diagram of the rotation control of the paper feeding motor proposed in another embodiment of the present application. Figure 6 A schematic diagram of the rotation control of a carbon ribbon recovery motor proposed in another embodiment of the present application; in some embodiments, the operating state includes an idle state, a paper rewinding state, and a printing state. In the idle state, the controller is used to control the paper feed motor to stop rotating, and the carbon ribbon recovery motor rotates forward at a third initial speed corresponding to a third target tension and a current carbon ribbon roll diameter; in the paper rewinding state, the controller is used to control the paper feed motor to rotate in the reverse direction to rewind the paper, and the carbon ribbon recovery motor rotates forward at a first initial speed corresponding to a first target tension and a current carbon ribbon roll diameter; in the printing state, the controller is used to control the paper feed motor to rotate forward to feed the paper, and the carbon ribbon recovery motor rotates forward at a second initial speed corresponding to a second target tension and a current carbon ribbon roll diameter; wherein, it can be seen that Figure 6The third target tension in the idle state in the forward direction is greater than the first target tension in the paper-returning state, and less than the second target tension in the printing state; it can be seen that Figure 5 In the idle state, the paper feed motor stops rotating, in the paper retracting state, the paper feed motor rotates reversely to retract paper, and in the printing state, it rotates forward to feed paper, and the speed of forward rotation to feed paper is greater than the speed of reverse rotation to retract paper. It can be understood that the above-mentioned forward direction corresponds to the conveying direction of the print medium during printing, and the reverse direction corresponds to the conveying direction of the print medium during paper retracting, and when switching states, both the paper feed motor and the carbon ribbon recovery motor have an acceleration or deceleration process, and the above-mentioned description of tension or speed is only for the constant tension or speed reflected after the motor has accelerated or decelerated in different states.

[0042] It is understandable that in the idle state, if the tension is too high, the ribbon will be broken during printing, and if the tension is too low, the ribbon will become loose and wrinkled, and the printed image will be incomplete, affecting the print quality. Therefore, the above-mentioned different target tensions are designed to enable the carbon ribbon recovery motor to tighten the carbon ribbon at any time and maintain appropriate tension, so as to reduce the relative displacement of paper and carbon ribbon, ensure that the carbon ribbon is not wrinkled during printing and can pass through the print head smoothly, thereby ensuring the print quality; specifically, in the idle state, the printing device is in standby mode, and there is no paper or carbon ribbon to be moved. At this time, the main task of the carbon ribbon recovery motor is to rotate and tighten the carbon ribbon, maintain the appropriate tension of the carbon ribbon, ensure that the carbon ribbon is stationary, and ensure that it will not be relaxed or shifted due to external factors (such as gravity, vibration, etc.). This tension needs to be stable and lasting, so that when the printing device switches to the printing state, the carbon ribbon can respond quickly and pass through the print head smoothly; when retracting paper In the state, although the carbon ribbon motor also needs to keep the carbon ribbon taut, the carbon ribbon recovery motor does not need to provide a larger carbon ribbon tension in the paper rewinding state compared to the idle state. This is because in the paper rewinding state, the relative position between the carbon ribbon and the paper changes little due to the printing medium moving backwards. A larger tension will hinder the printing medium from driving the carbon ribbon to move synchronously by friction. Therefore, the carbon ribbon recovery motor can reduce the tension to maintain the stability of the carbon ribbon and prevent the ribbon from being broken, so as to reduce the energy consumption and wear of the printing device. Therefore, the third target tension in the idle state is greater than the first target tension in the paper rewinding state; in the printing state, since the carbon ribbon needs to be continuously recovered, the carbon ribbon recovery motor usually needs to provide the maximum tension to ensure that the carbon ribbon can pass through the print head smoothly and quickly, and remain flat without wrinkling or offset. The third target tension in the idle state is less than the second target tension in the printing state.

[0043] In some embodiments, since the diameter of the carbon ribbon roll changes in the paper reeling state and the printing state, and the change in the carbon ribbon roll diameter will affect the tension required for the carbon ribbon, in the paper reeling state, the controller of the present application is used to control the paper feed motor to rotate reversely to reel the paper, and the carbon ribbon recovery motor starts to rotate forward at a first target tension and a first initial speed corresponding to the current carbon ribbon roll diameter, and gradually decreases the actual speed of the carbon ribbon recovery motor as the carbon ribbon roll diameter gradually increases during the rotation process; in the printing state, the controller is used to control the paper feed motor to rotate forward to feed the paper, and the carbon ribbon recovery motor starts to rotate forward at a second target tension and a second initial speed corresponding to the current carbon ribbon roll diameter, and gradually decreases the actual speed of the carbon ribbon recovery motor as the carbon ribbon roll diameter gradually increases during the rotation process. It can be understood that in the paper rewinding state or the printing state, the carbon ribbon recovery motor rotates in the forward direction, so the carbon ribbon will move from the carbon ribbon conveying mechanism to the carbon ribbon recovery mechanism to ensure that the carbon ribbon can move synchronously with the printing medium and pass through the print head. Therefore, the carbon ribbon roll diameter on the carbon ribbon conveying mechanism will gradually decrease, and the carbon ribbon roll diameter on the carbon ribbon recovery mechanism will gradually increase. When the carbon ribbon roll diameter increases, the mass of the carbon ribbon increases, and the inertia also increases accordingly. It is necessary to reduce the actual speed of the carbon ribbon recovery motor to keep the tension constant. Therefore, after the carbon ribbon recovery motor starts to rotate forward at the target tension and the initial speed corresponding to the current carbon ribbon roll diameter, the speed of the carbon ribbon recovery motor will decrease according to the increase in the carbon ribbon roll diameter to ensure the consistency of the carbon ribbon tension.

[0044] refer to Figure 7 , Figure 7 This is a flow chart of a printing control method for a barcode printing device proposed in another embodiment of the present application. In a second aspect, the embodiment of the present application provides a printing control method for a barcode printing device, the method is applied to a controller in the barcode printing device, the barcode printing device also includes a printing paper feed mechanism for transmitting a print medium, a carbon ribbon conveying mechanism for transmitting a carbon ribbon through the printing paper feed mechanism, a carbon ribbon recovery mechanism for recovering the carbon ribbon passing through the printing paper feed mechanism, a paper feed motor, a carbon ribbon recovery motor and a controller, the paper feed motor is connected to the printing paper feed mechanism through a paper feed transmission mechanism, the carbon ribbon recovery motor is connected to the carbon ribbon recovery mechanism through a carbon ribbon transmission mechanism, and the controller is electrically connected to the paper feed motor and the carbon ribbon recovery motor; the method at least includes the following steps:

[0045] Step S710, obtaining the operating status of the barcode printing device, and obtaining the carbon ribbon roll diameter corresponding to the carbon ribbon recovery mechanism through the encoder;

[0046] Step S720, determining the rotation direction of the paper feeding motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating status, and adjusting the rotation speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon winding diameter.

[0047] In some embodiments, the operating state includes a paper rewinding state and a printing state, and the rotation directions of the paper feed motor and the ribbon recovery motor and the target tension of the ribbon recovery are determined according to the operating state, and the speed of the ribbon recovery motor is adjusted according to the target tension and the ribbon roll diameter, including: in the paper rewinding state, the paper feed motor is controlled to rotate in the reverse direction to rewind the paper, and the ribbon recovery motor starts to rotate forward at a first initial speed corresponding to a first target tension and a current ribbon roll diameter, and gradually reduces the actual speed of the ribbon recovery motor as the ribbon roll diameter gradually increases during the rotation process; in the printing state, the paper feed motor is controlled to rotate forward to feed the paper, and the ribbon recovery motor starts to rotate forward at a second initial speed corresponding to a second target tension and a current ribbon roll diameter, and gradually reduces the actual speed of the ribbon recovery motor as the ribbon roll diameter gradually increases during the rotation process; wherein, the first target tension is less than the second target tension.

[0048] In some embodiments, the running state also includes an idle state, and the method also includes: in the idle state, controlling the paper feed motor to stop rotating, and the carbon ribbon recovery motor to rotate forward at a third target tension and a third initial speed corresponding to the current carbon ribbon roll diameter, the third target tension is greater than the first target tension, and the third target tension is less than the second target tension.

[0049] It should be noted that the process and steps of the method in the above-mentioned second aspect are based on the same concept as the device embodiment of the present application. Their functions and technical effects can be specifically referred to in the device embodiment part and will not be repeated here.

[0050] See also Figure 8 , Figure 8 The hardware structure of an electronic device provided in an embodiment of the present application is shown, and the electronic device includes:

[0051] The processor 810 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant computer programs to implement the technical solutions provided in the embodiments of the present application;

[0052] The memory 820 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 820 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 820, and the processor 810 calls and executes the printing control method of the barcode printing device of the embodiment of this application;

[0053] Input / output interface 830, used to implement information input and output;

[0054] The communication interface 840 is used to realize the communication interaction between the present device and other devices, and the communication can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WI FI, Bluetooth, etc.); and the bus 850 transmits information between each component of the device (such as the processor 810, the memory 820, the input / output interface 830 and the communication interface 840);

[0055] The processor 810 , the memory 820 , the input / output interface 830 and the communication interface 840 are connected to each other in communication within the device via the bus 850 .

[0056] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the printing control method of the above-mentioned barcode printing device.

[0057] The memory, as a computer-readable storage medium, can be used to store software programs and computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0058] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems. The device embodiments described above are merely illustrative, in which the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0059] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A barcode printing device, characterized in that: include: A printing paper feeding mechanism for transmitting printing media, a carbon ribbon conveying mechanism for transmitting a carbon ribbon through the printing paper feeding mechanism, a carbon ribbon recovery mechanism for recovering the carbon ribbon passing through the printing paper feeding mechanism, a paper feeding motor, a carbon ribbon recovery motor, an encoder and a controller; The paper feeding motor is connected to the printing paper feeding mechanism through a paper feeding transmission mechanism, the carbon ribbon recovery motor is connected to the carbon ribbon recovery mechanism through a carbon ribbon transmission mechanism, and the controller is electrically connected to the encoder, the paper feeding motor and the carbon ribbon recovery motor; The controller is used to obtain the operating status of the barcode printing device, determine the rotation direction of the paper feeding motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating status, and obtain the carbon ribbon roll diameter corresponding to the carbon ribbon recovery mechanism through the encoder, and adjust the rotation speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon roll diameter.

2. The barcode printing device according to claim 1, characterized in that: The operating state includes a paper ejection state and a printing state; In the paper-returning state, the controller is used to control the paper-feeding motor to rotate in the reverse direction to rewind the paper, and the carbon ribbon recovery motor starts to rotate in the forward direction at a first initial speed corresponding to the first target tension and the current carbon ribbon roll diameter, and gradually reduces the actual speed of the carbon ribbon recovery motor as the carbon ribbon roll diameter gradually increases during the rotation process; In the printing state, the controller is used to control the paper feeding motor to rotate forward to feed paper, and the carbon ribbon recovery motor starts to rotate forward at a second initial speed corresponding to the second target tension and the current carbon ribbon roll diameter, and gradually reduces the actual speed of the carbon ribbon recovery motor as the carbon ribbon roll diameter gradually increases during the rotation process; Wherein, the first target tension is less than the second target tension.

3. The barcode printing device according to claim 2, characterized in that: The operating state also includes an idle state; in the idle state, the controller is used to control the paper feeding motor to stop rotating, and the carbon ribbon recovery motor rotates forward at a third target tension and a third initial speed corresponding to the current carbon ribbon roll diameter, and the third target tension is greater than the first target tension, and the third target tension is less than the second target tension.

4. The barcode printing device according to claim 1, characterized in that: The barcode printing device also includes a support plate, the print head assembly, the print roller, the carbon ribbon conveying mechanism and the carbon ribbon recovery mechanism are arranged on one side of the support plate, the paper feed motor, the paper feed transmission mechanism, the carbon ribbon recovery motor and the carbon ribbon transmission mechanism are arranged on the other side of the support plate, the drive unit of the print roller passes through the support plate and is connected to the paper feed transmission mechanism, and the drive unit of the carbon ribbon recovery mechanism passes through the support plate and is connected to the carbon ribbon transmission mechanism.

5. The barcode printing device according to claim 1, characterized in that: The controller is used to obtain a printer status code corresponding to the barcode printing device, so as to determine the operating status of the barcode printing device under the current working condition according to the printer status code.

6. A printing control method for a barcode printing device, characterized in that: The method is applied to a controller in a barcode printing device, wherein the barcode printing device further comprises a printing paper feed mechanism for transmitting a printing medium, a carbon ribbon conveying mechanism for transmitting a carbon ribbon through the printing paper feed mechanism, a carbon ribbon recovery mechanism for recovering the carbon ribbon passing through the printing paper feed mechanism, a paper feed motor, a carbon ribbon recovery motor, an encoder and a controller, wherein the paper feed motor is connected to the printing paper feed mechanism through a paper feed transmission mechanism, the carbon ribbon recovery motor is connected to the carbon ribbon recovery mechanism through a carbon ribbon transmission mechanism, and the controller is electrically connected to the encoder, the paper feed motor and the carbon ribbon recovery motor; the method comprises: Obtaining the operating status of the barcode printing device; Obtaining the carbon ribbon roll diameter corresponding to the carbon ribbon recovery mechanism through the encoder; The rotation directions of the paper feeding motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery are determined according to the operating status, and the rotation speed of the carbon ribbon recovery motor is adjusted according to the target tension and the carbon ribbon winding diameter.

7. The printing control method of the barcode printing device according to claim 6, characterized in that: The operating state includes a paper-returning state and a printing state, and determining the rotation direction of the paper-feeding motor and the carbon ribbon recovery motor and the target tension of the carbon ribbon recovery according to the operating state, and adjusting the rotation speed of the carbon ribbon recovery motor according to the target tension and the carbon ribbon winding diameter, including: In the paper-returning state, the paper-feeding motor is controlled to rotate in the reverse direction to rewind the paper, and the carbon ribbon recovery motor starts to rotate in the forward direction at a first initial speed corresponding to the first target tension and the current carbon ribbon roll diameter, and gradually reduces the actual speed of the carbon ribbon recovery motor as the carbon ribbon roll diameter gradually increases during the rotation process; In the printing state, the paper feeding motor is controlled to rotate forward to feed paper, and the carbon ribbon recovery motor starts to rotate forward at a second initial speed corresponding to the second target tension and the current carbon ribbon roll diameter, and gradually reduces the actual speed of the carbon ribbon recovery motor as the carbon ribbon roll diameter gradually increases during the rotation process; Wherein, the first target tension is less than the second target tension.

8. The printing control method of the barcode printing device according to claim 7, characterized in that: The running state also includes an idle state, and the method further includes: In the idle state, the paper feeding motor is controlled to stop rotating, and the carbon ribbon recovery motor rotates forward at a third target tension and a third initial speed corresponding to the current carbon ribbon winding diameter, wherein the third target tension is greater than the first target tension, and the third target tension is less than the second target tension.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the printing control method of the barcode printing device as claimed in any one of claims 6 to 8 when executing the computer program.

10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the printing control method of the barcode printing device according to any one of claims 6 to 8.

Citation Information

Cited By

  • Printing equipment detection method and device, medium, program product and printing equipment

    CN119872104A