CN102886990B - Two-sided printer and control method thereof - Google Patents
Two-sided printer and control method thereof Download PDFInfo
- Publication number
- CN102886990B CN102886990B CN201110207186.4A CN201110207186A CN102886990B CN 102886990 B CN102886990 B CN 102886990B CN 201110207186 A CN201110207186 A CN 201110207186A CN 102886990 B CN102886990 B CN 102886990B
- Authority
- CN
- China
- Prior art keywords
- data
- length
- printhead
- bill
- 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
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/315—Typewriters 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/32—Typewriters 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
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J3/00—Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
- B41J3/60—Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for printing on both faces of the printing material
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
The invention discloses a two-sided printer and a control method thereof, wherein the two-sided printer comprises a first printing head and a second printing head, and a distance L is spaced between the first printing head and the second printing head in a printing medium conveying direction. The control method of the two-sided printer comprises the following steps of: receiving first data of a first note; judging whether current printing is first printing; under the condition of determining the current printing to be the first printing, firstly controlling the second printing head to print fixed length data of the first note; or under the condition of determining the current printing not to be the first printing, controlling the first printing head to print the first data of the first note on a first side of the printing medium, and controlling the second printing head to sequentially print variable length data of the first note and fixed length data of a second note on a second side of the printing medium. Through the invention, blank areas of the second side of the printing medium can be eliminated under the condition of not influencing the printing speed of the two-sided printer, and the utilization ratio of the second side of the printing medium is improved.
Description
Technical field
The present invention relates to printing field, in particular to a kind of duplex printer and control method thereof.
Background technology
Printer extensive use in supermarket, market, for printing detail or the invoice (being referred to as receipt below) of commodity transaction.Because transaction details or invoice can as medium to consumer's transmission of informations.Therefore, Chinese patent 200680016024.X discloses a kind of duplex printer and print control program thereof, the information such as transaction details can be printed at front side of receipts, print various side information at the receipt back side, as the favor information, sales promotion information, advertising message, various informations etc. of commodity.As shown in Figure 1, duplex printer 1 comprises the first printhead 50 and the second printhead 60, be oppositely arranged with the first air roll 30 and the second air roll 40 respectively, along print media throughput direction, first printhead 50 is positioned at the second printhead 60 downstream, and spacing distance is between the two L, wherein, first printhead 50 prints transaction data for the first surface at print media 20, and the second printhead 60 is for second print ad or sales promotion information etc. at print media 20.Fig. 2 illustrates the print What on the first surface of print media 20 and second, as shown in Figure 2,39 is print media throughput direction, receipt first surface 201 is the transaction details printed by the first printhead 50, receipt second face 202 is the commercial promotions information printed by the second printhead 60, owing to there is interval L between the first printhead 50 and the second printhead 60, receipt first surface and receipt second top of form cannot be alignd, therefore, there is the white space 21 that a length is L in receipt second face 202, reduce the utilization rate at the print media back side.
In order to eliminate the white space 21 on receipt second face 202, provide a kind of method in the prior art, the method is before printing, it is the distance of L that print media 20 first retreats length, below the second printhead 60 original position of print media being positioned at be in upstream, then elder generation is by the second printhead 60 in print media second printing, and when the original position arrival of print media is in below first printhead 50 in downstream, the first printhead 50 starts to print at first surface.But, before the printing, first carry out print media back operation, reduce the print speed of printer.
How eliminating the white space of print media second when not affecting duplex printer print speed, not yet proposing effective solution at present.
Summary of the invention
Main purpose of the present invention is to provide a kind of duplex printer and control method thereof, to solve the problem how eliminating the white space of print media second when not affecting duplex printer print speed.
To achieve these goals, according to an aspect of the present invention, a kind of control method of duplex printer is provided.Wherein, duplex printer comprises the first printhead and the second printhead, wherein, along print media throughput direction, first printhead is positioned at the second printhead downstream, first printhead is used for printing the first data at the first surface of print media, second printhead is used for printing fixed-length data and variable length data at second of print media, first printhead and the second printhead are at print media throughput direction spacing distance L, and the control method of this duplex printer comprises: the first data receiving the first bill, judge whether current printing is print first, and determine currently to print to when printing first, control the fixed-length data of the second printhead prints first bill, and after the fixed-length data having printed the first bill, or, when determine current printing be not print first, control the first printhead prints the first bill the first data at the first surface of print media, and control the second printhead and print the variable length data of the first bill and the fixed-length data of the second bill successively in the second face of print media, wherein, first bill and the second bill are two bills of front and back adjacent print, the end position of the first bill is the starting position of the second bill, the print length of fixed-length data equals distance L, the print length sum of variable length data and fixed-length data and the print length of the first data match.
Further, obtain variable length data and fixed-length data by the following method: generate variable length data and fixed-length data, or, receive variable length data, generate fixed-length data, or, generate variable length data, receive fixed-length data, or, receive variable length data and fixed-length data.
Further, generate fixed-length data to comprise: generate fixed-length data by reading the data block prestored in the first database.
Further, comprise by reading the data block generation fixed-length data prestored in the first database: receive data block selection instruction; And read from the first database and select the data block corresponding with data block selection instruction to generate fixed-length data.
Further, generate variable-length data package to draw together: the print length L1 calculating the first data; The print length L print length L1 of the first data being deducted fixed-length data obtains the print length L2 of variable length data; In combined data block table, search the first combined data block matched with print length L2, wherein, in combined data block table, be previously stored with the corresponding relation of multiple combined data block and print length; From the second database, transfer the data block of composition first combined data block according to lookup result, wherein, in the second database, be previously stored with multiple data block; And generate variable length data according to the data block transferred.
Further, judge whether current printing is print first to comprise: judge whether current printing is print first according to the printing mark prestored, wherein, determine current print to first print and control the second printhead prints first bill fixed-length data after, said method also comprises: amendment print mark.
To achieve these goals, according to a further aspect in the invention, a kind of duplex printer is provided.This duplex printer comprises the first printhead and the second printhead, wherein, along print media throughput direction, first printhead is positioned at the second printhead downstream, first printhead is used for printing the first data at the first surface of print media, second printhead is used for printing fixed-length data and variable length data at second of print media, first printhead and the second printhead are at print media throughput direction spacing distance L, also comprise: controller, for after the first data receiving the first bill, judge whether current printing is print first, and whether print media arrives the second printhead, when determine current print to first print and print media arrive the second printhead, control the fixed-length data of the second printhead prints first bill, and after the fixed-length data having printed the first bill, or, when determine current printing be not print first, control the first printhead prints the first bill the first data at the first surface of print media, and control the second printhead and print the variable length data of the first bill and the fixed-length data of the second bill successively in the second face of print media, wherein, first bill and the second bill are two bills of front and back adjacent print, the end position of the first bill is the starting position of the second bill, the print length of fixed-length data equals distance L, the print length sum of variable length data and fixed-length data and the print length of the first data match.
Further, controller is used for obtaining variable length data and fixed-length data by the following method: generate variable length data and fixed-length data, or, generate fixed-length data, variable length data is received via interface unit, wherein, duplex printer also comprises interface unit, or, generate variable length data, fixed-length data is received via interface unit, wherein, duplex printer also comprises interface unit, or, variable length data and fixed-length data is received via interface unit, wherein, duplex printer also comprises interface unit.
Further, duplex printer also comprises: first memory, for preserving the first database, wherein, first database is for preserving at least one first data block preset, the print length of the first data block on print media throughput direction equals distance L, and wherein, controller is also for generating fixed-length data by the first data block in reading first database.
Further, interface unit is also for receiving data block selection instruction, and wherein, controller also for reading and selecting the data block corresponding with data block selection instruction to generate fixed-length data from the first database.
Further, duplex printer also comprises: second memory, mark is printed for storing, wherein, whether printing mark is used to indicate current printing is print first, and wherein, according to the printing mark prestored, controller is also for judging whether current printing is print first, and determine current print to first print and control the second printhead prints first bill fixed-length data after, amendment print mark.
By the control method of duplex printer provided by the invention or duplex printer, owing to first judging whether current printing is print first before the printing, when printing first, first only control the second printhead prints fixed-length data, control the first printhead again and the second printhead prints simultaneously, namely, while controlling the first data of the first printhead prints first bill, control the variable length data of the second printhead prints first bill and the fixed-length data of the second bill, non-print first in, direct control first printhead and the second printhead print simultaneously, solve the problem how eliminating the white space of print media second when not affecting duplex printer print speed, and then reach the white space eliminating print media second when not affecting duplex printer print speed, and mention the effect of print media second utilization rate.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the duplex printer of prior art;
Fig. 2 is the medium printing design sketch of the duplex printer of prior art;
Fig. 3 is the module composition schematic diagram according to the duplex printer of the embodiment of the present invention;
Fig. 4 is the schematic layout pattern of each module in paper feed passage of the duplex printer according to the embodiment of the present invention;
Fig. 5 is the flow chart of duplex printing control method according to a first embodiment of the present invention;
Fig. 6 is the flow chart of duplex printing control method according to a second embodiment of the present invention;
Fig. 7 is the flow chart of duplex printing control method according to a third embodiment of the present invention;
Fig. 8 is the flow chart of the data-printing process of duplex printing control method according to an embodiment of the invention;
Fig. 9 be according to a second embodiment of the present invention on medium, carry out data-printing time data-printing position view; And
Figure 10 a to Figure 10 d is media location schematic diagram when carrying out data-printing according to an embodiment of the invention on medium.
Detailed description of the invention
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Fig. 3 is the module composition schematic diagram according to the duplex printer of the embodiment of the present invention, and the composition of duplex printer is described below with reference to Fig. 3.
Duplex printer 80 comprises: controller 81, interface unit 82, RAM memory 83, FLASH memory 84, media conveying mechanism 85, first printing mechanism 86, second printing mechanism 87 and sensor 88, wherein, controller 81 controls the work of each comprising modules, as the data 72 that control interface unit 82 Receiving Host 70 sends, control medium conveying mechanism 85 carries print media, controls printing mechanism and carries out data-printing etc., interface unit 82, the data 72 that Receiving Host 70 sends, and the data temporary storage received in RAM memory 83, data 72 comprise the first data and variable length data, wherein, first data are the data being printed on print media first surface, as transaction data etc., variable length data is the data being printed on print media second, as commercial promotions information, the side information etc. of transaction data, its print length changes along with the print length change of the first data, it should be noted that, variable length data both can be included in data 72, namely obtained by the data of Receiving Host 70, also can be the data be stored in advance in duplex printer.The data being printed on second, medium also comprise fixed-length data, wherein, the print length of fixed-length data equals the distance between the first printhead and the second printhead, the print length of the print length of variable length data and the print length sum of fixed-length data and the first data matches, data 72 can also comprise data block selection instruction, wherein, data block selection instruction is for selecting the data block generating fixed-length data.First data and variable length data can be the data (being called for short printer language data) described with printer language, as the data described with PDL language, with the data etc. that ESC/P language describes, can also be the data (abbreviation raster data) of raster format; RAM memory 83, for preserve main frame 70 send the first data, variable length data, sensor 88 detection data and print mark etc., wherein, print mark and represent whether printer prints first, mark is printed as arranged after receiving data block selection instruction or after printer start or after changing print media, under normal circumstances, using 1 as printing mark first, mark is printed first as non-using 0, that is, when printing is masked as 1, represent that current printing to prints first, when printing is masked as 0, represent that current printing to non-ly prints first; FLASH memory 84, for preserving control program and first database of printer, wherein, first database preserves the data block pre-set of at least one generating fixed-length data, the print length of each data block on print media throughput direction equals the distance between the first printhead and the second printhead, and each data block can be the information such as market LOGO, welcome message, address, market, network address.Data block can be raster data, also can be printer language data.FLASH memory 84 is also for preserving the second database and combined data block table, wherein, second database preserves the multiple data blocks preset for generating variable length data, and each data block generates an advertising message, and each data block is preserved with the data of raster format.Combined data block table is for preserving the corresponding relation between the combination (abbreviation combined data block) of each data block in the second database and its print length; Media conveying mechanism 85, moves in paper feed passage for carrying print media; First printing mechanism 86, comprises the first printhead 86a and air roll 86b, and wherein, the first printhead 86a is used for the first data-printing first surface on the print medium, and air roll 86b is for being pressed in print media the first printhead 86a; Second printing mechanism 87, comprises the second printhead 87a and air roll 87b, and wherein, the second printhead 87a is used at print media second of the second data-printing, and air roll 87b is for being pressed in print media the second printhead 87a; Sensor 88, is connected with controller, and for detecting the position of print media in paper feed passage, can be reflective sensor, also can be transmission sensor.Printer also comprises paper cutting mechanism (not shown), for being separated continuous type print media.
Fig. 4 is the schematic layout pattern of each module in paper feed passage of the duplex printer according to the embodiment of the present invention.As shown in the figure, along print media throughput direction, paper feed passage is arranged in sequence with media conveying mechanism 85, sensor 88, second printing mechanism 87, first printing mechanism 86 and paper cutting mechanism 893.In second printing mechanism 87 in the print position P2 of the second printhead 87a and the first printing mechanism 86 first printhead 86a print position P1 between distance be L.Along medium transport direction 891, media conveying mechanism 85 drives print media to move in paper feed passage, when print media arrives sensor 88, detects that printer has paper; When print media arrives the second printing mechanism 87, print media passes through between the second printhead 87a and air roll 87b, and under the support of air roll 87b, the second printhead 87a can at print media second printed drawings picture or word; When print media arrives the first printing mechanism 86, print media passes through between the first printhead 86a and air roll 86b, and under the support of air roll 86b, the first printhead 86a can at print media first surface printed drawings picture or word; Paper cutting mechanism 893 carries out rupturing operation to the print media after printing, makes the print media after printing be separated into many pieces of bill.
The flow chart of Fig. 5 duplex printing control method according to a first embodiment of the present invention, concrete processing procedure is as follows:
Step S11, receives the first data of the first bill
First data of the first bill that printer is sent by communication interface Receiving Host, and the first data of the first bill received are kept in RAM memory 83.Along print media throughput direction, printer can print multiple bills on continuous print print media, and each bill is adjacent between two, and for convenience of description, the bill first printed in adjacent two bills is called the first bill, and the bill of rear printing is called the second bill.
Step S12, generates the variable length data of the first bill and the fixed-length data of the second bill
Controller 81 calculates the print length L1 of the first data of the first bill be kept in RAM memory 83, and when these first data are printer language data, controller 81 is also converted to raster data these first data from printer language data.Controller 81 calculates its print length according to the data volume of these the first data.Circular is, if the data volume of these the first data be S byte, the data volume of a pixel rows is Si byte, the print length of these the first data is L1, then L1=S/Si (OK); If the print length of every pixel rows is Li (cm), then L1=(S/Si) * Li (cm).Controller 81 calculates the print length L2 of the variable length data of the first bill according to the print length of these the first data, the print length that the print length of this variable length data equals these the first data deducts the print length of fixed-length data, i.e. L2=(L1-L).The combined data block matched with the print length L2 of this variable length data searched by controller 81 from combined data block table, transfers corresponding data block according to the combined data block found from the second database, generates variable length data.Controller 81 reads default data block from the first database, generates the fixed-length data of the second bill.
Table 1 is the data block table be kept in the second database according to the embodiment of the present invention, and this table illustrates the situation of preserving four data blocks in the second database.
Table 1
As shown in table 1, the print length of data block A is 2cm, the data block file of its correspondence is imageA, the print length of data block B is 3cm, the data file of its correspondence is imageB, and the print length of data block C is 5cm, and the data block file of its correspondence is imageC, the print length of data block D is 8cm, and the data file of its correspondence is imageD.
Table 2 is according to combined data block table of the present invention, and this table is the combined data block table corresponding with the second database shown in table 1.
Table 2
As shown in table 2, have recorded the composition of combined data block and the corresponding relation of each combined data block and its print length in this form.Therefore, according to the print length of variable length data, search the combined data block of mating with the print length of variable length data in combined data block table, the print length of this combined data block and the print length of variable data block match.From the second database, transfer each data block of composition combined data block according to checking result, generate the variable length data of raster format.
It should be noted that, both data block and print length thereof can be stored in table 1, also only data block can be stored, when storing data block and print length thereof in Table 1 simultaneously, the generation of variable length data can be realized in conjunction with the computing of controller by means of only data block table, and without the need to arranging combined data block table again; Table 2 both only can store the corresponding relation of combined data block and its print length, also each data block can both be stored, also the corresponding relation of combined data block and its print length is stored, now, also the generation of variable length data can be realized by means of only combined data block table, and without the need to setting data block table again.Design parameter in table 1 and table 2, such as, print length 2,3,5 etc., combination image A, (A+C) etc. are only that citing describes, and each combination in table 2 is also not exhaustive to four data block combinations.
Step S13, judges whether current printing is print first
According to printing mark, controller 81 judges whether this printing is print first, be masked as 1 if printed, then this prints to and prints first, forwards step S14 to; If print and be masked as 0, then this printing is not print first, then forward step S15 to.
Step S14, the second printhead prints the fixed-length data of the first bill print media second, and amendment prints mark.
Step S15, prints the first data of the first bill at print media first surface, print the variable length data of the first bill and the fixed-length data of the second bill in print media second face successively
Print the first data of the first bill at print media first surface, along print media throughput direction, print the variable length data of the first bill and the fixed-length data of the second bill successively in print media second face.
Often print a bill, first printhead prints the first data of the first bill at the first surface of print media, second printhead prints the variable length data of the first bill and the fixed-length data of the second bill print media second, and the print length of the print length sum of the print length of variable length data and fixed-length data and the first data matches, eliminate the white space occurred on bill second because of the spacing between the second printhead and the first printhead, the information that improve print media second prints utilization rate.
The flow chart of Fig. 6 duplex printing control method according to a second embodiment of the present invention, concrete processing procedure is as follows:
Step S21, receives the first data of the first bill and the variable length data of the first bill
First data of the first bill that printer is sent by communication interface Receiving Host and the variable length data of the first bill, and the first data of the first bill received and the variable length data of the first bill are kept in RAM memory 83.Variable length data can be generated by the controller of main frame, and the print length of the first data of the print length of the variable length data of the first bill and the print length sum of fixed-length data and the first bill matches.
Step S22, generates fixed-length data
Controller 81 reads the setting data block prestored in the first database, if the data of this setting data block are printer language data, controller 81 is also converted to raster data the data of this data block from printer language data, generate fixed-length data, the fixed-length data generated both can be printed on the first bill, also can be printed on the second bill, wherein, be called the fixed-length data of the first bill when the fixed-length data of generation is printed on the first bill, be called the fixed-length data of the second bill when being printed on the second bill.
Step S23, determines whether to print first
According to printing mark, controller 81 judges whether this printing is print first, be masked as 1 if printed, then this prints to and prints first, forwards step S24 to; If print and be masked as 0, then this printing is not print first, then forward step S25 to.
Step S24, the second printhead prints the fixed-length data of the first bill print media second, and amendment prints mark
As shown in Figure 9, print media comprises the first bill and the second bill, print the fixed-length data in the first bill second face 95 ' at the region 97a in print media second face 90 ' along medium transport direction 891, second printhead, fixed-length data prints and terminates rear amendment printing mark.In the print procedure of the second printhead, the first printhead does not carry out data-printing.
Step S25, prints the first data of the first bill at print media first surface, print the variable length data of the first bill and the fixed-length data of the second bill print media second
When the first data of the first bill and the variable length data of the first bill are printer language data, controller 81 also sends to the first printhead and the second printhead prints the first data and variable length data respectively after printer language data are converted to raster data.As shown in Figure 9, along medium transport direction 891, first printhead prints the first data of the first bill in the region 98 of print media first surface 90, and the region 97b of the second printhead in print media second face 90 ' and region 97c prints the variable length data of the first bill and the fixed-length data of the second bill respectively.
When printing first, the fixed-length data of the second printhead prints first bill, the variable length data of the first bill and the fixed-length data of the second bill; Carry out non-print first time, the second printhead only prints the variable length data of the first bill and the fixed-length data of the second bill.
Second printhead of the present invention is except the variable length data of printing first bill, also print the fixed-length data of the second bill, and the print length of fixed-length data equals the first printhead and the second printhead spacing, eliminate because of the spacing between the second printhead and the first printhead at the white space that print media second occurs, the information that improve print media second prints utilization rate.
The flow chart of Fig. 7 duplex printing control method according to a third embodiment of the present invention, concrete processing procedure is as follows:
Step S31, receives the first data, variable length data and data block selection instruction
First data of the first bill that printer is sent by communication interface Receiving Host, the variable length data of the first bill and data block selection instruction, and the first data of the first bill received, the variable length data of the first bill and data block selection instruction are left in RAM memory 83.
Step S32, generates fixed-length data according to data block selection instruction
According to the data block selection instruction of leaving in RAM memory 83, read from the first database and select the data block corresponding with data block selection instruction.According to selected data block, generate fixed-length data.As preserved the data block of data block A, B, C in the first database, data block B is selected in data block selection instruction, then from the first database, selected data block B is selected data block.If selected data block is printer language data, then controller 81 is also converted to raster data selected data block from printer language data.
Step S33, judges whether current printing is print first
According to printing mark, controller 81 judges whether this printing is print first, be masked as 1 if printed, then current printing to prints first, forwards step S34 to; If print and be masked as 0, then current printing is not print first, then forward step S35 to.
Step S34, the second printhead prints the fixed-length data of the first bill print media second
As shown in Figure 9, print the fixed-length data of the first bill at the region 97a in print media second face 90 ' along medium transport direction 891, second printhead.Print first in the print procedure of fixed-length data at the second printhead, the first printhead does not carry out data-printing.
Step S35, prints the first data of the first bill at print media first surface, print the variable length data of the first bill and the fixed-length data of the second bill in print media second face successively
When the first data of the first bill, the variable length data of the first bill are printer language data, controller 81 also sends to the first printhead and the second printhead respectively after the variable length data of the first data of the first bill, the first bill is converted to raster data from printer language data.As shown in Figure 9, along medium transport direction 891, first printhead prints the first data of the first bill in the region 98 of print media first surface 90, and the region 97b of the second printhead in print media second face 90 ' and region 97c prints the variable length data of the first bill and the fixed-length data of the second bill respectively.
According to the data block needing selection second printhead to print of application, the white space in the appearance of second, medium because of the spacing between the second printhead and the first printhead can be not only eliminated, also improves the flexibility of medium second institute's type information.
Figure 10 a to Figure 10 d is position view when carrying out data-printing according to an embodiment of the invention on medium, as shown in the figure, print media has first surface 90 and the second face 90 ', according to printing sequencing, print media prints the first connected bill and the second bill, wherein, the end position of the first bill is the starting position of the second bill.For convenience, mark position 91,92,94 on first bill, wherein, position 91 is the starting position of the first bill, position 94 is the end position of the first bill, and the distance between position 92 and position 91 equals the spacing L between the first printhead and the second printhead; Mark position 91 ', 92 ' on second bill, wherein, position 91 ' is the starting position of the second bill, and the distance between position 92 ' and position 91 ' equals the spacing L between the first printhead and the second printhead.
Fig. 8 is the flow chart of the data-printing process of duplex printing control method according to an embodiment of the invention, and the concrete process of data-printing process is described jointly below in conjunction with Fig. 8 and Figure 10 a to Figure 10 d, and concrete processing procedure is as follows:
Step S51, determines whether to print first
According to printing mark, controller 81 judges whether this printing is print first, be masked as 1 if printed, then this prints to and prints first, forwards step S52 to; If print and be masked as 0, then this printing is not print first, forwards step S54 to.
Step S52, judges whether print media arrives the second printhead P2 place
Detect print media by sensor 88 and whether arrive the second printhead P2 in paper feed passage, if print media does not arrive the second printhead P2 place, then continue to detect, until print media arrives the second printhead P2 place.Owing to there is certain distance between sensor 88 and the second printhead P2 place, can judge whether print media arrives the second printhead P2 place by the mode of the certain distance that readvances after sensor 88 detects print media; If print media arrives the second printhead P2 place, then forward step S53 to.
Step S53, the second printhead prints the fixed-length data of the first bill print media second, and amendment prints mark
As shown in Figure 10 a, second printhead prints the fixed-length data of the first bill from the position 91 of the first bill in print media second face 90 ', in print procedure, media conveying mechanism 85 carries print media to advance along medium transport direction 891, as shown in fig. lob, until position 92 arrives the second printhead P2 place, now, the print length of medium is L.In the process, the first printhead not print data.
Step S54, the first printhead prints the first data of the first bill at medium first surface, and the second printhead prints the variable length data of the first bill in second, medium
As shown in fig. lob, from the position 92 of the first bill arrives the second printhead P2 place, data-printing is carried out on the two sides of medium, wherein, first printhead prints the partial data of the first data of the first bill at print media first surface 90, second printhead prints the variable length data of the first bill in print media second face 90 ', as shown in figure l oc, until position 94 arrives the second printhead P2 place.
Step S55, the first printhead prints the first data of the first bill at medium first surface, and the second printhead prints the fixed-length data of the second bill in second, medium
As shown in figure l oc, from the end position 94 of the first bill, namely the starting position 91 ' of the second bill arrives the beginning of the second printhead P2 place, first printhead prints the remaining data of the first data of the first bill, the second printhead print the second bill fixed-length data in second, medium at print media first surface, as shown in fig. 10d, until the position 92 ' of the second bill arrives the second printhead P2 place.
When printing the first bill, the second printhead being positioned at upstream not only prints the variable length data of the first bill at second of print media, but also the fixed-length data of the second bill is printed at second of print media, thus when not affecting print speed, eliminate the printing white space because spacing between two printhead causes, improve the utilization rate of print media second.The print What being printed on the fixed-length data of bill second is changed by data block selection instruction, not only eliminate the white space of second, medium, the print What of fixed-length data can also be changed arbitrarily according to the needs of practical application, improve the flexibility of application.
From above description, can find out, the control method of the duplex printer that the embodiment of the present invention provides or duplex printer prints the first data by the first printhead at print media first surface, fixed-length data and variable length data is printed print media second by the second printhead, wherein, the print length of fixed-length data equals the distance between the first printhead and the second printhead, the print length of the print length of variable length data and the print length sum of fixed-length data and the first data matches, when not affecting print speed, the white space of print media second is eliminated by the second printhead prints fixed-length data, improve the utilization rate of print media second.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. the control method of a duplex printer, wherein, described duplex printer comprises the first printhead and the second printhead, wherein, along print media throughput direction, described first printhead is positioned at described second printhead downstream, described first printhead is used for printing the first data at the first surface of print media, described second printhead is used for printing fixed-length data and variable length data at second of print media, described first printhead and described second printhead are at print media throughput direction spacing distance L, it is characterized in that, comprising:
Receive the first data of the first bill;
Judge whether current printing is print first;
When determine current print to print first, control the fixed-length data of described second printhead prints first bill; And
After the fixed-length data having printed the first bill, or, when determine current printing be not print first, control described first printhead prints described first bill the first data at the first surface of print media, and control described second printhead and print the variable length data of described first bill and the fixed-length data of the second bill successively in the second face of print media
Wherein, described first bill and described second bill are two bills of front and back adjacent print, the end position of described first bill is the starting position of described second bill, the print length of described fixed-length data equals described distance L, the print length sum of described variable length data and described fixed-length data and the print length of described first data match
Wherein, obtain described variable length data and described fixed-length data by the following method: generate described variable length data and described fixed-length data, or, generate described variable length data, receive described fixed-length data,
Wherein, generate described variable-length data package to draw together: the print length L1 calculating described first data; The print length L print length L1 of described first data being deducted described fixed-length data obtains the print length L2 of described variable length data; In combined data block table, search the first combined data block matched with described print length L2, wherein, in described combined data block table, be previously stored with the corresponding relation of multiple combined data block and print length; From the second database, transfer the data block forming described first combined data block according to lookup result, wherein, in described second database, be previously stored with multiple data block; Described variable length data is generated according to the data block transferred.
2. the control method of duplex printer according to claim 1, is characterized in that, generates described fixed-length data and comprises:
Described fixed-length data is generated by reading the data block prestored in the first database.
3. the control method of duplex printer according to claim 2, is characterized in that, generates described fixed-length data comprise by reading the data block prestored in the first database:
Receive data block selection instruction; And
Read from described first database and select the data block corresponding with described data block selection instruction to generate described fixed-length data.
4. the control method of duplex printer according to claim 1, is characterized in that,
Judge whether current printing is print first to comprise:
Judge whether current printing is print first according to the printing mark prestored,
Wherein, determining that current printing to prints and after controlling the fixed-length data of the first bill described in described second printhead prints, described method also comprises first:
Revise described printing mark.
5. a duplex printer, comprise the first printhead and the second printhead, wherein, along print media throughput direction, described first printhead is positioned at described second printhead downstream, and described first printhead is used for printing the first data at the first surface of print media, described second printhead is used for printing fixed-length data and variable length data at second of print media, described first printhead and described second printhead, at print media throughput direction spacing distance L, is characterized in that, also comprise:
Controller, for after the first data receiving the first bill, judge whether current printing is print first, and when determine current print to print first, control the fixed-length data of the first bill described in described second printhead prints, and after the fixed-length data having printed the first bill, or, when determine current printing be not print first, control described first printhead prints described first bill the first data at the first surface of print media, and control described second printhead and print the variable length data of described first bill and the fixed-length data of the second bill successively in the second face of print media,
Wherein, described first bill and described second bill are two bills of front and back adjacent print, the end position of described first bill is the starting position of described second bill, the print length of described fixed-length data equals described distance L, the print length sum of described variable length data and described fixed-length data and the print length of described first data match
Wherein, described controller is used for obtaining described variable length data and described fixed-length data by the following method: generate described variable length data and described fixed-length data, or, generate described variable length data, described fixed-length data is received via interface unit, wherein, described duplex printer also comprises described interface unit
Wherein, described controller is used for generating described variable length data by the following method: the print length L1 calculating described first data; The print length L print length L1 of described first data being deducted described fixed-length data obtains the print length L2 of described variable length data; In combined data block table, search the first combined data block matched with described print length L2, wherein, in described combined data block table, be previously stored with the corresponding relation of multiple combined data block and print length; From the second database, transfer the data block forming described first combined data block according to lookup result, wherein, in described second database, be previously stored with multiple data block; Described variable length data is generated according to the data block transferred.
6. duplex printer according to claim 5, characterized by further comprising:
First memory, for preserving the first database, wherein, described first database is for preserving at least one first data block preset, and the print length of described first data block on print media throughput direction equals described distance L,
Wherein, described controller is also for generating described fixed-length data by the first data block read in described first database.
7. duplex printer according to claim 6, is characterized in that,
Described interface unit also for receiving data block selection instruction,
Wherein, described controller also for reading and selecting the data block corresponding with described data block selection instruction to generate described fixed-length data from described first database.
8. duplex printer according to claim 5, is characterized in that, also comprises:
Second memory, print mark for storing, wherein, whether described printing mark is used to indicate current printing is print first,
Wherein, according to the printing mark prestored, described controller is also for judging whether current printing is print first, and determining that current printing to prints first and after controlling the fixed-length data of the first bill described in described second printhead prints, revise described printings and indicate.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110207186.4A CN102886990B (en) | 2011-07-22 | 2011-07-22 | Two-sided printer and control method thereof |
PCT/CN2012/078895 WO2013013593A1 (en) | 2011-07-22 | 2012-07-19 | Duplex printer and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110207186.4A CN102886990B (en) | 2011-07-22 | 2011-07-22 | Two-sided printer and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102886990A CN102886990A (en) | 2013-01-23 |
CN102886990B true CN102886990B (en) | 2015-04-01 |
Family
ID=47530757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110207186.4A Active CN102886990B (en) | 2011-07-22 | 2011-07-22 | Two-sided printer and control method thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102886990B (en) |
WO (1) | WO2013013593A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105082785A (en) * | 2015-08-11 | 2015-11-25 | 安徽远鸿机械自动化有限公司 | Double-sided printing method of packing machine |
CN106183482B (en) * | 2016-06-30 | 2018-05-29 | 广东金赋科技股份有限公司 | A kind of method and device for preventing printing paper cut paper error accumulation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1952997A2 (en) * | 2007-02-05 | 2008-08-06 | Seiko Instruments Inc. | Method of producing double-sided printed material and double-sided printing apparatus |
CN101370666A (en) * | 2005-12-08 | 2009-02-18 | Ncr公司 | Dual-sided thermal printing |
CN102103476A (en) * | 2011-03-01 | 2011-06-22 | 山东新北洋信息技术股份有限公司 | Two-sided printing system and control method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002234215A (en) * | 2001-02-09 | 2002-08-20 | Casio Comput Co Ltd | Apparatus and program for issuing receipt |
JP4990741B2 (en) * | 2007-11-15 | 2012-08-01 | 東芝テック株式会社 | Product sales data processing device |
JP5629254B2 (en) * | 2011-11-14 | 2014-11-19 | 東芝テック株式会社 | Product sales data processing device |
-
2011
- 2011-07-22 CN CN201110207186.4A patent/CN102886990B/en active Active
-
2012
- 2012-07-19 WO PCT/CN2012/078895 patent/WO2013013593A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101370666A (en) * | 2005-12-08 | 2009-02-18 | Ncr公司 | Dual-sided thermal printing |
EP1952997A2 (en) * | 2007-02-05 | 2008-08-06 | Seiko Instruments Inc. | Method of producing double-sided printed material and double-sided printing apparatus |
CN102103476A (en) * | 2011-03-01 | 2011-06-22 | 山东新北洋信息技术股份有限公司 | Two-sided printing system and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2013013593A1 (en) | 2013-01-31 |
CN102886990A (en) | 2013-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101081577B (en) | Duplex printer | |
CN102218940B (en) | Image processing apparatus and image processing method | |
EP2361777B1 (en) | Print control apparatus and print control method | |
US20110002010A1 (en) | Image recording system and controlling method thereof | |
CN100556701C (en) | Use ink-jet and two print units of temperature-sensitive on heat-sensitive paper, to print the method for receipt | |
CN102375706B (en) | Signal conditioning package and control method thereof | |
JP6101038B2 (en) | Recording apparatus and recording data creation method | |
WO2012116620A1 (en) | Double-sided printing system and control method therefor | |
CN102886990B (en) | Two-sided printer and control method thereof | |
US8964225B2 (en) | Printing control method, printing control device and printing device with printing data printed according to height of another blank space | |
JP2004058323A (en) | Printer | |
US6953292B2 (en) | Multiple web printing | |
JP5012473B2 (en) | Printing apparatus and printing apparatus control method | |
JP2009132067A (en) | Printer and control method of printer | |
JP5784876B2 (en) | Printer and printing method | |
JP2003170631A (en) | Printer and its control method | |
JP6406001B2 (en) | Image printing apparatus and method | |
JP2004167932A (en) | Image processor system for inkjet recorder | |
JP4201953B2 (en) | Serial printer | |
JP5278771B2 (en) | Printing device | |
JP2003177892A (en) | Printing device, paper supply control method, print data generating method, printer driver, printing system and copying device | |
JP2005047267A (en) | Image forming system and image forming apparatus | |
JP2017087672A (en) | Image formation system | |
JP2023179126A (en) | Image forming device, control method of image forming device and program | |
JP2012196886A (en) | Printer, method of controlling the same, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |