JP5827025B2 - Order management system and control device - Google Patents

Order management system and control device Download PDF

Info

Publication number
JP5827025B2
JP5827025B2 JP2011083750A JP2011083750A JP5827025B2 JP 5827025 B2 JP5827025 B2 JP 5827025B2 JP 2011083750 A JP2011083750 A JP 2011083750A JP 2011083750 A JP2011083750 A JP 2011083750A JP 5827025 B2 JP5827025 B2 JP 5827025B2
Authority
JP
Japan
Prior art keywords
slip
print data
data
order
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011083750A
Other languages
Japanese (ja)
Other versions
JP2012221046A (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 Solutions Inc.
Original Assignee
Seiko Solutions Inc.
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 Solutions Inc. filed Critical Seiko Solutions Inc.
Priority to JP2011083750A priority Critical patent/JP5827025B2/en
Publication of JP2012221046A publication Critical patent/JP2012221046A/en
Application granted granted Critical
Publication of JP5827025B2 publication Critical patent/JP5827025B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、外食産業等に用いられる注文管理システム、制御装置及び伝票印字制御方法に関する。   The present invention relates to an order management system, a control device, and a slip printing control method used in the restaurant industry and the like.

ファミリーレストランや居酒屋などの外食産業では、注文管理システムを導入している。注文管理システムでは、接客担当の店員がハンディーターミナルにお客様の注文を入力すると、ハンディーターミナルは、入力された注文内容を無線によってコントローラへ送信する。コントローラは、受信した注文内容の伝票(調理伝票)を印字させるための印字データをプリンタへ送信する。プリンタは、コントローラから受信した印字データを印字し、厨房のスタッフは、印字された伝票によって注文内容を確認し、注文された料理の調理を行う。   In the restaurant industry such as family restaurants and taverns, an order management system is introduced. In the order management system, when a clerk in charge of customer service inputs a customer order to the handy terminal, the handy terminal transmits the input order contents to the controller by radio. The controller transmits print data for printing the received order contents slip (cooking slip) to the printer. The printer prints the print data received from the controller, and the kitchen staff confirms the order contents with the printed slip and cooks the ordered food.

伝票を印字するプリンタでは、印字データを受信してから印字を完了するまでに時間がかかる。そのため、コントローラからの印字データの送信が正常に完了したとしても、印字が完了するまでの間に何らかの原因によりプリンタの電源断が発生した場合、受信した印字データが消えて伝票を印字できず、厨房のスタッフが注文された料理を調理できないことがある。   In a printer that prints a slip, it takes time to complete printing after receiving print data. Therefore, even if the transmission of the print data from the controller is completed normally, if the printer power is interrupted for some reason until the printing is completed, the received print data will disappear and the slip cannot be printed. The kitchen staff may not be able to cook the food ordered.

その対策として、例えば、プリンタが、受信した印字データをデータバックアップ付きメモリに保持しておき、電源がオフになっても印字データが消えないようにしておくことが考えられる。プリンタは、電源が再投入されると、メモリに保持していた印字データを読み出して印字する。しかし、印字データに手書き文字の画像データやロゴマークなどの画像データが含まれていた場合、印字データのデータ量が大きくなる。よって、バックアップのために大容量の不揮発メモリが必要となり、プリンタのコストが高くなってしまう。   As a countermeasure, for example, the printer may hold the received print data in a memory with data backup so that the print data does not disappear even when the power is turned off. When the power is turned on again, the printer reads and prints the print data held in the memory. However, if the print data includes image data of handwritten characters or logo marks, the amount of print data increases. Therefore, a large-capacity nonvolatile memory is required for backup, and the cost of the printer is increased.

そこで、特許文献1では、注文管理システムのプリンタが、電源断等によって印字データを印字できなかった場合、電源が再投入されたときにコントローラへ印字データの再送を要求し、この要求に対応してコントローラから再送された印字データを印字している。   Therefore, in Patent Document 1, when the printer of the order management system cannot print the print data due to power interruption or the like, the controller requests the controller to resend the print data when the power is turned on again. The print data resent from the controller is printed.

特開2007−102331号公報JP 2007-102331 A

特許文献1では、コントローラは、印字データを特定するデータ特定情報、例えば、伝票番号を印字データに付加してプリンタに送信している。プリンタは、伝票の印字データを受信すると、その印字データに付加されたデータ特定情報をデータバックアップ付きメモリに保存し、印字完了後にメモリから削除する。プリンタは、印字データの印字完了前に電源断が発生し、再び電源が投入されてコントローラと接続できる状態になったときには、メモリに保存しているデータ特定情報を設定したリカバリ印字要求コマンドをコントローラに送信する。コントローラは、リカバリ印字要求コマンドに設定されているデータ特定情報により特定される印字データをプリンタに再送信する。これにより、プリンタに大きなメモリ容量の不揮発メモリを備える必要がないため、プリンタのコストを抑えながら、電源断によって印字されない伝票が発生しないようにすることができる。   In Patent Literature 1, the controller adds data specifying information for specifying print data, for example, a slip number to the print data and transmits it to the printer. When the printer receives the print data of the slip, the printer stores the data specifying information added to the print data in the memory with data backup, and deletes it from the memory after the printing is completed. When the printer power is turned off before printing of the print data is completed and the printer is turned on again and can be connected to the controller, the printer issues a recovery print request command that sets the data identification information stored in the memory. Send to. The controller retransmits the print data specified by the data specifying information set in the recovery print request command to the printer. Thus, since it is not necessary to provide the printer with a nonvolatile memory having a large memory capacity, it is possible to reduce the cost of the printer and prevent a slip that is not printed due to a power interruption.

しかし、通常コントローラは、送信対象の印字データが複数ある場合、印字データの送信トリガの発生順に送信を行う。そのため、コントローラは、プリンタにおける電源断の発生後、印字データの再送要求(リカバリ印字要求コマンド)を受信するまでの間に送信できなかった伝票印字データを、再送が要求された印字データよりも先にプリンタに送信してしまうことがある。   However, when there are a plurality of print data to be transmitted, the normal controller performs transmission in the order of generation of print data transmission triggers. Therefore, the controller prints the slip print data that could not be transmitted before the print data retransmission request (recovery print request command) was received after the printer power failure occurred before the print data requested to be retransmitted. May be sent to the printer.

例えば、図33に示すように、ハンディーターミナルがコントローラへ注文1を送信すると、コントローラは、注文1の伝票を印字させるための伝票1印字データをプリンタに送信する。プリンタは、伝票1印字データの受信応答を返送し、伝票1を印字する。さらに、ハンディーターミナルがコントローラへ注文2、注文3を送信すると、コントローラは注文2、注文3の伝票を印字させるための伝票2印字データ、伝票3印字データをプリンタに送信する。プリンタが受信応答をコントローラに返送した後、伝票2の印字が完了する前に電源断が発生しても、ハンディーターミナルからはさらに注文4、注文5がコントローラへ送信され、コントローラは注文4、注文5から伝票4印字データ、伝票5印字データを生成する。しかし、コントローラは、伝票4印字データをプリンタへ送信しても、受信応答が返送されないため、伝票4印字データを繰り返し再送する。   For example, as shown in FIG. 33, when the handy terminal transmits order 1 to the controller, the controller transmits slip 1 print data for printing the slip of order 1 to the printer. The printer returns a receipt response for the slip 1 print data and prints the slip 1. Further, when the handy terminal transmits order 2 and order 3 to the controller, the controller transmits slip 2 print data and slip 3 print data for printing the slips of order 2 and order 3 to the printer. Even if the power is cut off before the printing of slip 2 is completed after the printer returns the reception response to the controller, order 4 and order 5 are further sent from the handy terminal to the controller. 5 generates slip 4 print data and slip 5 print data. However, even if the controller 4 transmits the slip 4 print data to the printer, the reception response is not returned, so the slip 4 print data is retransmitted repeatedly.

プリンタの電源が再投入されると、プリンタは接続要求をコントローラへ送信するとともに、印字が完了していないことを検出した伝票2印字データ及び伝票3印字データの再送要求をコントローラへ送信する。しかし、コントローラが、接続要求に対する応答を返送した時点で、伝票4印字データ、伝票5印字データをプリンタに送信してしまい、その後に、再送が要求された伝票2印字データ及び伝票3印字データを送信することがある。これによって、プリンタは、後から発生した注文4、注文5の伝票を、その前に発生した注文2、注文3の伝票よりも先に印字する。その結果、厨房では、注文順に調理が行われず、後から注文を受けたお客様へ先に注文を受けたお客様より早く料理を提供してしまうことがある。   When the power of the printer is turned on again, the printer transmits a connection request to the controller, and transmits a slip 2 print data and a resend request for the slip 3 print data, which have been detected that printing has not been completed, to the controller. However, when the controller returns a response to the connection request, the slip 4 print data and the slip 5 print data are transmitted to the printer, and then the slip 2 print data and the slip 3 print data requested to be retransmitted. May be sent. As a result, the printer prints the slips for the order 4 and the order 5 that are generated later before the slips for the order 2 and the order 3 that are generated earlier. As a result, in the kitchen, cooking is not performed in the order of the order, and the customer who has received the order later may provide the food earlier than the customer who has received the order earlier.

本発明は、このような事情を考慮してなされたものであり、プリンタに大容量の不揮発メモリを搭載する必要なく、プリンタの電源断が発生した場合であっても、注文の発生順に伝票を印字することができる注文管理システム、制御装置及び伝票印字制御方法を提供する。   The present invention has been made in consideration of such circumstances, and it is not necessary to mount a large-capacity nonvolatile memory in the printer, and even when the printer power is cut off, the slips are arranged in the order in which the orders are generated. An order management system capable of printing, a control device, and a slip printing control method are provided.

本発明の一態様は、制御装置及び印字装置を有する注文管理システムであって、制御装置及び印字装置を有する注文管理システムであって、前記制御装置は、注文を入力する装置から注文データを受信する注文受信部と、前記注文受信部が受信した注文データと当該注文データが示す注文の注文時刻とを記憶部に登録する注文処理部と、前記注文受信部が受信した注文データに基づいて伝票の印字データを生成するとともに当該印字データを識別する識別情報を生成して当該識別情報を前記注文データと対応付けて前記記憶部に登録し、前記印字データ及び前記識別情報を前記印字装置へ送信し、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信する伝票処理部と、前記印字装置から再送対象の前記印字データの識別情報を受信し、受信した前記識別情報により特定される前記印字データを、前記伝票処理部が送信後に受信応答を受信していない前記印字データ及び前記伝票処理部が未送信の前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記印字装置に送信する伝票再発行処理部と、を備え、前記印字装置は、印字を行う印字部と、印字が完了していない印字データの識別情報を記憶する不揮発メモリと、前記制御装置から前記印字データ及び当該印字データの識別情報を受信し、受信応答を返送する受信部と、前記受信部が受信した前記印字データの識別情報を、受信した順に前記不揮発メモリに書き込む登録部と、前記受信部が受信した前記印字データを前記印字部に印字させる印字処理部と、印字が完了した前記印字データの識別情報を前記不揮発メモリから削除する削除部と、当該印字装置の電源が投入されたときに、前記不揮発メモリに記憶されている前記印字データの識別情報を再送対象として前記制御装置に送信する未印字伝票通知部と、を備える、ことを特徴とする注文管理システムである。   One aspect of the present invention is an order management system having a control device and a printing device, the order management system having a control device and a printing device, wherein the control device receives order data from a device for inputting an order. An order receiving unit that registers the order data received by the order receiving unit and the order time of the order indicated by the order data in the storage unit, and a slip based on the order data received by the order receiving unit. Generating print data, generating identification information for identifying the print data, registering the identification information in the storage unit in association with the order data, and transmitting the print data and the identification information to the printing apparatus A slip processing unit that receives a reception response from the printing device corresponding to the transmitted print data and the identification information, and the print to be retransmitted from the printing device. The print data not received by the slip processing unit after the slip processing unit has transmitted the print data specified by the received identification information and the slip processing unit not yet transmitted. A slip reissuing processor that transmits the print data to the print device in order of the order time of the order data specified by the identification information before the print data, and the print device includes a print unit that performs printing; A non-volatile memory that stores identification information of print data that has not been printed, a reception unit that receives the print data and the identification information of the print data from the control device, and returns a reception response; and A registration unit that writes identification information of the received print data in the nonvolatile memory in the order received, and a print processing unit that causes the print unit to print the print data received by the reception unit A deletion unit that deletes the identification information of the print data that has been printed from the nonvolatile memory, and resends the identification information of the print data stored in the nonvolatile memory when the printing apparatus is powered on. An order management system comprising: an unprinted slip notification unit that is transmitted as an object to the control device.

また、本発明の一態様は、上述した注文管理システムであって、前記伝票再発行処理部は、受信した前記識別情報により特定される前記印字データに、再送を示す情報を印字させるデータを付加した印字データを生成し、生成した前記印字データを、前記伝票処理部が送信後に受信応答を受信していない前記印字データ及び前記伝票処理部が未送信の前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記印字装置に送信する、ことを特徴とする。   Also, one aspect of the present invention is the order management system described above, wherein the slip reissue processing unit adds data for printing information indicating retransmission to the print data specified by the received identification information. The print data that has not been received after the slip processing unit has transmitted the print data and the print data that has not been transmitted by the slip processing unit. The order data is transmitted to the printing device in order from the earliest order time of the order data.

また、本発明の一態様は、上述した注文管理システムであって、前記伝票再発行処理部は、受信した前記識別情報により特定される前記印字データにより印字される伝票に、再送を示す情報を示すヘッダを付加した印字データを生成し、生成した前記印字データを、前記伝票処理部が送信後に受信応答を受信していない前記印字データ及び前記伝票処理部が未送信の前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記印字装置に送信する、ことを特徴とする。   Also, one aspect of the present invention is the order management system described above, wherein the slip reissue processing unit adds information indicating retransmission to a slip printed by the print data specified by the received identification information. Print data to which a header is added, and the generated print data is sent before the slip processing unit has received a reception response and the print data that has not been received by the slip processing unit. The order data specified by the identification information is transmitted to the printing device in the order of the order time of the order data.

また、本発明の一態様は、上述した注文管理システムであって、再送を示す前記情報は、受信した前記識別情報により特定される前記印字データの生成元となった前記注文データが示す注文の注文時刻からの経過時間である、ことを特徴とする。   One aspect of the present invention is the above-described order management system, wherein the information indicating retransmission is the order data indicated by the order data that is the generation source of the print data specified by the received identification information. It is an elapsed time from the order time.

また、本発明の一態様は、上述した注文管理システムであって、前記印字装置は、前記未印字伝票通知部が送信した前記印字データの識別情報に対応して前記制御装置から受信した前記印字データに、再送された印字データによる印字であることを示す情報を印字させる印字データを付加する印字情報付加部をさらに備える、ことを特徴とする。   One aspect of the present invention is the order management system described above, wherein the printing device receives the print received from the control device in response to identification information of the print data transmitted by the unprinted slip notification unit. It further includes a print information adding unit for adding print data for printing information indicating that printing is performed by the retransmitted print data to the data.

また、本発明の一態様は、上述した注文管理システムであって、前記印字データは、前記注文データが示す注文の明細を単一の伝票として印字させる短冊印字データを1以上含み、前記印字装置は、前記印字部が前記印字データに含まれる前記短冊印字データの印字を完了した数である印字完了数を、当該印字データの識別情報と対応付けて前記不揮発メモリに書き込む更新部をさらに備え、前記印字情報付加部は、前記未印字伝票通知部が送信した前記印字データの識別情報に対応して再送された前記印字データに、当該印字データの識別情報に対応して前記不揮発メモリに記憶されている前記印字完了数に基づく情報を印字させる印字データを追加する、ことを特徴とする。   Also, one aspect of the present invention is the order management system described above, wherein the print data includes one or more strip print data for printing the order details indicated by the order data as a single slip, and the printing device Further includes an update unit that writes a print completion number, which is the number of prints of the strip print data included in the print data, to the nonvolatile memory in association with identification information of the print data, The print information adding unit stores the print data retransmitted corresponding to the identification information of the print data transmitted by the unprinted slip notification unit in the nonvolatile memory corresponding to the identification information of the print data. Print data for printing information based on the number of print completions is added.

また、本発明の一態様は、上述した注文管理システムであって、前記印字情報付加部は、前記再送された前記印字データに含まれる前記短冊印字データに、当該印字データの識別情報に対応して前記不揮発メモリに記憶されている前記印字完了数に基づいて、再印字であることを示す情報あるいは未印字であることを示す情報を印字させる印字データを追加する、ことを特徴とする。   Also, one aspect of the present invention is the order management system described above, wherein the print information adding unit corresponds to identification information of the print data in the strip print data included in the retransmitted print data. Print data for printing information indicating reprinting or information indicating non-printing is added based on the number of print completions stored in the nonvolatile memory.

また、本発明の一態様は、上述した注文管理システムであって、前記印字データは、前記注文データが示す注文の明細を単一の伝票として印字させる短冊印字データを1以上含み、前記印字装置は、前記印字部が前記印字データに含まれる前記短冊印字データの印字を完了した数である印字完了数を、当該印字データの識別情報と対応付けて前記不揮発メモリに書き込む更新部をさらに備え、前記未印字伝票通知部は、前記印字装置の電源が投入されたときに、前記不揮発メモリに記憶されている前記印字データの識別情報及び前記印字完了数を前記制御装置に送信し、前記伝票再発行処理部は、前記印字装置から受信した前記印字データの識別情報及び前記印字完了数を受信し、受信した前記識別情報により特定される前記印字データに含まれる短冊印字データのうち、受信した前記印字完了数から印字されていないと判断される短冊印字データのみを含む印字データを生成し、生成した印字データを、前記伝票処理部が送信後に受信応答を受信していない前記印字データ及び前記伝票処理部が未送信の前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記印字装置に送信する、ことを特徴とする。   Also, one aspect of the present invention is the order management system described above, wherein the print data includes one or more strip print data for printing the order details indicated by the order data as a single slip, and the printing device Further includes an update unit that writes a print completion number, which is the number of prints of the strip print data included in the print data, to the nonvolatile memory in association with identification information of the print data, The unprinted slip notification unit transmits the identification information of the print data stored in the nonvolatile memory and the number of print completions to the control device when the power of the printing device is turned on. The issuance processing unit receives the identification information of the print data received from the printing apparatus and the number of print completions, and includes them in the print data specified by the received identification information. Print data including only the strip print data determined not to be printed from the received number of print completions received, and the receipt processing response is received after the slip processing unit transmits the generated print data. The print data not received and the slip processing unit transmit the print data to the printing device in the order of the order time of the order data specified by the identification information before the untransmitted print data. And

なお、上述した注文管理システムにおいて、前記印字データは、前記短冊印字データの間に紙の切断を指示するコマンドを含み、前記更新部は、前記印字データの識別情報と対応付けて、前記印字部が当該印字データに含まれる前記コマンドが実行された数を前記印字完了数として前記不揮発メモリに書き込む、ようにしてもよい。   In the order management system described above, the print data includes a command for instructing cutting of paper between the strip print data, and the update unit is associated with identification information of the print data, and the print unit May be written in the non-volatile memory as the number of print completions, the number of execution of the command included in the print data.

また、本発明の一態様は、上述した注文管理システムであって、前記伝票処理部は、前記注文受信部が受信した注文データに基づいて複数種類の伝票の印字データを生成するとともに当該印字データそれぞれを識別する識別情報を生成し、前記注文データと前記伝票の伝票番号と前記印字データそれぞれの識別情報とを対応付けて前記記憶部に登録し、前記印字データ及び当該印字データの識別情報の組それぞれを、当該印字データの伝票の種類に対応した前記印字装置へ送信し、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信し、前記伝票再発行処理部は、前記印字装置から再送対象の伝票の伝票番号を受信し、受信した前記伝票番号により特定される前記注文データに基づいて生成した前記複数の種類の印字データを前記印字装置に返送するとともに、返送した前記印字データの識別情報と再送済みを示す情報とを対応づけて前記記憶部に登録し、前記伝票処理部が再送対象の伝票の伝票番号を送信した前記印字装置とは異なる他の前記印字装置から前記識別情報を再送対象として受信し、受信した前記識別情報に対応して再送済みを示す情報が前記記憶部に登録されている場合、削除要求を前記他の印字装置に返送し、受信した前記識別情報に対応して再送済みを示す情報が前記記憶部に登録されていない場合、前記識別情報により特定される前記印字データを、前記伝票処理部が送信後に受信応答を受信していない前記印字データ及び前記伝票処理部が未送信の前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記他の印字装置に送信し、前記印字装置の未印字伝票通知部は、再発行対象の伝票の伝票番号を前記制御装置に送信し、前記他の印字装置の前記削除部は、前記未印字伝票通知部が送信した前記印字データの識別情報に対応して前記制御装置から削除要求を受信した場合、送信した前記識別情報を前記不揮発メモリから削除する、ことを特徴とする。   One aspect of the present invention is the order management system described above, wherein the slip processing unit generates print data of a plurality of types of slips based on the order data received by the order receiving unit, and the print data Generating identification information for identifying each of them, registering the order data, the slip number of the slip, and the identification information of each print data in the storage unit, and registering the print data and the identification information of the print data; Each set is transmitted to the printing device corresponding to the type of slip of the print data, the reception response is received from the printing device corresponding to the transmitted print data and the identification information, and the slip reissue processing unit Receives the slip number of the slip to be retransmitted from the printing device, and generates the plurality of pieces generated based on the order data specified by the received slip number. The print data of the same type is returned to the printing apparatus, the identification information of the returned print data is associated with the information indicating that the data has been retransmitted, and registered in the storage unit. When the identification information is received as a retransmission target from another printing apparatus different from the printing apparatus that transmitted the number, and information indicating that retransmission has been performed is registered in the storage unit corresponding to the received identification information In the case where information indicating that retransmission has been completed is not registered in the storage unit in response to the received identification information, the print data specified by the identification information is returned to the other printing device. The print data for which the slip processing unit has not received a reception response after transmission, and the order data specified by the identification information prior to the print data for which the slip processing unit has not been transmitted. The sentence is sent to the other printing device in order of sentence time, and the unprinted slip notification unit of the printing device sends the slip number of the slip to be reissued to the control device, and the deletion of the other printing device. The unit deletes the transmitted identification information from the non-volatile memory when receiving a deletion request from the control device corresponding to the identification information of the print data transmitted by the unprinted slip notification unit. To do.

また、本発明の一態様は、制御装置及び印字装置を有する注文管理システムに用いられる前記制御装置であって、注文を入力する装置から注文データを受信する注文受信部と、前記注文受信部が受信した注文データと当該注文データが示す注文の注文時刻とを記憶部に登録する注文処理部と、前記注文受信部が受信した注文データに基づいて伝票の印字データを生成するとともに当該印字データを識別する識別情報を生成して当該識別情報を前記注文データと対応付けて前記記憶部に登録し、前記印字データ及び前記識別情報を前記印字装置へ送信し、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信する伝票処理部と、前記印字装置から再送対象の前記印字データの識別情報を受信し、受信した前記識別情報により特定される前記印字データを、前記伝票処理部が送信後に受信応答を受信していない前記印字データ及び前記伝票処理部が未送信の前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記印字装置に送信する伝票再発行処理部と、を備えることを特徴とする制御装置である。   One aspect of the present invention is the control device used in an order management system having a control device and a printing device, wherein the order receiving unit that receives order data from a device that inputs an order, and the order receiving unit includes An order processing unit that registers the received order data and the order time of the order indicated by the order data in the storage unit, and generates print data of the slip based on the order data received by the order receiving unit and the print data Generating identification information for identification, registering the identification information in the storage unit in association with the order data, transmitting the print data and the identification information to the printing apparatus, and transmitting the print data and the identification information Corresponding to the slip processing unit that receives the reception response from the printing device, and the identification information of the print data to be retransmitted from the printing device. The print data specified by the information is specified by the identification information before the print data for which the slip processing unit has not received a reception response after transmission and the print data for which the slip processing unit has not been transmitted. And a slip reissuing processor that transmits the order data to the printing device in order of the ordering time of the order data.

また、本発明の一態様は、制御装置及び印字装置を有する注文管理システムに用いられる伝票印字制御方法であって、前記制御装置において、注文受信部が、注文を入力する装置から注文データを受信する注文受信過程と、注文処理部が、前記注文受信部が受信した注文データと当該注文データが示す注文の注文時刻とを記憶部に登録する注文処理過程と、伝票処理部が、前記注文受信過程において受信した注文データに基づいて伝票の印字データを生成するとともに当該印字データを識別する識別情報を生成して当該識別情報を前記注文データと対応付けて前記記憶部に登録し、前記印字データ及び前記識別情報を前記印字装置へ送信する印字データ送信過程と、前記伝票処理部が、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信する応答受信過程と、伝票再発行処理部が、前記印字装置から再送対象の前記印字データの識別情報を受信し、受信した前記識別情報により特定される前記印字データを、前記印字データ送信過程における送信後に前記応答受信過程において受信応答を受信していない前記印字データ及び前記印字データ送信過程において送信を行っていない前記印字データより先に、前記識別情報で特定される前記注文データの注文時刻の早い順に、前記印字装置に送信する伝票再発行過程と、前記印字装置において、受信部が、前記制御装置から前記印字データ及び当該印字データの識別情報を受信し、受信応答を返送する受信過程と、登録部が、前記受信過程において受信した前記印字データの識別情報を、受信した順に不揮発メモリに書き込む登録過程と、印字処理部が、前記受信過程において受信した前記印字データを印字部に印字させる印字処理過程と、削除部が、印字が完了した前記印字データの識別情報を前記不揮発メモリから削除する削除過程と、未印字伝票通知部が、当該印字装置の電源が投入されたときに、前記不揮発メモリに記憶されている前記印字データの識別情報を再送対象として前記制御装置に送信する未印字伝票通知過程と、を有することを特徴とする伝票印字制御方法である。   According to another aspect of the present invention, there is provided a slip printing control method used in an order management system having a control device and a printing device, wherein the order receiving unit receives order data from a device for inputting an order. The order receiving process, the order processing unit registers the order data received by the order receiving unit and the order time of the order indicated by the order data in the storage unit, and the slip processing unit receives the order. Generating print data of the slip based on the order data received in the process, generating identification information for identifying the print data, registering the identification information in the storage unit in association with the order data, and printing data And a print data transmission process for transmitting the identification information to the printing apparatus, and the slip processing unit corresponds to the print data and the identification information transmitted in advance. A response reception process of receiving a reception response from the printing apparatus, and a slip reissue processing unit receives identification information of the print data to be retransmitted from the printing apparatus, and the print data specified by the received identification information The identification information is specified prior to the print data that has not been received in the response reception process after transmission in the print data transmission process and the print data that has not been transmitted in the print data transmission process. A slip reissuing process for transmitting to the printing device in order of the order time of the order data, and in the printing device, the receiving unit receives and receives the print data and the identification information of the print data from the control device. A receiving process for returning a response, and the registration unit, in the order in which the identification information of the print data received in the receiving process is received. A registration process for writing into the volatile memory, a printing process in which the print processing unit prints the print data received in the reception process on the printing unit, and a deletion unit stores the identification information of the print data that has been printed in the nonvolatile memory. Deletion process for deleting from the memory, and an unprinted slip notification unit transmits the identification information of the print data stored in the non-volatile memory to the control device as a retransmission target when the printing device is powered on And a non-printed slip notification process.

本発明によれば、プリンタに大容量の不揮発メモリを搭載する必要なく、プリンタの電源断が発生した場合であっても、注文の発生順に伝票を印字することができる。   According to the present invention, it is not necessary to mount a large-capacity non-volatile memory in the printer, and even when the printer is turned off, the slips can be printed in the order in which the orders are generated.

本発明の第1の実施形態による注文管理システムの構成を示すブロック図である。It is a block diagram which shows the structure of the order management system by the 1st Embodiment of this invention. 同実施形態によるコントローラの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the controller by the same embodiment. 同実施形態によるプリンタの内部構成を示すブロック図である。FIG. 2 is a block diagram illustrating an internal configuration of the printer according to the embodiment. 同実施形態による注文管理システムにおいて異なる対象をプリンタに印字させる場合のシーケンス図である。It is a sequence diagram in the case of making a printer print a different object in the order management system by the embodiment. 同実施形態による注文管理システムにおいて正常に伝票の印字が完了する場合のシーケンス図である。FIG. 10 is a sequence diagram in the case where the printing of the slip is normally completed in the order management system according to the embodiment. 図5の続きのシーケンス図である。FIG. 6 is a sequence diagram continued from FIG. 5. 同実施形態による注文管理システムにおいて伝票印字中にプリンタの電源断が発生したときのシーケンス図である。FIG. 10 is a sequence diagram when the printer power is cut off during slip printing in the order management system according to the embodiment. 図7の続きのシーケンス図である。FIG. 8 is a sequence diagram continued from FIG. 7. 同実施形態によるプリンタの電源起動時の処理フローである。4 is a processing flow at the time of power activation of the printer according to the embodiment. 同実施形態によるコントローラの注文処理フローである。It is an order processing flow of the controller by the embodiment. 第2の実施形態によるプリンタの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the printer by 2nd Embodiment. 同実施形態による注文管理システムにおいて正常に伝票の印字が完了する場合のシーケンス図である。FIG. 10 is a sequence diagram in the case where the printing of the slip is normally completed in the order management system according to the embodiment. 図12の続きのシーケンス図である。FIG. 13 is a sequence diagram continued from FIG. 12. 同実施形態において正常に印字が完了した伝票の出力例を示す図である。It is a figure which shows the example of an output of the voucher in which printing was completed normally in the same embodiment. 同実施形態による注文管理システムにおいて伝票印字中にプリンタの電源断が発生したときのシーケンス図である。FIG. 10 is a sequence diagram when the printer power is cut off during slip printing in the order management system according to the embodiment. 同実施形態において再送された伝票印字データに基づく伝票の出力例を示す図である。It is a figure which shows the example of an output of the slip based on the slip print data resent in the embodiment. 第3の実施形態によるコントローラの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the controller by 3rd Embodiment. 同実施形態によるプリンタの内部構成を示すブロック図である。FIG. 2 is a block diagram illustrating an internal configuration of the printer according to the embodiment. 同実施形態による注文管理システムにおいて伝票印字中にプリンタの電源断が発生したときのシーケンス図である。FIG. 10 is a sequence diagram when the printer power is cut off during slip printing in the order management system according to the embodiment. 同実施形態において再送された伝票印字データに基づく伝票の出力例を示す図である。It is a figure which shows the example of an output of the slip based on the slip print data resent in the embodiment. 第4の実施形態によるコントローラの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the controller by 4th Embodiment. 同実施形態のコントローラの注文処理フローを示す図である。It is a figure which shows the order processing flow of the controller of the embodiment. 同実施形態において再送された伝票印字データに基づく伝票の出力例を示す図である。It is a figure which shows the example of an output of the slip based on the slip print data resent in the embodiment. 第5の実施形態によるコントローラの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the controller by 5th Embodiment. 同実施形態によるプリンタの内部構成を示すブロック図である。FIG. 2 is a block diagram illustrating an internal configuration of the printer according to the embodiment. 同実施形態による他のプリンタの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the other printer by the embodiment. 同実施形態による注文管理システムにおいて伝票印字中にプリンタの電源断が発生したときのシーケンス図である。FIG. 10 is a sequence diagram when the printer power is cut off during slip printing in the order management system according to the embodiment. 図27の続きのシーケンス図である。FIG. 28 is a sequence diagram continued from FIG. 27. 図28の続きのシーケンス図である。FIG. 29 is a sequence diagram continued from FIG. 28. 図29の続きのシーケンス図である。FIG. 30 is a sequence diagram continued from FIG. 29. 図30の続きのシーケンス図である。FIG. 31 is a sequence diagram continued from FIG. 30. 同実施形態によるコントローラの注文処理フローである。It is an order processing flow of the controller by the embodiment. 従来の注文管理装置のシーケンス図である。It is a sequence diagram of the conventional order management apparatus.

以下、図面を参照しながら本発明の実施形態を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態による注文管理システムの全体構成を示す図である。同図に示すように、注文管理システムは、ハンディーターミナル10、コントローラ20(制御装置)、及び、プリンタ30(印字装置)を備えて構成される。同図においては、ハンディーターミナル10及びプリンタ30をそれぞれ1台のみ示しているが、複数台が備えられていてもよい。また、コントローラ20への通信を中継するため、店舗内に、図示しない中継装置を配置してもよい。
コントローラ20は、ハンディーターミナル10及びプリンタ30と無線により通信する。なお、同図において、コントローラ20とハンディーターミナル10の通信及びコントローラ20とプリンタ30の通信には無線を使用しているが、有線による通信であってもよい。また同図には含まれないが、ハンディーターミナル10の代わりに据え置き型の入力端末でもよい。
[First Embodiment]
FIG. 1 is a diagram showing the overall configuration of an order management system according to the first embodiment of the present invention. As shown in the figure, the order management system includes a handy terminal 10, a controller 20 (control device), and a printer 30 (printing device). In the figure, only one handy terminal 10 and one printer 30 are shown, but a plurality of handy terminals 10 and printers 30 may be provided. Further, in order to relay communication to the controller 20, a relay device (not shown) may be arranged in the store.
The controller 20 communicates with the handy terminal 10 and the printer 30 by radio. In the figure, wireless communication is used for communication between the controller 20 and the handy terminal 10 and communication between the controller 20 and the printer 30, but wired communication may also be used. Although not included in the figure, a stationary input terminal may be used instead of the handy terminal 10.

飲食店において接客担当者は、お客様のテーブル番号、注文された料理や飲み物、食事セットなどの注文品とその注文数量、接客担当を特定する担当識別情報、お客様の人数や客層などをハンディーターミナル10へ入力する。ハンディーターミナル10は、それらの入力内容を設定した注文データをコントローラ20へ送信する。
コントローラ20は、注文データに基づいて調理伝票等の伝票を印字させるための印字データ(以下、「伝票印字データ」と記載する。)を生成し、プリンタ30へ送信する。
プリンタ30は、コントローラ20から受信した伝票印字データを印字する。なお、コントローラ20は、伝票印字データ以外の印字データをプリンタ30へ送信することもある。
At the restaurant, the customer service representative will provide the customer's table number, ordered items such as ordered foods and drinks, meal sets and their order quantities, identification information for identifying the customer service, the number of customers and the customer base, etc. To enter. The handy terminal 10 transmits the order data in which the input contents are set to the controller 20.
The controller 20 generates print data (hereinafter referred to as “slip print data”) for printing a slip such as a cooking slip based on the order data, and transmits the print data to the printer 30.
The printer 30 prints the slip print data received from the controller 20. Note that the controller 20 may transmit print data other than the slip print data to the printer 30.

図2は、図1に示すコントローラ20の内部構成を示すブロック図であり、本実施形態と関係する機能ブロックのみ抽出して示してある。同図に示すように、コントローラ20は、第1送受信部21、処理部22、記憶部23及び第2送受信部24を備えて構成される。   FIG. 2 is a block diagram showing an internal configuration of the controller 20 shown in FIG. 1, and only functional blocks related to the present embodiment are extracted and shown. As shown in the figure, the controller 20 includes a first transmission / reception unit 21, a processing unit 22, a storage unit 23, and a second transmission / reception unit 24.

第1送受信部21は、ハンディーターミナル10との間で無線(または有線)によりデータの送受信を行う。第2送受信部24は、プリンタ30との間で無線(または有線)によりデータの送受信を行う。なお、図2においては、第1送受信部21と第2送受信部24を別々に記載しているが、ハードウエアとしては同一であってもよい。
記憶部23は、注文管理データと、送信が完了していない印字データとを記憶する。注文管理データは、注文データと、注文時刻と、伝票番号と、注文データから生成された伝票印字データを特定する識別コードとを対応付けたデータである。伝票番号は、コントローラ20がハンディーターミナル10から受信した注文データを識別可能に、且つ、受信した順番を特定可能に、コントローラ20により注文データ毎に生成される番号である。伝票印字データの識別コードは、コントローラ20により生成され、伝票印字データごとに割り振られるユニークなコードである。重複を避けるために、その一例として、伝票番号に日付情報や伝票の種類に関する情報などを加えたものなどが使用される。伝票印字データ以外の印字データの場合、識別コードは所定の値をとる。注文データは、接客担当者を特定する担当者コード、お客様が利用しているテーブルのテーブル番号、明細データを含む。明細データは、注文品毎に生成され、注文品とその注文数量を含む注文の明細を示す。従って、注文データには、1以上の明細データが含まれる。
The first transmission / reception unit 21 transmits / receives data to / from the handy terminal 10 wirelessly (or by wire). The second transmission / reception unit 24 transmits / receives data to / from the printer 30 wirelessly (or by wire). In FIG. 2, the first transmission / reception unit 21 and the second transmission / reception unit 24 are described separately, but the hardware may be the same.
The storage unit 23 stores order management data and print data that has not been transmitted. The order management data is data in which order data, order time, a slip number, and an identification code for specifying slip print data generated from the order data are associated with each other. The slip number is a number generated by the controller 20 for each order data so that the controller 20 can identify the order data received from the handy terminal 10 and can specify the order of reception. The identification code of the slip print data is a unique code generated by the controller 20 and assigned to each slip print data. In order to avoid duplication, for example, a slip number added with date information or information on the type of slip is used. In the case of print data other than slip print data, the identification code takes a predetermined value. The order data includes a person-in-charge code for identifying a person in charge of customer service, a table number of a table used by the customer, and detailed data. The detail data is generated for each order item, and indicates the order details including the order item and its order quantity. Accordingly, the order data includes one or more detailed data.

処理部22は、印字要求受信部220(注文受信部)、注文処理部221、伝票処理部222、伝票再発行処理部223及び印字データ生成部224を備えて構成される。
印字要求受信部220は、他の装置から送信された印字要求を受信する。
注文処理部221は、記憶部23に記憶されている注文管理データに、ハンディーターミナル10から受信した注文データと、注文時刻とを対応付けて追加登録する。注文時刻は、コントローラ20が注文データを受信した時刻でもよく、ハンディーターミナル10が注文データに付加してコントローラ20へ送信した注文時刻でもよい。
The processing unit 22 includes a print request receiving unit 220 (order receiving unit), an order processing unit 221, a slip processing unit 222, a slip reissue processing unit 223, and a print data generation unit 224.
The print request receiving unit 220 receives a print request transmitted from another device.
The order processing unit 221 additionally registers the order management data stored in the storage unit 23 in association with the order data received from the handy terminal 10 and the order time. The order time may be the time when the controller 20 receives the order data, or the order time that the handy terminal 10 adds to the order data and transmits it to the controller 20.

伝票処理部222は、受信した注文データに対して伝票番号を割り当てる。また、伝票処理部222は、注文データから伝票印字データを生成し、識別コードを割り当てる。伝票処理部222は、記憶部23に記憶されている注文管理データに、伝票印字データの生成に用いた注文データと対応付けて割り当てた伝票番号及び識別コードを書き込むとともに、生成した伝票印字データと割り当てた識別コードとをプリンタ30に送信するよう第2送受信部24に指示する。   The slip processing unit 222 assigns a slip number to the received order data. The slip processing unit 222 generates slip print data from the order data and assigns an identification code. The slip processing unit 222 writes the slip number and the identification code assigned in association with the order data used for generating the slip print data in the order management data stored in the storage unit 23, and the generated slip print data The second transmission / reception unit 24 is instructed to transmit the assigned identification code to the printer 30.

伝票再発行処理部223は、第2送受信部24がプリンタ30から受信した接続要求に識別コードが設定されている場合、記憶部23に記憶されている注文管理データを検索して当該識別コードに対応した注文データを特定する。伝票再発行処理部223は、特定した注文データから伝票印字データを生成し、生成した伝票印字データと当該伝票印字データの識別コードを接続要求の送信元のプリンタ30に送信するよう第2送受信部24へ指示する。
印字データ生成部224は、伝票印字データ以外の各種印字データを生成し、生成した印字データと、伝票印字データではないことを示す識別コードとをプリンタ30に送信するよう第2送受信部24に指示する。
When the identification code is set in the connection request received by the second transmitting / receiving unit 24 from the printer 30, the slip reissue processing unit 223 searches the order management data stored in the storage unit 23 to obtain the identification code. Identify the corresponding order data. The slip reissuing processing unit 223 generates slip print data from the specified order data, and transmits the generated slip print data and the identification code of the slip print data to the printer 30 that is the transmission source of the connection request. 24.
The print data generation unit 224 generates various print data other than the slip print data, and instructs the second transmission / reception unit 24 to transmit the generated print data and an identification code indicating that it is not the slip print data to the printer 30. To do.

図3は、図1に示すプリンタ30の内部構成を示すブロック図あり、本実施形態と関係する機能ブロックのみ抽出して示してある。同図に示すように、プリンタ30は、送受信部31(受信部)、処理部32、揮発メモリ33、不揮発メモリ34、印字部35及びカッター部36を備えて構成される。   FIG. 3 is a block diagram showing an internal configuration of the printer 30 shown in FIG. 1, and only functional blocks related to the present embodiment are extracted and shown. As shown in the figure, the printer 30 includes a transmission / reception unit 31 (reception unit), a processing unit 32, a volatile memory 33, a nonvolatile memory 34, a printing unit 35, and a cutter unit 36.

送受信部31は、コントローラ20との間で無線(または有線)によりデータの送受信を行う。揮発メモリ33は、コントローラ20から受信した印字データと、当該印字データの識別コードとを対応付けて記憶する。不揮発メモリ34は、例えば、バックアップ電池付きRAM(Random Access Memory)や、書き込み及び消去が可能なフラッシュROM(Read Only Memory)などである。不揮発メモリ34は、印字が完了していない伝票印字データの識別コードを記憶する。印字部35は、ロール紙への印字を行う。カッター部36は、ロール紙の未印字の部分から、印字された部分の紙をカットする。   The transmission / reception unit 31 transmits / receives data to / from the controller 20 wirelessly (or by wire). The volatile memory 33 stores the print data received from the controller 20 and the identification code of the print data in association with each other. The non-volatile memory 34 is, for example, a RAM (Random Access Memory) with a backup battery, a flash ROM (Read Only Memory) capable of writing and erasing, and the like. The nonvolatile memory 34 stores an identification code of slip print data that has not been printed. The printing unit 35 performs printing on roll paper. The cutter unit 36 cuts the printed portion of the paper from the unprinted portion of the roll paper.

処理部32は、通信処理部321(未印字伝票通知部)、記憶処理部322及び印字処理部323を備えて構成される。
通信処理部321は、プリンタ30の図示しない電源が投入されたときに、不揮発メモリ34に識別コードが記憶されている場合、当該識別コードと接続要求をコントローラ20へ送信するよう送受信部31に指示する。不揮発メモリ34に識別コードが記憶されていない場合、接続要求のみをコントローラ20へ送信するよう送受信部31に指示する。
記憶処理部322は、登録部324及び削除部325を備える。登録部324は、送受信部31を介してコントローラ20から受信した印字データとその識別コードとを対応付けて揮発メモリ33に書き込む。また、登録部324は、未印字の伝票印字データの識別コードを不揮発メモリ34に書き込む。削除部325は、印字が完了した伝票印字データとその識別コードを揮発メモリ33から削除するとともに、印字が完了した伝票印字データの識別コードを不揮発メモリ34から削除する。
印字処理部323は、揮発メモリ33から読み出した印字データを印字するよう印字部35に指示する。また、印字処理部323は、印字完了後にロール紙をカットするようカッター部36に指示するとともに、印字の完了を記憶処理部322へ通知する。
The processing unit 32 includes a communication processing unit 321 (unprinted slip notification unit), a storage processing unit 322, and a print processing unit 323.
The communication processing unit 321 instructs the transmission / reception unit 31 to transmit the identification code and the connection request to the controller 20 when the identification code is stored in the nonvolatile memory 34 when the printer 30 is turned on. To do. When the identification code is not stored in the nonvolatile memory 34, the transmission / reception unit 31 is instructed to transmit only the connection request to the controller 20.
The storage processing unit 322 includes a registration unit 324 and a deletion unit 325. The registration unit 324 writes the print data received from the controller 20 via the transmission / reception unit 31 and the identification code in the volatile memory 33 in association with each other. Further, the registration unit 324 writes the identification code of unprinted slip print data in the nonvolatile memory 34. The deletion unit 325 deletes the slip print data and the identification code that have been printed from the volatile memory 33, and deletes the identification code of the slip print data that has been printed from the nonvolatile memory 34.
The print processing unit 323 instructs the print unit 35 to print the print data read from the volatile memory 33. Further, the print processing unit 323 instructs the cutter unit 36 to cut the roll paper after the printing is completed, and notifies the storage processing unit 322 of the completion of the printing.

図4は、プリンタ30に異なる対象を印字させる場合の注文管理システムのシーケンス図である。
同図において、コントローラ20の印字要求受信部220は、印字要求の受信待ち状態である(ステップS102)。印字要求受信部220が、第1送受信部21を介して他の装置から印字要求を受信すると(ステップS104)、要求された印字対象が伝票であるかを判断する(ステップS106)。
印字要求受信部220が、要求された印字対象が伝票であると判断した場合(ステップS106:YES)、伝票処理部222は、伝票番号及び識別コードを割り当て、注文データに基づいて伝票印字データを生成する(ステップS108)。ここでは、伝票処理部222は、伝票1の伝票印字データである伝票1印字データを生成する。
第2送受信部24は、伝票処理部222が生成した伝票1印字データと、伝票1印字データに割り当てた識別コードである伝票1識別コード「0123」とをプリンタ30へ送信する(ステップS110)。
FIG. 4 is a sequence diagram of the order management system when the printer 30 prints different objects.
In the figure, the print request receiving unit 220 of the controller 20 is in a print request waiting state (step S102). When the print request receiving unit 220 receives a print request from another device via the first transmission / reception unit 21 (step S104), it determines whether the requested print target is a slip (step S106).
When the print request receiving unit 220 determines that the requested print target is a slip (step S106: YES), the slip processing unit 222 assigns a slip number and an identification code, and prints the slip print data based on the order data. Generate (step S108). Here, the slip processing unit 222 generates slip 1 print data that is slip print data of the slip 1.
The second transmitting / receiving unit 24 transmits the slip 1 print data generated by the slip processing unit 222 and the slip 1 identification code “0123”, which is an identification code assigned to the slip 1 print data, to the printer 30 (step S110).

プリンタ30の通信処理部321は、送受信部31を介してコントローラ20から伝票1印字データ及び伝票1識別コードを受信すると(ステップS112)、受信した伝票1印字データ及び伝票1識別コードと保存依頼とを記憶処理部322に出力する(ステップS114)。   When the communication processing unit 321 of the printer 30 receives the slip 1 print data and the slip 1 identification code from the controller 20 via the transmission / reception unit 31 (step S112), the received slip 1 print data, slip 1 identification code, storage request, Is output to the storage processing unit 322 (step S114).

記憶処理部322の登録部324は、伝票1印字データと伝票1識別コードとを対応付けて揮発メモリ33に書き込む。また、登録部324は、伝票1識別コードが不揮発メモリ34へ記憶する対象外の識別コード「0000」とは一致しないため、伝票1識別コードを不揮発メモリ34に書き込む(ステップS116)。登録部324は、書き込み終了を通信処理部321に通知し、通信処理部321は、コントローラ20へ応答を送信するよう送受信部31へ指示する(ステップS118)。
送受信部31は伝票1印字データの受信応答をコントローラ20へ送信する(ステップS120)。
The registration unit 324 of the storage processing unit 322 writes the slip 1 print data and the slip 1 identification code in the volatile memory 33 in association with each other. In addition, the registration unit 324 writes the slip 1 identification code in the nonvolatile memory 34 because the slip 1 identification code does not match the non-target identification code “0000” stored in the nonvolatile memory 34 (step S116). The registration unit 324 notifies the communication processing unit 321 of the end of writing, and the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a response to the controller 20 (step S118).
The transmission / reception unit 31 transmits a receipt response of the slip 1 print data to the controller 20 (step S120).

コントローラ20の印字要求受信部220は、第2送受信部24を介して伝票1印字データの受信応答を受信すると、ステップS102に戻り、再び印字要求の受信待ち状態となる。その一方、プリンタ30の登録部324は、印字処理部323に伝票1識別コードを設定した印字依頼を出力する(ステップS122)。印字処理部323は、印字依頼に設定されている伝票1識別コードで特定される伝票1印字データを揮発メモリ33から読み出し、伝票1印字データの印字を印字部35に実行させる(ステップS124)。   When the print request reception unit 220 of the controller 20 receives the receipt response of the slip 1 print data via the second transmission / reception unit 24, the print request reception unit 220 returns to step S102 and again enters the print request reception wait state. On the other hand, the registration unit 324 of the printer 30 outputs a print request in which the slip 1 identification code is set to the print processing unit 323 (step S122). The print processing unit 323 reads the slip 1 print data specified by the slip 1 identification code set in the print request from the volatile memory 33, and causes the print unit 35 to print the slip 1 print data (step S124).

コントローラ20の印字要求受信部220は、印字要求待ち状態に戻った後、再び、印字要求を受信する(ステップS104)。印字要求受信部220が、要求された印字対象がメニューシートであり、伝票ではないと判断した場合(ステップS106:NO)、印字データ生成部224は、メニューシート印字データを生成し、伝票印字データではないことを示す識別コード「0000」を割り当てる(ステップS126)。
第2送受信部24は、印字データ生成部224が生成したメニューシート印字データと、割り当てた識別コードとをプリンタ30に送信する(ステップS128)。
After returning to the print request waiting state, the print request receiving unit 220 of the controller 20 receives the print request again (step S104). When the print request receiving unit 220 determines that the requested print target is a menu sheet and not a slip (step S106: NO), the print data generating unit 224 generates menu sheet print data and slip print data An identification code “0000” indicating that it is not is assigned (step S126).
The second transmission / reception unit 24 transmits the menu sheet print data generated by the print data generation unit 224 and the assigned identification code to the printer 30 (step S128).

プリンタ30の通信処理部321は、送受信部31を介してコントローラ20からメニューシート印字データ及び識別コードを受信すると(ステップS130)、受信したメニューシート及び識別コードと保存依頼とを記憶処理部322に出力する(ステップS132)。   When the communication processing unit 321 of the printer 30 receives the menu sheet print data and the identification code from the controller 20 via the transmission / reception unit 31 (step S130), the received menu sheet, the identification code, and the storage request are stored in the storage processing unit 322. Output (step S132).

記憶処理部322の登録部324は、メニューシート印字データと識別コードとを対応付けて揮発メモリ33に書き込むが、識別コードが不揮発メモリ34へ記憶する対象外の識別コード「0000」と一致するため、不揮発メモリ34への書き込みは行わない(ステップS134)。登録部324は、書き込み終了を通信処理部321に通知し、通信処理部321は、コントローラ20へ応答を送信するよう送受信部31へ指示する(ステップS136)。
送受信部31はメニューシート印字データの受信応答をコントローラ20へ送信する(ステップS138)。
The registration unit 324 of the storage processing unit 322 writes the menu sheet print data and the identification code in association with each other and writes them in the volatile memory 33, but the identification code matches the unidentified identification code “0000” stored in the nonvolatile memory 34. Writing to the nonvolatile memory 34 is not performed (step S134). The registration unit 324 notifies the communication processing unit 321 of the end of writing, and the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a response to the controller 20 (step S136).
The transmission / reception unit 31 transmits a reception response of the menu sheet print data to the controller 20 (step S138).

コントローラ20の印字要求受信部220は、第2送受信部24を介してメニューシート印字データの受信応答を受信すると、ステップS102に戻り、再び印字要求の受信待ち状態となる。その一方、プリンタ30の登録部324は、印字処理部323にメニューシート印字データの印字依頼を出力する(ステップS140)。印字処理部323は、メニューシート印字データを印字部35に印字させる(ステップS142)。   When the print request reception unit 220 of the controller 20 receives the reception response of the menu sheet print data via the second transmission / reception unit 24, the process returns to step S102 and again enters the print request reception wait state. On the other hand, the registration unit 324 of the printer 30 outputs a print request for menu sheet print data to the print processing unit 323 (step S140). The print processing unit 323 causes the menu unit print data to be printed on the printing unit 35 (step S142).

図5は、プリンタ30の図示しない電源の投入後、正常に伝票の印字が完了する場合の注文管理システムのシーケンス図である。
同図において、プリンタ30の電源が投入されると(ステップS201)、処理部32の通信処理部321は、不揮発メモリ34に識別コードが記憶されているかを判断する。通信処理部321は、不揮発メモリ34に識別コードが記憶されていないため、接続要求の送信を送受信部31に指示する(ステップS202)。送受信部31は、接続要求をコントローラ20へ送信する(ステップS204)。
コントローラ20の第2送受信部24は、接続要求を受信してプリンタ30の起動を認識すると、プリンタ30へ接続応答を返送する(ステップS206)。
FIG. 5 is a sequence diagram of the order management system when the printing of the slip is normally completed after the printer 30 is turned on (not shown).
In the figure, when the printer 30 is powered on (step S201), the communication processing unit 321 of the processing unit 32 determines whether an identification code is stored in the nonvolatile memory 34. Since the identification code is not stored in the nonvolatile memory 34, the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a connection request (step S202). The transmission / reception unit 31 transmits a connection request to the controller 20 (step S204).
When the second transmission / reception unit 24 of the controller 20 receives the connection request and recognizes the activation of the printer 30, it returns a connection response to the printer 30 (step S206).

コントローラ20は、ハンディーターミナル10から注文データを受信し、伝票1の伝票印字データである伝票1印字データと、伝票1識別コード「0001」とをプリンタ30へ送信する(ステップS208)。   The controller 20 receives the order data from the handy terminal 10 and transmits the slip 1 print data, which is the slip print data of the slip 1, and the slip 1 identification code “0001” to the printer 30 (step S208).

プリンタ30は、受信した伝票1印字データと伝票1識別コードについて、図4に示すステップS112〜S124の処理を実行する(ステップS210〜S222)。つまり、プリンタ30の通信処理部321は、送受信部31を介して伝票1印字データ及び伝票1識別コードを受信し、保存依頼とともに記憶処理部322へ出力する。   The printer 30 executes the processes of steps S112 to S124 shown in FIG. 4 for the received slip 1 print data and slip 1 identification code (steps S210 to S222). That is, the communication processing unit 321 of the printer 30 receives the slip 1 print data and the slip 1 identification code via the transmission / reception unit 31, and outputs them together with the save request to the storage processing unit 322.

記憶処理部322の登録部324は、伝票1印字データと伝票1識別コードとを対応付けて揮発メモリ33に書き込むとともに、伝票1識別コードを不揮発メモリ34に書き込み、送受信部31は伝票1印字データの受信応答をコントローラ20へ送信する。登録部324は、印字処理部323に伝票1識別コードを設定した印字依頼を出力し、印字処理部323は、伝票1印字データの印字を印字部35に実行させる。   The registration unit 324 of the storage processing unit 322 writes the slip 1 print data and the slip 1 identification code in association with each other in the volatile memory 33 and writes the slip 1 identification code in the nonvolatile memory 34. Is received to the controller 20. The registration unit 324 outputs a print request in which the slip 1 identification code is set to the print processing unit 323, and the print processing unit 323 causes the printing unit 35 to print the slip 1 print data.

コントローラ20は、伝票1印字データの受信応答を受信した後、さらに、ハンディーターミナル10から注文データを受信し、伝票2の伝票印字データである伝票2印字データと、伝票2印字データ2の識別コードである伝票2識別コード「0002」とをプリンタ30へ送信する(ステップS224)。   After receiving the receipt response of the slip 1 print data, the controller 20 further receives order data from the handy terminal 10 and receives the slip 2 print data as the slip print data of the slip 2 and the identification code of the slip 2 print data 2 The slip 2 identification code “0002” is transmitted to the printer 30 (step S224).

プリンタ30は、受信した伝票2印字データと伝票2識別コードについて、図4に示すステップS112〜S122の処理を実行する(ステップS226〜S236)。つまり、プリンタ30の通信処理部321は、送受信部31を介して伝票2印字データ及び伝票2識別コードを受信し、保存依頼とともに記憶処理部322へ出力する。   The printer 30 executes the processing of steps S112 to S122 shown in FIG. 4 for the received slip 2 print data and slip 2 identification code (steps S226 to S236). In other words, the communication processing unit 321 of the printer 30 receives the slip 2 print data and the slip 2 identification code via the transmission / reception unit 31 and outputs them to the storage processing unit 322 together with the save request.

記憶処理部322の登録部324は、伝票2印字データと伝票2識別コードとを対応付けて揮発メモリ33に書き込むとともに、伝票2識別コードを不揮発メモリ34に書き込み、送受信部31は伝票2印字データの受信応答をコントローラ20へ送信する。登録部324は、印字処理部323に伝票2識別コードを設定した印字依頼を出力する。印字処理部323は、伝票1印字データの印字処理が完了していないため、受信した印字依頼を記憶(バッファリング)しておく。   The registration unit 324 of the storage processing unit 322 writes the slip 2 print data and the slip 2 identification code in association with each other in the volatile memory 33 and writes the slip 2 identification code in the nonvolatile memory 34. Is received to the controller 20. The registration unit 324 outputs a print request in which the slip 2 identification code is set to the print processing unit 323. The print processing unit 323 stores (buffers) the received print request because the print processing of the slip 1 print data has not been completed.

図6は、図5の続きのシーケンス図である。同図のステップS222及びS236の処理は、図5のステップS222及びS236の処理を表している。
コントローラ20は、伝票2印字データの受信応答を受信した後、さらに、ハンディーターミナル10から注文データを受信し、伝票3の伝票印字データである伝票3印字データと、伝票3印字データの識別コードである伝票3識別コード「0003」とをプリンタ30へ送信する(ステップS252)。
FIG. 6 is a sequence diagram continued from FIG. The processing in steps S222 and S236 in the figure represents the processing in steps S222 and S236 in FIG.
After receiving the receipt response of the slip 2 print data, the controller 20 further receives order data from the handy terminal 10 and uses the slip 3 print data which is the slip print data of the slip 3 and the identification code of the slip 3 print data. A slip 3 identification code “0003” is transmitted to the printer 30 (step S252).

プリンタ30は、受信した伝票3印字データと伝票3識別コードについて、図4に示すステップS112〜S120の処理を実行する(ステップS254〜S262)。つまり、プリンタ30の通信処理部321が送受信部31を介して伝票3印字データ及び伝票3識別コードを受信し、保存依頼とともに記憶処理部322に出力する。   The printer 30 executes the processing of steps S112 to S120 shown in FIG. 4 for the received slip 3 print data and slip 3 identification code (steps S254 to S262). That is, the communication processing unit 321 of the printer 30 receives the slip 3 print data and the slip 3 identification code via the transmission / reception unit 31, and outputs them to the storage processing unit 322 together with the save request.

記憶処理部322の登録部324は、伝票3印字データと伝票3識別コードとを対応付けて揮発メモリ33に書き込むとともに、伝票3識別コードを不揮発メモリ34に書き込み、送受信部31は伝票3印字データの受信応答をコントローラ20へ送信する。   The registration unit 324 of the storage processing unit 322 writes the slip 3 print data and the slip 3 identification code in association with each other in the volatile memory 33 and writes the slip 3 identification code in the nonvolatile memory 34. Is received to the controller 20.

プリンタ30の印字部35が伝票1印字データの印字を完了すると、プリンタ30の印字処理部323は、記憶処理部322に伝票1印字データの印字完了応答を出力する(ステップS264)。記憶処理部322の削除部325は、伝票1印字データと伝票1識別コードを揮発メモリ33から削除するとともに、不揮発メモリ34から伝票1識別コードを削除する(ステップS266)。   When the printing unit 35 of the printer 30 completes printing of the slip 1 print data, the print processing unit 323 of the printer 30 outputs a print completion response of the slip 1 print data to the storage processing unit 322 (step S264). The deletion unit 325 of the storage processing unit 322 deletes the slip 1 print data and the slip 1 identification code from the volatile memory 33 and also deletes the slip 1 identification code from the nonvolatile memory 34 (step S266).

印字処理部323は、記憶していた印字依頼から伝票2識別コードを取得する。印字処理部323は、伝票2識別コードで特定される伝票2印字データを揮発メモリ33から読み出し、伝票2印字データの印字を印字部35に実行させる(ステップS268)。   The print processing unit 323 acquires the slip 2 identification code from the stored print request. The print processing unit 323 reads the slip 2 print data specified by the slip 2 identification code from the volatile memory 33, and causes the print unit 35 to print the slip 2 print data (step S268).

印字部35が伝票2印字データの印字を完了すると、印字処理部323は、記憶処理部322に伝票2印字データの印字完了応答を出力する(ステップS270)。記憶処理部322の削除部325は、伝票2印字データと伝票2識別コードを揮発メモリ33から削除するとともに、不揮発メモリ34から伝票2識別コードを削除する(ステップS272)。   When the printing unit 35 completes printing of the slip 2 print data, the print processing unit 323 outputs a print completion response of the slip 2 print data to the storage processing unit 322 (step S270). The deletion unit 325 of the storage processing unit 322 deletes the slip 2 print data and the slip 2 identification code from the volatile memory 33 and also deletes the slip 2 identification code from the nonvolatile memory 34 (step S272).

記憶処理部322の登録部324は、印字処理部323に伝票3識別コードを設定した印字依頼を出力する(ステップS274)。
印字処理部323は、伝票2印字データの印字完了応答の送信後、伝票3印字データの印字処理を印字部35に実行させる(ステップS276)。
印字部35が伝票3印字データの印字を完了すると、印字処理部323は、伝票3印字データの印字完了応答を記憶処理部322に出力する(ステップS278)。
記憶処理部322の削除部325は、伝票3印字データと伝票3識別コードを揮発メモリ33から削除するとともに、不揮発メモリ34から伝票3識別コードを削除する(ステップS280)。
The registration unit 324 of the storage processing unit 322 outputs a print request in which the slip 3 identification code is set to the print processing unit 323 (step S274).
After transmitting the print completion response for the slip 2 print data, the print processing unit 323 causes the print unit 35 to execute the print processing for the slip 3 print data (step S276).
When the printing unit 35 completes printing of the slip 3 print data, the print processing unit 323 outputs a print completion response of the slip 3 print data to the storage processing unit 322 (step S278).
The deletion unit 325 of the storage processing unit 322 deletes the slip 3 print data and the slip 3 identification code from the volatile memory 33 and also deletes the slip 3 identification code from the nonvolatile memory 34 (step S280).

図7は、伝票印刷途中でプリンタ30の電源断が発生したときの注文管理システムのシーケンス図である。
同図において、プリンタ30の電源が投入されると(ステップS302)、注文管理システムは、図5のステップS202〜S206の処理を行う(ステップS304〜S308)。その後、コントローラ20が、ハンディーターミナル10から注文データを受信すると、注文管理システムは、図5のステップS208〜S222の処理を行う(ステップS310〜S324)。さらに、コントローラ20が、伝票1印字データの受信応答を受信した後、ハンディーターミナル10から注文データを受信すると、注文管理システムは、図5のステップS224〜S236の処理を行う(ステップS326〜S338)。
FIG. 7 is a sequence diagram of the order management system when the power of the printer 30 is cut off during slip printing.
In the figure, when the printer 30 is turned on (step S302), the order management system performs the processing of steps S202 to S206 of FIG. 5 (steps S304 to S308). Thereafter, when the controller 20 receives the order data from the handy terminal 10, the order management system performs steps S208 to S222 in FIG. 5 (steps S310 to S324). Further, when the controller 20 receives the order data from the handy terminal 10 after receiving the receipt response for the slip 1 print data, the order management system performs the processing of steps S224 to S236 in FIG. 5 (steps S326 to S338). .

コントローラ20が、伝票2印字データの受信応答を受信した後、ハンディーターミナル10から注文データを受信すると、注文管理システムは、図6のステップS252〜S262と同じ処理を行う(ステップS340〜S350)。そして、図6のステップS264〜S266の処理と同様に、プリンタ30の印字部35が伝票1印字データの印字を完了すると、印字処理部323が伝票1印字データの印字完了応答を記憶処理部322へ出力し(ステップS352)、記憶処理部322の削除部325は、伝票1印字データと伝票1識別コードを揮発メモリ33から削除し、不揮発メモリ34から伝票1識別コードを削除する(ステップS354)。そして、印字処理部323の指示により、印字部35が伝票2印字データの印字を開始したところで(ステップS356)、プリンタ30の電源断が発生する(ステップS358)。   When the controller 20 receives the order data from the handy terminal 10 after receiving the receipt response for the slip 2 print data, the order management system performs the same processing as steps S252 to S262 in FIG. 6 (steps S340 to S350). 6, when the printing unit 35 of the printer 30 completes the printing of the slip 1 print data, the print processing unit 323 sends a print completion response of the slip 1 print data to the storage processing unit 322, similarly to the processing of steps S264 to S266 in FIG. (Step S352), the deletion unit 325 of the storage processing unit 322 deletes the slip 1 print data and the slip 1 identification code from the volatile memory 33, and deletes the slip 1 identification code from the nonvolatile memory 34 (step S354). . Then, in response to an instruction from the print processing unit 323, when the printing unit 35 starts printing the slip 2 print data (step S356), the printer 30 is turned off (step S358).

例えば、プリンタ30の印字中に不具合が発生し、電源をオフしないと復旧しない場合などに、従業員がプリンタ30の電源をオフする。また、例えば、電源のトラブル等で、プリンタ30が印字を完了する前に電源の供給が止まってしまう場合もある。電源断が発生すると、プリンタ30の揮発メモリ33に記憶されていた内容は消滅するが、不揮発メモリ34に記憶されている内容は保持される。   For example, when a problem occurs during printing of the printer 30 and the power cannot be restored unless the power is turned off, the employee turns off the power of the printer 30. Further, for example, the power supply may stop before the printer 30 completes printing due to a power supply trouble or the like. When the power is cut off, the content stored in the volatile memory 33 of the printer 30 disappears, but the content stored in the nonvolatile memory 34 is retained.

図8は、図7の続きのシーケンス図である。同図において、プリンタ30の電源が再び投入されると(ステップS402)、記憶処理部322は、不揮発メモリ34に識別コードが記憶されているか否かを確認し、記憶されている場合、未印字伝票再送要求を通信処理部321に送出する(ステップS404)。   FIG. 8 is a sequence diagram continued from FIG. In the figure, when the printer 30 is turned on again (step S402), the storage processing unit 322 checks whether or not an identification code is stored in the nonvolatile memory 34. A slip resending request is sent to the communication processing unit 321 (step S404).

通信処理部321は、記憶処理部322から未印字伝票再送要求の入力を受け、不揮発メモリ34に識別コードが記憶されているかを判断する。通信処理部321は、不揮発メモリ34に識別コードが記憶されていると判断すると、接続要求とともに、不揮発メモリ34に記憶されている伝票2識別コード「0002」、伝票3識別コード「0003」を設定した未印字伝票通知情報とを送受信部31に出力し、未印字伝票の再送を要求するよう送受信部31に指示する(ステップS406)。
送受信部31は、接続要求に未印字伝票通知情報を設定したものをコントローラ20へ送信する(ステップS408)。コントローラ20の第2送受信部24は、プリンタ30から接続要求を受信すると、接続応答をプリンタ30へ返送する(ステップS410)。
The communication processing unit 321 receives an unprinted slip retransmission request input from the storage processing unit 322, and determines whether an identification code is stored in the nonvolatile memory 34. When determining that the identification code is stored in the nonvolatile memory 34, the communication processing unit 321 sets the slip 2 identification code “0002” and the slip 3 identification code “0003” stored in the nonvolatile memory 34 together with the connection request. The non-printed slip notification information is output to the transmission / reception unit 31, and the transmission / reception unit 31 is instructed to request retransmission of the non-printed slip (step S406).
The transmission / reception unit 31 transmits the connection request in which unprinted slip notification information is set to the controller 20 (step S408). When receiving the connection request from the printer 30, the second transmission / reception unit 24 of the controller 20 returns a connection response to the printer 30 (step S410).

コントローラ20の伝票再発行処理部223は、接続要求に設定されている未印字伝票通知情報から伝票2識別コード及び伝票3識別コードを読み出す。伝票再発行処理部223は、まず、記憶部23に記憶されている注文管理データから伝票2識別コードで特定される注文データを読み出し、読み出した注文データに基づいて伝票2印字データを生成する。伝票再発行処理部223は、生成した伝票2印字データと伝票2識別コードの送信を第2送受信部24に指示し、第2送受信部24は、伝票2印字データと伝票2識別コードをプリンタ30に送信する(ステップS412)。   The slip reissue processor 223 of the controller 20 reads the slip 2 identification code and the slip 3 identification code from the unprinted slip notification information set in the connection request. The slip reissue processor 223 first reads the order data specified by the slip 2 identification code from the order management data stored in the storage unit 23, and generates slip 2 print data based on the read order data. The slip reissue processing unit 223 instructs the second transmission / reception unit 24 to transmit the generated slip 2 print data and the slip 2 identification code, and the second transmission / reception unit 24 sends the slip 2 print data and the slip 2 identification code to the printer 30. (Step S412).

プリンタ30の通信処理部321は、送受信部31を介してコントローラ20から伝票2印字データ及び伝票2識別コードを受信すると(ステップS414)、受信した伝票2印字データ及び伝票2識別コードと保存依頼とを記憶処理部322に出力する(ステップS416)。   When the communication processing unit 321 of the printer 30 receives the slip 2 print data and the slip 2 identification code from the controller 20 via the transmission / reception unit 31 (step S414), the received slip 2 print data, the slip 2 identification code, the storage request, Is output to the storage processing unit 322 (step S416).

記憶処理部322の登録部324は、伝票2印字データと伝票2識別コードとを対応付けて揮発メモリ33に書き込む。登録部324は、不揮発メモリ34に伝票2識別コードが記憶されているため、不揮発メモリ34への書き込みは行わない(ステップS418)。登録部324は、書き込み終了を通信処理部321に通知し、通信処理部321は、コントローラ20への応答を送信するよう送受信部31へ指示する(ステップS420)。送受信部31は伝票2印字データの受信応答をコントローラ20へ送信する(ステップS422)。   The registration unit 324 of the storage processing unit 322 writes the slip 2 print data and the slip 2 identification code in the volatile memory 33 in association with each other. Since the slip 2 identification code is stored in the nonvolatile memory 34, the registration unit 324 does not write to the nonvolatile memory 34 (step S418). The registration unit 324 notifies the communication processing unit 321 of the end of writing, and the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a response to the controller 20 (step S420). The transmission / reception unit 31 transmits a receipt response of the slip 2 print data to the controller 20 (step S422).

一方、プリンタ30の登録部324は、印字処理部323に伝票2識別コードを設定した印字依頼を出力し(ステップS424)、印字処理部323は、伝票2印字データの印字処理を印字部35に実行させる(ステップS426)。   On the other hand, the registration unit 324 of the printer 30 outputs a print request in which the slip 2 identification code is set to the print processing unit 323 (step S424), and the print processing unit 323 sends the print processing of the slip 2 print data to the print unit 35. This is executed (step S426).

なお、コントローラ20の第2送受信部24が、伝票2印字データの受信応答を受信すると、注文管理システムは、伝票2識別コードに代えて伝票3識別コードを用い、上記のステップS412〜S424の処理を実行する。
つまり、コントローラ20の伝票再発行処理部223は、注文管理データから伝票3識別コードで特定される注文データを読み出して伝票3印字データを生成し、第2送受信部24は、伝票3印字データと伝票3識別コードをプリンタ30に送信する。プリンタ30の通信処理部321は、送受信部31を介してコントローラ20から伝票3印字データ及び識別コードを受信し、保存依頼とともに記憶処理部322に出力する。記憶処理部322の登録部324は、伝票3印字データと伝票3識別コードとを対応付けて揮発メモリ33に書き込み、不揮発メモリ34への書き込みは行わない。送受信部31は伝票3印字データの受信応答をコントローラ20へ送信する。
When the second transmission / reception unit 24 of the controller 20 receives the receipt response of the slip 2 print data, the order management system uses the slip 3 identification code instead of the slip 2 identification code, and performs the processing of steps S412 to S424 described above. Execute.
That is, the slip reissuing processing unit 223 of the controller 20 reads the order data specified by the slip 3 identification code from the order management data and generates slip 3 print data, and the second transmitting / receiving unit 24 generates the slip 3 print data and The slip 3 identification code is transmitted to the printer 30. The communication processing unit 321 of the printer 30 receives the slip 3 print data and the identification code from the controller 20 via the transmission / reception unit 31, and outputs them to the storage processing unit 322 together with a save request. The registration unit 324 of the storage processing unit 322 writes the slip 3 print data and the slip 3 identification code in association with each other in the volatile memory 33 and does not write in the nonvolatile memory 34. The transmission / reception unit 31 transmits a receipt response of the slip 3 print data to the controller 20.

図9は、電源起動時のプリンタ30の処理フローを示す図である。
プリンタ30の電源が投入されると(ステップS502)、通信処理部321は、不揮発メモリ34に未印字の伝票印字データの識別コードが記憶されているかにより、未印字の伝票印字データがあるかを判断する(ステップS504)。
不揮発メモリ34に未印字の伝票印字データの識別コードが記憶されていないと判断した場合(ステップS504:無し)、通信処理部321は、送受信部31に接続要求の送信を指示する。送受信部31は、接続要求をコントローラ20へ送信する(ステップS506)。ステップS506の処理は、図5のステップS202〜S204の処理に相当する。送受信部31が、コントローラ20から接続応答を受信すると(図6のステップS206に相当)、印字データの受信待ちとなる(ステップS508)。
FIG. 9 is a diagram illustrating a processing flow of the printer 30 at the time of power activation.
When the power of the printer 30 is turned on (step S502), the communication processing unit 321 determines whether there is unprinted slip print data depending on whether an identification code of unprinted slip print data is stored in the nonvolatile memory 34. Judgment is made (step S504).
If it is determined that the identification code of unprinted slip print data is not stored in the nonvolatile memory 34 (step S504: none), the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a connection request. The transmission / reception unit 31 transmits a connection request to the controller 20 (step S506). The processing in step S506 corresponds to the processing in steps S202 to S204 in FIG. When the transmission / reception unit 31 receives a connection response from the controller 20 (corresponding to step S206 in FIG. 6), it waits for reception of print data (step S508).

一方、ステップS504において、未印字の伝票印字データの識別コードが記憶されていると判断した場合(ステップS504:有り)、通信処理部321は、接続要求とともに、不揮発メモリ34から読み出した識別コードを設定した未印字伝票通知情報を送受信部31に出力し、未印字伝票の再送を要求するよう指示する。   On the other hand, if it is determined in step S504 that an identification code of unprinted slip print data is stored (step S504: present), the communication processing unit 321 receives the identification code read from the nonvolatile memory 34 together with the connection request. The set unprinted slip notification information is output to the transmission / reception unit 31 to instruct to request retransmission of the unprinted slip.

送受信部31は、未印字伝票通知情報を設定した接続要求をコントローラ20へ送信する(ステップS510)。ステップS510の処理は、図8のステップS404〜S408の処理に相当する。送受信部31が、コントローラ20から接続応答を受信すると(図8のステップS410に相当)、印字データの受信待ちとなる(ステップS508)。   The transmission / reception unit 31 transmits a connection request in which unprinted slip notification information is set to the controller 20 (step S510). The processing in step S510 corresponds to the processing in steps S404 to S408 in FIG. When the transmission / reception unit 31 receives a connection response from the controller 20 (corresponding to step S410 in FIG. 8), it waits for reception of print data (step S508).

図10は、コントローラ20の注文処理フローを示す図である。注文処理は、ハンディーターミナル10から注文データを受信し、受信した注文データに基づいて生成した伝票印字データをプリンタ30に印字させる処理である。   FIG. 10 is a diagram showing an order processing flow of the controller 20. The order processing is processing for receiving order data from the handy terminal 10 and causing the printer 30 to print slip print data generated based on the received order data.

コントローラ20の印字要求受信部220は、第1送受信部21がハンディーターミナル10から注文データを受信したかを判断する(ステップS602)。印字要求受信部220が、注文データを受信しなかったと判断した場合(ステップS602:NO)、コントローラ20はステップS610の処理を行う。   The print request receiving unit 220 of the controller 20 determines whether the first transmitting / receiving unit 21 has received the order data from the handy terminal 10 (step S602). When the print request receiving unit 220 determines that the order data has not been received (step S602: NO), the controller 20 performs the process of step S610.

一方、印字要求受信部220が、注文データを受信したと判断した場合(ステップS602:YES)、受信した注文データを注文処理部221に出力する(ステップS604)。注文処理部221は、記憶部23に記憶されている注文管理データに、受信した注文データと注文時刻とを対応付けて追加登録する(ステップS606)。伝票処理部222は、伝票番号を割り当てると、注文データから伝票印字データを生成し、識別コードを割り当てる。伝票処理部222は、記憶部23に記憶されている注文管理データに、注文データと対応付けて割り当てた伝票番号及び識別コードを書き込むとともに、生成した伝票印字データと識別コードとを対応付けて記憶部23に書き込む(ステップS608)。書き込み後、コントローラ20は、ステップS610の処理を実行する。   On the other hand, when the print request receiving unit 220 determines that the order data has been received (step S602: YES), the received order data is output to the order processing unit 221 (step S604). The order processing unit 221 additionally registers the received order data and the order time in association with the order management data stored in the storage unit 23 (step S606). When the slip processing unit 222 assigns a slip number, it generates slip print data from the order data and assigns an identification code. The slip processing unit 222 writes the slip number and the identification code assigned in association with the order data in the order management data stored in the storage unit 23, and stores the generated slip print data and the identification code in association with each other. The data is written in the unit 23 (step S608). After the writing, the controller 20 executes the process of step S610.

第2送受信部24は、プリンタ30から接続要求を受信した場合(ステップS610:YES)、プリンタ30との接続を確立し、受信した接続要求を印字要求受信部220へ出力する(ステップS612)。
印字要求受信部220は、接続要求に未印字伝票通知情報が含まれていると判断すると(ステップS614:YES)、未印字伝票通知情報を伝票再発行処理部223に出力する。伝票再発行処理部223は、未印字伝票通知情報から識別コードを取得し、取得した識別コードに対応して記憶部23に記憶されている注文管理データから注文データを読み出すと、読み出した注文データに基づいて伝票印字データを生成する。以下、未印字伝票通知情報に設定されている識別コードに対応した注文データから生成された伝票印字データを「未印字伝票データ」と記載する。伝票再発行処理部223は、生成した未印字伝票データとその識別コードとを記憶部23に書き込み(ステップS616)、コントローラ20は、ステップS602からの処理を行う。
When the second transmission / reception unit 24 receives a connection request from the printer 30 (step S610: YES), the second transmission / reception unit 24 establishes a connection with the printer 30 and outputs the received connection request to the print request reception unit 220 (step S612).
When determining that the connection request includes unprinted slip notification information (step S614: YES), the print request receiving unit 220 outputs the unprinted slip notification information to the slip reissue processing unit 223. When the slip reissue processing unit 223 acquires the identification code from the unprinted slip notification information and reads the order data from the order management data stored in the storage unit 23 corresponding to the acquired identification code, the read order data Based on the above, slip print data is generated. Hereinafter, the slip print data generated from the order data corresponding to the identification code set in the unprinted slip notification information is referred to as “unprinted slip data”. The slip reissue processing unit 223 writes the generated unprinted slip data and its identification code in the storage unit 23 (step S616), and the controller 20 performs the processing from step S602.

ステップS610において、第2送受信部24がプリンタ30の接続要求を受信しなかった場合(ステップS610:NO)、あるいは、ステップS614において、印字要求受信部220が、接続要求に未印字伝票通知情報が含まれてないと判断した場合(ステップS614:NO)、伝票再発行処理部223は、プリンタ30へまだ送信していない未印字伝票データが記憶部23に記憶されているかにより、未送信の未印字伝票データがあるかを判断する(ステップS618)。   If the second transmission / reception unit 24 has not received a connection request for the printer 30 in step S610 (step S610: NO), or in step S614, the print request reception unit 220 includes unprinted slip notification information in the connection request. If it is determined that it is not included (step S614: NO), the slip reissue processor 223 determines whether the unprinted slip data that has not yet been transmitted to the printer 30 is stored in the storage unit 23. It is determined whether there is print slip data (step S618).

記憶部23に未印字伝票データが記憶されている場合(ステップS618:YES)、伝票再発行処理部223は、未送信の未印字伝票データがあると判断して記憶部23から未印字伝票データとその識別コードを読み出す。伝票再発行処理部223は読み出した未印字伝票データとその識別コードとを第2送受信部24に出力し、プリンタ30への送信を指示する。
なお、未印字伝票データが複数記憶されている場合、伝票再発行処理部223は、注文管理データから未印字伝票データの識別コードに対応した注文時刻を読み出し、読み出した注文時刻が最も早い識別コードと、その識別コードに対応した未印字伝票データを第2送受信部24に出力し、プリンタ30への送信を指示する。第2送受信部24は、伝票再発行処理部223から入力された未印字伝票データとその識別コードをプリンタ30へ送信する(ステップS620)。
If unprinted slip data is stored in the storage unit 23 (step S618: YES), the slip reissue processing unit 223 determines that there is untransmitted unprinted slip data, and determines that there is unprinted slip data from the storage unit 23. And its identification code. The slip reissue processing unit 223 outputs the read unprinted slip data and its identification code to the second transmitting / receiving unit 24 and instructs transmission to the printer 30.
When a plurality of unprinted slip data is stored, the slip reissue processor 223 reads the order time corresponding to the identification code of the unprinted slip data from the order management data, and the identification code with the earliest read order time Then, unprinted slip data corresponding to the identification code is output to the second transmitting / receiving unit 24 to instruct transmission to the printer 30. The second transmission / reception unit 24 transmits the unprinted slip data and the identification code input from the slip reissue processing unit 223 to the printer 30 (step S620).

第2送受信部24が、ステップS620において送信した未印字伝票データに対応してプリンタ30からの受信応答を所定時間内に受信した場合(ステップS622:YES)、伝票再発行処理部223は、ステップS620において送信した未印字伝票データとその識別コードを記憶部23から削除し(ステップS624)、コントローラ20はステップS602からの処理を実行する。一方、第2送受信部24が所定時間内にプリンタ30からの受信応答を受信しなかった場合(ステップS622:NO)、コントローラ20は未印字伝票データの削除は行わずにステップS602からの処理を実行する。   When the second transmission / reception unit 24 receives a reception response from the printer 30 within a predetermined time corresponding to the unprinted slip data transmitted in step S620 (step S622: YES), the slip reissue processing unit 223 The unprinted slip data and the identification code transmitted in S620 are deleted from the storage unit 23 (Step S624), and the controller 20 executes the processing from Step S602. On the other hand, when the second transmission / reception unit 24 does not receive the reception response from the printer 30 within the predetermined time (step S622: NO), the controller 20 does not delete the unprinted slip data and performs the processing from step S602. Run.

ステップS618において、伝票再発行処理部223が、記憶部23に未印字伝票データは記憶されておらず、未送信の未印字伝票データはないと判断した場合(ステップS618:NO)、伝票処理部222は、プリンタ30へまだ送信が完了していない伝票印字データが記憶部23に記憶されているかにより、送信が完了していない伝票印字データがあるかを判断する(ステップS626)。記憶部23に送信が完了していない伝票印字データが記憶されていない場合(ステップS626:NO)、コントローラ20は、ステップS602からの処理を実行する。記憶部23に伝票印字データが記憶されている場合(ステップS626:YES)、伝票処理部222は、ステップS608において書き込まれた後、まだ送信が完了していない伝票印字データとその識別コードを記憶部23から読み出す。伝票処理部222は読み出した伝票印字データとその識別コードとを第2送受信部24に出力し、プリンタ30への送信を指示する。
なお、伝票印字データが複数記憶されている場合、伝票処理部222は、記憶部23が記憶している注文管理データから伝票印字データの識別コードに対応した注文時刻を読み出し、読み出した注文時刻が最も早い識別コードと、その識別コードに対応した伝票印字データを第2送受信部24に出力し、プリンタ30への送信を指示する。第2送受信部24は、伝票処理部222から入力された伝票印字データとその識別コードをプリンタ30へ送信する(ステップS628)。
In step S618, when the slip reissue processing unit 223 determines that the unprinted slip data is not stored in the storage unit 23 and there is no unprinted unprinted slip data (step S618: NO), the slip processing unit 222 determines whether there is slip print data that has not been transmitted, depending on whether slip print data that has not yet been transmitted to the printer 30 is stored in the storage unit 23 (step S626). When the slip print data whose transmission has not been completed is not stored in the storage unit 23 (step S626: NO), the controller 20 executes the processing from step S602. If the slip print data is stored in the storage unit 23 (step S626: YES), the slip processing unit 222 stores the slip print data that has been written in step S608 and has not yet been transmitted, and its identification code. Read from the unit 23. The slip processing unit 222 outputs the read slip print data and its identification code to the second transmitting / receiving unit 24 and instructs transmission to the printer 30.
When a plurality of slip print data is stored, the slip processing unit 222 reads the order time corresponding to the identification code of the slip print data from the order management data stored in the storage unit 23, and the read order time is The earliest identification code and slip print data corresponding to the identification code are output to the second transmission / reception unit 24 to instruct transmission to the printer 30. The second transmitting / receiving unit 24 transmits the slip print data and the identification code input from the slip processing unit 222 to the printer 30 (step S628).

第2送受信部24が、ステップS628において送信した伝票印字データに対応してプリンタ30からの受信応答を所定時間内に受信した場合(ステップS630:YES)、伝票処理部222は、ステップS628において送信した伝票印字データとその識別コードを記憶部23から削除し(ステップS632)、コントローラ20はステップS602からの処理を実行する。一方、第2送受信部24が所定時間内にプリンタ30からの受信応答を受信しなかった場合(ステップS630:NO)、コントローラ20は伝票印字データの削除は行わずにステップS602からの処理を実行する。   When the second transmission / reception unit 24 receives a reception response from the printer 30 within a predetermined time corresponding to the slip print data transmitted in step S628 (step S630: YES), the slip processing unit 222 transmits in step S628. The slip print data and its identification code are deleted from the storage unit 23 (step S632), and the controller 20 executes the processing from step S602. On the other hand, when the second transmission / reception unit 24 does not receive the reception response from the printer 30 within the predetermined time (step S630: NO), the controller 20 executes the processing from step S602 without deleting the slip print data. To do.

上記の処理により、コントローラ20は、随時ハンディーターミナル10からの注文データ、プリンタ30からの接続要求を受信する。
プリンタ30の電源断中に注文データを受信した場合、コントローラ20は、受信した注文データから伝票印字データを生成し、生成した伝票印字データと識別コードとをプリンタ30に送信する。
しかし、送信した伝票印字データと識別コードに対応してプリンタ30から受信応答を受信しないため、コントローラ20は、伝票印字データの再送を行う。そして、伝票印字データの再送中に、さらに注文データを受信した場合、コントローラ20は、受信した注文データから伝票印字データを生成して記憶しておく。プリンタ30の電源が再投入され、コントローラ20がプリンタ30から接続要求を受信し、受信した接続要求に未印字伝票通知情報が設定されているときには、プリンタ30の電源断中に再送していた伝票印字データや、送信を行わずに記憶していた伝票印字データよりも、未印字伝票通知情報により要求された未印字伝票データを優先してプリンタ30に送信する。
Through the above processing, the controller 20 receives the order data from the handy terminal 10 and the connection request from the printer 30 as needed.
When the order data is received while the printer 30 is powered off, the controller 20 generates slip print data from the received order data, and transmits the generated slip print data and the identification code to the printer 30.
However, since the reception response is not received from the printer 30 corresponding to the transmitted slip print data and the identification code, the controller 20 retransmits the slip print data. When order data is further received during the resending of the slip print data, the controller 20 generates slip print data from the received order data and stores it. When the printer 30 is turned on again, the controller 20 receives a connection request from the printer 30, and unprinted slip notification information is set in the received connection request, the slip that was resent while the printer 30 was turned off The unprinted slip data requested by the unprinted slip notification information is preferentially transmitted to the printer 30 over the print data and the slip print data stored without transmission.

なお、ステップS608において伝票処理部222が生成する伝票印字データは、注文データに設定されている担当者コード、テーブル番号及び明細データと、伝票印字データの識別コードである伝票番号と、識別コードに対応して記憶部23の注文管理データから読み出した注文時刻とを含む情報を所定のレイアウトで印字させる印字データである。注文データに手書き文字の情報など他の情報が含まれている場合、それらの情報をさらに印字させる印字データとしてもよい。   Note that the slip print data generated by the slip processing unit 222 in step S608 includes the person-in-charge code, table number, and detail data set in the order data, the slip number that is the identification code of the slip print data, and the identification code. Correspondingly, it is print data for printing information including the order time read from the order management data in the storage unit 23 in a predetermined layout. When other information such as handwritten character information is included in the order data, the order data may be print data for further printing.

また、ステップS616において伝票再発行処理部223が生成する未印字伝票データは、ステップS608において伝票処理部222が生成する伝票印字データと同じであってもよく、伝票処理部222が生成する伝票印字データに、再送された伝票であることを示す情報をさらに印字させる伝票印字データであってもよい。再送伝票であることを示す情報は、例えば、所定の文字や記号、警告を示す言葉や文書、当該注文データの注文時刻から現在時刻までの経過時間などとすることができる。このような情報を付加して印字することにより、調理担当等が未印字伝票の存在を気付き易くなり、また、その伝票に関する作業についてどの程度迅速に対応すべきなのかを容易に把握することができる。   The unprinted slip data generated by the slip reissue processing unit 223 in step S616 may be the same as the slip print data generated by the slip processing unit 222 in step S608. The data may be slip print data for further printing information indicating that the data is a resent slip. The information indicating the resending slip can be, for example, a predetermined character or symbol, a word or document indicating a warning, an elapsed time from the order time of the order data to the current time, or the like. By adding and printing such information, it becomes easier for the person in charge of cooking to notice the existence of an unprinted voucher, and it is possible to easily grasp how quickly work related to the voucher should be handled. it can.

なお、コントローラ20の伝票処理部222は、送信が成功した伝票印字データを記憶部23から削除せず、伝票再発行処理部223は、未印字伝票通知情報に設定されている識別コードに対応した伝票印字データを記憶部23から読み出してプリンタ30に送信するようにしてもよい。   The slip processing unit 222 of the controller 20 does not delete the slip print data that has been successfully transmitted from the storage unit 23, and the slip reissue processing unit 223 corresponds to the identification code set in the unprinted slip notification information. The slip print data may be read from the storage unit 23 and transmitted to the printer 30.

また、プリンタ30の記憶処理部322は、コントローラ20から再送された伝票印字データ(未印字伝票データ)に、再送された伝票印字データによる印字であることを示す情報を印字させる印字データを付加してもよい。   In addition, the storage processing unit 322 of the printer 30 adds print data for printing information indicating that printing is performed by the retransmitted slip print data to the slip print data (unprinted slip data) retransmitted from the controller 20. May be.

本実施形態によれば、プリンタ30は、コントローラ20から伝票印字データを受信した場合、受信した伝票印字データに付加されている識別コードを不揮発メモリ34に保存し、印字部35において伝票印字データの印字が完了したらその伝票印字データの識別コードを不揮発メモリ34から削除する。
不揮発メモリ34への伝票印字データ及び識別コードの書き込みから、印字部35による伝票印字データの印字の完了までの間に電源断が発生した際でも、不揮発メモリ34内の記憶内容は保存された状態となる。そして、プリンタ30の電源が再度投入されたときに、プリンタ30は不揮発メモリ34に識別コードが保存されたまま残っている場合は、その識別コードにより特定される伝票印字データの印字が完了していないと判断し、不揮発メモリ34から読み出した識別コードを接続要求に付加してコントローラ20へ送信する。
コントローラ20は、プリンタ30から受信した接続要求に付加されている識別コードにより注文データを特定し、特定した注文データから伝票印字データを生成する。この際、コントローラ20は、プリンタ30の電源断が発生していたときにハンディーターミナル10より受信した注文データから生成した伝票印字データよりも、接続要求により通知された識別コードで特定される注文データから生成した伝票印字データを優先し、且つ、注文時刻の早い順にプリンタ30に送信する。これによって、コントローラ20が注文データを受信した順に、注文データから生成した伝票印字データをプリンタ30に印字させることができる。
According to the present embodiment, when receiving the slip print data from the controller 20, the printer 30 stores the identification code added to the received slip print data in the nonvolatile memory 34, and the print unit 35 stores the slip print data. When printing is completed, the identification code of the slip print data is deleted from the nonvolatile memory 34.
Even when a power interruption occurs between the time when the slip print data and the identification code are written to the nonvolatile memory 34 and the time when the print portion 35 prints the slip print data, the stored contents in the nonvolatile memory 34 are preserved. It becomes. When the printer 30 is turned on again, if the identification code remains stored in the nonvolatile memory 34, the printer 30 has finished printing the slip print data specified by the identification code. If not, the identification code read from the nonvolatile memory 34 is added to the connection request and transmitted to the controller 20.
The controller 20 specifies the order data based on the identification code added to the connection request received from the printer 30, and generates slip print data from the specified order data. At this time, the controller 20 determines the order data specified by the identification code notified by the connection request rather than the slip print data generated from the order data received from the handy terminal 10 when the printer 30 is powered off. Priority is given to the slip print data generated from, and the data is transmitted to the printer 30 in order of the order time. Thus, the slip print data generated from the order data can be printed on the printer 30 in the order in which the controller 20 receives the order data.

[第2の実施形態]
次に、本発明の第2の実施形態を説明する。第1の実施形態では、コントローラ20がプリンタ30に印字させる伝票は、複数明細が1枚の伝票に含まれる複数明細伝票であってもよく、明細毎にパーシャルカットされた短冊伝票からなる一行明細伝票であってもよい。本実施形態では、コントローラは、プリンタに一行明細伝票を印字させ、プリンタは、短冊伝票の単位で印字が完了したかを管理する。以下、第1の実施形態との差分を中心に説明する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In the first embodiment, the slip that the controller 20 prints on the printer 30 may be a multi-detail slip including a plurality of details included in one slip, or a one-line specification including a strip slip that is partially cut for each specification. It may be a slip. In the present embodiment, the controller causes the printer to print a one-line detailed slip, and the printer manages whether printing is completed in units of strip slips. Hereinafter, the difference from the first embodiment will be mainly described.

本実施形態の注文管理システムは、第1の実施形態のプリンタ30に代えて図11に示すプリンタ30aを備える。コントローラ20は、第1の実施形態と同様であるが、伝票処理部222及び伝票再発行処理部223は、一行明細伝票の伝票印字データを生成する。一行明細伝票の伝票印字データは、注文データに含まれる各明細データに対応した短冊伝票を印字させる短冊印字データと、短冊印字データ間に設定されたカットコマンドとを含む。各短冊印字データは、対応する明細データが示す注文品及び数量と、注文データに設定されている担当者コード及びテーブル番号と、伝票印字データの識別コードである伝票番号と、識別コードに対応して記憶部23の注文管理データから読み出した注文時刻とを含む情報を所定のレイアウトで印字させる印字データである。   The order management system of this embodiment includes a printer 30a shown in FIG. 11 instead of the printer 30 of the first embodiment. The controller 20 is the same as that of the first embodiment, but the slip processing unit 222 and the slip reissue processing unit 223 generate slip print data of a one-line detailed slip. The slip print data of one line detail slip includes strip print data for printing a strip slip corresponding to each detail data included in the order data, and a cut command set between the strip print data. Each strip print data corresponds to the order item and quantity indicated by the corresponding detail data, the person-in-charge code and table number set in the order data, the slip number which is the identification code of the slip print data, and the identification code. Print data for printing information including the order time read from the order management data in the storage unit 23 in a predetermined layout.

図11は、本実施形態のプリンタ30aの内部構成を示すブロック図である。同図において、図3に示す第1の実施形態によるプリンタ30と同一の部分には同一の符号を付し、その説明を省略する。同図に示すプリンタ30aが、図3に示す第1の実施形態のプリンタ30と異なる点は、処理部32に代えて処理部32aを備える点、揮発メモリ33に代えて揮発メモリ33aを備える点、不揮発メモリ34に代えて不揮発メモリ34aを備える点である。   FIG. 11 is a block diagram showing the internal configuration of the printer 30a of this embodiment. In this figure, the same parts as those of the printer 30 according to the first embodiment shown in FIG. The printer 30a shown in the figure is different from the printer 30 of the first embodiment shown in FIG. 3 in that a processing unit 32a is provided instead of the processing unit 32, and a volatile memory 33a is provided instead of the volatile memory 33. In this case, a nonvolatile memory 34 a is provided instead of the nonvolatile memory 34.

揮発メモリ33aは、コントローラ20から受信した印字データと、当該印字データの識別コードと、当該識別コードの伝票印字データに含まれる短冊印字データのうち印字が完了した短冊印字データの数を記憶する。不揮発メモリ34aは、バックアップ電池付きRAMや、書き込み及び消去が可能なフラッシュROMなどであり、印字が完了していない伝票印字データの識別コードと、当該識別コードの伝票印字データに含まれる短冊印字データのうち印字が完了した短冊印字データの数を記憶する。
印字された短冊印字データの数は、伝票印字データの印字中に、当該伝票印字データに設定されているカットコマンドを実行した回数(カット回数)により示す。
The volatile memory 33a stores the print data received from the controller 20, the identification code of the print data, and the number of strip print data that has been printed out of the strip print data included in the slip print data of the identification code. The non-volatile memory 34a is a RAM with a backup battery, a flash ROM that can be written to and erased, and the identification code of slip print data that has not been printed, and the strip print data included in the slip print data of the identification code. The number of strip print data that has been printed is stored.
The number of printed strip print data is indicated by the number of times the cut command set in the slip print data is executed during the printing of the slip print data (the number of cuts).

処理部32aが、第1の実施形態のプリンタ30aの処理部32と異なる点は、記憶処理部322に代えて記憶処理部322aを備える点、印字処理部323に代えて印字処理部323aを備える点である。
記憶処理部322aは、登録部324a、削除部325a、更新部326及び印字情報付加部327を備える。登録部324aは、コントローラ20から受信した印字データ及びその識別コードと、カット回数の初期値とを対応付けて揮発メモリ33aに書き込む。また、登録部324aは、受信した識別コードとカット回数の初期値とを不揮発メモリ34aに書き込む。更新部326は、印字処理部323aから短冊伝票の印字完了の通知を受信し、カット回数を更新する。削除部325aは、印字が完了した伝票印字データとその識別コード及びカット回数とを揮発メモリ33aから削除するとともに、印字が完了した伝票印字データの識別コード及びカット回数を不揮発メモリ34aから削除する。印字情報付加部327は、コントローラ2から再送された伝票印字データの識別コードに対応して不揮発メモリ34aから読み出したカット回数に基づいて、当該伝票印字データ内の短冊印字データがどこまで印字済みかを判断する。印字情報付加部327は、伝票印字データに含まれる各短冊印字データに、印字済みであるか否かの情報を印字させる印字データを追加する。
印字処理部323aは、揮発メモリ33aから読み出した印字データを印字するよう印字部35に指示する。また、印字処理部323aは、印字データに含まれるカットコマンドに従って、ロール紙をカットするようカッター部36に指示するとともに、短冊印字データの印字完了(カットコマンドの実行)、及び、伝票印字データの印字完了を記憶処理部322aに通知する。
The difference between the processing unit 32a and the processing unit 32 of the printer 30a of the first embodiment is that a storage processing unit 322a is provided instead of the storage processing unit 322, and a print processing unit 323a is provided instead of the print processing unit 323. Is a point.
The storage processing unit 322a includes a registration unit 324a, a deletion unit 325a, an update unit 326, and a print information addition unit 327. The registering unit 324a associates the print data received from the controller 20 and its identification code with the initial value of the number of cuts, and writes it in the volatile memory 33a. Also, the registration unit 324a writes the received identification code and the initial value of the number of cuts in the nonvolatile memory 34a. The update unit 326 receives a notification of completion of printing of the strip slip from the print processing unit 323a, and updates the number of cuts. The deletion unit 325a deletes the slip print data that has been printed, its identification code, and the number of cuts from the volatile memory 33a, and also deletes the identification code and the number of cuts of the slip print data that has been printed from the nonvolatile memory 34a. Based on the number of cuts read from the non-volatile memory 34a corresponding to the identification code of the slip print data retransmitted from the controller 2, the print information adding unit 327 determines how far the strip print data in the slip print data has been printed. to decide. The print information adding unit 327 adds print data for printing information indicating whether or not printing has been performed to each strip print data included in the slip print data.
The print processing unit 323a instructs the printing unit 35 to print the print data read from the volatile memory 33a. The print processing unit 323a instructs the cutter unit 36 to cut the roll paper according to the cut command included in the print data, completes printing of the strip print data (execution of the cut command), and prints the slip print data. The storage processing unit 322a is notified of the completion of printing.

図12は、プリンタ30aの電源投入後、正常に伝票の印字が完了する場合の注文管理システムのシーケンス図である。
同図において、プリンタ30aの電源が投入されると(ステップS701)、通信処理部321は、不揮発メモリ34aに識別コードが記憶されているかを判断する。通信処理部321は、不揮発メモリ34aに識別コードが記憶されていないため、接続要求の送信を送受信部31に指示する(ステップS702)。送受信部31は、接続要求をコントローラ20へ送信する(ステップS704)。コントローラ20の第2送受信部24は、接続要求を受信してプリンタ30aの起動を認識すると、プリンタ30aへ接続応答を返送する(ステップS706)。
FIG. 12 is a sequence diagram of the order management system when the printing of the slip is normally completed after the printer 30a is turned on.
In the figure, when the printer 30a is powered on (step S701), the communication processing unit 321 determines whether an identification code is stored in the nonvolatile memory 34a. Since the identification code is not stored in the nonvolatile memory 34a, the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a connection request (step S702). The transmission / reception unit 31 transmits a connection request to the controller 20 (step S704). When the second transmission / reception unit 24 of the controller 20 receives the connection request and recognizes the activation of the printer 30a, it returns a connection response to the printer 30a (step S706).

コントローラ20は、ハンディーターミナル10から注文データを受信すると、第1の実施形態と同様に、伝票3の伝票印字データである伝票3印字データを生成し、伝票3印字データと伝票3識別コード「0003」とをプリンタ30aに送信する(ステップS708)。生成された伝票3印字データは、3つの短冊印字データを含んだ一行明細伝票の印字データである。   When receiving the order data from the handy terminal 10, the controller 20 generates the slip 3 print data that is the slip print data of the slip 3 as in the first embodiment, and the slip 3 print data and the slip 3 identification code “0003”. Is transmitted to the printer 30a (step S708). The generated slip 3 print data is print data of a one-line detailed slip including three strip print data.

プリンタ30aの通信処理部321は、送受信部31を介してコントローラ20から伝票3印字データ及び伝票3識別コードを受信すると(ステップS710)、受信した伝票3印字データ及び伝票3識別コードと保存依頼とを記憶処理部322aに出力する(ステップS712)。記憶処理部322aの登録部324aは、伝票3印字データと伝票3識別コードとカット回数「0」とを対応付けて揮発メモリ33aに書き込むとともに、伝票3識別コードとカット回数「0」とを対応付けて不揮発メモリ34aに書き込む(ステップS714)。登録部324aは、書き込み終了を通信処理部321に通知し、通信処理部321は、コントローラ20へ応答を送信するよう送受信部31へ指示する(ステップS716)。
送受信部31は伝票3印字データの受信応答をコントローラ20へ送信する(ステップS718)。
When the communication processing unit 321 of the printer 30a receives the slip 3 print data and the slip 3 identification code from the controller 20 via the transmission / reception unit 31 (step S710), the received slip 3 print data, the slip 3 identification code, the storage request, Is output to the storage processing unit 322a (step S712). The registration unit 324a of the storage processing unit 322a correlates and writes the slip 3 print data, the slip 3 identification code, and the cut count “0” to the volatile memory 33a, and associates the slip 3 identification code with the cut count “0”. In addition, the data is written in the nonvolatile memory 34a (step S714). The registration unit 324a notifies the communication processing unit 321 of the end of writing, and the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a response to the controller 20 (step S716).
The transmission / reception unit 31 transmits a receipt response of the slip 3 print data to the controller 20 (step S718).

一方、プリンタ30aの登録部324aは、印字処理部323aに伝票3識別コードを設定した印字依頼を出力する(ステップS720)。印字処理部323aは、印字依頼に設定されている伝票3識別コードで特定される伝票3印字データを揮発メモリ33aから読み出し、伝票3印字データに含まれる最初の短冊印字データの印字処理を印字部35に実行させる(ステップS722)。   On the other hand, the registration unit 324a of the printer 30a outputs a print request in which the slip 3 identification code is set to the print processing unit 323a (step S720). The print processing unit 323a reads the slip 3 print data specified by the slip 3 identification code set in the print request from the volatile memory 33a, and performs the print processing of the first strip print data included in the slip 3 print data. 35 (step S722).

印字部35が伝票印字データに含まれる最初の短冊印字データの印字を完了すると、印字処理部323aは、この短冊印字データの後に伝票印字データに記述されているカットコマンドに従ってロール紙のパーシャルカットをカッター部36に実行させるとともに、短冊完了応答を記憶処理部322aに出力する(ステップS724)。   When the printing unit 35 completes printing of the first strip print data included in the slip print data, the print processing unit 323a performs a partial cut of the roll paper in accordance with the cut command described in the slip print data after the strip print data. While making it execute by the cutter part 36, a strip completion response is output to the memory | storage process part 322a (step S724).

記憶処理部322aの更新部326は、伝票3識別コードに対応して揮発メモリ33a及び不揮発メモリ34aに記憶されているカット回数を、現在の値「0」に1を加算した値「1」に更新する(ステップS726)。印字処理部323aは短冊完了応答の出力後、続いて、伝票3印字データに含まれる2番目の短冊印字データの印字処理を印字部35に実行させる(ステップS728)。   The update unit 326 of the storage processing unit 322a sets the number of cuts stored in the volatile memory 33a and the nonvolatile memory 34a corresponding to the slip 3 identification code to a value “1” obtained by adding 1 to the current value “0”. Update (step S726). After the output of the strip completion response, the print processing unit 323a causes the printing unit 35 to execute print processing of the second strip print data included in the slip 3 print data (step S728).

図13は、図12の続きのシーケンス図である。プリンタ30の印字部35が図12のステップS728における2番目の短冊印字データの印字を完了すると、印字処理部323aは、この短冊印字データの後に伝票印字データに記述されているカットコマンドに従ってロール紙のパーシャルカットをカッター部36に実行させるとともに、短冊完了応答を記憶処理部322aに出力する(ステップS752)。   FIG. 13 is a sequence diagram continued from FIG. When the printing unit 35 of the printer 30 completes the printing of the second strip print data in step S728 of FIG. 12, the print processing unit 323a follows the cut command described in the slip print data after the strip print data. Is executed by the cutter unit 36, and a strip completion response is output to the storage processing unit 322a (step S752).

記憶処理部322aの更新部326は、伝票3識別コードに対応して揮発メモリ33a及び不揮発メモリ34aに記憶されているカット回数を、現在の値「1」に1を加算した値「2」に更新する(ステップS754)。印字処理部323aは短冊完了応答の出力後、続いて、伝票3印字データに含まれる3番目の短冊印字データの印字処理を印字部35に実行させる(ステップS756)。   The update unit 326 of the storage processing unit 322a sets the number of cuts stored in the volatile memory 33a and the non-volatile memory 34a corresponding to the slip 3 identification code to a value “2” obtained by adding 1 to the current value “1”. Update (step S754). After the output of the strip completion response, the print processing unit 323a causes the printing unit 35 to execute print processing of the third strip print data included in the slip 3 print data (step S756).

コントローラ20は、図12のステップS718においてプリンタ30aが送信した伝票3印字データの受信応答を受信した後、さらに、ハンディーターミナル10から注文データを受信し、伝票4の伝票印字データである伝票4印字データと、伝票4識別コード「0004」とをプリンタ30aに送信する(ステップS758)。   After receiving the receipt response of the slip 3 print data transmitted by the printer 30a in step S718 of FIG. 12, the controller 20 further receives order data from the handy terminal 10 and prints the slip 4 which is the slip print data of the slip 4. The data and the slip 4 identification code “0004” are transmitted to the printer 30a (step S758).

プリンタ30aは、受信した伝票4印字データと伝票4識別コードについて、図12に示すステップS710〜S720の処理を実行する(ステップS760〜S770)。つまり、プリンタ30aの送受信部31は、受信した伝票4印字データ及び伝票4識別コードを保存依頼とともに記憶処理部322aに出力する。記憶処理部322aの登録部324aは、伝票4印字データと伝票4識別コードとカット回数「0」とを対応付けて揮発メモリ33aに書き込むとともに、伝票4識別コードとカット回数「0」とを対応付けて不揮発メモリ34aに書き込み、送受信部31は伝票4印字データの受信応答をコントローラ20へ送信する。登録部324aは、印字処理部323aに伝票4識別コードを設定した印字依頼を出力する。   The printer 30a performs the processing of steps S710 to S720 shown in FIG. 12 for the received slip 4 print data and slip 4 identification code (steps S760 to S770). That is, the transmission / reception unit 31 of the printer 30a outputs the received slip 4 print data and the slip 4 identification code together with the save request to the storage processing unit 322a. The registration unit 324a of the storage processing unit 322a correlates and writes the slip 4 print data, the slip 4 identification code, and the cut count “0” to the volatile memory 33a, and associates the slip 4 identification code with the cut count “0”. In addition, the transmission / reception unit 31 transmits a receipt response of the slip 4 print data to the controller 20. The registration unit 324a outputs a print request in which the slip 4 identification code is set to the print processing unit 323a.

印字部35が、伝票3印字データに含まれる3番目の短冊印字データの印字を完了すると、印字処理部323aは、伝票3印字データに含まれる全ての短冊印字データの印字を完了したと判断し、伝票3印字データの印字完了応答を記憶処理部322aに出力する(ステップS772)。
記憶処理部322aの削除部325aは、伝票3印字データとその識別コード及びカット回数を揮発メモリ33aから削除するとともに、伝票3識別コードとカット回数の組を不揮発メモリ34aから削除する(ステップS774)。
印字処理部323aは、記憶していた印字依頼に設定されている伝票4識別コードに対応した伝票印字データを揮発メモリ33aから読み出すと、伝票4印字データの最初の短冊印字データの印字を印字部35に実行させる(ステップS776)。
When the printing unit 35 completes the printing of the third strip print data included in the slip 3 print data, the print processing unit 323a determines that the printing of all the strip print data included in the slip 3 print data has been completed. The print completion response of the slip 3 print data is output to the storage processing unit 322a (step S772).
The deletion unit 325a of the storage processing unit 322a deletes the slip 3 print data, its identification code, and the number of cuts from the volatile memory 33a, and deletes the pair of the slip 3 identification code and the number of cuts from the nonvolatile memory 34a (step S774). .
When the print processing unit 323a reads out the slip print data corresponding to the slip 4 identification code set in the stored print request from the volatile memory 33a, the print processing unit 323a prints the first strip print data of the slip 4 print data. 35 (step S776).

図14は、プリンタ30aが正常に印字を完了したときの一行明細伝票である調理伝票の出力例を示す図である。同図は、3つの短冊印字データを含んだ伝票印字データに基づいて印字された調理伝票であり、短冊伝票r1、r2、r3からなる。短冊伝票r1と短冊伝票r2、短冊伝票r2と短冊伝票r3の間は、短冊印字データ間に記述されているカットコマンドの実行により、パーシャルカットされている。各短冊伝票r1、r2、r3には、伝票番号、テーブル番号、注文時刻、担当者コードが印字されている。また、短冊伝票r1、r2、r3のそれぞれには、対応する明細データが示す注文品及び注文数量が印字されている。   FIG. 14 is a diagram illustrating an output example of a cooking slip that is a one-line detailed slip when the printer 30a has completed printing normally. This figure is a cooking slip printed based on slip print data including three strip print data, and consists of strip slips r1, r2, and r3. The strip slip r1 and the strip slip r2 and the strip slip r2 and the strip slip r3 are partially cut by executing a cut command described between the strip print data. A slip number, a table number, an order time, and a person-in-charge code are printed on each strip slip r1, r2, r3. In addition, each of the strip slips r1, r2, and r3 is printed with the ordered product and the ordered quantity indicated by the corresponding detailed data.

図15は、伝票印字中にプリンタ30aの電源断が発生したときの注文管理システムのシーケンス図である。同図においては、図13のステップS764の後、ステップS772までの間にプリンタ30aの電源断が発生した場合を示している。つまり、プリンタ30aのカッター部36が伝票3印字データの2番目の短冊伝票のパーシャルカットを完了して、印字部35が伝票3印字データの3番目の短冊印字データを印字中、記憶処理部322aの更新部326が伝票4識別コード及び印字データとカット回数の初期値とを揮発メモリ33aに、伝票4識別コード及びカット回数の初期値を不揮発メモリ34aに書き込んだところで、プリンタ30aの電源断が発生した場合である。
例えば、伝票3の2枚目の短冊伝票の印字が完了し、最後の1枚の短冊伝票の印字途中で紙詰まりが発生したために、従業員がプリンタ30aの電源を落とし、再び電源投入した場合である。この場合、プリンタ30aは、電源投入後の接続要求により、コントローラ20に伝票3印字データの再発行の依頼を送信し、コントローラ20から伝票3印字データを再取得後、最初の短冊印字データから再印字を行う。
FIG. 15 is a sequence diagram of the order management system when the printer 30a is powered off during slip printing. This figure shows a case where the printer 30a is powered off after step S764 in FIG. 13 and before step S772. That is, while the cutter unit 36 of the printer 30a completes the partial cut of the second strip slip of the slip 3 print data, and the printing unit 35 is printing the third strip print data of the slip 3 print data, the storage processing unit 322a When the update unit 326 writes the slip 4 identification code, the print data, and the initial value of the number of cuts in the volatile memory 33a, and the initial value of the slip 4 identification code and the number of cuts in the nonvolatile memory 34a, the printer 30a is turned off. This is the case.
For example, when the printing of the second strip slip of slip 3 is completed and a paper jam occurs during the printing of the last strip slip, the employee turns off the printer 30a and turns it on again. It is. In this case, the printer 30a transmits a request for reissuance of the slip 3 print data to the controller 20 in response to a connection request after turning on the power, re-acquires the slip 3 print data from the controller 20, and then restarts from the first strip print data. Perform printing.

同図において、プリンタ30aの電源が再び投入されると(ステップS802)、記憶処理部322aは、不揮発メモリ34aに識別コードが記憶されているか否かを確認し、記憶されている場合、未印字伝票再送要求を通信処理部321に送出する(ステップS804)。
通信処理部321は、記憶処理部322aから未印字伝票再送要求の入力を受け、不揮発メモリ34aに識別コードが記憶されているかを判断する。通信処理部321は、不揮発メモリ34aに識別コードが記憶されていると判断した場合、接続要求とともに、不揮発メモリ34aに記憶されている伝票3識別コード「0003」及び伝票4識別コード「0004」を設定した未印字伝票通知情報を送受信部31に出力し、未印字伝票の再送を要求するよう送受信部31に指示する(ステップS806)。
送受信部31は、接続要求に未印字伝票通知情報を設定したものをコントローラ20へ送信する(ステップS808)。コントローラ20の第2送受信部24は、プリンタ30aから接続要求を受信すると、接続応答をプリンタ30aへ返送する(ステップS810)。
In the figure, when the power of the printer 30a is turned on again (step S802), the storage processing unit 322a checks whether or not an identification code is stored in the nonvolatile memory 34a. A slip retransmission request is sent to the communication processing unit 321 (step S804).
The communication processing unit 321 receives an input of an unprinted slip resending request from the storage processing unit 322a, and determines whether an identification code is stored in the nonvolatile memory 34a. When the communication processing unit 321 determines that the identification code is stored in the nonvolatile memory 34a, the communication processing unit 321 sends the slip 3 identification code “0003” and the slip 4 identification code “0004” stored in the nonvolatile memory 34a together with the connection request. The set unprinted slip notification information is output to the transmission / reception unit 31, and the transmission / reception unit 31 is instructed to request retransmission of the unprinted slip (step S806).
The transmission / reception unit 31 transmits the connection request in which unprinted slip notification information is set to the controller 20 (step S808). When receiving the connection request from the printer 30a, the second transmission / reception unit 24 of the controller 20 returns a connection response to the printer 30a (step S810).

コントローラ20の伝票再発行処理部223は、接続要求に設定されている未印字伝票通知情報から伝票3識別コード及び伝票4識別コードを読み出す。伝票再発行処理部223は、まず、記憶部23に記憶されている注文管理データから伝票3識別コードで特定される注文データを読み出し、読み出した注文データに基づいて伝票3印字データを生成する。生成された伝票3印字データは、図12のステップS708においてコントローラ20が送信した伝票3印字データと同じである。伝票再発行処理部223は、生成した伝票3印字データと伝票3識別コードの送信を第2送受信部24に指示し、第2送受信部24は、伝票3印字データと伝票3識別コードをプリンタ30aに送信する(ステップS812)。   The slip reissue processor 223 of the controller 20 reads the slip 3 identification code and the slip 4 identification code from the unprinted slip notification information set in the connection request. The slip reissue processor 223 first reads the order data specified by the slip 3 identification code from the order management data stored in the storage unit 23, and generates slip 3 print data based on the read order data. The generated slip 3 print data is the same as the slip 3 print data transmitted by the controller 20 in step S708 of FIG. The slip reissue processor 223 instructs the second transmitter / receiver 24 to transmit the generated slip 3 print data and slip 3 identification code, and the second transmitter / receiver 24 sends the slip 3 print data and slip 3 identification code to the printer 30a. (Step S812).

プリンタ30aの通信処理部321は、送受信部31を介してコントローラ20から伝票3印字データ及び伝票3識別コードを受信すると(ステップS814)、受信した伝票3印字データ及び伝票3識別コードと保存依頼とを記憶処理部322aに出力する(ステップS816)。
記憶処理部322aの登録部324aは、伝票3印字データと伝票3識別コードと初期値「0」を設定したカット回数とを対応付けて揮発メモリ33aに書き込む。登録部324aは、不揮発メモリ34aから伝票3識別コードに対応したカット回数「2」を読み出し、印字情報付加部327へ出力する。
印字情報付加部327は、登録部324aが読み出したカット回数が「2」であるため、3番目以降の短冊印字データの印字が完了していないと判断する。伝票3印字データには3つの短冊印字データが含まれているため、印字情報付加部327は、揮発メモリ33aに記憶されている伝票3印字データ内の1番目と2番目の短冊印字データに、印字済みであることを示す情報を印字させる印字データを追加し、3番目の短冊印字データに、未印字であることを示す情報を印字させる印字データを追加する(ステップS818)。
When the communication processing unit 321 of the printer 30a receives the slip 3 print data and the slip 3 identification code from the controller 20 via the transmission / reception unit 31 (step S814), the received slip 3 print data, the slip 3 identification code, the storage request, Is output to the storage processing unit 322a (step S816).
The registration unit 324a of the storage processing unit 322a writes the slip 3 print data, the slip 3 identification code, and the number of cuts set with the initial value “0” in the volatile memory 33a in association with each other. The registration unit 324a reads the number of cuts “2” corresponding to the slip 3 identification code from the nonvolatile memory 34a, and outputs it to the print information adding unit 327.
The print information adding unit 327 determines that the printing of the third and subsequent strip print data is not completed because the number of cuts read by the registration unit 324a is “2”. Since the slip 3 print data includes three strip print data, the print information adding unit 327 includes the first and second strip print data in the slip 3 print data stored in the volatile memory 33a. Print data for printing information indicating that printing has been completed is added, and print data for printing information indicating that printing has not been performed is added to the third strip print data (step S818).

プリンタ30aは、図12のステップS716以降に示す伝票3印字データの印字処理を行う。すなわち、登録部324aは、書き込み終了を通信処理部321に通知し、通信処理部321は、コントローラ20へ応答を送信するよう送受信部31へ指示する(ステップS822)。送受信部31は伝票3印字データの受信応答をコントローラ20へ送信する(ステップS824)。登録部324aは、印字処理部323aに伝票3識別コードを設定した印字依頼を出力し(ステップS826)、印字処理部323aは、伝票3印字データに含まれる最初の短冊印字データの印字処理を印字部35に実行させる(ステップS828)。   The printer 30a performs a printing process for the slip 3 print data shown in step S716 and subsequent steps in FIG. That is, the registration unit 324a notifies the communication processing unit 321 of the end of writing, and the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a response to the controller 20 (step S822). The transmission / reception unit 31 transmits a receipt response of the slip 3 print data to the controller 20 (step S824). The registration unit 324a outputs a print request in which the slip 3 identification code is set to the print processing unit 323a (step S826), and the print processing unit 323a prints the print processing of the first strip print data included in the slip 3 print data. The process is executed by the unit 35 (step S828).

また、コントローラ20の第2送受信部24がステップS824で送信された伝票3印字データの受信応答を受信すると、伝票再発行処理部223は、伝票4識別コードで特定される注文データに基づいて伝票4印字データを生成し、第2送受信部24は、伝票4印字データと伝票4識別コードをプリンタ30aに送信する。   Further, when the second transmission / reception unit 24 of the controller 20 receives the reception response of the slip 3 print data transmitted in step S824, the slip reissue processing unit 223 reads the slip based on the order data specified by the slip 4 identification code. 4 print data is generated, and the second transmitter / receiver 24 transmits the slip 4 print data and the slip 4 identification code to the printer 30a.

図16は、電源再投入後に再送された伝票印字データに基づく調理伝票の印字例を示す図である。同図において、印字方向の矢印が下から上に向いているが、これは、印字した短冊伝票が印字を進めるにつれて矢印の方向に移動していく、という意味である。すなわち、一番上にある短冊伝票が一番初めに印字された短冊伝票である。同図は、正常に印字が完了した場合は、図14と同様の調理伝票が印字される伝票3印字データによって、3枚目の短冊伝票r3を印字している途中でプリンタ30aの電源断が発生したために、コントローラ20から伝票3印字データが再送されたときの印字例である。
プリンタ30aの印字情報付加部327が、再送された伝票3印字データの各短冊印字データに印字済みであるか否かを示す情報を付加するため、印字された調理伝票は、同図に示す短冊伝票r1’、r2’、r3’からなる。短冊伝票r1’には、短冊伝票r1の印字内容に、印字済みであることを示す情報として「済み」がさらに印字されている。短冊伝票r2’も同様に、短冊伝票r2の印字内容に加え、「済み」がさらに印字されている。一方、短冊伝票r3’には、短冊伝票r3の印字内容に加え、再送された伝票印字データによって初めて印字されたことを示す情報として「未印字」がさらに印字されている。
FIG. 16 is a diagram showing a print example of the cooking slip based on the slip print data retransmitted after the power is turned on again. In the figure, the print direction arrow points from the bottom to the top, which means that the printed strip slip moves in the direction of the arrow as printing proceeds. That is, the strip slip at the top is the first strip slip printed. In the figure, when printing is completed normally, the printer 30a is turned off while the third strip slip r3 is being printed by the slip 3 print data on which the same cooking slip as in FIG. 14 is printed. This is an example of printing when the slip 3 print data is retransmitted from the controller 20 because it has occurred.
Since the print information adding section 327 of the printer 30a adds information indicating whether or not printing has been completed to each strip print data of the resent slip 3 print data, the printed cooking slip is the strip shown in FIG. It consists of slips r1 ′, r2 ′, r3 ′. In the strip slip r1 ′, “completed” is further printed as information indicating that the strip has been printed on the printed content of the strip slip r1. Similarly, the strip slip r2 ′ is further printed with “completed” in addition to the printed content of the strip slip r2. On the other hand, in addition to the print contents of the strip slip r3, “non-printed” is further printed on the strip slip r3 ′ as information indicating that the strip slip r3 ′ has been printed for the first time.

本実施形態のプリンタ30aの電源起動時の処理は、図9に示す第1の実施形態の電源起動時の処理と同じである。
また、本実施形態のコントローラ20の注文処理は、図10に示す第1の実施形態の注文処理フローと同じである。ただし、ステップS608において伝票処理部222は、一行明細伝票の伝票印字データを生成し、ステップS616において伝票再発行処理部223は一行明細伝票の未印字伝票データを生成する。
The processing at the time of power activation of the printer 30a of the present embodiment is the same as the processing at the time of power activation of the first embodiment shown in FIG.
Further, the order processing of the controller 20 of the present embodiment is the same as the order processing flow of the first embodiment shown in FIG. However, in step S608, the slip processing unit 222 generates slip print data for one line detail slip, and in step S616, the slip reissue processing unit 223 generates unprinted slip data for one line detail slip.

本実施形態によれば、プリンタ30aは、再送された伝票印字データに基づいて一行明細伝票を印字する場合、各短冊伝票に印字済みであるか否かの情報を印字する。再印字であることを示す情報を短冊伝票に印字することによって、注文品が二重に調理されることを効果的に防止することができ、また、未印字であることを示す情報を短冊伝票に印字することによって、注文から時間がたっている旨の注意を喚起することができる。   According to the present embodiment, when printing a one-line detailed slip based on the resent slip print data, the printer 30a prints information indicating whether or not each strip slip has been printed. By printing the information indicating reprinting on the strip slip, it is possible to effectively prevent the order from being cooked twice, and the information indicating that it is not printed is strip slip. By printing on, it is possible to call attention that time has passed since the order was placed.

[第3の実施形態]
次に、本発明の第3の実施形態を説明する。本実施形態の注文管理システムでは、プリンタが一行明細伝票を印字しているときに電源断が発生した場合、コントローラは、印刷が完了していない短冊伝票のみを印字させる伝票印字データを生成する。以下、第2の実施形態との差分を中心に説明する。
本実施形態の注文管理システムは、第2の実施形態のコントローラ20に代えて図17に示すコントローラ20bを、第2の実施形態のプリンタ30aに代えて図18に示すプリンタ30bを備える。以下、第2の実施形態との差分を中心に説明する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. In the order management system of this embodiment, when the power is cut off while the printer is printing a one-line detailed slip, the controller generates slip print data for printing only a strip slip that has not been printed. Hereinafter, the difference from the second embodiment will be mainly described.
The order management system of this embodiment includes a controller 20b shown in FIG. 17 instead of the controller 20 of the second embodiment, and a printer 30b shown in FIG. 18 instead of the printer 30a of the second embodiment. Hereinafter, the difference from the second embodiment will be mainly described.

図17は、本実施形態のコントローラ20bの内部構成を示すブロック図である。同図において、図2に示す第1の実施形態によるコントローラ20と同一の部分には同一の符号を付し、その説明を省略する。
同図に示すコントローラ20bが、図2に示す第1の実施形態のコントローラ20と異なる点は、処理部22に代えて処理部22bを備える点である。処理部22bが、第1の実施形態のコントローラ20の処理部22と異なる点は、伝票再発行処理部223に代えて伝票再発行処理部223bを備える点である。伝票再発行処理部223bは、第2送受信部24がプリンタ30から受信した接続要求に識別コード及びカット回数が設定されている場合、記憶部23に記憶されている注文管理データを検索して当該識別コードに対応した注文データを特定する。伝票再発行処理部223bは、特定した注文データから、受信済みのカット回数を考慮し、印字済みの短冊印字データを除いた一行明細伝票の伝票印字データを生成する。
FIG. 17 is a block diagram showing the internal configuration of the controller 20b of this embodiment. In this figure, the same parts as those of the controller 20 according to the first embodiment shown in FIG.
The controller 20b shown in the figure is different from the controller 20 of the first embodiment shown in FIG. 2 in that a processing unit 22b is provided instead of the processing unit 22. The processing unit 22b is different from the processing unit 22 of the controller 20 of the first embodiment in that a slip reissuing processing unit 223b is provided instead of the slip reissuing processing unit 223. When the identification code and the number of cuts are set in the connection request received by the second transmission / reception unit 24 from the printer 30, the slip reissue processing unit 223b searches the order management data stored in the storage unit 23 and The order data corresponding to the identification code is specified. The slip reissue processing unit 223b generates slip print data of one line detail slip from the specified order data in consideration of the received number of cuts and excluding the printed strip print data.

図18は、本実施形態のプリンタ30bの内部構成を示すブロック図である。同図において、図11に示す第2の実施形態によるプリンタ30aと同一の部分には同一の符号を付し、その説明を省略する。
同図に示すプリンタ30bが、図11に示す第2の実施形態のプリンタ30aと異なる点は、処理部32aに代えて処理部32bを備える点である。処理部32bが、第2の実施形態のプリンタ30aの処理部32aと異なる点は、通信処理部321に代えて通信処理部321b(未印字伝票通知部)を備える点、記憶処理部322aに代えて記憶処理部322bを備える点である。
FIG. 18 is a block diagram showing the internal configuration of the printer 30b of this embodiment. In this figure, the same parts as those of the printer 30a according to the second embodiment shown in FIG.
The printer 30b shown in the figure is different from the printer 30a of the second embodiment shown in FIG. 11 in that a processing unit 32b is provided instead of the processing unit 32a. The processing unit 32b is different from the processing unit 32a of the printer 30a of the second embodiment in that a communication processing unit 321b (unprinted slip notification unit) is provided instead of the communication processing unit 321, and instead of the storage processing unit 322a. The memory processing unit 322b is provided.

通信処理部321bは、電源が投入されたときに、不揮発メモリ34aに記憶されている識別コードとカット回数の組を読み出して接続要求に設定する。
記憶処理部322bが第2の実施形態の記憶処理部322aと異なる点は、登録部324aに代えて登録部324bを備える点、印字情報付加部327を備えていない点である。登録部324bは、コントローラ20bから受信した印字データとその識別コードとカット回数の初期値とを対応付けて揮発メモリ33aに書き込むとともに、受信した識別コードが不揮発メモリ34aに記憶されていない場合に当該識別コード及びカット回数の初期値を不揮発メモリ34aに書き込む。
When the power is turned on, the communication processing unit 321b reads the set of the identification code and the number of cuts stored in the nonvolatile memory 34a and sets it as a connection request.
The storage processing unit 322b is different from the storage processing unit 322a of the second embodiment in that a registration unit 324b is provided instead of the registration unit 324a, and a print information addition unit 327 is not provided. The registration unit 324b writes the print data received from the controller 20b, its identification code, and the initial value of the number of cuts in association with each other in the volatile memory 33a, and when the received identification code is not stored in the nonvolatile memory 34a, The initial value of the identification code and the number of cuts is written in the nonvolatile memory 34a.

本実施形態の注文管理システムにおいて、プリンタ30bの電源投入後、正常に伝票印字データの印字が行われる場合の注文管理システムの動作は、図12及び図13に示す第2の実施形態と同様である。   In the order management system of this embodiment, the operation of the order management system when the slip print data is normally printed after the printer 30b is turned on is the same as that of the second embodiment shown in FIGS. is there.

図19は、伝票の印字中にプリンタ30bの電源断が発生したときの注文管理システムのシーケンス図である。同図においては、図13のステップS764の後、ステップS772までの間にプリンタ30bの電源断が発生した場合を示している。
同図において、プリンタ30bの電源が再び投入されると(ステップS902)、記憶処理部322bは、不揮発メモリ34aに識別コードが記憶されているか否かを確認し、記憶されている場合、未印字伝票再送要求を通信処理部321bに送出する(ステップS904)。
FIG. 19 is a sequence diagram of the order management system when the printer 30b is turned off during slip printing. This figure shows a case where the printer 30b is powered off after step S764 in FIG. 13 and before step S772.
In the figure, when the printer 30b is turned on again (step S902), the storage processing unit 322b checks whether or not an identification code is stored in the nonvolatile memory 34a. A slip resending request is sent to the communication processing unit 321b (step S904).

通信処理部321bは、記憶処理部322bから未印字伝票再送要求の入力を受け、不揮発メモリ34aに識別コードが記憶されているかを判断する。通信処理部321bは、不揮発メモリ34aに識別コードが記憶されていると判断した場合、接続要求とともに、不揮発メモリ34aに記憶されている伝票3識別コード「0003」及びカット回数「2」の組と、伝票4識別コード「0004」及びカット回数「0」の組を設定した未印字伝票通知情報を送受信部31に出力し、未印字伝票の再送を要求するよう送受信部31に指示する(ステップS906)。
送受信部31は、接続要求に未印字伝票通知情報を設定したものを(ステップS906)、コントローラ20bへ送信する(ステップS908)。コントローラ20bの第2送受信部24は、プリンタ30bから接続要求を受信すると、接続応答をプリンタ30bへ返送する(ステップS910)。
The communication processing unit 321b receives an unprinted slip resending request input from the storage processing unit 322b, and determines whether an identification code is stored in the nonvolatile memory 34a. When the communication processing unit 321b determines that the identification code is stored in the nonvolatile memory 34a, the communication processing unit 321b includes a combination of the slip 3 identification code “0003” and the number of cuts “2” stored in the nonvolatile memory 34a together with the connection request. The unprinted slip notification information in which the set of the slip 4 identification code “0004” and the number of cuts “0” is set is output to the transmission / reception unit 31 and the transmission / reception unit 31 is instructed to request retransmission of the unprinted slip (step S906). ).
The transmission / reception unit 31 transmits the connection request in which unprinted slip notification information is set (step S906) and transmits it to the controller 20b (step S908). When receiving the connection request from the printer 30b, the second transmission / reception unit 24 of the controller 20b returns a connection response to the printer 30b (step S910).

