JPH05193197A - Card data reading device of slip printer - Google Patents

Card data reading device of slip printer

Info

Publication number
JPH05193197A
JPH05193197A JP4025984A JP2598492A JPH05193197A JP H05193197 A JPH05193197 A JP H05193197A JP 4025984 A JP4025984 A JP 4025984A JP 2598492 A JP2598492 A JP 2598492A JP H05193197 A JPH05193197 A JP H05193197A
Authority
JP
Japan
Prior art keywords
card
data
slip
format
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4025984A
Other languages
Japanese (ja)
Other versions
JP2915674B2 (en
Inventor
Michio Hisatake
通夫 久武
Shinichi Fuchigami
伸一 渕上
Toshiaki Yamaguchi
俊明 山口
Osahiro Kodama
長大 小玉
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.)
Data Card Japan Ltd
Janome Corp
Janome Credia Co Ltd
Original Assignee
Janome Sewing Machine Co Ltd
Data Card Japan Ltd
Janome Credia 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 Janome Sewing Machine Co Ltd, Data Card Japan Ltd, Janome Credia Co Ltd filed Critical Janome Sewing Machine Co Ltd
Priority to JP4025984A priority Critical patent/JP2915674B2/en
Publication of JPH05193197A publication Critical patent/JPH05193197A/en
Application granted granted Critical
Publication of JP2915674B2 publication Critical patent/JP2915674B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

PURPOSE:To provide the above card data reading device capable of reading the different card data of a format parameter by simple constitution. CONSTITUTION:Data for encoding respective format parameters are stored in a format card 61. When the format card 61 in which the encorded data of the format parameters used in equipment having a slip printer arranged thereto are stored is read from a card reader 62, an encoded data reading means 63 reads the encoded data to store the same in an encoded data memory means 64. When a card 15 is read by the card reader 62, a card discriminating means 66 discriminates whether the card 65 is a customer card or other card and, at the time of the customer card, customer card data is encoded on the basis of the encoded data in a printing character row forming means 67 and the encoded data is stored in a customer card content memory means 69 to be subjected to the printing of a slip.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は伝票プリンタのカード
データ読み出し方式に関する。一般に、客用カードに記
憶されている客用コード、片仮名表現の客の氏名等の情
報の、カード内での記憶位置、容量および漢字INコマ
ンド、漢字OUTコマンド(以下、フォーマットパラメ
ータと略す)が病院等によって異なっているが、この発
明は、これらのフォーマットの異なっているカードか
ら、情報を読み出すことができる伝票プリンタのカード
データ読み出し方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card data reading system for a slip printer. Generally, the storage position, capacity and Kanji IN command and Kanji OUT command (hereinafter abbreviated as format parameter) of the information such as the customer code stored in the customer card and the name of the customer in katakana expression are stored in the card. The present invention relates to a card data reading method of a slip printer capable of reading information from cards having different formats, which differ depending on hospitals and the like.

【0002】[0002]

【従来の技術】病院によっては、患者が診察を終えた
後、図28に示されているような伝票を患者に手渡す所
がある。この伝票は、図示されているように、伝票タイ
トル、患者カードデータ、予約データ、コメントデータ
等からなり、伝票タイトル、コメントデータ、患者カー
ドデータ中の「氏名」、「殿」、予約データ中の「予約
日」、「月日」、「曜日」の文字は伝票に印刷済みであ
り、患者カードを読込むことにより、患者のID番号、
名前、生年月日、性別をプリンタで印字していた。ま
た、予約日、曜日については、事務員がボールペン等で
記入していた。
2. Description of the Related Art In some hospitals, a voucher as shown in FIG. 28 is handed to a patient after the patient finishes the examination. As shown in the figure, this voucher is composed of a voucher title, patient card data, reservation data, comment data, etc., and the voucher title, comment data, “name” in the patient card data, “customer”, and reservation data The characters "reservation date", "month day", and "day of week" have been printed on the slip, and by reading the patient card, the patient ID number,
I printed my name, date of birth, and gender on a printer. In addition, the clerk entered the reservation date and the day of the week with a ballpoint pen or the like.

【0003】また、他の従来例としては、病院に勤務し
ている医師の一人々々の磁気カード(以下、医師カード
と呼ぶ)と、互いに異なるコメントを記憶している複数
枚の磁気カード(以下、コメントカードと呼ぶ)とを用
意しておき、患者に伝票を発行する際に、患者カード、
担当医の医師カードおよび患者に適合するコメントカー
ドを選択し、カードリーダからカードデータを読込み、
読込んだデータを予め用意されているフォーマットの伝
票に印字することにより、図28のような伝票を発行し
ていた。なお、この例の場合には、担当医のデータが、
図28の伝票に追加され、コメントデータがその都度印
字されることになる。
Further, as another conventional example, a magnetic card of each doctor working at a hospital (hereinafter referred to as a doctor card) and a plurality of magnetic cards storing different comments ( (Hereinafter referred to as a comment card) and prepare a patient card, when issuing a slip to a patient.
Select the doctor card of the doctor in charge and the comment card that matches the patient, read the card data from the card reader,
By printing the read data on a slip of a prepared format, a slip as shown in FIG. 28 is issued. In this example, the data of the doctor in charge is
The comment data is added to the slip in FIG. 28 and is printed each time.

【0004】また、スイミングスクール等の学校におい
ても、生徒用のカードと、指導教官用のカードと、コメ
ントカードとを用意し、例えば泳力のランクが上がった
時とか、月謝を収める時期が近付いた時等に、図28に
示されているような形式の伝票が、生徒に発行されてい
た。
At schools such as swimming schools, cards for students, cards for teaching professors, and comment cards are prepared. For example, when the rank of swimming ability rises, the time to get a monthly fee is approaching. At some point, a slip of the format shown in FIG. 28 was issued to the student.

【0005】[0005]

【発明が解決しようとする課題】前記伝票プリンタに適
用される患者カード(又は客用カード)は、伝票印字の
ためだけでなく、医療情報、会計情報処理のためのホス
トコンピュータにも使用されている。前記患者カード
(又は客用カード)のフォーマットパラメータは、この
ホストコンピュータのソフトの関係で、病院または学校
等で異なったものになっている。
The patient card (or customer card) applied to the slip printer is used not only for printing slips but also for a host computer for medical information and accounting information processing. There is. The format parameter of the patient card (or customer card) is different depending on the software of the host computer, such as hospital or school.

【0006】このため、従来は、病院または学校毎に、
伝票プリンタの患者カード(又は客用カード)データの
読み出しプログラムを変更し、これを伝票プリンタの内
部ROMに格納することにより、これに対処していた。
[0006] Therefore, conventionally, each hospital or school,
This has been dealt with by changing the program for reading the patient card (or customer card) data of the slip printer and storing this in the internal ROM of the slip printer.

【0007】しかしながら、このような対処をすると、
病院または学校毎の伝票プリンタを製造しなくてはなら
ず、生産性が悪く、伝票プリンタが高価になるという問
題があった。また、病院または学校毎に、伝票プリンタ
のソフトが異なるので、伝票プリンタのメンテナンスが
面倒であるという問題があった。
However, if such measures are taken,
Since it is necessary to manufacture a slip printer for each hospital or school, there is a problem that productivity is poor and the slip printer becomes expensive. Further, since the software of the slip printer is different for each hospital or school, there is a problem that the maintenance of the slip printer is troublesome.

【0008】この発明の目的は、前記した従来装置の問
題点を除去し、簡単な構成で、前記各種のフォーマット
パラメータを有するカードデータを読み出すことがで
き、かつ生産性の良好な伝票プリンタのカードデータ読
み出し方式を提供することにある。
An object of the present invention is to eliminate the above-mentioned problems of the conventional apparatus, to read the card data having the various format parameters with a simple structure, and to improve the productivity of the card of the slip printer. It is to provide a data reading method.

【0009】[0009]

【課題を解決するための手段】前記目的を達成するため
に、この発明は、各カードのフォーマットパラメータを
解読する情報を記憶するフォーマットカードの読取り手
段と、読取られた該フォーマットカードの解読情報を記
憶する不揮発性の記憶手段と、前記各カードの読取り時
に、前記記憶手段に記憶されている解読情報に基づい
て、該カードのフォーマットパラメータを解読する手段
と、解読されたカード内情報を記憶する揮発性の記憶手
段とを具備した点に特徴がある。
In order to achieve the above object, the present invention provides a format card reading means for storing information for decoding the format parameter of each card, and a read decryption information of the format card. Non-volatile storage means for storing, means for decoding the format parameter of the card based on the decoding information stored in the storage means at the time of reading each card, and storing the decoded in-card information It is characterized in that it has a volatile storage means.

【0010】[0010]

【作用】この発明によれば、伝票プリンタが設置される
病院等の施設において、各施設で使用されるカードのフ
ォーマットパラメータに違いがあっても、伝票プリンタ
の設置時に、前記フォーマットカードの解読情報を該伝
票プリンタに読み込むことにより、該伝票プリンタをそ
の施設で使用しているカードに適合させることができ
る。
According to the present invention, in a facility such as a hospital in which a slip printer is installed, even if there is a difference in the format parameter of the card used in each facility, when the slip printer is installed, the decoding information of the format card can be read. Is read into the voucher printer, the voucher printer can be adapted to the card used in the facility.

【0011】したがって、各施設毎のプログラムを内蔵
する伝票プリンタを予め作成しなくてもよいので、生産
性が向上すると共に、メンテナンスが容易になる。
Therefore, since it is not necessary to previously create a slip printer having a program for each facility, productivity is improved and maintenance is facilitated.

【0012】[0012]

【実施例】以下に、図面を参照して、本発明を詳細に説
明する。図2は本発明の伝票プリンタの一実施例の外観
斜視図を示す。なお、以下では、病院で使用する伝票プ
リンタを例にして説明するが、本発明はこれに限定され
るものではない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 2 shows an external perspective view of one embodiment of the slip printer of the present invention. It should be noted that in the following, a slip printer used in a hospital will be described as an example, but the present invention is not limited to this.

【0013】図において、1はトップカバーであり、内
部に配置されている機構部を覆っている。該トップカバ
ー1の前面には、ストップ、医師、コメント、伝票の各
キー11が配置され、その上段に、入力されているデー
タの一部、あるいは使用者に対してメッセージ等を表示
する液晶表示装置12が組付けられている。
In the figure, reference numeral 1 denotes a top cover, which covers a mechanism portion arranged inside. Stop, doctor, comment, and slip keys 11 are arranged on the front surface of the top cover 1, and a liquid crystal display for displaying a part of input data or a message to the user is provided on the upper row thereof. The device 12 is assembled.

【0014】2はインクリボン(図示せず)を交換した
り、ジャムが発生した時等に開けられるフロントカバー
であり、凹部3に指をかけることにより、これを開ける
ことができる。
Reference numeral 2 denotes a front cover which can be opened when an ink ribbon (not shown) is replaced or when a jam occurs, which can be opened by placing a finger on the recess 3.

【0015】4はデータを記憶した磁気カードを通し、
データを読込むためのカード挿入孔であり、その後方に
は、磁気カードの挿入方向を決めやすくするための案内
突起5が設けられている。6は前記液晶表示装置12の
後方に設けられたカードポケットであり、複数枚の医師
カード、コメントカード等のカード13を保管するため
に使用される。
4 is a magnetic card storing data,
A card insertion hole for reading data, and a guide protrusion 5 is provided behind the card insertion hole to facilitate determination of the insertion direction of the magnetic card. A card pocket 6 is provided at the rear of the liquid crystal display device 12, and is used for storing a plurality of cards 13 such as doctor cards and comment cards.

【0016】7は印字台であり、印字する時に、印字部
が空欄の伝票がその上に乗せられる。8は伝票の左右方
向の位置決め用ガイドである。
Reference numeral 7 denotes a printing table, on which a slip having a blank print portion is placed when printing. Reference numeral 8 is a guide for positioning the slip in the left-right direction.

【0017】次に、図3を参照して、前記フロントカバ
ー2の内部に配置された伝票送り機構について説明す
る。図において、20は紙送りモータ、21、22はギ
ャ、23は前記ギャ21、22を介して動力が伝達され
る第1のローラである。24は第2のローラであり、図
示されていないばねにより、下方向に付勢されている。
25は印字ヘッドであり、X方向に移動して、図示され
ていないインクリボンにより、挿入された伝票用紙に印
字する。26は印字台ストッパである。この印字台スト
ッパ26と前記印字ヘッド25との距離は、伝票のトッ
プマージンの最大値と、最大印字行数を加味して決めら
れている。
Next, with reference to FIG. 3, the slip feeding mechanism arranged inside the front cover 2 will be described. In the figure, 20 is a paper feed motor, 21 and 22 are gears, and 23 is a first roller to which power is transmitted via the gears 21 and 22. A second roller 24 is urged downward by a spring (not shown).
Reference numeral 25 denotes a print head that moves in the X direction and prints on the inserted slip paper with an ink ribbon (not shown). Reference numeral 26 is a print stand stopper. The distance between the print stand stopper 26 and the print head 25 is determined in consideration of the maximum value of the top margin of the slip and the maximum number of print lines.

【0018】また、27、28は印字台7上を搬送され
る伝票を検知する第1、第2の紙検出センサである。本
実施例では、前記第1の紙検出センサ27として、アク
チュエータ型フォトセンサが使用され、第2の紙検出セ
ンサ28として、反射型フォトセンサが使用されてい
る。なお、前記以外の符号は、図2と同一又は同等物を
示す。
Further, 27 and 28 are first and second paper detection sensors for detecting a slip conveyed on the printing table 7. In this embodiment, an actuator type photo sensor is used as the first paper detection sensor 27, and a reflection type photo sensor is used as the second paper detection sensor 28. Reference numerals other than the above indicate the same or equivalent parts as in FIG.

【0019】図3において、印字台7に伝票用紙が乗せ
られて奥の方へ挿入され、その先端が第1の紙検出セン
サ27により検出されると、該検出信号により、前記紙
送りモータ20が起動される。そうすると、紙送りモー
タ20の動力はギャ21、22を介して、第1のローラ
23に伝えられる。
In FIG. 3, when a slip sheet is placed on the printing table 7 and inserted into the back side, and the leading edge of the slip sheet is detected by the first sheet detection sensor 27, the sheet feed motor 20 is detected by the detection signal. Is started. Then, the power of the paper feed motor 20 is transmitted to the first roller 23 via the gears 21 and 22.

【0020】前記伝票用紙が第1と第2のローラ23、
24の間に入るようにさらに挿入されると、伝票用紙は
第1のローラ23の回転により奥の方(図のY方向)へ
送られる。伝票用紙は、印字ヘッド25の下を通過した
後、第2の紙検出センサ28で先端が検出され、印字ヘ
ッド25と伝票用紙の位置決めがなされる。その後、所
定のトップマージン分さらに紙送りされた後、印字ヘッ
ド25は印字中心25aを中心として、第1行の印字を
開始する。ここに、前記トップマージンとは、図16に
示されているように、伝票の最初の非印字部分であり、
通常は伝票のタイトルが予め印刷されている箇所であ
る。なお、図16の説明は後で行う。
The slip sheet is composed of first and second rollers 23,
When the slip sheet is further inserted so as to be inserted between 24, the slip sheet is sent to the inner side (Y direction in the drawing) by the rotation of the first roller 23. After the slip paper passes under the print head 25, the leading edge of the slip paper is detected by the second paper detection sensor 28, and the print head 25 and the slip paper are positioned. Then, after the paper is further fed by a predetermined top margin, the print head 25 starts printing the first line around the print center 25a. Here, the top margin is the first non-printed portion of the slip as shown in FIG.
Usually, the title of the slip is printed in advance. The description of FIG. 16 will be given later.

【0021】以上のようにして、1行々々印字が進めら
れ、必要な印字が全て終了すると、前記紙送りモータ2
0は逆回転する。これにより、第1のローラ23も逆回
転し、伝票は伝票送り機構から自動的に排出される。
As described above, the printing is advanced line by line, and when all necessary printing is completed, the paper feed motor 2
0 rotates in the reverse direction. As a result, the first roller 23 also rotates in the reverse direction, and the slip is automatically ejected from the slip feeding mechanism.

【0022】次に、本実施例の伝票プリンタのハード構
成を、図4のブロック図を参照して説明する。
Next, the hardware configuration of the slip printer of this embodiment will be described with reference to the block diagram of FIG.

【0023】図4において、31はCPU、32は本伝
票プリンタの制御プログラムや制御データが格納された
ROM、33はカードから読込まれたデータ等を電源が
オフされるまで保持したり、データ編集等のワークエリ
アを提供するRAMである。また、34は書込みが可能
なEEPROMである。このEEPROM34には、各
種のパラメータが格納され、このパラメータは電源オフ
後も記憶保持される。
In FIG. 4, 31 is a CPU, 32 is a ROM in which the control program and control data of this slip printer are stored, and 33 is a device for holding data read from a card or the like until the power is turned off, or editing data. It is a RAM that provides a work area such as. Further, 34 is a writable EEPROM. Various parameters are stored in the EEPROM 34, and these parameters are stored and retained even after the power is turned off.

【0024】35は漢字変換ROMである。この漢字変
換ROM35には、JIS第1、第2水準漢字、非漢字
のフォントデータが記憶されている。36は磁気カード
に記録されているデータを読込むカードリーダである。
カードリーダ36は、カードロード信号(CLD)によ
りカードの挿入/離脱の判別ができ、リードクロック信
号(RCL)のタイミングで、リードデータ信号(RD
T)が読込まれる。37は時計ICであり、伝票発行年
月日時分のデータを提供する。この時計IC37は、大
容量のコンデンサによりバックアップされており、電源
切断後も、数日間であれば、動作を継続する。
Reference numeral 35 is a Kanji conversion ROM. The Kanji conversion ROM 35 stores font data of JIS first, second level Kanji and non-Kanji. Reference numeral 36 is a card reader for reading data recorded on a magnetic card.
The card reader 36 can determine the insertion / removal of the card by the card load signal (CLD), and the read data signal (RD) at the timing of the read clock signal (RCL).
T) is read. Reference numeral 37 is a clock IC, which provides data for the date and time when the slip is issued. The timepiece IC 37 is backed up by a large-capacity capacitor, and continues to operate for several days even after the power is turned off.

【0025】また、38は第1の入出力装置(I/O)
であり、該第1の入出力装置38には、前記キー11
と、第1、第2の紙検出センサ27、28が接続されて
いる。39は第2の入出力装置(I/O)であり、これ
には、前記液晶表示装置12とブサー40が接続されて
いる。
Reference numeral 38 is a first input / output device (I / O)
In the first input / output device 38, the key 11
And the first and second paper detection sensors 27 and 28 are connected. Reference numeral 39 denotes a second input / output device (I / O) to which the liquid crystal display device 12 and the buser 40 are connected.

【0026】さらに、41は第3の入出力装置(I/
O)であり、これには、Y方向(図3参照)モータ、す
なわち紙送りモータ20のドライバ42が接続されてい
る。また、43は第4の入出力装置(I/O)であり、
これには、X方向(図3参照)モータ、すなわちヘッド
移動モータ45のドライバ44が接続されている。ま
た、ソレノイドドライバ48を介して、印字ヘッドを構
成するソレノイド49に制御信号を提供する。46はヘ
ッドの初期位置を検出するホームポジションセンサ(HP
SENS)であり、47は前記ソレノイドの動作タイミング
を取るためのドットパルスセンサ(DP SENS) である。ま
た、50はデータバスラインである。
Further, 41 is a third input / output device (I /
O), which is connected to the Y-direction (see FIG. 3) motor, that is, the driver 42 of the paper feed motor 20. 43 is a fourth input / output device (I / O),
The driver 44 of the X-direction (see FIG. 3) motor, that is, the head moving motor 45 is connected to this. In addition, a control signal is provided to a solenoid 49 forming the print head via the solenoid driver 48. 46 is a home position sensor (HP
SENS), and 47 is a dot pulse sensor (DP SENS) for determining the operation timing of the solenoid. Further, 50 is a data bus line.

【0027】なお、前記ヘッド移動モータ45、ホーム
ポジションセンサ46、ドットパルスセンサ47および
ソレノイド49はプリンタユニットを構成している。
The head moving motor 45, the home position sensor 46, the dot pulse sensor 47, and the solenoid 49 constitute a printer unit.

【0028】次に、前記カードリーダ36によって読込
まれる患者カード、医師カードおよびコメントカードの
構成の概要を、図5、図6および図7を参照して説明す
る。
Next, the outline of the configuration of the patient card, doctor card and comment card read by the card reader 36 will be described with reference to FIGS. 5, 6 and 7.

【0029】患者カードは、図5に示されているよう
に、患者コード、氏名(片仮名)、氏名(漢字)、生年
月日、性別およびパリティチェックの情報を有してい
る。患者カ―ドであることの判別は、E情報FTパラメ
―タの先頭2文字で規定される位置で始まる2ケのカ―
ドデ―タと漢字INコマンドとを照合して行う。
As shown in FIG. 5, the patient card has information on the patient code, name (Katakana), name (Kanji), date of birth, gender and parity check. To identify a patient card, two cards starting at the position defined by the first two letters of the E information FT parameter are used.
The data is checked against the Kanji IN command.

【0030】また、医師カードは、図6に示されている
ように、カード判別情報(DR)、氏名(片仮名)、医
師コード、氏名(漢字)、所属およびパリティチェック
の情報を有している。
Further, as shown in FIG. 6, the doctor card has card discrimination information (DR), name (Katakana), doctor code, name (Kanji), affiliation and parity check information. ..

【0031】さらに、コメントカードは、図7(a) に示
されているように、カード判別情報(CT)、第1行コ
メント情報、第2行コメント情報、第3行コメント情
報、およびパリティチェックの情報から構成されてい
る。図7(b) は、前記第1〜3行コメント情報の一具体
例を示す。
Further, as shown in FIG. 7A, the comment card has card discrimination information (CT), first line comment information, second line comment information, third line comment information, and parity check. It is composed of information. FIG. 7B shows a specific example of the comment information on the first to third lines.

【0032】次に、前記各カード内に記憶されているデ
ータについて、詳細に説明する。以下では、患者カ―ド
を例にして説明するが、他のカ―ドにおいても同様であ
る。
Next, the data stored in each card will be described in detail. In the following, a patient card will be described as an example, but the same applies to other cards.

【0033】図8は、カード内に記憶されているデータ
の割付けを示す7単位符号図である。図において、列方
向の「0」、行方向の「0」のデータ、すなわち00H
のデータ(以下、同様の表記とする。また、Hはヘキサ
を示す。)「NUL」から、20Hのデータ「(S
P)」まで、および7FHの「DEL」は、機能キャラ
クタと呼ばれるコマンドデータである。また、21H〜
7EHは、図形キャラクタと呼ばれる文字データであ
る。
FIG. 8 is a 7-unit code diagram showing the allocation of data stored in the card. In the figure, data of “0” in the column direction and “0” in the row direction, that is, 00H
(Hereinafter, the same notation is used, and H represents hexa). From “NUL”, data of 20H “(S
"P)" and "DEL" of 7FH are command data called a function character. Also, from 21H
7EH is character data called a graphic character.

【0034】半角サイズのアルファベット・数字・仮名
(以下、ANK文字と呼ぶ)は図形キャラクタに対応さ
せ、漢字は、漢字INコマンド(例えば、(ESC)
(SO))と漢字OUTコマンド(例えば、(ESC)
(SI))とで挟まれる2バイトのデータで表されてい
る。この2バイトのデータは、漢字JISコード番号と
呼ばれ、該漢字JISコード番号として、2121H〜
7E7EHの値が指定されている。このような指定によ
り、前記機能キャラクタのコードとは混同されないよう
になされている。また、前に(SO)機能キャラクタが
あれば片仮名文字を、(SI)機能キャラクタがあれば
英数字と取決められている。
Half-size alphabets, numbers, and kana (hereinafter referred to as ANK characters) are made to correspond to graphic characters, and Kanji is a Kanji IN command (for example, (ESC)).
(SO)) and Kanji OUT command (for example, (ESC)
(SI)) and is represented by 2 bytes of data. This 2-byte data is called a Kanji JIS code number. As the Kanji JIS code number, 2121H-
The value of 7E7EH is specified. By such designation, the code of the function character is not confused. Further, if there is a (SO) function character in front, it is determined that it is a katakana character, and if there is a (SI) function character, it is an alphanumeric character.

【0035】次に、図9を参照して、標準患者カードの
情報の記憶位置と容量について説明する。
Next, referring to FIG. 9, the storage position and capacity of the information of the standard patient card will be described.

【0036】図から明らかなように、患者カード情報の
記憶位置は、開始符号、患者コード、氏名(片仮名)、
生年月日、性別、氏名(漢字)、予備、終了符号および
パリティチェックの順に構成されている。また、前記各
情報には、記憶容量として、図示されているキャラクタ
数が割当てられている。また片仮名INコマンドには
(SO)が使用され、片仮名OUTコマンドには(S
I)が使用されている。さらに、漢字INコマンドには
(ESC)(SO)が使用され、漢字OUTコマンドに
は(ESC)(SI)が使用されている。
As is clear from the figure, the storage location of the patient card information is the start code, patient code, name (Katakana),
The date of birth, gender, name (kanji), reserve, end code, and parity check are configured in this order. In addition, the number of characters shown in the drawing is assigned as a storage capacity to each of the information. (SO) is used for the Katakana IN command, and (S) is used for the Katakana OUT command.
I) is used. Furthermore, (ESC) (SO) is used for the Chinese character IN command, and (ESC) (SI) is used for the Chinese character OUT command.

【0037】しかしながら、前記した患者カード情報の
記憶位置、容量、コマンド等は標準の例であり、病院に
よっては、患者カードをホストコンピュータ側でも使用
するため、これと違うフォーマットパラメータを採用し
ているところがある。例えば、患者コードのキャラクタ
数が8桁であったり、患者コード情報の記憶位置が漢字
INコマンドの前であったり、漢字IN/OUTコマン
ドが(ESC)K/(ESC)Hであったりして、病院
によりまちまちである。
However, the above-mentioned storage position, capacity, command, etc. of the patient card information are standard examples, and some hospitals use the patient card on the host computer side as well, so different format parameters are adopted. There is a place. For example, the number of characters of the patient code is 8 digits, the storage position of the patient code information is before the Kanji IN command, or the Kanji IN / OUT command is (ESC) K / (ESC) H. It depends on the hospital.

【0038】次に、図10は患者カード情報の使用可能
文字と、患者カード情報例を示し、図11はその表示例
を示す。
Next, FIG. 10 shows usable characters of the patient card information and the patient card information example, and FIG. 11 shows the display example.

【0039】図12は、前記のように、患者カードのフ
ォーマットパラメータが異なっていても、これを読み出
すことができるフォーマットカードの解読情報記憶位置
と記憶内容とを示す図である。
FIG. 12 is a diagram showing the decryption information storage positions and storage contents of the format card which can read out the patient card even if the format parameters are different, as described above.

【0040】図示されているように、フォーマットカー
ドの解読情報記憶位置は、開始符号、カード判別情報、
A〜E情報フォーマット(FT)パラメータ、漢字IN
コマンド、漢字OUTコマンド、終了符号、パリティチ
ェックの順になっている。前記A〜E情報は、図10の
「区分」、「情報」と対応しており、それぞれ、患者コ
ード、氏名(片仮名)、生年月日、性別および氏名(漢
字)を示している。
As shown in the figure, the decryption information storage position of the format card includes a start code, card identification information,
AE information format (FT) parameters, Kanji IN
The order is command, Kanji OUT command, end code, and parity check. The A to E information corresponds to the “category” and the “information” in FIG. 10, and shows the patient code, name (Katakana), date of birth, gender and name (Kanji), respectively.

【0041】図中のA〜E情報の××××には、それぞ
れの情報の記憶位置(先頭キャラクタアドレス)と、容
量(キャラクタ数)を示すデータが格納される。該××
××の前の二つの××は先頭キャラクタアドレスを示
し、後の××はキャラクタ数を示している。また、図中
の△△は、機能キャラクタを示している。
In XXX of the A to E information in the figure, data indicating the storage position (head character address) of each information and the capacity (the number of characters) are stored. The xx
The two xx before xx indicate the start character address, and the xx after xx indicate the number of characters. Further, ΔΔ in the figure indicates a functional character.

【0042】図9で示した標準フォーマットの患者カー
ドの場合、図12のフォーマットカードの解読情報の記
憶内容は、下記の通りとなる。
In the case of the standard format patient card shown in FIG. 9, the stored contents of the decoding information of the format card of FIG. 12 are as follows.

【0043】(DEL)FT0112 1322 3507 4201 4324(ESC)(S
O)(ESC)(SI)(DEL)(LRC) ここに、前記「0112」は、A情報である患者コードが、
先頭キャラクタアドレス「01」の所に、キャラクタ数
「12」で格納されていることを示している。また、前
記「1322」は、B情報である氏名(片仮名)が、先頭キ
ャラクタアドレス「13」の所に、キャラクタ数「2
2」で格納されていることを示している。以下、前記
「3507」、「4201」、……は、前記と同様の内容を示し
ている。
(DEL) FT0112 1322 3507 4201 4324 (ESC) (S
O) (ESC) (SI) (DEL) (LRC) where "0112" is the patient code which is A information,
It is shown that the number of characters is stored at "12" at the beginning character address "01". Also, in the above "1322", the name (Katakana) which is the B information is located at the beginning character address "13" and the number of characters is "2".
2 ”is stored. Hereinafter, “3507”, “4201”, ... Show the same contents as above.

【0044】また、前記(ESC)(SO) は、漢字INコマン
ドとして(ESC)(SO) を用い、漢字OUTコマンドとして
(ESC)(SI) を用いていることを示している。
The (ESC) (SO) uses (ESC) (SO) as a Kanji IN command and uses as a Kanji OUT command.
(ESC) (SI) is used.

【0045】上記の例において、例えば患者コードのキ
ャラクタ数が8桁であり、他のフォーマットパラメータ
は前記標準フォーマットと同一であった場合には、図1
2のフォーマットカードの解読情報の記憶内容は、下記
の通りとなる。
In the above example, when the number of characters of the patient code is 8 digits and the other format parameters are the same as those of the standard format, as shown in FIG.
The stored contents of the decryption information of the second format card are as follows.

【0046】(DEL)FT0108 0922 3107 3801 3924(ESC)(S
O)(ESC)(SI)(DEL)(LRC) また、例えば患者コード情報の記憶位置が漢字INコマ
ンドの前にある点のみで、前記標準フォーマットと異な
る場合には、図12のフォーマットカードの解読情報の
記憶内容は、下記の通りとなる。
(DEL) FT0108 0922 3107 3801 3924 (ESC) (S
O) (ESC) (SI) (DEL) (LRC) Further, for example, when the storage position of the patient code information is in front of the Chinese character IN command and different from the standard format, the format card of FIG. The stored contents of the decryption information are as follows.

【0047】(DEL)FT5512 0122 2307 3001 3124(ESC)(S
O)(ESC)(SI)(DEL)(LRC) また、漢字IN/OUTコマンドが(ESC)K/(E
SC)Hである点のみで、前記標準フォーマットと異な
る場合には、図12のフォーマットカードの解読情報の
記憶内容は、下記の通りとなる。
(DEL) FT5512 0122 2307 3001 3124 (ESC) (S
O) (ESC) (SI) (DEL) (LRC) Kanji IN / OUT commands are (ESC) K / (E
When the format is different from the standard format only in the point of SC) H, the stored contents of the decryption information of the format card of FIG. 12 are as follows.

【0048】(DEL)FT0112 1322 3507 4201 4324(ESC)
(K)(ESC)(H)(DEL)(LRC) 次に、図13を参照して、前記ROM32に格納されて
いるデータ,すなわちROMマップについて説明する。
該ROM32の中には、図示されているように、アルフ
ァベット、数字、片仮名(ANK)の文字フォントデー
タ、伝票パラメータのデフォルト値、設定モードプログ
ラム、メンテナンスデータ表示モードプログラム、テス
ト印字モードプログラム、診断モードプログラム、通常
印字モードプログラム等が格納されている。
(DEL) FT0112 1322 3507 4201 4324 (ESC)
(K) (ESC) (H) (DEL) (LRC) Next, the data stored in the ROM 32, that is, the ROM map will be described with reference to FIG.
In the ROM 32, as shown in the drawing, alphabetic, numeric, and katakana (ANK) character font data, default values of slip parameters, setting mode programs, maintenance data display mode programs, test print mode programs, diagnostic modes A program, a normal print mode program, etc. are stored.

【0049】また、前記RAM33には、図14に示さ
れているような、記憶領域が設定されている。
A storage area as shown in FIG. 14 is set in the RAM 33.

【0050】CD格納ポインタは、後述するリードクロ
ック信号(RCL)による割込み時に、磁気カードデー
タを記憶する時に使用されるポインタである。カードデ
ータバッファは、前記リードクロック信号(RCL)と
同期して読み出された磁気カードデータを、1アドレス
に対し、1ビット記憶するメモリエリアである。このカ
ードデータバッファには、カードの種別に関係なく、読
込まれたデータが一時格納されることになる。
The CD storage pointer is a pointer used when storing magnetic card data at the time of interruption by a read clock signal (RCL) described later. The card data buffer is a memory area for storing 1 bit of magnetic card data read in synchronization with the read clock signal (RCL) for 1 address. The read data is temporarily stored in the card data buffer regardless of the type of the card.

【0051】次のIDカードデータは、患者カードのデ
ータを記憶するメモリエリアである。また、DRカード
データ、CTカードデータは、それぞれ、医師カードデ
ータ、コメントカードデータの内容を格納する領域であ
る。
The next ID card data is a memory area for storing the data of the patient card. The DR card data and CT card data are areas for storing the contents of doctor card data and comment card data, respectively.

【0052】次に、時刻データが設けられている。この
時刻データは、時計ICのデータを記憶するメモリエリ
アである。このメモリエリア内のデータは、前記時計I
C37のデータにより更新される。
Next, time data is provided. This time data is a memory area that stores the data of the clock IC. The data in this memory area corresponds to the clock I
Updated with C37 data.

【0053】次に、EX格納ポインタ、EX読み出しポ
インタおよび展開データがある。EX格納ポインタは、
文字列データを9ピンヘッドに出力する9個のドットデ
ータの記憶位置を指定するポインタである。EX読み出
しポインタは、1組のドットデータを印字ヘッドに出力
する時、読み出し位置を指定するポインタである。
Next, there are an EX storage pointer, an EX read pointer, and expanded data. The EX storage pointer is
It is a pointer for designating the storage positions of the 9 dot data for outputting the character string data to the 9-pin head. The EX read pointer is a pointer that designates a read position when outputting a set of dot data to the print head.

【0054】次に、PP格納ポインタ、PP読み出しポ
インタおよび紙送りデータがある。PP格納ポインタ
は、改行毎の紙送りデータの記憶位置を指定するポイン
タである。PP読み出しポインタは、改行時に、紙送り
データの読み出し位置を指定するポインタである。紙送
りデータは、カードデータ等からドットデータを作成す
る時に、作成される改行量を示すデータである。行間の
改行量は4ドット、漢字の上半分印字後、下半分を印字
する時の改行量は1/2ドットである。
Next, there are a PP storage pointer, a PP read pointer, and paper feed data. The PP storage pointer is a pointer that specifies the storage position of the paper feed data for each line feed. The PP read pointer is a pointer that specifies the read position of the paper feed data at the time of line feed. The paper feed data is data indicating the line feed amount created when dot data is created from card data or the like. The line feed amount between lines is 4 dots, and the line feed amount when printing the lower half after printing the upper half of Chinese characters is 1/2 dot.

【0055】次に、解読情報は、前記フォーマットカー
ドから読込まれた解読情報(図12参照)を格納する領
域である。
Next, the decryption information is an area for storing the decryption information (see FIG. 12) read from the format card.

【0056】図15は、本発明により設定される前記E
EPROM34の内容、すなわちEEPROMマップを
示すものである。ニューチップは、EEPROMにまだ
データが書込まれていないかどうかを判別するためのデ
ータである。まだデータが書込まれていない時には、E
EPROMメーカはそのことを示すデータ、たとえば5
5H、AAH等を書込んでいるので、このデータを検出
したら新しいまだデータが書込まれていないEEPRO
Mと判断することができる。なお、本実施例では、EE
PROMにデータを書込んだ後は、該ニューチップにデ
ータ0を書込むようにしている。
FIG. 15 shows the E set according to the present invention.
The contents of the EPROM 34, that is, an EEPROM map is shown. The new chip is data for determining whether data has not been written in the EEPROM. When data has not been written yet, E
The EPROM maker has data indicating that, for example, 5
5H, AAH, etc. are written, so if this data is detected, new data has not been written yet EEPRO
It can be judged as M. In this embodiment, EE
After writing the data in the PROM, the data 0 is written in the new chip.

【0057】ファイルネーム1は、伝票1の名前であ
り、ここにはスリップ(SLIP)1等の使用者が覚えやすい
名前を記憶させる。本実施例では予め名前を固定してい
るが、使用者が名前を付与する方式としてもよい。
The file name 1 is the name of the slip 1, and a name such as a slip (SLIP) 1 that is easily remembered by the user is stored here. In this embodiment, the name is fixed in advance, but the user may give the name.

【0058】トップマージン1は伝票1のトップマージ
ンであり、伝票の先端から印字第1行の上端までの長さ
である。
The top margin 1 is the top margin of the slip 1, and is the length from the leading edge of the slip to the upper end of the first print line.

【0059】シックネス1は、伝票1の紙厚設定値であ
り、4段階に設定することができる。このシックネス1
には、印字ヘッドのソレノイドの通電時間を制御するタ
イマー値Ts が記憶される。
The thickness 1 is a paper thickness setting value of the slip 1, and can be set in four steps. This sickness 1
Stores a timer value Ts for controlling the energization time of the solenoid of the print head.

【0060】アレンジメント1は、伝票1の文字配列の
種類を示すものである。伝票の文字配列の種類として、
図16に示すものと、図17に示すものとの2種類あ
る。図16のものは、伝票タイトルと伝票内容との間
に、患者氏名、医師名等の印字エリアがある場合であ
り、図17のものは、伝票内容の下に、患者氏名、医師
名等の印字エリアがある場合である。
Arrangement 1 indicates the type of character arrangement of the slip 1. As the character array type of the slip,
There are two types, those shown in FIG. 16 and those shown in FIG. In the case of FIG. 16, there is a print area for the patient name, doctor name, etc. between the slip title and the slip content, and in FIG. 17, the patient name, doctor name, etc. are displayed under the slip content. This is when there is a print area.

【0061】両者を見比べれば明らかなように、トップ
マージンが互いに異なり、図16の場合には印字が順番
通りに行われる通常配列であるのに対して、図17の伝
票の場合には、印字が逆順に行われることになる。すな
わち、印字データを全て逆順に配列し直して、伝票を下
端からプリンタに挿入して印字する反転配列が必要にな
る。本実施例では、前記通常配列と反転配列を表す略語
として、前者は「ウエ」と表され、後者は「シタ」と表
される。
As is apparent from a comparison between the two, the top margins are different from each other, and in the case of FIG. 16, the normal arrangement is such that printing is performed in order, whereas in the case of the slip of FIG. Printing will be performed in reverse order. That is, it is necessary to arrange all the print data in the reverse order and insert the slip into the printer from the lower end to print the reverse print. In the present embodiment, the abbreviations representing the normal array and the inverted array are represented by the former as “u” and the latter as “sita”.

【0062】再び、図15に戻ると、本実施例では、前
記ファイルネーム、トップマージン、シックネスおよび
アレンジメントの各データが、5組(スリップ1〜
5)、EEPROM34に登録できるようになされてい
る。
Returning to FIG. 15 again, in the present embodiment, each set of the data of the file name, top margin, thickness and arrangement has five sets (slip 1 to slip 1).
5), it can be registered in the EEPROM 34.

【0063】さらに、該EEPROM34には、前記フ
ォーマットカードから読み出された解読情報が記憶され
る。
Further, the EEPROM 34 stores the decryption information read from the format card.

【0064】次に、前記EEPROM34に、前記解読
情報を登録する手順を、図18、図19を参照して説明
する。
Next, the procedure for registering the decryption information in the EEPROM 34 will be described with reference to FIGS. 18 and 19.

【0065】図18は各種のモードを設定する仕方を示
すフローチャートであり、図19は設定モードに入った
後に、EEPROM34に前記フォーマットパラメータ
を登録する手順を示すフローチャートである。
FIG. 18 is a flow chart showing how to set various modes, and FIG. 19 is a flow chart showing a procedure for registering the format parameter in the EEPROM 34 after entering the setting mode.

【0066】図18のステップS71では、前記EEP
ROM34がニユーチップでないか否かの判断がなされ
る。この判断が否定の時、すなわちニューチップの時に
は、ステップS72に進んで、前記ROM32に格納さ
れている伝票パラメータデフォルト値(設計値)を、E
EPROM34のスリップ1〜5に書込む動作が行われ
る。続いて、ステップS73に進んで、EEPROM3
4のニユーチップのエリアに、ニユーチップでないこと
を示すデータである“0”が書込まれる。
In step S71 of FIG. 18, the EEP is executed.
It is determined whether the ROM 34 is a new chip. When this determination is negative, that is, when it is a new chip, the process proceeds to step S72, and the slip parameter default value (design value) stored in the ROM 32 is set to E.
The operation of writing the slips 1 to 5 of the EPROM 34 is performed. Succeedingly, in the step S73, the EEPROM 3
Data "0" indicating that the chip is not a new chip is written in the area of the new chip of No. 4.

