JPH05147627A - Medicine package-printing emthod of tabletpacking machine - Google Patents

Medicine package-printing emthod of tabletpacking machine

Info

Publication number
JPH05147627A
JPH05147627A JP30618791A JP30618791A JPH05147627A JP H05147627 A JPH05147627 A JP H05147627A JP 30618791 A JP30618791 A JP 30618791A JP 30618791 A JP30618791 A JP 30618791A JP H05147627 A JPH05147627 A JP H05147627A
Authority
JP
Japan
Prior art keywords
memory
character
address
printing
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP30618791A
Other languages
Japanese (ja)
Inventor
Manabu Haraguchi
学 原口
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP30618791A priority Critical patent/JPH05147627A/en
Publication of JPH05147627A publication Critical patent/JPH05147627A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the medicine package-printing method of a tabletpacking machine, in which medicine package printing for a patient easy to see can be conducted, by making all necessary printing items printable in the limited region of a partial package bag and by enabling printing particularly important information out of the printing items in large letters of quadruple size with the use of the existing lead-on rollers. CONSTITUTION:Items such as patient's name and time of application are printed in em-size letters by a printer 30 in a packing paper 6 held and conveyed by lead-on rollers 3 driven by a motor and dividing packages are formed continuously, and tablets are divided and thrown into and sealed by these dividing packages. This packing machine is provided with means for specifying the size of printed letters to a quadurple size. When the quadruple size is specified, printing of the upper half of letters for one line is conducted by the printer 30, thereafter the packing paper is forwarded for about one line by the lead-on rollers 3 and the head of the printer 30 is returned to a line head, and printing of the lower half of letters for one line is conducted by this printer.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、包装紙に分包袋を連続
形成して錠剤を分割分包する錠剤包装機において、薬包
に患者名・服用時期等を印字する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tablet packing machine for continuously forming a sachet on a wrapping paper to divide and pack tablets, and more particularly to a device for printing a patient name, a dose, etc. on a medicine package.

【0002】[0002]

【従来の技術】一般に錠剤包装機は、例えば特公昭56
−48362号公報でみられるように、予め錠剤種及び
剤数をキー入力することでこの入力データに基づく分包
を連続して作成する構成である。このとき作成した分包
袋には文字或いは数字を印字する必要があって実開昭4
9−137966号公報には刻印機構によって印字する
錠剤包装機が開示されている。また実公昭57−498
1号公報にはプリンタにより服用時期を分包袋に印字す
る薬剤分包装置が開示されている。特に実公昭57−4
981号公報の場合は、操作手段により印字する内容を
指定するためにより進歩した形態であるが、印字項目が
服用時期だけに限定されている。しかしながら印字項目
としては他に患者名・処方年月日・コード等があって使
用する病院において独自に決められるために、印字項目
を自由に設定できてしかも分包袋への印字フォーマット
も任意に決定できる装置が望まれている。特に複数の印
字項目を組合わせて印字するようにした場合、印字フォ
ーマットを任意に決められる機能は必要となる。
2. Description of the Related Art Generally, a tablet packing machine is, for example, Japanese Patent Publication Sho 56
As disclosed in Japanese Patent Laid-Open No. 483622, a tablet type and the number of agents are keyed in advance to continuously create a package based on the input data. It is necessary to print letters or numbers on the sachet prepared at this time.
Japanese Laid-Open Patent Publication No. 9-137966 discloses a tablet packing machine for printing with a marking mechanism. In addition, actual public Sho 57-498
Japanese Patent Publication No. 1 discloses a medicine packaging device that prints a dose on a sachet with a printer. In particular, the actual public Sho 57-4
In the case of Japanese Patent No. 981 which is a more advanced form for designating the content to be printed by the operating means, the printing items are limited only to the dose time. However, other print items include the patient's name, prescription date, code, etc., and can be set independently at the hospital to be used, so the print items can be set freely and the print format on the sachet is also optional. A device that can determine is desired. In particular, when a plurality of print items are combined and printed, the function of arbitrarily determining the print format is required.

【0003】そこで本件出願人は特公平2−27215
号公報で開示されている如く、印字項目や印字フォーマ
ットを自由に設定できる薬包印字装置を発明した。
Therefore, the applicant of the present invention is Japanese Patent Publication No. 27215/1990.
As disclosed in Japanese Patent Publication No. JP-A-2003-242242, the invention has invented a medicine package printing apparatus in which print items and print formats can be freely set.

【0004】[0004]

【発明が解決しようとする課題】しかしながら上記の構
成によると印字する文字の大きさは全て同じであるた
め、印字項目のうち特に重要な情報となる服用時期が見
難いという問題があった。これは、老人等にとっては特
に解読が困難となる。
However, according to the above construction, since the characters to be printed are all the same in size, there is a problem that it is difficult to see when to take, which is particularly important information among printed items. This is especially difficult for the elderly to decipher.

【0005】一方、病院等が必要とする印字項目は数種
類あるが、分包袋の大きさは限られているため、この限
られた領域内に必要とする全ての項目を印字しなければ
ならない。
On the other hand, although there are several kinds of print items required by hospitals and the like, since the size of the sachet is limited, all necessary items must be printed in this limited area. ..

【0006】本発明は斯る点に鑑みなされたもので、分
包袋の限られた領域内に必要とする印字項目の全てが印
字できると共に、印字項目のうち特に重要な情報を既存
の送りローラを利用して4倍角の大きな文字で印字する
ことを可能とし、患者が見易い薬包印字が行なえる錠剤
包装機の薬包印字方法を提供することを目的とする。
The present invention has been made in view of the above problems, and can print all necessary print items in a limited area of a sachet, and at the same time, send particularly important information of the print items to an existing feed. An object of the present invention is to provide a medicine package printing method for a tablet packaging machine, which enables printing with large characters of a quadruple angle by using a roller and enables easy-to-see medicine package printing for a patient.

【0007】[0007]

【課題を解決するための手段】本発明は、モーターで駆
動される送りローラに挾持されて搬送される包装紙に、
プリンタにて必要な項目を印字すると共に分包袋を連続
形成し、この分包袋に錠剤を分割投入して密封するもの
において、印字する文字の大きさを4倍角に指定する手
段を設け、4倍角が指定されると前記プリンタにて文字
の上半分の印字を1行分行なった後、前記送りローラに
て包装紙を約1行分送ると共に前記プリンタのヘッドを
行頭に戻し、このプリンタにて文字の下半分の印字を1
行分行なうものである。
The present invention relates to a wrapping paper which is carried by being held by a feed roller driven by a motor.
The printer prints necessary items and forms sachets in a continuous manner, and in a sachet that divides and inserts tablets into divided sacks, means for designating the size of characters to be printed to quadruple When the quadruple angle is designated, the printer prints the upper half of the character for one line, and then the feed roller feeds the wrapping paper for about one line and returns the head of the printer to the beginning of the line. Print the bottom half of the character
This is done for each line.

【0008】[0008]

【作用】本発明の錠剤包装機の薬包印字方法によれば、
印字項目のうち特に重要な情報を4倍角の大きな文字で
印字できると共に、その他の情報を標準角等の小さな文
字で印字することができ、分包袋の限られた領域内に必
要とする全ての印字項目を印字しつつ、特に重要な情報
を4倍角の大きな文字で印字することができる。この結
果、患者にとって重要な情報が見易くなる。
According to the medicine pack printing method of the tablet packing machine of the present invention,
Especially important information in the print items can be printed in large quadruple characters, and other information can be printed in small characters such as standard squares. Everything you need within the limited area of the sachet. It is possible to print particularly important information with large quadruple characters while printing the print item. As a result, important information is easy to see for the patient.

【0009】また、4倍角文字は文字の上半分と下半分
に分けて印字するため、全角文字用の単一のヘッドで4
倍角文字の印字が行なえる。
Further, since a quadruple-width character is printed separately in the upper half and the lower half of the character, a single head for double-width characters can print 4 characters.
Double-byte characters can be printed.

【0010】更に、プリンタのヘッドは4倍角文字の上
半分を印字した後に行頭に戻されるため、下半分を印字
するときにヘッドのスタート位置の違いや包装紙がシワ
になることにより生ずる上半分と下半分の印字の位置ズ
レは解消でき、整合性が維持される。即ち、包装紙は通
常2つ折りされて幅方向の一端に折目部を他端に開口を
有する2枚重ねとなっているため、この折目部側から上
半分を印字した後に再び折目部側から下半分を印字すれ
ば、包装紙がシワになって位置ズレを起こすことはな
い。
Further, since the head of the printer prints the upper half of the quadruple character and then returns to the beginning of the line, the upper half caused by the difference in the start position of the head and the wrinkling of the wrapping paper when printing the lower half. The misalignment of printing in the lower half can be eliminated, and the consistency is maintained. That is, since the wrapping paper is usually folded in two and is a two-ply sheet having a fold portion at one end in the width direction and an opening at the other end, the fold portion is printed again after the upper half is printed. If you print the bottom half from the side, the wrapping paper will not wrinkle and misalign.

【0011】[0011]