コントローラ20bの伝票再発行処理部223bは、接続要求に設定されている未印字伝票通知情報から伝票3識別コード及び伝票4識別コードを読み出す。伝票再発行処理部223bは、まず、記憶部23に記憶されている注文管理データから伝票3識別コードで特定される注文データを読み出し、読み出した注文データとカット回数に基づいて、印字が完了していない短冊伝票のみを含む一行明細伝票を印字させる再送伝票3印字データを生成する。つまり、伝票再発行処理部223bは、伝票3識別コードに対応したカット回数は「2」であるため、3番目以降の短冊印字データを含んだ再送伝票3印字データを生成する。
伝票再発行処理部223bは、生成した再送伝票3印字データと伝票3識別コードの送信を第2送受信部24に指示し、第2送受信部24は、再送伝票3印字データと伝票3識別コードをプリンタ30bに送信する(ステップS912)。
The slip reissue processor 223b of the controller 20b reads the slip 3 identification code and the slip 4 identification code from the unprinted slip notification information set in the connection request. The slip reissue processor 223b first reads the order data specified by the slip 3 identification code from the order management data stored in the storage 23, and the printing is completed based on the read order data and the number of cuts. The re-sending slip 3 print data for printing the one-line detail slip including only the short strip slip is generated. That is, since the number of cuts corresponding to the slip 3 identification code is “2”, the slip reissue processing unit 223b generates retransmission slip 3 print data including the third and subsequent strip print data.
The slip reissue processing unit 223b instructs the second transmission / reception unit 24 to transmit the generated retransmission slip 3 print data and the slip 3 identification code, and the second transmission / reception unit 24 sends the retransmission slip 3 print data and the slip 3 identification code. The data is transmitted to the printer 30b (step S912).

