Movatterモバイル変換


[0]ホーム

URL:


CN106515231B - Marking paper printing control method and printer - Google Patents

Marking paper printing control method and printer
Download PDF

Info

Publication number
CN106515231B
CN106515231BCN201510582373.9ACN201510582373ACN106515231BCN 106515231 BCN106515231 BCN 106515231BCN 201510582373 ACN201510582373 ACN 201510582373ACN 106515231 BCN106515231 BCN 106515231B
Authority
CN
China
Prior art keywords
length
page
marking paper
printed
actual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510582373.9A
Other languages
Chinese (zh)
Other versions
CN106515231A (en
Inventor
张春光
解丝艳
丛新元
王春涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong New Beiyang Information Technology Co Ltd
Original Assignee
Shandong New Beiyang Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong New Beiyang Information Technology Co LtdfiledCriticalShandong New Beiyang Information Technology Co Ltd
Priority to CN201510582373.9ApriorityCriticalpatent/CN106515231B/en
Priority to PCT/CN2016/098571prioritypatent/WO2017045567A1/en
Publication of CN106515231ApublicationCriticalpatent/CN106515231A/en
Application grantedgrantedCritical
Publication of CN106515231BpublicationCriticalpatent/CN106515231B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a marking paper printing control method and a printer, wherein the marking paper printing control method comprises the following steps: receiving print data; acquiring the length of a page to be printed and the actual page length of the marking paper; judging whether the length of the page to be printed is matched with the actual page length of the marking paper or not; when the length of the page to be printed is not matched with the actual page length of the marking paper, outputting prompt information; when the length of the page to be printed matches the actual page length of the marking paper, the print data is printed. According to the marking paper printing control method provided by the invention, when the length of the page to be printed is not matched with the actual page length of the marking paper, the prompt message is sent to remind a user to replace the appropriate marking paper, so that the problem that the marking paper is possibly wasted during printing of the marking paper in the prior art can be effectively solved.

Description

Marking paper printing control method and printer
Technical Field
The invention relates to the field of printing, in particular to a marking paper printing control method and a printer.
Background
The marking paper is widely applied to industries such as electric power, logistics, medical treatment and the like, and is used for printing electric power marks, logistics surface lists, sampling marks and the like. Common marking papers include black label paper and label paper. Fig. 1 is a schematic diagram of a black label paper of the related art, and as shown in the figure, the black label paper includes a base paper and black blocks printed on the base paper, wherein the black blocks are marks, and the portions other than the black blocks are non-marks; fig. 2 is a schematic diagram of a related art label sheet, which includes a liner sheet and labels adhered to the liner sheet, wherein the liner sheet between two adjacent labels is marked, and the labels are non-marked. For convenience of description, the distance between two marks M is generally referred to as a page length L. The conventional marking paper printer detects the page length of the marking paper by controlling the automatic calibration of the page length of the marking paper, and the basic principle is as follows: a sensor is arranged in a paper feeding channel of the printer, the marks of the marking paper are detected by using the voltage change of the sensor, and the detected distance between two adjacent marks, namely the page length of the marking paper, is stored in a nonvolatile memory of the printer. When the label paper is replaced, the printer starts page length automatic calibration, and the actual page length of the label paper stored in the nonvolatile memory of the printer is updated.
In the conventional method for controlling printing of the label paper, a user sends print data to a printer through a print request device (such as a computer), and the printer directly prints on the label paper after receiving the print data. The inventor finds that if the page length of the printing data is smaller than that of the marking paper, the printing data can be completely printed on one piece of marking paper, and if the page length of the printing data is larger than that of the marking paper, the printing data can be printed on a plurality of pieces of marking paper, and the marking paper cannot be normally used, so that the marking paper is wasted. Particularly, in batch printing, because the print data issued by the print request device at one time includes print data of multiple pages, once the page length of the print data is greater than the actual page length of the label paper, a large amount of label paper is wasted.
Aiming at the problem that the marking paper is possibly wasted when the marking paper is printed in the related art, an effective solution is not provided at present.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for controlling printing of a label paper and a printer, which can solve the problem of the related art that the label paper may be wasted when printing the label paper.
In order to achieve the purpose, the invention adopts the following technical scheme:
provided is a label paper printing control method, characterized by comprising: receiving print data; acquiring the length of a page to be printed and the actual page length of the marking paper; judging whether the length of the page to be printed is matched with the actual page length of the marking paper or not; when the length of the page to be printed is not matched with the actual page length of the marking paper, outputting prompt information; when the length of the page to be printed matches the actual page length of the marking paper, the print data is printed.
Preferably, the acquiring the length of the page to be printed includes: inquiring a control instruction in the printing data to obtain the length of a page to be printed; or, calculating the length of the page to be printed according to the printing data.
Preferably, the obtaining of the actual face length of the marking paper comprises: reading the actual ticket face length of the pre-stored marking paper; alternatively, the actual page length of the marking paper is acquired by performing automatic calibration of the page length of the marking paper.
Preferably, the judging whether the length of the page to be printed matches the actual page length of the marking paper comprises: and when the length of the page to be printed is greater than the actual page length of the marking paper, judging that the length of the page to be printed is not matched with the actual page length of the marking paper.
Preferably, the judging whether the length of the page to be printed matches the actual page length of the marking paper comprises: and when the length of the page to be printed is less than or equal to the actual page length of the marking paper, judging that the length of the page to be printed is matched with the actual page length of the marking paper.
Preferably, when the length of the page to be printed does not match the actual page length of the marking paper, outputting the prompt information includes: printing prompt information for indicating that the page length of the printing data does not match with the actual page length of the marking paper on the first page of marking paper; or outputs sound or light or voice information indicating that the page length of the print data does not match the actual page length of the marking paper.
There is also provided a printer including a communication unit for receiving print data; a printing unit configured to print data; the indicating unit is used for outputting prompt information; the control unit is used for acquiring the length of the page to be printed and the actual page length of the marking paper, judging whether the length of the page to be printed is matched with the actual page length of the marking paper, controlling the indicating unit or the printing unit to output prompt information when judging that the length of the page to be printed is not matched with the actual page length of the marking paper, and controlling the printing unit to print the printing data when judging that the length of the page to be printed is matched with the actual page length of the marking paper.
Preferably, the control unit obtains the length of the page to be printed by querying a control instruction in the print data, or calculates the length of the page to be printed according to the print data.
Preferably, the printer further comprises a memory for storing the actual page length of the label sheet.
Preferably, the control unit determines that the length of the page to be printed does not match the actual page length of the marking paper when the length of the page to be printed is greater than the actual page length of the marking paper.
Preferably, the control unit determines that the length of the page to be printed matches the actual page length of the marking paper when the length of the page to be printed is equal to or less than the actual page length of the marking paper.
Preferably, when the length of the page to be printed does not match the actual page length of the marking paper, the control unit controls the printing unit to print, on the first page of marking paper, indication information indicating that the page length of the print data does not match the actual page length of the marking paper; or the control unit controls the instructing unit to output sound or light or voice information indicating that the page length of the print data does not match the actual page length of the marking paper.
According to the marking paper printing control method provided by the embodiment of the invention, before printing, whether the length of the page to be printed is matched with the actual page length of the marking paper is judged, the page to be printed is printed only when the length of the page to be printed is matched with the actual page length of the marking paper, and when the length of the page to be printed is not matched with the actual page length of the marking paper, prompt information is sent to remind a user of replacing proper marking paper, so that the problem that the marking paper is possibly wasted during printing of the marking paper in the prior art can be effectively solved.
Drawings
FIG. 1 shows a schematic diagram of a black label paper of the related art;
FIG. 2 shows a related art label sheet schematic;
FIG. 3 is a schematic block diagram of a printer according to a first embodiment of the present invention; and
fig. 4 is a flowchart of a control method of a printer according to a first embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
Fig. 3 is a schematic block composition diagram of a printer according to a first embodiment of the present invention, and as shown in the drawing, the printer 1 includes acontrol unit 10, acommunication unit 11, aRAM memory 12, aFlash memory 13, aprinting unit 14, afeeding unit 15, asensor 16, and an indicatingunit 17.
Thecontrol unit 10 is used for controlling other modules to perform work and perform data calculation and processing, for example, controlling thecommunication unit 11 to perform data transmission between the printer 1 and the print request device, controlling theprinting unit 14 to perform image printing, and the like.
Thecommunication unit 11 is configured to perform data transmission between the printer 1 and the print request device, for example, thecommunication unit 11 receives print data sent by the print request device, where the print data includes a control instruction, graphics data, or character data, the control instruction is used to indicate a line number of a page, a position of the graphics data, a height and a width of the character data, and the like, where the line number may be a dot line (dot line) number or a pixel line (pixel line).
TheRAM memory 12 includes areception buffer 121, aprint buffer 122, and atemporary buffer 123. Wherein thereception buffer 121 is used to store the print data received by thecommunication unit 11; theprint buffer 122 is used to store dot matrix data sent to theprint head 141 of theprinting unit 14; thetemporary buffer 123 is used to store data and variables generated during the program running process.
The Flashmemory 13 is used to store a control program of the printer 1 and a fixed value required during the program operation, wherein the fixed value includes the actual page length of the label paper. The actual page length of the marking paper is stored in the memory by performing automatic calibration of the page length, or is set in the memory by the user according to the specification of the marking paper used by the printer. Further, the fixed value also comprises a first preset distance for automatically calibrating the page length of the marking paper and a preset threshold value for judging whether the length of the page to be printed is matched with the actual nominal length of the marking paper.
Theprinting unit 14 is configured to print preset patterns or characters on a label paper according to a control signal output by thecontrol unit 10, where theprinting unit 14 may be a stylus printing unit, a thermal transfer printing unit, an inkjet printing unit, and the like, in this embodiment, theprinting unit 14 is a thermal printing unit and includes aprinting head 141 and aprinting roller 142, when the printer 1 performs printing, the label paper passes through between theprinting head 141 and theprinting roller 142, a thermal layer of the label paper contacts theprinting head 141, theprinting head 141 includes a plurality of heating elements arranged in a row at equal intervals in a width direction of the label paper, and when performing printing, the heating elements of theprinting head 141 generate heat to chemically change and develop the thermal layer of the label paper, so as to form the preset patterns or characters on the label paper.
Theconveying unit 15 includes amotor driver 151, amotor 152 and aconveying roller assembly 153, themotor driver 151 is used for providing working current to themotor 152 according to a control signal output by thecontrol unit 10 so as to drive an output shaft of themotor 152 to rotate, the output shaft of themotor 152 is in transmission connection with theprinting roller 142 arranged in the conveying channel and the conveying roller of theconveying roller assembly 153, and when the output shaft of themotor 152 rotates, theprinting roller 142 and the conveying roller of theconveying roller assembly 153 rotate along with the output shaft, so that the marking paper is driven to move in the conveying channel.
Thesensor 16 is used for detecting marks and non-marks of the marking paper, thesensor 16 comprises alight generator 161 and alight receiver 162, thelight generator 161 and thelight receiver 162 are arranged in the conveying channel and are respectively electrically connected with thecontrol unit 10, thelight generator 161 emits light with certain intensity under the action of driving current provided by thecontrol unit 10 and irradiates on the marking paper, the light irradiating on the marking paper is received by thelight receiver 162 after being reflected (when thesensor 16 is a reflection sensor) or transmitted (when thesensor 16 is a transmission sensor) by the marking paper, and thelight receiver 162 converts received light signals into electric signals and transmits the electric signals to thecontrol unit 10. Since the marks and the non-marks of the marking paper have different reflectances and transmittances, thesensor 16 outputs a first signal (e.g., high level) when the non-marks of the marking paper are located at the detection position of thesensor 16, and thesensor 16 outputs a second signal (e.g., low level) when the marks of the marking paper are located at the detection position of thesensor 16. Thecontrol unit 10 can determine whether the marking paper located at the detection position of thesensor 16 is marked or unmarked by detecting the output value of thesensor 16.
And an indicatingunit 17 for sending out prompt information in a light, sound or other mode according to the requirement of thecontrol unit 10, wherein the prompt information indicates that the length of the page to be printed does not match with the actual page length of the marking paper, and the indicatingunit 17 can be an indicator lamp, a liquid crystal display screen, a buzzer, a voice device and the like.
Fig. 4 is a flowchart of a marking paper printing control method according to a first embodiment of the present invention, as shown, the method includes the steps of:
step S101, receiving printing data
Thecommunication unit 11 receives print data transmitted by the print request apparatus. The print data includes control instructions, bitmap data, or character data. The print data may be print data for a single page or print data for a plurality of pages.
Step S102, obtaining the length of the page to be printed and the actual page length of the marking paper
Thecontrol unit 10 parses the received print data to obtain the length of a page to be printed, where the page length is specifically the number of lines of the image printed in the paper feeding direction. The acquisition method comprises any one of the following steps:
the first method is to inquire a control instruction for expressing the number of page lines and determine the length of a page to be printed.
And secondly, calculating the page length. The calculation method is as follows: when the print data received by thecontrol unit 10 includes graphic data, the graphic data of the received print page is stored in the memory first, and then the number of lines of the image to be printed in the paper feeding direction is calculated; when the print data received by thecontrol unit 10 includes character data, the character data is first converted into graphics data, and then the number of lines of the graphics data is calculated.
Thecontrol unit 10 reads the actual page length of the marking paper stored in the Flashmemory 13 to acquire the actual page length of the marking paper. The actual page length of the label paper is stored in the Flashmemory 13 after automatic calibration of the page length is executed, or is set in the Flashmemory 13 by a user according to the specification of the label paper used by the printer.
It should be noted that, in other embodiments of the present invention, the actual page length of the marking paper may also be obtained by performing automatic calibration of the page length of the marking paper, where the automatic calibration method of the page length of the marking paper includes the following steps:
step S21, paper is fed for a first predetermined distance
The conveyingunit 15 drives the marking sheet to advance by a first predetermined distance that is at least greater than a distance between two adjacent marks of the marking sheet.
Step S22, calculating the actual page length of the label paper by detecting the output value of the sensor
In the paper feeding process, the output value of thesensor 16 is recorded once every time the label paper moves a unit distance, and the distance between two adjacent labels, namely the actual page length of the label paper, is calculated according to the change rule of the output value and the corresponding relation between the distance moved by the label paper.
Preferably, the method for automatically calibrating the page length of the label paper further comprises:
step S23, ejecting the paper for a first predetermined distance
The conveyingunit 15 drives the marking paper to retreat by a first predetermined distance to retreat the marking paper to an initial position to avoid wasting unused marking paper.
Preferably, thecontrol unit 10 obtains the actual page length of the tag paper by performing automatic calibration of the page length of the tag paper only when the first printing is performed after power-on, and stores the obtained actual page length of the tag paper in theFLASH memory 13, and obtains the actual page length of the tag paper by reading theFLASH memory 13 when the non-first printing is performed after power-on. Therefore, the accuracy of the actual page length of the marking paper can be ensured, the automatic calibration of the page length of the marking paper can be avoided being executed during each printing, and the printing speed is improved.
Step S103, judging whether the length of the page to be printed is matched with the actual page length of the marking paper or not
The control unit compares the acquired length of the page to be printed with the actual page length of the marking paper, and when the length of the page to be printed is less than or equal to the actual page length of the marking paper, the length of the page to be printed is matched with the actual page length of the marking paper, otherwise, the length of the page to be printed is not matched with the actual page length of the marking paper.
It should be noted that, the criterion for determining whether the length of the page to be printed is matched with the actual page length of the marking paper may be set according to actual needs, in other embodiments of the present invention, when the difference between the actual page length of the marking paper and the length of the page to be printed is greater than zero and smaller than a set threshold, thecontrol unit 10 determines that the actual page length of the marking paper and the length of the page to be printed are matched with each other, and when the difference between the actual page length of the marking paper and the length of the page to be printed is smaller than zero or greater than the set threshold, thecontrol unit 10 determines that the actual. The judgment principle can avoid the problem of marking paper waste caused by the fact that the length of the page to be printed is too small relative to the actual page length of the marking paper.
When the length of the page to be printed matches the actual page length of the marking paper, step S104 is executed, otherwise, step S105 is executed.
Step S104, printing the page to be printed
Thecontrol unit 10 controls the conveyingunit 15 to drive the label paper to move in the channel, meanwhile, the printing data is sent to theprinting head 141 of theprinting unit 14, and when the printing start position of the current page of the label paper moves to the printing position of theprinting head 141, thecontrol unit 10 controls theprinting head 141 to print preset images and characters on the surface of the label paper.
Step S105, outputting the prompt information
Thecontrol unit 10 controls the instructingunit 17 or theprinting unit 14 to output prompt information indicating that the page length of a single piece of print data does not match the actual page length of the marking paper, to prompt the user to replace the appropriate marking paper.
The method for controlling the prompt information output by the indicatingunit 17 by thecontrol unit 10 includes: thecontrol instruction unit 17 outputs sound, light or text information, and thus, the prompt information includes one or a combination of more of the following information:
1) the indicator light flickers according to a set frequency;
2) text information displayed by the liquid crystal display screen, such as 'paper type is not matched, please change paper';
3) the buzzer buzzes according to a set frequency;
4) voice information sent by the voice device, such as "paper type does not match, please change paper";
the prompt message method for controlling theprinting unit 14 to output by thecontrol unit 10 comprises the following steps: prompt information indicating that the page length of a single piece of print data does not match the actual page length of the marking paper is printed on the first piece of marking paper, for example, the print head prints "paper type does not match, please change paper" on the marking paper.
According to the marking paper printing control method provided by the embodiment of the invention, before printing, whether the length of the page to be printed is matched with the actual page length of the marking paper is judged, printing is executed only when the length of the page to be printed is matched with the actual page length of the marking paper, and when the length of the page to be printed is not matched with the actual page length of the marking paper, prompt information is sent out to remind a user of replacing proper marking paper, so that the problem that the marking paper is possibly wasted during printing of the marking paper in the prior art can be effectively solved.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.

