JPH0520547A - Electronic cash register - Google Patents

Electronic cash register

Info

Publication number
JPH0520547A
JPH0520547A JP16984191A JP16984191A JPH0520547A JP H0520547 A JPH0520547 A JP H0520547A JP 16984191 A JP16984191 A JP 16984191A JP 16984191 A JP16984191 A JP 16984191A JP H0520547 A JPH0520547 A JP H0520547A
Authority
JP
Japan
Prior art keywords
printing
journal
receipt
printer
mask
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.)
Pending
Application number
JP16984191A
Other languages
Japanese (ja)
Inventor
Yoshihiro Matsuda
芳弘 松田
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP16984191A priority Critical patent/JPH0520547A/en
Publication of JPH0520547A publication Critical patent/JPH0520547A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

PURPOSE:To continue the printing operation only with normal one of a receipt printing part and a journal printing part without the burden to the register main body side at the time when one of both printing parts is abnormal and cannot print data. CONSTITUTION:A register main body 1 transmits a receipt masking command to a printer 2 at the time of detecting the abnormality of the receipt printing part and transmits a journal masking command at the time of detecting the abnormality of the journal printing part. The printer 2 sets a receipt mask flag 33 at the time of receiving the receipt masking command and sets a journal mask flag 34 at the time of receiving the journal masking command. When receipt and journal printing data are received, the printing operation of the receipt printing part is not performed if the receipt mask flag is set, and that of the journal printing part is not performed if the journal mask flag is set.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子式キャッシュレジ
スタ本体に通信インタフェースを介してレシート/ジャ
ーナルプリンタを接続してなる電子式キャッシュレジス
タに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic cash register in which a receipt / journal printer is connected to an electronic cash register body via a communication interface.

【0002】[0002]

【従来の技術】電子式キャッシュレジスタ本体にレシー
ト印字部及びジャーナル印字部を有するプリンタを通信
インタフェースを介して接続し、電子式キャッシュレジ
スタ本体においては商品販売データが登録されるとその
登録情報をもとにレシート及びジャーナルへの印字デー
タを作成してプリンタ側に送信し、プリンタにおいては
印字データを受信するとその印字データをもとに前記レ
シート印字部及びジャーナル印字部を動作させてレシー
ト及びジャーナル印字を行わせるようにした電子式キャ
ッシュレジスタがある。
2. Description of the Related Art A printer having a receipt printing section and a journal printing section is connected to an electronic cash register body via a communication interface, and when the product sales data is registered in the electronic cash register body, the registration information is also stored. Create print data for receipt and journal and send it to the printer side. When the printer receives the print data, the receipt print unit and the journal print unit are operated based on the print data to print the receipt and the journal print. There is an electronic cash register that is designed to perform.

【0003】このものにおいて、プリンタのいずれか一
方の印字部に用紙ジャム等の異常が発生して印字不能に
なった場合、その異常情報が電子式キャッシュレジスタ
本体に通知される。そうすると、従来はその異常が回避
されるまで電子式キャッシュレジスタ本体がプリンタを
動作させないか、本体側にて正常側のみの印字データに
編集し直してプリンタに送信し、正常側の印字部のみを
印字動作させて対処していた。
In this case, when an abnormality such as a paper jam occurs in one of the printing sections of the printer and printing becomes impossible, the abnormality information is notified to the electronic cash register main body. Then, conventionally, the electronic cash register main body does not operate the printer until the abnormality is avoided, or the main body side edits the print data only for the normal side and sends it to the printer, and prints only the printing section on the normal side. I was dealing with it by printing.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、印字部
の異常が回避されるまでプリンタを全く動作させない場
合には、正常側の印字部が印字可能であるにも関わらず
印字動作できないので効率が悪かった。
However, if the printer is not operated at all until the abnormality of the printing section is avoided, the printing section cannot operate even though the printing section on the normal side can print. It was

【0005】これに対し、正常側の印字部のみを印字動
作させる場合には効率のよい印字が行えるが、電子式キ
ャッシュレジスタ本体にてレシート及びジャーナル印字
用の印字データを正常側のみの印字データに編集し直さ
なければならず本体側の負担が大きかった。
On the other hand, when only the printing section on the normal side is printed, efficient printing can be performed. However, the print data for receipt and journal printing is printed on the normal side only in the electronic cash register body. It had to be edited again and the burden on the main unit was great.

【0006】そこで本発明は、レシート印字とジャーナ
ル印字とが可能なプリンタにおいていずれか一方が印字
不能になっても、電子式キャッシュレジスタ本体側の負
担になることなく正常側のみで印字動作を継続でき、効
率のよい印字を行うことができる電子式キャッシュレジ
スタを提供しようとするものである。
Therefore, according to the present invention, even if one of the printers capable of receipt printing and journal printing becomes incapable of printing, the electronic cash register main body side is not burdened and the printing operation is continued only on the normal side. It is an object of the present invention to provide an electronic cash register capable of performing efficient printing.

【0007】[0007]

【課題を解決するための手段】本発明は、電子式キャッ
シュレジスタ本体とは別の制御用プロセッサを有するレ
シート及びジャーナル印字用のプリンタを電子式キャッ
シュレジスタ本体に接続し、この電子式キャッシュレジ
スタ本体にて登録された商品販売情報等の印字データを
プリンタに送信してレシート印字及びジャーナル印字を
行わせる電子式キャッシュレジスタにおいて、プリンタ
は、レシート印字の異常に応じてレシートマスクデータ
を記憶しかつジャーナル印字の異常に応じてジャーナル
マスクデータを記憶するマスクデータ記憶手段と、通信
インタフェースを介してレシート及びジャーナルの印字
データを受信するとマスクデータ記憶手段により記憶さ
れるマスクデータの状態を判別するマスク状態判別手段
と、この判別手段がレシートマスクデータの記憶状態を
判別するとレシート印字部の印字動作を行わないように
し、ジャーナルマスクデータの記憶状態を判別するとジ
ャーナル印字部の印字動作を行わないようにする印字動
作制御手段とを備えたものである。
According to the present invention, a printer for receipt and journal printing, which has a control processor different from the electronic cash register main body, is connected to the electronic cash register main body. In an electronic cash register that sends print data such as product sales information registered in step 1 to a printer to perform receipt printing and journal printing, the printer stores receipt mask data according to an abnormality in receipt printing and Mask data storage means for storing journal mask data in accordance with a printing abnormality, and mask status determination for determining the status of mask data stored by the mask data storage means when receiving print data of a receipt and a journal via a communication interface. Means and this discrimination means A printing operation control unit is provided to prevent the receipt printing unit from performing the printing operation when the storage state of the receipt mask data is determined, and to stop the printing operation of the journal printing unit when the storage state of the journal mask data is determined. It is a thing.

【0008】[0008]

【作用】このような構成の本発明であれば、プリンタの
例えばジャーナル印字に異常が発生し印字不能になる
と、マスクデータ記憶手段によりプリンタ側にジャーナ
ルマスクデータが記憶される。この状態で、電子式キャ
ッシュレジスタ本体からレシート及びジャーナル印字用
の印字データが送信されると、プリンタにおいてはジャ
ーナルマスクデータが記憶されているのでジャーナル印
字動作を行わないように制御され、レシート印字のみが
行われる。
According to the present invention having such a configuration, when an error occurs in, for example, journal printing of the printer and printing becomes impossible, the mask data storage means stores the journal mask data on the printer side. When print data for receipt and journal printing is sent from the electronic cash register body in this state, the printer stores the journal mask data, so it is controlled not to perform the journal printing operation, and only the receipt printing is performed. Is done.

【0009】[0009]

【実施例】以下、本発明の一実施例を図面を参照しなが
ら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0010】図1は外観図で、1は電子式キャッシュレ
ジスタ本体(以下レジスタ本体と略称する)、2はレシ
ート/ジャーナルプリンタ(以下、プリンタと略称す
る)、3は現金等を収納するためのドロワである。上記
レシスタ本体1には商品販売データ等を入力するための
各種キーが配設されたキーボード4、電源のオン、オフ
を制御するとともに「登録」「点検」「精算」「設定」
等の各種業務モードを切換え選択するモードスイッチ
5、販売商品の値段や客の合計金額等を表示するための
キャッシャ用表示器6及び客用表示器7が設けられてい
る。
FIG. 1 is an external view. 1 is an electronic cash register body (hereinafter abbreviated as a register body), 2 is a receipt / journal printer (hereinafter abbreviated as a printer), and 3 is for storing cash or the like. It's a drawer. A keyboard 4 provided with various keys for inputting product sales data and the like on the resistor body 1, controls power on / off, and performs “registration”, “inspection”, “payment”, “setting”
A mode switch 5 for switching and selecting various business modes such as, a cashier display 6 and a customer display 7 for displaying the price of a sold product, the total amount of a customer, and the like are provided.

【0011】図2はブロック図で、11は前記レジスタ
本体1の主制御部を構成するCPU(中央処理装置)で
ある。そしてこのCPU11に、バスライン12を介し
て、ROM(リード・オンリ・メモリ)13、RAM
(ランダム・アクセス・メモリ)14、日時を計時する
時計回路15、前記キーボード4を制御するキーボード
コントローラ16、前記各表示器6,7をそれぞれ制御
する表示器コントローラ17、前記モードスイッチ5の
信号が入力されるとともに前記ドロワ3を開放させるド
ロワ開放装置3aに駆動信号を出力するI/Oポート1
8、前記プリンタ2とのデータ送受信を制御する通信イ
ンタフェース19等が接続されている。
FIG. 2 is a block diagram, and 11 is a CPU (central processing unit) that constitutes the main control unit of the register body 1. Then, to the CPU 11, via a bus line 12, a ROM (read only memory) 13, a RAM
(Random access memory) 14, clock circuit 15 for clocking the date and time, keyboard controller 16 for controlling the keyboard 4, display controller 17 for controlling each of the display devices 6 and 7, and signals of the mode switch 5 An I / O port 1 for inputting and outputting a drive signal to the drawer opening device 3a for opening the drawer 3
8. A communication interface 19 for controlling data transmission / reception with the printer 2 is connected.

【0012】上記ROM13には前記CPU11が各部
を制御し、「登録」「点検」「精算」「設定」等の各種
業務モードを実行するためのプログラムデータ等が予め
格納されている。
The ROM 13 stores in advance program data and the like for the CPU 11 to control each unit and execute various business modes such as "registration", "inspection", "payment", "setting".

【0013】上記RAM14には前記CPU11がキー
ボード4のキー入力により販売登録された各商品販売デ
ータを登録処理し、合計金額等を算出するために必要な
メモリエリア等が設けられている。
The RAM 14 is provided with a memory area and the like necessary for the CPU 11 to perform registration processing of each item sales data registered for sale by key input of the keyboard 4 and to calculate a total amount and the like.

【0014】図2において21は前記プリンタ2の主制
御部を構成するCPUである。そしてこのCPU21
に、バスライン22を介して、ROM23、RAM2
4、レシート用紙に印字を行うレシート印字部25、ジ
ャーナル用紙に印字を行うジャーナル印字部26、前記
レジスタ本体1とのデータ送受信を制御する通信インタ
フェース27等が接続されている。
In FIG. 2, reference numeral 21 is a CPU which constitutes a main control unit of the printer 2. And this CPU 21
To the ROM 23 and the RAM 2 via the bus line 22.
4, a receipt printing unit 25 for printing on receipt paper, a journal printing unit 26 for printing on journal paper, a communication interface 27 for controlling data transmission / reception with the register body 1, and the like are connected.

【0015】上記ROM13には前記CPU21が各部
を制御し、レシート印字及びジャーナル印字を行うため
のプログラムデータや印字文字のキャラクタジェネレー
タデータ等が格納されている。
The ROM 13 stores the program data for the receipt printing and the journal printing by the CPU 21 for controlling the respective parts, the character generator data of the printing characters, and the like.

【0016】上記RAM24には前記レジスタ本体1か
ら受信した印字データを一時記憶する受信バッファや前
記キャラクタジェネレータデータに基づいて変換された
ドットデータを一時記憶する印字バッファ等が設けられ
ている。
The RAM 24 is provided with a reception buffer for temporarily storing the print data received from the register body 1, a print buffer for temporarily storing the dot data converted based on the character generator data, and the like.

【0017】また、図3に示すようにレシートエラーフ
ラグ31、ジャーナルエラーフラグ32、レシートマス
クフラグ33及びジャーナルマスクフラグ34の各フラ
グエリアが前記RAM24に設けられている。
Further, as shown in FIG. 3, each flag area of a receipt error flag 31, a journal error flag 32, a receipt mask flag 33 and a journal mask flag 34 is provided in the RAM 24.

【0018】前記レジスタ本体1からは、前記通信イン
タフェース19を介して、図4(a)に示す伝文フォー
マットのプリントコマンドデータ、同図(b)に示す伝
文フォーマットのセンスコマンドデータ、同図(c)に
示す伝文フォーマットのマスクコマンドデータ、同図
(d)に示す伝文フォーマットのマスク解除コマンドデ
ータがプリンタ2側に送信されるようになっている。
From the register body 1 via the communication interface 19, print command data in the message format shown in FIG. 4A, sense command data in the message format shown in FIG. 4B, and FIG. The mask command data in the message format shown in (c) and the mask release command data in the message format shown in (d) of the figure are transmitted to the printer 2.

【0019】一方、プリンタ2からは、コマンド受信に
応動して同図(e)に示す伝文フォーマットのレスポン
スデータがレジスタ本体1側に送信されるようになって
いる。
On the other hand, in response to the command reception, the printer 2 sends response data in the message format shown in FIG.

【0020】しかして、前記プリンタ2側のCPU21
は、通信インタフェース27を介して各種コマンドデー
タを受信すると、図5乃至図8に示す処理を実行するよ
うにプログラム制御されている。
Therefore, the CPU 21 on the printer 2 side
When receiving various command data via the communication interface 27, is program-controlled so as to execute the processing shown in FIGS.

【0021】すなわち、図4(c)のマスクコマンドデ
ータを受信した場合には、図5に示すようにそのコマン
ドデータ中のレシートマスクデータがセットされている
のか、ジャーナルマスクデータがセットされているのか
を判別する。そして、レシートマスクデータがセットさ
れている場合には前記レシートマスクフラグ33をセッ
ト状態にし、ジャーナルマスクデータがセットされてい
る場合には前記ジャーナルマスクフラグ34をセット状
態にして、この処理を終了する。(マスクデータ記憶手
段)
That is, when the mask command data of FIG. 4C is received, as shown in FIG. 5, the receipt mask data in the command data is set, or the journal mask data is set. Determine if. Then, when the receipt mask data is set, the receipt mask flag 33 is set, and when the journal mask data is set, the journal mask flag 34 is set, and this processing is ended. .. (Mask data storage means)

【0022】図4(d)のマスク解除コマンドデータを
受信した場合には、図6に示すように前記レシートマス
クフラグ33及びジャーナルマスクフラグ34をリセッ
ト状態にして、この処理を終了する。
When the mask release command data shown in FIG. 4 (d) is received, the receipt mask flag 33 and the journal mask flag 34 are reset as shown in FIG. 6, and this process ends.

【0023】図4(b)のセンスコマンドデータを受信
した場合には、図7に示すように先ずレシート印字部2
5の状態をチェックする。そして、レシート用紙切れや
用紙ジャム等の異常(エラー)が発生しており印字不能
の場合には前記レシートエラーフラグ31をセット状態
にする。正常な場合には前記レシートエラーフラグ31
をリセット状態にする。
When the sense command data shown in FIG. 4 (b) is received, as shown in FIG.
Check condition 5 When an abnormality (error) such as out-of-receipt paper or paper jam has occurred and printing cannot be performed, the receipt error flag 31 is set. If normal, the receipt error flag 31
To the reset state.

【0024】次いで、ジャーナル印字部26の状態をチ
ェックする。そして、ジャーナル用紙切れや用紙ジャム
等の異常(エラー)が発生しており印字不能の場合には
前記ジャーナルエラーフラグ32をセット状態にする。
正常な場合には前記ジャーナルエラーフラグ32をリセ
ット状態にする。
Next, the state of the journal printing section 26 is checked. When printing is not possible due to an abnormality (error) such as running out of journal paper or paper jam, the journal error flag 32 is set.
If it is normal, the journal error flag 32 is reset.

【0025】その後、上記各エラーフラグ31,32の
状態を調べ、いずれもリセット状態にあるときは正常レ
スポンスデータを通信インタフェース27を介してレジ
スタ本体1側に送信し、各エラーフラグ31,32の少
なくとも一方がセットされている場合にはエラーレスポ
ンスデータを通信インタフェース27を介してレジスタ
本体1側に送信して、この処理を終了する。
After that, the states of the error flags 31 and 32 are checked, and when both are in the reset state, normal response data is transmitted to the register main body 1 side through the communication interface 27, and the error flags 31 and 32 are reset. If at least one of them is set, the error response data is transmitted to the register body 1 side via the communication interface 27, and this processing is ended.