【実施例】図1は錠剤包装機の外観図を示し、制御器
(10)と包装機(11)とから構成されている。制御
器(10)はキー入力部(12)のキー操作により処方
データ及び印字データを作成して包装機(11)に転送
し、包装機(11)は転送されたこれらデータにより包
装動作を行なう。包装機(11)は上部にタブレットケ
ース(5)…(5)の収納部を形成するとともに、下部
筐体(23)内には包装機構を配置している。タブレッ
トケース(5)…(5)は所定の錠剤摘出信号の入力に
より駆動して錠剤を摘出し、図示しない落下通路へ錠剤
を導入する。包装機構は図2に示すように2つ折りにし
た包装紙(6)を巻回した包装紙ロール(7)、包装紙
(6)にテンションを印加するアーム(8)、包装紙
(6)に患者名・診療科目・コード番号・服用時期等を
印字するプリンタ(30)、図示しないステッピッング
モータにて駆動される行送りローラ(3)、包装紙
(6)に縦シールを施して分包袋を形成する縦ヒートシ
ール機構(9a)、縦ヒートシールに連動して包装紙
(6)に切目を形成するミシン刃(4)、前記落下通路
に連通して導入される錠剤を保持しシャッタの開放にて
分包袋に錠剤を注入するホッパ(2)、分包袋の上部開
口を閉塞する横ヒートシール機構(9b)、及び包装紙
(6)を一分包長づつ長手方向に間欠的に送り出す送り
ローラ(1)とから成る。またプリンタ(30)は、予
め定められたフォーマットにしたがって、図3に示す如
く包装紙(6)の長手方向と直交する方向に印字するよ
うになっている。
EXAMPLE FIG. 1 shows an external view of a tablet packing machine, which comprises a controller (10) and a packing machine (11). The controller (10) creates prescription data and print data by key operation of the key input unit (12) and transfers them to the packaging machine (11), and the packaging machine (11) performs a packaging operation based on these transferred data. .. The packaging machine (11) has a storage portion for the tablet cases (5) ... (5) formed in the upper portion, and a packaging mechanism is arranged in the lower housing (23). The tablet cases (5) ... (5) are driven by the input of a predetermined tablet extraction signal to extract the tablets and introduce the tablets into a falling passage (not shown). As shown in FIG. 2, the wrapping mechanism includes a wrapping paper roll (7) formed by winding a wrapping paper (6) folded in two, an arm (8) for applying a tension to the wrapping paper (6), and a wrapping paper (6). A printer (30) that prints the patient's name, medical treatment item, code number, timing of taking, etc., line feed rollers (3) driven by a stepping motor (not shown), and wrapping paper (6) with vertical seals. A vertical heat-sealing mechanism (9a) for forming a packaging bag, a sewing machine blade (4) for forming a cut on the wrapping paper (6) in conjunction with the vertical heat-sealing, and holding tablets introduced in communication with the drop passage. A hopper (2) for injecting tablets into the sachet by opening the shutter, a lateral heat seal mechanism (9b) for closing the upper opening of the sachet, and a wrapping paper (6) are lengthwise per one packet length. And a feed roller (1) for intermittently feeding. Further, the printer (30) prints in a direction orthogonal to the longitudinal direction of the wrapping paper (6) according to a predetermined format as shown in FIG.

【0012】図4は本発明による制御システムを示し、
(13)は制御器(10)側の制御回路部、(14)は
包装機(11)側の制御回路部で、送信データをシリア
ル変換し受信データをパラレル変換するインターフェイ
ス(15)(16)を介し伝送線(17)によって互い
に接続されている。制御回路部(13)は、中央処理装
置(18)と、制御器(10)側の制御手順がプログラ
ムされたシステムメモリ(19)と、キー入力部(1
2)の操作を検出してキー入力信号を発生するキーボー
ドインターフェイス(20)と、CRT(22)の表示
制御を行なうCRTコントローラ(21)と、メモリM
1・M2・M3とから成る。そして制御回路部(14)
は、中央処理装置(24)と、包装機(11)側の制御
手順がプログラムされたシステムメモリ(25)と、包
装機(11)の包装動作を制御する包装機コントローラ
(28)と、プリンタ(30)に印字信号及び改行信号
を出力して印字動作を制御するプリンタコントローラ
(29)と、メモリM’1・M’2・M’3・M’4と、制
御カウンタ(27)と、レジスタR1・R2とから成る。
FIG. 4 shows a control system according to the invention,
(13) is a control circuit unit on the controller (10) side, and (14) is a control circuit unit on the packaging machine (11) side, which is an interface (15) (16) for converting transmission data to serial and receiving data to parallel. Are connected to each other by a transmission line (17). The control circuit unit (13) includes a central processing unit (18), a system memory (19) in which a control procedure on the controller (10) side is programmed, and a key input unit (1).
2) A keyboard interface (20) that detects the operation of the touch panel and generates a key input signal, a CRT controller (21) that controls the display of a CRT (22), and a memory M.
It consists of 1・ M 2・ M 3 . And control circuit section (14)
Includes a central processing unit (24), a system memory (25) in which a control procedure on the packaging machine (11) side is programmed, a packaging machine controller (28) for controlling the packaging operation of the packaging machine (11), and a printer. a printer controller for controlling the output to the printing operation the print signal and line feed signals (30) (29), a memory M '1 · M' 2 · M '3 · M' 4, a control counter (27), It consists of registers R 1 and R 2 .

【0013】プリンタ(30)は図13乃至図15のフ
ォーマットにしたがって1行16字を4行に亘って印字
するもので、印字項目としては*記号で示す患者名、!
記号で示す服用時期、#記号で示す患者コード、$記号
で示す処方年月日、%記号で示す診療科目がある。そし
て本発明に依ると、上記の印字項目のうちから必要な項
目を選択し且つ印字する箇所を決定して任意のフォーマ
ットを作成可能にするものである。また印字項目には文
字数の制限があり、本例では患者名は倍角で8字迄、服
用時期は4倍角で4字迄、コードは8字迄、処方年月日
は8字迄、診療科目は4字迄に規制されているが、制限
字以内なら他のコメント、例えば患者名に続く「様」や
服用時期に続く「に服用下さい」を印字することもでき
る。
The printer (30) prints 16 characters per line over 4 lines in accordance with the format shown in FIGS. 13 to 15. The print item is a patient name indicated by * symbol, and!
There is a dose period indicated by a symbol, a patient code indicated by a # symbol, a prescription date indicated by a $ symbol, and a medical treatment subject indicated by a% symbol. According to the present invention, a necessary item is selected from the above print items and a printing position is determined so that an arbitrary format can be created. There is a limit to the number of characters that can be printed. In this example, the patient name can be up to 8 double-width characters, the dose can be up to 4 double-width characters, the code can be up to 8 characters, and the prescription date can be up to 8 characters. Is restricted to 4 characters, but other comments, such as "sama" following the patient's name and "please take" after the time of administration, can be printed if it is within the restricted characters.

【0014】図5は斯る印字フォーマット作成のフロー
チャートを示しており、キー入力部(12)の印字フォ
ーマット作成を示すファンクションキーの操作により中
央処理装置(18)は処理を開始する。N1ステップで
はキー入力部(12)にて入力される印字項目の記号を
取込む。例えば1行目の1字目〜8字目までを患者コー
ドの印字領域に設定するには、先ずN7ステップで2倍
キーを指定するか否か判定し、しない場合はN9ステッ
プで4倍キーを指定するか否か判定し、これも指定しな
い場合は全角文字の指定となり、キー入力部(12)の
#キーを操作することで中央処理装置(18)には
「#」を示すキャラクタコードが2進符号によって導入
される。N2ステップではキー入力部(12)より取込
んだデータが印字項目を示すものであるかを判定する。
この場合「#」記号は患者コードの印字項目を表わして
おり、N3ステップでは患者コードの印字数が制限数の
8字をオーバーしていないかを判定し、オーバーしてい
ないとN4ステップでキー入力データである「#」を示
すキャラクタコードを印字フォーマットメモリM1にス
トアする。印字フォーマットメモリM1は印字フォーマ
ットの印字数に対応してアドレスを備えており、この場
合は印字フォーマットの1字目に対応するアドレスに
「#」をストアする。N5ステップでは印字フォーマッ
トメモリM1のアドレスを1つシフトし、N6ステップで
印字フォーマットメモリM1のアドレスがオーバーして
いないことを確認してN1ステップに復帰する。図13
に示す印字フォーマットによる入力例では、以下#キー
を繰り返し操作して2字目・3字目…8字目に対応する
メモリM1の各アドレスに「#」を表わすキャラクタコ
ードをストアする。
FIG. 5 shows a flow chart for creating such a print format, and the central processing unit (18) starts the processing by operating the function key indicating the print format creation in the key input section (12). In step N 1 , the symbol of the print item input by the key input unit (12) is taken in. For example 4 until one character to eighth characters of the first row to set the print area of the patient code, first N 7 whether determined to specify a double key step, if not in N 9 Step It is determined whether or not the double key is designated, and if it is not designated, the double-byte character is designated, and by operating the # key of the key input unit (12), "#" is indicated to the central processing unit (18). The character code is introduced by a binary code. In the N 2 step, it is determined whether the data fetched from the key input unit (12) indicates a print item.
In this case represents the "#" symbol printable item patient code, the N 3 steps to determine not exceed the limit of 8 characters is the number of printing patient code, N 4 steps when not over The character code indicating "#" which is the key input data is stored in the print format memory M 1 . The print format memory M 1 has an address corresponding to the number of prints in the print format. In this case, “#” is stored in the address corresponding to the first character of the print format. The N 5 Step was shifted one address of the print format memory M 1, the address of the print format memory M 1 in N 6 step returns to N 1 step to verify that it is not exceeded. FIG.
In the example input by the print format shown, storing character codes representing the "#" to each address of the memory M 1 corresponding to the following # repeatedly operated two letters th, 3 characters th ... 8 characters eyes with a key.

【0015】1行目の9字目から12字目迄に関しては
キー入力部(12)のスペースキーを繰り返し操作する
と、N1ステップ・N7ステップ・N9ステップ・N2ステ
ップ・N4ステップ・N5ステップ・N6ステップの処理
を繰り返して対応するメモリM1の各アドレスにはスペ
ースを表わすキャラクタコードをストアする。したがっ
て1行目の9字目から12字目迄は何も印字しない領域
に設定されたことになる。そして13字目に対応してN
1ステップでキー入力部(12)のキーを操作すると、
中央処理装置(18)には「%」を表わすキャラクタコ
ードが2進符号によって導入される。「%」記号は診療
科目の印字項目を示しており、N2ステップからN3ステ
ップとなり、続いてN4ステップで「%」を示すキャラ
クタコードを13字目に対応するメモリM1のアドレス
にストアする。そしてN5ステップでメモリM1のアドレ
スをシフトし、N6ステップでメモリM1のアドレスがオ
ーバーしていないことを確認してN1ステップに復帰す
る。その後%キーを4回操作するごとにかかる処理を繰
リ返し、14字目から16字目までに対応するメモリM
1のアドレスにも「%」を表わすキャラクタコードがス
トアされる。こうして1行目の13字目から16字目迄
は診療科目を印字する領域に設定されたことになる。
For the 9th to 12th characters in the first line, if the space key of the key input section (12) is repeatedly operated, N 1 step, N 7 step, N 9 step, N 2 step, N 4 step The character code representing a space is stored in each address of the corresponding memory M 1 by repeating the processing of N 5 steps and N 6 steps. Therefore, the 9th character to the 12th character in the first line are set in the area where nothing is printed. And N corresponding to the 13th character
When you operate the key of the key input section (12) in one step,
A character code representing "%" is introduced into the central processing unit (18) by a binary code. The “%” symbol indicates the print item of the medical care item, and from the N 2 step to the N 3 step, the character code indicating “%” is then assigned to the address of the memory M 1 corresponding to the 13th character in the N 4 step. To store. And shifting the address of the memory M 1 in N 5 step, the address of the memory M 1 in N 6 step returns to N 1 step to verify that it is not exceeded. After that, the process is repeated each time the% key is operated four times, and the memory M corresponding to the 14th to 16th characters
The character code representing "%" is also stored in the address of 1 . In this way, the 13th character to the 16th character in the first line are set in the area for printing the medical department.

