[go: up one dir, main page]

CN1497505A - Control method of printing device, receipt print data generation method - Google Patents

Control method of printing device, receipt print data generation method Download PDF

Info

Publication number
CN1497505A
CN1497505A CNA2003101010337A CN200310101033A CN1497505A CN 1497505 A CN1497505 A CN 1497505A CN A2003101010337 A CNA2003101010337 A CN A2003101010337A CN 200310101033 A CN200310101033 A CN 200310101033A CN 1497505 A CN1497505 A CN 1497505A
Authority
CN
China
Prior art keywords
data
image
character string
image data
print data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2003101010337A
Other languages
Chinese (zh)
Other versions
CN100492423C (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of CN1497505A publication Critical patent/CN1497505A/en
Application granted granted Critical
Publication of CN100492423C publication Critical patent/CN100492423C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

In a method of controlling a printing apparatus which performs printing by adding image data already stored in the printing apparatus to payment transaction print data generated on the basis of input information concerning merchandise sales, a predetermined character string indicating a print position of the image data is retrieved from the payment transaction print data and the predetermined character string is extracted. A line number specified by the extracted predetermined character string is obtained and an image addition setting command is generated on the basis of the line number. The payment transaction print data and the image addition setting command are transmitted to the printing apparatus. Even if a low-speed interface is used as an interface between a PC and the printing apparatus, the image data can be printed rapidly.

Description

打印装置的控制方法、收据打印数据生成方法Control method of printing device, receipt print data generation method

领域field

本发明涉及将已被存储的图像数据附加到根据与商品销售有关的输入信息所生的结算处理打印数据中进行打印的打印装置的控制方法、收据打印数据生成方法、程序、打印驱动程序、打印装置、商品销售数据处理装置及POS系统。The present invention relates to a control method of a printing apparatus for printing by adding stored image data to settlement processing print data generated based on input information related to commodity sales, a method for generating receipt print data, a program, a print driver, a print device, product sales data processing device and POS system.

背景技术Background technique

以往,在超市及便利店等零售业中所使用的POS系统(销售时信息管理系统),由取得与商品销售有关的输入信息的主计算机和在收据上进行打印的打印装置构成了POS终端。作为该种类的POS终端,一般为打印装置接收主计算机所生成的结算处理打印数据、根据该结算处理打印数据在收据上进行打印的方式(比如参照专利文献1)(参照图17),但近年来,除了可以打印该结算处理打印数据以外,比如众所周知也可以打印店铺的标志等图像数据(参照特开2001-273560号公报)。Conventionally, the POS system (sales information management system) used in retail businesses such as supermarkets and convenience stores consists of a host computer that acquires input information related to product sales and a printer that prints receipts to form a POS terminal. As this type of POS terminal, generally, a printing device receives settlement processing print data generated by a host computer, and prints on a receipt based on the settlement processing print data (for example, refer to Patent Document 1) (refer to FIG. 17 ), but in recent years Now, in addition to printing the settlement processing print data, for example, it is known that image data such as shop logos can be printed (see JP-A-2001-273560).

但是,在将这样的结算处理打印数据和图像数据打印到同一收据上的POS终端中,将图像数据存储在主计算机内,在将该图像数据和在主计算机内所生成的结算处理打印数据合成后,将数据发送到打印装置。但是,在主计算机和打印装置采用低速接口相连接的情况下,在数据传送上就要花费时间,会出现收据的发行迟缓的问题。为此,作为整体来讲就会导致产生处理效率差、让顾客等待等业务上的障碍。However, in the POS terminal that prints such settlement process print data and image data on the same receipt, the image data is stored in the host computer, and the image data is combined with the settlement process print data generated in the host computer. After that, send the data to the printing device. However, when the host computer and the printing device are connected by a low-speed interface, it takes time to transfer data, and there is a problem that issuance of a receipt is delayed. For this reason, as a whole, it causes business obstacles such as poor processing efficiency and keeping customers waiting.

发明内容Contents of the invention

鉴于上述的问题,本发明的目的就在于提供:作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下、也可以迅速地打印图像数据的打印装置的控制方法、收据打印数据生成方法、程序、打印驱动程序、打印装置、商品销售数据处理装置及POS系统。In view of the above problems, it is an object of the present invention to provide a control method for a printing device and a receipt print data that can quickly print image data even when a low-speed interface is used as an interface between a host computer and a printing device. Generation method, program, printer driver, printing device, commodity sales data processing device, and POS system.

本发明的打印装置的控制方法为:一种在根据与商品销售有关的输入信息所生成的结算处理打印数据中附加图像数据,进行打印的打印装置的控制方法,其特征在于,具有:取得所述结算处理打印数据的结算处理打印数据取得的步骤;从所述结算处理打印数据中检索出表示所述图像数据的打印位置的规定的字列,并抽出该规定的字列的步骤;取得由被抽出的所述规定的字列所特定的打印行号码的行号码取得步骤;根据取得的所述行号码生成图像附加设定指令的图像附加设定指令生成步骤;将所述结算处理打印数据及所述图像附加设定指令发送到所述打印装置的发送步骤;所述打印装置根据所述图像附加设定指令的解析结果、将所述图像数据附加到所述结算处理打印数据中。The control method of the printing device according to the present invention is a control method of the printing device which adds image data to the settlement processing print data generated based on the input information related to commodity sales, and prints, and is characterized in that: A step of obtaining the settlement processing print data of the settlement processing print data; a step of retrieving a predetermined character string indicating the print position of the image data from the settlement processing print data, and extracting the predetermined character string; obtaining the specified character string by A step of obtaining a line number of a print line number specified by the extracted predetermined character string; a step of generating an image addition setting command for generating an image addition setting command based on the acquired line number; converting the settlement processing print data and a sending step of sending the image addition setting command to the printing device; the printing device adds the image data to the settlement processing print data according to the analysis result of the image addition setting command.

该打印装置的控制方法,从生成的结算处理打印数据中抽出表示图像数据的打印位置的规定的字列,根据由该规定的字列所特定的行号码生成图像附加设定指令。然后,和结算处理打印数据一起发送到打印装置。打印装置根据图像附加设定指令的解析结果,将图像数据附加到结算处理打印数据中,生成在收据上进行打印的数据。因此,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下、也可以迅速地打印图像数据。还有,在主计算机方面为了生成附加图像数据的附加设定指令,不用直接操作打印装置就可以通过主计算机进行图像数据的附加设定。再有,由于图像数据的打印位置是由图像附加设定指令所包含的参数的一个行号码所特定的,因而打印装置就可以容易地决定打印位置、进行图像数据的附加处理。特别是通过将规定的字列作为必须打印到收据上的字列(比如「收据」、「合计金额」等),根据收据的长度就可以发行在恰当的位置打印图像数据的收据。This method of controlling a printing apparatus extracts a predetermined character string indicating a printing position of image data from the generated settlement process print data, and generates an image addition setting command based on a line number specified by the predetermined character string. Then, it is sent to the printing device together with the settlement processing print data. The printing device adds the image data to the settlement process print data based on the analysis result of the image addition setting command, and generates data to be printed on the receipt. Therefore, even if a low-speed interface is used as an interface between the host computer and the printing device, image data can be printed quickly. Also, in order to generate an additional setting command for additional image data on the host computer side, the additional setting of image data can be performed through the host computer without directly operating the printing device. Furthermore, since the printing position of the image data is specified by a line number of the parameter included in the image addition setting command, the printing apparatus can easily determine the printing position and perform image data addition processing. In particular, by making predetermined character strings (such as "receipt" and "total amount" etc.) that must be printed on the receipt, it is possible to issue a receipt with image data printed at an appropriate position according to the length of the receipt.

在这种情况,理想的是,所述规定的字列为表示开始附加所述图像数据的位置的开始字列,在所述行号码取得步骤中取得由所述开始字列所特定的行号码。In this case, preferably, the predetermined character string is a start character string indicating a position where the image data starts to be added, and the row number specified by the start character string is acquired in the line number obtaining step. .

通过该结构,就可以将图像附加到从开始字列被特定的位置到规定的范围的区域内。在这种情况下,附加图像的结束位置就可以定为到结算处理数据的结束为止。因此,根据收据的长度,就可以发行在恰当的位置打印图像数据的收据。With this configuration, it is possible to add an image within a predetermined range from the position where the initial character string is specified. In this case, the end position of the added image can be set until the end of the settlement processing data. Therefore, it is possible to issue a receipt in which image data is printed at an appropriate position according to the length of the receipt.

另外,通过在开始字列的基础上、将表示结束附加图像数据的位置的结束字列作为规定的字列来使用,就可以将图像附加到从在行号码取得步骤所特定的开始行到结束行的之间。这种情况也和上述一样,根据收据的长度就可以发行在恰当的位置打印图像数据的收据,可以更详细地区分收据、将多个图像和结算处理信息重叠起来进行打印。In addition, by using the end character string indicating the position where the image data is to be added as a predetermined character string in addition to the start character string, an image can be added from the start line specified in the line number acquisition step to the end. between the lines. In this case as above, a receipt with image data printed at an appropriate position can be issued according to the length of the receipt, the receipt can be distinguished in more detail, and multiple images and settlement processing information can be superimposed and printed.

理想的是,在打印装置中存储有多个为所述图像数据的文件的图像数据文件,还具有:存储使所述开始字列及所述结束字与用于从被存储在所述打印装置中的多个图像数据文件中指定一个图像数据文件的图像指定数据构成关联的定义表的定义表存储步骤;从所述定义表取得与在所述字列抽出步骤所抽出的所述开始字列及所述结束字列相关联的图像指定数据的图像指定数据取得步骤,在所述图像附加设定指令生成步骤中,根据取得的所述行号码及所述图像指定数据,生成所述图像附加设定指令。Ideally, a plurality of image data files that are files of the image data are stored in the printing device, and further have: storing the start word sequence and the end word and used to be stored in the printing device The definition table storing step of the definition table storage step that the image specification data of specifying an image data file in a plurality of image data files in the image data file constitutes association; Obtain from described definition table and extract the described start word sequence in described word sequence extracting step In the image designation data acquisition step of the image designation data associated with the end character string, in the image addition setting command generation step, the image attachment data is generated based on the obtained line number and the image designation data. Set command.

通过该结构,在打印装置中存储有多个图像数据文件,图像附加设定指令由于包含有与从多个图像数据文件中指定一个图像数据文件的图像指定数据有关的参数,因而就可以通过变化与该图像指定数据有关的参数来附加各种图像数据。这样,就可以作成多样的收据。Through this structure, a plurality of image data files are stored in the printing device, and the image addition setting command includes parameters related to the image designation data for designating one image data file from a plurality of image data files, so it can be changed by changing Various image data are added with parameters related to the image specifying data. In this way, various receipts can be created.

在这种情况下,理想的是,具有设定开始字列和/或结束字列的字列设定步骤。In this case, it is desirable to have a character string setting step of setting a start character string and/or an end character string.

通过该结构,由于可以设定特定打印区域的开始字列和/或结束字列,因而就可以根据用户的喜好任意地设定打印区域。With this configuration, since the start character string and/or the end character string of the specific print area can be set, the print area can be set arbitrarily according to the user's preference.

在这种情况下,理想的是还具有与字列设定步骤所设定的开始字列和/或结束字列相关来设定图像指定数据的图像指定数据设定步骤。In this case, it is desirable to further include an image designation data setting step of setting image designation data in relation to the start character string and/or end character string set in the character string setting step.

通过该结构,由于可以与开始字列和/或结束字列相关来设定图像指定数据,因而就可以根据用户的喜好作成多样的收据。With this structure, since the image specifying data can be set in relation to the start character string and/or the end character string, various receipts can be created according to the user's preference.

在这种情况下,理想的是,还具有在行号码取得步骤中设定使其取得开始字列的行号码或比开始字列往下一行的行号码中的一个行号码、及取得结束字列的行号码或比结束字列往下一行的行号码中的一个行号码的行号码设定步骤。In this case, it is desirable to further have a line number of the line number of the start character string or a line number one line below the start character string, and an end character set in the line number acquisition step. The row number setting procedure of one of the row numbers of the row number of the column or the row number of the row next to the end character column.

通过该结构,由于可以设定如何取得特定打印区域的行号码(即、是根据包含对象字列的位置来特定、还是根据不包含对象字列的位置来特定),因而就可以扩大图像数据的附加处理的变化。With this structure, since it is possible to set how to obtain the line number of the specified printing area (that is, whether to specify according to the position containing the target character string or to specify according to the position not including the target character string), it is possible to expand the size of the image data. Additional processing changes.

在上述的打印装置中,在可以进行彩色打印的情况下,还可以具有设定图像数据的打印颜色的打印颜色设定步骤,图像附加设定指令可以理想地包含表示打印颜色的参数。In the printing apparatus described above, if color printing is possible, there may be a print color setting step for setting the print color of image data, and the image addition setting command may preferably include a parameter indicating the print color.

通过该结构,由于可以进行彩色打印,因而就可以提高收据的可视性。还有,图形附加设定指令由于包含有表示打印颜色的参数,因而通过变换表示打印颜色的参数就可以作成多样的收据。With this configuration, since color printing is possible, the visibility of the receipt can be improved. In addition, since the graphics addition setting command includes parameters indicating printing colors, various receipts can be created by changing the parameters indicating printing colors.

本发明的收据打印数据生成方法为:一种通过将已存储的图像数据附加到根据与商品销售有关的输入信息由主计算机(40)所生成的结算处理打印数据中,生成收据打印数据收据打印数据生成方法,其特征在于,具有:存储所述图像数据的图像数据存储步骤;从所述主计算机(40)取得所述结算处理打印数据的结算处理打印数据取得步骤;从所述主计算机(40)取得附加所述图像数据进行打印的图像附加设定指令的图像附加设定指令取得步骤;解析所述图像附加设定指令、取得表示所述图像数据的打印位置的行号码的指令解析步骤;根据所述行号码,将所述图像数据附加到所述结算处理打印数据中,生成所述收据打印数据的收据打印数据生成步骤。The receipt print data generation method of the present invention is: a method of generating receipt print data by adding stored image data to settlement processing print data generated by a host computer (40) based on input information related to merchandise sales. The data generation method is characterized by comprising: an image data storage step of storing the image data; a settlement processing print data obtaining step of obtaining the settlement processing print data from the host computer (40); 40) An image addition setting instruction acquisition step of acquiring an image addition setting instruction for printing by adding the image data; a command analysis step of analyzing the image addition setting instruction and obtaining a line number indicating a printing position of the image data A receipt print data generating step of adding the image data to the settlement processing print data to generate the receipt print data according to the line number.

本发明的程序其特征为:让计算机来执行在上面所述的打印装置的控制方法的各步骤、或上述的收据打印数据生成方法的各步骤。The program of the present invention is characterized in that it causes a computer to execute each step of the above-described printing device control method, or each step of the above-mentioned receipt print data generation method.

通过该结构,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下、也可以提供迅速打印图像数据的程序。With this configuration, even when a low-speed interface is used as an interface between the host computer and the printing device, a program for printing image data can be provided quickly.

本发明的打印驱动程序其特征为:让计算机来执行在上面所述的打印装置的控制方法的各步骤。The print driver of the present invention is characterized in that it causes the computer to execute the steps of the printing device control method described above.

通过该结构,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下、也可以提供迅速打印图像数据的打印驱动程序。还有,通过由打印驱动程序来实现上述的打印装置的控制方法,因而主计算机比如即使为单色·文本格式的应用程序,也不需要变更应用程序、通过打印装置就可以发行彩色·绘图格式的收据。With this configuration, even when a low-speed interface is used as an interface between the host computer and the printing device, it is possible to provide a print driver that quickly prints image data. Also, by realizing the control method of the above-mentioned printing device by the print driver, even if the host computer is an application program in monochrome and text format, it is not necessary to change the application program, and the printing device can issue a color drawing format. receipt.

另外,本发明的打印装置,是一种将已存储的图像数据附加到根据与商品销售有关的输入信息由主计算机所生成的结算处理打印数据中,生成收据打印数据打印装置,其特征在于,具有:存储所述图像数据的图像数据存储装置;从所述主计算机取得所述结算处理打印数据的结算处理打印数据取得装置;从所述主计算机取得用于指令附加所述图像数据进行打印的图像附加设定指令的图像附加设定指令取得装置;解析所述图像附加设定指令、取得表示所述图像数据的打印位置的行号码的指令解析装置;根据所述行号码,将所述图像数据附加到所述结算处理打印数据中、生成所述收据打印数据的收据打印数据生成装置。In addition, the printing apparatus of the present invention is a printing apparatus for generating receipt print data by adding stored image data to settlement processing print data generated by a host computer based on input information related to merchandise sales, and is characterized in that: It has: image data storage means for storing the image data; settlement processing print data obtaining means for obtaining the settlement processing print data from the host computer; An image addition setting instruction acquisition device for an image addition setting instruction; an instruction analysis device for analyzing the image addition setting instruction and obtaining a line number indicating a printing position of the image data; according to the line number, the image A receipt print data generating means that adds data to the settlement process print data and generates the receipt print data.

这些收据打印数据生成方法及打印装置,将图像数据存储到打印装置内,从主计算机取得结算处理打印数据和附加图像数据的图像附加设定指令。然后,通过解析图像附加设定指令,取得表示打印位置的行号码,根据该行号码,将图像数据附加到结算处理打印数据中。因此,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下,也可以迅速打印图像数据。还有,由于在主计算机方面生成附加图像数据的附加设定指令,因而不用直接操作打印装置就可以通过主计算机来进行图像数据的附加设定。再有,图像数据的打印位置由于由为图像附加设定指令所包含的参数中的一个参数的行号码所特定,因而打印装置就可以容易地决定打印区域来进行图像数据的附加处理。These receipt print data generating methods and printing devices store image data in the printing device, and acquire settlement processing print data and image attachment setting commands for additional image data from a host computer. Then, by analyzing the image addition setting command, the line number indicating the printing position is obtained, and the image data is added to the settlement processing print data based on the line number. Therefore, even if a low-speed interface is used as an interface between the host computer and the printing apparatus, image data can be printed quickly. Also, since the additional setting command for additional image data is generated on the side of the host computer, the additional setting of image data can be performed through the host computer without directly operating the printing device. Furthermore, since the printing position of the image data is specified by the line number of one of the parameters included in the image addition setting command, the printing device can easily determine the printing area to perform image data addition processing.

另外,在这种情况下,还具有进行主色和该主色以外的至少一个颜色的副色的彩色打印的彩色打印装置,彩色打印装置可以理想地以主色来打印结算处理打印数据、以至少一个颜色的副色来打印图像数据。In addition, in this case, there is also a color printing device that performs color printing of the primary color and at least one secondary color other than the primary color. The color printing device can ideally print the settlement processing print data in the primary color, so as to At least one secondary color of one color is used to print the image data.

通过这些结构,由于以主色来打印结算处理打印数据、以副色来打印图像数据,就不会损坏结算处理打印数据的清晰度,因而就可以附加图像数据。还有,由于可以进行彩色打印,因而就可以提高收据的可视性。With these configurations, since the settlement process print data is printed in the main color and the image data is printed in the secondary color, image data can be added without impairing the resolution of the settlement process print data. Also, since color printing is possible, the visibility of the receipt can be improved.

另外,本发明的商品销售数据处理装置通过将结算处理打印数据和图像附加设定指令发送到上面所述的打印装置,在具有控制打印装置的主计算机的商品销售数据处理装置中的主计算机,其特征为在具有通过将所述结算处理打印数据和所述图像附加设定指令发送到所述打印装置来控制所述打印装置的主计算机的商品销售数据处理装置中,所述主计算机具有:生成所述结算处理打印数据的结算处理打印数据生成装置;从所述结算处理打印数据中检索表示所述图像数据的打印位置的规定的字列并抽出该规定的字列的字列抽出装置;取得由被抽出的所述规定的字列所特定的行号码的行号码取得装置;根据取得的所述行号码、生成所述图像附加设定指令的图像附加设定指令生成装置;将结算处理打印数据及所述图像附加设定指令发送到所述打印装置的发送装置。In addition, the merchandise sales data processing apparatus of the present invention transmits the settlement processing print data and the image addition setting command to the above-mentioned printing apparatus, in the merchandise sales data processing apparatus having a host computer controlling the printing apparatus, the host computer, It is characterized in that in the product sales data processing apparatus having a host computer that controls the printing apparatus by sending the settlement processing print data and the image addition setting command to the printing apparatus, the host computer has: settlement processing print data generating means for generating the settlement processing print data; character string extracting means for retrieving a predetermined character string indicating a printing position of the image data from the settlement processing print data; and extracting the predetermined character string; A line number obtaining means for obtaining a line number specified by the extracted predetermined character string; an image addition setting instruction generating means for generating the image addition setting instruction based on the obtained line number; The print data and the image addition setting command are sent to a sending device of the printing device.

该商品销售数据处理装置从生成的结算处理打印数据中抽出表示图像数据的打印位置的规定的字列,根据该规定的字列所特定的行号码生成图像附加设定指令,然后和结算处理打印数据一起发送到打印装置。打印装置根据图像附加设定指令的解析结果,将图像数据附加到结算处理打印数据中,生成在收据上进行打印的数据。因此,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下,也可以迅速地打印图像数据。还有,由于在主计算机方面生成附加图像数据的附加设定指令,因而不用直接操作打印装置就可以通过主计算机来进行图像数据的附加设定。再有,图像数据的打印位置由于由为图像附加设定指令所包含的参数中的一个参数的行号码所特定,因而打印装置就可以容易地决定打印区域,进行图像数据的附加处理。The product sales data processing device extracts a predetermined character string indicating the print position of image data from the generated print data for settlement processing, generates an image addition setting command based on the line number specified by the predetermined character string, and prints it with the settlement processing. The data is sent to the printing device together. The printing device adds the image data to the settlement process print data based on the analysis result of the image addition setting command, and generates data to be printed on the receipt. Therefore, even if a low-speed interface is used as an interface between the host computer and the printing apparatus, image data can be printed quickly. Also, since the additional setting command for additional image data is generated on the side of the host computer, the additional setting of image data can be performed through the host computer without directly operating the printing device. Furthermore, since the printing position of the image data is specified by the line number of one of the parameters included in the image addition setting command, the printing device can easily determine the printing area and perform image data addition processing.

本发明的POS系统其特征为:是由上面所述的商品销售数据处理装置、和通过网络与商品销售数据处理装置相连接并管理该商品销售数据处理装置的POS服务器所构成。The POS system of the present invention is characterized in that it is composed of the above-mentioned product sales data processing device and a POS server connected to the product sales data processing device through a network to manage the product sales data processing device.

通过该结构,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下、也可以提供迅速打印图像数据的POS系统。With this configuration, even when a low-speed interface is used as an interface between the host computer and the printing device, it is possible to provide a POS system that quickly prints image data.

附图说明Description of drawings

图1为表示本发明的POS系统的一例的结构图。FIG. 1 is a configuration diagram showing an example of the POS system of the present invention.

图2A、2B为构成本发明的POS系统的POS终端的外观立体图。2A and 2B are external perspective views of POS terminals constituting the POS system of the present invention.

图3为本发明的PC的功能方框图。Fig. 3 is a functional block diagram of the PC of the present invention.

图4为本发明的打印装置的功能方框图。Fig. 4 is a functional block diagram of the printing device of the present invention.

图5为本发明的打印装置的控制方框图。Fig. 5 is a control block diagram of the printing device of the present invention.

图6为表示设定本发明的图像数据的设定画面的一例的图。FIG. 6 is a diagram showing an example of a setting screen for setting image data of the present invention.

图7为表示本发明的结算处理打印数据/图像附加设定指令发送处理的一例的流程图。FIG. 7 is a flowchart showing an example of settlement processing print data/image addition setting command sending processing of the present invention.

图8为表示本发明的收据打印数据生成处理的一例的流程图。FIG. 8 is a flowchart showing an example of receipt print data generation processing of the present invention.

图9为表示从本发明的定义表及结算处理打印数据中得到的数据取得结果的图。Fig. 9 is a diagram showing data acquisition results obtained from the definition table and settlement processing print data of the present invention.

图10A、10B为表示从本发明的定义表及结算处理打印数据中得到的数据取得结果的图。10A and 10B are diagrams showing data acquisition results obtained from the definition table and settlement processing print data of the present invention.

图11A、11B为表示本发明的图像附加设定指令编码的一例的图。11A and 11B are diagrams showing an example of an image addition setting command code according to the present invention.

图12A、12B为表示本发明的图像附加设定指令编码的一例的图。12A and 12B are diagrams showing an example of an image addition setting command code according to the present invention.

图13为表示图像数据的一例的图。FIG. 13 is a diagram showing an example of image data.

图14为表示本发明所作成的收据的一例(打印例1)的图。Fig. 14 is a diagram showing an example (print example 1) of a receipt created by the present invention.

图15为表示本发明所作成的收据的一例(打印例2,)的图。Fig. 15 is a diagram showing an example (print example 2) of a receipt created by the present invention.

图16为表示本发明所作成的收据的一例(打印例3)的图。Fig. 16 is a diagram showing an example (print example 3) of a receipt created by the present invention.

图17为表示本发明的以往例中的收据作成例的图。Fig. 17 is a diagram showing an example of receipt creation in a conventional example of the present invention.

具体实施方式Detailed ways

下面,对本发明第一实施例的打印装置的控制方法、收据打印数据生成方法、程序、打印驱动程序、打印装置、商品销售数据处理装置及POS系统,一边参照附图一边进行详细的说明。本发明通过主计算机从结算处理打印数据中抽出表示图像数据的打印位置的规定的字列,根据该规定的字列所特定的行号码,生成将图像数据附加到结算处理打印数据中的图像附加设定指令。然后,在打印装置中,根据从该图像附加设定指令取得的行号码,将图像数据附加到结算处理打印数据中,生成在收据上进行打印的收据打印数据。Next, the control method of the printer, the receipt print data generation method, the program, the printer driver, the printer, the product sales data processing device, and the POS system according to the first embodiment of the present invention will be described in detail with reference to the drawings. In the present invention, the host computer extracts a predetermined character string indicating the printing position of the image data from the settlement processing print data, and generates an image attachment for attaching the image data to the settlement processing print data based on the line number specified by the predetermined character string. Set command. Then, in the printing device, image data is added to the settlement process print data based on the line number acquired from the image addition setting command to generate receipt print data to be printed on the receipt.

即、通过该结构,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下、通过打印装置也可以迅速地打印图像数据。还有,通过由编入主计算机的打印机驱动程序生成图像附加设定指令,主计算机即使是使用单色·文本格式的应用程序,也不需要变更应用程序便可通过打印装置发行彩色·绘图格式的收据。还有,在打印装置中,通过从图像附加设定指令取得行号码,就可以容易地特定打印位置,进而达到可以作成美观的收据等的作用·效果。That is, with this configuration, even when a low-speed interface is used as an interface between the host computer and the printing device, image data can be quickly printed by the printing device. Also, by generating image addition setting commands from the printer driver program incorporated in the host computer, even if the host computer uses an application program in monochrome and text format, it is possible to issue color and graphic formats through the printer without changing the application program. receipt. In addition, in the printing device, by acquiring the line number from the image addition setting command, the printing position can be easily specified, and further functions and effects such as the ability to create a beautiful receipt can be achieved.