【0026】ここで、上記正常レスポンスデータは図4
(e)に示す伝文フォーマットのレシート応答データ及
びジャーナル応答データとしてそれぞれ正常である旨を
示す情報をセットしたものである。また、上記エラーレ
スポンスデータはレシート印字部25が異常の場合には
上記レシート応答データとしてそのエラー内容を示す情
報とし、ジャーナル印字部26が異常の場合には上記ジ
ャーナル応答データとしてそのエラー内容を示す情報と
したものである。
The normal response data is shown in FIG.
The receipt response data and the journal response data in the message format shown in (e) are set with information indicating that they are normal. Further, the error response data is information indicating the error content as the receipt response data when the receipt printing unit 25 is abnormal, and the error content is indicated as the journal response data when the journal printing unit 26 is abnormal. It is information.

【0027】図4(a)のプリントコマンドデータを受
信した場合には、図8に示すように先ずST(ステッ
プ)1として前記レシートマスクフラグ33の状態を調
べる(マスク状態判別手段)。そして、同フラグ33が
リセットされている場合にはレシート印字部25が正常
なので、ST2として当該レシート印字部25の印字動
作を制御し、受信したプリントコマンドデータ中のレシ
ート印字データのレシート印字を行う。
When the print command data shown in FIG. 4 (a) is received, the state of the receipt mask flag 33 is first checked as ST (step) 1 as shown in FIG. 8 (mask state discrimination means). Then, when the flag 33 is reset, the receipt printing unit 25 is normal, so in ST2, the printing operation of the receipt printing unit 25 is controlled and receipt printing of the receipt printing data in the received print command data is performed. ..

【0028】レシート印字後、前記レシートエラーフラ
グ31をリセット状態にしてST3に進む。ただし、レ
シート印字部25の印字動作中にレシート用紙切れや用
紙ジャム等の異常が発生して印字不能になった場合に
は、上記レシートエラーフラグ31をセット状態にして
ST3へ進む。
After the receipt is printed, the receipt error flag 31 is reset and the process proceeds to ST3. However, when the receipt printing unit 25 is in the printing operation and the printing becomes impossible due to an abnormality such as a paper out of the receipt or a paper jam, the receipt error flag 31 is set to the set state, and the process proceeds to ST3.

【0029】一方、ST1にて前記レシートマスクフラ
グ33がセットされている場合にはレシート印字部25
に異常が発生しており印字不能なので、このレシート印
字部25が印字動作を行うことなくST3へ進む。ただ
し、このとき前記レシートエラーフラグ31をリセット
状態にして、あたかもレシート印字が正常に終了したか
のようにする(印字動作制御手段)。
On the other hand, when the receipt mask flag 33 is set in ST1, the receipt printing unit 25
Since it is impossible to print due to an abnormal state, the receipt printing unit 25 proceeds to ST3 without performing a printing operation. However, at this time, the receipt error flag 31 is reset so that the receipt printing is completed normally (print operation control means).

【0030】ST3では前記ジャーナルマスクフラグ3
4の状態を調べる(マスク状態判別手段)。そして、同
フラグ34がリセットされている場合にはジャーナル印
字部26が正常なので、ST4として当該ジャーナル印
字部26の印字動作を制御し、受信したプリントコマン
ドデータ中のジャーナル印字データのジャーナル印字を
行う。
At ST3, the journal mask flag 3 is set.
The state 4 is checked (mask state determination means). Then, when the flag 34 is reset, the journal printing unit 26 is normal, so in ST4, the printing operation of the journal printing unit 26 is controlled, and the journal printing of the journal printing data in the received print command data is performed. ..

【0031】ジャーナル印字後、前記ジャーナルエラー
フラグ32をリセット状態にしてST5に進む。ただ
し、ジャーナル印字部26の印字動作中にジャーナル用
紙切れや用紙ジャム等の異常が発生して印字不能になっ
た場合には、上記ジャーナルエラーフラグ32をセット
状態にしてST5へ進む。
After printing the journal, the journal error flag 32 is reset and the process proceeds to ST5. However, when the journal printing unit 26 is in the printing operation and printing becomes impossible due to an abnormality such as running out of the journal paper or paper jam, the journal error flag 32 is set and the process proceeds to ST5.

【0032】一方、ST3にて前記ジャーナルマスクフ
ラグ34がセットされている場合にはジャーナル印字部
26に異常が発生しており印字不能なので、このジャー
ナル印字部26が印字動作を行うことなくST5へ進
む。ただし、このとき前記ジャーナルエラーフラグ32
をリセット状態にして、あたかもジャーナル印字が正常
に終了したかのようにする(印字動作制御手段)。
On the other hand, if the journal mask flag 34 is set in ST3, the journal printing unit 26 has an abnormality and cannot print. Therefore, the journal printing unit 26 does not perform the printing operation and the process proceeds to ST5. move on. However, at this time, the journal error flag 32
To the reset state, as if the journal printing was normally completed (printing operation control means).

【0033】ST5では上記レシートエラーフラグ31
及びジャーナルエラーフラグ32の状態を調べる。そし
て、いずれもリセット状態にあるときは正常レスポンス
データを通信インタフェース27を介してレジスタ本体
1側に送信し、各エラーフラグ31,32の少なくとも
一方がセットされている場合にはエラーレスポンスデー
タを通信インタフェース27を介してレジスタ本体1側
に送信して、この処理を終了する。
At ST5, the receipt error flag 31 is sent.
Also, the state of the journal error flag 32 is checked. When both are in the reset state, normal response data is transmitted to the register body 1 side through the communication interface 27, and when at least one of the error flags 31 and 32 is set, the error response data is communicated. This is transmitted to the register body 1 side via the interface 27, and this processing is ended.

