CN115534545B - Printing control method of thermal printer based on motor and thermal sensitive sheet - Google Patents

Printing control method of thermal printer based on motor and thermal sensitive sheet Download PDF

Info

Publication number
CN115534545B
CN115534545B CN202211243878.9A CN202211243878A CN115534545B CN 115534545 B CN115534545 B CN 115534545B CN 202211243878 A CN202211243878 A CN 202211243878A CN 115534545 B CN115534545 B CN 115534545B
Authority
CN
China
Prior art keywords
data
motor
heating
printing
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211243878.9A
Other languages
Chinese (zh)
Other versions
CN115534545A (en
Inventor
张宇鹏
郭晋鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Seal Interest Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN202211243878.9A priority Critical patent/CN115534545B/en
Publication of CN115534545A publication Critical patent/CN115534545A/en
Application granted granted Critical
Publication of CN115534545B publication Critical patent/CN115534545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention provides a thermal printer printing control method based on a motor and a thermal sensitive sheet, which comprises the steps of judging the working state of the printer, acquiring a row of effective task data from a task array when the printer is in a printing state, and setting the motor state as an operating state after confirming that the task data are effective data; setting the phase of a stepping motor according to the printing direction to feed paper, and judging what value is the current motor sub-step count value; setting single-step motor time length to a motor control logic module, starting the motor control logic module, and performing corresponding logic processing according to the printing type; when the print data needs to be heated, the heat sensitive sheet is controlled to be heated according to the count value of the heating times of the current line, and the heating times are recorded. The invention can solve various defects existing in the prior art, thereby realizing modularized programming, ensuring clear architecture, realizing accurate control over time and realizing high-speed controllable printing.

Description

Printing control method of thermal printer based on motor and thermal sensitive sheet
Technical Field
The invention relates to the technical field of thermal printers, in particular to a thermal printer printing control method based on a motor and a thermal plate.
Background
With the development of society, people have put an increasing demand for the diversity and richness of functions of electronic products. With advances in integrated circuit design and manufacturing technology, implementation of this need has become possible. Printers as electronic products are also widely used, wherein thermal printers are printers commonly used in existing printers, and are characterized by fast printing speed, simple structure, no need of adding ink, and the principle of the thermal printers is that images are displayed by heating printing paper.
At present, the main structural components of the thermal printer are composed of a circuit control board, a thermal sensitive sheet, a motor, a rubber roller, a gear, a shell and the like, wherein the circuit control board is a main core component, and in the current market, a manufacturer commonly uses a 51 single-chip microcomputer as a platform to develop products, and the printers are generally low in price, low in speed, relatively single in function, low in working efficiency and strong in price competition.
In addition, software is mainly realized through a data analysis module, an image generation module and an image printing module in order to realize printing, and the realization of the image printing module consists of a data preparation stage to be printed, motor control logic and heating control logic, wherein the control realization of a motor and a thermosensitive plate is involved, the control realization of the traditional motor and the control realization of the thermosensitive plate are relatively complex in logic, the design of each module is unreasonable, and the market popularization is not easy.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a printing control method of a thermal printer based on a motor and a thermal sensitive sheet, which can solve various defects existing in the prior art, realize modularized programming, ensure clear framework and realize accurate control over time so as to realize high-speed controllable printing.
In order to solve the problems, the technical scheme adopted by the invention is as follows:
a printing control method of a thermal printer based on a motor and a thermal sensitive sheet comprises the following steps: judging the working state of the printer, when the printer is in a starting state or a printing state, designating a corresponding printing direction or type, extracting one row of data from the data block storage module, calculating the heating time length and the motor time length, and filling the calculated data parameters into a task array; when the printer is in a printing state, acquiring a row of effective task data from a task array, enabling a motor after confirming that the task data are effective data, and setting the motor state as an operation state;
setting the phase of a stepping motor according to the printing direction to feed paper, judging what value is the current motor sub-step count value, judging whether the current line is heated to be completed if the motor sub-step count value is larger than or equal to the phase number required by one step, if so, clearing task data related to the current line, acquiring valid task data of a new line from a task array again, if the task data of the new line is valid and the motor time length is not 0, calculating the motor time length of a single step, setting the motor time length of the single step to a motor control logic module, starting the motor control logic module, and carrying out corresponding logic processing according to the printing type;
when the printing data needs to be heated, the heat-sensitive sheet is controlled to be heated according to the count value of the heating times of the current line, and the heating times are recorded.
When the printer is in other states, acquiring a row of valid task data from the task array, if the task data is valid data and the motor time length is 0, setting the motor to a stop state, closing the heating power supply circuit, and judging the working state of the printer again after the relevant task data of the current row is emptied.
In a further scheme, when the printer is in a start state, a task array element which is not filled with printing data is applied to start execution:
determining a printing direction; determining a print type; acquiring one line of data from a data block storage module, and judging whether one line of data to be heated exists or not; if the data need to be heated, calculating the two heating time lengths of the data of the line; determining the timing time length of the motor; determining an idle time length in the middle of the two heating time lengths; setting a preparation flag of the data; changing the printing state according to the abnormal condition; submitting the filled tasks to the task array; the printer status is set to print.
In a further scheme, when the printer is in a printing state, a task array element which is not filled with printing data is applied to start execution:
determining a printing direction; determining a print type; acquiring one line of data from a data block storage module, and judging whether one line of data to be heated exists or not; if the data need to be heated, calculating the two heating time lengths of the data of the line; determining the timing time length of the motor; determining an idle time length in the middle of the two heating time lengths; setting a preparation flag of the data; changing the printing state according to the abnormal condition; submitting the filled tasks to the task array; and acquiring a row of effective task data from the task array, enabling the motor after confirming that the task data are effective data, and setting the motor state as an operation state.
When the printing data needs to be heated, latching the data of the thermosensitive plate, starting a heating pin of the thermosensitive plate, setting the first heating time length of one row to a heating control logic module and starting, acquiring the effective task data of the next row, and writing the data into a thermosensitive plate data buffer;
when no print data needs to be heated, the effective task data of the next row is obtained, and if the task data of the next row is the effective task data, the data is written into the thermosensitive sheet data buffer.
In a further scheme, if the task data of a new line is invalid or the motor time length is 0, the motor is set in a stop state, a heating completion mark of the line is set, and the current motor sub-step count value is increased by 1.
If the motor sub-step count value is 0, judging whether the current line is heated, if yes, emptying task data related to the current line, acquiring effective task data of a new line from a task array again, if the task data of the new line is determined to be effective and the motor time length is not 0, calculating the motor time length of a single step, setting the motor time length of the single step to a motor control logic module, starting the motor control logic module, and carrying out corresponding logic processing according to the printing type; when the printing data need to be heated, latching the data of the thermal sensitive sheet, starting a heating pin of the thermal sensitive sheet, setting the first heating time length of one row to a heating control logic module and starting, acquiring the effective task data of the next row, and writing the data into a data buffer of the thermal sensitive sheet.
If the current line is determined to be not heated, writing a small time slice into the motor control logic module for timely responding and detecting the heating state of the current line; and starting a motor control logic module, and adding 1 to the current motor sub-step count value.
In a further scheme, when the count value of the recorded heating times is a first value and the printing type is data printing, the heating pin of the thermal sensitive sheet is directly started without latching the data of the thermal sensitive sheet because the data of the previous heating is consistent with the data of the current heating; and setting the time length of the second heating of the line to a heating control logic module, starting the heating control logic module, and adding 1 to the count value of the heating times.
Further, when the count value of the heating times is the second value, the heating pin of the heat-sensitive sheet is closed;
when the count value of the recorded heating times is 1, setting the idle time length in the middle of the two heating time lengths to a heating control logic module, starting the heating control logic module, and adding 1 to the count value of the recorded heating times;
when the count value of the recorded heating times is 3, the heating control logic module is closed, one row of heating completion setting is performed, and the count value of the recorded heating times is increased by 1.
Compared with the prior art, the invention provides a printing control method of a thermal printer based on a motor and a thermal sensitive plate, which creates three threads on the basis of an operating system or creates three timing interrupts in a bare metal environment for respectively processing three stages of a data preparation stage, a motor control logic stage and a heating control logic stage, thereby achieving the printing speed of 150mm/s and realizing the functions of accurate positioning, paper detection and the like.
In the data preparation stage, the invention adopts a timing interruption mode to explain, adopts a continuous circulation timing mechanism to extract one row of data from canvas, designates a corresponding printing direction, calculates a corresponding heating time length and a motor time length, and fills data parameters into a first-in first-out circulation structure array.
In the motor control logic stage, the motor is mainly controlled to advance and retreat, the timing time of the motor and the pretreatment of the data writing of the thermosensitive sheet are calculated, and if the pretreatment of the data writing of the thermosensitive sheet is carried out in the last motor timing treatment, the heating timer is required to be started in the timing treatment.
In the heating control logic stage, a single timer is defined, namely, the timer is responded once, and the circulation timing is not reloaded, so that the heating logic of the thermosensitive plate is mainly realized, the heating time sequence is determined according to the characteristics of the thermosensitive plate, and the invention adopts a mode of heating twice (namely, one line of data adopts one time to fill the thermosensitive plate and the same line of data is heated twice), so that one line of data needs to trigger the logic of the timer twice.
The invention is described in further detail below with reference to the drawings and the detailed description.
Drawings
Fig. 1 is a flowchart of an embodiment of a printing control method of a thermal printer based on a motor and a thermal plate according to the present invention.
Fig. 2 is a flowchart of a printing control method of a thermal printer based on a motor and a thermal plate according to an embodiment of the present invention, which relates to a data waiting preparation stage.
FIG. 3 is a flow chart of the control logic stage of the motor based thermal printer printing control method according to an embodiment of the present invention.
FIG. 4 is a flow chart of the stage of the control logic for heating in an embodiment of a print control method for a thermal printer based on a motor and a thermal plate according to the present invention.
Detailed Description
Referring to fig. 1, the invention provides a printing control method of a thermal printer based on a motor and a thermal sensitive sheet, which comprises the following steps:
step S1, judging the working state of the printer, when the printer is in a starting state or a printing state, designating a corresponding printing direction or type, extracting one line of data from a data block storage module, calculating heating time length and motor time length, and filling the calculated data parameters into a task array; when the printer is in a printing state, acquiring a row of effective task data from the task array, enabling the motor after confirming that the task data are effective data, and setting the motor state as an operation state.
Step S2, setting the phase of a stepping motor according to the printing direction to feed paper, judging the value of a current motor sub-step count value, judging whether the current line is heated to be completed if the motor sub-step count value is larger than or equal to the phase number required by one step, if so, clearing task data related to the current line, acquiring new line effective task data from a task array again, if the new line task data is determined to be effective and the motor duration is not 0, calculating the motor duration of a single step, setting the motor duration of the single step to a motor control logic module, starting the motor control logic module, and carrying out corresponding logic processing according to the printing type.
And step S3, when the printing data needs to be heated, controlling the heat-sensitive sheet to heat according to the count value of the heating times of the current line, and recording the heating times.
When the printer state is other states, acquiring a row of effective task data from the task array, if the task data is effective data and the motor time length is 0, setting the motor to a stop state, closing the heating power supply circuit, and judging the working state of the printer again after the relevant task data of the current row is emptied.
When the printer is in a starting state, a task array element which is not filled with printing data is applied to start execution:
determining a printing direction; determining a print type; acquiring one line of data from a data block storage module, and judging whether one line of data to be heated exists or not; if the data need to be heated, calculating the two heating time lengths of the data of the line; determining the timing time length of the motor; determining an idle time length in the middle of the two heating time lengths; setting a preparation flag of the data; changing the printing state according to the abnormal condition; submitting the filled tasks to the task array; the printer status is set to print.
When the printer is in a printing state, a task array element which is not filled with printing data is applied, and execution is started:
determining a printing direction; determining a print type; acquiring one line of data from a data block storage module, and judging whether one line of data to be heated exists or not; if the data need to be heated, calculating the two heating time lengths of the data of the line; determining the timing time length of the motor; determining an idle time length in the middle of the two heating time lengths; setting a preparation flag of the data; changing the printing state according to the abnormal condition; submitting the filled tasks to the task array; and acquiring a row of effective task data from the task array, enabling the motor after confirming that the task data are effective data, and setting the motor state as an operation state.
When print data need to be heated, latching the data of the thermal sensitive sheet, starting a heating pin of the thermal sensitive sheet, setting the first heating time length of one row to a heating control logic module and starting, acquiring effective task data of the next row, and writing the data into a data buffer of the thermal sensitive sheet;
when no print data needs to be heated, the effective task data of the next row is obtained, and if the task data of the next row is the effective task data, the data is written into the thermosensitive sheet data buffer.
In the step S2, if it is determined that the task data of a new line is invalid or the motor duration is 0, the motor is set in a stop state, a line heating completion flag is set, and the current motor sub-step count value is incremented by 1.
In the step S2, if the motor sub-step count value is 0, judging whether the current line is heated, if yes, emptying the task data related to the current line, acquiring the valid task data of the new line from the task array again, if the task data of the new line is determined to be valid and the motor duration is not 0, calculating the motor duration of a single step, setting the motor duration of the single step to the motor control logic module, starting the motor control logic module, and performing corresponding logic processing according to the printing type; when the printing data need to be heated, latching the data of the thermal sensitive sheet, starting a heating pin of the thermal sensitive sheet, setting the first heating time length of one row to a heating control logic module and starting, acquiring the effective task data of the next row, and writing the data into a data buffer of the thermal sensitive sheet.
In the step S2, if it is determined that the current line is not heated, writing a small time slice into the motor control logic module, where the small time slice is used to respond in time and detect the heating state of the current line; and starting a motor control logic module, and adding 1 to the current motor sub-step count value.
In the step S3, when the count value of the number of times of heating is recorded as the first value and the printing type is data printing, the heating pin of the thermal film is directly started without latching the thermal film data because the data of the previous heating is consistent with the data of the current heating; and setting the time length of the second heating of the line to a heating control logic module, starting the heating control logic module, and adding 1 to the count value of the heating times. Wherein the first value of this embodiment is 2.
In the above step S3, when the count value of the number of times of heating is recorded is the second value, the heating pin of the heat-sensitive sheet is turned off. The second value in this embodiment is 1 or 3 other values.
For example, when the count value of the number of times of recording heating is 1, the idle time length in the middle of the two heating time lengths is set to the heating control logic module, and the heating control logic module is started, and the count value of the number of times of recording heating is incremented by 1.
For example, when the count value of the number of times of recording heating is 3, the heating control logic module is turned off, one line of heating completion is set, and the count value of the number of times of recording heating is incremented by 1.
The invention is mainly realized around the software control of the MCU, wherein the software can realize the analysis module, the image generation module and the image printing module of data in order to realize printing, and the image printing module is the invention which needs to be described. The realization of the image printing module is composed of a data preparation stage, motor control logic and heating control logic, and the three code logic of the image printing module is respectively realized by three timers (for a high-speed processor, the three timers can be realized by three threads on the basis of an operating system). Compared with other control implementation related to motors and thermosensitive plates, the method is relatively simple in logic implementation and relatively reasonable in module extraction.
Specifically, for the specific implementation of the above steps, the present invention firstly creates three threads on the basis of an operating system or creates three timed interrupts in a bare metal environment, so as to respectively process: the device comprises a data waiting and printing preparation stage, a motor control logic module and a heating control logic module.
The specific implementation of the data preparation stage needs to be understood firstly, that is, before the data is printed, the data is stored in the memory as a whole continuous data block, such as a data block storage module, and this data block is called as a canvas in this embodiment, and the filling of the pixels in the canvas is performed in a data parsing module, but this filling process is not the important point of the present invention. The invention needs to pay attention to the extraction mode of extracting data from canvas and the subsequent control mode of heating logic and motors.
For the data preparation stage to be printed, the embodiment adopts a mode of timing interruption to describe, the timer is named as a timer 1, the timer 1 adopts a continuous circulation timing mechanism, the timing duration is generally determined by the frequency and the printing speed of the MCU, and is generally 2-3 times or faster than the printing speed, the specific function of the timer 1 is to extract one row of data from the canvas, designate the corresponding printing direction, calculate the corresponding heating duration and the motor duration, and fill the data parameters into a first-in first-out circulation structure array, the embodiment refers to the circulation structure array as a task array, if the task array is written with unread data at the moment which is more than 2 groups, the motor control logic timer is started if the motor is not started, namely the timer 2.
For the motor control logic, mainly, the motor is controlled to advance and retreat, the timing duration of the motor and the preprocessing of the thermosensitive sheet data writing are calculated, if the preprocessing of the thermosensitive sheet data writing is performed in the last motor timing processing, the heating timer (heating control logic module) needs to be started in the timing processing, namely, the timer 3, and the motor control logic timer of the embodiment is called as a timer 2.
The heating control logic is a single-time timer, namely, the timing is once and is responded, and the overload cycle timing is avoided, the heating control logic is realized in the timer 3, the heating logic of the heat-sensitive sheet is mainly realized in the timer 3, the heating time sequence is determined according to the characteristics of the heat-sensitive sheet, and the heating control logic is not repeated herein, and because the invention adopts a mode of heating twice (namely, one-time filling of the heat-sensitive sheet by one-time data and two-time heating of the same-line data), one-line data needs to trigger the logic of the timer 3 twice.
Although the above description of the functional modules does not write specific software implementation, the described functional logic or functional modules may be implemented in specific terms and should be protected.
In practical application, the invention adopts an AT32F403 processor, a Rohm semiconductor model is KD2004-C1GW00A thermosensitive plate and an AT8810 dual-channel H bridge motor driving chip, and programming language is C language.
Definition of C language:
as shown in fig. 2, for the data ready phase, it includes:
/>
/>
/>
/>
compared with the prior art, the invention provides a printing control method of a thermal printer based on a motor and a thermal sensitive plate, which creates three threads on the basis of an operating system or creates three timing interrupts in a bare metal environment for respectively processing three stages of a data preparation stage, a motor control logic stage and a heating control logic stage, thereby achieving the printing speed of 150mm/s and realizing the functions of accurate positioning, paper detection and the like.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (7)

1. A printing control method of a thermal printer based on a motor and a thermal sensitive sheet is characterized by comprising the following steps:
creating three threads on the basis of an operating system or creating three timed interrupts in a bare computer environment for processing respectively: the method comprises a data preparation stage, a motor control logic module and a heating control logic module;
judging the working state of the printer, when the printer is in a starting state or a printing state, designating a corresponding printing direction or type, extracting one row of data from the data block storage module, calculating the heating time length and the motor time length, and filling the calculated data parameters into a task array; when the printer is in a printing state, acquiring a row of effective task data from a task array, enabling a motor after confirming that the task data are effective data, and setting the motor state as an operation state;
setting the phase of a stepping motor according to the printing direction to feed paper, judging what value is the current motor sub-step count value, judging whether the current line is heated to be completed if the motor sub-step count value is larger than or equal to the phase number required by one step, if so, clearing task data related to the current line, acquiring valid task data of a new line from a task array again, if the task data of the new line is valid and the motor time length is not 0, calculating the motor time length of a single step, setting the motor time length of the single step to a motor control logic module, starting the motor control logic module, and carrying out corresponding logic processing according to the printing type; when the printing data needs to be heated, controlling the thermosensitive plate to heat according to the count value of the heating times of the current line, and recording the heating times;
when the printer is in a starting state, a task array element which is not filled with printing data is applied to start execution: determining a printing direction; determining a print type; acquiring one line of data from a data block storage module, and judging whether one line of data to be heated exists or not; if the data need to be heated, calculating the two heating time lengths of the data of the line; determining the timing time length of the motor; determining an idle time length in the middle of the two heating time lengths; setting a preparation flag of the data; changing the printing state according to the abnormal condition; submitting the filled tasks to the task array; setting the printer state as printing;
when the printer is in a printing state, a task array element which is not filled with printing data is applied, and execution is started: determining a printing direction; determining a print type; acquiring one line of data from a data block storage module, and judging whether one line of data to be heated exists or not; if the data need to be heated, calculating the two heating time lengths of the data of the line; determining the timing time length of the motor; determining an idle time length in the middle of the two heating time lengths; setting a preparation flag of the data; changing the printing state according to the abnormal condition; submitting the filled tasks to the task array; and acquiring a row of effective task data from the task array, enabling the motor after confirming that the task data are effective data, and setting the motor state as an operation state.
2. The method according to claim 1, characterized in that:
when the printer state is other states, acquiring a row of effective task data from the task array, if the task data is effective data and the motor time length is 0, setting the motor to a stop state, closing the heating power supply circuit, and judging the working state of the printer again after the relevant task data of the current row is emptied.
3. The method according to claim 1, characterized in that:
when print data need to be heated, latching the data of the thermal sensitive sheet, starting a heating pin of the thermal sensitive sheet, setting the first heating time length of one row to a heating control logic module and starting, acquiring effective task data of the next row, and writing the data into a data buffer of the thermal sensitive sheet;
when no print data needs to be heated, the effective task data of the next row is obtained, and if the task data of the next row is the effective task data, the data is written into the thermosensitive sheet data buffer.
4. The method according to claim 1, characterized in that:
and if the task data of the new line is invalid or the motor time length is 0, setting the motor in a stop state, setting a line heating completion mark, and adding 1 to the current motor sub-step count value.
5. The method according to claim 1, characterized in that:
if the current line is determined to be not heated, writing a time slice into the motor control logic module, wherein the time slice is used for responding in time and detecting the heating state of the current line; and starting a motor control logic module, and adding 1 to the current motor sub-step count value.
6. The method according to claim 1, characterized in that:
when the count value of the recorded heating times is a first value and the printing type is data printing, the heating pin of the thermal sensitive sheet is directly started without latching the data of the thermal sensitive sheet because the data of the previous heating is consistent with the data of the current heating; setting the time length of the second heating of the line to a heating control logic module, starting the heating control logic module, and adding 1 to the count value of the heating times; wherein the first value is 2.
7. The method according to claim 6, wherein:
when the count value of the recorded heating times is a second value, the heating pin of the heat-sensitive sheet is closed; wherein the second value is 1 or 3;
when the count value of the recorded heating times is 1, setting the idle time length in the middle of the two heating time lengths to a heating control logic module, starting the heating control logic module, and adding 1 to the count value of the recorded heating times;
when the count value of the recorded heating times is 3, the heating control logic module is closed, one row of heating completion setting is performed, and the count value of the recorded heating times is increased by 1.
CN202211243878.9A 2022-10-11 2022-10-11 Printing control method of thermal printer based on motor and thermal sensitive sheet Active CN115534545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211243878.9A CN115534545B (en) 2022-10-11 2022-10-11 Printing control method of thermal printer based on motor and thermal sensitive sheet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211243878.9A CN115534545B (en) 2022-10-11 2022-10-11 Printing control method of thermal printer based on motor and thermal sensitive sheet

Publications (2)

Publication Number Publication Date
CN115534545A CN115534545A (en) 2022-12-30
CN115534545B true CN115534545B (en) 2024-02-09

Family

ID=84733955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211243878.9A Active CN115534545B (en) 2022-10-11 2022-10-11 Printing control method of thermal printer based on motor and thermal sensitive sheet

Country Status (1)

Country Link
CN (1) CN115534545B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116599001A (en) * 2023-04-23 2023-08-15 珠海芯烨电子科技有限公司 Protection method and system for stepping motor of printing terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105984241A (en) * 2015-02-02 2016-10-05 深圳市科曼医疗设备有限公司 Thermal printer and thermal printing method
CN108773194A (en) * 2018-05-04 2018-11-09 飞天诚信科技股份有限公司 A kind of printer and the method for improving print speed
CN109016890A (en) * 2017-06-09 2018-12-18 深圳九磊科技有限公司 A kind of memory, thermal printer and its print control program
CN111221480A (en) * 2020-01-10 2020-06-02 珠海趣印科技有限公司 Print data processing method and system
CN112060777A (en) * 2019-06-11 2020-12-11 深圳华智融科技股份有限公司 Thermal printing method and device and terminal equipment
CN112406333A (en) * 2020-11-20 2021-02-26 厦门喵宝科技有限公司 Control method of miniature thermal printer
CN112904751A (en) * 2019-12-04 2021-06-04 深圳君正时代集成电路有限公司 Heating logic control method of thermal printing head
CN114889347A (en) * 2022-04-29 2022-08-12 珠海趣印科技有限公司 Printer heating operation processing method based on reverse order logic control
CN115071282A (en) * 2022-07-21 2022-09-20 上海商米科技集团股份有限公司 Motor speed control method and device of printer and printer

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105984241A (en) * 2015-02-02 2016-10-05 深圳市科曼医疗设备有限公司 Thermal printer and thermal printing method
CN109016890A (en) * 2017-06-09 2018-12-18 深圳九磊科技有限公司 A kind of memory, thermal printer and its print control program
CN108773194A (en) * 2018-05-04 2018-11-09 飞天诚信科技股份有限公司 A kind of printer and the method for improving print speed
CN112060777A (en) * 2019-06-11 2020-12-11 深圳华智融科技股份有限公司 Thermal printing method and device and terminal equipment
CN112904751A (en) * 2019-12-04 2021-06-04 深圳君正时代集成电路有限公司 Heating logic control method of thermal printing head
CN111221480A (en) * 2020-01-10 2020-06-02 珠海趣印科技有限公司 Print data processing method and system
CN112406333A (en) * 2020-11-20 2021-02-26 厦门喵宝科技有限公司 Control method of miniature thermal printer
CN114889347A (en) * 2022-04-29 2022-08-12 珠海趣印科技有限公司 Printer heating operation processing method based on reverse order logic control
CN115071282A (en) * 2022-07-21 2022-09-20 上海商米科技集团股份有限公司 Motor speed control method and device of printer and printer

Also Published As

Publication number Publication date
CN115534545A (en) 2022-12-30

Similar Documents

Publication Publication Date Title
CN115534545B (en) Printing control method of thermal printer based on motor and thermal sensitive sheet
CN1089917C (en) A power-saving printing method of a printing system
CN101923450B (en) Printing method and device of heat-sensitive printer
CN105701298A (en) Simulation platform design method based on Power PC SoC framework
CN112904751B (en) Heating logic control method of thermal print head
CN101980178B (en) Time sequence control method for miniature thermal printer driver
CN201824653U (en) Small-sized embedded type control module of thermal printer
CN112590401B (en) Thermal printer control method, thermal printer control device, thermal printer and medium
US8803932B2 (en) Printer
CN207825756U (en) A kind of miniature stylus printer of linux system
CN110978822A (en) Lottery printing method, lottery reader, lottery printing system and storage medium
CN112590400B (en) Thermal printer control method, thermal printer control device, thermal printer and medium
CN112895732B (en) System for heating logic control thermal printing head
US6897887B2 (en) Heat history control system, printer, and program
JPH01160657A (en) Thermosensitive printer
CN102880892A (en) Method for adding barcodes in real time during exposure of mask-free photoetching machine
CN114872469B (en) Printing method, device, printing equipment and storage medium
JP3182789B2 (en) Printer control device, printer and control method therefor
JPH02258357A (en) Method for controlling plotting head in thermal plotter
JPH058487A (en) Printer
JP2005212388A (en) Data processor for printer
JPS6243806Y2 (en)
JPS6398475A (en) Printer
JPH06115220A (en) Printing device
JPS58205258A (en) Data processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant