JPH079702A - Method of reading card data of slip printer - Google Patents

Method of reading card data of slip printer

Info

Publication number
JPH079702A
JPH079702A JP17588593A JP17588593A JPH079702A JP H079702 A JPH079702 A JP H079702A JP 17588593 A JP17588593 A JP 17588593A JP 17588593 A JP17588593 A JP 17588593A JP H079702 A JPH079702 A JP H079702A
Authority
JP
Japan
Prior art keywords
card
data
slip
information
read
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
JP17588593A
Other languages
Japanese (ja)
Inventor
Michio Hisatake
通夫 久武
Shinichi Fuchigami
伸一 渕上
Toshiaki Yamaguchi
俊明 山口
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 JP17588593A priority Critical patent/JPH079702A/en
Publication of JPH079702A publication Critical patent/JPH079702A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To provide a reading method of a slip printer capable of reading a plurality of card data for a customer having different format parameters by good operability. CONSTITUTION:Information of interpreting a plurality of card data for a customer is stored in a format card 61. When the card 61 is read by means of a card reader 62, an interpretation information reading means 63 reads the interpretation information and an interpretation information storing position designation means 74 stores it into an interpretation information memory means A64 or B75. When a card 65 is read by means of the card reader 62, a card judgment means 66 judges whether the card is a customer card or not. When the card is the customer card, a discrimination information is additionally checked and a print character chain forming means 67 forms a print character chain for the customer card data based on the corresponding interpretation information. The formed data is stored in a customer card data memory means 69 and supplied for printing on a slip.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は複数種類の客用カード
の伝票プリンタ用のカードデータ読出し方式に関する。
一般に、客用カードに記憶されている客用コード、片仮
名表現および漢字表現の客の氏名等の情報の、カード内
での記憶位置、容量および漢字INコマンド、漢字OU
Tコマンド(以下、フォーマットパラメータと略す)が
病院や学校等(利用者)によって異なっているが、この
発明は、これらのフォーマットの異なっている各カード
を自動的に判別し、該各カード情報を読出すことができ
る伝票プリンタ用のカードデータ読出し方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card data reading system for a slip printer for a plurality of types of customer cards.
In general, information such as customer code, katakana expression and kanji expression of a customer's name stored in the customer's card is stored in the card, capacity and kanji IN command, kanji OU.
The T command (hereinafter abbreviated as format parameter) differs depending on the hospital, school, etc. (user), but the present invention automatically distinguishes each card with a different format and stores the card information. The present invention relates to a card data read system for a slip printer that can read the data.

【0002】[0002]

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

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

【0004】これを解決するために、同一出願人による
「伝票プリンタのカードデータ読出し方式」(特願平4
−25984号)では、伝票プリンタが設置される病院
等の施設において、各施設で使用される客用カードのフ
ォーマットパラメータに違いがあっても、伝票プリンタ
の設置時に、前記フォーマットカードの解読情報を該伝
票プリンタに読み込むことにより、該伝票プリンタをそ
の施設で使用しているカードに適合させるようにしてい
る。
In order to solve this problem, a "card data reading method for a slip printer" by the same applicant (Japanese Patent Application No. 4)
No. 25984), even if there is a difference in the format parameter of the customer card used in each facility at the facility such as a hospital where the slip printer is installed, the decryption information of the format card can be read when the slip printer is installed. By reading in the slip printer, the slip printer is adapted to the card used in the facility.

【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 varies depending on the facility such as a hospital or school because of the software of the host computer.

【0006】また、例えば病院の中だけでも前記患者カ
ードには、漢字患者名のある新タイプの患者カード、漢
字患者名のない旧タイプの患者カード等のフォーマット
パラメータが異なったものになっている。
Also, for example, even in a hospital only, the patient card has different format parameters such as a new type patient card with a kanji patient name and an old type patient card without a kanji patient name. .

【0007】このため、従来は、伝票プリンタが設置さ
れる病院において、各病院毎に、伝票プリンタの患者カ
ードデータの読出しプログラムを変更し、これを伝票プ
リンタの内部ROMに格納することにより、これに対処
し、各施設で使用される新旧両タイプの患者カードのフ
ォーマットパラメータに違いがあっても、伝票プリンタ
の設置時に、前記フォーマットカードの解読情報をカー
ドリーダを介して該伝票プリンタに読込むことにより、
該伝票プリンタをその施設で使用している前記新旧両タ
イプの患者カードに適合させていた。
Therefore, conventionally, in a hospital in which a slip printer is installed, the reading program for patient card data of the slip printer is changed for each hospital and stored in the internal ROM of the slip printer. Even if there is a difference in the format parameters of both old and new patient cards used at each facility, the decryption information of the format card is read into the slip printer via the card reader when the slip printer is installed. By
The slip printer was adapted to both the old and new types of patient cards used at the facility.

【0008】しかしながら、従来の装置では、新タイプ
の患者カードを印字した後、旧タイプの患者カードを印
字しようとする場合、該旧タイプの患者カード用のフォ
ーマットカードを、一旦、カードリーダに通さなければ
ならないという問題があった。
However, in the conventional apparatus, when the old type patient card is to be printed after the new type patient card is printed, the format card for the old type patient card is first passed through the card reader. There was a problem that had to be.

【0009】この発明の目的は、前記した従来装置の問
題点を除去し、複数のタイプの客用カードデータを操作
性良く読み出すことのできる伝票プリンタのカードデー
タ読出し方式を提供することにある。
An object of the present invention is to eliminate the above-mentioned problems of the conventional apparatus and to provide a card data reading system of a slip printer which can read a plurality of types of customer card data with good operability.

【0010】[0010]