プリンタ30bの通信処理部321bは、送受信部31を介してコントローラ20bから再送伝票3印字データ及び伝票3識別コードを受信すると(ステップS914)、受信した再送伝票3印字データ及び伝票3識別コードと保存依頼とを記憶処理部322bに出力する(ステップS916)。記憶処理部322bの登録部324bは、再送伝票3印字データと伝票3識別コードとを対応付けて揮発メモリ33aに書き込む(ステップS918)。登録部324bは、既に伝票3識別コードが記憶されているため、不揮発メモリ34aへの書き込みは行わない。
登録部324bは、書き込み終了を通信処理部321bに通知し、通信処理部321bは、コントローラ20bへ応答を送信するよう送受信部31へ指示する(ステップS922)。送受信部31は伝票3印字データの受信応答をコントローラ20bへ送信する(ステップS924)。
When the communication processing unit 321b of the printer 30b receives the retransmission slip 3 print data and the slip 3 identification code from the controller 20b via the transmission / reception unit 31 (step S914), the received retransmission slip 3 print data and the slip 3 identification code are stored. The request is output to the storage processing unit 322b (step S916). The registration unit 324b of the storage processing unit 322b associates the re-sending slip 3 print data and the slip 3 identification code, and writes them in the volatile memory 33a (step S918). The registration unit 324b does not write to the nonvolatile memory 34a because the slip 3 identification code is already stored.
The registration unit 324b notifies the communication processing unit 321b of the end of writing, and the communication processing unit 321b instructs the transmission / reception unit 31 to transmit a response to the controller 20b (step S922). The transmission / reception unit 31 transmits a receipt response of the slip 3 print data to the controller 20b (step S924).