【0034】一方、前記レジスタ本体1側のCPU11
は、レシート及びジャーナルへの印字タイミングになる
と、図9に示す印字処理を実行するようにプログラム制
御されている。
On the other hand, the CPU 11 on the register body 1 side
Is program-controlled so as to execute the printing process shown in FIG. 9 at the printing timing of the receipt and the journal.

【0035】すなわち、レシート及びジャーナル印字用
の印字データをもとに図4(a)に示す伝文フォーマッ
トのプリントコマンドデータを作成し、通信インタフェ
ース19を介してプリンタ2に送信して、プリンタ2か
らの応答を待つ。そして、プリンタ2から正常レスポン
スデータが返信されてきた場合には、プリンタ2におい
てレシート及びジャーナル印字が正常に行われたものと
判断して、この処理を終了する。
That is, print command data in the message format shown in FIG. 4A is created based on the receipt and the print data for printing the journal, and the print command data is transmitted to the printer 2 via the communication interface 19 and the printer 2 Wait for a response from. Then, when the normal response data is returned from the printer 2, it is determined that the receipt and the journal printing are normally performed in the printer 2, and this processing is ended.

【0036】一方、プリンタ2からエラーレスポンスデ
ータが返信されてきた場合には、そのレスポンスデータ
中のレシート応答データ及びジャーナル応答データを解
析する。そして、いずれもエラー内容を示すデータの場
合にはレシート印字部25及びジャーナル印字部26の
両方に異常が発生しており印字不能となっているので、
異常が回避されるまで印字を行わないように制御する。
On the other hand, when the error response data is returned from the printer 2, the receipt response data and the journal response data in the response data are analyzed. If any of the data indicates an error content, an error has occurred in both the receipt printing unit 25 and the journal printing unit 26, and printing cannot be performed.
Control not to print until the abnormality is avoided.

【0037】これに対し、レシート応答データのみがエ
ラー内容を示すデータである場合にはレシート印字部2
5に異常が発生しており印字不能となっているので、レ
シートマスク用のマスクコマンドデータを通信インタフ
ェース19を介してプリンタ2へ送信する。また、ジャ
ーナル応答データのみがエラー内容を示すデータである
場合にはジャーナル印字部26に異常が発生しており印
字不能となっているので、ジャーナルマスク用のマスク
コマンドデータを通信インタフェース19を介してプリ
ンタ2へ送信する。(マスクコマンド送信手段)
On the other hand, when only the receipt response data is the data indicating the error content, the receipt printing unit 2
Since an error has occurred in 5 and printing is impossible, mask command data for a receipt mask is transmitted to the printer 2 via the communication interface 19. If only the journal response data is the data indicating the error content, the journal printing unit 26 has an abnormality and cannot print. Therefore, the mask command data for the journal mask is sent via the communication interface 19. Send to printer 2. (Mask command transmitting means)

【0038】ここで、上記レシートマスク用のマスクコ
マンドデータは図4(c)に示す伝文フォーマットのレ
シートマスクデータをセット状態にし、ジャーナルマス
クデータをリセット状態にしたものであり、上記ジャー
ナルマスク用のマスクコマンドデータは図4(c)に示
す伝文フォーマットのジャーナルマスクデータをセット
状態にし、レシートマスクデータをリセット状態にした
ものである。
Here, the mask command data for the receipt mask is one in which the receipt mask data of the message format shown in FIG. 4C is set and the journal mask data is reset. The mask command data is the journal mask data in the message format shown in FIG. 4 (c) in the set state and the receipt mask data in the reset state.

【0039】また、前記レジスタ本体1側のCPU11
は、周期的に図10に示す割込み処理を実行するように
プログラム制御されている。すなわち、前記プリンタ2
の少なくとも一方の印字部がエラー中が否かを判断し、
エラー中でなければこの割込み処理を終了する。
Further, the CPU 11 on the register body 1 side
Are program-controlled to periodically execute the interrupt processing shown in FIG. That is, the printer 2
Of at least one of the printing units determines whether there is an error,
If no error is present, this interrupt processing is terminated.

【0040】前回のコマンド送信に応答してプリンタ2
からエラーレスポンスデータが返信され、少なくとも一
方の印字部がエラー状態にあるときは、図4(b)に示
すセンスコマンドデータを通信インタフェース19を介
してプリンタ2に送信して、プリンタ2からの応答を待
つ。そして、プリンタ2からエラーレスポンスデータが
返信されてきた場合には、依然として少なくとも一方の
印字部がエラー状態にあるので、この処理を終了する。
Printer 2 in response to the previous command transmission
Error response data is returned from the printer, and when at least one of the printing units is in an error state, the sense command data shown in FIG. 4B is transmitted to the printer 2 via the communication interface 19, and the response from the printer 2 is sent. Wait for Then, when the error response data is returned from the printer 2, at least one of the printing units is still in the error state, and this process is ended.

【0041】これに対し、正常レスポンスデータが返信
されてきた場合には異常状態にあった印字部の異常が回
避されたので、図4(d)に示すマスク解除コマンドを
前記通信インタフェース19を介してプリンタ2に送信
して、この処理を終了する。
On the other hand, when the normal response data is returned, the abnormality of the printing section in the abnormal state is avoided, so the mask release command shown in FIG. Then, the process is transmitted to the printer 2 and this process is completed.