【0067】前記ステップS71の判断が肯定の時、あ
るいはステップS73の処理が終了すると、ステップS
74に進む。ステップS74では、前記スリップ1〜5
の値を、EEPROM34から読み出して、前記RAM
33に書込む動作が行われる。 次いでステップS75
に進み、ストップキーと伝票キーとが同時にオンされて
いるか否かの判断が行われる。この判断が肯定の場合に
は、ステップS76に進んで、設定モード処理が設定さ
れる。
When the determination in step S71 is affirmative, or when the processing in step S73 ends, step S71
Proceed to 74. In step S74, the slips 1-5
Value is read out from the EEPROM 34 and stored in the RAM.
The operation of writing to 33 is performed. Then in step S75
Then, it is judged whether or not the stop key and the slip key are simultaneously turned on. When this determination is affirmative, the process proceeds to step S76, and the setting mode process is set.

【0068】ステップS75が否定のときには、ステッ
プS77に進み、ストップキーとコメントキーとが同時
に押されているか否かの判断がなされる。この判断が肯
定の時には、ステップS78に進んで、メンテナンスデ
ータ表示モード処理が設定される。
When step S75 is negative, the routine proceeds to step S77, where it is judged whether or not the stop key and the comment key are simultaneously pressed. When this determination is affirmative, the routine proceeds to step S78, and maintenance data display mode processing is set.

【0069】同様に、ストップキーと医師キーが同時に
押されている場合には、テスト印字モード処理が設定さ
れ、医師キーとコメントキーとが同時に押されている時
には、診断モード処理が設定される。前記2つのキーが
同時に押されていない時には、ステップS83に進ん
で、通常印字モード処理が設定される。
Similarly, when the stop key and the doctor key are simultaneously pressed, the test print mode process is set, and when the doctor key and the comment key are simultaneously pressed, the diagnostic mode process is set. .. When the two keys are not pressed at the same time, the process proceeds to step S83 to set the normal print mode process.

【0070】前記ステップS76の設定モード処理が設
定されると、図19のステップS761に示されている
ように、伝票設定メニューが表示される。
When the setting mode process of step S76 is set, a slip setting menu is displayed as shown in step S761 of FIG.

【0071】なお、該設定モード処理に入ると、伝票プ
リンタ上の各キー、すなわち、ストップ、医師、コメン
トおよび伝票の各キーは、それぞれ、「メニューキ
ー」、「上カーソルキー」、「下カーソルキー」および
「登録キー」の意味を持つように切り替わる。使い勝っ
てを良くするためには、キーの意味の変更を分かりやす
くするために、前記各キーの下に、これらのことを意味
する設定モードキーシールを貼付すると良い。
When the setting mode process is started, the keys on the slip printer, that is, the stop key, the doctor key, the comment key, and the slip key are "menu key", "up cursor key", and "down cursor", respectively. Switch to have the meaning of "key" and "registration key". In order to improve usability, in order to make it easy to understand the change of the meaning of the key, it is advisable to attach a setting mode key sticker that means these things under each key.

【0072】EEPROM34に前記フォーマットパラ
メータを設定する場合には、ステップS762におい
て、メニューキーが押される。これにより、ステップS
763に進み、前記伝票設定メニューは他の設定メニュ
ーに更新される。他の設定メニューとしては、例えば伝
票設定、LCD濃度設定、伝票設定、IDカードフォー
マット設定、アイドル画面設定等がある。
When setting the format parameter in the EEPROM 34, the menu key is pressed in step S762. By this, step S
Proceeding to 763, the chit setting menu is updated to another setting menu. Other setting menus include, for example, slip setting, LCD density setting, slip setting, ID card format setting, idle screen setting, and the like.

【0073】ステップS764では、患者カードフォー
マット設定メニューが画面に表示されているか否かの判
断が行われ、この判断が肯定の場合には、ステップS7
66に進んで登録キーがオンにされる。一方、否定の時
には、ステップS765に進んで、メニューキーがオン
にされる。そうすると、ステップS763で他の設定メ
ニュー画面が表示される。図20(a) に、前記患者カー
ドフォーマット設定メニュー画面の一例を示す。
In step S764, it is determined whether or not the patient card format setting menu is displayed on the screen. If the determination is affirmative, step S7
Proceeding to 66, the registration key is turned on. On the other hand, if negative, the process proceeds to step S765 and the menu key is turned on. Then, another setting menu screen is displayed in step S763. FIG. 20 (a) shows an example of the patient card format setting menu screen.

【0074】ステップS767では、フォーマットカー
ド要求画面が表示される。その一例を、図20(b) に示
す。そこで、フォーマットカードが前記カードリーダ3
6から読込まれると、ステップS768において、カー
ドデータはカードデータバッファに取込まれる。
In step S767, a format card request screen is displayed. An example thereof is shown in FIG. Therefore, the format card is the card reader 3
6 is read, the card data is taken into the card data buffer in step S768.

【0075】ステップS769では、取込まれたカード
データがフォーマットカードデータか否かの判断が行わ
れ、この判断が否定の場合には、ステップS770に進
んでエラー画面の表示が行われる。その表示の一例を、
図20(c) に示す。そこで、ステップS771に進み、
メニューキーがオンされると、ステップS767に戻
り、フォーマットカード要求画面が表示される。
In step S769, it is determined whether the received card data is format card data. If the determination is negative, the process proceeds to step S770 to display an error screen. An example of the display,
It is shown in FIG. Therefore, the process proceeds to step S771
When the menu key is turned on, the process returns to step S767 and the format card request screen is displayed.

【0076】前記ステップS769が肯定の場合には、
前記フォーマットカードデータである解読情報を、EE
PROMの解読情報記憶エリアに格納する処理が行われ
る。
If step S769 is positive,
The decryption information which is the format card data is EE
The process of storing in the decryption information storage area of the PROM is performed.

【0077】以上の操作を伝票プリンタの設置時にする
ことにより、該伝票プリンタに、病院が採用している患
者カードのフォーマットパラメータを読み出す機能を付
与することができる。換言すれば、伝票プリンタを多数
の病院に納入する時、納入先の病院が採用している患者
カードを何ら変更することなく、単にその病院用のフォ
ーマットカードを用いて、解読情報を前記のようにして
設定するだけで、該病院に使用することができるように
なる。
By performing the above operation when the slip printer is installed, the slip printer can be provided with a function of reading the format parameters of the patient card adopted by the hospital. In other words, when delivering a voucher printer to a large number of hospitals, without changing the patient card adopted by the recipient hospital, simply use the format card for that hospital to read the decryption information as described above. By just setting it, it becomes possible to use it in the hospital.

【0078】次に、本実施例の伝票プリンタの使用方法
を説明する。病院等で使用される場合、朝一番の開業時
に、オペレータが該伝票プリンタの電源を立ち上げ、続
いて、当日出勤の医師のカードを前記カードリーダ36
から読込む。そうすると、医師のカードデータは、図1
4のRAM33のDRカードデータ格納領域に格納され
ることになる。
Next, a method of using the slip printer of this embodiment will be described. When used in a hospital or the like, the operator turns on the power of the slip printer at the first opening of the morning, and then the card of the doctor who is going to work on the day is read by the card reader 36.
Read from. Then, the doctor's card data is
4 will be stored in the DR card data storage area of the RAM 33.

【0079】次いで、オペレータは予め用意されている
コメントカードを前記カードリーダ36から読込む。こ
れにより、該コメントのカードデータは、図14のRA
M33のCTカードデータ格納領域に格納されることに
なる。
Next, the operator reads the comment card prepared in advance from the card reader 36. As a result, the card data of the comment is RA of FIG.
It will be stored in the CT card data storage area of M33.

【0080】以上で前準備が終了し、伝票を患者に発行
する時には、オペレータが患者から患者カードを借用
し、カードリーダ36から読込ませる。読込まれたデー
タは、前記IDカードデータ領域に記憶される。この
時、前の患者のデータは消去され、新たに読込まれた患
者のデータが記憶されることになる。
When the preparation is completed and the voucher is issued to the patient, the operator borrows the patient card from the patient and reads it from the card reader 36. The read data is stored in the ID card data area. At this time, the previous patient data is erased and the newly read patient data is stored.

【0081】この時、オペレータは使用する伝票の種類
に応じて、前記伝票パラメータを設定する。例えば、一
枚綴り、二枚綴りの伝票か等、あるいは伝票が図16に
示した文字配列のものかあるいは図17に示した文字配
列のものか等により、伝票パラメータの設定を行う。な
お、同じ種類の伝票を印字する時には、この伝票パラメ
ータの設定を、その都度行う必要がないことは勿論であ
る。
At this time, the operator sets the slip parameters according to the type of slip to be used. For example, the voucher parameters are set depending on whether the voucher is a one-page or two-page voucher, or whether the voucher has the character arrangement shown in FIG. 16 or the character arrangement shown in FIG. Of course, when printing the same type of slip, it is not necessary to set the slip parameter each time.

【0082】次に、オペレータは伝票を印字台7の上に
乗せ、奥へと挿入する。そうすると、印字機構は前記の
ような動作を行い、図16又は図17に示されているよ
うに、オペレータによって選択された伝票パラメータに
よって、印字された伝票を得ることができる。
Next, the operator places the slip on the printing table 7 and inserts it into the back. Then, the printing mechanism operates as described above, and as shown in FIG. 16 or 17, the printed slip can be obtained according to the slip parameters selected by the operator.

【0083】この伝票は、例えば、図示されているよう
に、患者のID番号、名前、生年月日、性別、前記ID
番号のバーコード等の患者カードデータと、担当の医師
名、ID番号、所属等の医師カードデータと、「ジカイ
ハ、ホケンショウヲオモチクダサイ。オダイジニ。オト
イアワセハ、TEL○○−○○○○」といったコメント
カードデータと、時刻データと、その他のデータから構
成されている。
This slip is, for example, as shown in the figure, the patient's ID number, name, date of birth, sex, and the ID.
Patient card data such as the barcode of the number, doctor card data such as the doctor name in charge, ID number, affiliation, etc., such as "Jikaiha, Hokensho Omojinji. It is composed of comment card data, time data, and other data.

【0084】なお、該伝票中の一番下又は一番上の伝票
内容は、医師が検査したときに近くの端末から入力した
データである。
The contents of the bottom or top of the slips are data input from a nearby terminal when the doctor conducted the examination.