プリンタ30bの登録部324bは、印字処理部323aに伝票3識別コードを設定した印字依頼を出力する(ステップS926)。印字処理部323aは、印字依頼に設定されている伝票3識別コードで特定される再送伝票3印字データを揮発メモリ33aから読み出し、再送伝票3印字データに含まれる短冊印字データ(伝票3印字データの3番目の短冊印字データに相当)の印字処理を印字部35に実行させる(ステップS928)。
なお、印字部35が、再送伝票3印字データに含まれる短冊印字データの印字を完了すると、印字処理部323aは、再送伝票3印字データに含まれる全ての短冊印字データの印字を完了したと判断し、再送伝票3印字データの印字完了応答を記憶処理部322bに出力する(ステップS930)。これにより、記憶処理部322bの削除部325aは、再送伝票3印字データと伝票3識別コードとカット回数との組を揮発メモリ33aから削除するとともに、伝票3識別コードとカット回数の組を不揮発メモリ34aから削除する(ステップS932)。
The registration unit 324b of the printer 30b outputs a print request in which the slip 3 identification code is set to the print processing unit 323a (step S926). The print processing unit 323a reads the reprint slip 3 print data specified by the slip 3 identification code set in the print request from the volatile memory 33a, and reads the strip print data (the slip 3 print data of the reprint slip 3 print data). The printing section 35 is caused to execute a printing process (corresponding to the third strip printing data) (step S928).
When the printing unit 35 completes the printing of the strip print data included in the retransmission slip 3 print data, the print processing unit 323a determines that the printing of all the strip print data included in the retransmission slip 3 print data has been completed. Then, the response to the completion of printing of the resending slip 3 print data is output to the storage processing unit 322b (step S930). Thus, the deletion unit 325a of the storage processing unit 322b deletes the set of the reprint slip 3 print data, the slip 3 identification code, and the number of cuts from the volatile memory 33a, and also deletes the set of the slip 3 identification code and the number of cuts in the nonvolatile memory. It deletes from 34a (step S932).