【0016】2行目の1字目から9字目迄(含スペー
ス)に関してはまず、N7ステップで2倍キーを指定す
るか否か判定し、患者名は2倍角とするために倍キーを
操作して2倍角を指定し、N8ステップで2倍コードを
メモリM1にストアする。そして、キー入力部(12)
の*キーを操作する。これを繰り返してN1ステップで
は「*」及び2倍コードを表わすキャラクタコードが2
進符号により導入され、N 5ステップでメモリM1のアド
レスをシフトし、N6ステップでメモリM1のアドレスが
オーバーしていないかを判定する。かかる処理により2
行目の1字目から9字目迄(5文字目のスペースを含
む)は患者名を横倍角で印字する領域に設定されたこと
になる。
From the first character to the ninth character in the second line (including space)
S) first, N7Specify double key in step
Whether or not there is a double name
Operate to specify double angle, N8Double code in steps
Memory M1Store at. And the key input section (12)
Operate the * key of. Repeat this N1In steps
Is "*" and the character code representing the double code is 2
Introduced by a binary code, N FiveMemory in steps M1The ad
Shift less, N6Memory in steps M1Address of
Determine if it is over. 2 by this processing
From the first character to the ninth character of the line (including the space of the fifth character)
) Is set in the area for printing the patient name in double-width characters
become.

【0017】2行目の10字目から15字目に関して
は、スペースキーを操作するたびにN 1・N7・N9・N2
・N4・N5・N6の各ステップをまわり、メモリM1の対
応するアドレスにスペースを表わすキャラクタコードを
ストアする。したがって2行目の5字目と10〜15字
目は何も印字しないことに設定されたことになる。
Regarding the 10th to 15th characters on the second line
N every time you press the space key 1・ N7・ N9・ N2
・ NFour・ NFive・ N6Memory M1Pair of
A character code representing a space at the corresponding address
To store. Therefore, the 5th character of the second line and 10 to 15 characters
The eyes are set to print nothing.

【0018】そして2行目の16字目の入力にはキー入
力部(12)のかな文字キー「さ」「ま」を操作して漢
字変換する。このとき中央処理装置(18)には「様」
を示すキャラクタコードが2進符号で導入され、N2
テップにて印字項目と異なることを判定してN4ステッ
プへ移行し、N4ステップでは16字目に対応するメモ
リM1のアドレスに「様」を表わすキャラクタコードを
ストアする。そしてN5ステップでメモリM1のアドレス
をシフトし、N6ステップでメモリM1のアドレスがオー
バーしていないことを確認してN1ステップに復帰す
る。このようにして2行目の1字目から9字目までは処
方データに応じた患者名を印字する領域に設定され、そ
して16字目には「様」を印字するよう設定されたこと
になる。
To input the 16th character on the second line, the kana character keys "sa" and "ma" of the key input unit (12) are operated to convert the kanji. At this time, the central processing unit (18) has "sama"
Character code indicating is introduced in binary code, the process proceeds to N 4 step determines that differ from the printable item in N 2 step, the N 4 steps to the address of the memory M 1 corresponding to 16 characters eyes " The character code representing "sama" is stored. And shifting the address of the memory M 1 in N 5 step, the address of the memory M 1 in N 6 step returns to N 1 step to verify that it is not exceeded. In this way, the 1st to 9th characters of the 2nd line are set to the area to print the patient name according to the prescription data, and the 16th character is set to print "Sama". Become.

【0019】3行目の1字目から6字目迄に関してはN
9ステップで4倍キーを操作して4倍コードを指定しこ
れをメモリM1にストアする。そして、キー入力部(1
2)の!キーを操作しこれを繰り返す。N1ステップで
は「!」及び4倍コードを表わすキャラクタコードが2
進符号により導入され、N5ステップでメモリM1のアド
レスをシフトし、N6ステップでメモリM1のアドレスが
オーバーしていないかを判定する。かかる処理により3
行目の1字目から6字目迄は処方データに応じた服用日
を4倍角で印字する領域に設定されたことになる。
For the first character to the sixth character in the third line, N
In step 9 , the 4x key is operated to specify the 4x code and stored in the memory M 1 . Then, the key input section (1
2)! Operate the key and repeat this. In the N 1 step, the character code representing “!” And the quadruple code is 2
Introduced by a base code, the address of the memory M 1 is shifted at step N 5 and it is determined whether the address of the memory M 1 is exceeded at step N 6 . 3 by this processing
From the first character to the sixth character of the line, it means that the dose date according to the prescription data is set in the area for printing in quadruple.

【0020】3行目の7字目から12字目迄に関しては
「に服用」の文字が横倍角で印字されるために、N7
テップで倍角を指定してN8ステップで2倍コードをメ
モリM 1にストアする。そして、キー入力部(12)の
!キーを操作するたびに、N1ステップでは「!」及び
2倍コードを表わすキャラクタコードが2進符号により
導入され、N5ステップでメモリM1のアドレスをシフト
し、N6ステップでメモリM1のアドレスがオーバーして
いないかを判定する。
Regarding the 7th to 12th characters in the third line
Since the character "dosed" is printed in double-width characters, N7Su
Specify double angle with step N8Double code in step
Mori M 1Store at. Then, in the key input section (12)
!! Each time you operate the key, N1"!" And
The character code that represents the double code is a binary code
Introduced, NFiveMemory in steps M1Shift the address of
Then N6Memory in steps M1Address is over
Determine if there is not.

【0021】3行目の13字目から15字目迄に関して
は「下さい」の文字が全角で印字されるために、キー入
力部(12)の!キーを操作するたびに、N1ステップ
では「!」を表わすキャラクタコードが2進符号により
導入され、N2ステップで服用時期の印字項目であるこ
とを判定し、N3ステップで服用時期についての制限文
字数「16」を越えていないかを判定し、N4ステップ
で3行目の13字目から15字目迄に対応するメモリM
1のアドレスに「!」を表わすキャラクタコードをスト
アし、N5ステップでメモリM1をシフトし、N6ステッ
プでメモリM1のアドレスがオーバーしていないかを判
定する。したがって、3行目の1字目から15字目迄は
処方データに応じた服用時期(メッセージを含む)を4
倍角と倍角と全角文字の混在で印字する領域に設定され
たことになる。
In the third line, from the 13th character to the 15th character, the character "Please" is printed in full-width characters, so the! Each time the key is operated, a character code representing "!" Is introduced by a binary code in the N 1 step, it is determined in N 2 steps that it is a print item of the dose time, and in the N 3 step, the dose time is checked. determines does not exceed the limit number "16", corresponding to 13 characters th third line in N 4 steps up to 15 characters th memory M
A character code representing "!" Is stored in the address of 1 , the memory M 1 is shifted in the step N 5 , and it is determined whether the address of the memory M 1 is over in the step N 6 . Therefore, from the 1st character to the 15th character on the 3rd line, the dosage period (including message) according to the prescription data is 4
This means that the area is set to print with double-width characters and double-width characters and double-byte characters mixedly.

【0022】3行目の16字目は、スペースキーの操作
によりメモリM1の対応するアドレスにスペースを表わ
すキャラクタコードをストアして何も印字しない領域に
設定する。
The 16th character on the third line is set to an area where nothing is printed by storing a character code representing a space at the corresponding address of the memory M 1 by operating the space key.

【0023】4行目の1字目から7字目は上述した如く
スペースキーの操作により何も印字しない領域に設定す
る。
The first to seventh characters of the fourth line are set in the area where nothing is printed by operating the space key as described above.

【0024】4行目の8字目及び9字目はキー入力部
(12)の$キーを操作するたびに、N1ステップでは
「$」を表わすキャラクタコードが2進符号により導入
され、全角指定とするためにN2ステップとなり、処方
年月日の印字項目であることを判定し、N3ステップで
処方年月日の制限文字数「8」を越えていないか判定
し、N4ステップで4行目の8字目及び9字目に対応す
るメモリM1のアドレスに「$」を表わすキャラクタコ
ードをストアし、N5ステップでメモリM1のアドレスを
シフトし、N6ステップでメモリM1のアドレスがオーバ
ーしていないかを判定する。
For the 8th and 9th characters in the 4th line, every time the $ key of the key input section (12) is operated, a character code representing "$" is introduced by a binary code in the N 1 step, and a full-width character is introduced. In order to specify it, N 2 steps are required, and it is determined that the item is a prescription date print item. In N 3 steps, it is determined whether or not the prescription date character limit "8" is exceeded, and in N 4 step. The character code representing "$" is stored in the address of the memory M 1 corresponding to the 8th and 9th characters in the 4th line, the address of the memory M 1 is shifted in the N 5 step, and the memory M is shifted in the N 6 step. Determine whether the address of 1 is over.

【0025】4行目の10字目はキー入力部(12)の
かな文字キー「ね」「ん」を操作して漢字変換する。こ
のとき、中央処理装置(18)には「年」を示すキャラ
クタコードが2進符号で導入され、N2ステップで印字
項目と異なることを判定してN4ステップへ移行し、N4
ステップでは10字目に対応するメモリM1のアドレス
に「年」を表わすキャラクタコードをストアする。そし
て、N5ステップでメモリM1のアドレスをシフトし、N
6ステップでメモリM1のアドレスがオーバーしていない
ことを確認してN1ステップに復帰する。
The tenth character on the fourth line is converted into kanji by operating the kana character keys "ne" and "n" in the key input unit (12). At this time, the central processing unit (18) introduced in the character code binary code indicating "year", the process proceeds to N 4 step determines that differ from the printed item N 2 Step, N 4
In a step to store the character code that represents the "year" to the address of the memory M 1 corresponding to 10 characters eyes. Then, in the N 5 step, the address of the memory M 1 is shifted,
After confirming that the address of the memory M 1 has not exceeded in 6 steps, the process returns to the N 1 step.