【0085】次に、前記のカードを読込むカードリーダ
36の読込み動作を、図21のフローチャートを参照し
て、詳細に説明する。同図(a) に示されているように、
カードデータの読込みはリードクロック信号(RCL)
による割込みで行われる。ステップS1では、カードが
前記カード挿入孔4に差込まれたか否かの判断が行われ
る。この判断は、カードロード信号がハイかロウかで判
断される。ハイであれば、差込まれていると判断し、ス
テップS2に進む。ステップS2では、リードクロック
信号(RCL)が立下がったか否かの判断をする。立下
がった時には、ステップS3に進み、割込み処理をす
る。 割込み処理は、同図(b) に示されているように、
CD格納ポインタ(図14参照)で指示されているカー
ドデータバッファのアドレスに、カードデータの1ビッ
トが書き込まれる(ステップS301)。続いて、次の
データの書込みのために、CD格納ポインタはインクリ
メントされる(ステップS302)。以上の割込み処理
により、カードリーダ36で読込まれたデータは、一時
的に、カードデータバッファに格納されることになる。
Next, the reading operation of the card reader 36 for reading the above card will be described in detail with reference to the flowchart of FIG. As shown in Figure (a),
Read clock data (RCL) for reading card data
Interrupted by. In step S1, it is determined whether a card has been inserted into the card insertion hole 4. This judgment is made based on whether the card load signal is high or low. If it is high, it is determined that it is inserted, and the process proceeds to step S2. In step S2, it is determined whether or not the read clock signal (RCL) has fallen. When it has fallen, the process proceeds to step S3 and interrupt processing is performed. Interrupt processing is performed as shown in (b) of the figure.
One bit of the card data is written in the address of the card data buffer designated by the CD storage pointer (see FIG. 14) (step S301). Then, the CD storage pointer is incremented for writing the next data (step S302). Through the above interrupt processing, the data read by the card reader 36 is temporarily stored in the card data buffer.

【0086】次に、本発明の伝票プリンタを用いて印字
を行う前の動作、すなわち、通常印字モード処理の動作
を、図22、図23のフローチャートを参照して説明す
る。なお、この動作は、伝票プリンタに電源が投入され
ている時で、かつカード非挿入、非印字時に実行される
ものである。
Next, the operation before the printing using the slip printer of the present invention, that is, the operation of the normal print mode process will be described with reference to the flowcharts of FIGS. It should be noted that this operation is executed when the slip printer is powered on, and when the card is not inserted and the card is not printed.

【0087】ステップS11では、時計IC37より時
刻データを読み出し、RAM33の時刻データを更新す
る動作を行う。ステップS12では、カードリーダ3
6、キー11およびセンサ27の処理を行う。
In step S11, the time data is read from the clock IC 37 and the time data in the RAM 33 is updated. In step S12, the card reader 3
6, the key 11 and the sensor 27 are processed.

【0088】ステップS13では、カードがカードリー
ダ36から離脱したことが、カードロード信号がロウレ
ベルになることにより検出されると、前記カードデータ
バッファの内容が新たなカード挿入により書き替えられ
るのを防止するために、リードクロック信号による割込
みが禁止される。ステップS14では、読込まれたカー
ドデータのチェックが行われる。このチェックは、デー
タ列の先頭および終端に所定のデータ(DEL 機能キャラ
クタ)が存在するか、パリティは正しいかにより行われ
る。
In step S13, when it is detected that the card is removed from the card reader 36 by the low level of the card load signal, the contents of the card data buffer are prevented from being rewritten by inserting a new card. Therefore, the interrupt by the read clock signal is prohibited. In step S14, the read card data is checked. This check is made based on whether the specified data (DEL function character) exists at the beginning and end of the data string and whether the parity is correct.

【0089】前記チェックによりカードデータが正しい
と判断された時には、ステップS16に進む。一方、正
しくないと判定された時には、ステップS15に進み、
もう一度カードを挿入するように、前記液晶表示装置1
2にエラー表示が行われる。その後、ステップS21に
進む。
If it is determined by the above-mentioned check that the card data is correct, the process proceeds to step S16. On the other hand, when it is determined that it is not correct, the process proceeds to step S15,
The liquid crystal display device 1 so that the card can be inserted again.
An error message is displayed on 2. Then, it progresses to step S21.

【0090】ステップS16では、予め定められている
カード種類判別データを調べる動作が行われる。この判
別は、各カードに予め登録されているカード判別情報に
より行われる。ステップS29において、このカードが
客用カードではないと判別されると、図23のステップ
S17に進む。一方、客用カードであると判別される
と、ステップS30に進む。ステップS30の印字文字
列生成処理は、後で図24を参照して詳述する。
In step S16, an operation for checking predetermined card type discrimination data is performed. This determination is performed based on the card determination information registered in advance on each card. If it is determined in step S29 that this card is not a customer card, the process proceeds to step S17 in FIG. On the other hand, if it is determined that the card is a customer card, the process proceeds to step S30. The print character string generation processing in step S30 will be described later in detail with reference to FIG.

【0091】ステップS17では、カードデータバッフ
ァの値が、アルファベット・数字・仮名(ANK)又は
漢字の文字列データに変換して、当該カードデータエリ
アに格納される。例えば、医師カードのデータであれ
ば、図14のDRカードデータ格納領域に格納される。
ステップS18では、次のデ―タ書込みのために格納ポ
インタをインクリメントし、ステップS19では読出し
ポインタを格納ポインタより1少い値にする。
At step S17, the value of the card data buffer is converted into character string data of alphabets, numbers, kana (ANK) or kanji and stored in the card data area. For example, doctor card data is stored in the DR card data storage area in FIG.
In step S18, the storage pointer is incremented for writing the next data, and in step S19, the read pointer is set to a value one less than the storage pointer.

【0092】ステップS20では、上記のカードデータ
が液晶表示装置12に表示される。
In step S20, the above card data is displayed on the liquid crystal display device 12.

【0093】以上により、カードデータバッファからカ
ードに対応したカードデータ格納領域へのデータの転送
は終了したので、ステップS21に進んで、前記CD格
納ポインタを初期化する動作が実行される。続いてステ
ップS22に進んで、前記リードクロックRCLによる
割込みが許可され、前記ステップS11に戻る。
As described above, the transfer of the data from the card data buffer to the card data storage area corresponding to the card is completed, so that the operation proceeds to step S21 to initialize the CD storage pointer. Then, the process proceeds to step S22, the interrupt by the read clock RCL is permitted, and the process returns to step S11.

【0094】次に、ステップS12において、医師キー
がオンにされたと判断されると、ステップS23に進ん
で、DR読出しポインタがインクリメントされる。次
に、ステップS24に進み、前記DRカードデータが前
記DRカードデータ格納領域から読み出され、液晶表示
装置12に表示される。
Next, when it is determined in step S12 that the doctor key has been turned on, the process proceeds to step S23, and the DR read pointer is incremented. Next, in step S24, the DR card data is read from the DR card data storage area and displayed on the liquid crystal display device 12.

【0095】次に、前記ステップS12において、コメ
ントキーがオンにされると、ステップS25に進んで、
CT読出しポインタがインクリメントされる。次に、ス
テップS26に進み、前記CTカードデータが前記CT
カードデータ格納領域から読み出され、液晶表示装置1
2に表示される。
Next, when the comment key is turned on in step S12, the process proceeds to step S25,
The CT read pointer is incremented. Next, in step S26, the CT card data is the CT
The liquid crystal display device 1 is read out from the card data storage area.
It is displayed in 2.

【0096】次に、ステップS12で前記第1の紙検出
センサ27がオンにされたと判断されると、図25に示
されている印字制御に動作が進む。
Next, when it is determined in step S12 that the first paper detection sensor 27 is turned on, the operation proceeds to the print control shown in FIG.

【0097】また、ステップS12でその他のキー、例
えば伝票キーがオンにされると、ステップS28に進
み、伝票名とそれに対応する伝票パラメータを表示する
等の処理が行われる。
When another key, for example, the chit key is turned on in step S12, the process proceeds to step S28, in which the chit name and the chit parameter corresponding thereto are displayed.

【0098】次に、図24を参照して、前記ステップS
30の印字文字列生成処理を説明する。ステップS50
1では、前記A情報FTパラメータにより指示される部
分のキャラクタを、カードデータバッファより取り込
み、第1行の患者コードの文字列を作成し、RAMの患
者データエリアに記憶する。
Next, referring to FIG. 24, the step S
The print character string generation processing of 30 will be described. Step S50
In 1, the character of the portion designated by the A information FT parameter is fetched from the card data buffer, the character string of the patient code in the first line is created, and stored in the patient data area of the RAM.

【0099】次に、ステップS502では、前記B情報
FTパラメータにより指示される部分のキャラクタを、
カードデータバッファより取り込み、第2行の片仮名患
者氏名文字列を作成し、RAMの患者データエリアに記
憶する。
Next, in step S502, the character of the portion designated by the B information FT parameter is
The katakana patient name character string in the second line is created from the card data buffer and stored in the patient data area of the RAM.

【0100】次のステップS503では、前記E情報F
Tパラメータにより指示される部分のキャラクタを、カ
ードデータバッファより取り込み、第3行の漢字患者氏
名文字列を作成し、RAMの患者データエリアに記憶す
る。
In the next step S503, the E information F
The character in the portion designated by the T parameter is fetched from the card data buffer, the Kanji patient name character string in the third line is created, and stored in the patient data area of the RAM.

【0101】ステップS504では、前記C情報FTパ
ラメータにより指示される部分のキャラクタを、カード
データバッファより取り込み、第4行の患者生年月日文
字列を作成し、RAMの患者データエリアに記憶する。
In step S504, the character of the portion designated by the C information FT parameter is fetched from the card data buffer, the patient birth date character string in the fourth line is created, and stored in the patient data area of the RAM.

【0102】ステップS505では、前記D情報FTパ
ラメータにより指示される部分のキャラクタを、カード
データバッファより取り込み、「M」であれば男、そう
でなければ「女」を、第4行11文字目に割付け、RA
Mの患者データエリアに記憶する。
In step S505, the character of the portion designated by the D information FT parameter is fetched from the card data buffer, and if it is "M", it is a man, otherwise it is "woman". Assigned to RA
Store in M patient data area.

【0103】以上の処理により、患者カードから読み出
されたデータを伝票のフォーマットに合った順番に並べ
変えることができる。この並べ変えは、患者カード内の
情報の配置が病院によって異なっていても同様に行わ
れ、並べ変えられた後は、全て、同一の順番になること
は明らかであろう。
By the above processing, the data read from the patient card can be rearranged in the order suitable for the format of the slip. It will be apparent that this rearrangement is performed in the same way even if the arrangement of the information in the patient card differs depending on the hospital, and after the rearrangement, it is all in the same order.