また、コントローラ20bの第2送受信部24がステップS924で送信された伝票3印字データの受信応答を受信すると、伝票再発行処理部223bは、伝票4識別コードで特定される注文データに基づいて再送伝票4印字データを生成する。伝票4識別コードに対応したカット回数は「0」であるため、伝票再発行処理部223bは、全ての短冊印字データを含んだ、すなわち、図13のステップS758において送信した伝票4印字データと同じ再送伝票4印字データを生成する。第2送受信部24は、再送伝票4印字データと伝票4識別コードをプリンタ30bに送信する。   Further, when the second transmission / reception unit 24 of the controller 20b receives the reception response of the slip 3 print data transmitted in step S924, the slip reissue processing unit 223b resends based on the order data specified by the slip 4 identification code. Form 4 print data is generated. Since the number of cuts corresponding to the slip 4 identification code is “0”, the slip reissue processor 223b includes all the strip print data, that is, the same as the slip 4 print data transmitted in step S758 of FIG. Resend slip 4 print data is generated. The second transmission / reception unit 24 transmits the resending slip 4 print data and the slip 4 identification code to the printer 30b.

図20は、電源再投入後に再送された伝票印字データに基づく調理伝票の印字例を示す図である。同図は、正常に印字が完了した場合、図14と同様の印字調理伝票が印字される伝票3印字データによって、3枚目の短冊伝票r3を印字している途中でプリンタ30bの電源断が発生したために、コントローラ20bから送信された再送伝票3印字データの印字例である。同図に示すように、印字された調理伝票は、図14に示す短冊伝票r3のみからなる。   FIG. 20 is a diagram showing a print example of a cooking slip based on the slip print data retransmitted after the power is turned on again. In the figure, when the printing is normally completed, the printer 30b is turned off while the third strip slip r3 is being printed by the slip 3 print data in which the same print cooking slip as that in FIG. 14 is printed. It is an example of printing of the resending slip 3 print data transmitted from the controller 20b because it occurred. As shown in the figure, the printed cooking slip consists only of the strip slip r3 shown in FIG.

本実施形態によれば、一行明細伝票のうち、印字が完了していない短冊伝票のみを印字させることができるため、注文品が二重に調理されることを防止することができる。また、不必要な印字が行われないため、印字用紙の節約も図ることができる。   According to the present embodiment, it is possible to print only the strip slip that has not been printed out of the one-line detailed slip, so that it is possible to prevent the order from being cooked twice. Moreover, since unnecessary printing is not performed, printing paper can be saved.

[第4の実施形態]
次に、本発明の第4の実施形態を説明する。本実施形態では、コントローラは、電源断のために印字が遅れた時間の情報を含んだ伝票をプリンタに印刷させる。以下、第1の実施形態との差分を中心に説明する。
[Fourth Embodiment]
Next, a fourth embodiment of the present invention will be described. In the present embodiment, the controller causes the printer to print a slip that includes information about the time when printing was delayed due to power failure. Hereinafter, the difference from the first embodiment will be mainly described.

本実施形態の注文管理システムは、第1の実施形態のコントローラ20に代えて、図21に示すコントローラ20cを備える。
図21は、本実施形態のコントローラ20cの内部構成を示すブロック図である。同図において、図2に示す第1の実施形態によるコントローラ20と同一の部分には同一の符号を付し、その説明を省略する。
同図に示すコントローラ20cが、図2に示す第1の実施形態のコントローラ20と異なる点は、処理部22に代えて処理部22cを備える点である。処理部22cが、第1の実施形態のコントローラ20の処理部22と異なる点は、伝票再発行処理部223に代えて伝票再発行処理部223cを備える点である。伝票再発行処理部223cは、伝票印字データの再送を示す情報として、印字が遅れた時間の情報を含んだ伝票を印字させるための伝票印字データを生成する。
The order management system of this embodiment includes a controller 20c shown in FIG. 21 instead of the controller 20 of the first embodiment.
FIG. 21 is a block diagram showing the internal configuration of the controller 20c of this embodiment. In this figure, the same parts as those of the controller 20 according to the first embodiment shown in FIG.
The controller 20c shown in the figure is different from the controller 20 of the first embodiment shown in FIG. 2 in that a processing unit 22c is provided instead of the processing unit 22. The processing unit 22c is different from the processing unit 22 of the controller 20 of the first embodiment in that a slip reissuing processing unit 223c is provided instead of the slip reissuing processing unit 223. The slip reissue processing unit 223c generates slip print data for printing a slip including information on the time when printing is delayed as information indicating retransmission of the slip print data.