【0042】このように構成された本実施例において
は、レジスタ本体1にてキーボード4から販売商品に関
する必要情報が入力されると、当該販売商品の販売デー
タがRAM14に登録処理されるとともに、品名,販売
金額等の商品販売情報が各表示器6,7に表示される。
また、上記商品販売情報のレシート及びジャーナル印字
用の印字データが作成されプリントコマンドデータとし
てプリンタ2側に送信される。
In this embodiment having the above-described structure, when necessary information about the sale item is input from the keyboard 4 in the register body 1, the sale data of the sale item is registered in the RAM 14 and the item name is also entered. The product sales information such as the sales amount is displayed on each of the display devices 6 and 7.
Further, the receipt of the product sales information and print data for journal printing are created and transmitted to the printer 2 side as print command data.

【0043】そうすると、プリンタ2においてはレシー
ト印字部25及びジャーナル印字部26がいずれも正常
な場合、両印字部25,26によってレシート及びジャ
ーナルへの印字が行われる。そして、レシート及びジャ
ーナルへの印字が正常に終了したならば、プリンタ2か
らレジスタ本体1側に正常レスポンスデータが返信され
るので、レジスタ本体1においてはレシート及びジャー
ナルへの印字が正常に終了したことを認識できる。
Then, in the printer 2, when both the receipt printing unit 25 and the journal printing unit 26 are normal, both the printing units 25 and 26 perform printing on the receipt and the journal. When the receipt and the journal are printed normally, the printer 2 returns the normal response data to the register body 1 side. Therefore, in the register body 1, the receipt and the journal are normally printed. Can be recognized.

【0044】これに対し、例えばジャーナル印字部26
の印字動作中に用紙ジャムが発生して印字不能になった
場合、プリンタ2からレジスタ本体1側にジャーナル印
字部26の異常を知らせるエラーレスポンスデータが返
信される。これにより、レジスタ本体1ではジャーナル
印字部26の異常が認識され、直ちにジャーナルマスク
用のマスクコマンドデータがプリンタ2側に送信され
る。
On the other hand, for example, the journal printing unit 26
When a paper jam occurs during the printing operation of No. 2 and printing becomes impossible, the printer 2 returns error response data notifying the abnormality of the journal printing unit 26 to the register main body 1 side. As a result, the register main body 1 recognizes the abnormality of the journal printing unit 26, and immediately sends the mask command data for journal mask to the printer 2.

【0045】なお、レシート印字部25も同時に異常に
なった場合には、異常が回避されるまでプリンタ2がそ
の機能を停止する。また、レシート印字部25のみが異
常となった場合にはレシートマスク用のマスクコマンド
データがプリンタ2側に送信される。
If the receipt printing unit 25 also becomes abnormal at the same time, the printer 2 stops its function until the abnormality is avoided. If only the receipt printing unit 25 becomes abnormal, mask command data for receipt mask is transmitted to the printer 2.

【0046】ジャーナルマスク用のマスクコマンドデー
タを受信したプリンタ2においては、ジャーナルマスク
フラグ34がセット状態になる。この状態で、前記レジ
スタ本体1において再びレシート及びジャーナル印字用
の印字データが作成されプリントコマンドデータとして
プリンタ2側に送信されると、プリンタ2においてはレ
シート印字部25の印字動作のみが制御されてレシート
印字のみが行われ、ジャーナル印字部26はジャーナル
マスクデータがセット状態にあるので印字動作しないよ
うに制御される。このとき、プリンタ2からは正常に印
字が終了したことを示す正常レスポンスデータがレジス
タ本体1に送信される。
In the printer 2 which has received the mask command data for the journal mask, the journal mask flag 34 is set. In this state, when print data for receipt and journal printing is created again in the register body 1 and sent as print command data to the printer 2, the printer 2 controls only the printing operation of the receipt printing unit 25. Only the receipt printing is performed, and the journal printing unit 26 is controlled so as not to perform the printing operation because the journal mask data is in the set state. At this time, the printer 2 transmits to the register body 1 normal response data indicating that the printing is normally completed.

【0047】その後、ジャーナル印字部26における用
紙ジャム異常が回避されると、レジスタ本体1から周期
的に送信されるセンスコマンドデータに応答して、プリ
ンタ2からレジスタ本体1側に正常レスポンスデータが
返信される。これにより、レジスタ本体1からプリンタ
2側にマスク解除コマンドデータが送信され、プリンタ
2におけるジャーナルマスクフラグ34がリセット状態
に切替わる。
After that, when the paper jam abnormality in the journal printing unit 26 is avoided, the normal response data is returned from the printer 2 to the register body 1 side in response to the sense command data periodically transmitted from the register body 1. To be done. As a result, the mask release command data is transmitted from the register body 1 to the printer 2, and the journal mask flag 34 in the printer 2 is switched to the reset state.

【0048】その後、前記レジスタ本体1において再び
レシート及びジャーナル印字用の印字データが作成され
プリントコマンドデータとしてプリンタ2側に送信され
ると、両印字部25,26によってレシート及びジャー
ナルへの印字が行われる。
After that, when print data for receipt and journal printing is created again in the register body 1 and is sent to the printer 2 side as print command data, printing is performed on the receipt and journal by both printing units 25 and 26. Be seen.

【0049】以上説明したレジスタ本体1とプリンタ2
との間のデータ授受手順を図に示すと図11に示すよう
になる。なお、図11(a)はレシート印字部25及び
ジャーナル印字部26が正常なときの手順を示してお
り、図11(b)は途中でジャーナル印字部26に用紙
ジャムの異常が発生しその後異常が回避されたときの手
順を示している。
The register body 1 and the printer 2 described above
FIG. 11 shows the procedure for exchanging data between and. Note that FIG. 11A shows a procedure when the receipt printing unit 25 and the journal printing unit 26 are normal, and FIG. 11B shows an abnormality of a paper jam in the journal printing unit 26 in the middle and an abnormal state thereafter. Shows the procedure when is avoided.