【0026】以下同様の操作を繰り返して4行目の11
字目から16字目に「$」及び「月」「日」を表わすキ
ャラクタコードをM1にストアすることにより、4行目
の8字目から16字目に処方年月日を印字する領域が設
定される。
The same operation is repeated thereafter, and 11 in the fourth line
By storing the shape th character code representing a "$" and "month", "day" to 16 characters th to M 1, a region for printing the prescription date from 8 characters of the fourth row to the 16 characters th Is set.

【0027】そして4行目の16字目、即ち通算64字
目についての処理でN6ステップにてメモリM1のアドレ
スがオーバーしたことを検出すると、印字フォーマット
作成の処理を終了する。上記の動作により図13に示す
印字フォーマットが設定されるが、印字項目及びその順
序は任意に設定できる。そして、64字までの範囲で印
字項目に限らずスペース或いはその他のコメントを自由
に設定することができる。またメモリM1を複数設け、
各メモリM1に夫々別の印字フォーマットを設定して包
装動作時に任意のフォーマットを選定することも可能で
ある。
When it is detected that the address of the memory M 1 has exceeded the N 6th step in the process for the 16th character on the 4th line, that is, the 64th character in total, the process for creating the print format is ended. Although the print format shown in FIG. 13 is set by the above operation, print items and their order can be set arbitrarily. Then, not only the print items but also spaces or other comments can be freely set within the range of up to 64 characters. Further, a plurality of memories M 1 are provided,
It is also possible to set a different print format in each memory M 1 and select an arbitrary format during the packaging operation.

【0028】制御回路部(14)は制御回路部(13)
より送信される処方データ及び印字データ(後述する図
15のフォーマット)に基づき包装制御を行なうが、制
御回路部(13)(14)間の転送モードは制御回路部
(14)が制御回路部(13)へ転送要求信号を送信す
ることで開始される。このとき制御回路部(14)は包
装制御を行なっていない状態で定期的にこの転送要求信
号を出力するものである。図6は制御回路部(13)の
通常の動作を示すフローチャートで、印字フォーマット
作成モード以外では常にこのフローチャートに基づく処
理を実行している。制御回路部(13)の動作を説明す
ると、中央処理装置(18)はN10ステップで転送要求
信号の有無を判定し、転送要求信号が出力されていない
とN11ステップでキー入力の有無を判定する。キー入力
部(12)が操作されて、朝・昼・夕・就寝前等の服用
時期毎に分包する薬剤名及びその剤数と日数がキー入力
されると、N12ステップでは図7のフォーマットにした
がってこのキー入力内容に基づく処方データを作成して
処方データメモリM2に記憶する。
The control circuit unit (14) is a control circuit unit (13).
The packaging control is performed based on the prescription data and the print data (the format of FIG. 15 described later) transmitted from the control circuit unit (13) and the transfer mode between the control circuit unit (14). It is started by transmitting a transfer request signal to 13). At this time, the control circuit section (14) periodically outputs the transfer request signal in a state where the packaging control is not performed. FIG. 6 is a flow chart showing a normal operation of the control circuit section (13), and the processing based on this flow chart is always executed in modes other than the print format creation mode. Explaining the operation of the control circuit section (13), the central processing unit (18) determines the presence / absence of a transfer request signal in N 10 steps, and if the transfer request signal is not output, determines the presence / absence of a key input in N 11 steps. judge. When the key input unit (12) is operated and the name of the medicine to be packaged and the number of the medicine and the number of days are packaged for each dose period such as morning, noon, evening, and before bedtime, the N 12 step of FIG. According to the format, prescription data based on this key input content is created and stored in the prescription data memory M 2 .

【0029】即ち、N12ステップにおいては、処方デー
タメモリM2の1バイトの記憶領域m1に日数データを書
込むとともに、キー入力により指定された薬品名をその
錠剤種を示すコードに変換しているバイトの記憶領域m
4に書込み、更に薬剤名の指定に続いてキー入力される
その錠剤種の朝・昼・夕・就寝前毎の剤数データを4バ
イトの記憶領域m2の0〜3までの各アドレスに書込
む。図8はキー入力モードでのCRT(22)の表示内
容を示しており、オペレータのキー入力による薬剤名及
びこの薬剤の朝・昼・夕・就寝前毎の剤数と日数は表示
部(31)(32)(33)にて夫々表示し、そして薬
剤名に対応する錠剤種コードは表示部(34)にて表示
する。この図8に示す入力例では、A錠・B錠・C錠・
D錠を夫々朝・昼・夕毎に一錠づつ7日分分包すること
がキー入力されたわけである。したがって処方データメ
モリM2のNo.1からNo.4までの錠剤種コードを
ストアする各記憶領域m4には、夫々A・B・C・Dの
各錠剤に対応する錠剤種コードが書込まれ、且つNo.
1からNo.4までの剤数データをストアする各記憶領
域m2の朝・昼・夕に対応するアドレス0〜2には夫々
剤数データ「1」アドレス3には剤数データ「0」が書
込まれ、そして記憶領域m1には日数データ「7」が書
込まれる。そして剤数データと日数データの入力により
朝・昼・夕・就寝前毎の総分包数を演算して記憶領域m
3の各アドレス0〜3までにストアすると共に、CRT
(22)の表示部(35)に表示する。またキー入力部
(12)にて入力される患者名・コード・処方年月日・
診療科目は夫々メモリM2の記憶領域m5・m6・m7・m
8にストアされるとともに、CRT(22)の表示部
(36)(37)(38)(39)で表示される。患者
名・コード・処方年月日、診療科目は分包袋に印字する
データであり、文字及び数字毎に夫々キャラクタコード
にてメモリM2にストアされる。
That is, in the N 12 step, the number of days data is written in the 1-byte storage area m 1 of the prescription data memory M 2 , and the drug name designated by key input is converted into a code indicating the tablet type. Storage area of the current byte m
Write the number in 4, and enter the drug number data for each morning, noon, evening, and bedtime of the tablet type, which is key-inputted after designation of the drug name, to each address of 0 to 3 in the 4-byte storage area m 2. Write. FIG. 8 shows the display contents of the CRT (22) in the key input mode. The name of the drug by the operator's key input and the number and the number of days of this drug every morning, noon, evening and before bedtime are displayed on the display unit (31). ) (32) and (33), respectively, and the tablet type code corresponding to the drug name is displayed on the display unit (34). In the input example shown in FIG. 8, A lock, B lock, C lock,
The key input was to pack each D tablet in the morning, lunch, and evening for 7 days. Therefore, the prescription data memory M 2 No. 1 to No. The tablet type codes corresponding to the tablets A, B, C, and D are written in the respective storage areas m 4 for storing the tablet type codes up to 4, and No. 4 is stored.
1 to No. Number agent data "0" to each agent the number of data "1" address 3 is written in the address 0-2 corresponding to the morning, noon and evening each storage area m 2 to store up to 4 dosage number of data , And the number of days data “7” is written in the storage area m 1 . Then, by inputting the number-of-agents data and the number-of-days data, the total number of packages for morning, noon, evening, and before going to bed is calculated, and the storage area m
Store at each address 0 to 3 of 3 and CRT
It is displayed on the display unit (35) of (22). In addition, the patient name, code, prescription date, and the like input at the key input unit (12)
Each medical care area is a memory area of the memory M 2 m 5 , m 6 , m 7 , m
It is stored in 8, and displayed on the display parts (36) (37) (38) (39) of the CRT (22). The patient name, code, prescription date, and medical treatment item are data to be printed on the sachet, and are stored in the memory M 2 as a character code for each character and number.

【0030】このようにして処方データを作成して処方
データメモリM2にストアするとN1 2ステップからN10
ステップに復帰する。N10ステップで制御回路部(1
4)より転送要求信号が送信されているのを検出する
と、N13ステップに移行して処方データの有無を判定す
る。そして前述のN12ステップの処理により処方データ
メモリM2に処方データをストアしていると、N14ステ
ップでは伝送線(17)を通して制御回路部(14)に
記憶領域m1・m2・m3・m4にストアしている日数デー
タ・剤数データ・総分包数データ・錠剤種コードを処方
データとして転送する。このとき処方データはインター
フェイス(15)でシリアル変換されて送信される。N
15ステップでは、複数の印字フォーマットを設定してい
る場合にキー入力部(12)により指定の印字フォーマ
ットを選定し、N16ステップは指定の印字フォーマット
と処方データメモリM2の記憶領域m5・m6・m7・m8
にストアされているデータに基づき印字データを作成す
る。このときの印字データは毎回同じデータのみを変換
した図14のフォーマットであり、服用時期は未変換の
ままである。
When the prescription data is created in this manner and stored in the prescription data memory M 2 , the steps N 1 2 to N 10 are performed.
Return to step. The control circuit unit at N 10 Step (1
When it is detected that the transfer request signal is transmitted from 4), the process shifts to N 13 step to judge the presence / absence of prescription data. When the prescription data is stored in the prescription data memory M 2 by the processing of the N 12 step, the storage area m 1 · m 2 · m is stored in the control circuit unit (14) through the transmission line (17) in the N 14 step. dates data agent number of data total number of packets data tablet type code that stores the 3-m 4 transfers the prescription data. At this time, the prescription data is serially converted by the interface (15) and transmitted. N
In step 15 , when a plurality of print formats are set, the designated print format is selected by the key input unit (12), and in step N 16, the designated print format and the storage area m 5 of the prescription data memory M 2 m 6 · m 7 · m 8
Create print data based on the data stored in. The print data at this time is in the format of FIG. 14 in which only the same data is converted each time, and the dose time remains unconverted.

【0031】この後、図13の印字フォーマットを基
に、キー入力部(12)のテンキー及び文字キーを操作
して、患者コードを示す「#」のアドレスである1行目
の1字目から8字目に「1」「2」「3」「4」「5」
「6」「7」「8」の数字を入力し、診療科目を示す
「%」のアドレスである1行目の13字目から16字目
に「第」「一」「内」「科」の文字を入力し、患者名を
示す「*」のアドレスである2行目の2字目、4字目、
7字目、及び9字目に「山」「本」「太」「郎」の文字
を入力し、処方年月日を示す「$」のアドレスである4
行目の8字目から15字目(10,13字目を除く)に
「9」「1」「1」「1」「0」「7」の数字を入力
し、これらをメモリM3に印字データとしてストアす
る。これが、図14に示す印字フォーマットである。
Thereafter, based on the print format of FIG. 13, the ten keys and the character keys of the key input unit (12) are operated to start from the first character of the first line which is the address of "#" indicating the patient code. Eighth character "1""2""3""4""5"
Enter the numbers "6", "7", and "8", and enter the number "13th" to "16th" in the 1st line, which is the address of "%" indicating the medical treatment item Enter the character of "," and the second and fourth characters of the second line, which is the address of "*" indicating the patient name,
Enter the characters "mountain", "book", "thick", "ro" in the 7th and 9th characters, and the address of "$" indicating the prescription date is 4
15 characters counted from the 8 characters th-th row (except for the 10, 13 characters eyes) Enter the number of "9", "1", "1", "1", "0" and "7", these to the memory M 3 Store as print data. This is the print format shown in FIG.