下面,将在超市及便利店等店铺所使用的、根据由操作人员所输入的与商品销售有关的输入信息来发行收据的POS系统作为例子进行说明。Next, a POS system used in stores such as supermarkets and convenience stores and which issues receipts based on input information about product sales input by an operator will be described as an example.

如图1所示,本发明的POS系统10主要是由通过操作人员(用户)读出赋予商品的条形码来取得输入信息的多个商品销售数据处理装置的POS终端20(图中只表示了一个)和通过网络与该POS终端20相互连接并对POS终端20所输入到的输入信息进行管理的POS服务器30构成。As shown in Figure 1, the POS system 10 of the present invention is mainly read the POS terminals 20 of a plurality of commodity sales data processing devices (only one is shown in the figure) to obtain the input information by the operator (user) reading the bar code given to the commodity. ) and a POS server 30 that is connected to the POS terminal 20 through a network and manages input information input to the POS terminal 20.

POS服务器30除了具有控制装置(CPU31)以外,还具有ROM32及RAM33等存储器,根据存储于ROM32内的控制程序,对RAM33内的缓冲器39等所存储的信息进行处理。特别是在RAM33内具有由商品编码存储块35、商品名称存储块36、金额存储块37、库存存储块38等形成的商品管理部分,CPU31根据POS终端20所发送来的输入信息,从商品管理部分抽出与商品编码、商品名称、金额有关的信息,生成用于向收据61的打印及POS终端20的显示器42的显示的商品数据。另外,所谓「商品数据」是在PC40所生成的成为结算处理打印数据源的数据,包括打印在收据61上的商品名称及其金额等的商品信息。The POS server 30 has memory such as ROM32 and RAM33 in addition to the control unit (CPU31), and processes the information stored in the buffer 39 etc. in RAM33 according to the control program stored in ROM32. Especially in RAM33, there is a product management part formed by product code storage block 35, product name storage block 36, amount storage block 37, inventory storage block 38, etc. Information on the product code, product name, and amount is partially extracted to generate product data for printing on the receipt 61 and displaying on the display 42 of the POS terminal 20 . The "product data" is data generated on the PC 40 and used as a source of print data for settlement processing, and includes product information such as the name of the product and the amount printed on the receipt 61 .

POS终端20根据输入信息,参照POS服务器30的商品数据,生成打印到收据61上的结算处理打印数据(除商品信息之外,也指打印店铺名称及电话号码、日期、对顾客的信息等的数据及指令;参照图17),POS终端20具有:具有实施将输入数据登录到POS服务器30等的现金登录处理的POS应用程序执行部41a的个人计算机(PC)40、根据打印数据在收据61上进行打印的打印装置50(收据打印机),相互通过连接器46、53相连接。PC40通过读出键盘43的输入或通过条形码读取器44输入的条形码,取得与商品有关的信息(商品信息)及与顾客60有关的信息(顾客信息)等的输入信息。另外,通过卡读取器45读出顾客60的信用卡及会员卡,取得与信贷结算有关的信息及与会员号码等会员有关的信息。POS终端20还具有显示将POS服务器30所发送来的商品数据还原生成的商品信息的显示器42,对顾客60提示购入商品的金额等。The POS terminal 20 refers to the commodity data of the POS server 30 according to the input information, and generates the settlement processing print data printed on the receipt 61 (in addition to the commodity information, it also refers to the printing of the store name and telephone number, date, information to the customer, etc. data and instructions; referring to FIG. 17 ), the POS terminal 20 has: a personal computer (PC) 40 having a POS application execution unit 41a that implements a cash registration process that logs input data into the POS server 30, etc.; The printing device 50 (receipt printer) for printing on the computer is connected to each other through connectors 46 and 53 . The PC 40 acquires input information such as information on the product (product information) and information on the customer 60 (customer information) by reading input from the keyboard 43 or a barcode input from the barcode reader 44 . In addition, the credit card and membership card of the customer 60 are read by the card reader 45, and information related to credit settlement and member-related information such as a membership number are obtained. The POS terminal 20 also has a display 42 that displays product information generated by restoring the product data sent from the POS server 30 , and presents the customer 60 with the amount of the purchased product and the like.

另外,PC40的控制是通过在WINDOWS(注册商标)等OS上运行的打印驱动程序OLE for Retail POS(以下称OPOS)来实施的。所谓OPOS,是对在OS上运行的POS应用程序41a提供与打印装置50及条形码读取器44等的周边设备没有机种依赖性的接口,是由对应设备的每个类别的控制目标(CO)41b和对应设备的每个机种的服务目标(SO)41c所构成。In addition, the control of the PC 40 is implemented by a print driver OLE for Retail POS (hereinafter referred to as OPOS) running on an OS such as WINDOWS (registered trademark). The so-called OPOS is to provide the POS application program 41a running on the OS with an interface that does not depend on the type of peripheral equipment such as the printer 50 and the barcode reader 44, and is controlled by each type of corresponding equipment (CO ) 41b and a service object (SO) 41c for each model of the corresponding device.

POS应用程序41a根据POS服务器30发送来的商品数据及输入信息,生成打印到收据61上的结算处理打印数据,该结算处理打印数据通过OS41d被提供给打印装置用的CO41b,并由CO41b提供给对应打印装置50的机种的SO41c。SO41c加工该打印数据,根据打印装置50的指令方式生成打印指令,并发送到打印装置50。另外,上述的OPOS将SO41c和CO41b以组合的形式作为打印驱动程序109提供给用户。The POS application program 41a generates settlement processing print data printed on the receipt 61 based on the commodity data and input information sent from the POS server 30, and the settlement processing print data is provided to the CO 41b for the printing device through the OS 41d, and is provided to the CO 41b by the CO 41b. Corresponds to SO41c of the printer 50 model. SO41c processes the print data, generates a print command according to the command method of the printing device 50 , and sends it to the printing device 50 . In addition, the OPOS described above provides the user with a combination of SO41c and CO41b as the print driver 109 .

另外,在SO41c中,在进行将图像数据附加到结算处理打印数据中的图像附加设定指令的生成的同时,还安装有进行图像数据的各种设定的图像数据设定程序108。具体的说明将在后面进行阐述,图像数据设定程序108通过将规定的设定画面300(参照图6)在显示器42上进行显示,给用户提供图像数据设定的界面。这样,由于通过打印驱动程序109提供图像数据设定程序108(应用程序执行程序),因而不用变更PC40的POS应用程序41a就可以由PC40来进行图像数据的设定。In addition, in SO41c, an image data setting program 108 for performing various settings of image data is installed at the same time as the generation of an image addition setting command for adding image data to the settlement process print data. The specific description will be described later, but the image data setting program 108 provides the user with an image data setting interface by displaying a predetermined setting screen 300 (see FIG. 6 ) on the display 42 . In this way, since the image data setting program 108 (application execution program) is provided by the print driver 109, the image data setting can be performed by the PC 40 without changing the POS application 41a of the PC 40.

另一方面,打印装置50为以喷墨方式来进行打印的喷墨打印机,具有具有第一打印头55a至第六打印头55f的六个喷墨头的打印部120。这些喷墨头55其结构为分别通过喷出M(红色)、C(蓝色)、Y(黄色)、LM(浅红色)、LC(浅蓝色)、K(黑色)的墨水就可以进行多彩色的打印。另外,打印头55的结构并不局限于此,也可以为增加打印头数可进行更加多色的打印的结构,也可以为减少打印头数只进行一色或两色的打印的结构。On the other hand, the printing device 50 is an inkjet printer that performs printing by an inkjet method, and has a printing unit 120 having six inkjet heads from a first print head 55a to a sixth print head 55f. The structure of these inkjet heads 55 can be carried out by ejecting inks of M (red), C (blue), Y (yellow), LM (light red), LC (light blue), and K (black) respectively. Multi-color printing. In addition, the structure of the print head 55 is not limited to this, and it may be a structure that increases the number of print heads to perform more multi-color printing, and may also be a structure that reduces the number of print heads to perform only one-color or two-color printing.

另外,打印装置50可以通过图中未表示的触点开关或软件触点开关来设定只用第六打印头55f进行打印的单色打印方式和用全部的打印头进行打印的彩色打印方式中的其中一种。然后,PC40取得与该方式设定有关的信息,就可以判断在生成的打印数据内是否包含有彩色信息。这样,在被设定为彩色打印方式的情况、且打印数据内包含有彩色信息的情况下,据此就可以在收据61上进行两色或多色的打印。另外,在以下的说明中,打印装置50被设定为彩色打印方式,结算处理打印信息以主色的「K(黑色)」来进行打印,图像数据以主色「K(黑色)」以外的被指定的副色来进行打印。In addition, the printing device 50 can set the monochrome printing mode of printing with only the sixth print head 55f and the color printing mode of printing with all print heads through a contact switch or software contact switch not shown in the figure. one of the Then, the PC 40 acquires information related to the mode setting, and can judge whether or not color information is included in the generated print data. In this way, when the color printing method is set and the print data includes color information, two-color or multi-color printing can be performed on the receipt 61 accordingly. In addition, in the following description, the printing device 50 is set to the color printing method, the settlement processing print information is printed in the main color "K (black)", and the image data is printed in a color other than the main color "K (black)". The specified secondary color is used for printing.

下面,对于POS终端20的装置结构,参照图2A、2B来进行说明。图2A为从操作人员的操作方向看POS终端20的正面立体图,图2B为从顾客方面看POS终端20的背面立体图。如两图所示那样,POS终端20由形成箱形主体箱48形状的主体部的PC40和配置在主体箱48的后部左侧的打印装置50构成。还有,由于打印装置50与主体箱48用电缆相连接,因而就不限定于此配置,在电缆长度允许的范围内可以配置在任意的位置。Next, the device configuration of the POS terminal 20 will be described with reference to FIGS. 2A and 2B. FIG. 2A is a front perspective view of the POS terminal 20 viewed from the operator's operating direction, and FIG. 2B is a rear perspective view of the POS terminal 20 viewed from the customer's side. As shown in both figures, the POS terminal 20 is composed of a PC 40 having a main body in the shape of a box-shaped main body case 48 and a printer 50 arranged on the rear left side of the main body case 48 . In addition, since the printing device 50 is connected to the main body box 48 with a cable, it is not limited to this arrangement, and it can be arranged at any position within the range allowed by the length of the cable.

PC40在主体箱48的前部上面配置有操作人员输入商品信息及顾客信息等信息的键盘43,在其后部右侧配置有确认操作人员输入信息的操作人员用显示器42a,在主体箱48内安装有现金抽屉。另外,在主体箱48的右侧面具有用于读出被粘贴或被打印在商品上的条形码的条形码读取器44、在主体箱48的左侧面具有与打印装置50相连接用的接口47,在键盘43的右侧形成有读出顾客60所提示的信用卡用的卡读取器用插槽45。还有,在主体箱48的背面一侧配置有顾客60确认商品信息等用的顾客用显示器42b。另外,图像数据设定用的设定画面(参照图6)被显示在上述的操作人员方面的显示器42a上,操作人员就可以一边对其进行确认一边进行设定操作。PC40 is arranged with the keyboard 43 that the operator inputs information such as product information and customer information on the front portion of main body box 48, and the operator's display 42a that confirms operator's input information is arranged on its rear right side, and in the main body box 48 A cash drawer is installed. In addition, a barcode reader 44 for reading a barcode pasted or printed on a product is provided on the right side of the main body case 48, and an interface 47 for connecting to the printer 50 is provided on the left side of the main body case 48. A card reader slot 45 for reading the credit card presented by the customer 60 is formed on the right side of the keyboard 43 . Further, on the back side of the main body case 48, a customer display 42b for the customer 60 to check product information and the like is arranged. In addition, a setting screen (see FIG. 6 ) for image data setting is displayed on the above-mentioned display 42a on the operator's side, and the operator can perform setting operations while confirming it.

另一方面,打印装置50在其前面一侧配置有动作显示灯65和接口51,接口51和PC40所具备的打印装置方面接口47是通过电缆63及连接器46、53相连接的。另外,在打印装置50的上面形成有送出完成打印的收据61的收据送出口64。On the other hand, the printer 50 is provided with an operation display lamp 65 and an interface 51 on its front side. In addition, a receipt output port 64 for outputting a printed receipt 61 is formed on the upper surface of the printing device 50 .

接下来,参照图3的功能方框图对PC40的控制结构进行说明。PC40具有:设定作为用于生成图像附加设定指令的参照表的定义表(参照图9等)的定义表设定部201、生成结算处理打印数据的结算处理打印数据生成部202、生成图像附加设定指令的图像附加设定指令生成部203、定义表存储部221、结算处理打印数据存储部222及图像附加设定指令存储部223,具有存储各种数据的数据存储部204、和结算处理打印数据发送部225及图像附加设定指令发送部226和具有通过接口47进行结算处理打印数据及图像附加设定指令的发送的数据发送部205。另外,定义表设定部201、图像附加设定指令生成部203主要是通过打印驱动程序109来实现的。Next, the control structure of PC40 is demonstrated with reference to the functional block diagram of FIG. The PC 40 has: a definition table setting unit 201 for setting a definition table (see FIG. 9, etc.) as a reference table for creating an image addition setting command; The image addition setting command generation unit 203 of the addition setting command, the definition table storage unit 221, the settlement processing print data storage unit 222, and the image addition setting command storage unit 223 have a data storage unit 204 for storing various data, and a settlement The processing print data sending unit 225 and the image addition setting command sending unit 226 have a data sending unit 205 that transmits the settlement processing print data and the image addition setting command through the interface 47 . In addition, the definition table setting unit 201 and the image addition setting command generating unit 203 are mainly implemented by the printer driver 109 .