本実施形態の注文管理システムのシーケンスは、図4〜図9に示す第1の実施形態と同様である。   The sequence of the order management system of the present embodiment is the same as that of the first embodiment shown in FIGS.

図22は、コントローラ20cの注文処理フローを示す図である。同図に示す注文処理フローは、図10に示す第1の実施形態の注文処理フローのステップS616の処理に代えて、ステップS615及びステップS617を実行する。
ステップS615において、コントローラ20cの伝票再発行処理部223cは、未印字伝票通知情報に設定されている識別コードに対応して記憶部23に記憶されている注文管理データから注文データと注文時刻を読み出すと、読み出した注文時刻から現在時刻までの経過時間を算出する。そして、ステップS617において、伝票再発行処理部223cは、読み出した注文データに基づいて、伝票処理部222が生成した伝票印字データと同様の伝票印字データに、さらに、経過時間を示す情報を付加した未印字伝票データを生成する(ステップS617)。
FIG. 22 is a diagram showing an order processing flow of the controller 20c. The order processing flow shown in the figure executes step S615 and step S617 instead of the processing in step S616 of the order processing flow of the first embodiment shown in FIG.
In step S615, the slip reissue processor 223c of the controller 20c reads the order data and the order time from the order management data stored in the storage 23 corresponding to the identification code set in the unprinted slip notification information. And the elapsed time from the read order time to the current time is calculated. In step S617, the slip reissue processor 223c adds information indicating the elapsed time to the slip print data similar to the slip print data generated by the slip processor 222 based on the read order data. Unprinted slip data is generated (step S617).

図23は、未印字伝票データに基づく調理伝票の印字例を示す図である。同図は、コントローラ20cの伝票再発行処理部223cが、伝票印字データの前に、経過時間を示す情報を印字するための印字データを付加して未印字伝票データを生成した場合の印字例を示す。伝票の前に付加されるヘッダに、「**注文から12分経過**」のように経過時間が印字されるため、調理担当等への注意を喚起することができる。また、経過時間が分かることで、この伝票に関する作業について、どの程度迅速に対応すべきか、調理担当等が具体的に行動することができる。   FIG. 23 is a diagram illustrating a print example of a cooking slip based on unprinted slip data. The figure shows an example of printing when the slip reissue processing unit 223c of the controller 20c generates unprinted slip data by adding print data for printing information indicating the elapsed time before the slip print data. Show. Since the elapsed time is printed on the header added in front of the slip, such as “** 12 minutes have elapsed since the order **”, it is possible to call attention to the person in charge of cooking. In addition, by knowing the elapsed time, the person in charge of cooking, etc. can specifically act on how quickly the work relating to the slip should be handled.

[第5の実施形態]
次に、本発明の第5の実施形態を説明する。本実施形態の注文管理システムは、プリンタを複数台備え、あるプリンタに電源断が発生した場合、コントローラは、他のプリンタから伝票印字データの再発行要求を受信する。コントローラは、再発行が要求された伝票印字データを、再発行要求の送信元の他のプリンタに再送し、印字させる。電源断が発生したプリンタの電源が再投入されると、第1の実施形態と同様に、不揮発メモリに記憶されている未印字の伝票印字データの識別コードを接続要求とともにコントローラに送信するが、コントローラは、通知された識別コードの伝票印字データを既に他のプリンタへ再送しているため、未印字伝票印字データの削除要求を返送する。電源が再投入されたプリンタは、未印字伝票印字データの削除要求を受信すると、不揮発メモリに保存してある印字データ識別コードを削除する。以下、第1の実施形態との差分を中心に説明する。
[Fifth Embodiment]
Next, a fifth embodiment of the present invention will be described. The order management system according to the present embodiment includes a plurality of printers. When a power failure occurs in a printer, the controller receives a request for reissuing slip print data from another printer. The controller resends the slip print data requested to be reissued to another printer that has transmitted the reissue request, and prints it. When the power of the printer that has been turned off is turned on again, as in the first embodiment, an identification code of unprinted slip print data stored in the nonvolatile memory is transmitted to the controller together with the connection request. Since the controller has already resent the slip print data of the notified identification code to another printer, the controller returns a request to delete the unprinted slip print data. When the printer whose power is turned on again receives a request to delete unprinted slip print data, it deletes the print data identification code stored in the nonvolatile memory. Hereinafter, the difference from the first embodiment will be mainly described.

図24は、本実施形態による注文管理システムの全体構成を示す図である。同図に示すように、注文管理システムは、図1に示す第1の実施形態のコントローラ20に代えてコントローラ20dを備え、プリンタ30に代えてプリンタ30d及びプリンタ30eを備える。同図においては、プリンタ30d、プリンタ30eをそれぞれ1台のみ示しているが、複数台が備えられていてもよい。プリンタ30dは、調理伝票の伝票印字データである調理伝票印字データを印字し、プリンタ30eは、ゲスト伝票の伝票印字データであるゲスト伝票印字データを印字する。ゲスト伝票とは、お客様が会計時にレジに持参する伝票であり、接客担当のスタッフは、注文品を全て提供した後にお客様へゲスト伝票を渡す。このように、各プリンタ30d、30eが印字すべき伝票の種類は予め決められている。   FIG. 24 is a diagram showing an overall configuration of the order management system according to the present embodiment. As shown in the figure, the order management system includes a controller 20d instead of the controller 20 of the first embodiment shown in FIG. 1, and includes a printer 30d and a printer 30e instead of the printer 30. In the figure, only one printer 30d and one printer 30e are shown, but a plurality of printers may be provided. The printer 30d prints cooking slip print data which is slip print data of the cooking slip, and the printer 30e prints guest slip print data which is the slip print data of the guest slip. The guest slip is a slip that the customer brings to the cashier at the time of accounting, and the staff in charge of customer service gives the guest slip to the customer after providing all the ordered items. In this way, the type of slip to be printed by each printer 30d, 30e is determined in advance.

図25は、本実施形態のコントローラ20dの内部構成を示すブロック図であり、本実施形態と関係する機能ブロックのみ抽出して示してある。同図において、図2に示す第1の実施形態によるコントローラ20と同一の部分には同一の符号を付し、その説明を省略する。同図に示すコントローラ20dが、図2に示す第1の実施形態のコントローラ20と異なる点は、処理部22に代えて処理部22dを備える点、記憶部23に代えて記憶部23dを備える点である。   FIG. 25 is a block diagram showing the internal configuration of the controller 20d of this embodiment, and only functional blocks related to this embodiment are extracted and shown. In this figure, the same parts as those of the controller 20 according to the first embodiment shown in FIG. The controller 20d shown in FIG. 2 differs from the controller 20 of the first embodiment shown in FIG. 2 in that a processing unit 22d is provided instead of the processing unit 22, and a storage unit 23d is provided instead of the storage unit 23. It is.

記憶部23dは、注文管理データと、送信が完了していない印字データと、再発行された伝票印字データの識別コードとを記憶する。また、本実施形態の注文管理データは、注文データと、注文時刻と、伝票番号と、注文データから生成された各伝票印字データを特定する識別コードとを対応付けたデータである。   The storage unit 23d stores order management data, print data that has not been transmitted, and an identification code of the reissued slip print data. The order management data of the present embodiment is data in which order data, order time, slip number, and identification code for identifying each slip print data generated from the order data are associated with each other.

処理部22dが、図2に示す第1の実施形態の処理部22と異なる点は、伝票処理部222に代えて伝票処理部222dを備える点、伝票再発行処理部223に代えて伝票再発行処理部223dを備える点である。   The processing unit 22d differs from the processing unit 22 of the first embodiment shown in FIG. 2 in that a slip processing unit 222d is provided instead of the slip processing unit 222, and a slip reissue is performed instead of the slip reissue processing unit 223. It is a point provided with the process part 223d.

伝票処理部222dは、受信した注文データに対して伝票番号を割り当てる。また、伝票処理部222dは、注文データから調理伝票印字データ、ゲスト伝票印字データなどの各伝票印字データを生成する。そして、伝票処理部222dは、記憶部23dに記憶されている注文管理データに、伝票印字データの生成に用いた注文データと対応付けて割り当てた伝票番号と、各伝票印字データの識別コードとを書き込む。識別コードには、伝票印字データの送信先を示す送信先特定情報を含める。また、伝票処理部222は、生成した調理伝票印字データとその識別コードとをプリンタ30dに送信するよう第2送受信部24に指示し、生成したゲスト伝票印字データとその識別コードをプリンタ30eに送信するよう第2送受信部24に指示する。
調理伝票印字データは、担当者コード、テーブル番号、明細データ、伝票番号、注文時刻等を含む情報を所定のレイアウトで印字させる印字データである。また、ゲスト伝票印字データは、担当者コード、テーブル番号、明細データ、伝票番号、注文時刻、各注文品の金額、合計金額等を含む情報を所定のレイアウトで印字させる印字データである。
The slip processing unit 222d assigns a slip number to the received order data. The slip processing unit 222d generates each slip print data such as cooking slip print data and guest slip print data from the order data. Then, the slip processing unit 222d assigns to the order management data stored in the storage unit 23d the slip number assigned in association with the order data used for generating the slip print data, and the identification code of each slip print data. Write. The identification code includes transmission destination specifying information indicating the transmission destination of the slip print data. In addition, the slip processing unit 222 instructs the second transmitting / receiving unit 24 to transmit the generated cooking slip print data and its identification code to the printer 30d, and transmits the generated guest slip print data and its identification code to the printer 30e. The second transmitter / receiver 24 is instructed to do so.
The cooking slip print data is print data for printing information including a person-in-charge code, table number, detailed data, slip number, order time, etc. in a predetermined layout. The guest slip print data is print data for printing information including a person-in-charge code, table number, detailed data, slip number, order time, amount of each order item, total amount, etc. in a predetermined layout.

伝票再発行処理部223dは、伝票再発行処理部223dは、第2送受信部24がプリンタ30eから伝票再送要求を受信した場合、記憶部23dに記憶されている注文管理データを検索して、伝票再送要求に設定されている伝票番号に対応した注文データを特定する。伝票再発行処理部223dは、特定した注文データから各伝票印字データを生成し、生成した伝票印字データと当該伝票印字データの識別コードを伝票再送要求の送信元のプリンタ30eに送信するよう第2送受信部24へ指示する。さらに、伝票再発行処理部223dは、伝票再送要求によって再送した伝票印字データの識別コードと、再送済みを示す情報を対応づけて記憶部23dに書き込む。   The slip reissue processing unit 223d searches the order management data stored in the storage unit 23d when the second transmission / reception unit 24 receives a slip retransmission request from the printer 30e. The order data corresponding to the slip number set in the resending request is specified. The slip reissue processing unit 223d generates each slip print data from the specified order data, and transmits the generated slip print data and the identification code of the slip print data to the printer 30e that is the sender of the slip retransmission request. Instructs the transmitter / receiver 24. Further, the slip reissue processor 223d writes the identification code of the slip print data retransmitted in response to the slip resend request and information indicating the resend in the storage 23d.

また、伝票再発行処理部223dは、第2送受信部24がプリンタ30dまたはプリンタ30eから受信した接続要求に識別コードが設定されている場合、記憶部23dに記憶されている注文管理データを検索して、接続要求に設定されている識別コードに対応した注文データを特定する。伝票再発行処理部223dは、特定した注文データから、識別コードにより特定される伝票印字データを生成し、生成した伝票印字データと当該伝票印字データの識別コードを伝票再送要求の送信元のプリンタ30dまたはプリンタ30eに送信するよう第2送受信部24へ指示する。ただし、伝票再発行処理部223dは、接続要求に設定されている識別コードに対応して、再送済みを示す情報が記憶部23dに記憶されている場合、伝票印字データを再送せず、当該識別コードを設定した伝票印字データ削除要求を返送する。   In addition, when the identification code is set in the connection request received by the second transmitting / receiving unit 24 from the printer 30d or the printer 30e, the slip reissue processing unit 223d searches the order management data stored in the storage unit 23d. The order data corresponding to the identification code set in the connection request is specified. The slip reissue processing unit 223d generates slip print data specified by the identification code from the specified order data, and uses the generated slip print data and the identification code of the slip print data as the printer 30d that is the sender of the slip retransmission request. Alternatively, the second transmission / reception unit 24 is instructed to transmit to the printer 30e. However, the slip reissuing processing unit 223d does not retransmit the slip print data when the information indicating retransmission has been stored in the storage unit 23d corresponding to the identification code set in the connection request, Return the slip print data deletion request with the code set.

図26は、本実施形態のプリンタ30dの内部構成を示すブロック図であり、本実施形態と関係する機能ブロックのみ抽出して示してある。同図において、図3に示す第1の実施形態によるプリンタ30と同一の部分には同一の符号を付し、その説明を省略する。同図に示すプリンタ30dが、図3に示す第1の実施形態のプリンタ30と異なる点は、処理部32に代えて処理部32dを備える点である。   FIG. 26 is a block diagram showing the internal configuration of the printer 30d of this embodiment, and only functional blocks related to this embodiment are extracted and shown. In this figure, the same parts as those of the printer 30 according to the first embodiment shown in FIG. The printer 30d shown in the figure is different from the printer 30 of the first embodiment shown in FIG. 3 in that a processing unit 32d is provided instead of the processing unit 32.

処理部32dが、第1の実施形態の処理部32と異なる点は、記憶処理部322に代えて記憶処理部322dを備える点である。
記憶処理部322dが第1の実施形態の記憶処理部322と異なる点は、削除部325に代えて削除部325dを備える点である。削除部325dは、印字が完了した伝票印字データとその識別コードを揮発メモリ33から削除するとともに、印字が完了した伝票印字データの識別コードを不揮発メモリ34から削除する。また、削除部325dは、コントローラ20dから受信した伝票印字データ削除要求に設定されている識別コードを不揮発メモリ34から削除する。
The processing unit 32d differs from the processing unit 32 of the first embodiment in that a storage processing unit 322d is provided instead of the storage processing unit 322.
The storage processing unit 322d is different from the storage processing unit 322 of the first embodiment in that a deletion unit 325d is provided instead of the deletion unit 325. The deletion unit 325 d deletes the slip print data and the identification code that have been printed from the volatile memory 33, and deletes the identification code of the slip print data that has been printed from the nonvolatile memory 34. Further, the deletion unit 325d deletes the identification code set in the slip print data deletion request received from the controller 20d from the nonvolatile memory 34.

図27は、本実施形態のプリンタ30eの内部構成を示すブロック図であり、本実施形態と関係する機能ブロックのみ抽出して示してある。同図において、図3に示す第1の実施形態によるプリンタ30と同一の部分には同一の符号を付し、その説明を省略する。同図に示すプリンタ30eが、図3に示す第1の実施形態のプリンタ30と異なる点は、処理部32に代えて処理部32eを備える点、指示入力部37をさらに備える点である。   FIG. 27 is a block diagram illustrating an internal configuration of the printer 30e according to the present embodiment. Only functional blocks related to the present embodiment are extracted and illustrated. In this figure, the same parts as those of the printer 30 according to the first embodiment shown in FIG. The printer 30e shown in the figure is different from the printer 30 of the first embodiment shown in FIG. 3 in that a processing unit 32e is provided instead of the processing unit 32, and an instruction input unit 37 is further provided.

指示入力部37は、例えば、キーやボタンであり、再発行対象の伝票の伝票番号の入力を受ける。
処理部32eが、第1の実施形態の処理部32異なる点は、通信処理部321に代えて通信処理部321eを備える点である。
通信処理部321eは、指示入力部37により入力された伝票番号と、自プリンタ30eのプリンタ識別情報を設定した伝票再送要求を送信するよう送受信部31に指示する。
The instruction input unit 37 is, for example, a key or button, and receives an input of a slip number of a slip to be reissued.
The processing unit 32 e is different from the processing unit 32 of the first embodiment in that a communication processing unit 321 e is provided instead of the communication processing unit 321.
The communication processing unit 321e instructs the transmission / reception unit 31 to transmit a slip retransmission request in which the slip number input by the instruction input unit 37 and the printer identification information of the printer 30e are set.

図28は、調理伝票印字中にプリンタ30dの電源断が発生したときの注文管理システムのシーケンス図である。
同図において、プリンタ30dの電源が投入されると(ステップS1002)、通信処理部321は、不揮発メモリ34に識別コードが記憶されているかを判断する。プリンタ30dの通信処理部321は、不揮発メモリ34に識別コードが記憶されていないため、接続要求の送信を送受信部31に指示する(ステップS1004)。プリンタ30dの送受信部31は、接続要求をコントローラ20dへ送信する(ステップS1006)。
コントローラ20dの第2送受信部24は、接続要求を受信してプリンタ30dの起動を認識すると、プリンタ30dへ接続応答を返送する(ステップS1008)。
FIG. 28 is a sequence diagram of the order management system when the power supply of the printer 30d is interrupted during printing of the cooking slip.
In the figure, when the printer 30d is powered on (step S1002), the communication processing unit 321 determines whether an identification code is stored in the nonvolatile memory 34. Since the identification code is not stored in the nonvolatile memory 34, the communication processing unit 321 of the printer 30d instructs the transmission / reception unit 31 to transmit a connection request (step S1004). The transmission / reception unit 31 of the printer 30d transmits a connection request to the controller 20d (step S1006).
When the second transmitting / receiving unit 24 of the controller 20d receives the connection request and recognizes the activation of the printer 30d, it returns a connection response to the printer 30d (step S1008).

続いてプリンタ30eの電源が投入されると(ステップS1010)、通信処理部321eは、不揮発メモリ34に識別コードが記憶されているかを判断する。プリンタ30eの通信処理部321eは、不揮発メモリ34に識別コードが記憶されていないため、接続要求の送信を送受信部31に指示する(ステップS1012)。プリンタ30eの送受信部31は、接続要求をコントローラ20dへ送信する(ステップS1014)。
コントローラ20dの第2送受信部24は、接続要求を受信してプリンタ30eの起動を認識すると、プリンタ30eへ接続応答を返送する(ステップS1016)。
Subsequently, when the printer 30e is powered on (step S1010), the communication processing unit 321e determines whether an identification code is stored in the nonvolatile memory 34. Since the identification code is not stored in the nonvolatile memory 34, the communication processing unit 321e of the printer 30e instructs the transmission / reception unit 31 to transmit a connection request (step S1012). The transmission / reception unit 31 of the printer 30e transmits a connection request to the controller 20d (step S1014).
When the second transmitter / receiver 24 of the controller 20d receives the connection request and recognizes the activation of the printer 30e, it returns a connection response to the printer 30e (step S1016).

コントローラ20dは、ハンディーターミナル10から注文データを受信し、伝票2の調理伝票印字データである調理伝票2印字データと、伝票2のゲスト伝票印字データであるゲスト伝票2印字データを生成する。コントローラ20dは、伝票2に伝票番号「0002」を割り当て、伝票2の調理伝票印字データに識別コード「0002C」を、伝票2のゲスト伝票印字データに識別コード「0002G」を割り当てる。以下、伝票2の調理伝票印字データの識別コードを調理伝票2識別コードと記載し、伝票2のゲスト伝票印字データの識別コードをゲスト伝票2識別コードと記載する。調理伝票2識別コードの最後の1文字「C」はプリンタ30dを示す送信先特定情報であり、ゲスト伝票2識別コードの最後の1文字「G」はプリンタ30eを示す送信先特定情報である。
コントローラ20dは、ゲスト伝票2識別コード「0002G」とゲスト伝票2印字データをプリンタ30eへ送信する(ステップS1020)。
The controller 20 d receives the order data from the handy terminal 10 and generates cooking voucher 2 print data that is cooking voucher print data for voucher 2 and guest voucher 2 print data that is guest voucher print data for voucher 2. The controller 20d assigns the slip number “0002” to the slip 2, assigns the identification code “0002C” to the cooking slip print data of the slip 2, and assigns the identification code “0002G” to the guest slip print data of the slip 2. Hereinafter, the identification code of the cooking slip print data of the slip 2 is referred to as a cooking slip 2 identification code, and the identification code of the guest slip print data of the slip 2 is referred to as a guest slip 2 identification code. The last character “C” of the cooking slip 2 identification code is transmission destination identification information indicating the printer 30d, and the last character “G” of the guest slip 2 identification code is transmission destination identification information indicating the printer 30e.
The controller 20d transmits the guest slip 2 identification code “0002G” and the guest slip 2 print data to the printer 30e (step S1020).

プリンタ30eは、受信したゲスト伝票2印字データとゲスト伝票2識別コードについて、図4に示すステップS112〜S124の処理を実行する(ステップS1020〜S1032)。つまり、プリンタ30eの通信処理部321eは、送受信部31を介してゲスト伝票2印字データ及びゲスト伝票2識別コードを受信し、保存依頼とともに記憶処理部322へ出力する。
プリンタ30eの登録部324は、ゲスト伝票2印字データとゲスト伝票2識別コードとを対応付けて揮発メモリ33に書き込むとともに、ゲスト伝票2識別コードを不揮発メモリ34に書き込み、送受信部31はゲスト伝票2印字データの受信応答をコントローラ20dへ送信する。プリンタ30eの登録部324は、印字処理部323に伝票2識別コードを設定した印字依頼を出力し、印字処理部323は、伝票2識別コードにより特定されるゲスト伝票2印字データの印字を印字部35に実行させる。
The printer 30e performs the processing of steps S112 to S124 shown in FIG. 4 for the received guest slip 2 print data and guest slip 2 identification code (steps S1020 to S1032). That is, the communication processing unit 321e of the printer 30e receives the guest slip 2 print data and the guest slip 2 identification code via the transmission / reception unit 31, and outputs them to the storage processing unit 322 together with the save request.
The registration unit 324 of the printer 30e writes the guest slip 2 print data and the guest slip 2 identification code in association with each other in the volatile memory 33 and writes the guest slip 2 identification code in the nonvolatile memory 34. A print data reception response is transmitted to the controller 20d. The registration unit 324 of the printer 30e outputs a print request in which the slip 2 identification code is set to the print processing unit 323, and the print processing unit 323 prints the guest slip 2 print data specified by the slip 2 identification code. 35.

プリンタ30eの印字部35がゲスト伝票2印字データの印字を完了すると、印字処理部323は、記憶処理部322にゲスト伝票2印字データの印字完了応答を出力する(ステップS1034)。記憶処理部322の削除部325は、ゲスト伝票2印字データとゲスト伝票2識別コードを揮発メモリ33から削除するとともに、不揮発メモリ34からゲスト伝票2識別コードを削除する(ステップS1036)。   When the printing unit 35 of the printer 30e completes printing of the guest slip 2 print data, the print processing unit 323 outputs a print completion response of the guest slip 2 print data to the storage processing unit 322 (step S1034). The deletion unit 325 of the storage processing unit 322 deletes the guest slip 2 print data and the guest slip 2 identification code from the volatile memory 33 and deletes the guest slip 2 identification code from the nonvolatile memory 34 (step S1036).

図29は、図28の続きのシーケンス図である。コントローラ20dは、図28のステップS1018において、ゲスト伝票2印字データ及び伝票2識別コードを送信した後、調理伝票2識別コード「0002C」と調理伝票2印字データをプリンタ30dへ送信する(ステップS1102)。   FIG. 29 is a sequence diagram continued from FIG. In step S1018 of FIG. 28, the controller 20d transmits the guest slip 2 print data and the slip 2 identification code, and then transmits the cooking slip 2 identification code “0002C” and the cooking slip 2 print data to the printer 30d (step S1102). .

プリンタ30dは、受信した調理伝票2印字データと調理伝票2識別コードについて、図4に示すステップS112〜S124の処理を実行する(ステップS1104〜S1116)。つまり、プリンタ30dの通信処理部321は、送受信部31を介して調理伝票2印字データ及び調理伝票2識別コードを受信し、保存依頼とともに記憶処理部322dへ出力する。
プリンタ30dの登録部324は、調理伝票2印字データと調理伝票2識別コードとを対応付けて揮発メモリ33に書き込むとともに、調理伝票2識別コードを不揮発メモリ34に書き込み、送受信部31は調理伝票2印字データの受信応答をコントローラ20dへ送信する。プリンタ30dの登録部324は、印字処理部323に調理伝票2識別コードを設定した印字依頼を出力し、印字処理部323は、調理伝票2識別コードに対応した調理伝票2印字データの印字を印字部35に実行させる。
The printer 30d executes steps S112 to S124 shown in FIG. 4 for the received cooking slip 2 print data and cooking slip 2 identification code (steps S1104 to S1116). That is, the communication processing unit 321 of the printer 30d receives the cooking slip 2 print data and the cooking slip 2 identification code via the transmission / reception unit 31, and outputs them together with the storage request to the storage processing unit 322d.
The registration unit 324 of the printer 30d writes the cooking slip 2 print data and the cooking slip 2 identification code in association with each other in the volatile memory 33 and writes the cooking slip 2 identification code in the nonvolatile memory 34. A print data reception response is transmitted to the controller 20d. The registration unit 324 of the printer 30d outputs a print request in which the cooking slip 2 identification code is set to the printing processing unit 323, and the printing processing unit 323 prints the printing of the cooking slip 2 print data corresponding to the cooking slip 2 identification code. This is executed by the unit 35.

プリンタ30dの印字部35が、印字処理部323の指示により調理伝票2印字データの印字を開始したところで(ステップS1116)、プリンタ30dの電源断が発生する(ステップS1118)。   When the printing unit 35 of the printer 30d starts printing the cooking slip 2 print data according to an instruction from the printing processing unit 323 (step S1116), the printer 30d is turned off (step S1118).

図30は、図29の続きのシーケンス図である。飲食店のスタッフは、プリンタ30eが印字したゲスト伝票により伝票番号「0002」を確認し、その後、伝票番号「0002」の調理伝票がプリンタ30dから印字されていないことに気付く。スタッフは、プリンタ30eの指示入力部37により、伝票番号「0002」と、伝票再発行要求の送信指示とを入力する。プリンタ30eの通信処理部321eは、指示入力部37により入力された伝票番号と、プリンタ30eのプリンタ識別情報とを設定した伝票再送要求を送信部31に出力し、コントローラ20dに送信するよう指示する(ステップS1202)。プリンタ30eの送受信部31は、通信処理部321eから入力されたリンタ識別情報を設定した伝票再送要求をコントローラ20dに送信する(ステップS1204)。   FIG. 30 is a sequence diagram continued from FIG. The restaurant staff confirms the slip number “0002” from the guest slip printed by the printer 30e, and then notices that the cooking slip with the slip number “0002” is not printed from the printer 30d. The staff uses the instruction input unit 37 of the printer 30e to input the slip number “0002” and a slip reissue request transmission instruction. The communication processing unit 321e of the printer 30e outputs a slip resending request in which the slip number input by the instruction input unit 37 and the printer identification information of the printer 30e are set to the transmission unit 31, and instructs the controller 20d to transmit the slip retransmission request. (Step S1202). The transmission / reception unit 31 of the printer 30e transmits a slip retransmission request in which the printer identification information input from the communication processing unit 321e is set to the controller 20d (step S1204).

コントローラ20dは、受信した伝票再送要求から伝票番号及びプリンタ識別情報を読み出す。伝票再発行処理部223dは、記憶部23dに記憶されている注文管理データから伝票番号で特定される注文データを読み出し、読み出した注文データに基づいて全ての種類の伝票印字データ、すなわち、調理伝票2印字データとゲスト伝票2印字データを生成する。コントローラ20dは、生成した調理伝票2印字データ及び調理伝票2識別コードを、伝票再送要求から読み出したプリンタ識別情報で特定されるプリンタ30eに送信する(ステップS1206)。コントローラ20dは、調理伝票2識別コードを再送済みの識別コードとして記憶部23dに記憶する。   The controller 20d reads the slip number and the printer identification information from the received slip retransmission request. The slip reissue processing unit 223d reads the order data specified by the slip number from the order management data stored in the storage unit 23d, and all types of slip print data, that is, cooking slips based on the read order data. 2 print data and guest slip 2 print data are generated. The controller 20d transmits the generated cooking slip 2 print data and cooking slip 2 identification code to the printer 30e specified by the printer identification information read from the slip resending request (step S1206). The controller 20d stores the cooking slip 2 identification code as a retransmitted identification code in the storage unit 23d.