【0032】図9はN16ステップの動作を説明するフロ
ーチャートである。n1ステップは処方データメモリM2
の各記憶領域m5・m6・m7・m8の夫々の最初のアドレ
スを指定する。n2ステップは印字フォーマットメモリ
1の最初のアドレスにストアしているキャラクタコー
ドが、「*」・「!」・「#」・「$」・「%」記号の
何れを表わしているかを判定してn3ステップに移行す
る。キャラクタコードが「*」・「!」・「#」・
「$」・「%」以外のものを示していると印字項目でな
いためにn7ステップに移行する。n8ステップは、記号
によって示される印字項目の種類に応じたメモリM2
記憶領域の最初のアドレスにストアされているデータを
メモリM3に書込む。この場合、印字フォーマットメモ
リM1の最初のアドレスには「#」を表わすキャラクタ
コードがストアされて患者コードを示しているために、
メモリM2の記憶領域m5がアドレスされる。n3ステッ
プでは記憶領域m5の最初のアドレスにストアしている
キャラクタコードを印字データメモリM3にストアす
る。印字データメモリM3は印字フォーマットメモリM1
にあわせて1〜64までのアドレスを有しており、対応
するアドレスにメモリM2より読取った内容がストアさ
れる。n4ステップではメモリM2の選定した記憶領域の
アドレスを1つシフトし、n5ステップではメモリM1
びM3のアドレスを1つシフトし、n6ステップではメモ
リM1のアドレスがオーバーしたかを判定する。この場
合、患者コードの最初の1字目についてのキャラクタコ
ードを読取った段階でn2ステップに復帰する。n2ステ
ップでは印字フォーマットメモリM1の次のアドレスに
ストアされているキャラクタコードを判定する。かかる
動作を繰り返して印字項目に応じて印字する文字がキャ
ラクタコードにより印字データメモリM3に書込まれて
印字データが作成される。例えば図3に示す印字例では
患者コードに「12345678」と印字するものであ
るが、このときメモリM3の1行目の1字目から8字目
迄に対応する各アドレスには夫々「1」「2」「3」
「4」「5」「6」「7」「8」を示すキャラクタコー
ドがストアされる。しかしながら患者コードの9字目以
降については本例では文字がないためにスペースとすべ
く、メモリM3の対応するアドレスにはスペースを表わ
すキャラクタコードをストアしてn2ステップとなる。
FIG. 9 is a flow chart for explaining the operation of N 16 steps. The n 1 step is the prescription data memory M 2
The respective first addresses of the respective storage areas m 5 , m 6 , m 7 , m 8 are designated. In the n 2 step, it is determined whether the character code stored in the first address of the print format memory M 1 represents “*”, “!”, “#”, “$” or “%” symbol. Then, the process proceeds to n 3 steps. Character code is "*", "!", "#",
"$", And the process proceeds to n 7 step in because they are not printable item "%" indicates anything other than. n 8 step writes the data stored in the first address of the storage area of the memory M 2 according to the type of print item indicated by the symbol in the memory M 3. In this case, since the character code representing “#” is stored at the first address of the print format memory M 1 to indicate the patient code,
The memory area m 5 of the memory M 2 is addressed. The n 3 step stores character codes that are stored in the first address of the storage area m 5 the print data memory M 3. The print data memory M 3 is the print format memory M 1
In addition, it has an address of 1 to 64, and the content read from the memory M 2 is stored in the corresponding address. In the n 4 step, the address of the selected storage area of the memory M 2 is shifted by one, in the n 5 step, the addresses of the memories M 1 and M 3 are shifted by 1, and in the n 6 step, the address of the memory M 1 is over. To determine. In this case, when the character code for the first character of the patient code is read, the process returns to the n 2 step. In n 2 determining a character code that is stored in the next address of the print format memory M 1. By repeating this operation, the character to be printed according to the print item is written in the print data memory M 3 by the character code to create the print data. For example, in the printing example shown in FIG. 3 is to print a "12345678" to the patient code, respectively in each address corresponding this time from one character of the first row of the memory M 3 until 8 characters th "1 "2""3"
Character codes indicating "4", "5", "6", "7", and "8" are stored. However, since there is no character in this example for the 9th and subsequent characters of the patient code, a character code representing the space is stored in the corresponding address of the memory M 3 , and the step becomes n 2 steps.

【0033】n2ステップでは、印字フォーマットメモ
リM1の1行目の13字目に対応するアドレスにストア
されているキャラクタコードが印字項目を示すものであ
るかを判定する。このアドレスには「%」を表わすキャ
ラクタコードがストアされており、n3ステップに移行
して該アドレスにストアしているキャラクタコードを印
字データメモリM3の対応するアドレスにストアし、n4
ステップでは、メモリM 2の選定した記憶領域のアドレ
スを1つシフトしn5ステップでメモリM1及びM3のア
ドレスを1つシフトする。以下、印字フォーマットの1
行目の14字目から16字目迄については「%」のキャ
ラクタコードが設定されているために、n2・n3・n4
・n5ステップの処理を繰り返す。このように印字フォ
ーマットメモリM1の1字から64字までに対応する各
アドレスにストアしているキャラクタコードの内容に基
づき上記の処理を行なうことで、処方データメモリM2
の各記憶領域m5・m6・m7・m8にストアされている各
印字項目についての印字内容は、印字フォーマットメモ
リM1に設定した印字フォーマット(図13のフォーマ
ット)に従って印字データメモリM3にストアする。そ
して各印字項目の印字内容が印字フォーマットに設定し
た文字数以内に納まるときは、残り分にスペースを表わ
すキャラクタコードをストアする。
N2In step, print format memo
Re M1Store at the address corresponding to the 13th character on the first line of
The character code displayed indicates a print item.
Determine if This address has a "%"
Lacta code is stored and n3Go to step
And mark the character code stored at the address.
Character data memory M3Stored at the corresponding address ofFour
In step, memory M 2Address of the storage area selected by
Shift one step nFiveMemory in steps M1And M3A
Shift one dress. Below is the print format 1.
For the 14th to 16th characters in the line, the "%"
Since the lacta code is set, n2・ N3・ NFour
・ NFiveThe processing of steps is repeated. In this way,
-Mat memory M1Each corresponding to 1 to 64 characters
Based on the contents of the character code stored in the address
Based on the above, the prescription data memory M2
Each storage area mFive・ M6・ M7・ M8Each stored in
For the print contents of the print items, see the print format memo.
Re M1The print format set to
Print data memory M3Store at. So
And set the print contents of each print item to the print format.
If it fits within the number of characters
Store the character code.

【0034】このようにして図14に示すフォーマット
の印字データを作成してメモリM3にストアすると、N
17ステップでは伝送線(17)を通して制御回路部(1
4)に印字データを転送するが、印字データはインター
フェイス(15)でシリアル変換して送信される。N18
ステップでは印字データの転送終了により処方データメ
モリM2をクリアしてN10ステップに復帰してキー入力
を待機する。そして包装機(11)側の制御回路部(1
4)は転送された処方データ及び印字データに基づき包
装機(11)の包装動作を制御するものである。
When the print data in the format shown in FIG. 14 is created in this manner and stored in the memory M 3 , N
In 17 steps, the control circuit (1
The print data is transferred to 4), but the print data is serially converted by the interface (15) and transmitted. N 18
In step, the prescription data memory M 2 is cleared upon completion of transfer of print data, the process returns to step N 10 and waits for key input. Then, the control circuit unit (1
4) controls the packaging operation of the packaging machine (11) based on the transferred prescription data and print data.