定义表设定部201是通过打印驱动程序109所提供的图像数据设定程序108来执行,具有设定表示图像数据的打印位置的规定的字列「开始字列及结束字列(参照图14等)」的字列设定部211、设定指定成为附加对象的图像数据的图像指定数据(文件名称等)的图像指定数据设定部212、设定特定图像数据打印位置的行号码的取得参数的行号码设定部213(关于详细情况在后面叙述)、设定图像数据的打印颜色的彩色信息设定部214。该定义表设定部201的设定事项,为通过用户将必要事项输入设定画面300(参照图6)来设定的,被输入的信息被存储到RAM等存储器内,根据需要可以进行改写。The definition table setting section 201 is executed by the image data setting program 108 provided by the print driver 109, and has a function of setting predetermined character strings "start character string and end character string" (refer to FIG. 14 etc.)", the image designation data setting part 212 for setting the image designation data (file name, etc.) designating the image data to be added, and the acquisition of the line number for setting the printing position of the specific image data A line number setting unit 213 for parameters (details will be described later), and a color information setting unit 214 for setting the print color of image data. The setting items of the definition table setting unit 201 are set by the user by inputting necessary items into the setting screen 300 (see FIG. 6 ), and the input information is stored in a memory such as RAM, and can be rewritten as needed. .

图像附加设定指令生成部203具有:检索结算处理打印数据、抽出规定的字列的字列抽出部216、取得规定的字列所特定的行号码的行号码取得部217、从定义表取得与规定的字列相关的图像指定数据的图像指定数据取得部218,如图11及图12所示,生成图像附加设定指令「ESCI n1,n2,n3...」。关于图像附加设定指令的结构,将在后面进行叙述。The image addition setting command generating unit 203 includes: a character string extracting unit 216 for searching settlement processing print data and extracting a predetermined character string; a line number obtaining unit 217 for obtaining a row number specified by the predetermined character string; The image designation data acquisition unit 218 of image designation data related to a predetermined character string generates image addition setting commands "ESCI n1, n2, n3..." as shown in Fig. 11 and Fig. 12 . The structure of the image addition setting command will be described later.

然后,PC40通过上述的结构,根据在定义表设定部201所设定的定义表,从结算处理打印数据生成部202所生成的结算处理打印数据中抽出规定的字列,根据该规定的字列所特定的行号码及与规定的字列相关的图像指定数据,通过图像附加设定指令生成部203生成图像附加设定指令。然后,通过数据发送部205将生成的结算处理打印数据及图像附加设定指令发送到打印装置50。Then, the PC 40 extracts a predetermined character string from the settlement process print data generated by the settlement process print data generation unit 202 based on the definition table set in the definition table setting unit 201 with the above-mentioned configuration, and based on the predetermined character string The image addition setting command is generated by the image addition setting command generation unit 203 using the row number specified by the column and the image designation data related to the predetermined character string. Then, the generated settlement processing print data and image addition setting command are transmitted to the printing device 50 through the data transmission unit 205 .

接下来,关于打印装置50的控制结构,参照图4的功能方框图来进行说明。打印装置50具有:通过接口51从PC40取得结算处理打印数据及图像附加设定指令的数据取得部231、和将取得的数据及多个图像数据文件(参照图13)存储起来的数据存储部232、解析从PC40发送来的图像附加设定指令的指令解析部233、生成打印到收据61上的收据打印数据的收据打印数据生成部234、根据收据打印数据进行打印的打印部235。Next, the control structure of the printing device 50 will be described with reference to the functional block diagram of FIG. 4 . The printer 50 has a data acquisition unit 231 for acquiring settlement processing print data and image addition setting commands from the PC 40 through the interface 51, and a data storage unit 232 for storing the acquired data and a plurality of image data files (see FIG. 13 ). , a command analysis unit 233 that analyzes an image addition setting command sent from the PC 40 , a receipt print data generation unit 234 that generates receipt print data to be printed on the receipt 61 , and a print unit 235 that prints based on the receipt print data.

数据取得部231具有结算处理打印数据取得部241和图像附加设定指令取得部242,将数据分别发送到结算处理打印数据存储部245和图像附加设定指令存储部246,但实际上,结算处理打印数据和图像附加设定指令被同时发送,从结算处理打印数据中抽出图像附加设定指令,进行解析处理。在这里,为了便于说明,将结算处理打印数据和图像附加设定指令分别作为取得和存储来进行图示。这样,结算处理打印数据由打印除了图像附加设定指令以外的商品数据的数据·指令构成。The data acquisition unit 231 has a settlement processing print data acquisition unit 241 and an image addition setting command acquisition unit 242, and sends data to the settlement processing print data storage unit 245 and the image addition setting command storage unit 246, respectively. The print data and the image addition setting command are transmitted at the same time, and the image addition setting command is extracted from the settlement processing print data and analyzed. Here, for convenience of description, the settlement processing print data and the image addition setting command are illustrated as acquiring and storing, respectively. In this way, the settlement process print data is composed of data and commands for printing product data other than the image addition setting command.

数据存储部232具有图像数据存储部244、结算处理打印数据存储部245、图像附加设定指令存储部246,在图像数据存储部244内事先存储有多个图像数据文件。另外,这多个图像数据文件的构成是,将通过PC40、由扫描仪等所读入数据、及由绘图软件所作成的数据登录到图像数据设定程序108所执行的设定画面300中,(参照图6「图像数据登录」),并将其作为发送到打印装置50的数据存储到图像数据存储部244内,根据用户的需要可以恰当地进行改写。The data storage unit 232 has an image data storage unit 244 , a settlement processing print data storage unit 245 , and an image addition setting command storage unit 246 , and a plurality of image data files are stored in the image data storage unit 244 in advance. In addition, the plurality of image data files are configured by registering data read by the PC 40 , data read by a scanner, and data created by drawing software in the setting screen 300 executed by the image data setting program 108 , (Refer to FIG. 6 "image data registration"), and store it in the image data storage unit 244 as data to be sent to the printing device 50, and can be appropriately rewritten according to the needs of the user.

指令解析部233具有:通过解析PC40所发送来的图像附加设定指令、取得行号码的行号码取得部248、和同样从图像附加设定指令取得图像指定数据(文件名称及图像指定No等)的图像指定数据取得部249、同样从图像附加设定指令取得表示图像数据的打印颜色的彩色信息的彩色信息取得部250,取得的信息被存入到后面所述的RAM144内。The command analysis unit 233 has a line number acquisition unit 248 that acquires a line number by analyzing the image addition setting command sent from the PC 40, and similarly acquires image specification data (file name, image specification No., etc.) from the image addition setting command. The image specifying data acquisition unit 249 of the image data acquisition unit 249 and the color information acquisition unit 250 similarly acquire color information indicating the print color of the image data from the image addition setting command, and the acquired information is stored in the RAM 144 described later.

打印装置50根据上述的结构,通过数据取得部231取得结算处理打印数据及图像附加设定指令,通过指令解析部233解析图像附加设定指令,得到行号码、图像指定数据及彩色信息。还有,根据这些信息,通过收据打印数据生成部234将图像数据附加到结算处理打印数据中、生成收据打印数据。According to the above configuration, the printing device 50 acquires the settlement processing print data and the image addition setting command through the data acquisition unit 231 , and analyzes the image addition setting command through the command analysis unit 233 to obtain the line number, image designation data and color information. Furthermore, based on these pieces of information, the receipt print data generation unit 234 adds image data to the settlement process print data to generate receipt print data.

图5表示了打印装置50的控制方框图,如该图所示那样,打印装置50具有接口51,具有将来自PC40的图像附加设定指令及结算处理打印数据进行输入的数据输入部110、和六个喷墨头55,具有通过分别喷出不同颜色的墨水来进行彩色打印的打印部120和喷头驱动器131,由驱动喷墨头55的驱动部130和控制打印装置50整体的控制部140所构成。FIG. 5 shows a control block diagram of the printing device 50. As shown in this figure, the printing device 50 has an interface 51, a data input unit 110 for inputting image addition setting commands and settlement processing print data from the PC 40, and Each inkjet head 55 has a printing unit 120 and a head driver 131 for performing color printing by ejecting inks of different colors respectively, and is composed of a driving unit 130 for driving the inkjet head 55 and a control unit 140 for controlling the printing device 50 as a whole. .

控制部140具有CPU141、ROM142、CG-ROM143及RAM144,并相互通过内部总线145相连接。ROM142除了具有存储在CPU141所处理的控制程序的程序存储块142a以外,还具有存储包含各种数据的控制数据的控制数据存储块142b。另外,CG-ROM143存储打印文字的字体数据,在被给予了特定文字的编码时,便输出对应的字体数据。The control unit 140 has a CPU 141 , a ROM 142 , a CG-ROM 143 , and a RAM 144 , and is connected to each other via an internal bus 145 . The ROM 142 has a control data storage block 142b that stores control data including various data, in addition to a program storage block 142a that stores a control program processed by the CPU 141 . In addition, CG-ROM 143 stores font data of printed characters, and when a specific character code is given, it outputs the corresponding font data.

RAM144除了具有作为标志等被使用的各种作业范围存储块151以外,还具有:存储多个图像数据文件的图像数据存储块152、存储PC40所发送来的结算处理打印数据的结算处理打印数据存储块153、存储与图像附加设定指令的解析结果有关的信息的图像附加设定指令存储块154、存储通过将图像数据附加到结算处理打印数据中而生成的收据打印数据的收据打印数据存储块155,并作为控制处理的作业区域来被使用。另外,RAM144即使在电源被切断时,常时将事先保存起来的存储的数据作为后备。The RAM 144 includes various job range storage blocks 151 used as flags, etc., an image data storage block 152 for storing a plurality of image data files, and a settlement processing print data storage block for storing settlement processing print data transmitted from the PC 40 . Block 153, Image Addition Setting Command Storage Block 154, which stores information related to the analysis result of the Image Addition Setting Command 155, and is used as a working area for control processing. In addition, the RAM 144 always backs up stored data stored in advance even when the power is turned off.

图像附加设定指令存储块154具有:图像附加设定指令的解析的结果所得到的行号码、将图像指定数据及彩色信息分别进行存储的行号码存储块157、图像指定数据存储块158及彩色信息存储块159,存储所述指令解析部233(参照图4)的各部所取得的信息。The image addition setting command storage block 154 has a line number obtained as a result of analysis of the image addition setting command, a line number storage block 157 for separately storing image designation data and color information, an image designation data storage block 158 and color information. The information storage block 159 stores information acquired by each unit of the command analysis unit 233 (see FIG. 4 ).

另外,内部总线145也与数据输入部110及驱动部130相连接,在从接口51取入输入数据(图像附加设定指令、结算处理打印数据等)(参照图4)的同时,将CPU151等所输出的输出数据(收据打印数据等)及控制信号输出到驱动部130(喷头驱动器131)。In addition, the internal bus 145 is also connected to the data input unit 110 and the drive unit 130, while taking in input data (image addition setting commands, settlement processing print data, etc.) The output data (receipt print data, etc.) and control signals output are output to the drive unit 130 (head driver 131 ).

然后,CPU141通过上述的结构,根据ROM142内的控制程序,从打印装置50内的各部输入各种信号·数据等,在处理RAM144内的各种数据等的同时,通过向各部输出各种信号·数据等来进行图像附加设定指令的解析,根据其解析结果,通过将打印数据附加到结算处理打印数据中、生成收据打印数据,根据该数据进行打印等,对打印装置50进行整体控制。Then, the CPU 141 inputs various signals, data, etc. from each part in the printer 50 according to the control program in the ROM 142 through the above-mentioned structure, and outputs various signals, data, etc. to each part while processing various data in the RAM 144. Based on the analysis result, the print device 50 is controlled overall by adding the print data to the settlement process print data, generating receipt print data, and printing based on the data.

另外,接口51及PC40所具有的接口47,可以采用RS-232C规格等的串行数据转送、XXX规格等的并行数据转送、以太网(注册商标)的10Base-T等的网络连接、或对应USB等的数据转送规格的转送。In addition, the interface 51 and the interface 47 of the PC 40 can adopt serial data transfer such as RS-232C standard, parallel data transfer such as XXX standard, network connection such as 10Base-T of Ethernet (registered trademark), or corresponding Transfer of data transfer standards such as USB.

下面,对于图像数据的设定处理,参照图6来进行说明。图像数据的设定,在PC40中是通过执行图像数据设定程序108(参照图1)来实施的。具体地来讲,当图像数据设定程序108被启动时,如图6所述的设定画面就被显示到操作人员方面的显示器42a上,操作人员通过输入各种信息来进行设定。Next, image data setting processing will be described with reference to FIG. 6 . The setting of the image data is carried out by executing the image data setting program 108 (see FIG. 1 ) in the PC 40 . Specifically, when the image data setting program 108 is activated, a setting screen as shown in FIG. 6 is displayed on the operator's display 42a, and the operator makes settings by inputting various information.