【課題を解決するための手段】前記目的を達成するため
に、本発明は、客用カードの内容を解読するための情報
を記憶しているフォーマットカードの読取り手段と、読
取られた解読情報を記憶する不揮発性の記憶手段と、前
記フォーマットカードの内容が読出される度に、その解
読情報を格納する前記記憶手段の記憶位置を指定するた
めの解読情報記憶位置指定手段と、複数の客用カードの
違いを識別する手段と、該識別手段により識別された客
用カ―ドの解読情報に基づいて、客用カードの内容を読
出す印字文字列生成手段とを具備した点に特徴がある。
In order to achieve the above-mentioned object, the present invention provides a format card reading means storing information for decoding the contents of a customer card and a read decoding information. Non-volatile storage means for storing, decryption information storage location designating means for designating a storage location of the storage means for storing decryption information each time the contents of the format card are read, and a plurality of customers It is characterized in that it is provided with means for identifying the difference between the cards and print character string generation means for reading the contents of the customer card based on the decryption information of the customer card identified by the identification means. .

【0011】[0011]

【作用】本発明によれば、伝票プリンタが設置される病
院等の施設において、該施設で使用される各客用カード
に対応したフォーマットカードの内容(解読情報)を前
記読取り手段で読み取って、前記記憶手段に記憶する。
記憶された解読情報に基づいて、各客用カードを自動的
に判別することにより、該各客用カードの各々のフォー
マットパラメータに適合させることができる。したがっ
て、前記各客用カードが挿入される前に、該各客用カー
ドに対応したフォーマットカードをカードリーダに通す
必要がなくなり、従来の装置より操作性が向上する。
According to the present invention, in a facility such as a hospital in which a slip printer is installed, the contents (decoding information) of the format card corresponding to each customer card used in the facility are read by the reading means, It is stored in the storage means.
By automatically identifying each customer card based on the stored decryption information, it is possible to adapt to each format parameter of each customer card. Therefore, it is not necessary to pass the format card corresponding to each customer card through the card reader before each customer card is inserted, and the operability is improved as compared with the conventional device.

【0012】[0012]

【実施例】以下に、図面を参照して、本発明を詳細に説
明する。図2は本発明の伝票プリンタの一実施例の外観
斜視図を示す。なお、以下では、病院で使用する伝票プ
リンタを例にして説明するが、本発明はこれに限定され
るものではない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 2 is an external perspective view of an 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 the input data or a message to the user is provided on the upper part 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 laterally positioning the slip.

【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 which moves in the X direction and prints on the inserted slip paper by 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. The 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, 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 paper is further inserted so as to be inserted between 24, the slip paper is sent to the inner side (Y direction in the drawing) by the rotation of the first roller 23. After the slip sheet passes under the print head 25, the leading edge of the slip sheet is detected by the second sheet detection sensor 28, and the print head 25 and the slip sheet 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, as shown in FIG. 16, the first non-printed portion of the slip,
Normally, the title of the slip is printed in advance. The description of FIG. 16 will be given later.

【0021】以上のようにして、1行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のブロック図を参照して説明する。図4にお
いて、31はCPU、32は本伝票プリンタの制御プロ
グラムや制御データが格納されたROM、33はカード
から読込まれたデータ等を電源がオフされるまで保持し
たり、データ編集等のワークエリアを提供するRAMで
ある。また、34は書込みが可能なEEPROMであ
る。このEEPROM34には、各種のパラメータが格
納され、このパラメータは電源オフ後も記憶保持され
る。
Next, the hardware configuration of the slip printer of this embodiment will be described with reference to the block diagram of FIG. 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 work such as holding data read from a card until the power is turned off and data editing. A RAM that provides an area. Further, 34 is a writable EEPROM. Various parameters are stored in the EEPROM 34, and these parameters are stored and held even after the power is turned off.

【0023】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. A card reader 36 reads 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.

【0024】また、38は第1の入出力装置(I/O)
であり、該第1の入出力装置38には、前記キー11
と、第1、第2の紙検出センサ27、28が接続されて
いる。39は第2の入出力装置(I/O)であり、これ
には、前記液晶表示装置12とブザー40が接続されて
いる。
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. A second input / output device (I / O) 39 is connected to the liquid crystal display device 12 and the buzzer 40.