Claims (10)

the control unit is used for acquiring the length of a page to be printed and the actual page length of the marking paper, judging whether the length of the page to be printed is matched with the actual page length of the marking paper or not, controlling the printing unit to output prompt information when judging that the length of the page to be printed is not matched with the actual page length of the marking paper, controlling the printing unit to print the prompt information which is used for expressing that the page length of the printing data is not matched with the actual page length of the marking paper on the first page of marking paper, and controlling the printing unit to print the printing data when judging that the length of the page to be printed is matched with the actual page length of the marking paper.
CN201510582373.9A2015-09-152015-09-15Marking paper printing control method and printerActiveCN106515231B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201510582373.9ACN106515231B (en)2015-09-152015-09-15Marking paper printing control method and printer
PCT/CN2016/098571WO2017045567A1 (en)2015-09-152016-09-09Mark paper printing control method and printer

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510582373.9ACN106515231B (en)2015-09-152015-09-15Marking paper printing control method and printer

Publications (2)

Publication NumberPublication Date
CN106515231A CN106515231A (en)2017-03-22
CN106515231Btrue CN106515231B (en)2020-03-31

Family

ID=58288163

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510582373.9AActiveCN106515231B (en)2015-09-152015-09-15Marking paper printing control method and printer

Country Status (2)