如该图所示那样,在设定画面300中,设定图像数据的各种信息可以分成多个画面来进行设定,操作人员(用户)打开所希望的设定画面来进行设定。另外,当打开最初的列表「基本」的设定画面时,就可以进行收据61的宽幅尺寸、图像数据的打印浓度及打印品质等的设定,由于和通常的打印设定应用程序几乎同样的内容,因而在这里就省略说明。另外,当打开第3个列表「图像数据登录」的设定画面时,就可以登录图13所示的那样的图像数据,由于对此也可以采用通常的登录方法,因而就省略说明。这样,在这里只对列表「定义表」的设定画面进行说明。As shown in the figure, on the setting screen 300 , various information for setting image data can be divided into a plurality of screens and set, and the operator (user) opens a desired setting screen to make settings. In addition, when the setting screen of the initial list "Basic" is opened, settings such as the width size of the receipt 61, the print density of the image data, and the print quality can be performed, and since it is almost the same as a normal print setting application content, so the description is omitted here. In addition, when the setting screen of the third list "image data registration" is opened, the image data as shown in FIG. 13 can be registered. Since the usual registration method can also be used for this, the description will be omitted. Thus, only the setting screen of the list "definition table" will be described here.

如图6所示,在「定义表」的设定画面300中,首先,进行规定的字列的设定。规定的字列作为一个例子是由开始字列和结束字列所构成,前者表示开始附加图像数据的位置,后者表示结束附加图像数据的位置。操作人员可以通过开始字列设定栏301及结束字列设定栏302的上下移动符号从已被登录的字列中选择这些开始字列及结束字列,也可以直接将字列输入到各设定栏301、302内。在这里,作为开始字列设定为「收据」、作为结束字列设定为「谢谢购买」。As shown in FIG. 6, on the setting screen 300 of the "definition table", first, a predetermined character string is set. The predetermined character string is composed of, for example, a start character string and an end character string. The former indicates the position at which image data addition starts, and the latter indicates the position at which image data addition ends. The operator can select these starting character strings and ending character strings from the registered character strings through the up and down movement symbols of the starting character string setting column 301 and the ending character string setting column 302, or directly input the character strings into each character string. In the setting column 301, 302. Here, "receipt" is set as the start character string, and "thank you for purchasing" is set as the end character string.

在上述的实施例中,表示了将图像重叠在开始字列和结束字列所指定的区域内的例子,只指定开始字列,也可以让图像的结束位置和结算信息的打印结束位置相一致。In the above-mentioned embodiment, an example is shown in which the image is superimposed in the area specified by the start character string and the end character string, and only the start character string is specified, and the end position of the image can also be made to coincide with the printing end position of the settlement information. .

接下来,进行图像指定数据的设定。图像指定数据的设定是通过操作人员从已登录文件一览表303中选择一个文件、来指定成为图像数据的文件,并输入到文件设定栏304内。另外,操作人员通过在ID栏305选择已登录的ID,也可以指定文件。在这里,作为「图像数据」,如图13所示的那样、登录有三个图像文件,从这些图像文件中可以选择一个图像数据,在本设定操作中是选择了「火焰花纹(ID:U2)」。Next, setting of image specifying data is performed. To set the image designation data, the operator selects a file from the registered file list 303 to designate a file to be image data, and inputs it into the file setting column 304 . In addition, the operator can also designate a file by selecting a registered ID in the ID column 305 . Here, as "image data", as shown in Fig. 13, three image files are registered, and one image data can be selected from these image files. )".

接下来,进行行号码的设定。在这里,作为特定打印区域的行号码,可以设定取得开始字列的行号码或比开始字列下一行的行号码中的一个、及取得结束字列的行号码或比结束字列上一行的行号码中的一个。也就是说,可以设定是根据包含对象字列的位置来特定打印区域、还是根据不包含对象字列的位置来特定打印区域。在这里,是将从「包含」开始字列的位置(行)到「包含」结束字列的位置(行)作为打印区域来特定的。Next, set the line number. Here, as the line number of the specified printing area, one of the line number of the start character string or the line number of the line below the start character string, and the line number of the end character string or one line above the end character string can be set. one of the row numbers. That is, it can be set whether to specify the print area based on the position containing the target character string or to specify the print area based on the position not including the target character string. Here, the print area is specified from the position (line) of the start character string of "include" to the position (row) of the end character string of "include".

接下来,进行彩色设定。在这里,首先设定是否进行彩色指定。然后,在通过操作人员对彩色设定确认为「指定」的情况下,在彩色设定栏306中将图像数据设定为打印的打印颜色。Next, make color settings. Here, first set whether to perform color designation. Then, when the operator confirms the color setting as "designated", the image data is set as the print color for printing in the color setting column 306 .

另外,在这里,由于事先设定用主色「K(黑色)」来进行结算处理打印数据的打印,因而图像数据就可以设定为「K(黑色)」以外的打印颜色(副色)。这样,比如在只进行「K(黑色)」和「R(红色)」两色打印的打印装置中,在用主色「K(黑色)」来打印打印数据的情况下,图像数据就必然要用副色「R(红色)」来打印。这样,通过用主色来打印打印数据、用副色来打印图像数据,就不会损坏打印数据所打印的文字等的清晰度,因而就可以附加图像数据。另外,在本设定操作中是选择了打印颜色「Red(红色)」。Here, since the printing of the settlement process print data is set in advance with the main color "K (black)", the image data can be set to a print color (secondary color) other than "K (black)". In this way, for example, in a printing device that only performs two-color printing of "K (black)" and "R (red)", if the print data is printed with the main color "K (black)", the image data must be Print with secondary color "R (red)". In this way, by printing the print data in the main color and printing the image data in the secondary color, the image data can be added without impairing the clarity of characters printed on the print data. In addition, in this setting operation, the print color "Red (red)" is selected.

另外,在对彩色设定确认为「不指定」的情况下,就根据事先所设定的打印颜色(比如店铺的标题彩色等)来打印图像数据。但是,在图像数据被登录为用彩色的情况下等,也可以为用该所登录的彩色来进行打印的结构。当完成以上的内容设定时,由操作人员点击「OK 」按钮307,「定义表」所设定的信息就被存储到PC40内的RAM等存储器内。In addition, when the color setting is confirmed as "not specified", the image data is printed in accordance with the print color set in advance (for example, the color of the title of the store, etc.). However, in the case where the image data is registered in color, etc., it may be configured to perform printing in the registered color. When the above content setting is completed, the operator clicks the "OK" button 307, and the information set in the "definition table" is stored in the memory such as RAM in the PC40.

在这里,参照图9及图14对上述设定的定义表及打印结果进行说明。如图9所示,在定义表内,由上述一连串的操作所设定的信息被附加了项目No,这里,表示了只设定了一个项目(项目No.1)。另外,作为开始字列被设定为「收据」,并且作为结束字列被设定为「谢谢购买」,各自的行号码设定就为「1」。这表示了根据「包含」该对象字列的位置(行)来特定打印区域,在根据「不包含」该对象字列的位置(为在对象字列为「开始字列」的情况下,在其一行以下的行、或在对象字列为「结束字列」的情况下,在其一行以上的行取得的行号码)来特定打印区域的情况下就为「0」。Here, the definition table and print results of the above settings will be described with reference to FIGS. 9 and 14 . As shown in FIG. 9, in the definition table, item No. is added to the information set by the above-mentioned series of operations, and here, only one item (item No. 1) is set. In addition, "receipt" is set as the start character string, and "thank you for the purchase" is set as the end character string, and the respective row numbers are set to "1". This means that the print area is specified based on the position (row) that "includes" the target character string. According to the position that "does not contain" the target character string (in the case of "0" when specifying the print area by the line number obtained in the line below one line, or in the case where the target character string is "end character string", in the line above one line).

另外,作为图像指定数据设定为「U2/C:fire.jpg」,但在表格上也可以用文件名称「fire」来存储。另外,也可以根据附加到每个图像数据文件上的联络号码或规定的法则、用被附加的数值替代文件名称来进行存储。在这里,根据ID「U2」存储了图像指定No.「02」。In addition, "U2/C:fire.jpg" is set as the image designation data, but it can also be stored with the file name "fire" on the table. In addition, it is also possible to store an added numerical value instead of a file name according to a contact number attached to each image data file or a predetermined rule. Here, image designation No. "02" is stored based on ID "U2".

还有,作为彩色指定设定为「Red」,但在表格上也可以根据附加到每个彩色上的彩色指定No.或规定的法则、用被附加的数值替代彩色名称来进行存储。在这里,存储了附加在每个彩色上的彩色指定No.(Red为「2」)。In addition, "Red" is set as the color designation, but it is also possible to store in the table by replacing the color name with the added numerical value according to the color designation No. added to each color or a predetermined rule. Here, the color designation No. ("2" for Red) added to each color is stored.

接下来,在该图中表示了在定义表上存储有上述信息的情况、并在结算处理打印数据中包含开始字列「收据」及结束字列「谢谢购买」的情况下的数据取得结果。即、该情况取得表示“根据彩色指定No.2在从行号码「x1」到「x2」的打印区域内打印图像指定No.02的图像数据”的数据。所谓行号码「x1」及「x2」,是分别表示包含开始字列「收据」及结束字列「谢谢购买」的行的行号码。Next, the figure shows the data acquisition result when the above information is stored in the definition table and the settlement process print data includes the start character string "receipt" and the end character string "thank you for the purchase". That is, in this case, data representing "print image data of image designation No. 02 in the printing area from line number "x1" to "x2" based on color designation No. 2" is obtained. The so-called line numbers "x1" and "x2" ", which are the line numbers of the lines containing the start line "receipt" and the end line "thank you for your purchase", respectively.

然后,取得上述那样的数据的结果、得到的打印结果,就是图14所示的<打印例1>。如这里所示的那样,在收据61上,结算处理打印数据中(参照图17)被附加了图像数据「U2/C:fire.jpg 」(火焰;参照图13),该打印颜色为「Red」。另外,打印区域为从包含有开始字列「收据」的行号码「x1」到包含有结束字列「谢谢购买」的行号码「x2」。而且,如这里所示的那样,根据从包含有开始字列的行到包含有结束字列的行的长度,图像数据被反复打印。Then, the result of obtaining the above-mentioned data and the obtained printing result are <printing example 1> shown in FIG. 14 . As shown here, on the receipt 61, image data "U2/C: fire. ". In addition, the printing area is from the line number "x1" including the start character string "receipt" to the line number "x2" including the end character string "thank you for purchasing". Also, as shown here, the image data is repeatedly printed according to the length from the line including the start character string to the line including the end character string.

另外,在结算处理打印数据中,在只包含有开始字列或结束字列中的任何一方的情况下、即在不包含开始字列及结束字列的双方的情况下,就不进行不能特定打印区域的图像数据的附加。但是,通过变更设计,在抽出开始字列或结束字列的任何一方的情况下,也可以将图像数据附加到从开始字列到下方的x行、或从结束字列到收据结束行,从结束字列到上方的y行、或从结束字列到收据开始行等。In addition, in the settlement processing print data, if only either one of the start character string or the end character string is included, that is, if neither the start character string nor the end character string is included, no identification cannot be performed. Attachment of the image data of the printing area. However, by changing the design, in the case of extracting either the start character string or the end character string, image data may be attached to x lines from the start character string to the bottom, or from the end character string to the receipt end row, from From the end word column to the y line above, or from the end word column to the receipt start line, etc.

这样,在本发明中,由于图像数据的打印区域由为图像附加设定指令所包含的参数中的一个参数的行号码所特定,因而,打印装置50就可以容易地决定打印区域,进行图像数据的附加处理。特别是,通过将规定的字列作为必须打印到收据上的字列(比如「收据」、「合计金额」等),就可以根据收据的长度,发行在恰当的位置打印图像数据的收据61。In this way, in the present invention, since the printing area of image data is specified by the line number of one of the parameters included in the image addition setting command, the printing device 50 can easily determine the printing area and print the image data. additional processing. In particular, by making predetermined character strings (for example, "receipt" and "total amount" etc.) required to be printed on the receipt, it is possible to issue a receipt 61 in which image data is printed at an appropriate position according to the length of the receipt.

接下来,对于根据图9所示的数据取得结果所生成的图像附加设定指令,参照图11A、11B来进行说明。图11A表示了图像附加设定指令的结构,在其中,「ESC I」表示图像附加设定指令编号,接下来的「n1,n2,n3,n4」表示参数(一般使用被称为ESC序列的指令)。各参数由1bite(8bit)所构成,n1表示图像指定No.,在<打印例1>的情况下表示为「02」。另外,n2及n3表示开始行号码及结束行号码,在<打印例1>的情况下表示为「x1」及「x2」。还有,n4表示彩色信息(彩色指定No.),在<打印例1>的情况下表示为「2」(参照图9)。Next, an image addition setting command generated based on the data acquisition result shown in FIG. 9 will be described with reference to FIGS. 11A and 11B . Figure 11A shows the structure of the image additional setting command, in which "ESC I" represents the image additional setting command number, and the following "n1, n2, n3, n4" represent parameters (generally using a sequence called ESC instruction). Each parameter is composed of 1bit (8bit), n1 indicates the image designation No., and in the case of <print example 1>, it is expressed as "02". In addition, n2 and n3 indicate the start line number and the end line number, and are expressed as "x1" and "x2" in the case of <print example 1>. In addition, n4 represents color information (color designation No.), and is represented as "2" in the case of <print example 1> (see FIG. 9 ).