プリンタ30eは、受信した調理伝票2印字データと調理伝票2識別コードについて、図28に示すステップS1020〜S1032の処理を実行する(ステップS1208〜S1220)。つまり、プリンタ30eの通信処理部321eは、送受信部31を介して調理伝票2印字データ及び調理伝票2識別コードを受信し、保存依頼とともに記憶処理部322へ出力する。
記憶処理部322の登録部324は、調理伝票2印字データと調理伝票2識別コードとを対応付けて揮発メモリ33に書き込むとともに、調理伝票2識別コードを不揮発メモリ34に書き込み、送受信部31は調理伝票2印字データの受信応答をコントローラ20dへ送信する。登録部324は、印字処理部323に調理伝票2識別コードを設定した印字依頼を出力し、印字処理部323は、調理伝票2識別コードに対応した調理伝票2印字データの印字を印字部35に実行させる。
The printer 30e executes the processes of steps S1020 to S1032 shown in FIG. 28 for the received cooking slip 2 print data and cooking slip 2 identification code (steps S1208 to S1220). That is, the communication processing unit 321e of the printer 30e receives the cooking slip 2 print data and the cooking slip 2 identification code via the transmission / reception unit 31, and outputs them to the storage processing unit 322 together with the save request.
The registration unit 324 of the storage processing unit 322 writes the cooking slip 2 print data and the cooking slip 2 identification code in association with each other in the volatile memory 33 and writes the cooking slip 2 identification code in the nonvolatile memory 34. The receipt response of the slip 2 print data is transmitted to the controller 20d. The registration unit 324 outputs a print request in which the cooking slip 2 identification code is set to the printing processing unit 323, and the printing processing unit 323 prints the cooking slip 2 print data corresponding to the cooking slip 2 identification code to the printing unit 35. Let it run.

コントローラ20dは、ステップS1216においてプリンタ30eから送信された受信応答を受信すると、ゲスト伝票2印字データ及びゲスト伝票2識別コードをプリンタ30eに送信し、ゲスト伝票2識別コードを再送済みの識別コードとして記憶部23dに記憶する(ステップS1222)。プリンタ30eは、受信したゲスト伝票2印字データとゲスト伝票2識別コードについて、図28に示すステップS1020〜S1030の処理を実行する(ステップS1224〜S1232)。つまり、プリンタ30eの通信処理部321eは、送受信部31を介してゲスト伝票2印字データ及びゲスト伝票2識別コードを受信し、保存依頼とともに記憶処理部322へ出力する。
記憶処理部322の登録部324は、ゲスト伝票2印字データとゲスト伝票2識別コードとを対応付けて揮発メモリ33に書き込むとともに、ゲスト伝票2識別コードを不揮発メモリ34に書き込み、送受信部31はゲスト伝票2印字データの受信応答をコントローラ20dへ送信する。登録部324は、印字処理部323にゲスト伝票2識別コードを設定した印字依頼を出力する。
Upon receiving the reception response transmitted from the printer 30e in step S1216, the controller 20d transmits the guest slip 2 print data and the guest slip 2 identification code to the printer 30e, and stores the guest slip 2 identification code as a retransmitted identification code. Store in the unit 23d (step S1222). The printer 30e executes the processing of steps S1020 to S1030 shown in FIG. 28 for the received guest slip 2 print data and guest slip 2 identification code (steps S1224 to S1232). That is, the communication processing unit 321e of the printer 30e receives the guest slip 2 print data and the guest slip 2 identification code via the transmission / reception unit 31, and outputs them to the storage processing unit 322 together with the save request.
The registration unit 324 of the storage processing unit 322 writes the guest slip 2 print data and the guest slip 2 identification code in association with each other in the volatile memory 33 and writes the guest slip 2 identification code in the non-volatile memory 34. The receipt response of the slip 2 print data is transmitted to the controller 20d. The registration unit 324 outputs a print request in which the guest slip 2 identification code is set to the print processing unit 323.

図31は、図30の続きのシーケンス図である。同図において、プリンタ30dの電源が再び投入されると(ステップS1302)、記憶処理部322は、不揮発メモリ34に識別コードが記憶されているか否かを確認し、記憶されている場合、未印字伝票再送要求を通信処理部321に送出する(ステップS1304)。
通信処理部321は、記憶処理部322からの要求を取得して、不揮発メモリ34に識別コードが記憶されているかを判断する。通信処理部321は、不揮発メモリ34に識別コードが記憶されていると判断した場合、接続要求とともに、不揮発メモリ34に記憶されている調理伝票2識別コード「0002C」を設定した未印字伝票通知情報を送受信部31に出力し、未印字伝票の再送を要求するよう送受信部31に指示する(ステップS1306)。
送受信部31は、接続要求に未印字伝票通知情報を設定したものをコントローラ20dへ送信する(ステップS1308)。コントローラ20dの第2送受信部24は、プリンタ30dから接続要求を受信すると、接続応答をプリンタ30dへ返送する(ステップS1310)。
FIG. 31 is a sequence diagram continued from FIG. In the figure, when the power of the printer 30d is turned on again (step S1302), the storage processing unit 322 checks whether or not an identification code is stored in the nonvolatile memory 34. A slip resending request is sent to the communication processing unit 321 (step S1304).
The communication processing unit 321 acquires a request from the storage processing unit 322 and determines whether an identification code is stored in the nonvolatile memory 34. When the communication processing unit 321 determines that the identification code is stored in the non-volatile memory 34, the non-printed slip notification information in which the cooking slip 2 identification code “0002C” stored in the non-volatile memory 34 is set together with the connection request. Is transmitted to the transmission / reception unit 31, and the transmission / reception unit 31 is instructed to request retransmission of an unprinted slip (step S1306).
The transmission / reception unit 31 transmits the connection request in which unprinted slip notification information is set to the controller 20d (step S1308). When receiving the connection request from the printer 30d, the second transmission / reception unit 24 of the controller 20d returns a connection response to the printer 30d (step S1310).

コントローラ20dの伝票再発行処理部223dは、接続要求に設定されている未印字伝票通知情報からゲスト伝票2識別コードを読み出す。伝票再発行処理部223dは、ゲスト伝票2識別コードが、再送済みの識別コードとして記憶部23dに記憶されているため、ゲスト伝票2識別コードと伝票2調理伝票削除要求の送信指示とを第2送受信部24に指示し、プリンタ30dへの返送を指示する。第2送受信部24は、ゲスト伝票2識別コードを設定した伝票2調理伝票削除要求をプリンタ30dに送信する(ステップS1310)。   The slip reissue processing unit 223d of the controller 20d reads the guest slip 2 identification code from the unprinted slip notification information set in the connection request. Since the guest slip 2 identification code is stored in the storage unit 23d as the retransmitted identification code, the slip reissue processing unit 223d receives the guest slip 2 identification code and the slip 2 cooking slip deletion request transmission instruction as the second The transmission / reception unit 24 is instructed to return to the printer 30d. The second transmitter / receiver 24 transmits a slip 2 cooking slip deletion request in which the guest slip 2 identification code is set to the printer 30d (step S1310).

プリンタ30dの通信処理部321は、送受信部31を介してコントローラ20dから調理伝票2識別コードが設定された伝票2調理伝票削除要求を受信すると(ステップS1312)、調理伝票2識別コードと削除依頼とを記憶処理部322dに出力する(ステップS1314)。
記憶処理部322dの削除部325dは、調理伝票2識別コードを不揮発メモリ34から削除する(ステップS1316)。削除部325dは、削除完了を通信処理部321に通知し、通信処理部321は、コントローラ20dへ伝票2調理伝票削除応答を送信するよう送受信部31へ指示する(ステップS1318)。
送受信部31は伝票2調理伝票削除応答をコントローラ20dへ送信する(ステップS1320)。
When the communication processing unit 321 of the printer 30d receives the voucher 2 cooking voucher deletion request in which the cooking voucher 2 identification code is set from the controller 20d via the transmission / reception unit 31 (step S1312), the communication voucher 2d Is output to the storage processing unit 322d (step S1314).
The deletion unit 325d of the storage processing unit 322d deletes the cooking slip 2 identification code from the nonvolatile memory 34 (step S1316). The deletion unit 325d notifies the communication processing unit 321 of the completion of deletion, and the communication processing unit 321 instructs the transmission / reception unit 31 to transmit a slip 2 cooking slip deletion response to the controller 20d (step S1318).
The transmission / reception unit 31 transmits a slip 2 cooking slip deletion response to the controller 20d (step S1320).

図32は、コントローラ20dの注文処理フローを示す図である。
コントローラ20dの印字要求受信部220及び注文処理部221は、図10に示すステップS602〜S606のコントローラ20の印字要求受信部220及び注文処理部221と同様の処理を実行する(ステップS1402〜ステップS1406)。なお、ステップS1402においてNOと判断した場合、コントローラ20dは、ステップS1410の処理を実行する。
FIG. 32 is a diagram showing an order processing flow of the controller 20d.
The print request receiving unit 220 and the order processing unit 221 of the controller 20d execute the same processes as the print request receiving unit 220 and the order processing unit 221 of the controller 20 in steps S602 to S606 shown in FIG. 10 (steps S1402 to S1406). ). If NO is determined in step S1402, the controller 20d executes the process of step S1410.

ステップS1408において、伝票処理部222dは、注文データからプリンタ30dに送信すべき調理伝票印字データと、プリンタ30eに送信すべきゲスト伝票印字データを生成する。伝票処理部222dは、伝票番号を割り当てるとともに、調理伝票印字データの識別コードとゲスト伝票印字データの識別コードを生成する。調理伝票印字データの識別コードには、送信先がプリンタ30dであることを示す送信先特定情報が含まれ、ゲスト伝票印字データの識別コードには、送信先がプリンタ30eであることを示す送信先特定情報が含まれる。伝票処理部222dは、記憶部23dに記憶されている注文管理データに、注文データと対応付けて割り当てた伝票番号及び識別コードを書き込む。
さらに、伝票処理部222dは、生成した調理伝票印字データと、当該調理伝票印字データの識別コードとを対応付けて記憶部23dに書き込むとともに、生成したゲスト伝票印字データと、当該ゲスト伝票印字データの識別コードとを対応付けて記憶部23dに書き込む(ステップS1408)。書き込み後、コントローラ20dは、ステップS1410の処理を実行する。
In step S1408, the slip processing unit 222d generates cooking slip print data to be transmitted to the printer 30d from the order data and guest slip print data to be transmitted to the printer 30e. The slip processing unit 222d assigns a slip number and generates an identification code for cooking slip print data and an identification code for guest slip print data. The identification code of the cooking slip print data includes transmission destination specifying information indicating that the transmission destination is the printer 30d, and the identification code of the guest slip print data includes a transmission destination indicating that the transmission destination is the printer 30e. Contains specific information. The slip processing unit 222d writes the slip number and identification code assigned in association with the order data in the order management data stored in the storage unit 23d.
Further, the slip processing unit 222d writes the generated cooking slip print data and the identification code of the cooking slip print data in association with each other in the storage unit 23d, and generates the generated guest slip print data and the guest slip print data. The identification code is associated and written in the storage unit 23d (step S1408). After the writing, the controller 20d executes the process of step S1410.

第2送受信部24は、プリンタ30dまたはプリンタ30eから接続要求を受信した場合(ステップS1410:YES)、接続要求の送信元であるプリンタ30dまたはプリンタ30eとの接続を確立し、受信した接続要求を印字要求受信部220へ出力する(ステップS1412)。   When the second transmission / reception unit 24 receives a connection request from the printer 30d or the printer 30e (step S1410: YES), the second transmission / reception unit 24 establishes a connection with the printer 30d or the printer 30e that is the transmission source of the connection request, and receives the received connection request. The data is output to the print request receiving unit 220 (step S1412).

印字要求受信部220は、接続要求に未印字伝票通知情報が含まれていると判断すると(ステップS1414:YES)、未印字伝票通知情報を伝票再発行処理部223dに出力する。伝票再発行処理部223dは、未印字伝票通知情報から識別コードを取得し、取得した識別コードに含まれる送信先特定情報を読み出す。伝票再発行処理部223dは、読み出した送信先特定情報が示す送信先に対応した伝票の種別を判断する。伝票再発行処理部223dは、取得した識別コードに対応して記憶部23dに記憶されている注文管理データから注文データを読み出すと、読み出した注文データに基づいて、判断した種類の伝票印字データを生成する。以下、この生成した伝票印字データを「未印字伝票データ」と記載する。伝票再発行処理部223dは、生成した未印字伝票データとその識別コードとを記憶部23dに書き込み(ステップS1416)、コントローラ20dは、ステップS1402からの処理を行う。   When determining that the connection request includes unprinted slip notification information (step S1414: YES), the print request receiving unit 220 outputs the unprinted slip notification information to the slip reissue processing unit 223d. The slip reissue processor 223d acquires the identification code from the unprinted slip notification information, and reads the transmission destination specifying information included in the acquired identification code. The slip reissue processing unit 223d determines the type of slip corresponding to the transmission destination indicated by the read transmission destination specifying information. When the slip reissue processing unit 223d reads the order data from the order management data stored in the storage unit 23d corresponding to the acquired identification code, the slip reissue processing unit 223d displays the slip print data of the determined type based on the read order data. Generate. Hereinafter, the generated slip print data is referred to as “unprinted slip data”. The slip reissue processor 223d writes the generated unprinted slip data and its identification code in the storage 23d (step S1416), and the controller 20d performs the processing from step S1402.

ステップS1410において、第2送受信部24が接続要求を受信しなかった場合(ステップS1410:NO)、あるいは、ステップS1414において、印字要求受信部220が、接続要求に未印字伝票通知情報が含まれてないと判断した場合(ステップS1414:NO)、印字要求受信部220は、第2送受信部24が、伝票再発行要求を受信したかを判断する(ステップS1418)。   When the second transmission / reception unit 24 has not received a connection request in step S1410 (step S1410: NO), or in step S1414, the print request reception unit 220 includes unprinted slip notification information in the connection request. If it is determined that there is not (step S1414: NO), the print request receiving unit 220 determines whether the second transmission / reception unit 24 has received the slip reissue request (step S1418).

印字要求受信部220は、第2送受信部24が伝票再発行要求を受信したと判断した場合(ステップS1418:YES)、受信した伝票再発行要求を伝票再発行処理部223dに出力する。伝票再発行処理部223dは、伝票再発行要求からプリンタ識別情報と伝票番号を取得する。伝票再発行処理部223dは、伝票番号により記憶部23dに記憶されている注文管理データを検索し、注文データを特定する。伝票再発行処理部223dは、特定した注文データから全ての種類の伝票の伝票印字データ、すなわち、調理伝票印字データとゲスト伝票印字データを生成する(ステップS1420)。   When the print request receiving unit 220 determines that the second transmission / reception unit 24 has received the voucher reissue request (step S1418: YES), the print request receiving unit 220 outputs the received voucher reissue request to the voucher reissue processing unit 223d. The slip reissue processing unit 223d acquires printer identification information and a slip number from the slip reissue request. The slip reissue processing unit 223d searches the order management data stored in the storage unit 23d by the slip number, and specifies the order data. The slip reissue processing unit 223d generates slip print data of all types of slips, that is, cooking slip print data and guest slip print data from the specified order data (step S1420).

伝票再発行処理部223dは、生成した調理伝票印字データとその識別コード、生成したゲスト伝票印字データとその識別コードとを第2送受信部24へ出力し、伝票再発行要求から取得したプリンタ識別情報により特定される送信先への送信を第2送受信部24へ指示する。第2送受信部24は、調理伝票印字データとその識別コード、及び、ゲスト伝票印字データとその識別コードとを、送信先で指定されたプリンタ30eに送信する(ステップS1422)。   The slip reissue processing unit 223d outputs the generated cooking slip print data and its identification code, the generated guest slip print data and its identification code to the second transmitting / receiving unit 24, and the printer identification information acquired from the slip reissue request The second transmission / reception unit 24 is instructed to transmit to the transmission destination specified by. The second transmitting / receiving unit 24 transmits the cooking slip print data and its identification code, and the guest slip print data and its identification code to the printer 30e designated by the transmission destination (step S1422).

伝票再発行処理部223dは、ステップS1422で送信した調理伝票印字データの識別コードと、ゲスト伝票印字データの識別コードとに、onを設定した再発行済みフラグを対応付けて記憶部23dに書き込む(ステップS1424)。ステップS1424の処理の後、コントローラ20dは、ステップS1402からの処理を行う。   The slip reissue processing unit 223d associates the identification code of the cooking slip print data transmitted in step S1422 and the identification code of the guest slip print data with the reissued flag set to on and writes it in the storage unit 23d ( Step S1424). After the process of step S1424, the controller 20d performs the process from step S1402.

ステップS1418において、第2送受信部24が伝票再発行要求を受信しなかった場合(ステップS1418:NO)、伝票再発行処理部223dは、まだ送信していない未印字伝票データが記憶部23dに記憶されているかを判断する(ステップS1426)。   In step S1418, when the second transmission / reception unit 24 has not received the voucher reissue request (step S1418: NO), the voucher reissue processor 223d stores unprinted voucher data not yet transmitted in the storage unit 23d. It is determined whether it has been performed (step S1426).

記憶部23dに未印字伝票データが記憶されている場合(ステップS1426:YES)、伝票再発行処理部223dは、未送信の未印字伝票データがあると判断し、未印字伝票データの識別コードを読み出す。
なお、未印字伝票データが複数記憶されている場合、伝票再発行処理部223dは、注文管理データから未印字伝票データの識別コードに対応した注文時刻を読み出し、読み出した注文時刻が最も早い識別コードを読み出す。
伝票再発行処理部223dは、読み出した識別コードに対応して、ONが設定された再発行済みフラグが記憶部23dに記憶されているかを判断する(ステップS1428)。
When unprinted slip data is stored in the storage unit 23d (step S1426: YES), the slip reissue processing unit 223d determines that there is unprinted unprinted slip data, and sets an identification code of the unprinted slip data. read out.
When a plurality of unprinted slip data is stored, the slip reissue processing unit 223d reads the order time corresponding to the identification code of the unprinted slip data from the order management data, and the identification code with the earliest read order time Is read.
The slip reissue processing unit 223d determines whether or not the reissued flag set to ON is stored in the storage unit 23d corresponding to the read identification code (step S1428).

伝票再発行処理部223dは、ONが設定された再発行済みフラグが記憶部23dに記憶されていないと判断した場合(ステップS1428:NO)、読み出した識別コードに対応した未印字伝票データを記憶部23dから読み出す。伝票再発行処理部223dは、読み出した未印字伝票データとその識別コードとを第2送受信部24に出力し、識別コード内の送信先特定情報により特定される送信先への送信を指示する。第2送受信部24は、伝票再発行処理部223dから入力された未印字伝票データとその識別コードを、送信先として指示されたプリンタ30dまたはプリンタ30eへ送信する(ステップS1430)。   When the slip reissue processing unit 223d determines that the reissued flag set to ON is not stored in the storage unit 23d (step S1428: NO), the unprinted slip data corresponding to the read identification code is stored. Read from the unit 23d. The slip reissue processing unit 223d outputs the read unprinted slip data and its identification code to the second transmission / reception unit 24, and instructs transmission to the transmission destination specified by the transmission destination specification information in the identification code. The second transmission / reception unit 24 transmits the unprinted slip data and the identification code input from the slip reissue processing unit 223d to the printer 30d or the printer 30e designated as the transmission destination (step S1430).

第2送受信部24が、ステップS1430において送信した未印字伝票データに対応して送信先のプリンタ30dまたはプリンタ30eからの受信応答を所定時間内に受信した場合(ステップS1432:YES)、伝票再発行処理部223dは、ステップS1430において送信した未印字伝票データとその識別コードを記憶部23dから削除し(ステップS1432)、コントローラ20dはステップS1402からの処理を実行する。一方、第2送受信部24が所定時間内に送信先のプリンタ30dまたはプリンタ30eからの受信応答を受信しなかった場合(ステップS1432:NO)、コントローラ20dは未印字伝票データの削除は行わずにステップS1402からの処理を実行する。   When the second transmitting / receiving unit 24 receives a reception response from the destination printer 30d or the printer 30e within a predetermined time corresponding to the unprinted slip data transmitted in step S1430 (step S1432: YES), the slip is reissued The processing unit 223d deletes the unprinted slip data and the identification code transmitted in step S1430 from the storage unit 23d (step S1432), and the controller 20d executes the processing from step S1402. On the other hand, when the second transmission / reception unit 24 does not receive a reception response from the destination printer 30d or the printer 30e within a predetermined time (step S1432: NO), the controller 20d does not delete the unprinted slip data. The processing from step S1402 is executed.

一方、ステップS1428において、ONが設定された再発行済みフラグが記憶部23dに記憶されていると判断した場合(ステップS1428:YES)、伝票再発行処理部223dは、読み出した識別コードを設定した伝票削除要求を第2送受信部24へ出力し、識別コード内の送信先特定情報により特定される送信先への送信を指示する。第2送受信部24は、伝票削除要求を、伝票再発行要求を送信先として指示されたプリンタ30dまたはプリンタ30eへ送信する(ステップS1436)。伝票再発行処理部223dは、識別コードと、当該識別コードに対応付けられた未印字伝票データを記憶部23dから削除し、コントローラ20dは、ステップS1402からの処理を実行する。   On the other hand, when it is determined in step S1428 that the reissued flag set to ON is stored in the storage unit 23d (step S1428: YES), the slip reissue processing unit 223d sets the read identification code. A slip deletion request is output to the second transmission / reception unit 24, and an instruction for transmission to the transmission destination specified by the transmission destination specification information in the identification code is given. The second transmission / reception unit 24 transmits a slip deletion request to the printer 30d or the printer 30e instructed to send the slip reissue request as a transmission destination (step S1436). The slip reissue processing unit 223d deletes the identification code and the unprinted slip data associated with the identification code from the storage unit 23d, and the controller 20d executes the processing from step S1402.

ステップS1426において、伝票再発行処理部223dが、記憶部23dに未印字伝票データは記憶されておらず、未送信の未印字伝票データはないと判断した場合(ステップS1426:NO)、伝票処理部222dは、まだ送信が完了していない伝票印字データが記憶部23dに記憶されているかにより、送信が完了していない伝票印字データがあるかを判断する(ステップS1438)。記憶部23dに送信が完了していない伝票印字データが記憶されていない場合(ステップ1438:NO)、コントローラ20dは、ステップS1402からの処理を実行する。   In step S1426, when the slip reissue processing unit 223d determines that the unprinted slip data is not stored in the storage unit 23d and there is no unprinted unprinted slip data (step S1426: NO), the slip processing unit 222d determines whether there is slip print data for which transmission has not been completed, depending on whether slip print data for which transmission has not been completed is stored in the storage unit 23d (step S1438). When the slip print data whose transmission has not been completed is not stored in the storage unit 23d (step 1438: NO), the controller 20d executes the processing from step S1402.

記憶部23dに伝票印字データが記憶されている場合(ステップS1438:YES)、伝票処理部222dは、ステップS1408において書き込まれた後、まだ送信が完了していない伝票印字データとその識別コードを記憶部23dから読み出す。伝票処理部222dは読み出した伝票印字データとその識別コードとを第2送受信部24に出力し、識別コード内の送信先特定情報により特定される送信先への送信を指示する。
なお、伝票印字データが複数記憶されている場合、伝票処理部222dは、記憶部23dが記憶している注文管理データから伝票印字データの識別コードに対応した注文時刻を読み出し、読み出した注文時刻が最も早い識別コードと、その識別コードに対応した伝票印字データを第2送受信部24に出力し、送信を指示する。第2送受信部24は、伝票処理部222dから入力された伝票印字データとその識別コードを、送信先として指示されたプリンタ30dまたはプリンタ30eへ送信する(ステップS1440)。
When the slip print data is stored in the storage unit 23d (step S1438: YES), the slip processing unit 222d stores the slip print data that has been written in step S1408 and has not yet been transmitted and its identification code. Read from the unit 23d. The slip processing unit 222d outputs the read slip print data and its identification code to the second transmitting / receiving unit 24, and instructs transmission to the transmission destination specified by the transmission destination specifying information in the identification code.
When a plurality of slip print data is stored, the slip processing unit 222d reads the order time corresponding to the identification code of the slip print data from the order management data stored in the storage unit 23d, and the read order time is The earliest identification code and slip print data corresponding to the identification code are output to the second transmitting / receiving unit 24 to instruct transmission. The second transmission / reception unit 24 transmits the slip print data and the identification code input from the slip processing unit 222d to the printer 30d or the printer 30e designated as the transmission destination (step S1440).

第2送受信部24が、ステップS1440において送信した伝票印字データに対応して送信先のプリンタ30dまたはプリンタ30eからの受信応答を所定時間内に受信した場合(ステップS1432:YES)、伝票処理部222dは、ステップS1440において送信した伝票印字データとその識別コードを記憶部23dから削除し(ステップS1444)、コントローラ20dはステップS1402からの処理を実行する。一方、第2送受信部24が所定時間内に送信先のプリンタ30dまたはプリンタ30eからの受信応答を受信しなかった場合(ステップS1432:NO)、コントローラ20dは伝票印字データの削除は行わずにステップS1402からの処理を実行する。   When the second transmission / reception unit 24 receives a reception response from the destination printer 30d or printer 30e within a predetermined time corresponding to the slip print data transmitted in step S1440 (step S1432: YES), the slip processing unit 222d. Deletes the slip print data and its identification code transmitted in step S1440 from the storage unit 23d (step S1444), and the controller 20d executes the processing from step S1402. On the other hand, if the second transmitter / receiver 24 does not receive a reception response from the destination printer 30d or the printer 30e within a predetermined time (step S1432: NO), the controller 20d does not delete the slip print data. The processing from S1402 is executed.

本実施形態によれば、プリンタ30dの電源断が発生し、コントローラ20dが他のプリンタから伝票再発行要求を受信する前に当該プリンタ30dの電源が再投入された場合、第1の実施形態と同様の処理が行われ、接続要求により再送が要求された伝票印字データを優先してプリンタ30dに印字させる。一方、プリンタ30dの電源が再投入される前に、コントローラ20dが他のプリンタ、例えばプリンタ30eから伝票再発行要求を受信した場合、同じ伝票番号を有する全ての種類の伝票印字データをプリンタ30eに再送し、調理伝票、ゲスト伝票を印字させる。これにより、プリンタ30dの電源がすぐに再投入された場合には、飲食店のスタッフの操作を必要とせず、プリンタ30dに調理伝票を印字させることができる。一方、プリンタ30dの電源再投入までに時間がかかる場合、飲食店のスタッフの操作により、調理伝票をプリンタ30eに印字させることができるため、注文された料理の調理を遅滞なく行うことができる。
また、既にプリンタ30eで印字済みの伝票は、プリンタ30dの電源が再投入された後にプリンタ30dにおいて印字されることはないため、伝票の二重発行は生じ得ず、調理担当などが作業に混乱することはない。
According to the present embodiment, when the power of the printer 30d is cut off and the power of the printer 30d is turned on again before the controller 20d receives a slip reissue request from another printer, A similar process is performed, and the slip print data requested to be retransmitted by the connection request is preferentially printed on the printer 30d. On the other hand, when the controller 20d receives a slip reissue request from another printer, for example, the printer 30e, before the printer 30d is turned on again, all types of slip print data having the same slip number are sent to the printer 30e. Resend and have the cooking slip and guest slip printed. As a result, when the power of the printer 30d is immediately turned on again, the cooking slip can be printed on the printer 30d without requiring the operation of the restaurant staff. On the other hand, when it takes time until the power of the printer 30d is turned on again, the cooking slip can be printed on the printer 30e by the operation of the restaurant staff, so that the cooked food can be cooked without delay.
In addition, slips that have already been printed by the printer 30e are not printed by the printer 30d after the printer 30d is turned on again. Therefore, the slip cannot be issued twice, and the person in charge of cooking is confused by the work. Never do.

なお、プリンタ30dが、プリンタ30eの通信処理部321e及び指示入力部37を備え、プリンタ30eが、プリンタ30dの削除部325dを備えてもよい。また、プリンタ30dとプリンタ30eを同一構成とし、上述したプリンタ30eの通信処理部321e及び指示入力部37、ならびにプリンタ30dの削除部325dを、両プリンタが備えるようにしてもよい。これにより、プリンタ30eに電源断が発生した際、プリンタ30dは、上述したプリンタ30eと同様の処理を行い、コントローラ20dへ伝票再発行要求を送信し、返送されたゲスト伝票印字データ及び調理伝票印字データを印字する。   The printer 30d may include the communication processing unit 321e and the instruction input unit 37 of the printer 30e, and the printer 30e may include the deletion unit 325d of the printer 30d. Further, the printer 30d and the printer 30e may have the same configuration, and both printers may include the communication processing unit 321e and the instruction input unit 37 of the printer 30e and the deletion unit 325d of the printer 30d. Thus, when the printer 30e is powered off, the printer 30d performs the same processing as the printer 30e described above, sends a slip reissue request to the controller 20d, and returns the returned guest slip print data and cooking slip print. Print the data.