CountryLink
CN (1)CN106515231B (en)
WO (1)WO2017045567A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111516397B (en)*2020-04-302022-04-29厦门汉印电子技术有限公司Label paper identification method, device, equipment and readable storage medium
CN115257198B (en)*2022-07-262024-08-09上海商米科技集团股份有限公司Thermal paper printing identification method and device and thermal printer
CN115302959B (en)*2022-08-052024-03-08上海商米科技集团股份有限公司Black label printing method and printer based on multiple sensors

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5321486A (en)*1991-11-151994-06-14Canon Kabushiki KaishaImage forming apparatus with control based on detected and designated recording medium size
JP2995314B2 (en)*1992-10-151999-12-27カシオ計算機株式会社 Tape cassette and printing device
DE69535836D1 (en)*1994-11-292008-10-23Seiko Epson Corp Tape printing device
JP3823388B2 (en)*1996-09-042006-09-20カシオ計算機株式会社 Printing device
JP4266769B2 (en)*2003-10-212009-05-20株式会社サトー Printer system
GB0325264D0 (en)*2003-10-292003-12-03Esselte B V B AVertical autosizing
JP4546164B2 (en)*2004-06-172010-09-15セイコーエプソン株式会社 Character information processing apparatus, information processing method for character information processing apparatus, program, and storage medium
JP4075076B2 (en)*2006-04-072008-04-16ブラザー工業株式会社 Tape printer
JP4844579B2 (en)*2008-03-192011-12-28カシオ計算機株式会社 Printer and printing method
EP2149454B1 (en)*2008-07-302016-11-16Seiko Epson CorporationPaper width determination method for a label printer, printing control method for a label printer, and a label printer
CN101739726B (en)*2009-12-182013-03-20山东新北洋信息技术股份有限公司Printing control method and device
US9132674B2 (en)*2013-09-272015-09-15Seiko Epson CorporationPrinter and control method of a printer