另外,如图9所示,表示开始行号码的参数「n2」在8bit中为最初的1bit,表示行号码设定(参照图9),在包含有行号码的情况、不包含「1」的情况下,用「0」来表示,还有,用剩余的7bit表示开始行号码(第一行至第128行)。关于表示结束行号码的参数「n3」也是同样的结构。另外,构成各参数的bit数及参数的顺序可以适当地变更。In addition, as shown in FIG. 9, the parameter "n2" indicating the start line number is the first 1 bit in 8 bits, and indicates the line number setting (see FIG. 9). When the line number is included, "1" is not included. In this case, "0" is used to indicate, and the remaining 7 bits are used to indicate the start line number (the first line to the 128th line). The same structure applies to the parameter "n3" indicating the end line number. In addition, the number of bits constituting each parameter and the order of parameters can be changed as appropriate.

这样,在本发明中,作为图像附加设定指令,设定附加图像数据的专用指令,作为参数可以在发送结算处理打印数据的同时一起发送各种信息。通过这样,在接收装置50方面就不会带来障碍、就可以容易地进行图像数据的附加处理(收据打印数据的生成处理)。In this way, in the present invention, as the image addition setting command, a dedicated command for adding image data is set, and various information can be transmitted together with the settlement processing print data as parameters. In this way, image data addition processing (receipt print data generation processing) can be easily performed without causing trouble to the receiving device 50 .

下面,对于PC40的结算处理打印数据/图像附加设定指令的发送处理,参照图7的流程图进行说明。PC40通过键盘43的输入及读出条形码读取器44的条形码,取得与商品有关的输入信息,据此生成结算处理打印数据(S11)。然后,通过检索结算处理打印数据,抽出其所包含的规定的字列(开始字列及结束字列)(S12)。Next, the process of sending the settlement process print data/image addition setting command by the PC 40 will be described with reference to the flowchart of FIG. 7 . The PC 40 acquires the input information on the product by inputting from the keyboard 43 and reading the barcode from the barcode reader 44, and generates settlement processing print data based on this (S11). Then, by retrieving settlement processing print data, a predetermined character string (start character string and end character string) contained therein is extracted (S12).

这时,规定的字列和上述的那样事先被设定,作为定义表被存储起来。然后,在抽出了规定的字列(在<打印例1>的情况下,开始字列「收据」及结束字列「谢谢购买」)的情况下(S13:Yes),取得该规定的字列所特定的行号码、及与规定的字列相关地被存储的图像指定数据和彩色信息(S14:参照图9)。然后,根据该取得结果,生成图像附加设定指令(S15:参照图11A),并和结算处理打印数据一起发送到打印装置50(S16),结束处理(S18)。另一方面,在没有抽出规定的字列的情况下(S13:No),就不会生成图像附加设定指令,只将结算处理打印数据发送到打印装置50(S17)。最好是所述字列为有含义的用语、单词,但如果即使为一个文字也能表达含义的特别的文字的话,一个文字也可以。At this time, predetermined character strings are set in advance as described above, and are stored as a definition table. Then, when a predetermined character string is extracted (in the case of <printing example 1>, the start character string "receipt" and the end character string "thank you for purchasing") (S13: Yes), the predetermined character string is acquired Image specifying data and color information are stored in association with the specified line number, predetermined character string (S14: refer to FIG. 9 ). Then, based on the obtained result, an image addition setting command is generated (S15: refer to FIG. 11A ), and sent to the printer 50 together with the settlement process print data (S16), and the process ends (S18). On the other hand, when the predetermined character string has not been extracted (S13: No), the image addition setting command is not generated, and only the settlement processing print data is sent to the printer 50 (S17). It is preferable that the above-mentioned character list is a meaningful term or word, but if it is a special character that can express a meaning even as a single character, a single character may be used.

接下来,接着上述的PC40的结算处理打印数据/图像附加设定指令的发送处理,对于打印装置50的收据打印数据生成处理,参照图8的流程图来进行说明。打印装置50当从PC40取得结算处理打印数据时(S21:Yes),就判断图像附加设定指令是否与该结算处理打印数据一起被发送了(S23)。在取得的数据不是结算处理打印数据的情况下(S21:No),就根据该指示进行处理(S22)。另外,在图像附加设定指令没有被发送的情况下(S23:No),就不进行图像数据的附加处理(S24),就将结算处理打印数据维持原样作为收据打印数据(S27)。Next, the receipt print data creation process of the printer 50 will be described with reference to the flowchart of FIG. When the printer 50 acquires the settlement process print data from the PC 40 (S21: Yes), it determines whether an image addition setting command has been transmitted together with the settlement process print data (S23). If the acquired data is not settlement processing print data (S21: No), processing is performed according to the instruction (S22). If the image addition setting command is not sent (S23: No), the image data addition process is not performed (S24), and the settlement process print data is kept as receipt print data (S27).

另一方面,在图像附加设定指令与结算处理打印数据一起被发送了的情况下(S23:Yes),就解析图像附加设定指令(S25),取得行号码(开始行号码及结束行号码)、图像指定数据(图像指定No.)及彩色信息(彩色指定No.)(S26:参照图11A)。然后,根据取得的信息,将图像数据附加到结算处理打印数据中(迭加),生成收据打印数据(S27),结束处理(S28)。On the other hand, when the image addition setting command is sent together with the settlement processing print data (S23: Yes), the image addition setting command is analyzed (S25) to obtain the line numbers (the start line number and the end line number) ), image specifying data (image specifying No.), and color information (color specifying No.) (S26: refer to FIG. 11A). Then, based on the acquired information, the image data is added (superimposed) to the settlement processing print data to generate receipt print data (S27), and the process ends (S28).

这样,在本发明中,通过检索PC40所生成的结算处理打印数据,抽出特定图像数据的打印位置、即实际的收据上的打印位置的规定的字列,根据该规定的字列所特定的行号码来生成图像附加设定指令。然后,PC40将其与结算处理打印数据一起发送到打印装置50。另一方面,打印装置50根据图像附加设定指令将图像数据附加到结算处理打印数据中,生成打印到收据上的收据打印数据。即、通过该结构,作为PC40和打印装置50之间的接口即使在采用了低速接口的情况下,也可以迅速地打印图像数据。另外,在PC40方面由于生成附加图像数据的附加设定指令,因而不用直接操作打印装置50、通过PC40就可以进行图像数据的设定。In this way, in the present invention, by retrieving the settlement processing print data generated by the PC 40, a predetermined character string specifying the print position of the image data, that is, the print position on the actual receipt is extracted, and the row identified by the predetermined character string is extracted. number to generate image additional setting commands. Then, the PC 40 sends it to the printing device 50 together with the settlement processing print data. On the other hand, the printer 50 adds image data to the settlement process print data according to the image addition setting command, and generates receipt print data to be printed on the receipt. That is, with this configuration, image data can be quickly printed even when a low-speed interface is used as the interface between the PC 40 and the printing device 50 . In addition, since the PC 40 generates an additional setting command for additional image data, the image data can be set through the PC 40 without directly operating the printing device 50 .

在这里,举几个实例来对其他的图像数据的打印例进行说明。图10A、图12A及图15表示了<打印例2>的定义表、数据取得结果、图像附加设定指令及打印结果。如图10A所示,在定义表内,存储有指定同样图像数据「U2/C:hana.jpg」(花朵花纹)的两个项目。在该情况下,数据取得结果如该图所示的那样,开始行号码、结束行号码、彩色指定成为一组,形成两组相关地被附加到一个图像指定数据中的形式,在两个打印区域内打印同样的图像数据。因此,如图12A所示的那样,图像附加设定指令也与表示开始行号码、结束行号码、彩色信息的参数(「n2,n3,n4」及「n5,n6,n7」)成为一组被附加在表示图像指定数据的参数「n1」的后面。Here, several examples are given to describe printing examples of other image data. 10A, 12A, and 15 show the definition table, data acquisition results, image addition setting commands, and printing results of <print example 2>. As shown in FIG. 10A , in the definition table, two items specifying the same image data "U2/C:hana.jpg" (flower pattern) are stored. In this case, the result of data acquisition is as shown in the figure. The start line number, the end line number, and the color designation are combined into one set, and two sets of data are added to one image designation data in relation to each other. Print the same image data in the area. Therefore, as shown in FIG. 12A, the image addition setting command is also set with parameters indicating the start line number, end line number, and color information ("n2, n3, n4" and "n5, n6, n7"). It is appended after the parameter "n1" indicating image designation data.

但是,在<打印例2>中,由于对结束字列「收据」的行号码设定为「0」(参照图10A),因而表示参数「n3」的行号码设定的先头位(bit)就为「0」(参照图11B)。这样,包含有结束字列「收据」的行就不成为打印区域,从包含有结束字列「收据」的行开始到一行以上的行为打印区域。However, in <Print Example 2>, since the line number of the ending character string "receipt" is set to "0" (see FIG. 10A), the leading bit (bit) of the line number setting of the parameter "n3" is indicated. It is "0" (see FIG. 11B). In this way, the line containing the end character string "receipt" does not become the printing area, and the line starting from the line containing the end character string "receipt" to more than one line is the printing area.

因此,在图15中表示了图12所示的图像附加设定指令被发送的情况的打印结果。如这里所示的那样,图像数据(花朵花纹)被打印在两个打印区域内,在第一个打印区域(开始行号码「x1」及结束行号码「x2」所特定的打印区域)中,图像数据从行号码「x1」到行号码「x2-1」被打印,在第二个打印区域(开始行号码「x3」及结束行号码「x4」所特定的打印区域)中,图像数据从行号码「x3」到行号码「x4」被打印。Therefore, FIG. 15 shows the print result when the image addition setting command shown in FIG. 12 is sent. As shown here, the image data (flower pattern) is printed in two print areas, and in the first print area (the print area specified by the start line number "x1" and the end line number "x2"), Image data is printed from line number "x1" to line number "x2-1". In the second print area (the print area specified by the start line number "x3" and the end line number "x4"), the image data from Line number "x3" to line number "x4" are printed.

这样,如<打印例2>所示那样,对同样的图像指定数据在抽出多个规定的字列的情况下,就可以根据更简单的结构的图像附加设定指令来进行图像数据的附加设定。In this way, as shown in <Print Example 2>, when a plurality of predetermined character strings are extracted for the same image designation data, image data addition setting can be performed based on an image addition setting command with a simpler structure. Certainly.

接下来,图10B、图12B及图16表示了<打印例3>的定义表、数据取得结果、图像附加设定指令及打印结果。如图10B所示那样,在定义表内,对不同的图像数据「U3/C:syoku.jpg」、「U4/C:nichi.jpg」、「U5/C:iyaku.jpg」分别存储有被相关地附加了开始字列及结束字列的三个项目。在这种情况,数据取得结果如该图所示,成为对各图像指定数据分别相关地附加了开始行号码、结束行号码、彩色指定的形式。因此,如图12B所示的那样,图像附加设定指令也与表示图像指定数据、开始行号码、结束行号码、彩色信息的参数(「n1,n2,n3,n4」及「n5,n6,n7,n8」…)形成一组被附加。Next, Fig. 10B, Fig. 12B and Fig. 16 show the definition table, data acquisition result, image addition setting command and printing result of <print example 3>. As shown in FIG. 10B, in the definition table, different image data "U3/C: syoku.jpg", "U4/C: nichi.jpg", and "U5/C: iyaku.jpg" are respectively stored. The three items of the start character string and the end character string are added accordingly. In this case, as shown in the figure, the data acquisition result is in a format in which a start line number, an end line number, and a color designation are associated with each image designation data. Therefore, as shown in FIG. 12B, the image addition setting command is also associated with parameters ("n1, n2, n3, n4" and "n5, n6, n7,n8"...) form a group to be appended.

但是,在<打印例3>中,三个项目被存储于定义表内,它们为开始字列不同的字列、结束字列完全相同的字列「类别合计」。在这种情况,将存在于从开始字列到下方、并存在于各个项目最末行的字列作为对该开始字列的结束字列。因此,即使同样的结束字列被存储于不同的项目内,在该结束字列存在于多个结算处理打印数据内的情况下,就不用重复打印多个图像数据。However, in <printing example 3>, three items are stored in the definition table, and they are "category totals" whose start characters are different and end characters are exactly the same. In this case, the character string that exists from the start character string to the bottom and exists in the last line of each item is used as the end character string of the start character string. Therefore, even if the same ending character string is stored in different items, if the ending character string exists in a plurality of settlement processing print data, it is not necessary to repeatedly print a plurality of image data.

因此,在图16中表示了图12B所示的图像附加设定指令被发送的情况的打印结果。如这里所示的那样,在分别的开始字列及结束字列所特定的打印区域内,对图像数据「U3/C:syoku.jpg 」、「U4/C:nichi.jpg」、「U5/C:iyaku.jpg」实施打印。另外,结束字列即使为同样的字列,由于该结束字列存在于多个结算处理打印数据内,因而就不用重复打印三个图像数据。Therefore, FIG. 16 shows the print result when the image addition setting command shown in FIG. 12B is sent. As shown here, image data "U3/C: syoku.jpg", "U4/C: nichi.jpg", "U5/C: C: iyaku.jpg" to print. In addition, even if the ending character string is the same character string, since the ending character string exists in a plurality of settlement processing print data, it is not necessary to repeatedly print three image data.

这样,如<打印例3>所示的那样,即使在将多个图像指定数据打印到不同的打印区域的情况,也可以根据一个图像附加设定指令来进行图像数据的附加设定。In this way, as shown in <printing example 3>, even when a plurality of image designation data are printed in different print areas, image data addition setting can be performed based on one image addition setting command.