【0050】図示するようにジャーナル印字部26に用
紙ジャムが発生し、プリンタ2からエラーレスポンスデ
ータ(R jジャム)が返信されると、直ちにジャーナ
ルマスク用のマスクコマンドデータ(M j)が送信さ
れる。しかしながら、その後の印字処理においてレジス
タ本体1から送信される印字データは、両印字部25,
26の正常なときと同様にレシート及びジャーナル印字
用に作成されたプリントコマンドデータ(P r3,j
3)が送信される。
As shown in the figure, when a paper jam occurs in the journal printing unit 26 and the error response data (R j jam) is returned from the printer 2, mask command data (M j) for journal mask is immediately transmitted. It However, the print data transmitted from the register body 1 in the subsequent print processing is
26, the print command data (P r3, j) created for receipt and journal printing as in the normal case.
3) is transmitted.

【0051】すなわちレジスタ本体1においては、たと
えいずれか一方の印字部が異常状態であっても、正常側
の印字部のみを動作させるように印字データを作成し直
す必要がなく、両印字部25,26の正常なときと同様
にして印字データを作成すればよいので、レジスタ本体
1の負担になることはない。
That is, in the register body 1, even if one of the printing units is in an abnormal state, it is not necessary to recreate the print data so that only the printing unit on the normal side is operated. , 26, the print data may be created in the same manner as in the normal case, so that the register body 1 is not burdened.

【0052】一方、プリンタ2においてはプリントコマ
ンドデータを受信する毎にレシートマスクフラグ33及
びジャーナルマスクフラグ34の状態を判別し、リセッ
ト状態にあるマスクフラグに対応する印字部を印字動作
させ、セット状態にあるマスクフラグに対応する印字部
を印字動作しないように制御している。従って、たとえ
いずれか一方の印字部が異常状態になっても正常側の印
字部は印字動作を継続できるので、効率のよい印字を行
えるようになる。
On the other hand, in the printer 2, each time the print command data is received, the states of the receipt mask flag 33 and the journal mask flag 34 are discriminated, and the printing section corresponding to the mask flag in the reset state is operated for printing to set the state. The printing unit corresponding to the mask flag in is controlled so as not to print. Therefore, even if one of the printing units is in an abnormal state, the printing unit on the normal side can continue the printing operation, so that efficient printing can be performed.

【0053】なお、前記実施例においてレシート印字及
びジャーナル印字を行う印字ヘッドが各々独立して設け
られたものであっても、1個の印字ヘッドで共通に印字
するものであっても本発明の適用は可能である。
It should be noted that, in the above-described embodiment, whether the print heads for performing the receipt printing and the journal printing are independently provided, or one printing head is commonly used for printing, the present invention can be used. Application is possible.

【0054】また、前記実施例ではマスクコマンドフラ
グのリセットをレジスタ本体1からのマスク解除コマン
ドに応動して行うようにしたが、プリンタ内部にて例え
ば用紙ジャム検出信号のオフに応動してリセットするよ
うにしてもよい。
Further, in the above embodiment, the mask command flag is reset in response to the mask release command from the register body 1, but it is reset in the printer in response to, for example, turning off the paper jam detection signal. You may do it.

【0055】さらに、前記実施例ではプリンタ側の異常
を電子式キャッシュレジスタ本体に通知し、電子式キャ
ッシュレジスタ本体からのマスクコマンドによってプリ
ンタ側がマスクフラグをセットするようにしたが、プリ
ンタのCPUが異常を検知したとき電子式キャッシュレ
ジスタ本体に通知することなく該当するマスクコマンド
をセットするようにしても本発明と同様な効果を奏し得
る。この他、本発明の要旨を逸脱しない範囲で種々変形
実施可能であるのは勿論である。
Further, in the above embodiment, the abnormality of the printer side is notified to the electronic cash register body, and the mask flag is set by the printer side by the mask command from the electronic cash register body. However, the CPU of the printer is abnormal. Even if the corresponding mask command is set without notifying the electronic cash register main body when the above is detected, the same effect as the present invention can be obtained. In addition to this, it is needless to say that various modifications can be made without departing from the scope of the present invention.

【0056】[0056]

【発明の効果】以上詳述したように本発明によれば、レ
シート印字とジャーナル印字とが可能なプリンタにおい
ていずれか一方が印字不能になっても、電子式キャッシ
ュレジスタ本体側の負担になることなく正常側のみで印
字動作を継続でき、効率のよい印字を行うことができる
電子式キャッシュレジスタを提供できる。
As described in detail above, according to the present invention, even if one of the printers capable of receipt printing and journal printing becomes incapable of printing, the electronic cash register main body is burdened. Therefore, it is possible to provide an electronic cash register that can continue the printing operation only on the normal side and can perform efficient printing.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の一実施例の外観図。FIG. 1 is an external view of an embodiment of the present invention.

【図2】 同実施例のブロック図。FIG. 2 is a block diagram of the embodiment.

【図3】 同実施例におけるプリンタ側RAMの主要な
フラグエリアを示す図。
FIG. 3 is a diagram showing main flag areas of a printer-side RAM in the embodiment.

【図4】 同実施例においてレジスタ本体・プリンタ間
を授受されるコマンドデータの伝文フォーマットを示す
図。
FIG. 4 is a diagram showing a message format of command data exchanged between a register main body and a printer in the embodiment.

【図5】 同実施例におけるプリンタ側CPUのマスク
コマンドデータ受信処理を示す流れ図。
FIG. 5 is a flowchart showing a mask command data receiving process of the printer side CPU in the embodiment.