【0104】次に、図25、26により、前記ステップ
S27の印字制御について説明する。 ステップS31
において、各カードデータ、時刻データの中の文字、改
行データにより、印字のためのフォントデータである展
開データ、紙送りデータが作成される。ステップS32
では、前記紙送りモータ42が駆動され、前記印字台7
から挿入された伝票用紙が奥の方へ送られる。
Next, the print control in step S27 will be described with reference to FIGS. Step S31
In, in the card data, characters in the time data, and line feed data are used to create expansion data and paper feed data that are font data for printing. Step S32
Then, the paper feed motor 42 is driven to drive the printing table 7
The slip paper inserted from is sent to the back.

【0105】ステップS33では、第2の紙検出センサ
28がオンになったか否かの判断がなされる。このセン
サ28がオフの間はステップS32の動作が継続して続
けられ、ステップS33が肯定になると、ステップS3
4に進む。ステップS34では、前記センサ28がオン
にされた後、伝票のトップマージンに相当する距離だけ
紙送りが継続される。
In step S33, it is determined whether the second paper detection sensor 28 is turned on. While the sensor 28 is off, the operation of step S32 is continued, and when step S33 becomes affirmative, step S3 is performed.
Go to 4. In step S34, after the sensor 28 is turned on, the paper feed is continued for a distance corresponding to the top margin of the slip.

【0106】ステップS35では、ヘッド25をX方向
に移動する(図3参照)ヘッド移動モータ44の駆動を
開始する。ステップS36では、ホームポジションセン
サ46がオンになったか否かの判断がなされ、該センサ
46がオンにされると、ステップS37に進んで、ドッ
トパルス(DP)カウンタが0に初期化される。このス
テップS36、S37の処理により、印字ヘッド位置の
初期化が達成される。
In step S35, the head moving motor 44 for moving the head 25 in the X direction (see FIG. 3) is started. In step S36, it is determined whether or not the home position sensor 46 is turned on, and when the sensor 46 is turned on, the process proceeds to step S37, and the dot pulse (DP) counter is initialized to 0. The initialization of the print head position is achieved by the processes of steps S36 and S37.

【0107】ステップS38はDP信号の割込みを許可
する。ステップS39では、前記ストップキーが押され
たか否かの判断をし、この判断が否定の時には、ステッ
プS41に進んで、印字が終了したか否かの判断をす
る。この判断が否定の時には、ステップS46に進ん
で、改行か否かの判断が行われる。改行でない時には、
ステップS39に戻って、印字動作が続行される。
In step S38, the DP signal interrupt is permitted. In step S39, it is determined whether or not the stop key is pressed. If the determination is negative, the process proceeds to step S41, and it is determined whether or not printing is completed. When this determination is negative, the process proceeds to step S46, and it is determined whether or not a line feed. When it is not a line break,
Returning to step S39, the printing operation is continued.

【0108】ステップS46の判断が肯定になり、改行
となった時には、ステップS47に進んで、前記PP読
出しポインタ(図14参照)の指示する紙送りデータだ
け、紙送りモータを駆動する。ステップS48では、次
の改行のために、PP読出しポインタをインクリメント
し、次いでステップS49で改行フラグをリセットす
る。 一方、前記ステップS39において、ストップキ
ーがオンにされたと判断すると、ステップS40に進ん
で、改行フラグをリセットし、ステップS42に進む。
ステップS42では、前記DP信号の割込みを禁止し、
ステップS43にて、ヘッド移動モータの動作を停止す
る。ステップS44では、前記PP、EX読出しポイン
タを初期化し、ステップS45に進み、前記紙送りモー
タ42を逆回転させて、伝票を手前に戻す動作が実行さ
れる。以上の動作により、印字台7から挿入された伝票
に印字が行われることになる。 次に、図27を参照し
て、前記DP信号の割込み動作を説明する。ステップS
51では、DPカウンタはインクリメントされる。ステ
ップS52では、DPカウンタ値≦400が成立するか
否かの判断が行われる。ステップS52の判断が肯定の
場合には、ステップS57に進んで、前記EX読み出し
ポインタとEX格納ポインタが等しいか否かの判断がな
される。この判断が否定の時には、ステップS59に進
んで、EX読出しポインタで指示される9個のドットデ
ータを取り出し、該ドットデータによりソレノイド49
の動作が制御される。ステップS60では、次回のDP
割込みによる印字のために、EX読出しポインタをイン
クリメントする。前記ステップS57が肯定の時には、
ステップS58に進んで、印字終了フラグのセットが行
われる。
When the determination in step S46 is affirmative and a line feed has occurred, the flow advances to step S47 to drive the paper feed motor by the paper feed data designated by the PP read pointer (see FIG. 14). In step S48, the PP read pointer is incremented for the next line feed, and then the line feed flag is reset in step S49. On the other hand, if it is determined in step S39 that the stop key is turned on, the process proceeds to step S40, the line feed flag is reset, and the process proceeds to step S42.
In step S42, the interruption of the DP signal is prohibited,
In step S43, the operation of the head moving motor is stopped. In step S44, the PP and EX read pointers are initialized, and the process proceeds to step S45 in which the paper feed motor 42 is rotated in the reverse direction to return the slip to the front. By the above operation, the slip inserted from the print stand 7 is printed. Next, the interrupt operation of the DP signal will be described with reference to FIG. Step S
At 51, the DP counter is incremented. In step S52, it is determined whether or not the DP counter value ≦ 400 holds. If the determination in step S52 is affirmative, the flow advances to step S57 to determine whether the EX read pointer and the EX storage pointer are equal. When the determination is negative, the process proceeds to step S59, the 9 dot data pointed by the EX read pointer is taken out, and the solenoid 49 is read by the dot data.
Is controlled. In step S60, the next DP
The EX read pointer is incremented for printing by the interrupt. When the step S57 is positive,
In step S58, the print end flag is set.

【0109】一方、前記ステップS52が否定の時に
は、ステップS53に進んで、DPカウンタ値≦578
が成立するか否かの判断がなされ、この判断が肯定の時
には、ステップS54に進んで、DPカウンタ値=40
1か否かの判断がなされる。この判断が肯定の時には、
ステップS56に進んで、改行フラグをセットする動作
が実行される。また、前記ステップS53が否定の時に
は、ステップS55に進んで、DPカウンタ値は1に強
制的にセットされる。
On the other hand, when the result at step S52 is negative, the routine proceeds to step S53, at which DP counter value ≦ 578.
Is determined, and if the determination is affirmative, the process proceeds to step S54 and the DP counter value = 40.
It is judged whether it is 1. When this judgment is positive,
In step S56, the operation of setting the line feed flag is executed. When the result in step S53 is negative, the process proceeds to step S55, and the DP counter value is forcibly set to 1.

【0110】この動作により、伝票用紙の1行に、カー
ドデータが印字されることになる。この実施例では、D
Pカウンタ値が400になるまでは、印字ヘッド25は
印字を行うが、401〜578の間は印字を行うことな
く、Y方向への紙送りだけが行われることになる。そし
て、578になると、DPカウンタ値が1にリセットさ
れ、次の印字が行われることになる。
By this operation, the card data is printed on one line of the slip paper. In this example, D
Until the P counter value reaches 400, the print head 25 prints, but between 401 and 578, no printing is performed, and only the paper is fed in the Y direction. Then, at 578, the DP counter value is reset to 1 and the next printing is performed.

【0111】次に、本発明の構成を、図1の機能ブロッ
ク図を参照して説明する。図において、61はフォーマ
ットカードであり、該フォーマットカード61として
は、伝票プリンタを設置しようとする病院が使用してい
る客用カードのフォーマットパラメータに対応する解読
情報を格納しているものが使用される。該フォーマット
カード61は、カードリーダ62により読み出され、解
読情報読出し手段63により、解読情報が読み出され
る。この解読情報は、解読情報記憶手段64に記憶され
る。この解読情報記憶手段64としては、前記EEPR
OMを用いることができる。
Next, the configuration of the present invention will be described with reference to the functional block diagram of FIG. In the figure, reference numeral 61 is a format card. As the format card 61, one that stores decryption information corresponding to the format parameters of the customer card used by the hospital in which the voucher printer is to be installed is used. It The format card 61 is read by the card reader 62, and the decryption information reading means 63 reads the decryption information. This decryption information is stored in the decryption information storage means 64. As the decryption information storage means 64, the EEPR is used.
OM can be used.

【0112】次に、カード65がカードリーダ62によ
って読み取られると、カード判別手段66がカードの種
類を判別する。客用カードの時には、印字文字列生成手
段67が前記解読情報に従って客用カードデータを読み
だし、データの順番を予め定められた順番に変換して客
用カード内容記憶手段69に格納する。
Next, when the card 65 is read by the card reader 62, the card discriminating means 66 discriminates the type of the card. In the case of a customer card, the print character string generation means 67 reads customer card data according to the decoding information, converts the order of the data into a predetermined order, and stores it in the customer card content storage means 69.

【0113】一方、客用カード以外のカードのときに
は、カードの種類に従って、担当者用カード内容記憶手
段70か、コメントカード内容記憶手段71に記憶され
る。
On the other hand, when the card is not a customer card, it is stored in the person-in-charge card content storage means 70 or the comment card content storage means 71 according to the type of the card.

【0114】その後、前記印字機構に伝票が差し込ま
れ、印字開始手段68により印字が開始されると、前記
客用カード内容記憶手段69、担当者用カード内容記憶
手段70、コメントカード内容記憶手段71および時刻
データ記憶手段72からデータが読み出され、印字制御
手段73により印字される。
After that, when a slip is inserted in the printing mechanism and printing is started by the printing start means 68, the customer card content storage means 69, the person in charge card content storage means 70, and the comment card content storage means 71. Data is read from the time data storage means 72 and printed by the print control means 73.

【0115】以上のように、本発明によれば、客用カー
ドの情報のフォーマットパラメータが複数種類あって
も、そのフォーマットパラメータに対応した解読情報を
伝票プリンタに読み込むことにより、該複数種類の客用
カードに対処することができる。 なお、図1におい
て、点線は解読情報を記憶手段64に読込むラインを示
し、実線は印字に先立って各カードのデータを記憶手段
69〜71に読込むラインを示し、太線は伝票に前記デ
ータを印字する時のラインを示す。
As described above, according to the present invention, even if there are a plurality of types of format parameters of the information of the customer card, the decryption information corresponding to the format parameters is read into the slip printer, so that the plurality of types of customers can be read. Can deal with the card. In FIG. 1, a dotted line shows a line for reading the decoding information into the storage means 64, a solid line shows a line for reading the data of each card into the storage means 69 to 71 before printing, and a thick line shows the data on the slip. Shows the line when printing.