【0025】さらに、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はデータバスラインである。なお、前記ヘッド
移動モータ45、ホームポジションセンサ46、ドット
パルスセンサ47およびソレノイド49はプリンタユニ
ットを構成している。
Further, 41 is a third input / output device (I / 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. The head moving motor 45, home position sensor 46, dot pulse sensor 47, and solenoid 49 constitute a printer unit.

【0026】次に、前記カードリーダ36によって読込
まれる患者カード、医師カードおよびコメントカードの
構成の概要を、図5a,図5b、図6および図7を参照
して説明する。新タイプの患者カードは、図5aに示さ
れているように、患者コード、氏名(片仮名)、氏名
(漢字)、生年月日、性別およびパリティチェックの情
報を有している。患者カ―ドであることの判別は、E情
報FTパラメ―タの先頭2文字で規定される位置で始ま
る2ケのカ―ドデ―タと漢字INコマンドとを照合して
行う。
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. 5a, 5b, 6 and 7. The new type of patient card has information of patient code, name (Katakana), name (Kanji), date of birth, gender and parity check, as shown in FIG. 5a. The determination as a patient card is made by comparing the two card data starting at the position defined by the first two characters of the E information FT parameter with the Kanji IN command.

【0027】なお、図5bに示されているように、旧タ
イプの患者カードには氏名(漢字)がなく、スペース
(SP)データが書かれている。この場合、カードの識
別するための識別情報である漢字INコマンドは(S
P)(SP)とされている。また、医師カードは、図6
に示されているように、カード判別情報(DR)、氏名
(片仮名)、医師コード、氏名(漢字)、所属およびパ
リティチェックの情報を有している。さらに、コメント
カードは、図7(a)に示されているように、カード判
別情報(CT)、第1行コメント情報、第2行コメント
情報、第3行コメント情報、およびパリティチェックの
情報から構成されている。図7(b)は、前記第1〜3
行コメント情報の一具体例を示す。
As shown in FIG. 5b, the old type patient card does not have a name (kanji) but has space (SP) data. In this case, the Kanji IN command that is the identification information for identifying the card is (S
P) (SP). Also, the doctor card is
As shown in, the card identification information (DR), name (Katakana), doctor code, name (Kanji), affiliation and parity check information are included. Further, as shown in FIG. 7A, the comment card is composed of card discrimination information (CT), first line comment information, second line comment information, third line comment information, and parity check information. It is configured. FIG.7 (b) shows the said 1st-3rd.
A specific example of line comment information is shown.

【0028】次に、前記各カード内に記憶されているデ
ータについて、詳細に説明する。以下では、患者カ―ド
を例にして説明するが、他のカ―ドにおいても同様であ
る。
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.

【0029】図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
Data (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.

【0030】半角サイズのアルファベット・数字・仮名
(以下、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, and the Kanji JIS code number is 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 decided that it is a katakana character, and if there is a (SI) function character, it is an alphanumeric character.

【0031】次に、図9を参照して、標準患者カードの
情報の記憶位置と容量について説明する。図から明らか
なように、患者カード情報の記憶位置は、開始符号、患
者コード、氏名(片仮名)、生年月日、性別、氏名(漢
字)、予備、終了符号およびパリティチェックの順に構
成されている。また、前記各情報には、記憶容量とし
て、図示されているキャラクタ数が割当てられている。
また片仮名INコマンドには(SO)が使用され、片仮
名OUTコマンドには(SI)が使用されている。さら
に、漢字INコマンドには(ESC)(SO)が使用さ
れ、漢字OUTコマンドには(ESC)(SI)が使用
されている。
Next, referring to FIG. 9, the storage position and capacity of the information of the standard patient card will be described. As is clear from the figure, the storage location of patient card information is configured in the order of start code, patient code, name (Katakana), date of birth, gender, name (Kanji), spare, end code, and parity check. . 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 (SI) is used for the Katakana OUT command. Furthermore, (ESC) (SO) is used for the Chinese character IN command, and (ESC) (SI) is used for the Chinese character OUT command.

【0032】しかしながら、前記した患者カード情報の
記憶位置、容量、コマンド等は標準の例であり、病院に
よっては、患者カードをホストコンピュータ側でも使用
するため、これと異なるフォーマットパラメータを採用
しているところがある。例えば、患者コードのキャラク
タ数が8桁であったり、患者コード情報の記憶位置が漢
字INコマンドの前であったり、漢字IN/OUTコマ
ンドが(ESC)K/(ESC)Hであったりして、病
院によりまちまちである。そして、すでに病院に採用さ
れている患者カード(エンボスがされていて、しかも磁
気データも記憶されている)の場合ホストコンピュータ
に対する患者データの呼出に使用されているため、漢字
患者名データは記憶していない。したがって、1つの病
院においても2種類のフォーマットが必要である。
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 that 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. In the case of a patient card that has already been adopted in a hospital (embossed and magnetic data is also stored), the kanji patient name data is not stored because it is used to call the patient data to the host computer. Not not. Therefore, even one hospital needs two types of formats.

【0033】次に、図10は患者カード情報の使用可能
文字と、患者カード情報例を示し、図11はその表示例
を示す。図12は、前記のように、患者カードのフォー
マットパラメータが異なっていても、これを読出すこと
ができるフォーマットカードの解読情報記憶位置と記憶
内容とを示す図である。図示されているように、フォー
マットカードの解読情報記憶位置は、開始符号、カード
判別情報、A〜E情報フォーマット(FT)パラメー
タ、漢字INコマンド、漢字OUTコマンド、終了符
号、パリティチェックの順になっている。前記A〜E情
報は、図10の「区分」、「情報」と対応しており、そ
れぞれ、患者コード、氏名(片仮名)、生年月日、性別
および氏名(漢字)を示している。
Next, FIG. 10 shows usable characters of the patient card information and the patient card information example, and FIG. 11 shows the display example. FIG. 12 is a diagram showing decryption information storage positions and storage contents of a format card that can read the patient card even if the patient card has different format parameters as described above. As shown in the figure, the decoding information storage position of the format card is in the order of start code, card identification information, AE information format (FT) parameter, Kanji IN command, Kanji OUT command, end code, and parity check. There is. The A to E information correspond to the “category” and the “information” in FIG. 10, and show the patient code, name (Katakana), date of birth, gender and name (Kanji), respectively.

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

【0035】図9で示した標準フォーマットの患者カー
ドの場合、図12のフォーマットカードの解読情報の記
憶内容は、下記の通りとなる。 (DEL)FT0112 1322 3507 4201 4324(ESC)(SO)(ESC)(SI)
(DEL)(LRC) ここに、前記「0112」は、A情報である患者コードが、
先頭キャラクタアドレス「01」の所に、キャラクタ数
「12」で格納されていることを示している。また、前
記「1322」は、B情報である氏名(片仮名)が、先頭キ
ャラクタアドレス「13」の所に、キャラクタ数「2
2」で格納されていることを示している。以下、前記
「3507」、「4201」、……は、前記と同様の内容を示し
ている。
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. (DEL) FT0112 1322 3507 4201 4324 (ESC) (SO) (ESC) (SI)
(DEL) (LRC) where "0112" is the patient code that is A information,
It is indicated that the number of characters is stored at “12” at the beginning character address “01”. 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.

【0036】また、前記(ESC)(SO) は、漢字INコマン
ドとして(ESC)(SO) を用い、漢字OUTコマンドとして
(ESC)(SI) を用いていることを示している。上記の例に
おいて、例えば患者コードのキャラクタ数が8桁であ
り、他のフォーマットパラメータは前記標準フォーマッ
トと同一であった場合には、図12のフォーマットカー
ドの解読情報の記憶内容は、下記の通りとなる。 (DEL)FT0108 0922 3107 3801 3924(ESC)(SO)(ESC)(SI)
(DEL)(LRC) また、例えば患者コード情報の記憶位置が漢字INコマ
ンドの前にある点のみで、前記標準フォーマットと異な
る場合には、図12のフォーマットカードの解読情報の
記憶内容は、下記の通りとなる。 (DEL)FT5512 0122 2307 3001 3124(ESC)(SO)(ESC)(SI)
(DEL)(LRC) また、漢字IN/OUTコマンドが(ESC)K/(E
SC)Hである点のみで、前記標準フォーマットと異な
る場合には、図12のフォーマットカードの解読情報の
記憶内容は、下記の通りとなる。
The above (ESC) (SO) uses (ESC) (SO) as a Kanji IN command and uses as a Kanji OUT command.
(ESC) (SI) is used. In the above example, for example, when the number of characters of the patient code is 8 digits and the other format parameters are the same as the standard format, the stored contents of the decoding information of the format card of FIG. 12 are as follows. Becomes (DEL) FT0108 0922 3107 3801 3924 (ESC) (SO) (ESC) (SI)
(DEL) (LRC) In addition, for example, when the storage position of the patient code information is different from the standard format only in the point before the Chinese character IN command, the stored contents of the decoding information of the format card of FIG. It becomes the street. (DEL) FT5512 0122 2307 3001 3124 (ESC) (SO) (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 decoding information of the format card of FIG. 12 are as follows.

【0037】(DEL)FT0112 1322 3507 4201 4324(ESC)
(K)(ESC)(H)(DEL)(LRC) 次に、図13を参照して、前記ROM32に格納されて
いるデータ,すなわちROMマップについて説明する。
該ROM32の中には、図示されているように、アルフ
ァベット、数字、片仮名(ANK)の文字フォントデー
タ、伝票パラメータのデフォルト値、設定モードプログ
ラム、メンテナンスデータ表示モードプログラム、テス
ト印字モードプログラム、診断モードプログラム、通常
印字モードプログラム等が格納されている。また、前記
RAM33には、図14に示されているような、記憶領
域が設定されている。
(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. A storage area as shown in FIG. 14 is set in the RAM 33.

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

【0039】次の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.

【0040】次に、時刻データが設けられている。この
時刻データは、時計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.

【0041】次に、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 a pointer that designates the storage positions of the 9 dot data that output the character string data to the 9-pin head. The EX read pointer is a pointer for designating a read position when outputting a set of dot data to the print head.

【0042】次に、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
This is a pointer for designating 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. Paper feed data, when creating dot data from card data, etc.
This is data indicating the amount of line breaks to be created. 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.

【0043】次に、解読情報は、前記フォーマットカー
ドから読込まれた解読情報(図12参照)を格納する領
域であり、2ケ所に解読情報記憶領域A,Bがある。
Next, the decryption information is an area for storing the decryption information (see FIG. 12) read from the format card, and there are decryption information storage areas A and B at two places.

【0044】図15は、本発明により設定される前記E
EPROM34の内容、すなわちEEPROMマップを
示すものである。ニューチップは、EEPROMにまだ
データが書込まれていないかどうかを判別するためのデ
ータである。まだデータが書込まれていない時には、E
EPROMメーカはそのことを示すデータ、たとえば5
5H、AAH等を書込んでいるので、このデータを検出
したら新しいまだデータが書込まれていないEEPRO
Mと判断することができる。なお、本実施例では、EE
PROMにデータを書込んだ後は、該ニューチップにデ
ータ0を書込むようにしている。
FIG. 15 shows the above 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 manufacturer has data indicating that, for example, 5
Since 5H, AAH, etc. are written, if this data is detected, new data is not 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.

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

【0046】トップマージン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.

【0047】シックネス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
The timer value Ts for controlling the energization time of the solenoid of the print head is stored in.

【0048】アレンジメント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, the one shown in FIG. 16 and the one 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.

【0049】両者を見比べれば明らかなように、トップ
マージンが互いに異なり、図16の場合には印字が順番
通りに行われる通常配列であるのに対して、図17の伝
票の場合には、印字が逆順に行われることになる。すな
わち、印字データを全て逆順に配列し直して、伝票を下
端からプリンタに挿入して印字する反転配列が必要にな
る。本実施例では、前記通常配列と反転配列を表す略語
として、前者は「ウエ」と表され、後者は「シタ」と表
される。
As is clear 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, insert the slip from the lower end into the printer, and print it. In this embodiment, the abbreviations representing the normal array and the inverted array are represented by the former as “W” and the latter as “Sita”.

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

【0051】さらに、該EEPROM34には、前記フ
ォーマットカードから読出された解読情報A,Bが記憶
される。なお、新規に磁気カードを導入した病院の場合
は、当然ながら1種類のフォーマットカードを新たに作
成し、該フォーマットカードをカードリーダ36に2回
通し、前記解読情報A,Bを、それぞれRAM33の解
読情報記憶領域A,Bに記憶される。
Further, the EEPROM 34 stores the decryption information A and B read from the format card. In the case of a hospital that newly introduces a magnetic card, naturally, one type of format card is newly created, the format card is passed through the card reader 36 twice, and the decryption information A and B are stored in the RAM 33, respectively. It is stored in the decryption information storage areas A and B.

【0052】次に、前記EEPROM34に、前記解読
情報を登録する手順を、図18、図19を参照して説明
する。図18は各種のモードを設定する仕方を示すフロ
ーチャートであり、図19は設定モードに入った後に、
EEPROM34に前記フォーマットパラメータを登録
する手順を示すフローチャートである。
Next, a procedure for registering the decryption information in the EEPROM 34 will be described with reference to FIGS. 18 and 19. FIG. 18 is a flowchart showing how to set various modes, and FIG.
7 is a flowchart showing a procedure for registering the format parameter in the EEPROM 34.

【0053】図18のステップS71では、前記EEP
ROM34がニューチップでないか否かの判断がなされ
る。この判断が否定の時、すなわちニューチップの時に
は、ステップS72に進んで、前記ROM32に格納さ
れている伝票パラメータデフォルト値(設計値)を、E
EPROM34のスリップ1〜5に書込む動作が行われ
る。続いて、ステップS73に進んで、EEPROM3
4のニューチップのエリアに、ニューチップでないこと
を示すデータである“0”が書込まれる。
In step S71 of FIG. 18, the EEP is executed.
A determination is made whether ROM 34 is a new chip. If this determination is negative, that is, if it is a new chip, the process proceeds to step S72, where 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
In the area of 4 new chips, “0”, which is data indicating that it is not a new chip, is written.

【0054】前記ステップS71の判断が肯定の時、あ
るいはステップS73の処理が終了すると、ステップS
74に進む。ステップS74では、前記スリップ1〜5
の値を、EEPROM34から読出して、前記RAM3
3に書込む動作が行われる。
When the determination at step S71 is affirmative or when the processing at 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 3
The operation of writing to 3 is performed.

【0055】次いでステップS75に進み、ストップキ
ーと伝票キーとが同時にオンされているか否かの判断が
行われる。この判断が肯定の場合には、ステップS76
に進んで、設定モード処理が設定される。
Next, in step S75, it is determined whether or not the stop key and the slip key are simultaneously turned on. If this determination is positive, step S76
Then, the setting mode process is set.

【0056】ステップ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 process proceeds to step S78, and the maintenance data display mode process is set.

【0057】同様に、ストップキーと医師キーが同時に
押されている場合には、テスト印字モード処理が設定さ
れ、医師キーとコメントキーとが同時に押されている時
には、診断モード処理が設定される。前記2つのキーが
同時に押されていない時には、ステップS83に進ん
で、通常印字モード処理が設定される。前記ステップS
76の設定モード処理が設定されると、図19のステッ
プS761に示されているように、伝票設定メニューが
表示される。
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. Step S
When the setting mode process of 76 is set, the slip setting menu is displayed as shown in step S761 of FIG.

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

【0059】EEPROM34に前記フォーマットパラ
メータを設定する場合には、ステップS762におい
て、メニューキーが押される。これにより、ステップS
763に進み、前記伝票設定メニューは他の設定メニュ
ーに更新される。他の設定メニューとしては、例えば伝
票設定、LCD濃度設定、伝票設定、IDカードフォー
マット設定、アイドル画面設定等がある。
When setting the format parameters in the EEPROM 34, the menu key is pressed in step S762. By this, step S
Proceeding to 763, the slip 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.

【0060】ステップS764では、患者カードフォー
マット設定メニューが画面に表示されているか否かの判
断が行われ、この判断が肯定の場合には、ステップS7
66に進んで登録キーがオンにされる。一方、否定の時
には、ステップS765に進んで、メニューキーがオン
にされる。そうすると、ステップS763で他の設定メ
ニュー画面が表示される。図20(a)に、前記患者カ
ードフォーマット設定メニュー画面の一例を示す。
In step S764, it is determined whether 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, when the determination is 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. 20A shows an example of the patient card format setting menu screen.

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

【0062】ステップS769では、取込まれたカード
データがフォーマットカードデータか否かの判断が行わ
れ、この判断が否定の場合には、ステップS770に進
んでエラー画面の表示が行われる。その表示の一例を、
図20(c) に示す。そこで、ステップS771に進み、
メニューキーがオンされると、ステップS767に戻
り、フォーマットカード要求画面が表示される。
In step S769, it is determined whether the taken card data is format card data. If the determination is negative, the process proceeds to step S770 and an error screen is displayed. 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.

【0063】ステップS773では、解読情報を交互に
前記解読情報記憶領域A,Bに記憶させるため、解読情
報記憶位置指定フラグを反転する。ステップS774で
“1”ならば、前記フォーマットカードデータである解
読情報を、EEPROMの解読情報記憶領域Aに格納す
る処理が行われる。ステップS774で“0”ならば、
前記フォーマットカードデータである解読情報を、EE
PROMの解読情報記憶領域Bに格納する処理が行われ
る。
In step S773, the decryption information storage position designation flag is inverted so that the decryption information is alternately stored in the decryption information storage areas A and B. If "1" in step S774, a process of storing the decryption information which is the format card data in the decryption information storage area A of the EEPROM is performed. If "0" in step S774,
The decryption information that is the format card data is EE
A process of storing in the decryption information storage area B of the PROM is performed.

【0064】以上の操作を伝票プリンタの設置時にする
ことにより、該伝票プリンタに、病院がすでに採用して
いる患者カードのフォーマットパラメータを読出す機能
を付与することができる。換言すれば、伝票プリンタを
多数の病院に納入する時、納入先の病院がすでに採用し
ている患者カードを何ら変更することなく、単にその病
院用のフォーマットカードを用いて、解読情報を前記の
ようにして設定するだけで、該病院に使用することがで
きるようになる。また、すでに磁気カードを採用してい
る病院においても新旧両タイプの患者カードを後述する
カ―ド判別手段66で自動的に判別し、読出すことがで
きる。
By performing the above operation when the slip printer is installed, the slip printer can be provided with a function of reading out the format parameters of the patient card already adopted by the hospital. In other words, when delivering a slip printer to a large number of hospitals, the decryption information can be obtained by simply using the format card for that hospital without changing the patient card already adopted by the recipient hospital. By just setting in this way, it can be used in the hospital. Further, even in hospitals that have already adopted magnetic cards, both old and new patient cards can be automatically discriminated and read by the card discriminating means 66 which will be described later.

【0065】次に、本実施例の伝票プリンタの使用方法
を説明する。病院等で使用される場合、朝一番の開業時
に、オペレータが該伝票プリンタの電源を立ち上げ、続
いて、当日出勤の医師のカードを前記カードリーダ36
から読込む。そうすると、医師のカードデータは、図1
4のRAM33のDRカードデータ格納領域に格納され
ることになる。次いで、オペレータは予め用意されてい
るコメントカードを前記カードリーダ36から読込む。
これにより、該コメントのカードデータは、図14のR
AM33のCTカードデータ格納領域に格納されること
になる。
Next, a method of using the slip printer of this embodiment will be described. When it is used in a hospital or the like, the operator turns on the power supply 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 is stored in the DR card data storage area of the RAM 33. Next, the operator reads a comment card prepared in advance from the card reader 36.
As a result, the card data of the comment is R in FIG.
It will be stored in the CT card data storage area of AM33.

【0066】以上で前準備が終了し、伝票を患者に発行
する時には、オペレータが患者から患者カードを借用
し、カードリーダ36から読込ませる。読込まれたデー
タは、前記IDカードデータ領域に記憶される。この
時、前の患者のデータは消去され、新たに読込まれた患
者のデータが記憶されることになる。この時、オペレー
タは使用する伝票の種類に応じて、前記伝票パラメータ
を設定する。例えば、一枚綴り、二枚綴りの伝票か等、
あるいは伝票が図16に示した文字配列のものかあるい
は図17に示した文字配列のものか等により、伝票パラ
メータの設定を行う。なお、同じ種類の伝票を印字する
時には、この伝票パラメータの設定を、その都度行う必
要がないことは勿論である。
When the preparation is completed and the slip is issued to the patient, the operator borrows the patient card from the patient and causes the card reader 36 to read it. 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. At this time, the operator sets the slip parameters according to the type of slip to be used. For example, is it a one-sheet or two-sheet form?
Alternatively, the slip parameters are set depending on whether the slip 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.

【0067】次に、オペレータは伝票を印字台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.

【0068】この伝票は、例えば、図示されているよう
に、患者の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 bar code of number, doctor card data such as doctor name in charge, ID number, affiliation, etc., such as "Jikaiha, I'm sorry. Odaijini. Otoiawaseha, TEL ○○-○○○○" It is composed of comment card data, time data, and other data. The contents of the bottom or top of the slips are data input from a nearby terminal when the doctor conducted the examination.

【0069】次に、前記のカードを読込むカードリーダ
36の読込み動作を、図21のフローチャートを参照し
て、詳細に説明する。同図(a)に示されているよう
に、カードデータの読込みはリードクロック信号(RC
L)による割込みで行われる。ステップS1では、カー
ドが前記カード挿入孔4に差込まれたか否かの判断が行
われる。この判断は、カードロード信号がハイかロウか
で判断される。ハイであれば、差込まれていると判断
し、ステップS2に進む。ステップS2では、リードク
ロック信号(RCL)が立下がったか否かの判断をす
る。立下がった時には、ステップS3に進み、割込み処
理をする。割込み処理は、同図(b)に示されているよ
うに、CD格納ポインタ(図14参照)で指示されてい
るカードデータバッファのアドレスに、カードデータの
1ビットが書き込まれる(ステップS301)。続い
て、次のデータの書込みのステップS11では、時計I
C37より時刻データを読出し、RAM33の時刻デー
タを更新する動作を行う。ステップS12では、カード
リーダ36、キーために、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 FIG. 9A, the read of the card data is performed by the read clock signal (RC
It is performed by the interruption by L). 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. In the interrupt process, as shown in FIG. 11B, 1 bit of card data is written in the address of the card data buffer designated by the CD storage pointer (see FIG. 14) (step S301). Then, in step S11 of writing the next data, the clock I
The time data is read from C37 and the time data in the RAM 33 is updated. In step S12, the CD storage pointer is incremented for the card reader 36 and the key (step S302). By the above interrupt processing, the data read by the card reader 36 is temporarily stored in the card data buffer.

【0070】次に、本発明の伝票プリンタを用いて印字
を行う前の動作、すなわち、通常印字モード処理の動作
を、図22、図23のフローチャートを参照して説明す
る。なお、この動作は、伝票プリンタに電源が投入され
ている時で、かつカード非挿入、非印字時に実行される
ものである。
Next, the operation before 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.

【0071】ステップ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.

【0072】ステップ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.

【0073】前記チェックによりカードデータが正しい
と判断された時には、ステップ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 is displayed on 2. Then, it progresses to step S21.

【0074】ステップS16では、予め定められている
カード種類判別データを調べる動作が行われる。この判
別は、各カードに予め登録されているカード判別情報に
より行われる。患者カードの場合は漢字INコマンドに
より行う。ステップS29,S291において、このカ
ードがAタイプ及びBタイプ客用カードではないと判別
されると、図23のステップS17に進む。一方、客用
カードであると判別されると、漢字INコマンドを調べ
て対応した読出し方法でステップS292,S293に
進む。本実施例では漢字INコマンドが(SP)(S
P)であれば、例えばBタイプの客用カードと判断され
る。なお、印字文字列生成処理について、後で図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. In the case of a patient card, use the Kanji IN command. If it is determined in steps S29 and S291 that the card is not the A type or B type 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 Kanji IN command is checked and the process proceeds to steps S292 and S293 by the corresponding reading method. In this embodiment, the Kanji IN command is (SP) (S
If it is P), it is determined to be a B type customer card, for example. The print character string generation process will be described later in detail with reference to FIG.

【0075】ステップS17では、カードデータバッフ
ァの値が、アルファベット・数字・仮名(ANK)又は
漢字の文字列データに変換して、当該カードデータエリ
アに格納される。例えば、医師カードのデータであれ
ば、図14のDRカードデータ格納領域に格納される。
ステップS18では、次のデ―タ書込みのために格納ポ
インタをインクリメントし、ステップS19では読出し
ポインタを格納ポインタより1少い値にする。ステップ
S20では、上記のカードデータが液晶表示装置12に
表示される。
In 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. In step S20, the above card data is displayed on the liquid crystal display device 12.

【0076】以上により、カードデータバッファからカ
ードに対応したカードデータ格納領域へのデータの転送
は終了したので、ステップS21に進んで、前記CD格
納ポインタを初期化する動作が実行される。続いてステ
ップS22に進んで、前記リードクロックRCLによる
割込みが許可され、前記ステップS11に戻る。
Since the data transfer from the card data buffer to the card data storage area corresponding to the card has been completed as described above, 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.

【0077】次に、ステップ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.

【0078】次に、前記ステップS12において、コメ
ントキーがオンにされると、ステップS25に進んで、
CT読出しポインタがインクリメントされる。次に、ス
テップS26に進み、前記CTカードデータが前記CT
カードデータ格納領域から読出され、液晶表示装置12
に表示される。
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 stored in the CT.
The liquid crystal display device 12 is read out from the card data storage area.
Is displayed in.

【0079】次に、ステップS12で前記第1の紙検出
センサ27がオンにされたと判断されると、図25に示
されている印字制御に動作が進む。また、ステップS1
2でその他のキー、例えば伝票キーがオンにされると、
ステップS28に進み、伝票名とそれに対応する伝票パ
ラメータを表示する等の処理が行われる。
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. Also, step S1
When another key, such as the slip key, is turned on in 2,
In step S28, processing such as displaying the slip name and the slip parameters corresponding to the slip name is performed.

【0080】次に、図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.

【0081】次に、ステップ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 of the second line is created by loading from the card data buffer and stored in the patient data area of the RAM.

【0082】次のステップ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.

【0083】ステップ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.

【0084】ステップ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 "M", it is a male; otherwise, it is "female". Assigned to the RA
Store in M patient data area.

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

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

【0087】ステップ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.

【0088】ステップ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. When the home position 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.

【0089】ステップS38では、DP信号の割込みを
許可する。ステップS39では、前記ストップキーが押
されたか否かの判断をし、この判断が否定の時には、ス
テップS41に進んで、印字が終了したか否かの判断を
する。この判断が否定の時には、ステップS46に進ん
で、改行か否かの判断が行われる。改行でない時には、
ステップS39に戻って、印字動作が続行される。
In step S38, the interruption of the DP signal is permitted. In step S39, it is determined whether or not the stop key is pressed. When 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.

【0090】ステップ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, when 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, printing is performed on the slip inserted from the printing table 7. 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. When the determination in step S52 is affirmative, the process proceeds to step S57, and it is determined whether or not the EX read pointer and the EX storage pointer are equal. When this determination is negative, the process proceeds to step S59, the 9 dot data pointed by the EX read pointer is taken out, and the operation of the solenoid 49 is controlled by the dot data. In step S60, the EX read pointer is incremented for printing by the next DP interrupt. When the result at step S57 is affirmative, the process proceeds to step S58, at which the print end flag is set.

【0091】一方、前記ステップS52が否定の時に
は、ステップS53に進んで、DPカウンタ値≦578
が成立するか否かの判断がなされ、この判断が肯定の時
には、ステップS54に進んで、DPカウンタ値=40
1か否かの判断がなされる。この判断が肯定の時には、
ステップS56に進んで、改行フラグをセットする動作
が実行される。また、前記ステップS53が否定の時に
は、ステップS55に進んで、DPカウンタ値は1に強
制的にセットされる。
On the other hand, when step S52 is negative, the routine proceeds to step S53, where 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 or not 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.

【0092】この動作により、伝票用紙の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.

【0093】次に、本発明の構成を、図1の機能ブロッ
ク図を参照して説明する。図において、61はフォーマ
ットカードであり、該フォーマットカード61として
は、伝票プリンタを設置しようとする病院が使用してい
る客用カードのフォーマットパラメータに対応する解読
情報を格納しているものが使用される。該フォーマット
カード61は、カードリーダ62により読出され、解読
情報読出し手段63により、解読情報が読出される。こ
の解読情報は、解読情報記憶位置指定手段74の指定に
より、解読情報記憶手段A64、もしくは解読情報記憶
手段B75に記憶される。該解読情報記憶手段A64お
よび解読情報記憶手段B75は、前記EEPROM34
を用いることができる。
Next, the configuration of the present invention will be described with reference to the functional block diagram of FIG. In the figure, 61 is a format card, and as the format card 61, one that stores decryption information corresponding to the format parameter of the customer card used by the hospital in which the slip printer is 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. The decryption information is stored in the decryption information storage unit A64 or the decryption information storage unit B75 according to the designation of the decryption information storage position designating unit 74. The decryption information storage means A64 and the decryption information storage means B75 are provided in the EEPROM 34.
Can be used.

【0094】次に、カード65がカードリーダ62によ
って読取られると、カード判別手段66がカードの種類
を判別する。客用カードの時には、さらに、その識別情
報(漢字INコマンド)を調べ、印字文字列生成手段6
7に対応した解読情報に従って客用カードデータを読出
し、データの順番を予め定められた順番に変換して客用
カード内容記憶手段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 identification information (Kanji IN command) is further checked, and the print character string generation means 6
The customer card data is read according to the decryption information corresponding to No. 7, and the order of the data is converted into a predetermined order and stored in the customer card content storage unit 69.

【0095】一方、客用カード以外のカードのときに
は、カードの種類に従って、担当者用カード内容記憶手
段70か、コメントカード内容記憶手段71に記憶され
る。その後、前記印字機構に伝票が差し込まれ、印字開
始手段68により印字が開始されると、前記客用カード
内容記憶手段69、担当者用カード内容記憶手段70、
コメントカード内容記憶手段71および時刻データ記憶
手段72からデータが読出され、印字制御手段73によ
り印字される。
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. After that, when a slip is inserted into 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,
Data is read from the comment card content storage means 71 and the time data storage means 72 and printed by the print control means 73.

【0096】以上のように、本発明によれば、客用カー
ドの情報のフォーマットパラメータが2種類あっても、
そのフォーマットパラメータに対応した解読情報を伝票
プリンタに読込むことにより、前述の2種類の客用カー
ドに対処することができる。
As described above, according to the present invention, even if there are two types of format parameters of the information of the customer card,
By reading the decoding information corresponding to the format parameter into the slip printer, it is possible to deal with the above two types of customer cards.

【0097】さらに、同じ病院で、2種類の患者カード
(漢字患者名が記憶されていない旧タイプと記憶されて
いる新タイプ)があっても、該患者カードを自動的に判
別し、読出すことができる。
Furthermore, even if there are two types of patient cards (old type that does not store kanji patient names and new type that is stored) in the same hospital, the patient cards are automatically identified and read. be able to.

【0098】なお、図1において、点線は各フォーマッ
トパラメータに対応した解読情報を解読情報記憶手段A
64、もしくは解読情報記憶手段B75に読込むライン
を示し、実線は印字に先立って各カードのデータを記憶
手段69〜71に読込むラインを示し、太線は伝票に前
記データを印字する時のラインを示す。
In FIG. 1, the dotted line indicates the decryption information corresponding to each format parameter, which is the decryption information storage means A.
64, or a line to be read into the decoding information storage means B75, a solid line is a line to read the data of each card into the storage means 69 to 71 prior to printing, and a thick line is a line for printing the data on the slip. Indicates.

【0099】本実施例は、病院で用いる患者カードにつ
いて説明したが、スイミングスクール等の学校、自動車
教習所等で同様に客用カードとして用いてもよい。
In the present embodiment, the patient card used in the hospital has been described, but it may be used as a customer card in schools such as swimming schools and driving schools.

【0100】また、本実施例は、新旧両タイプの患者カ
ード、すなわちフォーマットパラメータが異なる2種類
の客用カードの印字について説明したが、これに限ら
ず、該フォーマットパラメータが異なる複数種類のタイ
プの客用カードの印字に用いてもよい。
Further, although the present embodiment has described the printing of both old and new types of patient cards, that is, two types of customer cards having different format parameters, the present invention is not limited to this and a plurality of types of card having different format parameters can be used. It may be used for printing customer cards.

【0101】例えば、異なるフォーマットパラメータが
複数存在する時、解読情報記憶手段を該フォーマットパ
ラメータの数に対応させて必要な個数だけ増やしてもよ
い。
For example, when there are a plurality of different format parameters, the number of decryption information storage means may be increased by a necessary number corresponding to the number of the format parameters.

【0102】[0102]

【発明の効果】以上の説明から明らかなように、本発明
によれば、複数のタイプのフォーマットカードを伝票プ
リンタに予め読込み、読込まれたフォーマットカードの
解読情報を用いて客用カードの情報を読取るようにした
ので、複数のタイプの客用カードが挿入される前に、対
応したフォーマットカードをカードリーダに通す必要が
なく、従来の装置より操作性が向上する。
As is apparent from the above description, according to the present invention, a plurality of types of format cards are pre-read in the slip printer, and the information of the customer card is read by using the decoding information of the read format cards. Since the card is read, it is not necessary to pass the corresponding format card through the card reader before the plural types of customer cards are inserted, and the operability is improved as compared with the conventional device.

【図面の簡単な説明】[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 a print character generation process 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…解読情報記憶手段A、6
5…カード、66…カード判別手段、67…印字文字列
生成手段、69…客用カード内容記憶手段、74…解読
情報記憶位置指定手段、75…解読情報記憶手段B
61 ... Format card, 62 ... Card reader, 63
Decoding information reading means, 64 Decoding information storage means A, 6
5 ... Card, 66 ... Card discriminating means, 67 ... Print character string generating means, 69 ... Customer card content storing means, 74 ... Decoding information storing position designating means, 75 ... Decoding information storing means B

───────────────────────────────────────────────────── フロントページの続き (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. Within

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】フォーマットパラメータの異なるカード内
情報を読み出せるようにし、複数種類の客用カードを自
動的に判別する伝票プリンタのカードデータ読出し方式
であって、 前記客用カードの内容を解読するための情報を記憶して
いるフォーマットカードの読取り手段と、 読取られたフォーマットカードの解読情報を記憶する不
揮発性の記憶手段と、 前記フォーマットカードの内容が読出される度に、その
解読情報を格納する前記記憶手段の記憶位置を指定する
ための解読情報記憶位置指定手段と、 複数種類の客用カードの違いを識別する手段と、該識別
手段により識別された客用カ―ドの解読情報に基づい
て、客用カードの内容を読出す印字文字列生成手段とを
具備したことを特徴とする伝票プリンタのカードデータ
読出し方式。
1. A card data reading method of a slip printer for automatically distinguishing a plurality of types of customer cards by making it possible to read in-card information having different format parameters, and decoding the contents of the customer card. Format card reading means for storing information for storing the read format card, non-volatile storage means for storing decoding information of the read format card, and storing the decoding information each time the content of the format card is read. Decoding information storage position designating means for designating the storage location of the storage means, means for identifying the difference between a plurality of types of customer cards, and decryption information of the customer card identified by the identifying means. A card data reading method for a slip printer, comprising: a printing character string generating means for reading the contents of a customer card based on the above.
JP17588593A 1993-06-24 1993-06-24 Method of reading card data of slip printer Pending JPH079702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17588593A JPH079702A (en) 1993-06-24 1993-06-24 Method of reading card data of slip printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17588593A JPH079702A (en) 1993-06-24 1993-06-24 Method of reading card data of slip printer

Publications (1)

Publication Number Publication Date
JPH079702A true JPH079702A (en) 1995-01-13

Family

ID=16003924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17588593A Pending JPH079702A (en) 1993-06-24 1993-06-24 Method of reading card data of slip printer

Country Status (1)

Country Link
JP (1) JPH079702A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008244518A (en) * 2007-03-23 2008-10-09 Ricoh Co Ltd Image forming apparatus management system, image forming apparatus, management apparatus, terminal apparatus, image forming apparatus management method, and image forming program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008244518A (en) * 2007-03-23 2008-10-09 Ricoh Co Ltd Image forming apparatus management system, image forming apparatus, management apparatus, terminal apparatus, image forming apparatus management method, and image forming program

Similar Documents

Publication Publication Date Title
JPH079702A (en) Method of reading card data of slip printer
JP2915674B2 (en) Slip printer
JP2751129B2 (en) Slip printer
JP2969019B2 (en) Slip printer for card data entry
JPH06143754A (en) Slip printer with bar code printing function
JPH079727A (en) Printer of slip having free layout
JP2791988B2 (en) Hospital slip printer capable of printing patient age
JPH06143750A (en) Printing system in slip printer
JPH05193190A (en) Slip printer having slip parameter setting function
JP2839118B2 (en) Printing device for slip printer
JPH05193224A (en) Screen control system in slip printer
JP2791987B2 (en) Slip printer with date printing function
JP2000132730A (en) Automatic transaction machine
JPH05193210A (en) Printing device in slip printer
JP3932629B2 (en) Securities issuing equipment
JP2578512B2 (en) Magnetic card encoder
JPH06143753A (en) Slip printer
JPH0954855A (en) Bankbook issuing method
JPS629474A (en) Picture information register device
JP2674772B2 (en) Counter transaction terminal device
JP2706086B2 (en) Character recognition device
JPH08153242A (en) Voucher processing device for account transactions
JPS62216030A (en) Word processor
JPH0774906A (en) Laser printer
JPH05330190A (en) Label printer