如上述的那样,本发明为:从结算处理打印数据中检索规定的字列,取得实际特定打印该数据时的收据上的位置的信息,特定字列位置,采用该字列位置的信息来决定图像数据的收据上的起点或终点,将所述图像数据合成到所述结算处理打印数据中,生成收据打印数据,打印生成的收据打印数据的打印装置及打印方法。As described above, the present invention is to: search for a specified character string from the settlement processing print data, obtain information that actually specifies the position on the receipt when the data is printed, specify the character string position, and determine the character string position using the information on the character string position. A printing device and a printing method for compositing the image data to the settlement processing print data, generating receipt print data, and printing the generated receipt print data.

另外,根据适当的实施例,通过将图像指定数据、开始字列及结束字列建立相关关联、作为定义表存储多个,根据结算处理打印数据所包含的字列,就可以将多种多样的图像数据打印到所希望的打印区域。In addition, according to a suitable embodiment, by associating the image designation data, the start character string, and the end character string, and storing a plurality of them as a definition table, it is possible to use various The image data is printed to the desired print area.

特别是,如本实施例那样,在POS系统方面采用了本发明的打印装置50的情况下,通过将店铺的标志等作为图像数据存储起来,就可以发行在特定的区域内打印店铺的标志的收据61。即、只要在作为收据打印机用的打印装置50内具有仅存储图像数据(标志)的小的存储器,就可以在作成可视性高的收据的同时,加强顾客对店铺形象的印象,提高宣传效果。In particular, as in this embodiment, when the printing device 50 of the present invention is adopted in the POS system, by storing the logo of the shop as image data, it is possible to issue an order to print the logo of the shop in a specific area. Receipt 61. That is, as long as there is a small memory that only stores image data (logo) in the printing device 50 used as a receipt printer, it is possible to create a highly visible receipt, enhance the customer's impression of the store image, and improve the publicity effect. .

另外,在上述实施例中,图像附加设定指令的生成,是通过编入到PC40内的控制部140的打印驱动器109来实现的,但也可以为将其收存到记录介质中、用其他的PC及打印装置可以使用生成程序的结构。作为记录介质可以使用硬盘、闪存ROM、存储卡{小型闪存(注册商标)、灵敏介质、存储棒等}、小型盘、光磁盘、数字分通用盘及软盘等。In addition, in the above-mentioned embodiment, the generation of the image addition setting command is realized by the print driver 109 built into the control unit 140 in the PC 40, but it may be stored in a recording medium or used in other ways. PCs and printers can use the structure of the generated program. As the recording medium, a hard disk, flash ROM, memory card {Compact Flash (registered trademark), smart media, memory stick, etc.}, compact disk, optical disk, digital versatile disk, floppy disk, etc. can be used.

如上所述,本发明的打印装置的控制方法,通过收据打印数据生成方法、程序、打印驱动器、打印装置、商品销售数据处理装置及POS系统,不是由PC40将图像数据发送到打印装置50,而是将图像数据存储于打印装置50内,由于由PC40发送附加图像数据的图像附加设定指令发送,因而作为PC40和打印装置之间的接口,即使在采用了低速接口的情况下,在传送时间上也没有问题,不会降低处理效率。As described above, in the control method of the printing apparatus of the present invention, the PC 40 does not transmit the image data to the printing apparatus 50 through the receipt printing data generation method, the program, the printing driver, the printing apparatus, the commodity sales data processing apparatus, and the POS system. The image data is stored in the printing device 50. Since the PC 40 sends the image additional setting command for the additional image data, as an interface between the PC 40 and the printing device, even if a low-speed interface is used, the transmission time There is no problem with it, and the processing efficiency will not be reduced.

另外,打印装置50,通过从图像附加设定指令所包含的参数中取得行号码,就可以容易地特定打印位置。进而,就可以达到作成美观的收据等的作用·效果。In addition, the printing device 50 can easily specify the printing position by acquiring the line number from the parameter included in the image addition setting command. Furthermore, the function and effect of creating a beautiful receipt and the like can be achieved.

另外,通过打印驱动器109生成附加图像数据的图像附加设定指令,不用直接操作打印装置50,就可以由PC40来进行图像数据的设定。还有,PC40即使为单色·文本格式的应用程序,也不用将其变更、通过打印装置50就可以发行彩色·绘图格式的收据。In addition, by generating an image addition setting command for additional image data by the printer driver 109 , the setting of the image data can be performed by the PC 40 without directly operating the printing device 50 . Also, even if the PC 40 is an application program in a monochrome and text format, the printer 50 can issue a receipt in a color and graphic format without changing it.

另外,在上述的例子中,是事先设定为以主色[K(黑色)]来打印结算处理打印数据、图像数据可以设定[K(黑色)]以外的打印颜色(副色),但也可以为作为图像数据设定[K(黑色)]的结构。在这种情况(结算处理打印数据和图像数据被设定为用同一颜色来进行打印的情况),自动地降低打印浓度来打印图像数据是非常理想的。通过该结构,不会损坏结算处理打印数据的清晰度,就可以附加图像数据。In addition, in the above-mentioned example, it is set in advance that the settlement processing print data is printed in the main color [K (black)]. The image data can be set to a print color (secondary color) other than [K (black)]. A configuration in which [K (black)] is set as image data may also be used. In such a case (when the settlement processing print data and the image data are set to be printed in the same color), it is ideal to print the image data by automatically reducing the print density. With this configuration, image data can be added without impairing the resolution of the print data for settlement processing.

另外,不仅可以设定图像数据的打印颜色、也可以为设定结算处理打印数据的打印颜色的结构。但在这种情况,也可以为图像数据只设定结算处理打印数据的设定颜色以外的打印颜色的结构,或在结算处理打印数据和图像数据被设定为用同一颜色来打印的情况下,设定自动地降低打印浓度来打印图像数据是非常理想的。In addition, not only the print color of the image data but also the print color of the settlement process print data may be set. However, in this case, only a print color other than the set color of the settlement process print data may be set for the image data, or when the settlement process print data and the image data are set to be printed in the same color , it is ideal to set to automatically reduce the print density to print image data.

另外,在上述的例子中,是作为设定开始字列和结束字列的两方的,但在没有这两方的设定的情况下,根据缺省值,也可以特定图像数据的打印区域。比如,在没有设定开始字列的情况下,也可以从收据61的前端规定的长度X的行开始打印图像数据,在没有设定结束字列的情况下,也可以从收据61的后端到规定的长度Y的行为止结束图像数据的打印。还有,在没有指定开始字列的情况下,也可以从结算处理打印数据所包含的规定的字列(比如「TEL:」等)被打印的行开始打印图像数据,在没有指定结束字列的情况下,也可以到打印数据所包含的其他的规定的字列(比如「谢谢购买」等)被打印的行结束图像数据的打印。通过这些结构,用户就可以在不拘泥于打印区域的情况下节省设定的操作。In addition, in the above example, both the start character string and the end character string are set, but if there is no setting of both, the print area of the image data can also be specified according to the default value. . For example, if the start character string is not set, the image data can also be printed from the front end of the receipt 61 at a line of a predetermined length X, and if the end character string is not set, the image data can also be printed from the rear end of the receipt 61. Printing of the image data ends up to a line of the predetermined length Y. In addition, when the start character string is not specified, the image data can be printed starting from the line where the specified character string (such as "TEL: ", etc.) contained in the settlement processing print data is printed, and the end character string In the case of the print data, the printing of the image data may be terminated at the line where other predetermined character strings (for example, "Thank you for purchasing" etc.) included in the print data are printed. With these structures, the user can save setting operations without being limited to the printing area.

另外,图像数据(定义表)的设定并不限于图6所示的设定内容,也可以为进行图像数据的扩大·缩小及旋转角度的设定、两个以上的图像数据的指定及它们的打印颜色的设定等的结构。通过该结构,就可以附加更加多样的图像数据。In addition, the setting of the image data (definition table) is not limited to the setting contents shown in FIG. 6 , and the setting of the expansion/reduction of the image data, the setting of the rotation angle, the designation of two or more image data, and their The structure such as the setting of the printing color. With this configuration, more diverse image data can be added.

另外,在上述的实施例中,是将图像数据重叠到结算处理的打印数据中、作成所谓的附加背景图像的收据的,但本发明并不限定于此,比如,也可以将宣传用的信息作为图像数据插入结算信息的打印之中。在这种情况,通过「插入」图像附加设定指令内、或附加选择「重叠」的一方的打印处理的规定的参数,就可以容易地实现。In addition, in the above-mentioned embodiment, image data is superimposed on the print data of settlement processing to create a so-called background image-added receipt, but the present invention is not limited thereto. For example, information for publicity may also be It is inserted into the printing of settlement information as image data. In this case, it can be easily realized by "inserting" into the image addition setting command, or adding a predetermined parameter of the printing process that selects the "overlapping" one.

另外,在上述的例子中,作为打印装置50是使用喷墨方式的,但并不局限与此,也可以采用热敏头式、针极式的打印装置。In addition, in the above-mentioned example, an inkjet type is used as the printing device 50, but the present invention is not limited thereto, and a thermal head type or needle type printing device may also be used.

另外,不管上述的POS系统的例子、比如对于没有与服务器相连接的独立型的ECR、现金出纳机等系统结构及装置结构,只要在不脱离本发明的宗旨的范围内,也可以进行适宜的变更。In addition, regardless of the examples of the above-mentioned POS system, such as system structures and device structures such as independent ECRs that are not connected to the server, cash registers, etc., as long as they do not depart from the scope of the present invention, suitable adjustments can also be made. change.

如上述的那样,本发明的打印装置的控制方法通过收据打印数据生成方法、程序、打印驱动程序、打印装置、商品销售数据处理装置及POS系统,将图像数据存储到主计算机内,不是由主计算机发送图像数据,而是将图像数据存储到打印装置内,由于由主计算机发送附加图像数据的图像附加设定指令,因而,作为主计算机和打印装置之间的接口即使在采用了低速接口的情况下,也可以达到迅速打印图像数据等的效果。As described above, the printing device control method of the present invention stores the image data in the host computer through the receipt print data generation method, the program, the print driver, the printing device, the product sales data processing device, and the POS system, not by the host computer. The image data is sent by the computer, but the image data is stored in the printing device. Since the image addition setting command for additional image data is sent by the host computer, as the interface between the host computer and the printing device, even if a low-speed interface is used Under certain circumstances, the effect of quickly printing image data, etc. can also be achieved.

Claims (16)

