CN111688362A - Thermal history control method for thermal print head, thermal printer and computer readable storage medium - Google Patents

Thermal history control method for thermal print head, thermal printer and computer readable storage medium Download PDF

Info

Publication number
CN111688362A
CN111688362A CN202010526906.2A CN202010526906A CN111688362A CN 111688362 A CN111688362 A CN 111688362A CN 202010526906 A CN202010526906 A CN 202010526906A CN 111688362 A CN111688362 A CN 111688362A
Authority
CN
China
Prior art keywords
pulse
thermal
driving
data
enable
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.)
Granted
Application number
CN202010526906.2A
Other languages
Chinese (zh)
Other versions
CN111688362B (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 Baiyin Automation Equipment Co ltd
Original Assignee
Zhuhai Jiabo Network 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 Jiabo Network Co ltd filed Critical Zhuhai Jiabo Network Co ltd
Priority to CN202010526906.2A priority Critical patent/CN111688362B/en
Publication of CN111688362A publication Critical patent/CN111688362A/en
Application granted granted Critical
Publication of CN111688362B publication Critical patent/CN111688362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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
    • B41J2/32Typewriters 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 using thermal heads
    • B41J2/35Typewriters 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 using thermal heads providing current or voltage to the thermal head
    • B41J2/355Control circuits for heating-element selection
    • B41J2/3556Preheating pulses
    • 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
    • B41J2/32Typewriters 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 using thermal heads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Abstract

The invention provides a thermal record control method of a thermal printing head, a thermal printer and a computer readable storage medium, wherein the thermal record control method comprises the steps of receiving printing data, converting the printing data to obtain image data, obtaining on-off data of a current printing line, an upper printing line and a lower printing line of a heating element of the thermal printing head from the image data, determining a driving mode of the heating element according to the on-off data and a truth table, outputting record data corresponding to the driving mode to the thermal printing head, and driving the heating element to work. Through predicting in advance and judging the accumulated heat of the heating element of the printing head, and then through setting and inquiring of the truth table, the heating time of the heating body can be effectively controlled, so that the stable heating and the stable heat dissipation are utilized to improve the printing quality, the printed fonts or images are clearer, and the smear is avoided.

Description

Thermal history control method for thermal print head, thermal printer and computer readable storage medium
Technical Field
The present invention relates to the field of thermal printing, and in particular, to a thermal history control method for a thermal print head, a thermal printer, and a computer-readable storage medium.
Background
With the popularization and application of thermal printers in various industries, the thermal printer structure is used in automatic teller machines, cash terminals, take-out terminals, catering terminals and e-commerce delivery terminals of banks, the printing of the thermal printer structure is rapidly increased particularly in catering, e-commerce and express delivery industries, and higher requirements are provided for the stability and durability of the thermal printer.
The core printing part in the thermal printer is a thermal printing head which is a main execution unit for printing images on thermal printers such as bills or bar codes, and the like, the thermal printing head is composed of a row of heating bodies which are arranged relatively densely and are different from 200dpi to 600dpi, the heating bodies can generate high temperature quickly through certain current, when the thermal paper with the medium coating meets the elements, the temperature can rise in a very short time, the medium coating can generate chemical reaction, and then the thermal paper can be printed and imaged.
The main controller converts the data of the object to be printed into dot matrix data such as a bitmap, instructs the dot matrix data to be sent to the thermal printer, and the thermal printer drives the paper to be transported according to the dot matrix data and drives the heating element in the thermal print head to heat at a predetermined timing to form a predetermined image.
Referring to fig. 1, due to the principle characteristic that a heating element is electrified and heated, heat accumulation and dissipation can be generated inevitably, certain time delay exists in heating and heat dissipation, and in high-speed printing, the color development concentration of font patterns is easy to be insufficient or trailing, so that the printing quality is seriously influenced.
Disclosure of Invention
A first object of the present invention is to provide a thermal history control method for precisely controlling the amount of heat generated by a heat generating element to improve the print quality of a thermal print head.
It is a second object of the present invention to provide a thermal printer that performs the thermal history control method.
A third object of the present invention is to provide a computer-readable storage medium storing the thermal history control method.
In order to achieve the first object of the present invention, the present invention provides a thermal history control method of a thermal head, comprising:
receiving print data;
converting the printing data to obtain image data;
acquiring on-off data of a current printing line, an upper printing line and a lower printing line of a heating element of the thermal printing head from the image data, and determining a driving mode of the heating element according to the on-off data and a truth table;
outputting history data corresponding to the driving mode to the thermal printing head to drive the heating element to work;
the truth table is as follows:
Figure BDA0002532286380000021
wherein, the '1' in the image data is a color-developing pixel point, and the '0' in the image data is a non-color-developing pixel point;
the history data includes a drive pulse DA, a drive pulse DB, a drive pulse DC, and a drive pulse DD which are sequentially transmitted in one drive cycle of the heating element, and "1" in the history data is a trigger drive pulse and "0" in the history data is a non-trigger drive pulse.
According to the scheme, after the dot-matrix image data is converted into the image data of the dot-matrix image, along with the sending of the image data, the printing conditions of a heating element in front and back three rows, namely a current printing row, an upper printing row and a lower printing row, can be known, the accumulated heat of a heating element of the printing head can be predicted and judged in advance, the heating element is driven to generate heat by the driving pulse DA, the driving pulse DB, the driving pulse DC and the driving pulse DD which are sent in sequence in one driving period through the setting and the query of a truth table, the heating time of the heating element can be effectively controlled, the printing quality is improved by utilizing stable heating and stable heat dissipation, printed fonts or images are clearer, and smearing is avoided.
Further, the history data may further include a first enable pulse, a second enable pulse, and a third enable pulse sequentially transmitted in one driving cycle, wherein a pulse width of the first enable pulse is 105us, a pulse width of the second enable pulse is 39us, and a pulse width of the third enable pulse is 53 us.
Further, the resume data may further include transmitting a preheat enable pulse in one driving cycle, the preheat enable pulse being transmitted after the third enable pulse is transmitted.
As can be seen from the above, the first enable pulse is the heating time when the vertical line is printed, the first enable pulse plus the second enable pulse is the shortest heating time to avoid tailing, the first enable pulse plus the second enable pulse and the third enable pulse are the heating time when the printing is started, and the preheat enable pulse is the preheat time for the next line of printing.
Further, the resume data may further include a first clock pulse, a second clock pulse, a third clock pulse, and a fourth clock pulse sequentially transmitted in one driving cycle, the first clock pulse being located before the first enable pulse, the second clock pulse being located between the first enable pulse and the second enable pulse, the third clock pulse being located between the second enable pulse and the third enable pulse, and the fourth clock pulse being located between the third enable pulse and the warm-up enable pulse.
Further, the first clock pulse is triggered after the falling edge of the driving pulse DA, the second clock pulse is triggered after the falling edge of the driving pulse DB, the third clock pulse is triggered after the falling edge of the driving pulse DC, and the fourth clock pulse is triggered after the falling edge of the driving pulse DD.
Further, the pulse width of the driving pulse D1, the driving pulse D2, the driving pulse D3 and/or the driving pulse D4 is 52 us.
Further, one driving period is 417 us.
Therefore, through the setting of the clock pulse and the setting of the pulse width and the driving period, the heating body can be stably heated and stably radiated, and the printing quality is improved.
In order to achieve the second object of the present invention, the present invention provides a thermal printer, comprising a thermal print head, a processor and a memory, wherein the processor is electrically connected to the thermal print head, the memory stores a computer program, and the computer program realizes the steps of the thermal history control method according to the above-mentioned scheme when executed by the processor.
In order to achieve the third object of the present invention, the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the thermal history control method according to the above-mentioned aspect.
Drawings
FIG. 1 is a schematic diagram showing the temperature of a heat generating body and the printing effect in the prior art.
FIG. 2 is a flow chart of an embodiment of the thermal history control method of the present invention.
Fig. 3 is a schematic diagram of image data in thermal printing.
FIG. 4 is a truth table for an embodiment of the thermal history control method of the present invention.
FIG. 5 is a timing chart of one driving cycle in the embodiment of the thermal history control method according to the present invention.
FIG. 6 is a schematic diagram showing the temperature of the heating element and the printing effect after the embodiment of the thermal history control method of the present invention is applied.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
The embodiment of the thermal history control method of the thermal printing head comprises the following steps:
referring to fig. 2, in the case where the thermal head includes a thermal head, a processor and a memory, the processor is electrically connected to the thermal head, and the processor performs a thermal history control method, the processor first performs step S1 to receive print data output from a computer, a terminal or a server, and then performs step S2 to convert the print data into image data, referring to fig. 3, which is a schematic diagram of image data, the image data is a dot diagram obtained by converting the print data into image data, and then is digitized to form image data, white pixels of L1 to L3 correspond to ON/OFF (OFF) indicating a state of the ON/OFF with "0", black pixels of L1 to L3 correspond to ON (ON) of an ON heating element indicating a state of the ON with "1", so that ON/OFF data of "00100" is generated in L1 lines, and ON/OFF data of "01110" is generated in L2 lines, on-off data of "01010" is generated in line L3, and "1" in the image data is a color-developed pixel and "0" in the image data is a non-color-developed pixel. Since L1, L2, and L3 are arranged in this order in the paper feeding direction, the heat-generating elements in L3 row are next to the heat-generating elements in L2 row, and the heat-generating elements in L1 row are previous to the heat-generating elements in L2 row, for the three heat-generating elements in the same row.
Then, step S3 is executed to acquire on-off data of the current print line, the previous print line, and the next print line of each heat generating body in the thermal head from the image data, the driving pattern of the heating element is determined based on the on-off data and the truth table, and referring to FIGS. 3 and 4, taking the heating element of the first L2 line from the left as an example, the current print line, the previous print line and the next print line are all '0', so that the driving mode 1 is adopted, taking the heating element of the second L2 line from the left as an example, the upper print line, the current print line, and the next print line are each "011", so that the drive mode 4 is adopted, taking the heating element of the third L2 line from the left as an example, the upper printing line, the current printing line and the next printing line are respectively 110, so that the driving mode 7 is adopted, and the rest can be analogized, so that the driving mode is changed along with different on-off data in the printing process.
Subsequently, step S4 is executed to output history data corresponding to different driving modes to the thermal print head, and then to realize the operation of the heating element, specifically, referring to fig. 5 in combination with fig. 4, the history data includes a driving pulse DA, a driving pulse DB, a driving pulse DC, and a driving pulse DD which are sequentially transmitted in one driving cycle of the heating element, "1" in the history data is a trigger driving pulse, and "0" in the history data is a non-trigger driving pulse. The pulse widths of the drive pulse D1, the drive pulse D2, the drive pulse D3, and the drive pulse D4 were 52 us.
The history data further includes a first clock pulse, a second clock pulse, a third clock pulse, and a fourth clock pulse, which are sequentially transmitted in one driving cycle, the first clock pulse being triggered after a falling edge of the driving pulse DA, the second clock pulse being triggered after a falling edge of the driving pulse DB, the third clock pulse being triggered after a falling edge of the driving pulse DC, and the fourth clock pulse being triggered after a falling edge of the driving pulse DD. In this embodiment, the driving cycle of color development imaging of one heat-generating body for one pixel point is 417 us.
The history data further includes a first enable pulse, a second enable pulse, a third enable pulse, and a preheat enable pulse, which are sequentially transmitted within one driving period, the first enable pulse having a pulse width of 105us, the second enable pulse having a pulse width of 39us, and the third enable pulse having a pulse width of 53 us. The first clock pulse is located before the first enable pulse, the second clock pulse is located between the first enable pulse and the second enable pulse, the third clock pulse is located between the second enable pulse and the third enable pulse, and the fourth clock pulse is located between the third enable pulse and the preheat enable pulse.
In the drive mode 7, therefore, the drive pulse DA is triggered, the drive pulse DB, the drive pulse DC, and the drive pulse DD are not triggered, and the history data is transmitted to the thermal head, and the heat generating element is driven to generate heat. By analogy, each heating element is driven to work along with different driving modes in the printing process.
Referring to fig. 6, according to the heat history control method, overheating is prevented by stable heat generation and heat dissipation of the heating element and stable heat supply, printed fonts or images are clearer, and trailing ends of the fonts are also successfully prevented from smearing.
Thermal printer embodiment:
the thermal printer comprises a thermal printing head, a processor and a memory, wherein the processor is electrically connected with the thermal printing head, the memory stores a computer program, and the computer program realizes the steps of the thermal record control method when being executed by the processor.
Computer-readable storage medium embodiments:
the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the thermal history control method as described above.

Claims (9)

1. A method of thermal history control for a thermal print head, comprising:
receiving print data;
converting the printing data to obtain image data;
acquiring on-off data of a current printing line, an upper printing line and a lower printing line of a heating element of the thermal printing head from the image data, and determining a driving mode of the heating element according to the on-off data and a truth table;
outputting history data corresponding to the driving mode to the thermal printing head, and driving the heating element to work;
the truth table is as follows:
Figure FDA0002532286370000011
wherein, the '1' in the image data is a color-developing pixel point, and the '0' in the image data is a non-color-developing pixel point;
the history data includes a drive pulse DA, a drive pulse DB, a drive pulse DC, and a drive pulse DD which are sequentially transmitted in one drive cycle of the heating element, "1" in the history data is a trigger drive pulse, and "0" in the history data is a non-trigger drive pulse.
2. The thermal history control method according to claim 1, wherein:
the history data further includes a first enable pulse, a second enable pulse, and a third enable pulse, which are sequentially transmitted in one driving period, the first enable pulse having a pulse width of 105us, the second enable pulse having a pulse width of 39us, and the third enable pulse having a pulse width of 53 us.
3. The heat history control method according to claim 2, wherein:
the resume data further includes transmitting a warm-up enable pulse in one of the driving periods, the warm-up enable pulse being transmitted after the third enable pulse is transmitted.
4. The thermal history control method according to claim 3, wherein:
the resume data further includes a first clock pulse, a second clock pulse, a third clock pulse and a fourth clock pulse which are sequentially transmitted in one of the driving periods, the first clock pulse is located before the first enable pulse, the second clock pulse is located between the first enable pulse and the second enable pulse, the third clock pulse is located between the second enable pulse and the third enable pulse, and the fourth clock pulse is located between the third enable pulse and the preheat enable pulse.
5. The thermal history control method according to claim 4, wherein:
the first clock pulse is triggered after a falling edge of the driving pulse DA, the second clock pulse is triggered after a falling edge of the driving pulse DB, the third clock pulse is triggered after a falling edge of the driving pulse DC, and the fourth clock pulse is triggered after a falling edge of the driving pulse DD.
6. The thermal history control method according to any one of claims 1 to 5, characterized in that:
the pulse width of the driving pulse D1, the driving pulse D2, the driving pulse D3 and/or the driving pulse D4 is 52 us.
7. The thermal history control method according to any one of claims 1 to 5, characterized in that:
one such drive cycle is 417 us.
8. Thermal printer, characterized in that it comprises a thermal print head, a processor and a memory, said processor being electrically connected to said thermal print head, said memory storing a computer program which, when executed by said processor, implements the steps of the thermal history control method according to any one of claims 1 to 7.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the steps of the thermal history control method of any of claims 1 to 7.
CN202010526906.2A 2020-06-10 2020-06-10 Thermal history control method for thermal print head, thermal printer and computer readable storage medium Active CN111688362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010526906.2A CN111688362B (en) 2020-06-10 2020-06-10 Thermal history control method for thermal print head, thermal printer and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010526906.2A CN111688362B (en) 2020-06-10 2020-06-10 Thermal history control method for thermal print head, thermal printer and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111688362A true CN111688362A (en) 2020-09-22
CN111688362B CN111688362B (en) 2021-05-14

Family

ID=72480099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010526906.2A Active CN111688362B (en) 2020-06-10 2020-06-10 Thermal history control method for thermal print head, thermal printer and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111688362B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113815317A (en) * 2020-11-30 2021-12-21 山东华菱电子股份有限公司 Printing head heating control device and method based on segmented multipoint resistance measurement and printing head
CN114261215A (en) * 2021-12-22 2022-04-01 北京思普瑞特科技发展有限公司 Printing control method and system of thermal printer
CN114312036A (en) * 2021-12-24 2022-04-12 福建新大陆支付技术有限公司 Method for controlling history of heating data of thermal head, storage medium, and printer
CN117021797A (en) * 2023-10-10 2023-11-10 珠海趣印科技有限公司 Thermal printer control method and device, printer and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01241463A (en) * 1988-03-24 1989-09-26 Sony Corp Thermal head drive circuit
CN1282014A (en) * 1999-07-21 2001-01-31 精工爱普生株式会社 Thermal sensitive printer and hot control method
CN101372170A (en) * 2008-09-08 2009-02-25 北大方正集团有限公司 Pulse width control device and method
CN102211463A (en) * 2010-03-31 2011-10-12 兄弟工业株式会社 Thermal printer
CN104608501A (en) * 2013-11-05 2015-05-13 卡西欧计算机株式会社 Stamp face forming apparatus, stamp face forming method, and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01241463A (en) * 1988-03-24 1989-09-26 Sony Corp Thermal head drive circuit
CN1282014A (en) * 1999-07-21 2001-01-31 精工爱普生株式会社 Thermal sensitive printer and hot control method
CN101372170A (en) * 2008-09-08 2009-02-25 北大方正集团有限公司 Pulse width control device and method
CN102211463A (en) * 2010-03-31 2011-10-12 兄弟工业株式会社 Thermal printer
CN104608501A (en) * 2013-11-05 2015-05-13 卡西欧计算机株式会社 Stamp face forming apparatus, stamp face forming method, and medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113815317A (en) * 2020-11-30 2021-12-21 山东华菱电子股份有限公司 Printing head heating control device and method based on segmented multipoint resistance measurement and printing head
CN114261215A (en) * 2021-12-22 2022-04-01 北京思普瑞特科技发展有限公司 Printing control method and system of thermal printer
CN114312036A (en) * 2021-12-24 2022-04-12 福建新大陆支付技术有限公司 Method for controlling history of heating data of thermal head, storage medium, and printer
CN114312036B (en) * 2021-12-24 2022-11-08 福建新大陆支付技术有限公司 Method for controlling history of heating data of thermal print head, storage medium, and printer
CN117021797A (en) * 2023-10-10 2023-11-10 珠海趣印科技有限公司 Thermal printer control method and device, printer and storage medium
CN117021797B (en) * 2023-10-10 2023-12-22 珠海趣印科技有限公司 Thermal printer control method and device, printer and storage medium

Also Published As

Publication number Publication date
CN111688362B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN111688362B (en) Thermal history control method for thermal print head, thermal printer and computer readable storage medium
JP3363524B2 (en) Printhead, heater board thereof, printing apparatus and method
US7782350B2 (en) Printing apparatus, printing system, printhead temperature retaining control method
US5633671A (en) Recording method and apparatus maintaining constant density by anticipating temperature changes in the recording head
WO2012043789A1 (en) Printer
US9233554B2 (en) Control device, printer, and control method of a printer
CN114274692B (en) Gray scale printing method of thermal printer
CN105555540B (en) Printing
US7283146B2 (en) Thermal printer temperature management
KR970000091B1 (en) Thermal head control device
JP5699513B2 (en) Printing device
JP2014166724A (en) Thermal printer
JP3320233B2 (en) Recording device
JP2012076352A (en) Printer
JPH06198944A (en) Improved thermal printer system to compensate fluctuation ofoperation parameter, and method thereof
EP4292826A1 (en) Printer, printing control method, and storage medium
JP2002370400A (en) Imaging apparatus and recording head
US11001079B2 (en) Thermal printer and computer-readable storage medium
US20240051307A1 (en) Printer, printing method for printer, and program
JP3866961B2 (en) Line thermal printer
JP2010005970A (en) Printing apparatus, method of controlling printing apparatus, and a control program for printing apparatus
JPH06198886A (en) Recording device and recording method
CN113442599A (en) Line thermal printer
JPH08207399A (en) Serial printer
JP2000085170A (en) Printer

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
TR01 Transfer of patent right

Effective date of registration: 20220822

Address after: 519000 Zone G, second floor, No. 1 plant, No. 15, Nanping Pingbei Second Road, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Baiyin automation equipment Co.,Ltd.

Address before: 519000 China Huarong Building 1104, No. 9 Xingao Road, Hengqin New District, Zhuhai City, Guangdong Province

Patentee before: Zhuhai Jiabo Network Co.,Ltd.

TR01 Transfer of patent right