CN107878059B - Efficient printing method and storage medium - Google Patents
Efficient printing method and storage medium Download PDFInfo
- Publication number
- CN107878059B CN107878059B CN201710865707.2A CN201710865707A CN107878059B CN 107878059 B CN107878059 B CN 107878059B CN 201710865707 A CN201710865707 A CN 201710865707A CN 107878059 B CN107878059 B CN 107878059B
- Authority
- CN
- China
- Prior art keywords
- heating
- printing
- current
- duty ratio
- data
- 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
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41M—PRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
- B41M5/00—Duplicating or marking methods; Sheet materials for use therein
- B41M5/26—Thermography ; Marking by high energetic means, e.g. laser otherwise than by burning, and characterised by the material used
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1211—Improving printing performance
- G06F3/1215—Improving printing performance achieving increased printing speed, i.e. reducing the time between printing start and printing end
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Optics & Photonics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Electronic Switches (AREA)
Abstract
The invention provides efficient printing methods and storage media, and the methods include S1 presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio is inversely proportional to the heating current and is directly proportional to the heating time in the corresponding relation table, S2 acquiring rows of printing data, S3 calculating to acquire the duty ratio corresponding to the acquired printing data, S4 acquiring the heating current and the heating time corresponding to the duty ratio according to the corresponding relation table, and S5 controlling the corresponding heating points to heat according to the heating current and the heating time.
Description
Technical Field
The invention relates to the field of thermal printing, in particular to efficient printing methods and storage media.
Background
The thermal printer core is used in electronic products such as POS machines and the like by , rows of heating points are arranged on the thermal printer core, the rows of heating points form heating lines, whether the heating points are heated or not is controlled by printing data in a core latch register, if black lines need to be printed, all the heating points are controlled to be heated (the printing duty ratio is 100%), and if text content is printed, the heating points which need to be heated are generally not more than 20% (the printing duty ratio is 20%).
When the printing duty ratio is 100%, all heating points need to be heated, and a large current needs to be consumed at the time, taking a plete PT488A movement as an example, the current required to be consumed for heating a single heating point is 36.8mA, 384 heating points are heating lines, black lines (the printing duty ratio is 100%) need to be printed, and 14.1A needs to be consumed, for products powered by a lithium battery, such as a mobile POS, because the current value exceeds the protection value of the lithium battery, the direct power failure of the products is likely to occur during printing, at this time the method is to divide all the heating points into several groups for heating, and although the same printing effect can be obtained, after heating by groups, the printing time for completing printing lines is also lengthened, printing contents are composed of many printing lines, the printing time for completing printing lines is lengthened, and the printing time for completing the whole content is lengthened, so that the customer experience is deteriorated, and the product also loses competitiveness.
Therefore, the problem now is that if all the heating points on the printer core are heated, the printing time is shortened, but the total printing current may be too high to exceed the protection value of the lithium battery, which causes abnormal power failure of the product, and if the heating points are divided into several groups to be heated, the problem of too high current is solved, but the printing time is also lengthened.
Disclosure of Invention
The invention aims to solve the technical problem of providing high-efficiency printing methods and storage media to realize low-current and quick printing.
In order to solve the technical problems, the invention adopts the technical scheme that:
A method of efficient printing, comprising:
s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time;
s2, acquiring lines of printing data;
s3: calculating to obtain a duty ratio corresponding to the acquired printing data;
s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;
s5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
The other technical schemes provided by the invention are as follows:
computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a printing device, performs the steps of:
s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time;
s2, acquiring lines of printing data;
s3: calculating to obtain a duty ratio corresponding to the acquired printing data;
s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;
s5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
The invention has the advantages that on the premise of ensuring that the printing effect meets the requirement, the invention presets the corresponding relation table of the printing data duty ratio, the heating current and the heating time, and through the changed heating current and the heating time, the maximum current of the product can not exceed the requirement of the product during printing, and simultaneously the printing can be completed in the shortest time, and best balances are obtained on the heating current and the printing speed.
Drawings
FIG. 1 is a schematic flow chart of efficient printing methods according to the present invention;
FIG. 2 is a flow chart illustrating efficient printing methods according to an embodiment of the present invention;
fig. 3 is a block diagram of three types of print control systems according to the embodiment of the present invention.
Description of reference numerals:
100. a system module; 110. a CPU module; 120. a Flash module;
200. heating the current control module;
300. a printing module; 310. a heating module; 320. a heating control module; 330. and a print data control module.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The most key concept of the invention is as follows: according to the duty ratios corresponding to the printing data of different lines, the corresponding heating current and the heating time are set for printing, the balance between the heating current and the printing speed is realized, and the printing efficiency is improved.
Referring to fig. 1, the present invention provides efficient printing methods, including:
s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time;
s2, acquiring lines of printing data;
s3: calculating to obtain a duty ratio corresponding to the acquired printing data;
s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;
s5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
From the above description, the present invention has the advantages that through the changed heating current and heating time, when printing, if the total printing current exceeds the design requirement of the product, the system will automatically reduce the heating current of each heating point and properly prolong the heating time to obtain the same printing effect, if the number of heating points needing to be heated is small and the generated total printing current is small, the system controls each heating point needing to be heated to heat with a larger heating current, so as to reduce the heating time and improve the printing speed, and in such a way, best balances are obtained on the heating current and the printing speed.
, S6, judging whether printing is finished;
if not, acquiring the printing data of the lower line, and returning to continue executing S3;
if yes, the process is ended.
According to the description, the corresponding heating time and heating current are set according to the duty ratio of each row, the working state of the heating point is regulated and controlled as required, the process of completing each printing task can not only ensure that the total printing current meets the design requirements of printing equipment and is not easy to power down, but also improve the printing speed.
Further , the correspondence table in S1 is preset according to the maximum current of the printing apparatus and the minimum heating current of the heating point.
And , the minimum heating current of the heating point is half of the maximum current of the heating point.
As can be seen from the above description, the presetting of the correspondence table can be flexibly configured according to the difference of the actual design requirements of each printing device; meanwhile, in order to ensure that the heat of the heating points can meet the minimum temperature requirement of printing, the setting of the corresponding relation table also refers to the minimum heating current of each printing point, so that the adaptability of the corresponding relation table is improved.
, the step S2 specifically includes:
s21: under the control of clock signal, the printing data is input into the shift register of the printer core in serial mode;
at S22, after lines of print data are input, lines of print data are stored in data latches according to the latch signal.
, the step S5 specifically includes:
s51, the printing device determines the corresponding working heating point according to the input lines of printing data in the data latch;
s52: controlling and outputting a corresponding heating gating signal according to the determined working heating point;
s53: heating a working heating point corresponding to the heating gating signal according to the heating current and the heating time;
at S54, after printing of the lines of print data is completed, the drive motor advances by pitch angles.
From the above description, it can be seen that a specific implementation process of the correspondence table in the electronic device with the thermal printer core is also provided, and the feasibility of the scheme is ensured.
, the efficient printing method is applied to a mobile POS machine.
According to the description, the mobile POS machine powered by the lithium battery is well applied, the direct power failure caused by the fact that the current value exceeds the protection value of the lithium battery in the printing process is effectively avoided, and meanwhile the printing speed can be improved.
, when the duty ratio of the print data is less than 60%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5ms, and when the duty ratio of the print data is greater than or equal to 60% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
, when the duty ratio of the printing data is less than 25%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5ms, when the duty ratio of the printing data is greater than or equal to 25% and less than 70%, the corresponding heating current is 31-35mA, and the corresponding heating time is 2-3ms, when the duty ratio of the printing data is greater than or equal to 70% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
It can be known from the above description that two practical and optimal configuration modes of heating current and heating time corresponding to different ranges of print data duty ratio are provided, so that the printing speed and the printing current are in the best balances.
The other technical schemes provided by the invention are as follows:
computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a printing device, performs the steps of:
s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time;
s2, acquiring lines of printing data;
s3: calculating to obtain a duty ratio corresponding to the acquired printing data;
s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;
s5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
Further to step , the program may further implement the steps of:
s6: judging whether printing is finished;
if not, acquiring the printing data of the lower line, and returning to continue executing S3;
if yes, the process is ended.
Further , the correspondence table in S1 is preset according to the maximum current of the printing apparatus and the minimum heating current of the heating point.
And , the minimum heating current of the heating point is half of the maximum current of the heating point.
Further , the program performs S2 to perform the following steps:
s21: under the control of clock signal, the printing data is input into the shift register of the printer core in serial mode;
at S22, after lines of print data are input, lines of print data are stored in data latches according to the latch signal.
Further , the program performs S5 to perform the following steps:
s51, the printing device determines the corresponding working heating point according to the input lines of printing data in the data latch;
s52: controlling and outputting a corresponding heating gating signal according to the determined working heating point;
s53: heating a working heating point corresponding to the heating gating signal according to the heating current and the heating time;
at S54, after printing of the lines of print data is completed, the drive motor advances by pitch angles.
At step , the processor is a processor of a mobile POS.
, when the duty ratio of the print data is less than 60%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5ms, and when the duty ratio of the print data is greater than or equal to 60% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
, when the duty ratio of the printing data is less than 25%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5ms, when the duty ratio of the printing data is greater than or equal to 25% and less than 70%, the corresponding heating current is 31-35mA, and the corresponding heating time is 2-3ms, when the duty ratio of the printing data is greater than or equal to 70% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
Example
Referring to fig. 2, the present embodiment provides types of electronic devices suitable for any electronic device including a thermal printer core, and preferably, the present embodiment has a good application effect for a product powered by a lithium battery, such as a mobile POS machine.
The method of the embodiment comprises the following steps:
s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time.
Then, corresponding relation tables of the printing data duty ratio (X), the heating current (I) and the heating time (T) are established according to the relation, as shown in the following table 1, and the corresponding relation tables are prestored in the system of the POS machine.
TABLE 1
It should be noted that the heating current (I) and the heating time (T) In table 1 correspond to a single heating point, and I1> I2> I3 … In, T1< T2< T3 … Tn. are different products, even different thermal printer paper, and the matched correspondence table may not be , specifically, the setting of the correspondence table will be set with reference to the maximum current defined by the printing device, the design of different products is not , so the requirement for the maximum current may not be , and may be set according to the actual requirement of the printing device.
S2, acquiring lines of printing data;
specifically, the following substeps may be included:
s21: the POS machine executes printing operation, and related printing data are sequentially shifted into a shift register of the printer core in a serial mode under the control of a clock signal;
s22, after lines of printing data are input, storing the lines of printing data into the data latches under the action of the latch signal/LAT, and simultaneously executing S3 by the equipment;
s3: and calculating to obtain the duty ratio corresponding to the acquired printing data.
Specifically, the data latch will also read the line of print data and calculate the corresponding duty cycle (X).
S4: and obtaining the heating current and the heating time corresponding to the duty ratio according to the corresponding relation table.
Specifically, the POS machine will confirm which th gear of the preset correspondence table the duty ratio (X) corresponding to the line of print data is in, and accordingly execute S5, control the heating current (I) and the heating time (T) of the corresponding gear to be output.
S5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
Specifically, the S5 may specifically include the following sub-steps:
s51, the printing device of the POS machine determines the corresponding working heating point needing to be heated according to the lines of data to be printed stored in the data latch;
s52: the printing equipment of the POS machine controls and outputs a corresponding heating gating signal/ST, and the heating gating signal/ST is used for starting the determined working heating point;
s53: the printing device heats the started working heating point according to the heating current (I) and the heating time (T) determined in S4;
and S54, printing the line of data to be printed on the thermal printing paper, completing the printing of the lines of printing data, namely completing the printing of printing lines, and then driving the motor to advance by step angles.
S6: judging whether printing is finished;
if not, acquiring the printing data of the next lines, returning to continue executing S3, and continuing the printing of the next printing lines;
if yes, the printing is finished, and the printing device finishes printing.
The heating current and the heating time are changed, so that when printing is carried out on printing equipment of the POS machine, if the total printing current exceeds the maximum allowable current of the POS machine, the system can automatically reduce the heating current of each heating point and properly prolong the heating time to obtain the same printing effect, and if the number of heating points needing to be heated is small and the total printing current is small, the system controls each heating point needing to be heated by a large heating current, so that the heating time is reduced, the printing speed is improved, and best balances are achieved in the heating current and the printing speed.
Example two
In this embodiment, on the basis of the embodiment , two different configuration modes of the correspondence table are provided, which are convenient for the user to select directly, and the applicability is improved.
As shown in table 2 below, the configuration of the correspondence tables may be:
when the duty ratio X of the printing data is more than or equal to 0 and less than 60 percent, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5 ms; preferably, when 0 ≦ X < 60%, the corresponding heating current (I) is 43.7mA and the heating time (T) is 1.25 ms.
When the duty ratio X of the printing data is more than or equal to 60% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms; preferably, when X is 60% to 100%, the corresponding heating current (I) is 25.3mA and the corresponding heating time (T) is 4 ms.
TABLE 2
As shown in table 3 below, another configuration manner of the correspondence tables may be:
when the duty ratio X of the printing data is less than 25%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5 ms; preferably, when 0 ≦ X < 25%, the corresponding heating current (I) is 43.7mA and the heating time (T) is 1.25 ms.
When the duty ratio X of the printing data is more than or equal to 25% and less than 70%, the corresponding heating current is 31-35mA, and the corresponding heating time is 2-3 ms; preferably, when X is 25% to 70%, the corresponding heating current (I) is 33.12mA and the corresponding heating time (T) is 2.5 ms.
When the duty ratio of the printing data is more than or equal to 70% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms; preferably, if X is 70% to 100%, the corresponding heating current (I) is 25.3mA and the corresponding heating time (T) is 4.3 ms.
TABLE 3
EXAMPLE III
As shown in fig. 3, this embodiment provides a print control system corresponding to embodiment , comprising a system module 100, a heating current control module 200, and a print module 300.
The system module 100 is used for controlling the heating time, controlling the current control module to output the heating current with the corresponding magnitude, reading the duty ratio of the printing data and inputting the printing data into the printing module.
Specifically, the system module 100 includes a CPU module 110 and a Flash module 120; the CPU module 110 is configured to process instructions, execute operations, control time, process data, and the like;
the Flash module 120 is used for storing relevant control software;
the heating current control module 200 is used for outputting a current with a corresponding magnitude according to the control of the system module 100;
the printing module 300 is configured to print data to be printed onto thermal printing paper according to the input heating current and heating time;
specifically, the print module 300 includes a heating module 310, a heating control module 320, and a print data control module 330;
the heating module 310 consists of heating points R1 and R2 …. Rn;
the heating control module 320 consists of Q1, Q2 …. Qn transistors, which control whether heating points are heated, each heating points have transistors;
the print data control module 330 is composed of a shift register, a data latch, an control circuit, and the like.
When the printing head works, printing data are sequentially shifted into the shift register from the data input end DI under the action of a clock signal CLK, after the input of line data is finished, dot lines are stored into the data latch register under the action of a latch signal/LAT, and finally effective heating strobe signals/ST 1 and/ST 2 are output through software control, so that the corresponding heating points are electrically heated, and dot line patterns corresponding to the input data of the current data latch can be obtained on the thermosensitive printing paper.
Example four
This embodiment provides kinds of computer-readable storage media corresponding to the second embodiment, on which is stored a computer program that, when executed by a processor of a printing apparatus, implements the steps of:
and S1, presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is in inverse proportion to the heating current and in direct proportion to the heating time, and preferably, presetting the corresponding relation table according to the maximum current of the printing equipment and the minimum heating current of the heating point, wherein the minimum heating current of the heating point is half of the maximum current of the heating point.
S2, acquiring lines of printing data;
specifically, the program specifically executes the following sub-steps when executing S2:
s21: under the control of clock signal, the printing data is input into the shift register of the printer core in serial mode;
at S22, after lines of print data are input, lines of print data are stored in data latches according to the latch signal.
S3: calculating to obtain a duty ratio corresponding to the acquired printing data;
s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;
s5: controlling corresponding heating points to heat according to the heating current and the heating time;
specifically, the program specifically executes the following sub-steps when executing S5:
s51, the printing device determines the corresponding working heating point according to the input lines of printing data in the data latch;
s52: controlling and outputting a corresponding heating gating signal according to the determined working heating point;
s53: heating a working heating point corresponding to the heating gating signal according to the heating current and the heating time;
at S54, after printing of the lines of print data is completed, the drive motor advances by pitch angles.
S6: judging whether printing is finished;
if not, acquiring the printing data of the lower line, and returning to continue executing S3;
if yes, the process is ended.
Preferably, the printing device is a printing device of a mobile POS machine.
Meanwhile, two configuration modes of the corresponding relation table are provided for selection, so that the user can use the table directly and the applicability is improved. Specifically, the method comprises the following steps:
configuration modes of the corresponding relation table are that when the duty ratio of the printing data is less than 60%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5ms, and when the duty ratio of the printing data is more than or equal to 60% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
Another configuration modes of the corresponding relation table are that when the duty ratio of the printing data is less than 25%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5ms, when the duty ratio of the printing data is more than or equal to 25% and less than 70%, the corresponding heating current is 31-35mA, and the corresponding heating time is 2-3ms, when the duty ratio of the printing data is more than or equal to 70% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
In conclusion, the efficient printing method and the storage medium provided by the invention can not only realize low-current and quick printing, but also realize flexible configuration of the corresponding relation table, can provide two different configuration modes for users to directly select in step , and can improve the customer experience and improve the product market competitiveness in step .
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.
Claims (16)
- An efficient printing method of , comprising:s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time; the corresponding relation table is preset according to the maximum current of the printing equipment and the minimum heating current of the heating point;s2, acquiring lines of printing data;s3: calculating to obtain a duty ratio corresponding to the acquired printing data;s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;s5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
- 2. The efficient printing method of claim 1, further comprising:s6: judging whether printing is finished;if not, acquiring the printing data of the lower line, and returning to continue executing S3;if yes, the process is ended.
- 3. The efficient printing method of claim 1, wherein a minimum heating current of the heating dots is half of a maximum current of the heating dots.
- 4. The efficient printing method according to claim 1, wherein S2 is specifically:s21: under the control of clock signal, the printing data is input into the shift register of the printer core in serial mode;at S22, after lines of print data are input, lines of input print data are stored in the data latches according to the latch signal.
- 5. The efficient printing method according to claim 4, wherein said S5 is specifically:s51, the printing device determines the corresponding working heating point according to the input lines of printing data in the data latch;s52: controlling and outputting a corresponding heating gating signal according to the determined working heating point;s53: heating a working heating point corresponding to the heating gating signal according to the heating current and the heating time;at S54, after printing of the lines of print data is completed, the drive motor advances by pitch angles.
- 6. The efficient printing method of claim 1, wherein the efficient printing method is implemented in a mobile POS machine.
- 7. The efficient printing method according to claim 1, wherein in the correspondence table, when the duty ratio of the print data is less than 60%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5 ms; when the duty ratio of the printing data is more than or equal to 60% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
- 8. The efficient printing method according to claim 1, wherein in the correspondence table, when the duty ratio of the print data is less than 25%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5 ms; when the duty ratio of the printing data is more than or equal to 25% and less than 70%, the corresponding heating current is 31-35mA, and the corresponding heating time is 2-3 ms; when the duty ratio of the printing data is more than or equal to 70% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
- A computer-readable storage medium of type, having a computer program stored thereon, characterized in that the program, when executed by a processor of a printing device, performs the steps of:s1: presetting a corresponding relation table of printing data duty ratio, heating current and heating time, wherein the printing data duty ratio in the corresponding relation table is inversely proportional to the heating current and directly proportional to the heating time; the corresponding relation table is preset according to the maximum current of the printing equipment and the minimum heating current of the heating point;s2, acquiring lines of printing data;s3: calculating to obtain a duty ratio corresponding to the acquired printing data;s4: according to the corresponding relation table, heating current and heating time corresponding to the duty ratio are obtained;s5: and controlling the corresponding heating point to heat according to the heating current and the heating time.
- 10. The computer-readable storage medium of claim 9, wherein the program further implements the steps of:s6: judging whether printing is finished;if not, acquiring the printing data of the lower line, and returning to continue executing S3;if yes, the process is ended.
- 11. The computer-readable storage medium of claim 9, wherein the minimum heating current of the heating point is -half of the maximum current of the heating point.
- 12. The computer-readable storage medium of claim 9, wherein the program when executing S2 specifically performs the sub-steps of:s21: under the control of clock signal, the printing data is input into the shift register of the printer core in serial mode;at S22, after lines of print data are input, lines of input print data are stored in the data latches according to the latch signal.
- 13. The computer-readable storage medium of claim 12, wherein the program when executing S5 specifically performs the sub-steps of:s51, the printing device determines the corresponding working heating point according to the input lines of printing data in the data latch;s52: controlling and outputting a corresponding heating gating signal according to the determined working heating point;s53: heating a working heating point corresponding to the heating gating signal according to the heating current and the heating time;at S54, after printing of the lines of print data is completed, the drive motor advances by pitch angles.
- 14. The computer-readable storage medium of claim 9, wherein the processor is a processor of a mobile POS machine.
- 15. The computer-readable storage medium of claim 9, wherein, in the correspondence table, when the print data duty ratio is less than 60%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5 ms; when the duty ratio of the printing data is more than or equal to 60% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
- 16. The computer-readable storage medium of claim 9, wherein, in the correspondence table, when the print data duty ratio is less than 25%, the corresponding heating current is 40-45mA, and the corresponding heating time is 1-1.5 ms; when the duty ratio of the printing data is more than or equal to 25% and less than 70%, the corresponding heating current is 31-35mA, and the corresponding heating time is 2-3 ms; when the duty ratio of the printing data is more than or equal to 70% and less than 100%, the corresponding heating current is 23-30mA, and the corresponding heating time is 4-5 ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710865707.2A CN107878059B (en) | 2017-09-22 | 2017-09-22 | Efficient printing method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710865707.2A CN107878059B (en) | 2017-09-22 | 2017-09-22 | Efficient printing method and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107878059A CN107878059A (en) | 2018-04-06 |
CN107878059B true CN107878059B (en) | 2020-01-31 |
Family
ID=61780663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710865707.2A Active CN107878059B (en) | 2017-09-22 | 2017-09-22 | Efficient printing method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107878059B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109703205B (en) * | 2018-12-29 | 2020-12-22 | 厦门汉印电子技术有限公司 | Printing method, printing device, printer and storage medium |
CN113829769B (en) * | 2021-09-30 | 2023-09-22 | 珠海趣印科技有限公司 | Printing speed optimization method and device for Bluetooth printer |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1655138A2 (en) * | 2004-11-05 | 2006-05-10 | Samsung Electronics Co., Ltd. | Thermal Printer |
CN101357543A (en) * | 2008-09-25 | 2009-02-04 | 北京公达数码科技有限公司 | Thermal printer sectional drive printing method and system |
CN102529417A (en) * | 2010-12-28 | 2012-07-04 | 理想科学工业株式会社 | Thermal head system and electrifying control method for thermal head |
CN104309339A (en) * | 2014-10-23 | 2015-01-28 | 福建联迪商用设备有限公司 | Print control method and device of thermal printer |
CN104494317A (en) * | 2014-11-27 | 2015-04-08 | 深圳市理邦精密仪器股份有限公司 | Apparatus and method for automatically adjusting heating time of thermo-sensitive printer |
-
2017
- 2017-09-22 CN CN201710865707.2A patent/CN107878059B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1655138A2 (en) * | 2004-11-05 | 2006-05-10 | Samsung Electronics Co., Ltd. | Thermal Printer |
CN101357543A (en) * | 2008-09-25 | 2009-02-04 | 北京公达数码科技有限公司 | Thermal printer sectional drive printing method and system |
CN102529417A (en) * | 2010-12-28 | 2012-07-04 | 理想科学工业株式会社 | Thermal head system and electrifying control method for thermal head |
CN104309339A (en) * | 2014-10-23 | 2015-01-28 | 福建联迪商用设备有限公司 | Print control method and device of thermal printer |
CN104494317A (en) * | 2014-11-27 | 2015-04-08 | 深圳市理邦精密仪器股份有限公司 | Apparatus and method for automatically adjusting heating time of thermo-sensitive printer |
Also Published As
Publication number | Publication date |
---|---|
CN107878059A (en) | 2018-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109016890B (en) | Memory, thermal printer and printing control method thereof | |
CN107878059B (en) | Efficient printing method and storage medium | |
EP0295953B1 (en) | Printing method of thermal printer | |
CN109532240B (en) | Thermal inertia effect compensation method, control module, terminal and time control method | |
CN205272894U (en) | Miniature thermal printer control system | |
US4566813A (en) | Dot-matrix print controller | |
US6570601B2 (en) | Method of driving a thermal line printer and thermal line printer | |
US5483273A (en) | Drive control apparatus for thermal head | |
CN105620060A (en) | Printer control circuit | |
CN112590401B (en) | Thermal printer control method, thermal printer control device, thermal printer and medium | |
CN112904751A (en) | Heating logic control method of thermal printing head | |
TWI666126B (en) | Print head device and print method | |
EP0501707B1 (en) | Drive control apparatus for thermal head | |
CN112590400B (en) | Thermal printer control method, thermal printer control device, thermal printer and medium | |
JP7017181B2 (en) | Thermal printers, sales data processing equipment, printing methods and programs | |
US6784909B2 (en) | Auxiliary control device for managing printing in a thermal printer | |
JPH01160657A (en) | Thermosensitive printer | |
US11001079B2 (en) | Thermal printer and computer-readable storage medium | |
JPH07237306A (en) | Device for identifying printing head in printer | |
CN112895732A (en) | System for heating logic control thermal printing head | |
JP2016128215A (en) | Printer and control method of the same | |
JP7165503B2 (en) | Thermal printer and print control method | |
JPH0538847A (en) | Output control device for dot printer head | |
CN112590402A (en) | Thermal printer control method, thermal printer control device, thermal printer and medium | |
JPH0728651U (en) | Thermal head print density control device |
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 |