1.一种打印装置的控制方法,是一种在根据与商品销售有关的输入信息所生成的结算处理打印数据中附加图像数据,进行打印的打印装置的控制方法,其特征在于,具有:1. A control method of a printing device, which is a control method of a printing device for printing by adding image data to settlement processing print data generated based on input information related to commodity sales, characterized in that: 取得所述结算处理打印数据的结算处理打印数据取得的步骤;A settlement processing print data obtaining step of obtaining the settlement processing print data; 从所述结算处理打印数据中检索出表示所述图像数据的打印位置的规定的字列,并抽出该规定的字列的步骤;A step of retrieving a predetermined character string indicating a printing position of the image data from the settlement processing print data, and extracting the predetermined character string; 取得由被抽出的所述规定的字列所特定的打印行号码的行号码取得步骤;a line number obtaining step of obtaining a print line number specified by the extracted predetermined character string; 使能够根据取得的所述行号码,以所述行号码所特定的位置为基准打印所述图像数据地,在所述结算处理打印数据中附加所述图像数据,并取得合成的打印结果。Based on the obtained line number, the image data is printed based on the position specified by the line number, the image data is added to the settlement processing print data, and a combined print result is obtained. 2.根据权利要求1所述的打印装置的控制方法,其特征在于,所述控制方法还具有:2. The control method of the printing device according to claim 1, wherein the control method further comprises: 根据取得的所述行号码生成图像附加设定指令的图像附加设定指令生成步骤;An image addition setting instruction generating step of generating an image addition setting instruction according to the obtained line number; 将所述结算处理打印数据及所述图像附加设定指令发送到所述打印装置(50)的发送步骤;a sending step of sending the settlement processing print data and the image addition setting instruction to the printing device (50); 所述打印装置根据所述图像附加设定指令的解析结果、将所述图像数据附加到所述结算处理打印数据中。The printing device adds the image data to the settlement process print data based on an analysis result of the image addition setting command. 3.根据权利要求2所述的打印装置的控制方法,其特征在于,所述规定的字列为表示开始附加所述图像数据的位置的开始字列,在所述行号码取得步骤中取得由所述开始字列所特定的行号码。3. The control method of a printing apparatus according to claim 2, wherein the predetermined character string is a start character string indicating a position where the image data starts to be added, and the line number acquired by The line number specified by the start column. 4.根据权利要求2所述的打印装置的控制方法,其特征在于:所述规定的字列由表示开始附加所述图像数据的位置的开始字列及表示结束附加图像数据的位置的结束字列所构成,在所述行号码取得步骤中取得所述开始字列及所述结束字列所特定的多个行号码。4. The control method of a printing device according to claim 2, wherein the predetermined character string is composed of a start character string representing a position where adding the image data starts and an end character string representing a position where adding the image data ends. The plurality of row numbers specified by the start character string and the end character string are acquired in the row number obtaining step. 5.根据权利要求4所述的打印装置的控制方法,其特征在于:在所述打印装置(50)内存储有多个为所述图像数据的文件的图像数据文件,5. The control method of the printing device according to claim 4, characterized in that: a plurality of image data files that are files of the image data are stored in the printing device (50), 还具有:存储使所述开始字列及所述结束字与用于从被存储在所述打印装置(50)中的多个图像数据文件中指定一个图像数据文件的图像指定数据构成关联的定义表的定义表存储步骤;Furthermore, a definition for associating the start word sequence and the end word with image specifying data for specifying one image data file from a plurality of image data files stored in the printing device (50) is stored. Table definition table storage step; 从所述定义表取得与在所述字列抽出步骤所抽出的所述开始字列及所述结束字列相关联的图像指定数据的图像指定数据取得步骤,an image specifying data acquiring step of acquiring image specifying data associated with the start character string and the end character string extracted in the character string extracting step from the definition table, 在所述图像附加设定指令生成步骤中,根据取得的所述行号码及所述图像指定数据,生成所述图像附加设定指令。In the image addition setting command generating step, the image addition setting command is generated based on the acquired line number and the image specifying data. 6.根据权利要求4所述的打印装置的控制方法,其特征在于,还具有:设定所述开始字列和/或所述结束字列的字列设定步骤。6. The control method of a printing device according to claim 4, further comprising: a character string setting step of setting the start character string and/or the end character string. 7.根据权利要求6所述的打印装置的控制方法,其特征在于,还具有:与在所述字列设定步骤所设定的所述开始字列和/或所述结束字列相关地设定所述图像指定数据的图像指定数据设定步骤。7. The control method of a printing device according to claim 6, further comprising: related to the start character string and/or the end character string set in the character string setting step An image designation data setting step for setting the image designation data. 8.根据权利要求4所述的打印装置的控制方法,其特征在于,还具有:设定在所述行号码取得步骤中是取得所述开始字列的行号码还是取得所述开始字列的下一行的行号码、或是取得所述结束字列的行号码还是取得所述结束字列的上一行的行号码的行号码设定步骤。8. The control method of the printing apparatus according to claim 4, further comprising: setting whether to obtain the line number of the start character string or the line number of the start character string in the step of obtaining the line number A line number setting step of obtaining the line number of the next line, or obtaining the line number of the end character string or the line number of the previous line of the end character string. 9.根据权利要求2所述的打印装置的控制方法,其特征在于:所述打印装置(50)在可以进行彩色打印的情况下,9. The control method of the printing device according to claim 2, characterized in that: when the printing device (50) is capable of color printing, 还具有设定所述图像数据的打印颜色的打印颜色设定步骤,further having a print color setting step of setting a print color of the image data, 所述图像附加设定指令包含有表示所述打印颜色的参数。The image addition setting command includes a parameter representing the printing color. 10.一种收据打印数据生成方法,是一种通过将已存储的图像数据附加到根据与商品销售有关的输入信息由主计算机(40)所生成的结算处理打印数据中,生成收据打印数据收据打印数据生成方法,其特征在于,具有:10. A receipt print data generation method, which is a method of generating receipt print data by adding stored image data to settlement processing print data generated by a host computer (40) based on input information related to merchandise sales The print data generation method is characterized in that it has: 存储所述图像数据的图像数据存储步骤;an image data storage step for storing said image data; 从所述主计算机(40)取得所述结算处理打印数据的结算处理打印数据取得步骤;a settlement processing print data obtaining step of obtaining the settlement processing print data from the host computer (40); 从所述主计算机(40)取得附加所述图像数据进行打印的图像附加设定指令的图像附加设定指令取得步骤;an image addition setting instruction acquisition step of acquiring an image addition setting instruction for printing with the image data added from the host computer (40); 解析所述图像附加设定指令、取得表示所述图像数据的打印位置的行号码的指令解析步骤;An instruction analysis step of analyzing the image addition setting instruction and obtaining a line number indicating a printing position of the image data; 根据所述行号码,将所述图像数据附加到所述结算处理打印数据中,生成所述收据打印数据的收据打印数据生成步骤。A receipt print data generating step of adding the image data to the settlement process print data based on the line number to generate the receipt print data. 11.一种程序,其特征在于:执行权利要求1所述的打印装置的控制方法的各步骤、或权利要求10所述的收据打印数据生成方法的各步骤。11. A program for executing the steps of the printing apparatus control method according to claim 1 or the steps of the receipt print data generation method according to claim 10. 12.一种打印驱动程序,其特征在于:使计算机执行权利要求1所述的打印装置的控制方法的各步骤。12. A print driver program, which causes a computer to execute the steps of the printing device control method according to claim 1. 13.一种打印装置(50),将已存储的图像数据附加到根据与商品销售有关的输入信息由主计算机(40)所生成的结算处理打印数据中,生成收据打印数据,其特征在于,具有:13. A printing device (50) that adds stored image data to settlement processing print data generated by a host computer (40) based on input information related to merchandise sales to generate receipt print data, characterized in that: have: 存储所述图像数据的图像数据存储装置(244);image data storage means (244) storing said image data; 从所述主计算机(40)取得所述结算处理打印数据的结算处理打印数据取得装置(241);A settlement processing print data obtaining means (241) for obtaining the settlement processing print data from the host computer (40); 从所述主计算机(40)取得用于指令附加所述图像数据进行打印的图像附加设定指令的图像附加设定指令取得装置(242);Image addition setting instruction acquisition means (242) for obtaining an image addition setting instruction for instructing addition of the image data for printing from the host computer (40); 解析所述图像附加设定指令、取得表示所述图像数据的打印位置的行号码的指令解析装置(233);An instruction analysis device (233) that analyzes the image addition setting instruction and acquires a line number indicating a printing position of the image data; 根据所述行号码,将所述图像数据附加到所述结算处理打印数据中、生成所述收据打印数据的收据打印数据生成装置(234)。A receipt print data generating means (234) that adds the image data to the settlement process print data based on the line number to generate the receipt print data. 14.根据权利要求13所述的打印装置,其特征在于:14. The printing device according to claim 13, characterized in that: 还具有进行以主色和该主色以外的至少一个颜色的副色进行打印的彩色打印装置(235),It also has a color printing device (235) for printing with a primary color and at least one secondary color other than the primary color, 所述打印装置(235)以所述主色来打印所述结算处理打印数据、以所述至少一个颜色的副色来打印所述图像数据。The printing means (235) prints the settlement processing print data in the primary color, and prints the image data in a secondary color of the at least one color. 15.一种商品销售数据处理装置,其特征在于:在具有:权利要求13所述的打印装置;通过将所述结算处理打印数据和所述图像附加设定指令发送到所述打印装置(50)来控制所述打印装置(50)的主计算机(40)的商品销售数据处理装置中,15. A product sales data processing device, characterized in that it has: the printing device according to claim 13; by sending the settlement processing print data and the image additional setting instruction to the printing device (50 ) to control the commodity sales data processing device of the host computer (40) of the printing device (50), 所述主计算机(40)具有:生成所述结算处理打印数据的结算处理打印数据生成装置(202);The host computer (40) has: settlement processing print data generating means (202) for generating the settlement processing print data; 从所述结算处理打印数据中检索表示所述图像数据的打印位置的规定的字列并抽出该规定的字列的字列抽出装置(216);A character string extracting means (216) for retrieving a predetermined character string indicating a printing position of the image data from the settlement processing print data and extracting the predetermined character string; 取得由被抽出的所述规定的字列所特定的行号码的行号码取得装置(217);a line number obtaining means (217) for obtaining a line number specified by the extracted predetermined character string; 根据取得的所述行号码、生成所述图像附加设定指令的图像附加设定指令生成装置(203);An image addition setting instruction generating device (203) for generating the image addition setting instruction according to the obtained line number; 将结算处理打印数据及所述图像附加设定指令发送到所述打印装置(50)的发送装置(205)。A sending device (205) of the printing device (50) sends the settlement processing print data and the image addition setting command to the printing device (50). 16.一种POS系统,其特征在于:由权利要求15所述的商品销售数据处理装置(20)和通过网络与所述商品销售数据处理装置(20)相连接并管理该商品销售数据处理装置(20)的POS服务器(30)构成。16. A POS system, characterized in that: the commodity sales data processing device (20) according to claim 15 is connected with the commodity sales data processing device (20) through a network and manages the commodity sales data processing device The POS server (30) of (20) constitutes.
CNB2003101010337A 2002-10-11 2003-10-10 Control method of printing device, receipt print data generation method Expired - Fee Related CN100492423C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2002298995 2002-10-11
JP2002298994 2002-10-11
JP2002298994A JP4284963B2 (en) 2002-10-11 2002-10-11 Printing apparatus control method, program for realizing the same, recording medium, printer driver, merchandise sales data processing apparatus, and POS system

Publications (2)

Publication Number Publication Date
CN1497505A true CN1497505A (en) 2004-05-19
CN100492423C CN100492423C (en) 2009-05-27

Family

ID=32288257

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101010337A Expired - Fee Related CN100492423C (en) 2002-10-11 2003-10-10 Control method of printing device, receipt print data generation method

Country Status (2)

Country Link
JP (1) JP4284963B2 (en)
CN (1) CN100492423C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081824A (en) * 2009-11-12 2011-06-01 东芝泰格有限公司 Commodity sales data processing apparatus and control method therefor
CN103226884A (en) * 2008-01-24 2013-07-31 精工爱普生株式会社 Receipt printing processing method, receipt printing processing system and printer
CN103223790A (en) * 2012-01-25 2013-07-31 精工爱普生株式会社 Recording device, control device, control method for a recording device, and a recording medium
CN104063189A (en) * 2013-03-21 2014-09-24 精工爱普生株式会社 Print Control Method, Print Control Device, And Storage Medium
CN102722940B (en) * 2011-03-23 2016-05-25 精工电子有限公司 Printer, Method of printing and program
CN106133798A (en) * 2014-04-04 2016-11-16 精工爱普生株式会社 The control method of POS terminal, POS system and POS terminal
CN109615801A (en) * 2017-09-21 2019-04-12 卡西欧计算机株式会社 Recording medium, management terminal, and management method of turnover data processing device
CN109783037A (en) * 2019-01-02 2019-05-21 上海济强电子科技有限公司 A kind of instruction of print control and control method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103226884A (en) * 2008-01-24 2013-07-31 精工爱普生株式会社 Receipt printing processing method, receipt printing processing system and printer
CN102081824A (en) * 2009-11-12 2011-06-01 东芝泰格有限公司 Commodity sales data processing apparatus and control method therefor
CN102722940B (en) * 2011-03-23 2016-05-25 精工电子有限公司 Printer, Method of printing and program
CN103223790A (en) * 2012-01-25 2013-07-31 精工爱普生株式会社 Recording device, control device, control method for a recording device, and a recording medium
CN103223790B (en) * 2012-01-25 2016-03-16 精工爱普生株式会社 The control method of tape deck, control device, tape deck and recording medium
CN104063189A (en) * 2013-03-21 2014-09-24 精工爱普生株式会社 Print Control Method, Print Control Device, And Storage Medium
CN104063189B (en) * 2013-03-21 2017-12-19 精工爱普生株式会社 Print control program, print control unit
CN106133798A (en) * 2014-04-04 2016-11-16 精工爱普生株式会社 The control method of POS terminal, POS system and POS terminal
CN109615801A (en) * 2017-09-21 2019-04-12 卡西欧计算机株式会社 Recording medium, management terminal, and management method of turnover data processing device
CN109783037A (en) * 2019-01-02 2019-05-21 上海济强电子科技有限公司 A kind of instruction of print control and control method

Also Published As

Publication number Publication date
CN100492423C (en) 2009-05-27
JP2004133778A (en) 2004-04-30
JP4284963B2 (en) 2009-06-24

Similar Documents

Publication Publication Date Title
CN1287334C (en) Printing method, program and apparatus, commodity sale data processing apparatus, pos system
US9672456B2 (en) Image processing device, printing device, and image processing method
US6789482B2 (en) Printing method, recording medium containing a program for applying the printing method, printer, printer driver, POS terminal, and POS system
CN1446693A (en) Printing system, POS system, printing control method, colour setup device and method
CN1702695A (en) Printing system, POS system, connection device, and control method and control program for printing system
CN1240550C (en) Apparatus and method for two-color printing based on single color data
CN1497505A (en) Control method of printing device, receipt print data generation method
EP1408465B1 (en) Method of controlling printing apparatus in POS systems
JP4492188B2 (en) POS terminal control method, receipt print data generation method, program, printing apparatus, merchandise sales data processing apparatus, and POS system
JP2004072774A (en) Processor readable medium and multi-functional device
JP4492191B2 (en) POS terminal control method and program
CN1187681C (en) Designation making device, designation making method and recording medium
HK1062602A (en) Methods of controlling a printing apparatus and creating print data of receipts
JP4341326B2 (en) Printing method, printing apparatus, printer driver, merchandise sales data processing apparatus, and POS system
JP4168722B2 (en) Receipt print data generation method, program for realizing the same, recording medium, and printing apparatus
CN1892572A (en) Print system
CN1892571A (en) Print system
JP4492261B2 (en) PRINT CONTROL DEVICE, CONTROL METHOD AND PROGRAM FOR PRINT CONTROL DEVICE
HK1061293B (en) Method of printing, program and apparatus for printing, merchandise sales data processing apparatus, and pos system
JP2004013630A (en) Printer, printer driver, printing system, POS system, printer control method, print data generation method, program for causing a computer to execute these methods, and recording medium thereof
JP2006301737A (en) Image registration apparatus, image registration method, image registration program, and image preview program
EP1396808A1 (en) Method and apparatus of printing payment transaction information, program, printer driver and point of sale system for realising the same
HK1057027B (en) The printing system, the printer, the pos system, the color setting device and the method, the printer driver and the printing control method
JP2002091428A (en) Picture processor and method therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1062602

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1062602

Country of ref document: HK

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090527

Termination date: 20171010

CF01 Termination of patent right due to non-payment of annual fee