一般に、伝票には伝票番号が印字されるが、識別コードは印字されない。よって、飲食店のスタッフは、印字された伝票から伝票番号を知ることができるが、識別コードを知ることができない。そこで、上述したように、コントローラ20dは、伝票番号が設定された伝票再発行要求をプリンタから受信すると、この伝票番号に関連付けられている全ての識別コードについて、当該識別コードにより特定される伝票印字データを生成し、伝票再発行要求の送信元へ送信する。これにより、伝票再発行要求を送信したプリンタからは、再発行を要求した伝票番号の全ての種類の伝票が印字される。
そこで、飲食店のスタッフがどの種類の伝票を印字させるかを特定できるようにしてもよい。具体的には、プリンタが伝票再発行要求を送信した結果、コントローラ20dから全ての種類の伝票の伝票印字データを受信した場合、複数の種類の伝票が再印字可能であることをプリンタの図示しないディスプレイに表示させる。飲食店のスタッフが、調理伝票、ゲスト伝票など、印字させたい伝票の種類をプリンタに入力すると、プリンタは、入力された種類の伝票の伝票印字データを印字する。
Generally, a slip number is printed on a slip, but an identification code is not printed. Therefore, the restaurant staff can know the slip number from the printed slip, but cannot know the identification code. Therefore, as described above, when the controller 20d receives a slip reissue request with a slip number set from the printer, the slip print specified by the identification code for all the identification codes associated with the slip number. Data is generated and sent to the sender of the slip reissue request. As a result, all types of slips with the slip number requested to be reissued are printed from the printer that has transmitted the slip reissue request.
Therefore, the restaurant staff may be allowed to specify which type of slip is to be printed. Specifically, as a result of the printer sending a slip reissue request, when the slip print data of all types of slips is received from the controller 20d, the printer does not show that a plurality of types of slips can be reprinted. Display on the display. When a restaurant staff inputs a type of slip to be printed, such as a cooking slip or a guest slip, into the printer, the printer prints slip print data of the input slip.

または、飲食店のスタッフがどの種類の伝票を印字させるかを初めから分かっている場合には、印字させたい伝票の種類を示す情報を入力する手段をプリンタに設けてスタッフに操作させるようにしてもよい。これによりプリンタは、入力された伝票の種類を示す情報をさらに設定した伝票再発行要求をコントローラ20dに送信する。コントローラ20dは、伝票再発行要求に設定されている伝票番号で特定される注文データから、当該伝票再発行要求に設定されている情報が示す種類の伝票についてのみ伝票印字データを生成し、伝票再発行の要求元へ送信する。これにより、飲食店のスタッフが印字したい伝票のみを印字させることが可能となる。   Alternatively, if the restaurant staff knows from the beginning what type of slip is to be printed, the printer should be provided with a means for inputting information indicating the type of slip to be printed. Also good. Accordingly, the printer transmits a slip reissue request further set with information indicating the type of the input slip to the controller 20d. The controller 20d generates voucher print data only for the voucher of the type indicated by the information set in the voucher reissue request from the order data specified by the voucher number set in the voucher reissue request. Send to issuer requester. This makes it possible to print only the slip that the restaurant staff wants to print.

あるいは、プリンタが、伝票印字データの印字が完了する毎に、印字が完了した伝票印字データの識別コードを印字済み識別コードとして不揮発メモリに記憶するようにしてもよい。これにより、プリンタが送信した伝票再発行要求に対応してコントローラ20dから受信した再発行用の伝票印字データのうち、自プリンタの不揮発メモリに記憶されている印字済み識別コードに対応した伝票印字データを除いた伝票印字データのみを印字する。例えば、印字済み識別コード「0002G」を不揮発メモリに記憶するプリンタ20dが、伝票の再発行要求を送信し、コントローラ20dから多くの伝票印字データを取得した場合、識別コード「0002G」が付加されていない伝票印字データのみを印字する。
これにより、飲食店のスタッフに特段の操作を強いることなく、当該プリンタで未印字の伝票のみを印字させることが可能となる。
Alternatively, every time printing of the slip print data is completed, the printer may store the identification code of the slip print data that has been printed in the nonvolatile memory as a printed identification code. As a result, of the reissue slip print data received from the controller 20d in response to the slip reissue request transmitted by the printer, the slip print data corresponding to the printed identification code stored in the non-volatile memory of the printer itself. Only slip print data excluding is printed. For example, when the printer 20d that stores the printed identification code “0002G” in the non-volatile memory transmits a slip reissue request and acquires a lot of slip print data from the controller 20d, the identification code “0002G” is added. Print only the slip print data that is not.
This makes it possible to print only unprinted slips with the printer without forcing the restaurant staff to perform special operations.

あるいは、各プリンタが印字する伝票の種類が決まっている場合、伝票再発行要求を送信した結果、コントローラ20dから全ての種類の伝票の伝票印字データを受信したプリンタは、自プリンタが印字する種類と異なる種類の伝票の伝票印字データを印字する。例えば、ゲスト伝票を印字するプリンタ30eが、伝票再発行要求に対応してコントローラ20dか調理伝票印字データ及びゲスト伝票印字データを受信した場合、調理伝票印字データのみを印字する。   Alternatively, when the type of slip printed by each printer is determined, the printer that has received the slip print data of all types of slips from the controller 20d as a result of sending the slip reissue request is the type that the printer will print. Print slip print data for different types of slips. For example, when the printer 30e that prints the guest slip receives the cooking slip print data and the guest slip print data from the controller 20d in response to the slip reissue request, only the cooking slip print data is printed.

または、コントローラ20dが、各プリンタが印字する伝票の種類を把握しており、伝票再発行要求を受信した際、当該要求の送信元のプリンタが通常印字する種類とは異なる種類の伝票の伝票印字データを作成して、そのプリンタに送信する。プリンタは、コントローラ20dから受信した伝票印字データを印字する。
これにより、不揮発メモリに印字済み識別コードを記憶するエリアを設けたり、印字処理中に不揮発メモリへの書き込み処理を実施したりすることなく、また、飲食店のスタッフに特段の操作を強いることなく、当該プリンタで未印字の伝票のみを印字させることが可能となる。
Alternatively, the controller 20d knows the type of slip printed by each printer, and when a slip reissue request is received, slip printing of a slip of a type different from the type normally printed by the printer that sent the request. Create data and send it to the printer. The printer prints the slip print data received from the controller 20d.
As a result, there is no need to provide an area for storing the printed identification code in the non-volatile memory, or to perform a writing process to the non-volatile memory during the printing process, and without forcing the restaurant staff to perform a special operation. Only the unprinted slip can be printed by the printer.

上述した実施形態によれば、プリンタに大容量の不揮発メモリを備える必要なく、プリンタの電源がオフされたために印字が完了していなかった伝票印字データの印字処理が最優先に行われる。そのため、注文の順番に伝票が印字され、後から注文されたメニューの調理指示が先に行われることを防止することができる。
また、何らかの理由で印字が完了していなかった伝票印字データは、プリンタの電源が再度投入された後、優先して印字される上、前回未印字であったことを示す情報や、注文からの経過時間情報などをあわせた印字が可能である。よって、プリンタの影響が原因で調理が遅れたことを調理人やフロアスタッフに認知させることができ、当該伝票に関する調理を急ぐなど、適切な対応を取らせることができる。
According to the above-described embodiment, it is not necessary to provide the printer with a large-capacity nonvolatile memory, and the printing process of the slip print data that has not been printed because the printer is turned off is performed with the highest priority. Therefore, slips are printed in the order of order, and it is possible to prevent a cooking instruction for a menu ordered later from being given first.
In addition, slip print data that has not been printed for some reason is preferentially printed after the printer power is turned on again, and information indicating that it was not printed last time, Printing that includes elapsed time information is possible. Therefore, it is possible to make the cook or the floor staff recognize that cooking has been delayed due to the influence of the printer, and to take appropriate measures such as urgent cooking for the slip.

また、プリンタは、コントローラから送信された印字データに、伝票印字データではないことを示す識別コードが付与されていた場合、当該識別コードを不揮発メモリへ記録しない。従って、電源断が発生した場合でも確実に印字しなければならない対象である伝票印字データの識別コードのみを不揮発メモリに記録すればよいため、不揮発メモリのメモリ容量を抑えることができる。   Further, when an identification code indicating that it is not slip print data is added to the print data transmitted from the controller, the printer does not record the identification code in the nonvolatile memory. Accordingly, only the identification code of the slip print data that is to be printed reliably even when the power is cut off needs to be recorded in the non-volatile memory, so that the memory capacity of the non-volatile memory can be reduced.

なお、コントローラ20の処理部22、コントローラ20bの処理部22b、コントローラ20cの処理部22c、コントローラ20dの処理部22d、プリンタ30の処理部32、プリンタ30aの処理部32a、プリンタ30bの処理部32b、プリンタ30dの処理部32d、及び、プリンタ30eの処理部32eは、メモリ及びCPU(中央処理装置)等により構成され、上述したコントローラ20の処理部22、コントローラ20bの処理部22b、コントローラ20cの処理部22c、プリンタ30の処理部32、プリンタ30aの処理部32a、及び、プリンタ30bの処理部32bの処理過程を実現するためのプログラム(図示せず)を、これを記録している不揮発性のメモリ、磁気ディスク等から、上記メモリにロードして実行することによりその機能が実現される。   The processing unit 22 of the controller 20, the processing unit 22b of the controller 20b, the processing unit 22c of the controller 20c, the processing unit 22d of the controller 20d, the processing unit 32 of the printer 30, the processing unit 32a of the printer 30a, and the processing unit 32b of the printer 30b. The processing unit 32d of the printer 30d and the processing unit 32e of the printer 30e are configured by a memory, a CPU (central processing unit), and the like. The processing unit 22 of the controller 20, the processing unit 22b of the controller 20b, and the controller 20c described above. Non-volatile recording program (not shown) for realizing the processing steps of the processing unit 22c, the processing unit 32 of the printer 30, the processing unit 32a of the printer 30a, and the processing unit 32b of the printer 30b Load the above memory from any other memory, magnetic disk, etc. Its function is realized by executing.

10…ハンディーターミナル
20、20b、20c、20d…コントローラ(制御装置)
21…第1送受信部
22、22b、22c、22d…処理部
220…印字要求受信部(注文受信部)
221…注文処理部
222、222d…伝票処理部
223、223b、223c、223d…伝票再発行処理部
224…印字データ生成部
23、23d…記憶部
24…第2送受信部
30、30a、30b、30d、30e…プリンタ(印字装置)
31…送受信部(受信部)
32、32a、32b、32d、32e…処理部
321、321b、321e…通信処理部(未印字伝票通知部)
322、322a、322b、322d…記憶処理部
323、323a…印字処理部
324、324a、324b…登録部
325、325a、325d…削除部
326…更新部
327…印字情報付加部
33、33a…揮発メモリ
34、34a…不揮発メモリ
35…印字部
36…カッター部
10: Handy terminals 20, 20b, 20c, 20d ... Controller (control device)
21 ... 1st transmission / reception part 22, 22b, 22c, 22d ... processing part 220 ... print request receiving part (order receiving part)
221: Order processing unit 222, 222d ... slip processing unit 223, 223b, 223c, 223d ... slip reissue processing unit 224 ... print data generation unit 23, 23d ... storage unit 24 ... second transmission / reception units 30, 30a, 30b, 30d 30e ... Printer (printing device)
31 ... Transmitter / receiver (receiver)
32, 32a, 32b, 32d, 32e ... processing units 321, 321b, 321e ... communication processing unit (unprinted slip notification unit)
322, 322a, 322b, 322d ... storage processing units 323, 323a ... print processing units 324, 324a, 324b ... registration units 325, 325a, 325d ... deletion unit 326 ... update unit 327 ... print information addition unit 33, 33a ... volatile memory 34, 34a ... Nonvolatile memory 35 ... Printing unit 36 ... Cutter unit

Claims (10)

制御装置と、該制御装置に接続要求を送信し、該制御装置から接続応答を受信して印字データの受信待ちとなる印字装置を有する注文管理システムであって、
前記制御装置は、
注文を入力する装置から注文データを受信する注文受信部と、
前記注文受信部が受信した注文データと当該注文データが示す注文の注文時刻とを記憶部に登録する注文処理部と、
前記注文受信部が受信した注文データに基づいて伝票の印字データを生成するとともに当該印字データを識別する識別情報を生成して当該識別情報を前記注文データと対応付けて前記記憶部に登録し、前記印字データ及び前記識別情報を前記印字装置へ送信し、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信する伝票処理部と、
前記印字装置から、前記接続要求とともに再送対象の前記印字データの識別情報を受信した場合、接続応答を送信するとともに、受信した前記識別情報により特定される前記注文データに基づいた伝票の印字データを未印字データとし、前記伝票処理部が生成して送信が完了していない印字データより先に前記印字装置に送信する伝票再発行処理部とを備え、
前記印字装置は、
印字を行う印字部と、
印字が完了していない印字データの識別情報を記憶する不揮発メモリと、
前記制御装置から前記印字データ及び当該印字データの識別情報を受信し、受信応答を返送する受信部と、
前記受信部が受信した前記印字データの識別情報を、受信した順に前記不揮発メモリに書き込む登録部と、
前記受信部が受信した前記印字データを前記印字部に印字させる印字処理部と、
印字が完了した前記印字データの識別情報を前記不揮発メモリから削除する削除部と、
当該印字装置の電源が投入されたときに、前記不揮発メモリに記憶されている前記印字データの識別情報を再送対象として前記接続要求とともに前記制御装置に送信する未印字伝票通知部と、
を備えることを特徴とする注文管理システム。
An order management system having a control device and a printing device that transmits a connection request to the control device, receives a connection response from the control device, and waits for reception of print data ,
The controller is
An order receiving unit for receiving order data from a device for inputting an order;
An order processing unit that registers in the storage unit the order data received by the order receiving unit and the order time of the order indicated by the order data;
Generating print data of the slip based on the order data received by the order receiving unit, generating identification information for identifying the print data, registering the identification information in the storage unit in association with the order data, A slip processing unit that transmits the print data and the identification information to the printing device, and receives a reception response from the printing device corresponding to the transmitted print data and the identification information;
When receiving identification information of the print data to be retransmitted together with the connection request from the printing device , a connection response is transmitted , and print data of the slip based on the order data specified by the received identification information the as the unprinted data, and a slip reissue processing unit to be transmitted to the printer before the print data transmitting said document processing portion is generated is not completed,
The printer is
A printing section for performing printing, and
A non-volatile memory for storing identification information of print data that has not been printed;
A receiving unit that receives the print data and the identification information of the print data from the control device, and returns a reception response;
A registration unit that writes the identification information of the print data received by the reception unit into the nonvolatile memory in the order of reception;
A print processing unit that causes the print unit to print the print data received by the receiving unit;
A deletion unit that deletes the identification information of the print data that has been printed from the nonvolatile memory;
An unprinted slip notification unit that transmits the identification information of the print data stored in the nonvolatile memory to the control device together with the connection request when the power of the printing device is turned on;
An order management system comprising:
制御装置の前記伝票再発行処理部は、前記接続要求とともに受信した前記識別情報により特定される前記注文データに基づいた伝票の印字データに、再送を示す情報を印字させるデータを付加した未印字データを生成し、接続応答を送信するとともに、当該未印字データを、前記伝票処理部が生成して送信が完了していない印字データより先に前記印字装置に送信する、
ことを特徴とする請求項1に記載の注文管理システム。
The slip reissuing processing unit of the control device adds unprinted data in which data for printing information indicating retransmission is added to the print data of the slip based on the order data specified by the identification information received together with the connection request. And sending a connection response, and sending the unprinted data to the printing device before the print data that the slip processing unit has generated and has not been sent,
The order management system according to claim 1, wherein:
制御装置の前記伝票再発行処理部は、前記接続要求とともに受信した前記識別情報により特定される前記注文データに基づいた伝票の印字データと、再送を示す情報に関する印字データとを合わせた未印字データを生成し、接続応答を送信するとともに、当該未印字データを、前記伝票処理部が生成して送信が完了していない印字データより先に印字装置に送信する、
ことを特徴とする請求項1または請求項2に記載の注文管理システム。
The slip reissue processing unit of the control device includes unprinted data combining print data of the slip based on the order data specified by the identification information received together with the connection request and print data relating to information indicating retransmission And sending a connection response, and sending the unprinted data to the printing device before the print data generated by the slip processing unit and not transmitted.
The order management system according to claim 1 or 2, wherein
再送を示す前記情報は、前記接続要求とともに受信した前記識別情報により特定される前記注文データが示す注文の注文時刻からの経過時間である、
ことを特徴とする請求項2または請求項3に記載の注文管理システム。
The information indicating retransmission is an elapsed time from the order time of the order indicated by the order data specified by the identification information received together with the connection request .
The order management system according to claim 2 or claim 3, wherein
前記印字装置は、
前記制御装置から接続応答とともに受信した前記未印字データに、再送を示す情報を印字させるデータを付加する印字情報付加部をさらに備える、
ことを特徴とする請求項1に記載の注文管理システム。
The printer is
A print information adding unit for adding data for printing information indicating retransmission to the unprinted data received together with a connection response from the control device;
The order management system according to claim 1, wherein:
前記印字データは、前記注文データが示す注文の明細を単一の伝票として印字させる短冊印字データを1以上含み、
前記印字装置は、
前記印字部が前記印字データに含まれる前記短冊印字データの印字を完了した数である印字完了数を、当該印字データの識別情報と対応付けて前記不揮発メモリに書き込む更新部をさらに備え、
前記印字情報付加部は、前記未印字データに、再送を示す情報として、前記識別情報に対応して前記不揮発メモリに記憶されている前記印字完了数に基づく情報を印字させるデータを付加する、
ことを特徴とする請求項5に記載の注文管理システム。
The print data includes one or more strip print data for printing the order details indicated by the order data as a single slip,
The printer is
An update unit that writes the number of print completions, which is the number of prints of the strip print data included in the print data, to the nonvolatile memory in association with the identification information of the print data;
The print information adding unit, before Symbol unprinted data, as the information indicating the retransmission, adds data for printing the information based on the number of print completion in response to the identification information stored in the nonvolatile memory,
The order management system according to claim 5, wherein:
前記印字情報付加部は、記未印字データに含まれる前記短冊印字データに、再送を示す情報として、前記印字完了数に基づいて再印字であることを示す情報あるいは未印字であることを示す情報を印字させるデータを付加する、
ことを特徴とする請求項6に記載の注文管理システム。
The print information adding unit indicates that said strip print data included in the prior SL unprinted data, as the information indicating the retransmission, the information or non-printed indicating that the re-printing based on the number of print completion Add data to print information,
The order management system according to claim 6.
前記印字データは、前記注文データが示す注文の明細を単一の伝票として印字させる短冊印字データを1以上含み、
前記印字装置は、
前記印字部が前記印字データに含まれる前記短冊印字データの印字を完了した数である印字完了数を、当該印字データの識別情報と対応付けて前記不揮発メモリに書き込む更新部をさらに備え、
前記未印字伝票通知部は、前記印字装置の電源が投入されたときに、前記不揮発メモリに記憶されている前記印字データの識別情報及び前記印字完了数を、前記接続要求に含めて前記制御装置に送信し、
前記伝票再発行処理部は、前記接続要求とともに前記識別情報及び前記印字完了数を受信し、受信した前記識別情報により特定される前記注文データに基づいた伝票の印字データに含まれる短冊印字データのうち、受信した前記印字完了数から印字されていないと判断される短冊印字データのみを含む未印字データを生成し、接続応答を送信するとともに、当該未印字データを、前記伝票処理部が生成して送信が完了していない印字データより先に前記印字装置に送信する、
ことを特徴とする請求項1に記載の注文管理システム。
The print data includes one or more strip print data for printing the order details indicated by the order data as a single slip,
The printer is
An update unit that writes the number of print completions, which is the number of prints of the strip print data included in the print data, to the nonvolatile memory in association with the identification information of the print data;
The unprinted slip notification unit includes the identification information of the print data stored in the non-volatile memory and the number of print completions included in the connection request when the printer is turned on. To
The slip reissue processing unit receives the identification information and the number of print completions together with the connection request, and prints the strip print data included in the print data of the slip based on the order data specified by the received identification information. Among them, it generates unprinted data including only strip print data determined not to be printed from the received number of print completions , transmits a connection response, and the slip processing unit generates the unprinted data. To send to the printer before the print data that has not been sent,
The order management system according to claim 1, wherein:
前記伝票処理部は、前記注文受信部が受信した注文データに基づいて複数種類の伝票の印字データを生成するとともに当該印字データそれぞれを識別する識別情報を生成し、前記注文データと前記伝票の伝票番号と前記印字データそれぞれの識別情報とを対応付けて前記記憶部に登録し、前記印字データ及び当該印字データの識別情報の組それぞれを、当該印字データの伝票の種類に対応した前記印字装置へ送信し、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信し、
前記伝票再発行処理部は、
前記印字装置から再送対象の伝票の伝票番号を受信し、受信した前記伝票番号により特定される前記注文データに基づいて生成した前記複数の種類の未印字データを前記印字装置に返送するとともに、返送した前記未印字データの識別情報と再送済みを示す情報とを対応付けて前記記憶部に登録し、
前記伝票処理部が再送対象の伝票の伝票番号を送信した前記印字装置とは異なる他の前記印字装置から前記識別情報を再送対象として受信し、受信した前記識別情報に対応して再送済みを示す情報が前記記憶部に登録されている場合、削除要求を前記他の印字装置に返送し、受信した前記識別情報に対応して再送済みを示す情報が前記記憶部に登録されていない場合、前記識別情報により特定される伝票の未印字データを、前記伝票処理部が生成して送信が完了していない印字データより先に、前記他の印字装置に送信し、
前記印字装置の未印字伝票通知部は、再発行対象の伝票の伝票番号を前記制御装置に送信し、
前記他の印字装置の前記削除部は、前記未印字伝票通知部が送信した前記印字データの識別情報に対応して前記制御装置から削除要求を受信した場合、送信した前記識別情報を前記不揮発メモリから削除する、
ことを特徴とする請求項1に記載の注文管理システム。
The slip processing unit generates print data of a plurality of types of slips based on the order data received by the order receiving unit and generates identification information for identifying each of the print data, and the order data and the slip of the slip The number and the identification information of each of the print data are associated with each other and registered in the storage unit, and each set of the print data and the identification information of the print data is transferred to the printing apparatus corresponding to the type of slip of the print data. Transmit, receive a reception response from the printing device corresponding to the transmitted print data and the identification information,
The slip reissue processor
A slip number of a slip to be retransmitted is received from the printing device, and the plurality of types of unprinted data generated based on the order data specified by the received slip number are returned to the printing device and returned. The identification information of the unprinted data and the information indicating the retransmitted are associated with each other and registered in the storage unit,
The slip processing unit receives the identification information as a retransmission target from another printing device different from the printing device that has transmitted the slip number of the slip to be retransmitted, and indicates that it has been retransmitted corresponding to the received identification information When information is registered in the storage unit, a deletion request is returned to the other printing device, and when information indicating resend corresponding to the received identification information is not registered in the storage unit, Sending the unprinted data of the slip specified by the identification information to the other printing device before the print data generated by the slip processing unit and not transmitted,
The unprinted slip notification unit of the printing device transmits the slip number of the slip to be reissued to the control device,
When the deletion unit of the other printing device receives a deletion request from the control device corresponding to the identification information of the print data transmitted by the unprinted slip notification unit, the deletion unit transmits the transmitted identification information to the nonvolatile memory. Remove from
The order management system according to claim 1, wherein:
制御装置と、該制御装置に接続要求を送信し、該制御装置から接続応答を受信して印字データの受信待ちとなる印字装置を有する注文管理システムに用いられる前記制御装置であって、
注文を入力する装置から注文データを受信する注文受信部と、
前記注文受信部が受信した注文データと当該注文データが示す注文の注文時刻とを記憶部に登録する注文処理部と、
前記注文受信部が受信した注文データに基づいて伝票の印字データを生成するとともに当該印字データを識別する識別情報を生成して当該識別情報を前記注文データと対応付けて前記記憶部に登録し、前記印字データ及び前記識別情報を前記印字装置へ送信し、送信した前記印字データ及び前記識別情報に対応して前記印字装置から受信応答を受信する伝票処理部と、
前記印字装置から、前記接続要求とともに再送対象の前記印字データの識別情報を受信した場合、接続応答を送信するとともに、受信した前記識別情報により特定される前記注文データに基づいた伝票の印字データを未印字データとし、当該未印字データを、前記伝票処理部が生成して送信が完了していない印字データより先に前記印字装置に送信する伝票再発行処理部と
を備えることを特徴とする制御装置。
A control device that is used in an order management system having a printing device that transmits a connection request to the control device, receives a connection response from the control device, and waits for reception of print data ;
An order receiving unit for receiving order data from a device for inputting an order;
An order processing unit that registers in the storage unit the order data received by the order receiving unit and the order time of the order indicated by the order data;
Generating print data of the slip based on the order data received by the order receiving unit, generating identification information for identifying the print data, registering the identification information in the storage unit in association with the order data, A slip processing unit that transmits the print data and the identification information to the printing device, and receives a reception response from the printing device corresponding to the transmitted print data and the identification information;
When receiving identification information of the print data to be retransmitted together with the connection request from the printing device , a connection response is transmitted , and print data of the slip based on the order data specified by the received identification information And a slip reissuing processor that transmits the unprinted data to the printer prior to print data that has not been generated and transmitted by the slip processor. Control device.
JP2011083750A 2011-04-05 2011-04-05 Order management system and control device Active JP5827025B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011083750A JP5827025B2 (en) 2011-04-05 2011-04-05 Order management system and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011083750A JP5827025B2 (en) 2011-04-05 2011-04-05 Order management system and control device

Publications (2)

Publication Number Publication Date
JP2012221046A JP2012221046A (en) 2012-11-12
JP5827025B2 true JP5827025B2 (en) 2015-12-02

Family

ID=47272538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011083750A Active JP5827025B2 (en) 2011-04-05 2011-04-05 Order management system and control device

Country Status (1)

Country Link
JP (1) JP5827025B2 (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3513263B2 (en) * 1995-05-23 2004-03-31 株式会社野村総合研究所 Printing system and printing control method
JPH10124568A (en) * 1996-10-15 1998-05-15 Tec Corp System for managing merchandise order
JPH10269459A (en) * 1997-03-28 1998-10-09 Sanyo Electric Co Ltd Merchandise sales register
JPH11112722A (en) * 1997-09-30 1999-04-23 Minolta Co Ltd Image forming device and image forming system
JP2005231187A (en) * 2004-02-19 2005-09-02 Fuji Xerox Co Ltd Print indicator, printer, and print data backup system and method
JP2007102331A (en) * 2005-09-30 2007-04-19 Toshiba Tec Corp Printing system and printing device
JP4863754B2 (en) * 2006-04-17 2012-01-25 エスアイアイ・データサービス株式会社 Order management system
JP4779831B2 (en) * 2006-06-30 2011-09-28 富士ゼロックス株式会社 Continuous paper printer
JP2008053791A (en) * 2006-08-22 2008-03-06 Konica Minolta Business Technologies Inc Image formation system
JP2011065493A (en) * 2009-09-18 2011-03-31 Sharp Corp Network image forming system, and image forming apparatus and server computer employed for the system

Also Published As

Publication number Publication date
JP2012221046A (en) 2012-11-12

Similar Documents

Publication Publication Date Title
JP6531599B2 (en) Information processing apparatus program and information processing apparatus
JP2010218234A (en) Print management device, print management method, and program
JP2007076828A (en) Image processing device
CN110225217A (en) Image processing apparatus and its control method
GB2527656A (en) Sheet stacking apparatus, method of controlling sheet stacking apparatus, program and storage medium
JP2006018748A (en) Information processing apparatus and its control method, and computer program and computer readable storage medium
JP3769142B2 (en) Image printing system and operation control method thereof
JP5827025B2 (en) Order management system and control device
JP2024012461A (en) Article registration device, control method, and program
EP1761036B1 (en) Printing apparatus and contents providing system
US20160065761A1 (en) Information processing apparatus, mobile terminal, and information processing system
CN106558158B (en) Work management device and work management method
CN103369184A (en) Data printing system, portable terminal device and computer-readable medium
JP2009003617A (en) Portable communication equipment
JP2006227685A (en) Symbol image generation device, portable information processing device, printing system, generation method of symbol image, and program
JP2011098440A (en) Recorder, control method for recorder, and program
JP2023042130A (en) Information processing system, image forming apparatus, and program
JP2018097728A (en) Information processing apparatus, program, printing apparatus and printing system
US20050097790A1 (en) Identification marker generating apparatus, method, storage medium and computer data signal
JP4957340B2 (en) Image forming control apparatus, image forming system, and program
JP7356670B2 (en) Delivery order display program, recording medium and delivery order display device
JP2007058684A (en) Document management system
JP6141680B2 (en) Order management apparatus and order management system
JP2010019665A (en) Route searching system
JP2003182821A (en) Display setting system, display setting method and display setting program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140218

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20140822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141211

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141216

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150206

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150602

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150824

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20150901

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150929

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151015

R150 Certificate of patent or registration of utility model

Ref document number: 5827025

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250