【0035】制御回路部(14)の動作を図10のフロ
ーチャートによって説明する。N’ 1ステップで転送要
求信号を出力して処方データ及び印字データを受信する
と、N’2ステップからN’3ステップとなり処方データ
をメモリM’2にストアするとともに印字データをメモ
リM’3にストアする。このときメモリM’2は処方デー
タメモリM2の記憶領域m1〜m4に対応する記憶領域
m’1〜m’4に日数データ・剤数データ・総分包数デー
タ・錠剤種コードを夫々ストアして処方データを記憶す
る。またメモリM’3は印字データメモリM3と同様1〜
64までのアドレスを有しており、メモリM3の各アド
レスにストアされているキャラクタコードを同じアドレ
スにストアして印字データを記憶する。即ち、メモリ
M’3には図14に示す印字データがストアされる。
N’4ステップはメモリM’2の記憶領域m’3のデータ
に基づき1日における最初の服用時期を検出して、その
服用時期に応じた値を制御カウンタ(27)にセットす
る。即ち、記憶領域m’3の0〜3までの各アドレスで
最初に「0」以外の内容をストアしているアドレスを検
出することで最初の服用時期を検出する。そして検出し
た服用時期が朝・昼・夕・就寝前に応じて制御カウンタ
(27)には夫々「0」・「1」・「2」・「3」がセ
ットされるが、本例では朝が最初の服用時期のため制御
カウンタ(27)の内容CNは「0」にセットされる。
N’5ステップは記憶領域m’3の内容が「0」かを判定
するが、このとき制御カウンタ(27)の内容「0」に
対応してm’ 3のアドレス0が指定されており、アドレ
ス0の内容が「0」かが判定される。N’6ステップは
メモリM’2の記憶領域m’4にストアしている処方デー
タの錠剤種コードをレジスタR1にストアし、メモリ
M’2の記憶領域m’2にストアしている剤数データをレ
ジスタR2にストアする。このときm’2に関しては、制
御カウンタ(27)の内容CNが「0」のために先ず各
m’2のアドレス0にストアされている剤数データが読
出されてレジスタR2にストアされる。したがってレジ
スタR1にはA・B・C・Dの各錠剤の錠剤種コードが
書込まれ、レジスタR2にはこれら錠剤種について朝の
分包分の剤数データが書込まれる。N’7ステップはレ
ジスタR2の内容が「0」かを判定するが、A・B・C
・Dの各錠剤種について少くとも一つの錠剤種の剤数デ
ータが「0」以外にあるとN’8ステップとなって錠剤
の摘出動作となる。N’8ステップに於いて、包装機コ
ントローラ(28)には剤数データが「0」以外にある
錠剤種についての錠剤種コードがレジスタR1より読出
されて導入される。そして包装機コントローラ(28)
はA・B・C・Dの各種錠剤を収納したタブレットケー
ス(5)…(5)に対して摘出信号を出力する。したが
って摘出信号が導入されたタブレットケース(5)…
(5)は駆動して一錠の錠剤を摘出する。N’9ステッ
プでは、摘出動作を行なった錠剤種についてその剤数デ
ータより「1」を減算してN’7ステップに復帰する。
本例では、朝の分包にはA・B・C・Dの各種薬剤を一
錠づつ包装するためにレジスタR2にストアされている
A・B・C・Dの各種薬剤の剤数データは「0」とな
る。したがって朝の1分包分の錠剤が摘出されてホッパ
(2)へ導入され、次のN’10ステップでは制御回路部
(14)側での印字データ作成を行なう。
The operation of the control circuit section (14) is shown in FIG.
-It will be explained using a chart. N ’ 1Transfer required in steps
Output request signal and receive prescription data and print data
And N ’2N'from step3Steps and prescription data
Memory M '2And store the print data in a memo
Re M ’3Store at. At this time, the memory M ’2Is prescription day
Memory M2Storage area m1~ MFourStorage area corresponding to
m ’1~ M 'FourDay data, drug number data, total package number data
Store each tablet / tablet code and store prescription data
It Also, the memory M ’3Is the print data memory M3Same as
It has up to 64 addresses and has a memory M3Each ad
The character code stored in
The print data is stored in the memory. That is, memory
M ’3The print data shown in FIG. 14 is stored in.
N ’FourStep is memory M '2Storage area m '3data from
Detect the first dose time in 1 day based on
Set the value according to the time of administration in the control counter (27)
It That is, the storage area m '3At each address from 0 to 3
First, check the address that stores the contents other than "0".
The first dose is detected by taking out. And detect
Control counter depending on when you take the medicine in the morning, noon, evening, or before going to bed
In (27), “0”, “1”, “2”, and “3” are set in the respective sections.
However, in this example, it is controlled because morning is the first dose.
The content CN of the counter (27) is set to "0".
N ’FiveStep is storage area m '3Whether the content of "0" is
However, at this time, the content of the control counter (27) is changed to "0".
Correspondingly m ' 3Address 0 is specified and the address
It is determined whether the content of the scan 0 is “0”. N ’6The steps are
Memory M ’2Storage area m 'FourPrescription day stored in
Register R code1Store in memory
M ’2Storage area m '2The data on the number of drugs stored in
Dista R2Store at. At this time m '2As for
Since the content CN of the control counter (27) is "0",
m ’2Read the drug number data stored at address 0 of
Register R issued2Stored in. Therefore cash register
Star R1Is the tablet type code for each of A, B, C and D tablets.
Written, register R2About these tablet types in the morning
The data on the number of agents for the package is written. N ’7Step is
Dista R2It is judged whether the content of "0" is "A", "B", "C"
・ The number of tablets in at least one tablet type of D
If the data is other than "0", N '8Step into tablets
It becomes the extraction operation. N ’8In the step,
The controller (28) has data other than "0" for the number of agents.
Register R is the tablet type code for the tablet type1Read from
Will be introduced. And packaging machine controller (28)
Is a tablet case containing various tablets of A, B, C and D.
The extraction signal is output to the switches (5) ... (5). But
Tablet case (5) with the extraction signal introduced ...
(5) drives to extract one tablet. N ’9Step
In the case of the tablet type for which the extraction operation was performed,
Subtract "1" from the data, N '7Return to step.
In this example, one kind of A, B, C, D drugs is used in the morning sachet.
Register R for packaging locks2Is stored in
The number data for each type of drug A, B, C, D is “0”.
It Therefore, one morning's worth of tablets are taken out and put into the hopper.
Introduced in (2), the next N 'TenControl circuit part in step
The print data is created on the (14) side.

【0036】図11はN’10ステップの動作を示すフロ
ーチャートである。n’1ステップは制御カウンタ(2
7)の内容CNにより服用時期を判定し、n’2ステッ
プはその服用時期の文字を表わすキャラクタコードをメ
モリM’4にストアする。この場合、制御カウンタ(2
7)の内容CNは「0」で服用時期は朝を示しており、
「朝食後に服用下さい」と印字するために服用時期を表
わす各キャラクタコードを夫々メモリM’4にストアす
る。しかして本例では服用時期については全角、2倍
角、4倍角の混在文字で15字分の印字を行なうように
設定されているために、16字目の1字分だけをスペー
スとすべくスペースのキャラクタコードをメモリM’4
にストアする。n’3ステップはメモリM’3の1字目に
対応するアドレスにストアしているデータが服用時期を
示す記号「!」を表わすものであるかを判定する。本例
で設定した印字フォーマットによると、メモリM’3
3行目の2,4,6,8,10,12,13,14,1
5字目に対応するアドレスにストアされているキャラク
タコードが服用時期を示している。したがってn’3
テップからn’6ステップとなってメモリM’3のアドレ
スを1つシフトし、n’7ステップでメモリM’3のアド
レスがオーバーしていないことを判定するとn’3ステ
ップに復帰する。そしてこのn’3ステップではメモリ
M’3の2字目に対応するアドレスにストアされている
キャラクタコードが「!」を表わすものかを判定する。
このようにメモリM’3が3行目の2字目に対応するア
ドレスを指定されるまでは、順次n’3・n’6・n’7
ステップを繰り返して処理する。そしてメモリM’3
3行目の2字目に対応するアドレスを指定するとn’3
ステップからn’4ステップとなって、メモリM’3の該
アドレスにはメモリM’4の最初のアドレスにストアし
ている「朝」を表わすキャラクタコードをストアし、
n’5ステップでメモリM’4のアドレスを1つシフト
し、n’6ステップでメモリM’3のアドレスを1つシフ
トし、n’7ステップでメモリM’3のアドレスがオーバ
ーしていないことを判定するとn’3ステップに復帰す
る。同様にM’3の3行目の4字目に対応するアドレス
には「!」を表わすキャラクタコードがストアされてお
り、n’3ステップからn’4ステップとなって、メモリ
M’3の該アドレスにはメモリM’4の次のアドレスにス
トアしている「食」を表わすキャラクタコードをストア
し、n’5ステップでメモリM’4のアドレスを1つシフ
トし、n’6ステップでメモリM’3のアドレスを1つシ
フトし、n’7ステップでメモリM’3のアドレスがオー
バーしていないことを判定するとn’3ステップに復帰
する。以後、メモリM’3の3行目の6,8,10,1
2,13,14,15字目に対応する各アドレスにはメ
モリM’4にストアされている「後に服用下さい」を表
わすキャラクタコードが順次ストアされる。そしてメモ
リM’3の3行目の16字目以降に対応する各アドレス
には「!」を表わすキャラクタコードがストアされてお
らず順次n’3・n’6・n’7ステップを繰り返して処
理し、4行目の16字目に対応するメモリM’3のアド
レスを指定した後、更にn’3ステップからn’6ステッ
プとなってメモリM’3のアドレスをシフトすると、
n’7ステップでメモリM’3のアドレスがオーバーして
いることを判定してN’11ステップに移行する。
[0036] FIG. 11 is a flowchart showing an N '10 step operation. n '1 step control counter (2
To determine when taking the contents CN of 7), n '2 step a character code representing the dose timing character memory M' to store 4. In this case, the control counter (2
7) Content CN is "0", indicating that it is taken in the morning,
To store each character code to each memory M '4 representing taking time to print "Please take it after breakfast." However, in this example, the dose is set to print 15 double-byte, double-double, and 4-double-width mixed characters, so there should be only one space for the 16th character. memory M '4 the character code of
Store at. n '3 step is the memory M' determines whether represents the symbol "!" the data that is stored in the address corresponding to one character first of 3 indicates the time taking. According to the print format set in this example, the second, second, fourth, sixth, eighth, tenth, twelfth, thirteenth, fourteenth, and first rows of the memory M ′ 3 are
The character code stored in the address corresponding to the fifth character indicates the time of dose. Thus 'was shifted one address 3, n' memory M is n 'of three steps n' and 6 Step 7 Step 'decision to the n that the address of 3 is not over' 3 Step memory M Return. And 'The 3 step memory M' The n determines that the character code that is stored in the address corresponding to the 2 letters th 3 represents "!".
Thus the memory M 'to 3 are designated the address corresponding to the 2 letters th third line sequentially n' 3 · n '6 · n' 7
Repeat steps to process. And 'Specifying the address corresponding to the 2 letters th third row of 3 n' memory M 3
'Is 4 and step, the memory M' from step n to the address 3 stores the character code representing the "morning" that stores the first address of the memory M '4,
n is shifted one address 4 'memory M in five steps', n and shifted one address of 3 '6 memory M at step', n 3 address '7 memory M at step' is not over it returns to the determination to the n '3 steps. Similarly 'has the address corresponding to the 4 character th third line of 3 is stored a character code representing the "!", N' M 'is 4 and step, the memory M' of three steps n 3 of the said address 'stores the character code representing the "food", as stored in the next address of 4, n' memory M 'is shifted one address 4, n' memory M at 5 step 6 step 'was shifted one address 3, n' memory M 7 memory M at step returns to '3 addresses the determination to the n that it is not over' 3 steps. After that, 6, 8, 10, 1 in the third row of the memory M ′ 3
Each address corresponding to 2,13,14,15 character th character codes indicating "Please take after" which is stored in the memory M '4 are sequentially stored. And 'in each address corresponding to the 16 characters onward in the third row of 3 sequentially n not been character code that represents the "!" The store' memory M Repeat 3 · n '6 · n' 7 step treated, 'after the address of 3, further n' memory M corresponding to 16 words of the fourth row when shifting the address of 3 'memory M becomes 6 step' to 3 step n,
n 3 address' memory M in seven steps' shifts to determine that they are over-N '11 in step.

