WO2017045567A1 - Mark paper printing control method and printer - Google Patents

Mark paper printing control method and printer Download PDF

Info

Publication number
WO2017045567A1
WO2017045567A1 PCT/CN2016/098571 CN2016098571W WO2017045567A1 WO 2017045567 A1 WO2017045567 A1 WO 2017045567A1 CN 2016098571 W CN2016098571 W CN 2016098571W WO 2017045567 A1 WO2017045567 A1 WO 2017045567A1
Authority
WO
WIPO (PCT)
Prior art keywords
length
page
paper
printed
actual
Prior art date
Application number
PCT/CN2016/098571
Other languages
French (fr)
Chinese (zh)
Inventor
张春光
解丝艳
丛新元
王春涛
Original Assignee
山东新北洋信息技术股份有限公司
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 山东新北洋信息技术股份有限公司 filed Critical 山东新北洋信息技术股份有限公司
Publication of WO2017045567A1 publication Critical patent/WO2017045567A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism

Definitions

  • the present disclosure provides a marking paper printing control method and a printer, which solve the problem that the marking paper may be invalidated when the marking paper is printed in the related art.
  • step S140 When the length of the page to be printed matches the actual page length of the mark paper, step S140 is performed, and when the length of the page to be printed does not match the actual page length of the mark paper, step S150 is performed.

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

A mark paper printing control method and a printer. The mark paper printing control method comprises: receiving printing data; acquiring a length of a to-be-printed page and an actual page length of mark paper; determining whether the length of the to-be-printed page matches the actual page length of the mark paper; if the length of the to-be-printed page does not match the actual page length of the mark paper, outputting prompt information; and if the length of the to-be-printed page matches the actual page length of the mark paper, printing the printing data.

Description

标记纸打印控制方法及打印机Marking paper printing control method and printer 技术领域Technical field
本公开涉及打印领域,例如涉及一种标记纸打印控制方法及打印机。The present disclosure relates to the field of printing, for example, to a marking paper printing control method and a printer.
背景技术Background technique
标记纸广泛应用于电力、物流、医疗等行业,用于打印电力标识、物流面单及采样标识等。常用的标记纸有黑标纸和标签纸。图1示出了相关技术的黑标纸示意图,如图所示,黑标纸包括基纸和印刷在基纸上的黑块,其中,黑块为标记,黑块以外的部分为非标记;图2示出了相关技术的标签纸示意图,如图所示,标签纸包括衬纸和粘贴在衬纸上的标签,其中,相邻两张标签之间的衬纸为标记,标签为非标记。为了描述方便,通常将两标记M之间的距离称为标记纸的页面长度L。现有的标记纸打印机,通过控制标记纸的页面长度自动校准来检测标记纸的页面长度,基本原理是:在打印机走纸通道设置传感器,利用传感器电压变化,检测标记纸的标记,并将检测到的相邻两个标记之间的距离即标记纸的页面长度存储到打印机的非易失性存储器。当更换标记纸时,打印机启动页面长度自动校准,更新打印机非易失性存储器内存储的标记纸的实际页面长度。Marking paper is widely used in electric power, logistics, medical and other industries for printing power identification, logistics face sheets and sampling marks. Commonly used marking papers are black label paper and label paper. 1 shows a schematic diagram of a related art black mark paper. As shown, the black mark paper includes a base paper and a black block printed on the base paper, wherein the black block is a mark, and a portion other than the black block is a non-mark; 2 shows a schematic view of a label paper of the related art. As shown, the label paper includes a liner and a label attached to the liner, wherein the liner between the adjacent labels is a mark and the label is non-marked. . For convenience of description, the distance between the two marks M is generally referred to as the page length L of the mark paper. The existing marking paper printer detects the page length of the marking paper by controlling the page length automatic calibration of the marking paper. The basic principle is: setting the sensor in the paper path of the printer, using the sensor voltage change, detecting the marking of the marking paper, and detecting The distance between the adjacent two marks, that is, the page length of the mark paper, is stored in the non-volatile memory of the printer. When the marker paper is replaced, the printer initiates a page length auto-calibration that updates the actual page length of the marker paper stored in the printer's non-volatile memory.
现有的标记纸打印控制方法,用户通过打印请求装置(如计算机)向打印机发送打印数据,打印机接收到打印数据后直接在标记纸上打印。发明人发现,如果打印数据中的页面长度小于标记纸的页面长度时,该打印数据能够被完整的打印在一张标记纸上,如果打印数据的页面长度与标记纸的页面长度大于时,该打印数据会被打印在多张标记纸上,无法正常使用,造成标记纸的作废。特别是,在批量打印时,由于打印请求装置一次下发的打印数据中包含多长页面的打印数据,因此,一旦打印数据的页面长度大于标记纸的实际页面长度时,将造成大量标记纸作废。In the existing marking paper printing control method, the user sends the printing data to the printer through a printing requesting device (such as a computer), and the printer directly prints on the marking paper after receiving the printing data. The inventor has found that if the length of the page in the print data is less than the page length of the mark paper, the print data can be completely printed on one piece of mark paper, if the page length of the print data is greater than the page length of the mark paper, The print data will be printed on multiple sheets of marking paper and will not work properly, causing the marking paper to become obsolete. In particular, in the batch printing, since the print data sent by the print requesting device at one time contains the print data of the long page, once the page length of the print data is larger than the actual page length of the mark paper, a large amount of mark paper is invalidated. .
针对相关技术的标记纸打印时可能造成标记纸作废的问题,目前尚未提出有效解决方法。There is a problem that the marking paper may be invalidated when the marking paper of the related art is printed, and no effective solution has been proposed yet.
发明内容Summary of the invention
有鉴于此,本公开提供了一种标记纸打印控制方法及打印机,解决了相关技术中的标记纸打印时可能造成标记纸作废的问题。 In view of this, the present disclosure provides a marking paper printing control method and a printer, which solve the problem that the marking paper may be invalidated when the marking paper is printed in the related art.
本公开实施例采用以下技术方案:Embodiments of the present disclosure adopt the following technical solutions:
一种标记纸打印控制方法,应用于打印机,包括:A marking paper printing control method applied to a printer, comprising:
接收打印数据;Receiving print data;
获取待打印页面的长度及标记纸的实际票面长度;Obtain the length of the page to be printed and the actual face length of the mark paper;
判断所述待打印页面的长度与所述标记纸的实际页面长度是否匹配;Determining whether the length of the page to be printed matches the actual page length of the mark paper;
当所述待打印页面的长度与所述标记纸的实际页面长度不匹配时,输出提示信息;以及When the length of the page to be printed does not match the actual page length of the mark paper, outputting prompt information;
当所述待打印页面的长度与所述标记纸的实际页面长度匹配时,打印所述打印数据。The print data is printed when the length of the page to be printed matches the actual page length of the mark paper.
一种打印机,包括:通信装置、打印装置、指示装置以及控制装置;A printer comprising: a communication device, a printing device, a pointing device, and a control device;
其中,所述通信装置设置为接收打印数据;Wherein the communication device is configured to receive print data;
所述打印装置设置为打印所述打印数据;The printing device is configured to print the print data;
所述指示装置设置为输出提示信息;以及The pointing device is configured to output prompt information;
所述控制装置设置为获取待打印页面的长度及标记纸的实际页面长度,并判断所述待打印页面的长度与所述标记纸的实际页面长度是否匹配,以及在判定所述待打印页面的长度与所述标记纸的实际页面长度不匹配时,控制所述指示装置或所述打印装置输出提示信息,在判定所述待打印页面的长度与所述标记纸的实际页面长度匹配时,控制所述打印装置打印所述打印数据。The control device is configured to obtain a length of the page to be printed and an actual page length of the mark paper, and determine whether the length of the page to be printed matches the actual page length of the mark paper, and determine the page to be printed. Controlling the pointing device or the printing device to output prompt information when the length does not match the actual page length of the marking paper, and controlling when the length of the page to be printed matches the actual page length of the marking paper The printing device prints the print data.
本公开实施例的提供的标记纸打印控制方法,在打印前先判断待打印页面的长度与标记纸的实际页面长度是否匹配,只有在待打印页面的长度与标记纸的实际页面长度匹配时才打印待打印页面,而当待打印页面的长度与标记纸的实际页面长度不匹配时,发出提示信息,以提醒用户更换合适的标记纸,因此能够有效解决相关技术的标记纸打印时可能造成标记纸作废的问题。The mark paper printing control method provided by the embodiment of the present disclosure determines whether the length of the page to be printed matches the actual page length of the mark paper before printing, and only when the length of the page to be printed matches the actual page length of the mark paper. The page to be printed is printed, and when the length of the page to be printed does not match the actual page length of the mark paper, a prompt message is sent to remind the user to replace the appropriate mark paper, so that the related art mark paper may be effectively printed. The problem of paper being scrapped.
附图概述BRIEF abstract
图1示出了相关技术的黑标纸示意图;Figure 1 shows a schematic diagram of a black mark paper of the related art;
图2示出了相关技术的标签纸示意图;Figure 2 is a schematic view showing a label paper of the related art;
图3是根据本公开第一实施例的打印机的模块组成示意图;以及3 is a block diagram showing the composition of a printer according to a first embodiment of the present disclosure;
图4是根据本公开第一实施例的打印机的控制方法的流程图;4 is a flowchart of a control method of a printer according to a first embodiment of the present disclosure;
图5是根据本公开第一实施例的标记纸的页面长度自动校准的流程图。 5 is a flow chart of automatic page length calibration of a marker sheet in accordance with a first embodiment of the present disclosure.
实施方式Implementation
下面结合附图并通过实施方式来说明公开的技术方案,在不冲突的情况下,以上实施例中的特征可以任意组合。The disclosed technical solutions are described below with reference to the accompanying drawings and by way of embodiments, and the features in the above embodiments may be arbitrarily combined without conflict.
图3是根据本公开第一实施例的打印机的模块组成示意图,如图所示,打印机1包括控制装置10、通信装置11、RAM存储器12、闪存存储器13、打印装置14、输送装置15、传感器16和指示装置17。3 is a block diagram showing the composition of a printer according to a first embodiment of the present disclosure. As shown, the printer 1 includes a control device 10, a communication device 11, a RAM memory 12, a flash memory 13, a printing device 14, a conveying device 15, and a sensor. 16 and indicating device 17.
控制装置10设置为控制其他模块执行工作及进行数据的计算和处理,比如,控制通信装置11执行打印机1与打印请求装置之间的数据传输、控制打印装置14执行图像打印等。示例性地,控制装置10可以是指处理器。The control device 10 is arranged to control other modules to perform work and perform calculation and processing of data, for example, the control communication device 11 performs data transfer between the printer 1 and the print requesting device, controls the printing device 14 to perform image printing, and the like. Illustratively, control device 10 may refer to a processor.
通信装置11设置为执行打印机1与打印请求装置之间的数据传输,比如,通信装置11接收打印请求装置发送的打印数据,其中,打印数据包含控制指令、图形数据或字符数据,控制指令设置为表示页面的行数、图形数据的位置,字符数据的高度和宽度等,其中,行数可以是点行(dot line)数或像素行(pixel line)。The communication device 11 is arranged to perform data transmission between the printer 1 and the print requesting device. For example, the communication device 11 receives print data transmitted by the print requesting device, wherein the print data contains control commands, graphic data or character data, and the control command is set to Indicates the number of lines of the page, the position of the graphic data, the height and width of the character data, etc., wherein the number of lines may be a dot line number or a pixel line.
RAM存储器12,包括接收缓冲区121、打印缓冲区122,以及临时缓冲区123。其中,接收缓冲区121设置为存储由通信装置11接收的打印数据;打印缓冲区122设置为存储发送给打印装置14的打印头141的点阵数据;临时缓冲区123设置为存储程序运行过程中生成的数据及变量。闪存存储器13设置为存储打印机1的控制程序以及程序运行过程中需要的固定值,其中固定值包括标记纸的实际页面长度。标记纸的实际页面长度是通过执行页面长度自动校准后存储到存储器中的,或者由用户根据打印机使用的标记纸的规格设置到存储器中的。可选地,固定值还包括用于标记纸的页面长度自动校准的第一预定距离以及用于判断待打印页面的长度与标记纸的实际票面长度是否匹配的预设阈值。The RAM memory 12 includes a receive buffer 121, a print buffer 122, and a temporary buffer 123. Wherein, the receive buffer 121 is arranged to store print data received by the communication device 11; the print buffer 122 is arranged to store dot matrix data sent to the print head 141 of the printing device 14; the temporary buffer 123 is set to store the program during operation Generated data and variables. The flash memory 13 is arranged to store a control program of the printer 1 and a fixed value required during the running of the program, wherein the fixed value includes the actual page length of the marking paper. The actual page length of the mark paper is stored in the memory by performing automatic page length calibration, or is set in the memory by the user according to the specifications of the mark paper used by the printer. Optionally, the fixed value further includes a first predetermined distance for automatically calibrating the page length of the marking paper and a preset threshold for determining whether the length of the page to be printed matches the actual face length of the marking paper.
打印装置14,设置为根据控制装置10输出的控制信号在标记纸上打印预设图形或文字,其中,打印装置14可以为针式打印装置,也可以为热敏打印装置、热转印打印装置,还可以为喷墨打印装置等,本实施例中,打印装置14为热敏打印装置,所述打印装置包括打印头141和打印辊142,打印机1执行打印时,标记纸从打印头141和打印辊142之间穿过,标记纸的感热层与打印头141接触,打印头141包括沿标记纸宽度方向等距排列成一行的多个发热体,执行打印时,打印头141的发热体发热使标记纸的感热层发生化学变化显色,从而在 标记纸上形成预设图形或文字。The printing device 14 is configured to print a preset graphic or text on the marking paper according to the control signal output by the control device 10, wherein the printing device 14 can be a pin printing device or a thermal printing device or a thermal transfer printing device. It may also be an inkjet printing device or the like. In the present embodiment, the printing device 14 is a thermal printing device, and the printing device includes a print head 141 and a printing roller 142. When the printer 1 performs printing, the marking paper is printed from the printing head 141 and The printing roller 142 passes between, and the thermal sensing layer of the marking paper is in contact with the printing head 141. The printing head 141 includes a plurality of heating elements arranged in a row in the width direction of the marking paper, and the heating element of the printing head 141 is executed when printing is performed. The heat causes the chemical layer of the heat sensitive layer of the marking paper to change color, thereby A preset graphic or text is formed on the marking paper.
输送装置15包括电机驱动器151、电机152和输送辊组件153,电机驱动器151设置为根据控制装置10输出的控制信号向电机152提供工作电流,以驱动电机152的输出轴转动,电机152的输出轴与设置在输送通道中的打印辊142和输送辊组件153的输送辊传动连接,当电机152的输出轴转动时,打印辊142和输送辊组件153的输送辊随之转动,从而驱动标记纸在输送通道中移动。The conveying device 15 includes a motor driver 151, a motor 152, and a conveying roller assembly 153, and the motor driver 151 is provided to supply an operating current to the motor 152 according to a control signal output from the control device 10 to drive the output shaft of the motor 152 to rotate, the output shaft of the motor 152. The printing roller 142 and the conveying roller assembly 153 disposed in the conveying path are drivingly coupled. When the output shaft of the motor 152 is rotated, the conveying roller 142 and the conveying roller of the conveying roller assembly 153 are rotated to drive the marking paper. Move in the conveying channel.
传感器16设置为检测标记纸的标记和非标记,传感器16包括光发生器161和光接收器162,光发生器161和光接收器162设置在输送通道中,二者分别与控制装置10电连接,光发生器161在控制装置10提供的驱动电流的作用下,发射具有一定强度的光并照射在标记纸上,照射在标记纸上的光经过标记纸反射(传感器16为反射传感器时)或透射(传感器16为透射传感器时)后被光接收器162接收,光接收器162将接收的光信号转换为电信号,并将该电信号输送至控制装置10。由于标记纸的标记和非标记具有不同的反射率和透射率,因此,当标记纸的非标记位于传感器16的检测位置时,传感器16输出第一信号(比如高电平),当标记纸的标记位于传感器16的检测位置时,传感器16输出第二信号(比如低电平)。控制装置10通过检测传感器16的输出值即可判断位于传感器16的检测位置的标记纸为标记还是非标记。The sensor 16 is arranged to detect the marking and non-marking of the marking paper, the sensor 16 comprises a light generator 161 and a light receiver 162, the light generator 161 and the light receiver 162 are arranged in the conveying channel, which are respectively electrically connected to the control device 10, light The generator 161 emits light having a certain intensity and is irradiated on the marking paper under the action of the driving current supplied from the control device 10, and the light irradiated on the marking paper is reflected by the marking paper (when the sensor 16 is a reflecting sensor) or transmitted ( When the sensor 16 is a transmissive sensor, it is received by the optical receiver 162, which converts the received optical signal into an electrical signal and transmits the electrical signal to the control device 10. Since the mark and non-mark of the mark paper have different reflectances and transmittances, when the non-mark of the mark paper is at the detection position of the sensor 16, the sensor 16 outputs a first signal (such as a high level) when marking the paper When the marker is at the detection position of sensor 16, sensor 16 outputs a second signal (such as a low level). The control device 10 can determine whether the marker paper located at the detection position of the sensor 16 is marked or not by detecting the output value of the sensor 16.
指示装置17,设置为根据控制装置10的要求以光、声音等方式发出表示待打印页面的长度与标记纸的实际页面长度不匹配的提示信息,指示装置17可以是指示灯、液晶显示屏、蜂鸣器及语音装置等。The indicating device 17 is configured to issue prompt information indicating that the length of the page to be printed does not match the actual page length of the marking paper in a light, sound or the like according to the requirements of the control device 10, and the indicating device 17 may be an indicator light, a liquid crystal display, Buzzer and voice device.
图4是根据本公开第一实施例的标记纸打印控制方法的流程图,如图所示,该方法包括:4 is a flowchart of a marking paper printing control method according to a first embodiment of the present disclosure, as shown, the method includes:
步骤S110,接收打印数据。Step S110, receiving print data.
通信装置11接收打印请求装置发送的打印数据。其中,打印数据包括控制指令、位图数据或字符数据。打印数据可以是单张页面的打印数据,也可以是多张页面的打印数据。The communication device 11 receives the print data transmitted by the print requesting device. The print data includes control commands, bitmap data, or character data. The print data can be print data of a single page or print data of multiple pages.
步骤S120,获取待打印页面的长度及标记纸的实际页面长度。Step S120, obtaining the length of the page to be printed and the actual page length of the mark paper.
控制装置10解析接收到的打印数据,获取一张待打印页面的长度,所述待打印页面的长度可以是指在标记纸的前进方向上打印图像的行数。获取待打印页面的长度的方法包括以下任意一种:The control device 10 parses the received print data to obtain a length of a page to be printed, and the length of the page to be printed may refer to the number of lines of the image printed in the advancing direction of the mark paper. The method of obtaining the length of the page to be printed includes any of the following:
方法一,查询用于表示页面行数的控制指令,确定待打印页面的长度。 In the first method, a control instruction for indicating the number of page lines is queried, and the length of the page to be printed is determined.
方法二,计算待打印页面的长度。计算方法如下:当控制装置10接收的打印数据包括图形数据时,把接收的打印页面的图形数据先存储在存储器之中,然后计算在标记纸的前进方向上待打印图像的行数;当控制装置10接收的打印数据包括字符数据时,首先把字符数据转换成图形数据,然后再计算图形数据的行数,其中,所述标记纸的前进方向是指标记纸由打印机1的打印装置14向打印机1的标记纸的出口移动的方向。Method two, calculate the length of the page to be printed. The calculation method is as follows: when the print data received by the control device 10 includes graphic data, the graphic data of the received printed page is first stored in the memory, and then the number of lines of the image to be printed in the forward direction of the marking paper is calculated; When the print data received by the device 10 includes character data, the character data is first converted into graphic data, and then the number of lines of the graphic data is calculated. wherein the forward direction of the marking paper means that the marking paper is directed by the printing device 14 of the printer 1. The direction in which the exit of the marking paper of the printer 1 moves.
控制装置10读取闪存存储器13中存储的标记纸的实际页面长度,以获取标记纸的实际页面长度。其中,标记纸的实际页面长度是通过执行页面长度自动校准后存储到闪存存储器13中的,或者由用户根据打印机使用的标记纸的规格设置到闪存存储器13中的。The control device 10 reads the actual page length of the marker paper stored in the flash memory 13 to obtain the actual page length of the marker paper. The actual page length of the mark paper is stored in the flash memory 13 after the page length is automatically calibrated, or is set in the flash memory 13 by the user according to the specifications of the mark paper used by the printer.
需要说明的是,在本公开的其他实施例中,也可以通过执行标记纸的页面长度自动校准获取标记纸的实际页面长度,其中,参见图5,标记纸的页面长度自动校准包括:It should be noted that, in other embodiments of the present disclosure, the actual page length of the marking paper may also be obtained by performing automatic calibration of the page length of the marking paper. Referring to FIG. 5, the automatic calibration of the page length of the marking paper includes:
步骤S210,驱动所述标记纸前进第一预定距离。Step S210, driving the marking paper to advance by a first predetermined distance.
输送装置15驱动标记纸前进第一预定距离,该第一预定距离至少大于标记纸的相邻两个标记之间的距离,其中,所述标记纸前进的方向是标记纸由打印机1的打印装置14向打印机1的标记纸的出口移动的方向。步骤S220,通过检测传感器输出值计算标记纸的实际页面长度。The conveying device 15 drives the marking paper to advance a first predetermined distance, the first predetermined distance being at least greater than a distance between two adjacent markings of the marking paper, wherein the marking paper advances in a direction in which the marking paper is printed by the printer 1 14 the direction of movement toward the exit of the marking paper of the printer 1. In step S220, the actual page length of the marker paper is calculated by detecting the sensor output value.
走纸过程中,标记纸每走一个预设距离,记录一次传感器16的输出值,根据输出值的变化规律以及标记纸已走的距离之间的对应关系,计算出相邻两个标记之间的距离,即标记纸的实际页面长度。During the paper feeding process, the mark paper records the output value of the sensor 16 every time a predetermined distance is taken, and calculates the relationship between the adjacent two marks according to the change rule of the output value and the distance between the marked papers. The distance, which is the actual page length of the marked paper.
可选地,标记纸的页面长度自动校准方法还包括:Optionally, the automatic page length calibration method of the marking paper further includes:
步骤S230,驱动所述标记纸后退所述第一预定距离。Step S230, driving the marking paper to retreat the first predetermined distance.
输送装置15驱动标记纸回退第一预定距离,使标记纸回退到初始位置,以避免浪费未使用的标记纸。其中,所述标记纸后退的方向是指与标记纸的前进方向相反的方向。The conveying device 15 drives the marking paper back by a first predetermined distance to cause the marking paper to be retracted to the initial position to avoid wasting unused marking paper. Wherein, the direction in which the marking paper retreats refers to a direction opposite to the advancing direction of the marking paper.
可选地,控制装置10仅在上电后执行第一次打印时,通过执行标记纸的页面长度自动校准获取标记纸的实际页面长度,并将获取到的标记纸的实际页面长度存储在闪存存储器13中,在上电后执行非第一次打印时,通过读取闪存存储器13获取标记纸的实际页面长度。如此,既能保证标记纸的实际页面长度的准确性,又能避免每次打印时都执行标记纸的页面长度自动校准,从而提高了 打印速度。Optionally, the control device 10 obtains the actual page length of the mark paper by performing automatic calibration of the page length of the mark paper only when the first print is performed after power-on, and stores the actual page length of the obtained mark paper in the flash memory. In the memory 13, when the non-first printing is performed after power-on, the actual page length of the label paper is obtained by reading the flash memory 13. In this way, the accuracy of the actual page length of the marking paper can be ensured, and the automatic correction of the page length of the marking paper can be avoided every time the printing is performed, thereby improving the printing speed.
步骤S130,判断待打印页面的长度与标记纸的实际页面长度是否匹配。In step S130, it is determined whether the length of the page to be printed matches the actual page length of the mark paper.
控制装置将获取的待打印页面的长度与标记纸的实际页面长度进行对比,可选地,当待打印页面的长度小于等于标记纸的实际页面长度时,判定二者匹配,当待打印页面的长度大于标记纸的实际页面长度时,判定二者不匹配。The control device compares the obtained length of the page to be printed with the actual page length of the mark paper. Optionally, when the length of the page to be printed is less than or equal to the actual page length of the mark paper, it is determined that the two match, when the page to be printed When the length is greater than the actual page length of the label paper, it is determined that the two do not match.
需要说明的是,判断待打印页面的长度与标记纸的实际页面长度是否匹配的标准可以根据实际需要设定,在本公开的其他实施例中,当标记纸的实际页面长度与待打印页面的长度的差值大于零且小于设定阈值时,控制装置10判定二者匹配,当标记纸的实际页面长度与待打印页面的长度的差值小于零或大于设定阈值时,控制装置10判定二者不匹配。这种判定原则能够避免待打印页面的长度相对标记纸的实际页面长度过小,而引起的浪费标记纸的问题。It should be noted that the criterion for judging whether the length of the page to be printed matches the actual page length of the mark paper may be set according to actual needs. In other embodiments of the present disclosure, when the actual page length of the mark paper and the page to be printed are When the difference of the length is greater than zero and less than the set threshold, the control device 10 determines that the two match, and when the difference between the actual page length of the mark paper and the length of the page to be printed is less than zero or greater than the set threshold, the control device 10 determines. The two do not match. This decision principle can avoid the problem of wasting the mark paper caused by the length of the page to be printed being too small relative to the actual page length of the mark paper.
当待打印页面的长度与标记纸的实际页面长度匹配时,执行步骤S140,当待打印页面的长度与标记纸的实际页面长度不匹配时,执行步骤S150。When the length of the page to be printed matches the actual page length of the mark paper, step S140 is performed, and when the length of the page to be printed does not match the actual page length of the mark paper, step S150 is performed.
步骤S140,打印待打印页面。Step S140, printing a page to be printed.
控制装置10控制输送装置15驱动标记纸在通道中移动,同时将打印数据发送给打印装置14的打印头141,当标记纸的当前页面的打印起始位置移动至打印头141的打印位置时,控制装置10控制打印头141在标记纸的表面打印出预设的图像和文字。The control device 10 controls the conveying device 15 to drive the movement of the marking paper in the passage while transmitting the print data to the print head 141 of the printing device 14, and when the printing start position of the current page of the marking paper is moved to the printing position of the printing head 141, the control is performed. The device 10 controls the printhead 141 to print a predetermined image and text on the surface of the marking paper.
步骤S150,输出提示信息。In step S150, the prompt information is output.
控制装置10控制指示装置17或打印装置14输出表示单张打印数据的页面长度与标记纸的实际页面长度不匹配的提示信息,以提示用户更换合适的标记纸。The control device 10 controls the pointing device 17 or the printing device 14 to output prompt information indicating that the page length of the single print data does not match the actual page length of the mark paper, to prompt the user to replace the appropriate mark paper.
其中,控制装置10控制指示装置17输出的提示信息方法可以是包括:控制指示装置17输出声、光或文字信息,因此,提示信息可以是包括以下一种或多种信息的组合:The method for controlling the prompt information output by the pointing device 17 by the control device 10 may include: the control indicating device 17 outputs the sound, light or text information. Therefore, the prompt information may be a combination including one or more of the following information:
指示灯按设定频次闪烁;The indicator light flashes at the set frequency;
液晶显示屏显示的文字信息,比如“纸张类型不匹配,请更换纸张”;The text information displayed on the LCD screen, such as "paper type does not match, please replace paper";
蜂鸣器按设定频次鸣叫;The buzzer sounds according to the set frequency;
语音装置发出的语音信息,比如“纸张类型不匹配,请更换纸张”;Voice messages from the voice device, such as "paper type does not match, please replace paper";
控制装置10控制打印装置14输出的提示信息方法包括:在第一页标记纸上打印表示单张打印数据的页面长度与标记纸的实际页面长度不匹配的提示信 息,比如,打印头在标记纸上打印“纸张类型不匹配,请更换纸张”。The method for controlling the prompt information output by the printing device 14 by the control device 10 includes: printing a prompt message indicating that the page length of the single print data does not match the actual page length of the mark paper on the first page mark paper For example, the print head prints on the label paper "Paper type does not match, please replace the paper".
本公开实施例的提供的标记纸打印控制方法,在打印前先判断待打印页面的长度与标记纸的实际页面长度是否匹配,只有在待打印页面的长度与标记纸的实际页面长度匹配时匹配才执行打印,而当待打印页面的长度与标记纸的实际页面长度不匹配时,发出提示信息,以提醒用户更换合适的标记纸,因此能够有效解决相关技术的标记纸打印时可能造成标记纸作废的问题。The mark paper printing control method provided by the embodiment of the present disclosure determines whether the length of the page to be printed matches the actual page length of the mark paper before printing, and matches only when the length of the page to be printed matches the actual page length of the mark paper. Printing is performed, and when the length of the page to be printed does not match the actual page length of the mark paper, a prompt message is issued to remind the user to replace the appropriate mark paper, so that the related art mark paper may be effectively printed. The problem of invalidation.
以上结合可选实施例描述了本公开的技术原理。这些描述只是为了解释本公开的原理,而不能以任何方式解释为对本公开保护范围的限制。The technical principles of the present disclosure have been described above in connection with alternative embodiments. The descriptions are only intended to explain the principles of the present disclosure, and are not to be construed as limiting the scope of the disclosure.
工业实用性Industrial applicability
本公开实施例的提供的标记纸打印控制方法,在打印前先判断待打印页面的长度与标记纸的实际页面长度是否匹配,只有在待打印页面的长度与标记纸的实际页面长度匹配时才打印待打印页面,而当待打印页面的长度与标记纸的实际页面长度不匹配时,发出提示信息,以提醒用户更换合适的标记纸,因此能够有效解决相关技术的标记纸打印时可能造成标记纸作废的问题。 The mark paper printing control method provided by the embodiment of the present disclosure determines whether the length of the page to be printed matches the actual page length of the mark paper before printing, and only when the length of the page to be printed matches the actual page length of the mark paper. The page to be printed is printed, and when the length of the page to be printed does not match the actual page length of the mark paper, a prompt message is sent to remind the user to replace the appropriate mark paper, so that the related art mark paper may be effectively printed. The problem of paper being scrapped.

Claims (13)

  1. 一种标记纸打印控制方法,应用于打印机,包括:A marking paper printing control method applied to a printer, comprising:
    接收打印数据;Receiving print data;
    获取待打印页面的长度及标记纸的实际票面长度;Obtain the length of the page to be printed and the actual face length of the mark paper;
    判断所述待打印页面的长度与所述标记纸的实际页面长度是否匹配;Determining whether the length of the page to be printed matches the actual page length of the mark paper;
    当所述待打印页面的长度与所述标记纸的实际页面长度不匹配时,输出提示信息;以及When the length of the page to be printed does not match the actual page length of the mark paper, outputting prompt information;
    当所述待打印页面的长度与所述标记纸的实际页面长度匹配时,打印所述打印数据。The print data is printed when the length of the page to be printed matches the actual page length of the mark paper.
  2. 根据权利要求1所述的打印控制方法,其中,所述获取所述待打印页面的长度包括:The print control method according to claim 1, wherein the obtaining the length of the page to be printed comprises:
    查询所述打印数据中的控制指令获取所述待打印页面的长度;或者,Querying a control instruction in the print data to obtain a length of the page to be printed; or
    根据所述打印数据计算所述待打印页面的长度。Calculating a length of the page to be printed based on the print data.
  3. 根据权利要求1所述的打印控制方法,其中,所述获取所述标记纸的实际票面长度包括:The printing control method according to claim 1, wherein the obtaining the actual ticket face length of the marking paper comprises:
    读取预存的所述标记纸的实际票面长度;或者,Reading the actual face length of the pre-stored mark paper; or
    通过执行所述标记纸的页面长度自动校准获取标记纸的实际页面长度。The actual page length of the marker paper is obtained by performing automatic calibration of the page length of the marker paper.
  4. 根据权利要求1所述的打印控制方法,其中,判断所述待打印页面的长度与所述标记纸的实际页面长度是否匹配包括:The print control method according to claim 1, wherein determining whether the length of the page to be printed matches the actual page length of the mark paper comprises:
    当所述待打印页面的长度大于所述标记纸的实际页面长度时,判定所述待打印页面的长度与所述标记纸的实际页面长度不匹配;When the length of the page to be printed is greater than the actual page length of the mark paper, determining that the length of the page to be printed does not match the actual page length of the mark paper;
    当所述待打印页面的长度小于等于所述标记纸的实际页面长度时,判定所述待打印页面的长度与所述标记纸的实际页面长度匹配。When the length of the page to be printed is less than or equal to the actual page length of the mark paper, it is determined that the length of the page to be printed matches the actual page length of the mark paper.
  5. 根据权利要求3所述的打印控制方法,其中,所述标记纸的页面长度自动校准,包括:The print control method according to claim 3, wherein the page length of the mark paper is automatically calibrated, comprising:
    驱动所述标记纸前进第一预定距离;以及Driving the marking paper to advance a first predetermined distance;
    通过检测传感器输出值计算标记纸的实际页面长度。The actual page length of the marker paper is calculated by detecting the sensor output value.
  6. 根据权利要求5所述的打印控制方法,其中,在所述通过检测传感器输出值计算标记纸的实际页面长度之后,还包括:驱动所述标记纸后退所述第一预定距离。The print control method according to claim 5, wherein after the actual page length of the mark paper is calculated by detecting the sensor output value, the method further comprises: driving the mark paper to retreat by the first predetermined distance.
  7. 根据权利要求1所述的打印控制方法,其中,当所述待打印页面的长度与所述标记纸的实际页面长度不匹配时,输出提示信息包括: The print control method according to claim 1, wherein when the length of the page to be printed does not match the actual page length of the mark paper, outputting the prompt information includes:
    在第一页标记纸上打印用于表示所述打印数据的页面长度与所述标记纸的实际页面长度不匹配的提示信息;或者,Prompting information indicating that the page length of the print data does not match the actual page length of the mark paper is printed on the first page mark paper; or
    输出用于表示所述打印数据的页面长度与所述标记纸的实际页面长度不匹配的声、光或语音信息。Sound, light or voice information indicating that the page length of the print data does not match the actual page length of the mark paper is output.
  8. 一种打印机,包括:通信装置、打印装置、指示装置以及控制装置;A printer comprising: a communication device, a printing device, a pointing device, and a control device;
    其中,所述通信装置设置为接收打印数据;Wherein the communication device is configured to receive print data;
    所述打印装置设置为打印所述打印数据;The printing device is configured to print the print data;
    所述指示装置设置为输出提示信息;以及The pointing device is configured to output prompt information;
    所述控制装置设置为获取待打印页面的长度及标记纸的实际页面长度,并判断所述待打印页面的长度与所述标记纸的实际页面长度是否匹配,以及在判定所述待打印页面的长度与所述标记纸的实际页面长度不匹配时,控制所述指示装置或所述打印装置输出提示信息,在判定所述待打印页面的长度与所述标记纸的实际页面长度匹配时,控制所述打印装置打印所述打印数据。The control device is configured to obtain a length of the page to be printed and an actual page length of the mark paper, and determine whether the length of the page to be printed matches the actual page length of the mark paper, and determine the page to be printed. Controlling the pointing device or the printing device to output prompt information when the length does not match the actual page length of the marking paper, and controlling when the length of the page to be printed matches the actual page length of the marking paper The printing device prints the print data.
  9. 根据权利要求8所述的打印机,还包括存储装置,设置为存储所述标记纸的实际页面长度。The printer of claim 8 further comprising storage means arranged to store an actual page length of said marker sheet.
  10. 根据权利要求8所述的打印机,其中,所述控制装置是设置为查询所述打印数据中的控制指令获取待打印页面的长度,或者根据所述打印数据计算所述待打印页面的长度。The printer according to claim 8, wherein said control means is arranged to inquire a control instruction in said print data to acquire a length of a page to be printed, or to calculate a length of said page to be printed based on said print data.
  11. 根据权利要求8所述的打印机,其中,所述控制装置是设置为读取预存的所述标记纸的实际票面长度;或者,通过执行所述标记纸的页面长度自动校准获取标记纸的实际页面长度。The printer according to claim 8, wherein said control means is arranged to read an actual face length of said pre-stored said label sheet; or to obtain an actual page of the mark sheet by performing automatic page alignment of said mark sheet length.
  12. 根据权利要求8所述的打印机,其中,所述控制装置是设置为当所述待打印页面的长度大于所述标记纸的实际页面长度时,判定所述待打印页面的长度与标记纸的实际页面长度不匹配;以及The printer according to claim 8, wherein said control means is arranged to determine the length of said page to be printed and the actual mark paper when the length of said page to be printed is greater than the actual page length of said mark paper The page length does not match;
    当所述待打印页面的长度小于等于所述标记纸的实际页面长度时,判定所述待打印页面的长度与标记纸的实际页面长度匹配。When the length of the page to be printed is less than or equal to the actual page length of the mark paper, it is determined that the length of the page to be printed matches the actual page length of the mark paper.
  13. 根据权利要求8所述的打印机,其中,所述控制装置是设置为当所述待打印页面的长度与所述标记纸的实际页面长度不匹配时,控制所述打印装置在第一页标记纸上打印用于表示所述打印数据的页面长度与所述标记纸的实际页面长度不匹配的提示信息;The printer according to claim 8, wherein said control means is arranged to control said printing means to mark paper on said first page when said length of said page to be printed does not match the actual page length of said label sheet And displaying, on the print, prompt information indicating that the page length of the print data does not match the actual page length of the mark paper;
    或者控制所述指示装置输出用于表示所述打印数据的页面长度与所述标记 纸的实际页面长度不匹配的声、光或语音信息。 Or controlling the pointing device to output a page length for indicating the print data and the mark The actual page length of the paper does not match the sound, light, or voice information.
PCT/CN2016/098571 2015-09-15 2016-09-09 Mark paper printing control method and printer WO2017045567A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510582373.9A CN106515231B (en) 2015-09-15 2015-09-15 Marking paper printing control method and printer
CN201510582373.9 2015-09-15

Publications (1)

Publication Number Publication Date
WO2017045567A1 true WO2017045567A1 (en) 2017-03-23

Family

ID=58288163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/098571 WO2017045567A1 (en) 2015-09-15 2016-09-09 Mark paper printing control method and printer

Country Status (2)

Country Link
CN (1) CN106515231B (en)
WO (1) WO2017045567A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111516397B (en) * 2020-04-30 2022-04-29 厦门汉印电子技术有限公司 Label paper identification method, device, equipment and readable storage medium
CN115302959B (en) * 2022-08-05 2024-03-08 上海商米科技集团股份有限公司 Black label printing method and printer based on multiple sensors

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128651A (en) * 2003-10-21 2005-05-19 Sato Corp Printer system
JP2006240304A (en) * 2006-04-07 2006-09-14 Brother Ind Ltd Tape printing device
JP2009220543A (en) * 2008-03-19 2009-10-01 Casio Comput Co Ltd Printer and printing method
CN102514387A (en) * 2008-07-30 2012-06-27 精工爱普生株式会社 Paper width detection method for a label printer
CN104512107A (en) * 2013-09-27 2015-04-15 精工爱普生株式会社 Printer and control method of printer

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5321486A (en) * 1991-11-15 1994-06-14 Canon Kabushiki Kaisha Image forming apparatus with control based on detected and designated recording medium size
JP2995314B2 (en) * 1992-10-15 1999-12-27 カシオ計算機株式会社 Tape cassette and printing device
DE69535836D1 (en) * 1994-11-29 2008-10-23 Seiko Epson Corp Tape printing device
JP3823388B2 (en) * 1996-09-04 2006-09-20 カシオ計算機株式会社 Printing device
GB0325264D0 (en) * 2003-10-29 2003-12-03 Esselte B V B A Vertical autosizing
JP4546164B2 (en) * 2004-06-17 2010-09-15 セイコーエプソン株式会社 Character information processing apparatus, information processing method for character information processing apparatus, program, and storage medium
CN101739726B (en) * 2009-12-18 2013-03-20 山东新北洋信息技术股份有限公司 Printing control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128651A (en) * 2003-10-21 2005-05-19 Sato Corp Printer system
JP2006240304A (en) * 2006-04-07 2006-09-14 Brother Ind Ltd Tape printing device
JP2009220543A (en) * 2008-03-19 2009-10-01 Casio Comput Co Ltd Printer and printing method
CN102514387A (en) * 2008-07-30 2012-06-27 精工爱普生株式会社 Paper width detection method for a label printer
CN104512107A (en) * 2013-09-27 2015-04-15 精工爱普生株式会社 Printer and control method of printer

Also Published As

Publication number Publication date
CN106515231B (en) 2020-03-31
CN106515231A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
US9037015B2 (en) Paper profile and reading systems
JP5803093B2 (en) Printing apparatus and control method thereof
CN106541714B (en) A kind of control method and label machine of label machine
JP2006116886A (en) Printer
JP2014030967A (en) Printer and printing method
CN107160866B (en) Printing apparatus, printing control method for printing apparatus, and storage medium
US9840102B2 (en) Thermal printer
US7086714B2 (en) Method for finding recording-start position
JP2018012249A (en) Printer and program
WO2017045567A1 (en) Mark paper printing control method and printer
RU2016140031A (en) PRINTING DEVICE AND METHOD FOR CONTROLLING A PRINTING DEVICE
US20130094032A1 (en) Apparatus, system, and method for calibration of a media processing device
JP2007090677A (en) Printing starting location setting method
JP4328194B2 (en) Printing device
JP2006062312A (en) Printer
JP2010188628A (en) Genuine label and label printer
JP6092050B2 (en) Label detection apparatus and label detection method for label printer
JPH07309039A (en) Printer
JP5684879B2 (en) Printer and printing method
US8780405B2 (en) Printer and non-transitory computer-readable storage medium storing printing control program
JP2005132063A (en) Thermal printer
JP2009107281A (en) Printer
JP2019048690A (en) Printer and program
JP2006272842A (en) Printing device
JP5395119B2 (en) Printer and printing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16845681

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16845681

Country of ref document: EP

Kind code of ref document: A1