Also Published As

Publication numberPublication date
CN106515231A (en)2017-03-22
WO2017045567A1 (en)2017-03-23

Similar Documents

PublicationPublication DateTitle
US9037015B2 (en)Paper profile and reading systems
US7530686B2 (en)Recording method, recording apparatus, and computer-readable storage medium for performing borderless recording on skewed media
CN106626847B (en)Printing method and printer
US9079422B2 (en)Method and apparatus for printhead control based on neighbor printhead dot analysis
CN106541714B (en)A kind of control method and label machine of label machine
CN106515231B (en)Marking paper printing control method and printer
US9672449B2 (en)Apparatus, system, and method for calibration of a media processing device
JP2004261916A (en) Printer cutting equipment
JP2017035850A (en)Printer and control method of the same
JP5888485B2 (en) Printing device
JP2006256097A (en)Printing device
JP2008079225A (en) Colorimetric accuracy determination apparatus, colorimetric accuracy determination method, and colorimetric accuracy determination correction system
JP4328194B2 (en) Printing device
JP2009107281A (en) Printer
JP2005132063A (en) Thermal printer
US12291047B2 (en)Inspection apparatus and printing apparatus
JPH07309039A (en)Printer
JP2001180631A (en) Label printer and label position detection method
WO2006109523A1 (en)Printer
JP2004142172A (en) Printing system and printing method
US20250135797A1 (en)Thermal printer control device, thermal printer, thermal printer control method, and program
US9096072B1 (en)Thermal printer and method for checking disconnection
KR101519859B1 (en)Receipt printer for printing on small paper
JP2004148665A (en) Printing device
JP2016081320A (en) Print setting method, program and printing system for printing system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp