WO2011072554A1 - 打印控制方法及装置 - Google Patents

打印控制方法及装置 Download PDF

Info

Publication number
WO2011072554A1
WO2011072554A1 PCT/CN2010/078070 CN2010078070W WO2011072554A1 WO 2011072554 A1 WO2011072554 A1 WO 2011072554A1 CN 2010078070 W CN2010078070 W CN 2010078070W WO 2011072554 A1 WO2011072554 A1 WO 2011072554A1
Authority
WO
WIPO (PCT)
Prior art keywords
paper
printed
printing
length
ticket
Prior art date
Application number
PCT/CN2010/078070
Other languages
English (en)
French (fr)
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 山东新北洋信息技术股份有限公司
Priority to US13/516,448 priority Critical patent/US20120257250A1/en
Priority to EP10836991A priority patent/EP2515276A1/en
Publication of WO2011072554A1 publication Critical patent/WO2011072554A1/zh

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B1/00Machines for printing and issuing tickets
    • 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
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/0075Low-paper indication, i.e. indicating the state when copy material has been used up nearly or completely

Definitions

  • FIG. 1 is a schematic view showing a state in which a paper magazine accommodates a large paper roll in a printing apparatus according to the related art
  • Fig. 2 is a view showing a state in which a paper magazine accommodates a small paper roll in the printing apparatus according to the related art.
  • the paper roll 110 is placed in the paper bin 100, and a paper end detecting device 142 is mounted on the side wall of the paper bin.
  • the paper end detecting means 142 can receive the light signal transmitted therefrom which is reflected back by the paper roll; as the paper is continuously printed, the paper in the paper roll 110 The amount is continuously reduced.
  • the paper end detecting means 142 can receive the light signal transmitted therefrom which is reflected back by the paper roll; as the paper is continuously printed, the paper in the paper roll 110 The amount is continuously reduced.
  • the paper will cause the detection result of the paper detecting device. A change occurs, and the printing apparatus 4 is slammed that the roll paper in the paper roll 110 is about to be used up, that is, the paper is exhausted.
  • the disadvantage of this solution is that the weight of the paper roll is gradually reduced when the amount of paper in the paper roll is less and less, and the paper roll is easily swayed in the paper storage during the paper feeding process, affecting the paper to be detected by the detecting device.
  • the detection of the volume makes it impossible to accurately detect the amount of paper remaining in the paper roll when the paper roll is small.
  • the conventional printer usually causes the paper to be alarmed when the amount of paper remaining is 1.5 m - 2.5 m, resulting in waste of paper.
  • a method is disclosed in the related art. In this method, the disclosed paper will detect the trailing end of the web more accurately than the detection method, so that the amount of paper remaining in the paper roll will be less. It is used in the printing process, and each time it is printed, the amount of paper used in the paper is subtracted from the original length of the paper roll, so that the amount of paper remaining in the paper roll reaches the desired value. Since the printing device inevitably exists during the printing process
  • the paper-feeding error on the mechanical structure in order to ensure the integrity of the printed ticket surface, in actual use, when the amount of remaining paper reaches the desired value, that is, when the end of the paper roll is detected, a small amount of residual paper remains on the paper roll.
  • a method is disclosed in the related art. The method can reliably and accurately detect the trailing end of the web and ensure the minimum amount of paper remaining. These marks are detected by adding special marks at the trailing end of the roll paper, adding sensors to the printing device, and detecting the special marks to confirm the trailing end of the paper roll.
  • the detection method is only applicable to paper with a special mark, it cannot be implemented on a normal roll paper, so the method is not versatile; since the paper roll with the special mark is left on the paper roll at the end detected A small amount of paper, so the method still does not use the paper in the four-bar paper roll to the limit, that is, the amount of remaining paper is not controlled within one print ticket face.
  • the problem that the ticket surface cannot be completely printed due to insufficient paper amount is often not provided, and an effective solution has not been proposed yet.
  • the present invention has been made in view of the problem of incomplete printing of a ticket surface due to insufficient amount of remaining paper when printing using related art.
  • a print control method comprises: detecting a state of a printing paper of the printing device; obtaining a length of a ticket surface to be printed when the printing device is in a paper ending state; determining printing in the printing device according to a length of the ticket surface to be printed Whether the paper can completely print the face to be printed; in the case of determining that the face to be printed can be completely printed, the face to be printed is printed.
  • obtaining the length of the ticket face to be printed further includes: calculating the to-be-printed according to the received print data of the ticket face to be printed The length of the face.
  • the method further comprises: alerting the user.
  • the printing paper state of the printing device is detected; when the printing device is in the paper end state, the length of the ticket surface to be printed is obtained; and whether the printing paper in the printing device can be completely printed is determined according to the length of the ticket surface to be printed. In the case where it is determined that the ticket surface to be printed can be completely printed, the ticket surface to be printed is printed, and the problem that the ticket surface cannot be completely printed due to insufficient paper amount is solved when printing is performed, thereby achieving timely detection of the remaining The amount of paper, so as to avoid the effect of not being able to print the face completely.
  • FIG. 4 is a printing in continuous printing according to an embodiment of the present invention.
  • Figure 5 is a schematic view of a paper feed path of the print control apparatus according to the second embodiment of the present invention; and
  • Figure 6 is a flow chart of a preferred print control method according to the third embodiment of the present invention; Is a schematic diagram of a method for controlling the printing length in the embodiment of the present invention;
  • FIG. 8 is a flow chart for confirming whether the paper roll amount can be completely printed in accordance with an embodiment of the present invention;
  • FIG. 9 is an embodiment of the present invention.
  • Schematic diagram of the print control device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • the print control apparatus includes: a controller 31, an interface unit 32, a memory 33, a printing unit 34, a detecting unit 35, and an instructing unit 36.
  • the controller 31 controls the data interaction with the host, such as receiving the print data of the ticket face, and sending the paper state of the printing device: a paper state, a paper end state, a paper out state, etc., controlling the advance and return paper operation during the printing process.
  • Fig. 4 is a flow chart showing the printing of a ticket at the time of continuous printing in the embodiment of the present invention. As shown in FIG.
  • the paper path of the print control device includes: a paper holding mechanism 10, a paper out detecting mechanism 11, a paper path 12, a paper feeding mechanism 13, a printing mechanism 14, a paper cutting mechanism 15, and a web paper 16.
  • the paper will be the detection mechanism
  • LS is the distance between the paper out detection mechanism and the printing mechanism (or print position) From, where the paper will be detected by the inspection agency is not marked in the figure.
  • a paper take-up mechanism 10 In the paper feed path 12 of the printing apparatus, a paper take-up mechanism 10, a paper-out detecting mechanism 11, a printing mechanism 13, a paper feeding mechanism 14, and a paper cutting mechanism 15 are sequentially disposed in the printing medium conveying direction.
  • the paper-holding mechanism 10 accommodates the roll paper 16; the paper-out detecting mechanism 11 is between the paper-holding mechanism 10 and the printing mechanism 13, ensuring that paper is detected on the paper roll in the paper-holding mechanism before printing by the printing mechanism;
  • the paper mechanism 15 is distributed behind the printing mechanism to facilitate cutting of the printed ticket surface.
  • the face length specifically refers to the number of dot lines or pixel lines in which information is printed in the paper feed direction.
  • the calculation method is as follows: When the print data received by the printing device is graphic data, that is, when the received data is directly printed, all the graphic data of the received printed ticket surface is first stored in the memory, and then calculated in FIG. 7 The number of dot lines or the number of pixel lines of the image to be printed in the paper feed direction indicated by the arrow 74; when the print data received by the printing device is character data, the character data is first converted into graphic data. Then calculate the face length of the graphic data. Step S16: It is judged whether the remaining paper length can print the complete ticket face. If the judgment result is yes, step 4 is performed, otherwise, step 4 is performed.
  • step S 18 is performed to perform printing; if the length of the remaining paper is smaller than the length of the ticket to be printed, it indicates that the remaining paper cannot completely print the ticket face, so step S20 is performed to prompt the user to replace the new paper roll.
  • determining whether the printing paper in the printing device can completely print the ticket surface to be printed according to the length of the ticket surface to be printed comprises: the printing device feeding the paper according to the set length; comparing the length of the paper feeding in the printing device with the set length; The result of the comparison is to judge whether the printing paper in the printing apparatus can completely print the ticket face to be printed.
  • Step 4 gathers S 18 and prints the ticket face.
  • the printing mechanism prints the ticket surface, and the paper feeding mechanism sends the printed ticket surface to the outside of the printing device, and the paper cutting mechanism performs the paper cutting operation when the paper cutting is required.
  • the paper is out of paper.
  • Step S160 the printing device feeds paper according to the set length.
  • the printing device feeds paper according to the set length, and detects the relationship between the remaining paper length and the length of the ticket to be printed by the paper out detecting device.
  • Step S162 when the paper feeding is stopped, it is judged whether the printing device is out of paper, if the paper is out of paper, step S20 is performed; otherwise, step S is performed. The relationship between the actual paper feed length and the set length is compared by the paper out detection device.
  • the paper outage detecting device detects that there is paper, it indicates that the length of the paper stored in the upstream of the printing device is larger than the length of the ticket surface to be printed, so that the full ticket face can be printed, and the phenomenon of printing the half ticket face does not occur.
  • the paper out detection device detects the paper shortage, it indicates that the length of the paper remaining on the upstream side of the printing device is less than the length of the ticket surface to be printed, that is, the current amount of remaining paper has not been able to completely print the ticket surface.
  • the paper-out detection mechanism is usually a photoelectric sensor or a mechanical sensor.
  • the paper-out detection mechanism detects the status of the paper in real time.
  • the printer stops feeding.
  • the printing device ejects the paper feed length in step S160.
  • the printing device ejects the paper feed length in step S 160, that is, the paper of the entered length is returned to prepare for printing.
  • step 4 is executed to perform a step S 18 to print the ticket face.
  • the paper can firstly judge whether the paper roll amount can be completely printed, and when it is confirmed that the ticket surface can be completely printed.
  • the amount of paper left in the paper roll can be controlled within a single ticket length, and can be implemented on a special printing paper that is not specially designed, thereby reducing paper waste and increasing paper usage while ensuring Print the integrity of the ticket face.
  • a print control apparatus is provided.
  • Figure 9 is a schematic illustration of a print control apparatus in accordance with an embodiment of the present invention. As shown in FIG.
  • the print control apparatus includes: a detection module 901, an acquisition module 902, a determination module 903, and a printing module 904.
  • the detecting module 901 is configured to detect the state of the printing paper of the printing device;
  • the obtaining module 902 is configured to obtain the length of the ticket face to be printed when the printing device is in the paper ending state;
  • the determining module 903 is configured to be used according to the to-be-printed
  • the length of the ticket surface determines whether the printing paper in the printing device can completely print the ticket surface to be printed; and the printing module 904 is configured to print the ticket surface to be printed if it is determined that the ticket surface to be printed can be completely printed.
  • the print control device further comprises: 4 alarm module 905.
  • the alarm module 905 is used to alert the user when the printing device is out of paper. It should be noted that the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different than that herein. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Handling Of Sheets (AREA)
  • Handling Of Continuous Sheets Of Paper (AREA)

Description

打印控制方法及装置 技术领域 本发明涉及打印领域, 具体而言, 涉及一种打印控制方法及装置。 背景技术 使用卷筒纸的打印装置, 如零售行业的收据打印机、 各种日志打印机、 彩票打印机等, 为了方便使用、 减少人工换纸的工作量, 一般使用长度很长 的纸卷。 在打印过程中, 在剩纸量很少 (以下简称纸将尽)时发出提示信息, 提醒使用者更换纸张、 或小心使用, 防止打印出不完整的收据, 如超市小票、 彩票等是不允许半截票出现的。 相关技术中公开了一种使用卷筒纸的纸将尽检测装置, 用来检测卷筒纸 的剩纸量。 详细描述如图 1和图 2所示。 图 1是根据相关技术的打印装置中纸仓容纳较大纸卷时的示意图; 图 2 是根据相关技术的打印装置中纸仓容纳较小纸卷时的示意图。 如图 1中所示, 纸卷 110放置在纸仓 100中, 在纸仓的侧壁装有纸将尽 检测装置 142。 当纸仓 100中的纸卷 110中剩纸量很多时, 纸将尽检测装置 142能够接收到其发送的通过纸卷反射回来的光信号; 随着纸张的不断打印, 纸卷 110中的纸量不断减少, 当纸卷上的剩纸量减少到如图 2中所示的程度 时, 由于纸卷不能够反射纸将尽检测装置 142发送的光信号从而引起纸将尽 检测装置的检测结果发生变化,向打印装置 4艮告纸卷 110中的卷纸将要用完, 即纸将尽。 该方案的缺点在于, 当纸卷中的纸量越来越少时纸卷的重量也逐 渐减小, 在进纸过程中纸卷容易在纸仓中窜动, 影响纸将尽检测装置对纸卷 的检测, 因此无法实现在纸卷较小时对纸卷剩纸量的准确检测。 为了防止纸 将尽检测装置检测失误, 传统的打印机通常在剩纸量为 1.5 米 -2.5米的情况 即提示纸将尽报警, 造成了纸张的浪费。 相关技术中公开了一种方法。 在该方法中, 公开的纸将尽检测方法能比 较准确地检测到卷筒纸的尾端, 使纸将尽时纸卷的剩纸量更少。 其釆用在打 印过程, 每打印一次, 就从纸卷的原始长度中减去该次打印用纸量的方法, 使纸卷中的剩纸量达到期望值。 由于打印装置在打印过程中不可避免地存在
1 P37952 机械结构上的走纸误差, 为了保证打印票面的完整性, 实际使用时, 当剩纸 量达到期望值即检测到纸卷尾端时在纸卷上还是会留有少量的剩纸。 相关技术中公开了一种方法。该方法能可靠准确地检测到卷筒纸的尾端、 保证剩纸量最少。 利用在卷筒纸的尾端增加特殊标志、 在打印装置中增加传 感器来检测这些标志, 通过检测这些特殊标志来确认纸卷的尾端。 由于该检 测方法只适用于具有特殊标志的纸张, 在普通卷筒纸上不能实施, 因此该方 法不具有通用性; 由于在检测到尾端的纸卷上还留有包括带有特殊标志纸张 在内的少量纸张, 因此该方法仍然没有 4巴纸卷中的纸张使用到极限, 即没有 把剩纸量控制在一个打印票面之内。 针对相关技术中进行打印时, 往往由于剩纸量不足而导致不能完整打印 票面的问题, 目前尚未提出有效的解决方案。 发明内容 针对使用相关技术进行打印时, 往往由于剩纸量不足而导致不能完整打 印票面的问题而提出本发明, 为此, 本发明的主要目的在于提供一种打印控 制方法及装置, 以解决上述问题。 为了实现上述目的,根据本发明的一个方面,提供了一种打印控制方法。 才艮据本发明的打印控制方法包括: 对打印装置的打印纸状态进行检测; 在打印装置处于纸将尽状态时, 获取待打印票面的长度; 根据待打印票面的 长度判断打印装置中的打印纸是否能够完整打印待打印票面; 在确定能够完 整打印待打印票面的情况下, 打印待打印票面。 优选地, 对打印装置的打印纸状态进行检测包括: 通过查询纸将尽传感 器的状态来判断打印装置是否处于纸将尽状态。 优选地, 根据待打印票面的长度判断打印装置中的打印纸是否能够完整 打印待打印票面包括: 打印装置按照设定长度进纸; 对打印装置中进纸的长 度和设定长度进行对比; 根据对比的结果来判断打印装置中的打印纸是否能 够完整打印待打印票面。 优选地, 在打印装置中的打印纸能够完整打印待打印票面的情况下, 该 方法还包括: 按设定长度退纸。 优选地, 设定长度为待打印票面的长度或待打印票面长度与 LS之差, 其中, LS为缺纸检测机构和打印位置间的距离。 优选地, 待打印票面为固定长度票面或随机长度票面, 在待打印票面为 固定长度票面的情况下, 获取待打印票面的长度包括: 根据预存的固定票面 长度来获取待打印票面的长度。 优选地, 待打印票面为固定长度票面或随机长度票面, 在待打印票面为 随机长度票面的情况下, 获取待打印票面的长度还包括: 根据接收到的待打 印票面的打印数据来计算待打印票面的长度。 优选地, 打印装置处于缺纸状态时, 该方法还包括: 向用户告警。 为了实现上述目的,根据本发明的另一方面,提供了一种打印控制装置。 才艮据本发明的打印控制装置包括: 检测模块, 用于对打印装置的打印纸 状态进行检测; 获取模块, 在打印装置处于纸将尽状态时, 用于获取待打印 票面的长度; 判断模块, 用于根据待打印票面的长度判断打印装置中的打印 纸是否能够完整打印待打印票面; 打印模块, 用于在确定能够完整打印待打 印票面的情况下, 打印待打印票面。 优选地, 该打印控制装置还包括: 报警模块, 在打印装置处于缺纸状态 时, 用于向用户告警。 通过本发明, 釆用对打印装置的打印纸状态进行检测; 在打印装置处于 纸将尽状态时, 获取待打印票面的长度; 根据待打印票面的长度判断打印装 置中的打印纸是否能够完整打印待打印票面; 在确定能够完整打印待打印票 面的情况下, 打印待打印票面, 解决了进行打印时, 往往由于剩纸量不足而 导致不能完整打印票面的问题, 进而达到了能够及时地检测剩纸量, 从而避 免不能完整打印票面的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据相关技术的打印装置中纸仓容纳较大纸卷时的示意图; 图 2是根据相关技术的打印装置中纸仓容纳较小纸卷时的示意图; 图 3是 居本发明实施例一的打印控制装置的示意图; 图 4是 居本发明实施例的连续打印时打印票样的流程图; 图 5是 居本发明实施例二的打印控制装置的走纸通道的示意图; 图 6是^ f艮据本发明实施例三的优选的打印控制方法的流程图; 图 7是 居本发明实施例的计算打印长度的控制方法的示意图; 图 8是根据本发明实施例的对纸卷剩纸量能否完整打印票面进行确认的 流程图; 图 9是 居本发明实施例的打印控制装置的示意图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面将参考附图并结合实施例来详细说明本发明。 根据本发明的实施例, 提供了一种打印控制方法及装置。 图 3是 居本发明实施例一的打印控制装置的示意图。 该打印控制装置是一种能够既能减 'j、剩纸量又能保证打印票面完整性的 打印控制方法和打印装置。 该装置在票据打印过程中, 当打印机剩纸量较少 即纸将尽时, 釆用每打印一张票面之前把剩纸量与票面长度进行比较, 确认 剩纸量能否保证票面内容的完整打印, 当剩纸量能够完整地打印该票面时进 行打印, 否则进行报警或提示。 如图 3所示, 该打印控制装置包括: 控制器 31、 接口单元 32、 存储器 33、 打印单元 34、 检测单元 35和指示单元 36。 其中,控制器 31 ,控制与主机之间的数据交互,如接收票面的打印数据, 发送打印装置纸状态: 有纸状态、 纸将尽状态、 缺纸状态等, 控制打印过程 中的进退纸操作、 控制打印单元的打印操作, 进行打印票面的长度计算, 进 行纸卷剩纸量与打印长度的比较操作等; 通信单元 32 , 对打印装置与主机间 的数据通信提供通路, 如接收打印数据, 发送打印装置的包括纸状态在内的 各种状态等; 存储器 33 , 存储从主机发送过来的数据, 存储打印单元要打印 的数据, 存储检测单元 36 的检测数据, 存储每张票面的打印长度等; 打印 单元 34 , 根据控制器的要求对要打印的数据进行打印, 打印单元可以为热转 印打印单元, 也可以为色带打印单元, 还可以为喷墨打印单元等; 检测单元 35 , 检测打印机是否缺纸、 检测纸卷的剩纸量等; 指示单元 36 , 根据控制器 31的要求以声音、 光等方式指示打印装置的状态: 正常、 纸将尽、 缺纸等状 态, 声音指示如使用蜂呜器、 喇叭发声, 光指示如使用发光管、 液晶显示器 等进行可视指示。 从图 3的打印装置的组成示意图中, 可以直接得到各个组成单元的实现 功能及彼此之间的简单工作关系, 特别的, 打印装置中还可以包括纸张分离 装置, 如切刀、 撕纸刀等。 图 4是 居本发明实施例的连续打印时打印票样的流程图。 如图 4所示, 该方法包括如下的步骤 S402至步骤 S410: 步骤 S402, 对打印装置的打印纸状态进行检测; 步骤 S404, 在打印装置处于纸将尽状态时, 获取待打印票面的长度; 步骤 S406,根据待打印票面的长度判断打印装置中的打印纸是否能够完 整 4丁印待了印票面; 步骤 S408,在确定能够完整打印待打印票面的情况下,打印待打印票面。 为了实现上述目的,根据本发明的另一方面,提供了一种打印控制装置。 下面将结合实例对本发明实施例的实现过程进行详细描述。 图 5是 居本发明实施例二的打印控制装置的走纸通道的示意图。 该实施例的打印装置的走纸通道示意图, 用来说明打印装置中主要组成 单元之间的实际位置关系及组成单元在整个装置操作过程中的作用。 如图 5所示, 该打印控制装置的走纸通道包括: 容纸机构 10、 缺纸检测 机构 11、 走纸通道 12、 进纸机构 13、 打印机构 14、 切纸机构 15、 卷筒纸 16 及纸将尽检测机构, LS为缺纸检测机构和打印机构(或打印位置)之间的距 离, 其中, 纸将尽检测机构未在该图中标出。 在打印装置中的走纸通道 12 中沿打印介质传送方向上依次分布着容纸 机构 10、 缺纸检测机构 11、 打印机构 13、 进纸机构 14、 切纸机构 15。 容纸 机构 10容纳卷筒纸 16;缺纸检测机构 11在容纸机构 10和打印机构 13之间, 保证在打印机构打印之前就能检测到容纸机构中的纸卷上是否有纸; 切纸机 构 15分布在打印机构之后, 便于对打印票面的切纸。 容纸机构 10中的纸卷 以箭头 17所示的方向在通道 12 中进纸, 进纸机构 14驱动打印纸在通道中 前进; 切纸机构 15 对打印纸进行切纸操作, 4巴连续的纸张切成单页的票面 便于用户取走; 缺纸检测机构 12 检测走纸通道中纸张的有无, 即容纸机构 10中卷筒纸 16的纸张是否用完, 该检测机构既可以是光电检测装置, 又可 以是机械检测装置, 还可以是声纳检测装置等, 常用的光电检测装置包括反 射传感器、 透射传感器等; 纸将尽检测机构检测卷筒纸 16 中的纸张是否即 将用完。通过进纸机构驱动打印纸在通道中的传输,通过打印机构进行打印, 通过切纸机构进行切纸, 共同完成票面的打印和切纸。 图 6是^ f艮据本发明实施例三的优选的打印控制方法的流程图。 如图 6所示, 该优选的打印控制方法包括如下步骤: 步骤 10, 纸状态检测。 打印装置在打印之前首先要判定其纸状态, 纸状态包括: 正常、 纸将尽、 缺纸等。 其中, 纸将尽状态由纸将尽检测机构进行检测, 缺纸状态由缺纸检 测机构进行检测, 打印装置在卷筒纸的使用过程中其纸状态随着剩纸量的不 断减少其变化趋势依次为纸正常、 纸将尽、 缺纸, 即打印过程中在剩纸量不 断减少时当卷筒中的纸少于纸将尽检测的预定剩纸量首先检测到的是纸将尽 状态, 然后才是缺纸状态。 纸将尽的检测方法, 釆用公知技术既可实现, 在 此不再赘述。 步骤 S 12, 判断打印装置是否处于纸将尽状态, 如果是, 执行步骤 S 14, 否则, 执行步 4聚 S20。 打印装置处于纸将尽状态时, 说明纸卷中的剩纸量已经很少, 在票面的 打印过程中需要确定剩纸量能否满足待打印票面的长度要求; 打印装置未进 入纸将尽状态, 表明纸卷中的剩余纸还比较多, 直接打印票面即可。 步骤 S 14 , 获取待打印票面的长度 LU。 打印装置在实际使用时, 即可以进行固定长度票面的打印也可以随机长 度票面的打印。 固定长度票面的打印和随机长度票面的打印, 适合于不同的 应用场合, 其中随机长度票面打印适合于打印内容随机变化的场合, 如超市 购物收据的打印、 信息查询内容的打印等; 固定长度票面打印适用于打印内 容比较固定的场合, 如出租车的收据打印、 购物发票的打印等。 当打印装置进行固定长度票面打印时, 其打印票面的长度是确定, 即不 需要进行计算; 当打印票面的长度不固定时, 需要对票面的打印长度进行计 算。 其中, 票面长度随机变化的票面如图 7所示。 图 7是 居本发明实施例的计算打印长度的控制方法的示意图。 如图 7中的连续纸打印所示, 在进行随机长度票面打印时, 沿着箭头 74 所示的进纸方向打印上, 收据 71、 收据 72、 收据 73的打印数据量及打印数 据的行数变化很大, 其票面长度 LU1、 LU2、 LU3的变化也比较很大, 其中 LU2 > LU1 > LU3 , 由图可知随机长度票面打印与固定长度票面打印相比节 省纸张。 打印装置在进行随机长度票面打印时, 由于每次待打印票面的内容随机 变化, 其打印票面的长度也不确定, 需要在每次打印前计算待打印票面的长 度。 票面长度具体是指在进纸方向上打印信息的点行(dot line )数或像素行 ( pixel line ) 数。 其计算方法如下: 当打印装置接收的打印数据是图形数据 时, 即把接收的数据直接进行打印时, 把接收的打印票面的所有图形数据先 存储在存储器之中, 然后计算在图 7 中的箭头 74所示的进纸方向上待打印 图像的点行 ( dot line ) 数或像素行 ( pixel line ) 数; 当打印装置接收的打印 数据是字符数据时, 首先把字符数据转换成图形数据, 然后再计算图形数据 的票面长度。 步骤 S 16, 判断剩余的纸张长度能否打印完整票面, 如果判断结果为是, 执行步 4聚 S 18, 否则, 执行步 4聚 S20。 打印装置在检测到纸将尽后, 纸卷的剩纸量已经比较少, 存在纸张随时 用完的可能。 为了防止因为纸张用完而打印票面未完整打印, 因此需要将剩 余纸张的长度与待打印票面的票面长度进行比较, 从而判断剩余的纸张能否 打印完整票面。 如果剩余纸张的长度大于待打印票面长度, 则表明剩余的纸 张能够打印完整票面, 因此执行步骤 S 18, 进行打印; 如果剩余纸张的长度 小于待打印票面长度, 则表明剩余的纸张不能完整地打印票面, 因此执行步 骤 S20 , 提示用户更换新的纸卷。 优选地, 根据待打印票面的长度判断打印装置中的打印纸是否能够完整 打印待打印票面包括: 打印装置按照设定长度进纸; 对打印装置中进纸的长 度和设定长度进行对比; 根据对比的结果来判断打印装置中的打印纸是否能 够完整打印待打印票面。 步 4聚 S 18, 打印票面。 打印机构打印票面, 由进纸机构把打印票面送到打印装置外, 在需要切 纸时由切纸机构进行切纸操作。 步骤 S20, 缺纸 4艮警。 当纸卷剩纸长度小于待打印票面的长度时, 打印装置进行缺纸报警, 提 醒使用者抛弃当前纸卷并更换新的纸卷。 4艮警提示, 既可以通过显示装置, 如 LED显示、 LCD显示, 还可以通过声音提示, 如蜂呜器、 喇八发声等。 图 8是根据本发明实施例的对纸卷剩纸量能否完整打印票面进行确认的 流程图。 在打印装置检测到纸将尽后, 需要进一步判断剩余的纸张长度能否打印 完整票面, 当剩余的纸张长度能够打印完整票面时进行打印; 当剩余的纸张 长度不能打印完整票面时提示用户更换新的纸卷, 从而提高了剩余纸量的检 测准确性, 既提高了纸张的使用率, 又防止打印不完整票面。 下面结合图 5、 图 6和图 8具体说明当打印检测到纸将尽后, 如何判断 剩余的纸张长度与待打印票面长度之间的关系。 为描述方便, 将缺纸检测机 构和打印机构之间的 巨离记作 LS。 如图 8所示, 该方法包括如下步 4聚: 步骤 S 160 , 打印装置按设定长度进纸。 打印装置按设定长度进纸, 利用缺纸检测装置检测剩余纸张长度与待打 印票面长度之间的关系。 设定长度可以是待打印票面长度 LU, 也可以是待 打印票面长度 LU与缺纸检测机构和打印位置之间距离 LS 的差值的绝对值 即 I LU— LS I 。 按待打印票面长度 LU进纸, 可以检测出缺纸传感器上游剩 余纸张长度是否大于待打印票面长度, 以确认剩余纸张长度能否打印完整票 面。 由于在缺纸检测机构和打印机构之间还留有 LS 长度的剩纸, 因此, 按 待打印票面长度 LU与缺纸检测机构和打印机构之间距离 LS 的差值的绝对 值即 I LU— LS I 进纸, 可以充分利用缺纸检测机构和打印机构之间剩余纸 张。 步骤 S 162, 在进纸停止时, 判断打印装置是否缺纸, 如果缺纸, 则执行 步骤 S20; 否则, 执行步 4聚 S 164。 通过缺纸检测装置比较打印实际进纸长度与设定长度之间的关系。 在进 纸停止时, 如果缺纸检测装置检测到有纸时, 说明在打印装置上游存留纸张 的长度大于待打印票面的长度, 因此能够打印完整票面, 不会出现打印半截 票面的现象。 在进纸停止时, 如果缺纸检测装置检测到缺纸时, 说明打印装 置上游存留纸张的长度小于待打印票面的长度, 即当前的剩纸量已经不能够 完整地打印票面。 缺纸检测机构通常是光电传感器或者机械式传感器, 由于 有纸和无纸情况下传感器状态不同, 因此可以检测到缺纸检测机构所处位置 是否缺纸。 通常情况下, 缺纸检测机构实时检测打印纸状态, 在进纸过程中, 一旦缺纸检测机构检测到缺纸, 打印机即停止进纸。 步骤 S 164, 打印装置按步骤 S 160进纸长度退纸。 打印装置按步骤 S 160 进纸长度退纸, 即把所进长度的纸张退回, 为打 印做准备。 通过打印装置的进纸、 退纸操作, 完成了对纸卷剩余纸张能否打印完整 票面的判断。 当步 4聚 S 164执行后, 执行步 4聚 S 18, 打印票面。 在票据打印过程中, 当打印装置剩纸量较少即纸将尽时, 釆用每打印一 张票面之前首先对纸卷剩纸量能否完整打印票面进行判断、 在确认能完整打 印票面时再进行打印, 能把纸卷的剩纸量控制在一张票面长度之内, 在不需 要专门设计的普通打印纸上即可实施, 在减少纸张浪费、 提高纸张使用率的 同时, 还确保了打印票面的完整性。 从以上的描述中, 可以看出, 在本发明中, 通过在票据打印过程中, 当 打印机剩纸量较少即纸将尽时, 釆用每打印一张票面之前先确认剩纸量能否 完整票面内容的打印控制方法, 本发明不仅能最大限度地减少剩纸量, 还确 保了打印票面的完整性, 防止半截票的出现。 而且, 本发明既不需要使用专 门的打印纸, 又不增加打印机的成本, 极大提高了打印纸张的使用率和打印 效率。 根据本发明的实施例, 提供了一种打印控制装置。 图 9是 居本发明实施例的打印控制装置的示意图。 如图 9所示, 该打印控制装置包括: 检测模块 901、 获取模块 902、 判 断模块 903和打印模块 904。 其中, 检测模块 901 , 用于对打印装置的打印纸状态进行检测; 获取模 块 902 , 在打印装置处于纸将尽状态时, 用于获取待打印票面的长度; 判断 模块 903, 用于根据待打印票面的长度判断打印装置中的打印纸是否能够完 整打印待打印票面; 打印模块 904, 用于在确定能够完整打印待打印票面的 情况下, 打印待打印票面。 优选地, 该打印控制装置还包括: 4艮警模块 905。 其中, ·ί艮警模块 905, 在打印装置处于缺纸状态时, 用于向用户告警。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执 行指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是 在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。

Claims

权 利 要 求 书
1. 一种打印控制方法, 其特征在于, 包括:
对打印装置的打印纸状态进行检测;
在所述打印装置处于纸将尽状态时, 获取待打印票面的长度; 根据所述待打印票面的长度判断所述打印装置中的打印纸是否能够 完整打印所述待打印票面;
在确定能够完整打印所述待打印票面的情况下, 打印所述待打印票 面。
2. 根据权利要求 1所述的方法, 其特征在于, 对打印装置的打印纸状态进 行检测包括:
通过查询纸将尽传感器的状态来判断所述打印装置是否处于纸将尽 状态。
3. 居权利要求 1所述的方法, 其特征在于, 居所述待打印票面的长度 判断所述打印装置中的打印纸是否能够完整打印所述待打印票面包括: 所述打印装置按照设定长度进纸;
当进纸停止时, 对所述打印装置的实际进纸长度和所述设定长度进 行对比;
居所述对比的结果来判断所述打印装置中的打印纸是否能够完整 打印所述待打印票面。
4. 根据权利要求 3所述的方法, 其特征在于, 在所述打印装置中的打印纸 能够完整打印所述待打印票面的情况下, 所述方法还包括:
按所述设定长度退纸。
5. 根据权利要求 3或 4所述的方法, 其特征在于, 所述设定长度为待打印 票面的长度或所述待打印票面长度与 LS之差, 其中, 所述 LS为缺纸检 测机构和打印位置间的距离。
6. 根据权利要求 1所述的方法, 其特征在于, 所述待打印票面为固定长度 票面或随机长度票面, 在所述待打印票面为固定长度票面的情况下, 获 取待打印票面的长度包括:
根据预存的所述固定长度票面的长度来获取所述待打印票面的长 度。
7. 根据权利要求 1所述的方法, 其特征在于, 所述待打印票面为固定长度 票面或随机长度票面, 在所述待打印票面为随机长度票面的情况下, 获 取待打印票面的长度还包括:
根据接收到的待打印票面的打印数据来计算所述待打印票面的长 度。
8. 根据权利要求 1所述的方法, 其特征在于, 在所述打印装置处于缺纸状 态时, 所述方法还包括:
向用户告警。
9. 一种打印控制装置, 其特征在于, 包括:
检测模块, 用于对打印装置的打印纸状态进行检测;
获取模块, 在所述打印装置处于纸将尽状态时, 用于获取待打印票 面的长度;
判断模块, 用于根据所述待打印票面的长度判断所述打印装置中的 打印纸是否能够完整打印所述待打印票面;
打印模块, 用于在确定能够完整打印所述待打印票面的情况下, 打 印所述待打印票面。 根据权利要求 9所述的装置, 其特征在于, 所述装置还包括:
报警模块, 在所述打印装置处于缺纸状态时, 用于向用户告警。
PCT/CN2010/078070 2009-12-18 2010-10-25 打印控制方法及装置 WO2011072554A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/516,448 US20120257250A1 (en) 2009-12-18 2010-10-25 Print control method and device
EP10836991A EP2515276A1 (en) 2009-12-18 2010-10-25 Print control method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910259610.2 2009-12-18
CN2009102596102A CN101739726B (zh) 2009-12-18 2009-12-18 打印控制方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/516,448 Substitution US20120257250A1 (en) 2009-12-18 2010-10-25 Print control method and device

Publications (1)

Publication Number Publication Date
WO2011072554A1 true WO2011072554A1 (zh) 2011-06-23

Family

ID=42463172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078070 WO2011072554A1 (zh) 2009-12-18 2010-10-25 打印控制方法及装置

Country Status (4)

Country Link
US (1) US20120257250A1 (zh)
EP (1) EP2515276A1 (zh)
CN (1) CN101739726B (zh)
WO (1) WO2011072554A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739726B (zh) * 2009-12-18 2013-03-20 山东新北洋信息技术股份有限公司 打印控制方法及装置
CN102651147B (zh) * 2011-02-24 2014-11-26 深圳市精英创展投资有限公司 派单机器人
CN106183487A (zh) * 2012-06-28 2016-12-07 联想(北京)有限公司 一种打印方法及打印设备
CN102717608B (zh) * 2012-06-29 2015-04-22 北京公达数码科技有限公司 一种固定票长打印装置及其打印方法
JP6149011B2 (ja) * 2014-07-25 2017-06-14 富士通フロンテック株式会社 プリンタ装置、プリンタ装置の制御方法および印刷制御プログラム
CN106515231B (zh) * 2015-09-15 2020-03-31 山东新北洋信息技术股份有限公司 标记纸打印控制方法及打印机
WO2017111906A1 (en) 2015-12-21 2017-06-29 Hewlett-Packard Development Company, L.P. Initiating a shortage model
JP2017132605A (ja) * 2016-01-29 2017-08-03 東芝テック株式会社 プリンタ、記録媒体および販売データ処理装置
CN109360035A (zh) * 2018-10-23 2019-02-19 中交第二航务工程局有限公司 发票输出方法及发票输出系统
CN111923612B (zh) * 2020-06-29 2022-07-12 厦门汉印电子技术有限公司 一种缺纸阈值的学习方法、装置、设备及可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0524319A (ja) * 1991-07-23 1993-02-02 Oki Electric Ind Co Ltd プリンタのペーパーエンド検出処理装置
JP2504560B2 (ja) * 1989-04-20 1996-06-05 富士通株式会社 発券装置
CN1163827A (zh) * 1996-01-12 1997-11-05 三星电子株式会社 用于自动检测纸长度的打印系统及其控制方法
JP2003271994A (ja) * 2002-03-19 2003-09-26 Nippon Signal Co Ltd:The 発券装置
CN1495037A (zh) * 2002-08-28 2004-05-12 ������������ʽ���� 喷墨记录装置及喷墨记录方法
JP2006326994A (ja) * 2005-05-25 2006-12-07 Toyo Network Systems Co Ltd 印刷装置、及び自動券売機
CN101739726A (zh) * 2009-12-18 2010-06-16 山东新北洋信息技术股份有限公司 打印控制方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0141668B1 (ko) * 1994-09-27 1998-07-01 김광호 화상 출력종이 장착량 감지장치
KR960036513A (ko) * 1995-03-31 1996-10-28 김광호 롤-페이퍼를 사용하는 팩시밀리에서 기록지 잔량길이 표시방법
JP2002254780A (ja) * 2001-02-28 2002-09-11 Seiko Epson Corp プリンタ制御装置及びプリンタ制御方法
JP3932839B2 (ja) * 2001-08-20 2007-06-20 富士ゼロックス株式会社 連続媒体折り畳み装置及びこれを備えた連続媒体印刷装置
JP4374873B2 (ja) * 2003-03-10 2009-12-02 セイコーエプソン株式会社 プリンタ
US20050036817A1 (en) * 2003-08-12 2005-02-17 Wilken Kevin L. Method and apparatus for reducing label length error in a label printer
JP4212528B2 (ja) * 2004-08-09 2009-01-21 三洋電機株式会社 画像形成装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2504560B2 (ja) * 1989-04-20 1996-06-05 富士通株式会社 発券装置
JPH0524319A (ja) * 1991-07-23 1993-02-02 Oki Electric Ind Co Ltd プリンタのペーパーエンド検出処理装置
CN1163827A (zh) * 1996-01-12 1997-11-05 三星电子株式会社 用于自动检测纸长度的打印系统及其控制方法
JP2003271994A (ja) * 2002-03-19 2003-09-26 Nippon Signal Co Ltd:The 発券装置
CN1495037A (zh) * 2002-08-28 2004-05-12 ������������ʽ���� 喷墨记录装置及喷墨记录方法
JP2006326994A (ja) * 2005-05-25 2006-12-07 Toyo Network Systems Co Ltd 印刷装置、及び自動券売機
CN101739726A (zh) * 2009-12-18 2010-06-16 山东新北洋信息技术股份有限公司 打印控制方法及装置

Also Published As

Publication number Publication date
EP2515276A1 (en) 2012-10-24
CN101739726B (zh) 2013-03-20
CN101739726A (zh) 2010-06-16
US20120257250A1 (en) 2012-10-11

Similar Documents

Publication Publication Date Title
WO2011072554A1 (zh) 打印控制方法及装置
JP5117329B2 (ja) サーマルプリンタおよびその制御方法
EP2604437B1 (en) Printing control method and printer
US5890708A (en) Printing system and method automatically detecting paper length and control method thereof
US6758541B2 (en) Printing machine and the method of reporting an error thereof
JP2007015373A (ja) プリンタ、印刷制御方法及びプログラム
JPH08142433A (ja) 印字方法およびその方法を用いたプリンタ
JP5181909B2 (ja) プリンタの再印刷制御方法およびプリンタ
JP2000141775A (ja) ラベル用紙及びラベルプリンタ
JP2010023297A (ja) プリンタの制御方法およびプリンタ
JP2010064272A (ja) サーマルプリンタおよびその制御方法
JP2003285935A (ja) 記録装置
WO1995025058A1 (fr) Convoyeur de bande
JP2010202307A (ja) 記録紙検出方法およびプリンター
JP4428132B2 (ja) 連続用紙のマーク検出方法、マーク検出検出機構およびプリンタ
JP2010188628A (ja) 純正ラベルおよびラベルプリンタ
JP2005314047A (ja) 印字装置
JP5609999B2 (ja) プリンタの再印刷制御方法およびプリンタ
JP4764083B2 (ja) 連続紙印刷装置
CN100528587C (zh) 用于控制喷墨打印机中的打印的方法和装置
JP2006069015A (ja) プリンタ
US20110215130A1 (en) Sheet handling apparatus and sheet collecting method
JPH07309039A (ja) プリンタ
JP2003296693A (ja) 記録媒体の残量検知装置、当該装置を備えた画像形成装置、及びプログラム
JP2005306043A (ja) プリンタ、印刷命令生成装置および印刷システム

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: 10836991

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13516448

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2010836991

Country of ref document: EP