【図6】 同実施例におけるプリンタ側CPUのマスク
解除コマンドデータ受信処理を示す流れ図。
FIG. 6 is a flowchart showing a mask release command data reception process of the printer CPU in the embodiment.

【図7】 同実施例におけるプリンタ側CPUのセンス
コマンドデータ受信処理を示す流れ図。
FIG. 7 is a flowchart showing a sense command data receiving process of the printer side CPU in the embodiment.

【図8】 同実施例におけるプリンタ側CPUのプリン
トコマンドデータ受信処理を示す流れ図。
FIG. 8 is a flowchart showing a print command data receiving process of the printer side CPU in the embodiment.

【図9】 同実施例におけるレジスタ本体側CPUの印
字処理を示す流れ図。
FIG. 9 is a flowchart showing a printing process of the register main body side CPU in the embodiment.

【図10】 同実施例におけるレジスタ本体側CPUの
割込み処理を示す流れ図。
FIG. 10 is a flowchart showing interrupt processing of the register body side CPU in the embodiment.

【図11】 同実施例におけるレジスタ本体・プリンタ
間のデータ授受手順を示す図。
FIG. 11 is a view showing a data transfer procedure between the register main body and the printer in the embodiment.

【符号の説明】[Explanation of symbols]

1…レジスタ本体(電子式キャッシュレジスタ本体)、
2…プリンタ(レシート/ジャーナルプリンタ)、1
1,21…CPU、19,27…通信インタフェース、
31…レシートエラーフラグ、32…ジャーナルエラー
フラグ、33…レシートマスクフラグ、34…ジャーナ
ルマスクフラグ。
1 ... Register body (electronic cash register body),
2 ... Printer (receipt / journal printer), 1
1, 21 ... CPU, 19, 27 ... communication interface,
31 ... Receipt error flag, 32 ... Journal error flag, 33 ... Receipt mask flag, 34 ... Journal mask flag

Claims (1)

【特許請求の範囲】 【請求項1】 電子式キャッシュレジスタ本体とは別の
制御用プロセッサを有するレシート及びジャーナル印字
用のプリンタを前記電子式キャッシュレジスタ本体に接
続し、この電子式キャッシュレジスタ本体にて登録され
た商品販売情報等の印字データを前記プリンタに送信し
てレシート印字及びジャーナル印字を行わせる電子式キ
ャッシュレジスタにおいて、 前記プリンタは、レシート印字の異常に応じてレシート
マスクデータを記憶しかつジャーナル印字の異常に応じ
てジャーナルマスクデータを記憶するマスクデータ記憶
手段と、前記通信インタフェースを介してレシート及び
ジャーナルの印字データを受信すると前記マスクデータ
記憶手段により記憶されるマスクデータの状態を判別す
るマスク状態判別手段と、この判別手段がレシートマス
クデータの記憶状態を判別すると前記レシート印字部の
印字動作を行わないようにし、ジャーナルマスクデータ
の記憶状態を判別すると前記ジャーナル印字部の印字動
作を行わないようにする印字動作制御手段とを具備した
ことを特徴とする電子式キャッシュレジスタ。
Claims: 1. A receipt and journal printing printer having a control processor different from the electronic cash register main body is connected to the electronic cash register main body, and the electronic cash register main body is connected to the electronic cash register main body. In an electronic cash register for transmitting print data such as registered product sales information to the printer to perform receipt printing and journal printing, the printer stores receipt mask data according to an abnormality in receipt printing, and Mask data storage means for storing journal mask data in accordance with an abnormality in journal printing, and a state of the mask data stored by the mask data storage means upon receipt of receipt and journal print data via the communication interface. With mask state determination means When the discriminating unit discriminates the storage state of the receipt mask data, the printing operation of the receipt printing unit is not performed, and when the storage state of the journal mask data is discriminating, the printing operation of the journal printing unit is not performed. An electronic cash register comprising a control means.
JP16984191A 1991-07-10 1991-07-10 Electronic cash register Pending JPH0520547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16984191A JPH0520547A (en) 1991-07-10 1991-07-10 Electronic cash register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16984191A JPH0520547A (en) 1991-07-10 1991-07-10 Electronic cash register

Publications (1)

Publication Number Publication Date
JPH0520547A true JPH0520547A (en) 1993-01-29

Family

ID=15893921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16984191A Pending JPH0520547A (en) 1991-07-10 1991-07-10 Electronic cash register

Country Status (1)

Country Link
JP (1) JPH0520547A (en)

Similar Documents

Publication Publication Date Title
JPH07109637B2 (en) Electronic cash register
JPH0520547A (en) Electronic cash register
JP2573747B2 (en) Product sales data processing device
JP2893715B2 (en) Order data processing system
JPS637964A (en) Printer control apparatus of cash register
JP2945880B2 (en) Electronic cash register
JP2505181B2 (en) POS system
JP2501539B2 (en) Error notification device of data processing device
EP0325544A2 (en) Normal/transparent mode postage meter
JP3242188B2 (en) Electronic cash register
JPH0844955A (en) In-line system for electronic cash register
JPH06150163A (en) Commodity sales data processor
JPH05233169A (en) Electronic equipment provided with plural printers
JPH06227055A (en) Data processor
JPH08115471A (en) Electronic cash register
JPH01230174A (en) Pos system
JPS59140579A (en) Commodity sales data processing device
JPH05318841A (en) Printer
JPH0582623B2 (en)
JPH01112477A (en) Printer
JPS6262000B2 (en)
JPH0737163A (en) Commodity sales registering device
JPH08241462A (en) Commodity sale data processing device
JPH0765078A (en) Commodity sales data processor
JPH0652550B2 (en) Product sales data processing device