【0037】こうして包装機(11)側の制御回路部
(14)がメモリM’3に服用時期を表わすキャラクタ
コードを書込むことで図15に示す印字データが完成
し、N’ 11ステップでは印字データをプリンタコントロ
ーラ(29)へ導入する。プリンタコントローラ(2
9)はキャラクタジェネレータを具備しており印字デー
タ(図15に示すもの)が示す1行目の1字目から順次
印字して行く。図10のN’ 11ステップに示す印字動作
内容を図12のフローチャートによって説明する。ま
ず、n1ステップでアドレスをセットした後、n2ステッ
プで該当する1行内に4倍コードがあるか否かを判定す
る。本実施例では3行目を除いては4倍コードはないた
めn12ステップに移行し、3行目は4倍コードがあるた
めn3ステップに移行する。n3ステップでは該当するア
ドレスに4倍コードがあるか否かを判定する。3行目の
1字目のアドレスには4倍コードがあるためn4ステッ
プに移行するが、7字目以降のアドレスには4倍コード
はないためn7ステップに移行する。n4ステップでは4
倍角文字の上半分コードが出力される。即ち、「朝」の
文字の上半分のコードが出力される。そして、n5ステ
ップでアドレスをシフトした後、n6ステップで文字を
出力する。次にn7ステップでアドレスをシフトした
後、n8ステップで1行分の印字が終了したか否かを判
定する。終了していない場合は再びn3ステップに戻
り、終了した場合は、n9ステップで包装紙(6)が移
送される。このときの移送量は全角の文字高が3.5m
mの場合に3.3mm程度である。(パルスモータのパ
ルス数にすると13パルス程度である。)この後、n10
ステップでプリンタヘッドを元の位置に戻してn11ステ
ップでアドレスをリセットする。そして、n12ステップ
で該当するアドレスに4倍コードがあるか否かを判定す
る。4倍コードがある場合はn13ステップで4倍角文字
の下半分コードが出力された後、n14ステップでアドレ
スがシフトされる。4倍コードがない場合はn20ステッ
プとなって該当するアドレスに2倍コードがあるか否か
を判定する。本実施例では2行目の1字目から9字目や
3行目の7字目から12字目のアドレスは倍角指定され
ているため、n21ステップとなって2倍コードが出力さ
れた後、n22ステップでアドレスがシフトされる。そし
て、これら4倍角、2倍角、全角の各文字をn15ステッ
プで出力し、n16ステップでアドレスをシフトすると、
17ステップに移行し1行分の印字が終了したか否かを
判定する。終了してない場合は再びn12ステップに戻
り、終了した場合はn18ステップとなって包装紙が移送
される。このときの移送量は全角の文字高が3.5mm
の場合に4.4mm程度である。(パルスモータのパル
ス数にすると17パルス程度である。)そして最後に、
19ステップとなって4行分の印字が終了したか否かを
判定し、終了していない場合は再びn1ステップに戻
り、終了した場合は図10のN’12ステップとなる。
Thus, the control circuit section on the packaging machine (11) side
(14) is the memory M '3Character indicating when to take
Writing the code completes the print data shown in Figure 15.
N ' 11In step, print data is
Introduced to Rahra (29). Printer controller (2
9) is equipped with a character generator and
Data (shown in FIG. 15) sequentially from the first character on the first line
I will print it. N'of FIG. 11Printing operation shown in steps
The contents will be described with reference to the flowchart of FIG. Well
No, n1After setting the address in step, n2Step
Check whether there is quadruple code in the corresponding line
It In this embodiment, there is no quadruple code except for the third line.
N12Go to step and the third line has quadruple code
N3Go to step. n3In step
Determine if the dress has a quad code. 3rd line
There is a quadruple code in the first character address, so nFourStep
Code, but quadruple code for 7th and subsequent addresses
Because there is no n7Go to step. nFour4 in step
The upper half code of double-width characters is output. That is, in the "morning"
The code of the first half of the character is output. And nFiveSte
After shifting the address with6Letters in steps
Output. Then n7Address shifted in steps
After, n8In step, determine whether printing for one line is completed.
Set. N if not finished3Return to step
And when finished, n9The wrapping paper (6) is transferred in steps
Will be sent. At this time, the full-width character height is 3.5 m.
In the case of m, it is about 3.3 mm. (Pulse motor power
The number of lus is about 13 pulses. ) After this, nTen
Return the printer head to its original position in step n11Ste
Reset the address. And n12Step
Check if there is a quad code in the corresponding address with
It N if there is a quad code13Quadruple characters in steps
After the lower half code of14Address in steps
Shifts. N if there is no quad code20Step
Whether there is a double code at the corresponding address
To judge. In this embodiment, from the first character to the ninth character in the second line
Addresses from the 7th character to the 12th character on the 3rd line are specified
Therefore, ntwenty oneIt becomes a step and the double code is output.
And then ntwenty twoThe address is shifted in steps. That
Then, each of these quadruple, double, and fullwidth characters15Step
Output in n16If you shift the address in steps,
n17Go to step and check whether printing for one line is completed.
judge. N if not finished12Return to step
Or n when finished18The wrapping paper is transferred in steps
To be done. The transfer amount at this time is 3.5 mm for full-width characters.
In the case of, it is about 4.4 mm. (Pulse of pulse motor
The number of pulses is about 17 pulses. )And finally,
n19It becomes a step and whether or not the printing of 4 lines is completed
It is judged, and if it is not completed, it is again n1Return to step
When completed, N'of FIG.12It becomes a step.

【0038】N’12ステップでは、包装機コントローラ
(28)はホッパ(2)内に設けたシャッタ・縦ヒート
シール機構(9)・横ヒートシール機構(10)に夫々
制御信号を与えて錠剤投入・分包袋の形成及び密封の各
動作を制御し、しかる後、送りローラ(1)の駆動装置
へ制御信号を与え包装紙(6)を長手方向へ所定寸法移
送させて朝分の分包の包装動作を終了する。N’13ステ
ップは、メモリM’2の記憶領域m’3のアドレス0にス
トアしているデータより「1」を減算し、N’14ステッ
プではm’3の0〜3までの全てのアドレスのデータが
「0」であるかを判定する。この場合、朝の分包が一つ
終了して記憶領域m’3のアドレス0のデータより
「1」を減算した段階であり、N’15ステップで制御カ
ウンタ(27)の内容CNを「0」から「1」に進めて
N’5ステップに復帰する。そしてN’5ステップでは制
御カウンタ(27)の内容「1」に対応して記憶領域
m’3のアドレス1を指定してその内容が「0」かを判
定するが、このときアドレス1の内容は「7」のために
N’7ステップに移行して昼分の分包動作となる。
[0038] N '12 In step, the packaging machine controller (28) is a hopper (2) shutter longitudinal heat seal mechanism provided in (9) and lateral heat the sealing mechanism (10) gives each control signal tablets turned Controlling each operation of forming and sealing the sachet, and then giving a control signal to the drive device of the feed roller (1) to move the wrapping paper (6) by a predetermined dimension in the longitudinal direction to sachet for morning The packaging operation of is finished. N '13 steps, the memory M' all addresses' by subtracting "1" from data that is stored in the address 0 of 3, N 'storage area m 2 up to 0-3 m' 3 in 14 steps It is determined whether the data of is 0. In this case, 'a step obtained by subtracting "1" from data in the third address 0, N' morning packing is one exit and the storage area m 15 "0 contents CN of the control counter in step (27) from "proceed to" 1 "N 'to return to the 5 step. And N is the contents designated by the address 1 of the 3 '5 steps to the storage area m corresponding to the content "1" of the control counter (27)' determines whether "0", the contents of the time address 1 is the packing operation of the daytime minute shifts to N '7 steps to "7".

【0039】N’6ステップでは、メモリM’2の記憶領
域m’4にストアしている錠剤種コードをレジスタR1
ストアするとともに、メモリM’2の各記憶領域m’2
剤数データをレジスタR2にストアする。このときm’2
は制御カウンタ(27)の内容CNが「1」のためアド
レス1にストアしている剤数データが読出される。そし
てN’7ステップからN’8ステップとなると、レジスタ
2にストアされている剤数データが「0」以外にある
錠剤種についてタブレットケース(5)…(5)より錠
剤を摘出し、N’9ステップではレジスタR2の剤数デー
タより「1」を減算する。本例では、昼の分包もA・B
・C・Dの各種錠剤を一錠づつ包装するために、レジス
タR2の剤数データは全て「0」となり、N’7ステップ
からN’10ステップとなる。N’10ステップでは制御カ
ウンタ(27)の内容CNが「1」のために服用時期と
して「朝食後」を印字すべく、メモリM’3の3行目1
字目から6字目に対応するアドレスに夫々「朝」を表わ
すキャラクタコード、「食」を表わすキャラクタコー
ド、及び「後」を表わすキャラクタコードをストアす
る。そして服用時期を「朝食後」とした印字データに基
づきN’11ステップでは包装紙に図3に示す印字を行な
う。N’12ステップではホッパ(2)に取り出した昼の
一分包分の錠剤の包装動作を行ない、N’13ステップで
はメモリM’2の記憶領域m’3のアドレス1にストアし
ているデータから「1」を減算して昼分の一分包動作が
終了したものとする。そしてN’14ステップからN’15
ステップとなると制御カウンタ(27)の内容CNを
「1」から「2」に進める。したがってメモリM’2
記憶領域m’3及び記憶領域m’2は夫々アドレス2が指
定され、且つ印字データの服用時期も「夕食後」を印字
するよう設定されて夕分の分包動作となる。そして夕分
の分包動作の終了にて制御カウンタ(27)の内容CN
を「2」から「3」に進めてN’5ステップとなる。
N’5ステップでは制御カウンタ(27)の内容「3」
に応答して記憶領域m’3のアドレス3にストアされて
いるデータを読出して判定する。しかしながら本例の処
方データによると、就寝前には服用しないために記憶領
域m’3のアドレス3の内容は「0」でありN’5ステッ
プからN’14ステップとなる。したがって就寝前につい
ての包装動作は省略されたことになり、N’14ステップ
からN’15ステップとなると制御カウンタ(27)の内
容CNを「3」から「0」にシフトしてN’5ステップ
に復帰する。したがって再び朝分の包装動作となる。こ
のようにして朝・昼・夕の順序でメモリM’2の記憶領
域m’3のアドレス0〜3にストアしている内容が全て
「0」になるまで分包動作を繰り返す。しかしてメモリ
M’2の記憶領域m’3のアドレス0〜3にストアしてい
る内容が全て「0」となると、1処方データに関しての
包装動作が終了したとしてN’14ステップからN’1
テップに復帰する。そしてN’1ステップでは次の包装
動作に関する処方データの転送要求信号を制御回路部
(13)に送信する。
[0039] N 'in 6 steps, the memory M''as well as store the tablet type code that stores the 4 in register R 1, memory M' storage area m 2 number agent of each storage area m '2 of 2 Store the data in register R 2 . At this time, m '2
Since the content CN of the control counter (27) is "1", the number-of-agent data stored at address 1 is read. When the the 8 step 'N from 7 Step' N, register R 2 to the store has been a dosage number data is excised tablets from tablet cases (5) ... (5) for the tablets species is other than "0", N In the ' 9 step, "1" is subtracted from the drug number data in the register R 2 . In this example, the day packing is also AB
In order to package each type of C and D tablets one by one, the drug number data in the register R 2 is all “0”, which is N ′ 7 steps to N ′ 10 steps. 'To the contents CN 10 control counter in step (27) to print the "after breakfast" as time taken for the "1", the memory M' N 3 row 1 of 3
The character code representing "morning", the character code representing "meal", and the character code representing "after" are stored in the addresses corresponding to the sixth to sixth characters, respectively. And for printing shown in FIG. 3 in wrapping paper at basis taking time to print data to "after breakfast" N '11 step. N 'is 12 steps perform packaging operations of a minute packing fraction of tablet day taken out in the hopper (2), N' data is 13 steps are stored in the address 1 of the 3 'storage area m 2' memory M It is assumed that the daytime one-minute packet operation is completed by subtracting "1" from. Then N 'N from 14 step' 15
At the step, the content CN of the control counter (27) is advanced from "1" to "2". Thus the memory M '2 of the storage area m' 3 and the storage area m '2 are designated respectively address 2, and the packing operation is set evening content to and take time of the print data is also printed "after supper" Become. Then, at the end of the evening packing operation, the contents CN of the control counter (27)
The the N '5 step proceed to "3" from "2".
The contents of N '5 in the step control counter (27) "3"
In response to this, the data stored in the address 3 of the storage area m ′ 3 is read and determined. However, according to the prescription data of this example, since it is not taken before going to bed, the content of the address 3 in the storage area m ′ 3 is “0”, which is N ′ 5 step to N ′ 14 step. Thus the packaging operation for bedtime will be omitted, N N '5 steps the contents CN from "3" is shifted to "0" in the 15 step' 14 N from step 'and control counter (27) Return to. Therefore, the morning packing operation is performed again. In this way, the content that is stored in the morning, noon and evening of the order to the address 0 to 3 of 3 'storage area m 2' memory M repeats the packing operation until all becomes "0". Thus the memory M '2 of the storage area m' all contents that are stored in the third address 0-3 is "0", 'N from 14 step' N as packaging operation with respect to 1 prescription data is completed 1 Return to step. And the N '1 step transmits a transfer request signal prescription data for the next packaging operation control circuit section (13).