【0116】[0116]

【発明の効果】以上の説明から明らかなように、本発明
によれば、フォーマットカードを伝票プリンタに読み込
み、読込まれた解読情報を用いて客用カードの情報を読
み取るようにしたので、異なるフォーマットパラメータ
の客用カードを使用している病院等のカード使用者に対
して、異なるソフトを格納した伝票プリンタを作成し納
入しなくても、客用カ―ドの情報を読出すことができ
る。
As is apparent from the above description, according to the present invention, the format card is read into the slip printer, and the information on the customer card is read using the read decryption information. It is possible to read the information of the customer card without making and delivering a slip printer storing different software to a card user of a hospital or the like who uses the customer card of the parameter.

【0117】また、このため、伝票プリンタの開発コス
トが安価になり、そのコストを低減することができる。
Therefore, the development cost of the slip printer becomes low, and the cost can be reduced.

【0118】さらに、伝票プリンタのソフトを全て共通
にすることができるので、伝票プリンタのメンテナンス
が簡単になるという効果もある。
Further, since all the software of the slip printer can be made common, there is an effect that the maintenance of the slip printer becomes easy.

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

【図1】 本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】 本発明の一実施例の伝票プリンタの外観斜視
図である。
FIG. 2 is an external perspective view of the slip printer according to the embodiment of the present invention.

【図3】 本実施例の印字機構の構成図である。FIG. 3 is a configuration diagram of a printing mechanism of the present embodiment.

【図4】 本実施例の伝票プリンタのハード構成を示す
ブロック図である。
FIG. 4 is a block diagram showing a hardware configuration of a slip printer of this embodiment.

【図5】 患者カード情報の一例の説明図である。FIG. 5 is an explanatory diagram of an example of patient card information.

【図6】 医師カード情報の一例の説明図である。FIG. 6 is an explanatory diagram of an example of doctor card information.

【図7】 コメントカード情報の一例の説明図である。FIG. 7 is an explanatory diagram of an example of comment card information.

【図8】 客用カードに使用するデータの7単位符号図
である。
FIG. 8 is a 7-unit code diagram of data used for a customer card.

【図9】 標準患者カード情報の記憶位置と容量を示す
図である。
FIG. 9 is a diagram showing storage locations and capacities of standard patient card information.

【図10】 患者カード情報の使用可能文字とその一例
を示す図である。
FIG. 10 is a diagram showing usable characters of patient card information and an example thereof.

【図11】 患者カード情報の印字エリアを示す図であ
る。
FIG. 11 is a diagram showing a print area of patient card information.

【図12】 フォーマットカードの記憶内容と記憶位置
を示す図である。
FIG. 12 is a diagram showing storage contents and storage positions of a format card.

【図13】 ROMマップの一例の説明図である。FIG. 13 is an explanatory diagram of an example of a ROM map.

【図14】 RAMマップの一例の説明図である。FIG. 14 is an explanatory diagram of an example of a RAM map.

【図15】 EEPROMマップの一例の説明図であ
る。
FIG. 15 is an explanatory diagram of an example of an EEPROM map.

【図16】 本実施例により得られる伝票の一例を示す
図である。
FIG. 16 is a diagram showing an example of a slip obtained by this embodiment.

【図17】 本実施例により得られる伝票の他の例を示
す図である。
FIG. 17 is a diagram showing another example of a slip obtained by this embodiment.

【図18】 設定モード処理を選択する動作を示すフロ
ーチャートである。
FIG. 18 is a flowchart showing an operation of selecting a setting mode process.

【図19】 設定モード処理の動作を示すフローチャー
トである。
FIG. 19 is a flowchart showing an operation of setting mode processing.

【図20】 設定モード処理時に表示される画面の説明
図である。
FIG. 20 is an explanatory diagram of a screen displayed during setting mode processing.

【図21】 カードリーダの読込み動作を説明するフロ
ーチャートである。
FIG. 21 is a flowchart illustrating a reading operation of the card reader.

【図22】 通常印字処理モード処理の動作を説明する
フローチャートである。
FIG. 22 is a flowchart illustrating an operation of normal print processing mode processing.

【図23】 図22の続きのフローチャートである。FIG. 23 is a flowchart continued from FIG. 22.

【図24】 図22中の印字文字生成処理の動作を説明
するフローチャートである。
FIG. 24 is a flowchart illustrating an operation of print character generation processing in FIG. 22.

【図25】 印字制御処理の動作を説明するフローチャ
ートである。
FIG. 25 is a flowchart illustrating an operation of print control processing.

【図26】 図25の続きのフローチャートである。FIG. 26 is a continuation of the flowchart of FIG. 25.

【図27】 DP信号による割込み処理の動作を説明す
るフローチャートである。
FIG. 27 is a flowchart illustrating an operation of interrupt processing by a DP signal.

【図28】 従来の伝票の一例を示す図である。FIG. 28 is a diagram showing an example of a conventional slip.

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

61…フォーマットカード、62…カードリーダ、63
…解読情報読出し手段、64…解読情報記憶手段、65
…カード、66…カード判別手段、67…印字文字列生
成手段、69…客用カード内容記憶手段
61 ... Format card, 62 ... Card reader, 63
Decoding information reading means, 64 Decoding information storage means, 65
... card, 66 ... card discrimination means, 67 ... print character string generation means, 69 ... customer card content storage means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 渕上 伸一 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 (72)発明者 山口 俊明 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 (72)発明者 小玉 長大 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shinichi Fuchigami, 1463 Asama-cho, Hachioji-shi, Tokyo Within Jamome Mishin Kogyo Co., Ltd. (72) Inventor Kodama Chodai 1463, Sakuma-cho, Hachioji-shi, Tokyo

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】フォーマットパラメータの異なるカード内
情報を読み出せるようにした伝票プリンタのカードデー
タ読み出し方式であって、 前記各カードのフォーマットパラメータを解読する情報
を記憶するフォーマットカードの読取り手段と、 読取られた該フォーマットカードの解読情報を記憶する
不揮発性の記憶手段と、 前記各カードの読取り時に、
前記記憶手段に記憶されている解読情報に基づいて、該
カードのフォーマットパラメータを解読する手段と、 解読されたカード内情報を記憶する揮発性の記憶手段と
を具備したことを特徴とする伝票プリンタのカードデー
タ読み出し方式。
1. A card data reading method for a slip printer, which is capable of reading in-card information having different format parameters, comprising: format card reading means for storing information for decoding the format parameters of each card; Non-volatile storage means for storing the decrypted information of the format card, and when reading each card,
A slip printer comprising means for decoding the format parameter of the card based on the decoding information stored in the storage means, and volatile storage means for storing the decoded in-card information. Card data read method.
【請求項2】前記各カードが客用カードであり、前記フ
ォーマットパラメータが、カード内情報の記憶位置、容
量および漢字INコマンド、漢字OUTコマンドの少な
くとも一つを含むことを特徴とする請求項1記載の伝票
プリンタのカードデータ読み出し方式。
2. Each of the cards is a customer card, and the format parameter includes at least one of a storage location of information in the card, a capacity, a Chinese character IN command, and a Chinese character OUT command. Card data reading method of the described slip printer.
JP4025984A 1992-01-17 1992-01-17 Slip printer Expired - Lifetime JP2915674B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4025984A JP2915674B2 (en) 1992-01-17 1992-01-17 Slip printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4025984A JP2915674B2 (en) 1992-01-17 1992-01-17 Slip printer

Publications (2)

Publication Number Publication Date
JPH05193197A true JPH05193197A (en) 1993-08-03
JP2915674B2 JP2915674B2 (en) 1999-07-05

Family

ID=12180984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4025984A Expired - Lifetime JP2915674B2 (en) 1992-01-17 1992-01-17 Slip printer

Country Status (1)

Country Link
JP (1) JP2915674B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01192575A (en) * 1988-01-27 1989-08-02 Hattori Seiko Co Ltd Label printing system and label printer
JPH01208170A (en) * 1988-02-16 1989-08-22 Nec Corp Printing format storing system of printer
JPH01275153A (en) * 1988-04-28 1989-11-02 Tokyo Electric Co Ltd Ticket printer
JPH0217359U (en) * 1988-07-18 1990-02-05
JPH02295773A (en) * 1989-05-11 1990-12-06 Omron Corp Automatic trade processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01192575A (en) * 1988-01-27 1989-08-02 Hattori Seiko Co Ltd Label printing system and label printer
JPH01208170A (en) * 1988-02-16 1989-08-22 Nec Corp Printing format storing system of printer
JPH01275153A (en) * 1988-04-28 1989-11-02 Tokyo Electric Co Ltd Ticket printer
JPH0217359U (en) * 1988-07-18 1990-02-05
JPH02295773A (en) * 1989-05-11 1990-12-06 Omron Corp Automatic trade processor

Also Published As

Publication number Publication date
JP2915674B2 (en) 1999-07-05

Similar Documents

Publication Publication Date Title
JP2915674B2 (en) Slip printer
JPH079702A (en) Method of reading card data of slip printer
JP2751129B2 (en) Slip printer
JP2969019B2 (en) Slip printer for card data entry
JP2791988B2 (en) Hospital slip printer capable of printing patient age
JPH06143754A (en) Slip printer with bar code printing function
JPH079727A (en) Printer of slip having free layout
JPH05193190A (en) Slip printer having slip parameter setting function
JP2839118B2 (en) Printing device for slip printer
JPH05193224A (en) Screen control system in slip printer
JPH06143750A (en) Printing system in slip printer
JP2791987B2 (en) Slip printer with date printing function
JP2578721B2 (en) Return slip issuing device
JPH05193210A (en) Printing device in slip printer
JPH0511351B2 (en)
JPH106602A (en) Application issuing apparatus
JP2667085B2 (en) Label printing device
JP3847906B2 (en) Commuter ticket issuing device
JP2764789B2 (en) Page printing device
JPS62128362A (en) Transfer-card issuing machine
JP2779157B2 (en) Document information processing device
JPH06143753A (en) Slip printer
JP2667083B2 (en) Label printing device
JPH04270456A (en) Word processor
JP3801258B2 (en) Certificate issuing machine

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990315

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080416

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 13