JPH079727A - Printer of slip having free layout - Google Patents

Printer of slip having free layout

Info

Publication number
JPH079727A
JPH079727A JP5175886A JP17588693A JPH079727A JP H079727 A JPH079727 A JP H079727A JP 5175886 A JP5175886 A JP 5175886A JP 17588693 A JP17588693 A JP 17588693A JP H079727 A JPH079727 A JP H079727A
Authority
JP
Japan
Prior art keywords
card
slip
data
printing
position 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.)
Pending
Application number
JP5175886A
Other languages
Japanese (ja)
Inventor
Shinichi Fuchigami
伸一 渕上
Michio Hisatake
通夫 久武
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 JP5175886A priority Critical patent/JPH079727A/en
Publication of JPH079727A publication Critical patent/JPH079727A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To provide a printer for a slip having free layout, which makes printing layout freely changeable in conformity with the slip at the printing with the printer of the slip. CONSTITUTION:In a format card 61, printing position information for printing respective printing items on a slip or the like is stored. When the card 61 is inputted from a card reader 62, a printing position information reading-out means reads printing position information so as to be stored in a printing position information storing means 64. A card discriminating means 66 discriminates whether a card 65 inputted from the card reader 62 is a customer car or not. When the discriminated card is a customer card, the contents of the card 65 are stored in a storing means 69. After that, by inserting the slip in a printing mechanism, printing is started by a printing starting means 68 and data is read out of the storing means 69 and, at the same time, re-arranged printing position information is read out of a storing means 64 so as to be printed with a printing control means 73.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は自由レイアウト伝票プ
リンタに関し、特に、伝票プリンタの印字時に、印字さ
れる伝票に合わせて印字レイアウトを自由に変更するこ
とを可能とした自由レイアウト伝票プリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a free-layout voucher printer, and more particularly, to a free-layout voucher printer capable of freely changing a print layout in accordance with a voucher to be printed when the voucher printer prints.

【0002】[0002]