【0040】[0040]

【発明の効果】以上のように本発明の錠剤包装機の薬包
印字方法によれば、印字項目のうち特に重要な情報を4
倍角の大きな文字で印字できると共に、その他の情報を
標準角等の小さな文字で印字することができ、分包袋の
限られた領域内に必要とする全ての印字項目を印字しつ
つ、特に重要な情報を4倍角の大きな文字で印字するこ
とができる。この結果、患者にとって重要な情報が見易
くなる。
As described above, according to the medicine pack printing method of the tablet packing machine of the present invention, particularly important information among the printing items is 4
In addition to being able to print with double-width characters, other information can also be printed with small characters such as standard angles, which is especially important while printing all necessary print items within the limited area of the sachet. Information can be printed in large quadruple characters. As a result, important information is easy to see for the patient.

【0041】また、4倍角文字は文字の上半分と下半分
に分けて印字するため、全角文字用の単一のヘッドで4
倍角文字の印字が行なえる。
Further, since a quadruple-width character is printed separately in the upper half and the lower half of the character, a single head for double-width characters can print 4 characters.
Double-byte characters can be printed.

【0042】更に、プリンタのヘッドは4倍角文字の上
半分を印字した後に行頭に戻されるため、下半分を印字
するときにヘッドのスタート位置の違いや包装紙がシワ
になることにより生ずる上半分と下半分の印字の位置ズ
レは解消でき、整合性が維持される。即ち、包装紙は通
常2つ折りされて幅方向の一端に折目部を他端に開口を
有する2枚重ねとなっているため、この折目部側から上
半分を印字した後に再び折目部側から下半分を印字すれ
ば、包装紙がシワになって位置ズレを起こすことはな
い。
Further, since the head of the printer prints the upper half of the quadruple character and then returns to the beginning of the line, the upper half caused by the difference in the start position of the head and the wrapping paper when the lower half is printed. The misalignment of printing in the lower half can be eliminated, and the consistency is maintained. That is, since the wrapping paper is usually folded in two and is a two-ply sheet having a fold portion at one end in the width direction and an opening at the other end, the fold portion is printed again after the upper half is printed. If you print the bottom half from the side, the wrapping paper will not wrinkle and misalign.

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

【図1】本発明の錠剤包装機を示す外観図である。FIG. 1 is an external view showing a tablet packaging machine of the present invention.

【図2】包装機構の説明図である。FIG. 2 is an explanatory diagram of a packaging mechanism.

【図3】印字例を示す包装紙の正面図である。FIG. 3 is a front view of a wrapping paper showing a printing example.

【図4】制御システム図である。FIG. 4 is a control system diagram.

【図5】印字フォーマットの設定動作を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a print format setting operation.

【図6】制御器側の動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation on the controller side.

【図7】処方データのフォーマットを示す図である。FIG. 7 is a diagram showing a format of prescription data.

【図8】処方データの入力例を示す図である。FIG. 8 is a diagram showing an input example of prescription data.

【図9】印字データ作成を示すフローチャートである。FIG. 9 is a flowchart showing print data creation.

【図10】包装機側の動作を示すフローチャートであ
る。
FIG. 10 is a flowchart showing the operation on the packaging machine side.

【図11】包装機側での印字データ作成を示すフローチ
ャートである。
FIG. 11 is a flowchart showing print data creation on the packaging machine side.

【図12】印字動作を示すフローチャートである。FIG. 12 is a flowchart showing a printing operation.

【図13】印字フォーマットを示す図である。FIG. 13 is a diagram showing a print format.

【図14】服用時期以外のコードを変換した印字フォー
マットを示す図である。
FIG. 14 is a diagram showing a print format in which codes other than the dose time are converted.

【図15】すべてのコードを変換した印字フォーマット
を示す図である。
FIG. 15 is a diagram showing a print format in which all codes are converted.

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

3 行送りローラ 6 包装紙 10 制御器 11 包装機 30 プリンタ 3 Line feed roller 6 Wrapping paper 10 Controller 11 Wrapping machine 30 Printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 モーターで駆動される送りローラに挾持
されて搬送される包装紙に、プリンタにて必要な項目を
印字すると共に分包袋を連続形成し、この分包袋に錠剤
を分割投入して密封するものにおいて、印字する文字の
大きさを4倍角に指定する手段を設け、4倍角が指定さ
れると前記プリンタにて文字の上半分の印字を1行分行
なった後、前記送りローラにて包装紙を約1行分送ると
共に前記プリンタのヘッドを行頭に戻し、このプリンタ
にて文字の下半分の印字を1行分行なうことを特徴とす
る錠剤包装機の薬包印字方法。
1. A printer prints necessary items on a wrapping paper which is held and conveyed by a feed roller driven by a motor and continuously forms a sachet, and the tablets are dividedly put into the sachet. In the case of the sealed type, a means for designating the size of the character to be printed is provided as a quadruple-width, and when the quadruple-width is designated, the printer prints the upper half of the character for one line and then feeds it. A method for printing a medicine package on a tablet packing machine, comprising feeding the wrapping paper by about one line with a roller, returning the head of the printer to the beginning of the line, and printing the lower half of the characters by one line on this printer.
JP30618791A 1991-11-21 1991-11-21 Medicine package-printing emthod of tabletpacking machine Pending JPH05147627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30618791A JPH05147627A (en) 1991-11-21 1991-11-21 Medicine package-printing emthod of tabletpacking machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30618791A JPH05147627A (en) 1991-11-21 1991-11-21 Medicine package-printing emthod of tabletpacking machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP30245799A Division JP2000085728A (en) 1999-10-25 1999-10-25 Tablet packaging machine, and its cartridge printing method

Publications (1)

Publication Number Publication Date
JPH05147627A true JPH05147627A (en) 1993-06-15

Family

ID=17954069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30618791A Pending JPH05147627A (en) 1991-11-21 1991-11-21 Medicine package-printing emthod of tabletpacking machine

Country Status (1)

Country Link
JP (1) JPH05147627A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001000508A (en) * 1999-06-22 2001-01-09 Yuyama Manufacturing Co Ltd Medicine package dividing device
KR100508723B1 (en) * 1998-10-23 2005-08-17 가부시키가이샤 유야마 세이사쿠쇼 Medication packing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100508723B1 (en) * 1998-10-23 2005-08-17 가부시키가이샤 유야마 세이사쿠쇼 Medication packing apparatus
JP2001000508A (en) * 1999-06-22 2001-01-09 Yuyama Manufacturing Co Ltd Medicine package dividing device

Similar Documents

Publication Publication Date Title
KR890005277B1 (en) Drug dispensing apparatus with a printer having programmable for mat
KR100457268B1 (en) Drug packaging machine and method for packaging drug
US6397558B1 (en) Medication packing apparatus
JPH03628A (en) Dose packer
JP3730370B2 (en) Medicine bag printing device
JP2001000508A (en) Medicine package dividing device
JPH05147627A (en) Medicine package-printing emthod of tabletpacking machine
JP2000085728A (en) Tablet packaging machine, and its cartridge printing method
JP3519753B2 (en) Tablet packing machine
KR100800293B1 (en) Medicine packing machine with bitmap image printing function and method thereof
JPH0360721B2 (en)
JPS60240623A (en) Controller for medicine packaging machine
JPH048282B2 (en)
JP2919579B2 (en) Inventory control device for drug packaging machine
JP2883478B2 (en) Control device for drug packaging machine
JPH03629A (en) Dose packer
JP3030286B2 (en) Drug packaging machine
JPH0227216B2 (en)
JP4110127B2 (en) Medicine bag printing device
JPS60148458A (en) Method and device for preparing medicine bag
JPH0227215B2 (en)
JP3519751B2 (en) Tablet packing machine
JP2810627B2 (en) Control device for drug packaging machine
JPH0253282B2 (en)
JPH07121721B2 (en) Control device for drug packaging machine