【従来の技術】従来、例えば病院において、患者カード
の印字データ情報(患者コード、患者氏名、生年月日、
性別等)はカード上に形成された凹凸として記憶されて
おり、日付用の回転式日付リング、医師名用の交換式プ
レートと共にセットされ、伝票をその上に置き、手動あ
るいは電動のインクローラで擦ることによりインプリン
トされていた。
2. Description of the Related Art Conventionally, for example, in a hospital, print data information of a patient card (patient code, patient name, date of birth,
(Gender, etc.) is stored as unevenness formed on the card, it is set with a rotating date ring for the date, a replaceable plate for the doctor's name, a slip is placed on it, and a manual or electric ink roller is used. It was imprinted by rubbing.

【0003】また、別の従来例として、前記印字データ
情報が磁気カードに格納されており、該磁気カードをカ
ードリーダで読込み、次いで、読込まれた情報に基づい
て予め決められているプログラムにより単一のレイアウ
トで伝票に印字されていた。
As another conventional example, the print data information is stored in a magnetic card, the magnetic card is read by a card reader, and then a predetermined program is created based on the read information. It was printed on the slip with one layout.

【0004】いずれの場合も、印字レイアウトは単一で
あり、伝票毎に対応した製品を製造するか、または、そ
の印字レイアウトに合わせて伝票を作成していた。
In either case, the print layout is single, and a product corresponding to each slip is manufactured, or a slip is created according to the print layout.

【0005】[0005]

【発明が解決しようとする課題】前記伝票プリンタに適
用される伝票は、それぞれの病院毎に異なったものにな
っている。このため、従来は病院毎に伝票プリンタの印
字プログラムを変更し、これを伝票プリンタのプログラ
ムROMに格納することにより対処するか、あるいは、
伝票を新たに病院毎に対応するように作り直すことによ
り、印字位置を合わせていた。
The voucher applied to the voucher printer is different for each hospital. For this reason, conventionally, the printing program of the slip printer is changed for each hospital, and this is stored by storing it in the program ROM of the slip printer.
The printing position was adjusted by recreating the slip so that it would correspond to each hospital.

【0006】しかしながら、このような対処をすると病
院毎に別々の伝票プリンタを製造しなければならず、生
産性が低下し、該伝票プリンタのソフトが異なるので伝
票プリンタのメンテナンスが煩雑であり、また、新たに
伝票を作り直した場合、今までの伝票が無駄になり経済
的ではないという問題があった。
However, if such measures are taken, separate voucher printers must be manufactured for each hospital, productivity is reduced, and the voucher printer software is different, so the voucher printer maintenance is complicated, and However, when a new slip is recreated, the existing slips are wasted and not economical.

【0007】この発明の目的は、伝票プリンタの印字時
に、印字される伝票に合わせて印字レイアウトを自由に
変更することを可能とした自由レイアウト伝票プリンタ
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a free-layout voucher printer capable of freely changing a print layout in accordance with a voucher to be printed at the time of printing by the voucher printer.

【0008】[0008]

【課題を解決するための手段】前記目的を達成するため
に、この発明は、フォーマットカードに入力されている
印字位置情報の読取手段と、読取られた印字位置情報を
記憶する不発揮性の記憶手段と、該記憶手段によって記
憶された印字位置情報に基づいて各印字項目を再配置す
る手段とを具備し、前記再配置する手段で再配置された
印字位置情報に基づいて印字することを特徴とする。
In order to achieve the above-mentioned object, the present invention provides a reading unit for reading print position information input to a format card and a non-volatile memory for storing the read print position information. Means for rearranging each print item based on the print position information stored by the storage means, and printing is performed based on the print position information rearranged by the rearrangement means. And

【0009】[0009]

【作用】この発明によれば、フォーマットカードから読
込まれた印字位置情報に基づいて、各印字項目を再配置
することができる。このため、伝票プリンタの印字時に
そのレイアウトを自由に変更することができ、伝票に最
も適した印字位置に患者カードの情報を印字することが
可能となる。
According to the present invention, each print item can be rearranged based on the print position information read from the format card. Therefore, the layout of the slip printer can be freely changed at the time of printing, and the information of the patient card can be printed at the print position most suitable for the slip.

【0010】したがって、新たに本発明の伝票プリンタ
を導入したところでも、今まで使用していた伝票をその
まま使い続けることができるので、該伝票が無駄になら
ず経済的であるという利点がある。また、各病院毎に対
応した伝票プリンタを用意せずに済むので、該伝票プリ
ンタの生産性が向上する。
Therefore, even when the voucher printer of the present invention is newly introduced, the voucher that has been used up to now can be used as it is, which is advantageous in that the voucher is not wasted and is economical. Further, since it is not necessary to prepare a slip printer corresponding to each hospital, the productivity of the slip printer is improved.

【0011】[0011]

【実施例】以下に、図面を参照して、本発明を詳細に説
明する。図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.

【0012】図において、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.

【0013】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, and can be opened by putting a finger on the recess 3.

【0014】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.

【0015】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.

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

【0017】また、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.

【0018】図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.

【0019】前記伝票用紙が第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.

【0020】以上のようにして、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.

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

【0022】図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, 33 is a memory for holding the data read from the card, etc. until the power is turned off, and data editing. 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 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. 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.

【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はデータバスラインである。
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.

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

【0027】次に、前記カードリーダ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.

【0028】患者カードは、図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, sex and parity check. To identify the patient card, two cards starting at the position specified by the first two characters of the E information FT parameter are used.
The data is checked against the Kanji IN command.

【0029】また、医師カードは、図6に示されている
ように、カード判別情報(DR)、氏名(片仮名)、医
師コード、氏名(漢字)、所属およびパリティチェック
の情報を有している。さらに、コメントカードは、図7
(a) に示されているように、カード判別情報(CT)、
第1行コメント情報、第2行コメント情報、第3行コメ
ント情報、およびパリティチェックの情報から構成され
ている。図7(b) は、前記第1〜3行コメント情報の一
具体例を示す。
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. . Furthermore, the comment card is shown in Figure 7.
As shown in (a), card identification information (CT),
It is composed of first line comment information, second line comment information, third line comment information, and parity check information. FIG. 7B shows a specific example of the comment information on the first to third lines.

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

【0031】図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.

【0032】半角サイズのアルファベット・数字・仮名
(以下、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 associated with graphic characters, and kanji are kanji IN commands (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.

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

【0034】しかしながら、前記した患者カードの各情
報の印字順番、及び印字位置は、病院によって違うので
若干の相違がある。
However, the print order and print position of each information on the patient card described above are different depending on the hospital, and thus there are some differences.

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

【0036】図12は、前記のように、各病院によって
違う印字位置に対応するためのフォーマットカードの印
字位置情報記憶位置と記憶内容とを示す。
FIG. 12 shows the print position information storage position and storage content of the format card for handling different print positions depending on each hospital as described above.

【0037】図示されているように、フォーマットカー
ドの印字位置情報は、開始符号、カード判別情報、A〜
H印字位置情報パラメータ、終了符号、パリティチェッ
クの順になっている。前記A〜E印字位置情報パラメー
タは、図10の「区分」、「情報」と対応しており、そ
れぞれ、患者コード、氏名(カタカナ)、生年月日、性
別及び氏名(漢字)を示している。また、前記F〜H印
字位置情報パラメータは、それぞれ医師カード、コメン
トカード、時刻カードの印字位置情報を示している。図
中のA〜H印字位置情報パラメータのキャラクタ欄の×
××には、それぞれの情報の印字位置が格納される。印
字位置はトップマージンからの距離を示す値である。 (DEL) FT 031 077 197 210 148 255 314 462 (DEL) (L
RC) ここに、前記「 031」は、A情報である患者コードが、
トップマージンから3.1ミリメートル離れた位置から
印字されることを示している。以下「 077」、「 19
7」、………も同様に7.7ミリメートル、19.7ミ
リメートル、………の位置から印刷されることを示して
いる。
As shown in the figure, the print position information of the format card includes the start code, the card identification information, A to
The order is the H print position information parameter, the end code, and the parity check. The A to E print position information parameters correspond to “classification” and “information” in FIG. 10, and indicate the patient code, name (katakana), date of birth, gender and name (kanji), respectively. . The F to H print position information parameters indicate print position information of the doctor card, comment card, and time card, respectively. × in the character column of the print position information parameters A to H in the figure
The printing position of each information is stored in XX. The print position is a value indicating the distance from the top margin. (DEL) FT 031 077 197 210 148 255 314 462 (DEL) (L
RC) Here, the patient code that is the A information is "031",
It is shown that printing is performed from a position 3.1 mm away from the top margin. Below, "077", "19
Similarly, 7 ", ... Shows that printing is performed from the positions of 7.7 mm, 19.7 mm, ....

【0038】上記の例において、患者コードが漢字氏名
の次に印字されるような伝票の場合には、図12のフォ
ーマットカードの印字位置情報の記憶内容は、下記の通
りとなる。
In the above example, in the case of a slip in which the patient code is printed next to the kanji name, the stored contents of the print position information of the format card of FIG. 12 are as follows.

【0039】(DEL) FT 148 031 197 210 077 255 314
462 (DEL) (LRC) 次に、図13を参照して、前記ROM32に格納されて
いるデータ,すなわちROMマップについて説明する。
該ROM32の中には、図示されているように、アルフ
ァベット、数字、片仮名(ANK)の文字フォントデー
タ、伝票パラメータのデフォルト値、設定モードプログ
ラム、メンテナンスデータ表示モードプログラム、テス
ト印字モードプログラム、診断モードプログラム、通常
印字モードプログラム等が格納されている。また、前記
RAM33には、図14に示されているような、記憶領
域が設定されている。
(DEL) FT 148 031 197 210 077 255 314
462 (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.

【0040】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.

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

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

【0043】次に、EX格納ポインタ、EX読み出しポ
インタおよび展開データバッファがある。EX格納ポイ
ンタは、文字列データを9ピンヘッドに出力する9個の
ドットデータの記憶位置を指定するポインタである。E
X読み出しポインタは、1組のドットデータを印字ヘッ
ドに出力する時、読み出し位置を指定するポインタであ
る。
Next, there are an EX storage pointer, an EX read pointer, and an expanded data buffer. 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. E
The X read pointer is a pointer that specifies a read position when outputting a set of dot data to the print head.

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

【0045】次に、印字位置情報は、前記フォーマット
カードから読込まれた印字位置情報(図12参照)を格
納する領域である。印字順番テーブル、印字位置テーブ
ルは、印字位置情報により並びかえられた印字順番と位
置情報を格納する領域である。
Next, the print position information is an area for storing the print position information (see FIG. 12) read from the format card. The print order table and print position table are areas for storing the print order and position information rearranged according to the print position information.

【0046】図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 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.

【0047】ファイルネーム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.

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

【0049】シックネス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.

【0050】アレンジメント1は、伝票1の文字配列の
種類を示すものである。伝票の文字配列の種類として、
図16に示すものと、図17に示すものとの2種類あ
る。図16のものは、伝票タイトルと伝票内容との間
に、患者氏名、医師名等の印字エリアがある場合であ
り、図17のものは、伝票内容の下に、患者氏名、医師
名等の印字エリアがある場合である。
Arrangement 1 indicates the type of character arrangement of 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.

【0051】両者を見比べれば明らかなように、トップ
マージンが互いに異なり、図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”.

【0052】再び、図15に戻ると、本実施例では、前
記ファイルネーム、トップマージン、シックネスおよび
アレンジメントの各データが、5組(スリップ1〜
5)、EEPROM34に登録できるようになされてい
る。さらに、該EEPROM34には、前記フォーマッ
トカードから読み出された印字位置情報が記憶される。
Returning to FIG. 15 again, in the present embodiment, five sets of each data of the file name, top margin, thickness and arrangement (slip 1 to slip 1
5), it can be registered in the EEPROM 34. Further, the EEPROM 34 stores print position information read from the format card.

【0053】次に、前記EEPROM34に、前記印字
位置情報を登録する手順を、図18、図19を参照して
説明する。
Next, a procedure for registering the print position information in the EEPROM 34 will be described with reference to FIGS. 18 and 19.

【0054】図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.

【0055】図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. 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
Data "0" indicating that the chip is not the new chip is written in the area of the new chip of No. 4.

【0056】前記ステップ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 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. If this determination is positive, the process proceeds to step S76, and the setting mode process is set.

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

【0058】同様に、ストップキーと医師キーが同時に
押されている場合には、テスト印字モード処理が設定さ
れ、医師キーとコメントキーとが同時に押されている時
には、診断モード処理が設定される。前記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.

【0059】なお、該設定モード処理に入ると、伝票プ
リンタ上の各キー、すなわち、ストップ、医師、コメン
トおよび伝票の各キーは、それぞれ、「メニューキ
ー」、「上カーソルキー」、「下カーソルキー」および
「登録キー」の意味を持つように切り替わる。使い勝っ
てを良くするためには、キーの意味の変更を分かりやす
くするために、前記各キーの下に、これらのことを意味
する設定モードキーシールを貼付すると良い。
When the setting mode process is started, the keys on the slip printer, namely, 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, 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.

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

【0061】ステップS764では、印字位置設定メニ
ューが画面に表示されているか否かの判断が行われ、こ
の判断が肯定の場合には、ステップS766に進んで登
録キーがオンにされる。一方、否定の時には、ステップ
S765に進んで、メニューキーがオンにされる。そう
すると、ステップS763で他の設定メニュー画面が表
示される。図20(a) に、前記印字位置設定メニュー画
面の一例を示す。
In step S764, it is determined whether or not the print position setting menu is displayed on the screen. If the determination is affirmative, the flow advances to step S766 to turn on the registration key. 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. 20 (a) shows an example of the print position setting menu screen.

【0062】ステップS767では、フォーマットカー
ド要求画面が表示される。その一例を、図20(b) に示
す。そこで、フォーマットカードが前記カードリーダ3
6から読込まれると、ステップS768において、カー
ドデータはカードデータバッファに取込まれる。
In step S767, the 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.

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

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

【0065】以上の操作を伝票プリンタの設置時にする
ことにより、該伝票プリンタに、病院が採用している伝
票の印字位置に合わせて印字する機能を付与することが
できる。換言すれば、伝票プリンタを多数の病院に納入
する時、納入先の病院が採用している患者カードを何ら
変更することなく、単にその病院用のフォーマットカー
ドを用いて、印字位置情報を前記のようにして設定する
だけで、該病院で使用することができるようになる。
By performing the above operation when the slip printer is installed, the slip printer can be provided with a function of printing in accordance with the print position of the slip adopted by the hospital. In other words, when the slip printer is delivered to a large number of hospitals, the print position information can be obtained by simply using the format card for that hospital without changing the patient card adopted by the recipient hospital. By just setting in this way, it can be used in the hospital.

【0066】次に、本実施例の伝票プリンタの使用方法
を説明する。病院等で使用される場合、朝一番の開業時
に、オペレータが該伝票プリンタの電源を立ち上げ、続
いて、当日出勤の医師のカードを前記カードリーダ36
から読込む。そうすると、医師のカードデータは、図1
4のRAM33のDRカードデータ格納領域に格納され
ることになる。
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.

【0067】次いで、オペレータは予め用意されている
コメントカードを前記カードリーダ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.

【0068】以上で前準備が終了し、伝票を患者に発行
する時には、オペレータが患者から患者カードを借用
し、カードリーダ36から読込ませる。読込まれたデー
タは、前記IDカードデータ領域に記憶される。この
時、前の患者のデータは消去され、新たに読込まれた患
者のデータが記憶されることになる。
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.

【0069】この時、オペレータは使用する伝票の種類
に応じて、前記伝票パラメータを設定する。例えば、一
枚綴り、二枚綴りの伝票か等、あるいは伝票が図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.

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

【0071】この伝票は、例えば、図示されているよう
に、患者の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.

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

【0073】次に、前記のカードを読込むカードリーダ
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-mentioned 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 to 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). By the above interrupt processing, the data read by the card reader 36 is temporarily stored in the card data buffer.

【0074】次に、本発明の伝票プリンタを用いて印字
を行う前の動作、すなわち、通常印字モード処理の動作
を、図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.

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

【0076】ステップS13では、カードがカードリー
ダ36から離脱したことが、カードロード信号がロウレ
ベルになることにより検出されると、前記カードデータ
バッファの内容が新たなカード挿入により書き替えられ
るのを防止するために、リードクロック信号による割込
みが禁止される。ステップS14では、読込まれたカー
ドデータのチェックが行われる。このチェックは、デー
タ列の先頭および終端に所定のデータ(DEL 機能キャラ
クタ)が存在するか、パリティは正しいかにより行われ
る。
At 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.

【0077】前記チェックによりカードデータが正しい
と判断された時には、ステップ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.

【0078】ステップS16では、予め定められている
カード種類判別データを調べる動作が行われる。この判
別は、各カードに予め登録されているカード判別情報に
より行われる。ステップS29において、このカードが
客用カードではないと判別されると、図23のステップ
S17に進む。一方、客用カードであると判別される
と、ステップS20に進む。
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 S20.

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

【0080】以上により、カードデータバッファからカ
ードに対応したカードデータ格納領域へのデータの転送
は終了したので、ステップ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.

【0081】次に、ステップS12において、医師キー
がオンにされたと判断されると、ステップS23に進ん
で、DR読み出しポインタがインクリメントされる。次
に、ステップS24に進み、前記DRカードデータが前
記DRカードデータ格納領域から読み出され、液晶表示
装置12に表示される。
Next, in step S12, when it is determined that the doctor key is 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.

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

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

【0084】ステップS38ではDP信号の割込みを許
可する。ステップS39では、前記ステップS39に戻
って、印字動作が続行される。 ステップS46の判断
が肯定になり、改行となった時には、ステップS47に
進んで、前記PP読み出しポインタ(図14参照)の指
示する紙送りデータだけ、ストップキーが押されたか否
かの判断をし、この判断が否定の時には、ステップS4
1に進んで、印字が終了したか否かの判断をする。この
判断が否定の時には、ステップS46に進んで、改行か
否かの判断が行われる。改行でない時には、ステップS
39に戻って、印字動作が続行される。
In step S38, the DP signal interrupt is permitted. In step S39, the process returns to step S39 to continue the printing operation. When the determination in step S46 is affirmative and a line feed has occurred, the process advances to step S47 to determine whether or not the stop key has been pressed only for the paper feed data pointed by the PP read pointer (see FIG. 14). If this judgment is negative, step S4
In step 1, 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. If it is not a line break, step S
Returning to 39, the printing operation is continued.

【0085】ステップS46の判断が肯定になり、改行
となった時には、ステップS47に紙送りモータを駆動
する。ステップS48では、次の改行のために、PP読
み出しポインタをインクリメントし、次いでステップS
49で改行フラグをリセットする。一方、前記ステップ
S39において、ストップキーがオンにされたと判断す
ると、ステップS40に進んで、改行フラグをリセット
し、ステップS42に進む。ステップS42では、前記
DP信号の割込みを禁止し、ステップS43にて、ヘッ
ド移動モータの動作を停止する。ステップS44では、
前記PP、EX読み出しポインタを初期化し、ステップ
S45に進み、前記紙送りモータ42を逆回転させて、
伝票を手前に戻す動作が実行される。以上の動作によ
り、印字台7から挿入された伝票に印字が行われること
になる。
When the determination in step S46 is affirmative and a line feed has occurred, the paper feed motor is driven in step S47. In step S48, the PP read pointer is incremented for the next line feed, and then step S
At 49, the line feed flag is reset. 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, and in step S43, the operation of the head moving motor is stopped. In step S44,
The PP and EX read pointers are initialized, the process proceeds to step S45, the paper feed motor 42 is rotated in the reverse direction,
The operation of returning the slip to the front is executed. By the above operation, printing is performed on the slip inserted from the printing table 7.

【0086】次に、図26を参照して、前記DP信号の
割込み動作を説明する。ステップS51では、DPカウ
ンタはインクリメントされる。ステップS52では、D
Pカウンタ値≦400が成立するか否かの判断が行われ
る。ステップS52の判断が肯定の場合には、ステップ
S57に進んで、前記EX読み出しポインタとEX格納
ポインタが等しいか否かの判断がなされる。この判断が
否定の時には、ステップS59に進んで、EX読み出し
ポインタで指示される9個のドットデータを取り出し、
該ドットデータによりソレノイド49の動作が制御され
る。ステップS60では、次回のDP割込みによる印字
のために、EX読み出しポインタをインクリメントす
る。前記ステップS57が肯定の時には、ステップS5
8に進んで、印字終了フラグのセットが行われる。
Next, the interrupt operation of the DP signal will be described with reference to FIG. In step S51, the DP counter is incremented. In step S52, D
A determination is made as to whether or not the P counter value ≦ 400 is established. 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. If this determination is negative, the process proceeds to step S59, and the 9 dot data pointed by the EX read pointer is taken out,
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 step S57 is positive, step S5
In step 8, the print end flag is set.

【0087】一方、前記ステップ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.

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

【0089】次に、本発明の構成を、図1の機能ブロッ
ク図を参照して説明する。図において、61はフォーマ
ットカードであり、該フォーマットカード61として
は、伝票プリンタを設置しようとする病院が使用してい
る客用カードのフォーマットパラメータに対応する印字
位置情報を格納しているものが使用される。該フォーマ
ットカード61は、カードリーダ62により読出され、
印字位置情報読出手段63により、印字位置情報が読出
される。この印字位置情報は、印字位置情報記憶手段6
4に記憶される。この印字位置情報記憶手段64として
は、前記EEPROMを用いることができる。
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. As the format card 61, one that stores print position information corresponding to the format parameter of the customer card used by the hospital in which the slip printer is to be installed is used. To be done. The format card 61 is read by a card reader 62,
The printing position information reading means 63 reads the printing position information. The print position information is stored in the print position information storage means 6
4 is stored. The EEPROM can be used as the print position information storage means 64.

【0090】次に、カード65がカードリーダ62によ
って読取られると、カード判別手段66がカードの種類
を判別する。客用カードの時には、客用カード内容記憶
手段69に格納する。
Next, when the card 65 is read by the card reader 62, the card discriminating means 66 discriminates the type of the card. When it is a customer card, it is stored in the customer card content storage unit 69.

【0091】一方、客用カード以外のカードのときに
は、カードの種類に従って、担当者用カード内容記憶手
段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.

【0092】その後、前記印字機構に伝票が差し込ま
れ、印字開始手段68により印字が開始されると、前記
客用カード内容記憶手段69、担当者用カード内容記憶
手段70、コメントカード内容記憶手段71および時刻
データ記憶手段72からデータが読出され、印字制御手
段73により印字される。
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, 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.

【0093】以上のように、本発明によれば、伝票が複
数種類あっても、その伝票に対応した印字位置情報を伝
票プリンタに読込むことにより、該複数種類の伝票に対
処することができる。
As described above, according to the present invention, even if there are plural kinds of slips, the plural kinds of slips can be dealt with by reading the print position information corresponding to the slips into the slip printer. .

【0094】なお、図1において、点線は印字位置情報
を記憶手段64に読込むラインを示し、実線は印字に先
立って各カードのデータを記憶手段69〜71に読込む
ラインを示し、太線は伝票に前記データを印字する時の
ラインを示す。
In FIG. 1, a dotted line shows a line for reading the print position 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 prior to printing, and a thick line shows. The line when printing the data on the slip is shown.

【0095】本実施例は、フォーマットカード61に印
字位置情報を記憶させカードリーダ62により読込むこ
とにより印字位置設定を行っているが伝票プリンタの設
定モードプログラムの中にキー操作により任意に印字位
置設定を行ってもよい。
In this embodiment, the print position is set by storing the print position information in the format card 61 and reading it by the card reader 62. However, the print position is arbitrarily set by the key operation in the setting mode program of the slip printer. You may make settings.

【0096】また、本実施例は病院で用いる患者カード
について説明したが、これに限らずスイミングスクール
や自動車教習所等の学校等の各種施設において、使用し
てもよい。
Although the patient card used in the hospital has been described in the present embodiment, the present invention is not limited to this, and may be used in various facilities such as schools such as a swimming school and a driving school.

【0097】[0097]

【発明の効果】以上の説明から明らかなように、本発明
によれば、フォーマットカードを伝票プリンタに読込
み、読込まれた印字位置情報に基づいて伝票に印字する
ようにしたので、異なる伝票を使用している病院等に対
して、異なるソフトを格納した伝票プリンタを作成し納
入しなくても、異なる伝票に印字することができる。
As is apparent from the above description, according to the present invention, the format card is read into the slip printer and is printed on the slip based on the read print position information. Therefore, different slips are used. It is possible to print on different slips without having to create and deliver a slip printer storing different software to hospitals and the like.

【0098】また、このため、各病院毎または患者カー
ド毎に対応させて複数種類の伝票プリンタを生産しなく
てもよく、これにともなって伝票プリンタの開発コスト
が安価になり、そのコストを低減することができる。
Therefore, it is not necessary to produce a plurality of types of slip printers corresponding to each hospital or each patient card, and as a result, the development cost of the slip printer is reduced and the cost is reduced. can do.

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

【図面の簡単な説明】[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】 印字制御処理の動作を説明するフローチャ
ートである。
FIG. 24 is a flowchart illustrating an operation of print control processing.

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

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

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

61…フォーマットカード、62…カードリーダ、63
…印字位置情報読出手段、64…印字位置情報記憶手
段、65…カード、66…カード判別手段、69…客用
カード内容記憶手段
61 ... Format card, 62 ... Card reader, 63
... print position information reading means, 64 ... print position information storage means, 65 ... card, 66 ... card discriminating means, 69 ... customer card content storage means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 久武 通夫 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 (72)発明者 山口 俊明 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Michio Kutake, 1463 Asama-cho, Hachioji-shi, Tokyo Within Jamome Mishin Kogyo Co., Ltd. In the company

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】カードリーダ等により入力された印字項目
を伝票等に印字する伝票プリンタであって、 フォーマットカードに入力されている印字位置情報の読
取手段と、 前記読取手段に読取られた前記フォーマットカードの印
字位置情報を記憶する不発揮性の記憶手段と、 前記記憶手段によって記憶された印字位置情報に基づい
て各印字項目を再配置する手段とを具備し、前記再配置
する手段で再配置された印字位置情報に基づいて印字す
ることを特徴とする自由レイアウト伝票プリンタ。
1. A voucher printer for printing print items input by a card reader or the like on a voucher or the like, wherein the printing position information input to a format card is read, and the format read by the reading unit. It comprises a non-volatile storage means for storing print position information of the card, and means for rearranging each print item based on the print position information stored by the storage means, and rearranged by the rearrangement means. A free-layout voucher printer, which prints based on printed printing position information.
JP5175886A 1993-06-24 1993-06-24 Printer of slip having free layout Pending JPH079727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5175886A JPH079727A (en) 1993-06-24 1993-06-24 Printer of slip having free layout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5175886A JPH079727A (en) 1993-06-24 1993-06-24 Printer of slip having free layout

Publications (1)

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

Family

ID=16003941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5175886A Pending JPH079727A (en) 1993-06-24 1993-06-24 Printer of slip having free layout

Country Status (1)

Country Link
JP (1) JPH079727A (en)

Similar Documents

Publication Publication Date Title
US4837712A (en) Data processing apparatus
JPH079727A (en) Printer of slip having free layout
JP2751129B2 (en) Slip printer
JPH079702A (en) Method of reading card data of slip printer
JP2915674B2 (en) Slip printer
JPH06143750A (en) Printing system in slip printer
JPH05193190A (en) Slip printer having slip parameter setting function
JP2969019B2 (en) Slip printer for card data entry
JPH06143754A (en) Slip printer with bar code printing function
JP2839118B2 (en) Printing device for slip printer
JPH05193224A (en) Screen control system in slip printer
JP2791987B2 (en) Slip printer with date printing function
JPH07137404A (en) Slip printer for hospital that can print age of patient
JPH05193210A (en) Printing device in slip printer
JP3932629B2 (en) Securities issuing equipment
JP2667085B2 (en) Label printing device
JP2764789B2 (en) Page printing device
JP2706086B2 (en) Character recognition device
JPH08156364A (en) Bankbook printer and bankbook printing method
JPH0655801A (en) Label printing device
JPH05330190A (en) Label printer
JPH05330140A (en) Label printer
JPH0655800A (en) Label printer
JPH06143753A (en) Slip printer
JPS6273974A (en) character processing device