JPH06345003A - Controller for medicine packing device - Google Patents

Controller for medicine packing device

Info

Publication number
JPH06345003A
JPH06345003A JP13743994A JP13743994A JPH06345003A JP H06345003 A JPH06345003 A JP H06345003A JP 13743994 A JP13743994 A JP 13743994A JP 13743994 A JP13743994 A JP 13743994A JP H06345003 A JPH06345003 A JP H06345003A
Authority
JP
Japan
Prior art keywords
medicine
drug
data
stored
storage area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP13743994A
Other languages
Japanese (ja)
Other versions
JP2810627B2 (en
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 JP13743994A priority Critical patent/JP2810627B2/en
Publication of JPH06345003A publication Critical patent/JPH06345003A/en
Application granted granted Critical
Publication of JP2810627B2 publication Critical patent/JP2810627B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Basic Packing Technique (AREA)

Abstract

PURPOSE:To display all types of medicine to be given to a patient on a display screen of a CRT and apply an identifier such as a mark to types of medicine which cannot be packed in a packing device. CONSTITUTION:A controller for a medicine packing device comprises medicine file memories M11 to M1n for storing types of medicine to be registered and information as to whether the types of medicine can be packed in addition to a central processor 18 and a key input part 12 for extracting the types of medicine to be given to a patient from the types stored in the medicine file memories and also inputting the number of types of medicine. It comprises the central processor 18 for identifying a type of medicine which cannot be packed in the packing device 11 based on the information as to whether it can be packed and a CRT 22 for displaying the extracted types of medicine to be given to the patient, so that the types of medicine which cannot be packed among those displayed on the CRT are marked.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は病院等に於いて、患者毎
に異る処方箋に基づき一種類または数種類の薬剤を選択
的に包装できる薬剤包装機の制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for a medicine packing machine capable of selectively packing one or several kinds of medicines in a hospital or the like based on a prescription different for each patient.

【0002】[0002]

【従来の技術】薬剤包装機は、例えば特開昭59−77
568号公報で開示されているように患者の過去処方を
呼び出し、この呼び出された過去処方に基づいて所定の
処方情報を薬剤包装機で処理する情報とそれ以外の情報
とに分類し、この包装機で処理できる情報はAファイル
に、前記包装機で処理できない情報はBファイルにそれ
ぞれ格納し、Aファイルに格納された処方情報を薬剤包
装機で包装するようにしたものである。
2. Description of the Related Art A medicine packaging machine is disclosed in, for example, Japanese Patent Laid-Open No. 59-77.
As disclosed in Japanese Patent No. 568, a patient's past prescription is called, and based on the called past prescription, predetermined prescription information is classified into information to be processed by a medicine packaging machine and other information, and this packaging is performed. The information that can be processed by the machine is stored in the A file, the information that cannot be processed by the packaging machine is stored in the B file, and the prescription information stored in the A file is packaged by the medicine packaging machine.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、薬剤包
装機は、この包装機で包装しているときにはAファイル
のみ表示しているため、前記薬剤包装機で包装できない
Bファイルの処方情報をこの薬剤包装機の包装作業中に
処理できない等の問題があった。
However, since the medicine packing machine displays only the A file when the medicine packing machine packs the medicine, the prescription information of the B file which cannot be packed by the medicine packing machine is stored in the medicine packing machine. There was a problem that it could not be processed during the packaging work of the machine.

【0004】本発明は、上記の問題を解決するもので、
投薬すべき薬品種を全て表示装置に表示し、薬剤包装機
で分包不可能な薬品種を識別するマーク等を付けた薬剤
包装機の制御装置を提供することを目的としたものであ
る。
The present invention solves the above problems,
It is an object of the present invention to provide a control device for a medicine packaging machine, which displays all the medicine types to be administered on a display device and has a mark or the like for identifying a medicine type that cannot be packaged by the medicine packaging machine.

【0005】[0005]

【課題を解決するための手段】本発明は、登録される薬
品種とこの薬品種の包装可否情報を記憶する手段と、こ
の記憶手段に記憶された薬品種の中から投薬すべき薬品
種を抽出すると共にこの薬品種の薬数を入力する手段
と、前記薬品の包装可否情報により包装機において包装
不可能な薬品種を判別する手段と、前記抽出された投薬
すべき薬品種を表示する手段とを備え、この表示手段に
表示される薬品種のうち包装不可能な薬品種にマークを
付けたものである。
According to the present invention, a drug type to be registered and a means for storing packaging availability information of this drug type, and a drug type to be administered from the drug types stored in this storage means are stored. A means for extracting and inputting the number of medicines of this medicine type, a means for discriminating a medicine type that cannot be packaged in the packaging machine based on the medicine packaging availability information, and a means for displaying the extracted medicine type to be administered And a mark is attached to a non-packable drug type among the drug types displayed on the display means.

【0006】[0006]

【作用】本発明の薬剤包装機の制御装置は上記の構成に
より、登録される薬品種の包装可否情報を記憶させるこ
とができ、包装時に薬品種及びその薬数が入力される
と、表示装置に投薬すべき薬品種のすべてを表示すると
共に、その薬品種のうち包装機で包装不可能な薬品種を
検出し、この包装不可能な薬品種を識別するマーク等を
付けて作業者に知らせるようにしたものである。
With the above-described structure, the control device for the medicine packaging machine of the present invention can store the information as to whether or not the medicine type to be registered can be packaged. When the medicine type and the number of medicines are input during the packaging, the display device is displayed. In addition to displaying all the drug types to be dispensed on the packaging machine, detect the drug types that cannot be packaged by the packaging machine, and notify the worker by attaching a mark etc. to identify the drug types that cannot be packaged. It was done like this.

【0007】[0007]

【実施例】図1は錠剤包装機の外観図を示し、操作器
(10)と包装機(11)とから構成されている。操作
器(10)はキー入力部(12)のキー操作により処方
データを作成して包装機(11)に転送し、包装機(1
1)は転送された処方データにより包装動作を行う。
EXAMPLE FIG. 1 shows an external view of a tablet packing machine, which comprises an operating device (10) and a packing machine (11). The operating device (10) creates prescription data by key operation of the key input unit (12) and transfers it to the packaging machine (11), and the packaging machine (1)
1) performs the packaging operation based on the transferred prescription data.

【0008】図2は包装機(11)の構成を示し、上部
にタブレットケース収納部(1)が形成されており、そ
の下方にホッパ(2)及びシャッタ(3)と錠剤包装機
構(4)が配置されている。タブレットケース収納部
(1)には錠剤の種類に応じてタブレットケース(5)
…(5)が載置されており、タブレットケース(5)…
(5)は所定の摘出信号の入力により駆動して錠剤を摘
出し、図示しない落下通路を通してホッパ(2)へ導入
するように構成されている。錠剤包装機構(4)は、熱
溶着が可能で予め二つ折りにされた包装紙(6)を巻回
したローラ(7)、テンションローラ(8)、そして包
装紙(6)を縦にヒートシールして連続した小袋を形成
する縦ヒートシール機構(9)、更に錠剤が投入された
小袋の上部開口を密封する横ヒートシール機構(1
0)、及び送りローラ(11)とから構成されている。
そして送りローラ(11)は間欠的に駆動して包装紙
(6)を搬送し、搬送停止時に縦ヒートシールによる分
包袋の形成・シャッタ(3)の開放による分包袋への錠
剤投入・横ヒートシールによる分包袋の密封の各動作が
成される。
FIG. 2 shows the construction of the packaging machine (11), in which a tablet case storage section (1) is formed in the upper part, and below the hopper (2), the shutter (3) and the tablet packing mechanism (4). Are arranged. The tablet case (1) has a tablet case (5) according to the type of tablet.
... (5) is placed on the tablet case (5) ...
(5) is configured to be driven by the input of a predetermined extraction signal to extract a tablet and introduce it into the hopper (2) through a drop passage (not shown). The tablet wrapping mechanism (4) is heat-sealable, and the roller (7) around which the wrapping paper (6) previously folded in two is wound, the tension roller (8), and the wrapping paper (6) are heat-sealed vertically. Vertical heat-sealing mechanism (9) for forming continuous pouches, and horizontal heat-sealing mechanism (1) for sealing the upper opening of the pouch in which the tablets are loaded.
0) and a feed roller (11).
Then, the feed roller (11) is intermittently driven to convey the wrapping paper (6), and when the conveyance is stopped, a sachet is formed by vertical heat sealing and a tablet is put into the sachet by opening the shutter (3). Each operation of sealing the sachet by lateral heat sealing is performed.

【0009】図3は本発明による錠剤包装機の制御装置
を示し、(13)は操作器(10)側の制御装置、(1
4)は包装機(11)側の制御装置で、送信データをシ
リアル変換して且つ受信データをパラレル変換するイン
ターフェイス(15)(16)を介し伝送線(17)に
よって接続されている。制御装置(13)は、中央処理
装置(18)と、操作器(10)側の制御手順をプログ
ラムしたシステムメモリ(19)と、キー入力部(1
2)の操作を検出してキー入力信号を発生するキーボー
ドインターフェイス(20)と、CRT(22)の表示
制御を行うコントローラ(21)と、薬品種毎に対応す
る薬品ファイルメモリM11〜M1n及び処方データメモリ
M21〜M2nと、制御データメモリM3と、レジスタR3・
R4とを具備している。そして制御装置(14)は、包
装機(11)側の制御手順をプログラムしたシステムメ
モリ(25)と、包装機(11)の包装動作を制御する
包装機コントローラ(28)と、中央処理装置(24)
と、メモリM4と、制御カウンタ(27)と、レジスタ
R1・R2とを具備している。
FIG. 3 shows a control device for the tablet packing machine according to the present invention, in which (13) is a control device on the operating device (10) side, and (1)
Reference numeral 4) is a control device on the side of the packaging machine (11), which is connected by a transmission line (17) through interfaces (15) and (16) for converting transmission data to serial and receiving data to parallel. The control device (13) includes a central processing unit (18), a system memory (19) in which a control procedure on the operating device (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 controller (21) that controls the display of a CRT (22), and drug file memories M11 to M1n and prescriptions corresponding to each drug type. Data memories M21 to M2n, control data memory M3, register R3
It is equipped with R4. Then, the control device (14) has a system memory (25) programmed with a control procedure on the packaging machine (11) side, a packaging machine controller (28) for controlling the packaging operation of the packaging machine (11), and a central processing unit ( 24)
, A memory M4, a control counter (27), and registers R1 and R2.

【0010】図4は、制御装置(13)が薬品ファイル
メモリM11〜M1nに薬局で扱う全ての薬品の名称・略称
コード及びコード番号を登録するときの動作を示すフロ
ーチャートで、キー入力部(12)の登録開始を表わす
ファンクションキーの操作にて処理が開始される。N0
ステップでは、キー入力部(12)のテンキーの操作に
て薬品種についての任意のコード番号が入力される。こ
のとき登録すべき薬品が包装機(11)で分包可能で、
何れかのタブレットケース(5)…(5)に充填してい
る場合には、テンキーにて「0」以外のコード番号が入
力され、また包装機(11)で分包不可能な散剤或いは
水剤の場合にはテンキーによって「0」が入力される。
N1ステップはキー入力されたコード番号データを薬品
ファイルメモリM11〜M1nにストアするものである。薬
品種毎に対応する薬品ファイルメモリM11〜M1nは、夫
々図5に示すように記憶領域m7・m8・m9・m10を有
しており、薬品毎のコード番号データは記憶領域m7に
ストアする。そしてN2ステップで当該薬品種に関して
の略称がキー入力されると、N3ステップではこの略称
が既に登録されている他の薬品の略称と重複しないかを
判定して、重複しない場合にはN4ステップで略称コー
ドを対応する記憶部M11〜M1nの記憶領域m8にストア
する。例えば「A錠」という名称の薬品について略称と
して「A」が入力されたとすると、文字「A」を表わす
キャラクタコードが記憶領域m8にストアされる。一方
重複している場合にはN3ステップからN2ステップとな
ってコードが再度キー入力されるのを待機する。しかし
てN5ステップで当該薬品種の薬品名がキー入力される
と、N6ステップで薬品名を構成する各文字を夫々キャ
ラクタコードによって記憶領域m9にストアする。斯る
処理を薬品種毎に繰り返して薬品ファイルメモリM11〜
M1nにコード番号データ・略称コード及び薬品名を登録
し、N7ステップでキー入力部(12)の登録終了を表
わすファンクションキーが操作されたことを検出すると
登録動作を終了する。
FIG. 4 is a flow chart showing the operation when the control device (13) registers the names, abbreviation codes and code numbers of all the medicines handled by the pharmacy in the medicine file memories M11 to M1n. The process is started by operating the function key indicating the start of registration. N0
In the step, an arbitrary code number for the chemical species is input by operating the ten keys of the key input unit (12). At this time, the medicine to be registered can be packed in the packing machine (11),
If any of the tablet cases (5) ... (5) is filled, a code number other than “0” is entered with the numeric keypad, and powder or water that cannot be packaged by the packaging machine (11). In the case of a drug, "0" is input by the ten keys.
The N1 step is to store the code number data input by the key in the medicine file memories M11 to M1n. The drug file memories M11 to M1n corresponding to each drug type have storage areas m7, m8, m9, and m10 as shown in FIG. 5, and the code number data for each drug is stored in the storage area m7. When the abbreviation for the medicine type is keyed in at the N2 step, it is judged at the N3 step whether or not this abbreviation overlaps with the abbreviations of other already registered medicines, and if not, at the N4 step. The abbreviation code is stored in the storage area m8 of the corresponding storage units M11 to M1n. For example, if "A" is input as an abbreviation for a drug named "A lock", a character code representing the character "A" is stored in the storage area m8. On the other hand, when the codes are duplicated, the process is changed from the N3 step to the N2 step and waits until the code is re-keyed. Then, when the medicine name of the medicine type is keyed in in the N5 step, each character constituting the medicine name is stored in the storage area m9 by the character code in the N6 step. This process is repeated for each drug type, and the drug file memory M11-
The code number data, the abbreviation code and the medicine name are registered in M1n, and when it is detected in step N7 that the function key indicating the end of registration of the key input section (12) is operated, the registration operation is ended.

【0011】制御装置(14)は制御装置(13)より
送信される制御データに基づき包装制御を行うが、制御
装置(13)(14)間の転送モードは制御装置(1
4)が制御装置(13)へ転送要求信号を送信すること
で始まる。このとき制御装置(14)は包装制御を行っ
ていない状態で定期的にこの転送要求信号を出力するも
のである。図6は制御装置(13)の通常の動作を示す
フローチャートで、薬品ファイルメモリM11〜M1nへの
登録動作以外では常にこのフローチャートに基づく処理
を実行している。N10ステップはレジスタR3には
「1」をストアして転送番号を1にセットし、且つレジ
スタR4には「0」をストアし、N11ステップでは制御
装置(14)からの転送要求信号の有無を判定し、転送
要求信号が出力されていないとN12ステップでキー入力
の有無を判定する。キー入力部(12)が操作されて、
朝・昼・夕・就寝前毎に投薬する薬品の略称及び薬数と
服用する日数がキー入力されると、N13ステップでは図
7のフォーマットにしたがってこのキー入力内容に基づ
く処方データを作成して何れかの処方データメモリM21
〜M2nに記憶するが、以下処方データメモリM21に記憶
するものとする。
The control device (14) performs packaging control based on the control data transmitted from the control device (13), and the transfer mode between the control devices (13) and (14) is the control device (1).
4) starts by transmitting a transfer request signal to the control device (13). At this time, the control device (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 device (13), and the processing based on this flow chart is always executed except for the registration operation to the medicine file memories M11 to M1n. In the N10 step, "1" is stored in the register R3 and the transfer number is set to 1, and "0" is stored in the register R4. In the N11 step, the presence or absence of the transfer request signal from the control unit (14) is checked. If the transfer request signal is not output, the presence / absence of a key input is determined in step N12. When the key input section (12) is operated,
When the abbreviation of the medicine to be administered and the number of medicines and the number of days to be taken are keyed in every morning, noon, evening and before going to bed, in step N13, prescription data is created based on this key input according to the format of FIG. Any prescription data memory M21
~ M2n, but hereinafter stored in the prescription data memory M21.

【0012】図8はN13ステップでの動作を説明するフ
ローチャートである。n0ステップで薬品の略称がキー
入力されると、n1ステップでは薬品ファイルメモリM1
1〜M1nを索引して何れの薬品がキー入力されたかを判
定してn2ステップとなる。しかしながら何れの薬品フ
ァイルメモリM11〜M1nにもキー入力された略称と同じ
略称がストアされていないと、n0ステップに復帰して
再度の略称入力を待機する。n2ステップは、キー入力
された略称に一致する薬品のコード番号及び薬品名を薬
品ファイルメモリM11〜M1nより読み取って、夫々処方
データメモリM21の記憶領域m5・m6にストアする。そ
してn3ステップでその薬品の朝・昼・夕・就寝前毎の
薬数が入力されると、n4ステップでは処方データメモ
リM21の記憶領域m2の0〜3までの各アドレスに朝・
昼・夕・就寝前毎の薬数データを書込み、n5ステップ
でキー入力があると、n6ステップではキー入力の内容
が薬品に関する略称であるか或いは服用日数であるかを
判定する。1分包中に複数種の錠剤を包装する場合には
略称が再度入力されるために、n1ステップに復帰して
同様な処理が繰り返されて、処方データメモリM21には
この略称に一致する薬品のコード番号・薬品名・薬数が
ストアされる。しかして1分包中に包装すべき薬品及び
その薬数の設定が終了して、服用日数がn5ステップで
入力されると、n6ステップからn7ステップとなって処
方データメモリM21の記憶領域m1に日数データをスト
アする。n8ステップは、日数データの入力により朝・
昼・夕・就寝前毎の総分包数を演算して、処方データメ
モリM21の記憶領域m3の各アドレス0〜3までにスト
アする。n9ステップでは、レジスタR3にストアしてい
る転送番号を処方データメモリM21の記憶領域m4に書
込み、n10ステップでレジスタR3の内容を1加算計数
して転送番号を1つ進めてN11ステップに移行する。そ
して転送要求信号が送信されていない状態で再び処方デ
ータのキー入力があると、メモリM22に処方データをス
トアするが、このとき処方データメモリM22の記憶領域
m4にはレジスタR3の内容が1加算されているために、
1つ進められた転送番号がストアされる。
FIG. 8 is a flow chart for explaining the operation at N13 step. When the abbreviation of the medicine is keyed in at the n0 step, the medicine file memory M1 at the n1 step.
1 to M1n are indexed to determine which chemical has been keyed in, and the n2 step is performed. However, if the same abbreviation as the key input is not stored in any of the medicine file memories M11 to M1n, the process returns to the n0 step and waits for another abbreviation input. In the n2 step, the code number and the medicine name of the medicine corresponding to the keyed abbreviation are read from the medicine file memories M11 to M1n and stored in the storage areas m5 and m6 of the prescription data memory M21, respectively. Then, in the n3 step, the number of medicines for each of the morning, noon, evening, and before bedtime is input, and in the n4 step, the morning number is input to each address 0 to 3 in the storage area m2 of the prescription data memory M21.
When the drug number data for each day, evening, and bedtime is written and there is a key input in the n5 step, it is determined in the n6 step whether the content of the key input is an abbreviation for a drug or the number of doses. When a plurality of types of tablets are packed in one package, the abbreviation is input again. Therefore, the process returns to the n1 step and the same process is repeated, and the medicines matching this abbreviation are stored in the prescription data memory M21. The code number, drug name, and number of drugs are stored. When the medicines to be packed in one packet and the number of medicines have been set, and the number of days to take the medicine is entered in n5 steps, the steps from n6 to n7 are carried out to the storage area m1 of the prescription data memory M21. Store days data. In the n8 step, the day
The total number of packets for each day, evening and before going to bed is calculated and stored in each address 0 to 3 of the storage area m3 of the prescription data memory M21. In the n9 step, the transfer number stored in the register R3 is written in the storage area m4 of the prescription data memory M21, the content of the register R3 is incremented by 1 in the n10 step, the transfer number is incremented by 1, and the N11 step is performed. . When the prescription data is again keyed in the state where the transfer request signal is not transmitted, the prescription data is stored in the memory M22. At this time, the content of the register R3 is incremented by 1 in the storage area m4 of the prescription data memory M22. Because of being
The forwarded transfer number is stored.

【0013】図9はかかるキー入力時におけるCRT
(22)の表示内容を示しており、オペレータのキー入
力にて指定される薬品名及びこの薬品の朝・昼・夕・就
寝前毎の剤数と日数は表示部(31)(32)(33)
で夫々表示し、そして略称に基づき薬品ファイルメモリ
M11〜M1nより読取ったコード番号は表示部(34)で
表示する。この第9図に示す入力例では、朝・昼・夕毎
にA錠・B錠・C錠を一錠づつ7日分分包し、朝・昼・
夕・就寝前毎にE散剤を一単位づつ7日分分包すること
がキー入力されたことを示している。尚、散薬であるE
散剤は、包装機(11)にては分包不可能で他の散薬専
用の包装機或いは手作業により分包されるが、在庫管理
のために入力される。したがって処方データメモリM21
のNo.1からNo.4までの各記憶領域m5には夫々
A・B・C・Eの各薬品のコード番号データが書込ま
れ、且つNo.1からNo.3までの薬数データをスト
アする各記憶領域m2の朝・昼・夕・就寝前に対応する
アドレス0〜2には夫々薬数データ「1」が書込まれる
と共にアドレス3には「0」が書込まれ、No.4の記
憶領域m2の各アドレス0〜3には夫々「1」が書込ま
れ、記憶領域m1には日数データ「7」が書込まれる。
そして薬数データと日数データの入力により、朝・昼・
夕・就寝前毎の総分包数を演算して記憶領域m3の各ア
ドレス0〜3までにストアすると共に、CRT(22)
の表示部(35)に表示する。またE散剤は、包装機
(11)で分包不可能なためコード番号としては「0」
が処方データメモリM21にストアされているが、CRT
(22)の表示部(34)はE散剤については「…」を
表示して分包不能であることを示している。
FIG. 9 shows a CRT at the time of such key input.
The display contents of (22) are shown, and the name of the drug designated 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 (31) (32) ( 33)
And the code numbers read from the medicine file memories M11 to M1n based on the abbreviations are displayed on the display unit (34). In the input example shown in FIG. 9, one A tablet, one B tablet, and one C tablet are packed every morning, noon, and evening for 7 days.
It indicates that the key input was to pack one unit of E powder for 7 days each in the evening and before bed. E is a powder
The powder cannot be packaged in the packaging machine (11) and is packaged by another packaging machine dedicated to powder medicine or manually, but is input for inventory management. Therefore, the prescription data memory M21
No. 1 to No. In each storage area m5 up to 4, the code number data of each chemical of A, B, C, E is written, respectively, and No. 1 to No. The drug number data "1" is written to the addresses 0 to 2 corresponding to morning, noon, evening, and before going to bed of each storage area m2 for storing the drug number data up to 3, and "0" is written to the address 3. Is written, and No. "1" is written in each address 0 to 3 of the storage area m2 of 4, and the number of days data "7" is written in the storage area m1.
And by inputting the drug number data and the number of days data, morning, noon,
The total number of packets for each evening and before going to bed is calculated and stored in each address 0 to 3 of the storage area m3, and the CRT (22)
Is displayed on the display section (35). Moreover, since the E powder cannot be packaged in the packaging machine (11), the code number is "0".
Is stored in the prescription data memory M21.
The display part (34) of (22) displays "..." For E powder to indicate that packaging is not possible.

【0014】このようにして処方データを作成してN11
ステップに復帰し、制御装置(14)から転送要求信号
が送信されているのを検出すると、N14ステップとなっ
てレジスタR4の内容が「0」以外の値であるかを判定
する。レジスタR4は、包装機(11)が包装動作中で
あると、このときの包装動作の基となる処方データの転
送番号をストアしている。したがって現在、包装機(1
1)が包装動作を停止しているとレジスタR4の内容が
「0」のために、N19ステップに移行して処方データの
有無を判定する。そして前述のN13ステップの処理によ
り処方データメモリM21に処方データをストアしている
と、N20ステップとなって処方データメモリM21の記憶
領域m4にストアされている転送番号をレジスタR4に書
込み、N21ステップで制御装置(14)に転送する処方
データを第11図のフォーマットにしたがって制御デー
タに変換する。尚、何れか二つ以上の処方データメモリ
M21〜M2nに処方データがストアされていると、記憶領
域m4にストアされている転送番号の小さい処方データ
を選定する。
In this way, the prescription data is created and N11
Returning to the step, when it is detected that the transfer request signal is transmitted from the control device (14), it becomes N14 step and it is judged whether the content of the register R4 is a value other than "0". When the packaging machine (11) is in the packaging operation, the register R4 stores the transfer number of the prescription data which is the basis of the packaging operation at this time. Therefore, at present, the packaging machine (1
When 1) has stopped the packaging operation, the content of the register R4 is "0", so that the process proceeds to the N19 step to judge the presence or absence of prescription data. When the prescription data is stored in the prescription data memory M21 by the process of the above N13 step, the transfer number stored in the storage area m4 of the prescription data memory M21 is written in the register R4 in the N20 step, and the N21 step is performed. The prescription data transferred to the control device (14) is converted into control data according to the format shown in FIG. If any two or more prescription data memories M21 to M2n store the prescription data, the prescription data with the smaller transfer number stored in the storage area m4 is selected.

【0015】図10は制御データ作成のフローチャート
を示しており、n20ステップは処方データをストアして
いるメモリM21〜M2nを選定し、且つ選定したメモリM
21の各記憶領域m5・m2で先頭の記憶領域m5・m2を指
定する。n21ステップは、処方データメモリM21の記憶
領域m5にストアしている薬品のコード番号データを制
御データメモリM3の記憶領域m5’に書込む。制御デー
タメモリM3は、処方データメモリM21〜M2nの記憶領
域m2・m3・m5に対応して記憶領域m2’・m3’・m
5’を具備している。n22ステップは、記憶領域m5’に
ストアしたコード番号データが「0」かを判定し、
「0」以外の場合はn23ステップとなって、処方データ
メモリM21の記憶領域m2の各アドレス0〜3にストア
している朝・昼・夕・就寝前毎の薬数データを、制御デ
ータメモリM3の記憶領域m2’の各アドレス0〜3にス
トアする。また「0」の場合は、n24ステップで制御デ
ータメモリM3の記憶領域m2’の各アドレス0〜3には
夫々「0」を書込む。n25ステップは、処方データメモ
リM21の記憶領域m5・m2を夫々シフトし、n26ステッ
プは処方データメモリM21の全ての記憶領域m5を指定
したかを判定する。かかるn21ステップからn26ステッ
プまでの処理を繰り返して、n20ステップで選定した処
方データメモリM21の記憶領域m5にストアされている
薬品のコード番号データを制御データメモリM3に移し
換えると共に、コード番号データが「0」以外の場合は
その薬品種の薬数データをそのまま制御データメモリM
3に書込み、「0」の場合はその薬品種の薬数データを
「0」に修正して制御データメモリM3に書込む。した
がって図9に示す入力例では、制御データメモリM3の
No.1からNo.3までの記憶領域m5’にはA・B
・C各錠剤のコード番号データ、No.4の記憶領域m
5’にはE散剤に対応して「0」が夫々書込まれ、また
制御データメモリM3のNo.1からNo.3までの各
記憶領域m2’のアドレス0〜2までには「1」そして
アドレス3には「0」が書込まれるとともに、No.4
の記憶領域m2’の0〜3までの各アドレスには「0」
が夫々書込まれる。
FIG. 10 shows a flow chart for creating control data. In step n20, memories M21 to M2n storing prescription data are selected, and the selected memory M is selected.
The head storage areas m5 and m2 are designated in the respective storage areas m5 and m2 of 21. In the n21 step, the code number data of the medicine stored in the storage area m5 of the prescription data memory M21 is written in the storage area m5 'of the control data memory M3. The control data memory M3 corresponds to the storage areas m2, m3, m5 of the prescription data memories M21-M2n, and the storage areas m2 ', m3', m.
It has 5 '. In the n22 step, it is judged whether the code number data stored in the storage area m5 'is "0",
If the value is other than "0", the number of steps is n23, and the data on the number of medicines stored in each address 0 to 3 of the storage area m2 of the prescription data memory M21 for each morning, noon, evening and before bedtime is stored in the control data memory. The data is stored in each address 0 to 3 of the storage area m2 'of M3. In the case of "0", "0" is written in each address 0 to 3 of the storage area m2 'of the control data memory M3 in the step n24. The n25 step shifts the storage areas m5 and m2 of the prescription data memory M21 respectively, and the n26 step determines whether or not all the storage areas m5 of the prescription data memory M21 are designated. By repeating the processing from the n21 step to the n26 step, the code number data of the medicine stored in the storage area m5 of the prescription data memory M21 selected in the n20 step is transferred to the control data memory M3 and the code number data is stored. When the value is other than "0", the drug number data of the drug type is directly used as the control data memory M
3 is written, and in the case of "0", the drug number data of the drug type is corrected to "0" and written in the control data memory M3. Therefore, in the input example shown in FIG. 1 to No. 3 in storage area m5 'up to 3
・ C Code number data of each tablet, No. 4 storage areas m
In the 5 ', "0" is written corresponding to the E powder, and the No. of the control data memory M3. 1 to No. "1" is written in the addresses 0 to 2 of each storage area m2 'up to 3 and "0" is written in the address 3, and No. Four
"0" for each address from 0 to 3 in the memory area m2 '
Are written respectively.

【0016】n27ステップは、n20ステップで選定した
処方データメモリM21の記憶部の記憶領域m3における
先頭のアドレス0を指定するとともに、制御データメモ
リM3の各記憶領域m2’及びm3’のうちのアドレス0
を夫々指定する。n28ステップは、各記憶領域m2’の
アドレス0に夫々ストアしている薬品種毎の薬数データ
の論理和が「0」であるかを判定する。このとき各記憶
領域m2’のアドレス0にストアしている薬数データの
少なくとも一つが「0」以外であると、n29ステップで
記憶領域m3のアドレス0にストアしている朝について
の総分包数データを、制御データメモリM3の記憶領域
m3’のアドレス0に書込む。また各記憶領域m2’のア
ドレス0にストアしている薬数データが全て「0」であ
ると、n30ステップで制御データメモリM3の記憶領域
m3’のアドレス0に「0」を書込む。n31ステップ
は、n27ステップで選定した処方データメモリM2の記
憶部の記憶領域m3におけるアドレスを0から1にシフ
トするとともに、制御データメモリM3の各記憶領域m
2’のアドレスを全て0から1にシフトし、n32ステッ
プは処方データメモリM2の記憶領域m3のアドレスがオ
ーバーしたかを判定して、アドレスが3以内のうちはn
28ステップに移行する。そしてn28ステップからn32ス
テップまでの処理にて制御データメモリM3の各記憶領
域m2’の各アドレス1にストアしている薬品種毎の薬
数データの論理和が「0」であるかで昼の総分包数デー
タの修正の要否を判定し「0」以外の場合は修正の要な
しとして記憶領域m3のアドレス1にストアしているデ
ータを記憶領域m3’のアドレス1に書込み、「0」の
場合は記憶領域m3’のアドレス1に「0」を書込んで
総分包数データを修正する。同様に、夕及び就寝前につ
いての総分包数も夫々n28ステップからn32ステップま
での処理により修正が判定されて、制御データメモリM
3の記憶領域m3’のアドレス2及び3には夫々所定のデ
ータが書込まれる。そして処方データメモリM2のアド
レスが記憶領域m3を越えると、n32ステップからN22
ステップとなる。したがって本例の処方入力に依れば、
就寝前の服用はE散剤のみであり、制御データメモリM
3における各記憶領域m2’のアドレス3にストアされて
いるデータの論理和は「0」のために、記憶領域m3’
のアドレス3には修正値である「0」が書込まれる。
In the n27 step, the first address 0 in the storage area m3 of the storage section of the prescription data memory M21 selected in the n20 step is designated, and the address of each of the storage areas m2 'and m3' of the control data memory M3 is specified. 0
Are specified respectively. In the n28 step, it is determined whether the logical sum of the drug number data for each drug type stored in the address 0 of each storage area m2 'is "0". At this time, if at least one of the drug number data stored in the address 0 of each storage area m2 'is other than "0", the total package for the morning stored in the address 0 of the storage area m3 in step n29. The numerical data is written to address 0 of the storage area m3 'of the control data memory M3. If all the drug number data stored in the address 0 of each memory area m2 'is "0", "0" is written in the address 0 of the memory area m3' of the control data memory M3 in step n30. In the n31 step, the address in the storage area m3 of the storage unit of the prescription data memory M2 selected in the n27 step is shifted from 0 to 1 and each storage area m of the control data memory M3 is changed.
All the 2'addresses are shifted from 0 to 1, and in the n32 step, it is determined whether the address of the storage area m3 of the prescription data memory M2 is over, and if the address is within 3, the n
Go to step 28. Then, in the processing from step n28 to step n32, whether the logical sum of the drug number data for each drug type stored in each address 1 of each storage area m2 'of the control data memory M3 is "0" It is determined whether or not the total package number data needs to be corrected, and if it is not "0", the data stored in the address 1 of the storage area m3 is written to the address 1 of the storage area m3 'and "0" In the case of ",""0" is written in the address 1 of the storage area m3 'to correct the total packaging number data. Similarly, the total number of packets for the evening and before going to bed is determined to be corrected by the processing from step n28 to step n32, respectively, and the control data memory M
Predetermined data is written in addresses 2 and 3 of the memory area m3 'of 3, respectively. When the address of the prescription data memory M2 exceeds the storage area m3, the steps n32 to N22
It becomes a step. Therefore, according to the prescription input of this example,
Only E powder is used before bedtime, and control data memory M
Since the logical sum of the data stored in the address 3 of each storage area m2 'in 3 is "0", the storage area m3'
The corrected value "0" is written in the address 3 of.

【0017】N22ステップは、制御データメモリM3の
記憶領域m3’のアドレス0〜3までにストアされてい
る朝・昼・夕・就寝前毎の総分包数が全て「0」かを判
定し、「0」の場合には包装機(11)で分包する必要
がないためN11ステップに復帰する。しかして朝・昼・
夕・就寝前の少なくとも何れか一つの総分包数が「0」
以外であると、包装機(11)で分包する必要があっ
て、N23ステップで制御データを制御装置(14)に転
送するが、このとき制御データはインターフェイス(1
5)でシリアル変換されて送信される。しかして転送終
了後、N11ステップに復帰するが、制御装置(14)は
制御データの受信により包装機(11)の包装制御を行
なっているために転送要求信号を出力しない。したがっ
て制御装置(13)はN12ステップでキー入力の有無を
繰り返し判定し、キー入力があるとN13ステップとな
り、処方データをストアしていない何れかの処方データ
メモリM21〜M2nにキー入力データをストアする。
In step N22, it is determined whether the total number of packets stored in addresses 0 to 3 of the storage area m3 'of the control data memory M3 is "0" for every morning, noon, evening and before going to bed. , "0", the packaging machine (11) does not need to perform packaging, and the process returns to step N11. Then morning, noon,
At least one of the total packages before evening / sleep is "0"
Otherwise, the packaging machine (11) needs to package the control data, and the control data is transferred to the control device (14) in step N23.
It is serial-converted in 5) and transmitted. Then, after the transfer is completed, the process returns to the N11 step, but the control device (14) does not output the transfer request signal because the control of the packaging machine (11) is performed by receiving the control data. Therefore, the control device (13) repeatedly determines the presence / absence of a key input in the N12 step, and when there is a key input, the N13 step is performed, and the key input data is stored in any of the prescription data memories M21 to M2n in which the prescription data is not stored. To do.

【0018】制御装置(14)の動作を図12のフロー
チャートによって説明する。N0’ステップで転送要求
信号を出力して制御データを受信すると、N1’ステッ
プからN2’ステップとなり制御データをメモリM4にス
トアする。メモリM4は、メモリM3の各記憶領域m2’
・m3’・m5’に対応して記憶領域m2”・m3”・m
5”を具備して、夫々薬数データ・総分包数データ・薬
品種のコード番号データをストアする。N3’ステップ
は、1が加算されるごとに順次「0」から「3」までを
繰り返し計数する3進の制御カウンタ(27)を「0」
にセットする。N4’ステップは、メモリM4の記憶領域
m3”の内容が「0」かを判定する。記憶領域m3”は朝
・昼・夕・就寝前に対応する0から3までの4つのアド
レスに夫々総分包数をストアしているが、この場合、制
御カウンタ(27)の内容CNは「0」のためにアドレ
ス0が指定されて、朝の総分包数データが「0」である
かが判定される。本例では朝服用の分包数は7日分であ
りN5’ステップに移行する。N5’ステップは、メモリ
M4の記憶領域m5”にストアしているコード番号データ
をレジスタR1にストアし、記憶領域m2”にストアして
いる薬数データをレジスタR2にストアする。このとき
記憶領域m2”に関しては、制御カウンタ(27)の内
容CNが「0」のために先ず記憶領域m2”のアドレス
0にストアされている薬数データが読出されてレジスタ
R2にストアされる。したがってレジスタR1にはA・B
・C各錠剤のコード番号データが書込まれ、レジスタR
2にはこれら錠剤種について朝の分包分の薬数データが
書込まれる。N6’ステップはレジスタR2の内容が
「0」かを判定するが、A・B・Cの各錠剤種について
少なくとも一つの錠剤種の薬数データが「0」以外にあ
るとN7’ステップとなって錠剤の摘出動作となる。N
7’ステップに於いて、包装機コントローラ(28)に
は薬数データが「0」以外にある錠剤種についてのコー
ド番号データがレジスタR1より読出されて導入され
る。そして包装機コントローラ(28)はA・B・Cの
各種錠剤を収納したタブレットケース(5)…(5)に
対して摘出信号を出力する。したがって摘出信号が導入
されたタブレットケース(5)…(5)は駆動して一錠
の錠剤を摘出する。N8’ステップでは、摘出動作を行
った錠剤種についてその薬数データより「1」を減算し
てN6’ステップに復帰する。本例では、朝の分包には
A・B・Cの各種薬剤を一錠づつ包装するためにレジス
タR2にストアされているA・B・Cの各種薬剤の薬数
データは「0」となる。したがって朝の1分包分の錠剤
が摘出されてホッパー(2)に導入され、次のN9’ス
テップで包装動作が成される。N9’ステップで包装機
コントローラ(28)はシャッタ(3)・横ヒートシー
ル機構(10)・縦ヒートシール機構(9)に夫々制御
信号を与えて錠剤投入・分包袋密封・分包袋形成の各動
作を制御し、しかる後、送りローラ(11)の駆動装置
へ制御信号を与え包装紙(6)を長手方向へ所定寸法移
送させて朝服用分の分包の包装動作を終了する。N10’
ステップは、制御カウンタ(27)の内容「0」により
メモリM4の記憶領域m3”のアドレス0を指定して、そ
こにストアしているデータより「1」を減算し、N11’
ステップでは記憶領域m3”の0〜3までの全てのアド
レスのデータが「0」であるかを判定する。この場合、
朝服用分の分包が一つ終了して記憶領域m3”のアドレ
ス0のデータより「1」を減算した段階であり、N12’
ステップで制御カウンタ(27)の内容CNを「0」か
ら「1」に進めてN4’ステップに復帰する。そしてN
4’ステップでは、制御カウンタ(27)の内容が
「1」のためにm3”のアドレス1を指定してその内容
が「0」かを判定するが、このときアドレス1の内容は
「7」のためにN5’ステップに移行して昼服用分の分
包動作となる。
The operation of the control device (14) will be described with reference to the flow chart of FIG. When the transfer request signal is output and the control data is received in the N0 'step, the N1' step is changed to the N2 'step and the control data is stored in the memory M4. The memory M4 is a memory area m2 ′ of the memory M3.
・ Memory area corresponding to m3 '・ m5' m2 "・ m3" ・ m
It has 5 ”and stores the data of the number of medicines, the data of the total number of packages, and the code number of the drug type. The N3 ′ step sequentially increments from“ 0 ”to“ 3 ”each time 1 is added. The ternary control counter (27) that repeatedly counts is set to "0".
Set to. In the N4 'step, it is determined whether the content of the storage area m3 "of the memory M4 is" 0 ". The storage area m3 "stores the total number of packages at four addresses 0 to 3 corresponding to morning, noon, evening and before going to bed. In this case, the content CN of the control counter (27) is" Address 0 is designated for "0", and it is determined whether the total package data in the morning is "0". In this example, the number of packets for morning use is 7 days, and the process proceeds to step N5 '. In the N5 'step, the code number data stored in the storage area m5 "of the memory M4 is stored in the register R1 and the drug number data stored in the storage area m2" is stored in the register R2. At this time, as for the storage area m2 ", since the content CN of the control counter (27) is" 0 ", the drug number data stored in the address 0 of the storage area m2" is first read and stored in the register R2. Therefore, register R1 has A and B
・ C The code number data of each tablet is written, and the register R
The data on the number of medicines in the morning for these tablets is written in 2. The N6 'step determines whether the content of the register R2 is "0", but if the drug number data of at least one tablet type for each of A, B, and C tablet types is other than "0", it becomes the N7' step. And the tablet is removed. N
In the 7'step, the code number data for the tablet type having the drug number data other than "0" is read from the register R1 and introduced into the packaging machine controller (28). Then, the packaging machine controller (28) outputs an extraction signal to the tablet cases (5) ... (5) accommodating various tablets of A, B and C. Therefore, the tablet cases (5) ... (5) to which the extraction signal is introduced are driven to extract one tablet. In the N8 'step, "1" is subtracted from the drug number data of the tablet type for which the extracting operation has been performed, and the process returns to the N6' step. In this example, the number data of each drug of A, B, and C stored in the register R2 in order to package each tablet of each drug of A, B, and C in the morning sachet is "0". Become. Therefore, the tablets for one minute in the morning are extracted and introduced into the hopper (2), and the packing operation is performed in the next N9 'step. At step N9 ', the packaging machine controller (28) gives control signals to the shutter (3), the horizontal heat seal mechanism (10), and the vertical heat seal mechanism (9), respectively, to insert tablets, seal the sachets, and form sachets. Then, a control signal is given to the drive device of the feed roller (11) to move the wrapping paper (6) by a predetermined dimension in the longitudinal direction, and the packaging operation for the sachets for the morning dose is completed. N10 '
The step specifies the address 0 of the storage area m3 "of the memory M4 by the content" 0 "of the control counter (27), subtracts" 1 "from the data stored therein, and N11 '.
In the step, it is judged whether the data of all addresses 0 to 3 in the storage area m3 "is" 0 ". in this case,
This is the stage when "1" is subtracted from the data at address 0 in the storage area m3 "after one package for the morning dose is completed. N12 '
At the step, the content CN of the control counter (27) is advanced from "0" to "1" to return to the N4 'step. And N
In the 4'step, since the content of the control counter (27) is "1", the address 1 of m3 "is designated and it is determined whether the content is" 0 ". At this time, the content of the address 1 is" 7 ". Therefore, the process shifts to N5 'step and the packing operation for lunch is started.

【0019】N5’ステップでは、記憶領域m5”にスト
アしているコード番号データをレジスタR1にストア
し、各記憶領域m2”のアドレス1にストアしている薬
数データをレジスタR2にストアする。そしてN6’ステ
ップからN7’ステップとなると、レジスタR2にストア
されている薬数データが「0」以外にある錠剤種につい
てタブレットケース(5)…(5)より錠剤を摘出し、
N8’ステップではレジスタR2の薬数データより「1」
を減算する。本例では、昼服用分の分包もA・B・Cの
各種薬剤を一錠づつ包装するために、レジスタR2の薬
数データは全て「0」となりN6’ステップからN9’ス
テップとなる。N9’ステップでは、ホッパー(2)に
取り出した昼の一分包分の錠剤の包装動作を行い、N1
0’ステップでは、記憶領域m3”のアドレス1にストア
しているデータから「1」を減算して、昼の一分包動作
が終了したことを記憶する。そしてN11’ステップから
N12’ステップとなると、制御カウンタ(27)の内容
CNを「1」から「2」に進める。したがって次のN
4’ステップからは、制御カウンタ(27)の内容が
「2」のため記憶領域m5”・m2”はアドレス2が指定
されて夕の一分包動作についての処理となり、しかる
後、夕の分包についての処理を終了すると制御カウンタ
(27)の内容CNを「2」から「3」に進めてN4’
ステップに復帰する。このとき記憶領域m3”のアドレ
ス3の内容は「0」であり、N4’ステップからN11’
ステップとなる。即ち、本例の入力処方では、就寝前に
は包装機(11)で包装不能なE散剤を分包するため
に、就寝前の服用分についての包装動作は省略されたこ
とになる。そしてN12’ステップで制御カウンタ(2
7)の内容を「3」から「0」に進めて、再度、朝の分
包についての処理を行う。このようにしてメモリM4の
記憶領域m3’のアドレス0〜3にストアされているデ
ータが全て「0」になるまで、朝・昼・夕の順序で分包
動作を繰り返す。しかして朝・昼・夕の7日分の7分包
づつの包装が終了すると、1入力処方についての包装が
終了したとしてN11’ステップからN0’ステップに復
帰する。そしてN0’ステップでは、次の包装動作に関
する処方データの転送要求信号を制御装置(13)に送
信する。
In the N5 'step, the code number data stored in the storage area m5 "is stored in the register R1 and the drug number data stored in the address 1 of each storage area m2" is stored in the register R2. Then, from the N6 'step to the N7' step, tablets are extracted from the tablet cases (5) ... (5) for tablet types in which the drug number data stored in the register R2 is other than "0",
In the N8 'step, "1" is obtained from the drug number data in the register R2.
Subtract. In the present example, since the sachets for lunch are also packaged one by one for each of the drugs A, B and C, the drug number data in the register R2 is all "0" and the steps N6 'to N9'. In the N9 'step, the packing operation of the one-minute packet for lunch taken out into the hopper (2) is performed, and N1
In the 0'step, "1" is subtracted from the data stored in the address 1 of the storage area m3 "to store the end of the daytime one-pack operation. Then, from the N11 'step to the N12' step, the content CN of the control counter (27) is advanced from "1" to "2". Therefore, the next N
From step 4 ', since the content of the control counter (27) is "2", the storage area m5 "/ m2" is designated as the address 2 and the processing for the evening one-pack operation is performed. When the processing for the package is completed, the content CN of the control counter (27) is advanced from "2" to "3" and N4 '.
Return to step. At this time, the content of the address 3 of the storage area m3 "is" 0 ", and the steps N4 'to N11'
It becomes a step. That is, in the input prescription of this example, since the E powder which cannot be packaged by the packaging machine (11) is packaged before bedtime, the packaging operation for the dose before bedtime is omitted. Then, in the N12 'step, the control counter (2
The content of 7) is advanced from "3" to "0", and the process for the morning sachet is performed again. In this way, the packaging operation is repeated in the order of morning, noon and evening until all the data stored in the addresses 0 to 3 of the memory area m3 'of the memory M4 becomes "0". Then, when the packaging of 7-minute packages for 7 days of morning, noon, and evening is completed, it is determined that the packaging for one input prescription is completed, and the process returns from the N11 'step to the N0' step. Then, in the N0 'step, a transfer request signal of prescription data relating to the next packaging operation is transmitted to the control device (13).

【0020】そして制御装置(14)が転送要求信号を
出力しているのを、制御装置(13)がN11ステップで
検出すると、このときは処方データを制御装置(14)
に転送してレジスタR4には転送番号をストアしている
ためにN14ステップからN15ステップとなる。N15ステ
ップは、処方データメモリM21にストアしている薬品名
より対応する薬品ファイルメモリM11〜M1nを索引し、
N16ステップで該メモリの薬数記憶領域m10に薬数の累
積を記録する。N17ステップでは処方データメモリM21
をクリアし、N18ステップではレジスタR4を「0」に
してN19ステップとなる。このように制御装置(13)
は、転送した制御データに基づく包装動作が終了したこ
とを、N11ステップでの転送要求信号の有無及びN14ス
テップでのレジスタR4の内容にて判断すると、包装の
終了した処方データに示される薬品種に対応した薬品フ
ァイルメモリM11〜M1nを指定して、その記憶領域m10
にストアしている累積薬数に当該薬品種の薬数データを
加算するものである。そして何れかの処方データメモリ
M22〜M2nに処方データがストアされていると、再び制
御データを作成し且つ包装機(11)で包装可能な薬品
種の場合にこの制御データを制御装置(14)に転送す
る。また薬品ファイルメモリM11〜M1nにストアしてい
るデータは、キー入力部(12)の所定キーを操作して
かかるデータの表示を指示する表示指令を中央処理装置
(18)に入力することで、CRT(22)において表
示される。即ち、図6のフローチャートで、制御装置
(14)より転送要求信号が送信されておらず、そして
キー入力部(12)に処方入力が成されていない状態で
表示指令が発生したことをN24ステップで検出すると、
N25ステップとなって薬品ファイルメモリM11〜M1nに
ストアしているデータをCRTコントローラ(21)へ
導入し、CRT(22)は各薬品種毎のコード番号・略
称コード・薬品名・累積薬数を表示する。
When the controller (13) detects that the controller (14) is outputting the transfer request signal at step N11, the prescription data at this time is the controller (14).
Since the transfer number is transferred to the register R4 and the transfer number is stored in the register R4, the steps from N14 to N15. In the N15 step, the corresponding drug file memories M11 to M1n are indexed from the drug names stored in the prescription data memory M21,
In step N16, the cumulative drug number is recorded in the drug number storage area m10 of the memory. In step N17, prescription data memory M21
Is cleared, and in the N18 step, the register R4 is set to "0" to become the N19 step. In this way the control device (13)
Determines that the packaging operation based on the transferred control data is completed based on the presence or absence of the transfer request signal in the N11 step and the contents of the register R4 in the N14 step, the drug type indicated in the prescription data after the packaging is completed. Specify the medicine file memory M11-M1n corresponding to
The drug number data of the drug type is added to the cumulative drug number stored in. When the prescription data is stored in any of the prescription data memories M22 to M2n, the control data is created again, and in the case of a drug type that can be packaged by the packaging machine (11), the control data is stored in the control device (14). Transfer to. Further, the data stored in the medicine file memories M11 to M1n is operated by operating a predetermined key of the key input unit (12) and inputting a display command for instructing display of the data into the central processing unit (18), It is displayed on the CRT (22). That is, in the flowchart of FIG. 6, it is indicated that the display command is generated in the state where the transfer request signal is not transmitted from the control device (14) and the prescription is not input to the key input unit (12) in step N24. When detected by
In the N25 step, the data stored in the drug file memories M11 to M1n is introduced into the CRT controller (21), and the CRT (22) displays the code number, abbreviation code, drug name, and cumulative drug number for each drug type. indicate.

【0021】CRT(22)の表示画面には投薬すべき
薬品種の全てが表示され、包装機(11)で包装できな
い薬品種にこの包装機で包装できない旨のマーク例えば
「・・・」の識別記号を付し、作業者に処方情報に包装
できない薬品種があると知らせられる。また、包装でき
ない薬品種に識別記号を付けることにより、包装機(1
1)で処方情報の包装中にこの包装機で包装できない薬
品種を別途包装することができるようにしている。
On the display screen of the CRT (22), all the drug species to be dispensed are displayed, and a mark indicating that the drug cannot be packed in the packing machine (11), for example, "..." An identification symbol is added to inform the operator that some prescription information cannot be packaged. In addition, by attaching identification symbols to the types of chemicals that cannot be packed, the packaging machine (1
In 1), during the packaging of the prescription information, the chemical species that cannot be packaged by this packaging machine can be packaged separately.

【0022】[0022]

【発明の効果】以上のように本発明によれば、登録され
る薬品種とこの薬品種の包装可否情報を記憶する手段
と、この記憶手段に記憶された薬品種の中から投薬すべ
き薬品種を抽出すると共にこの薬品種の薬数を入力する
手段と、前記薬品の包装可否情報により包装機において
包装不可能な薬品種を判別する手段と、前記抽出された
投薬すべき薬品種を表示する手段とを備え、この表示手
段に表示される薬品種のうち包装不可能な薬品種にマー
クを付けたので、前記表示手段の同一画面に表示された
薬剤包装機で包装できる薬品種と包装できない薬品種と
を識別することができ、作業者に包装不可能な薬品種を
知らせて前記薬剤包装機で包装できない薬品種をこの包
装機で包装中に別途包装でき、包装作業の短縮を図るこ
とができる。
As described above, according to the present invention, a means for storing a registered drug type and packaging availability information of this drug type, and a drug to be dispensed from among the drug types stored in this storage means. A means for extracting the species and inputting the number of medicines of this medicine type, a means for discriminating the medicine species that cannot be packed in the packaging machine based on the medicine packaging availability information, and displaying the extracted medicine species to be administered And a mark is attached to a chemical species that cannot be packed among the chemical species displayed on the display means, and the chemical species and the packaging that can be packaged by the pharmaceutical packaging machine displayed on the same screen of the display means are included. It is possible to identify the chemical species that cannot be packaged, notify the operator of the chemical species that cannot be packaged, and the chemical species that cannot be packaged by the pharmaceutical packaging machine can be separately packaged during packaging by this packaging machine, and the packaging work can be shortened. be able to.

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

【図1】本発明の薬剤包装機の外観図である。FIG. 1 is an external view of a drug packaging machine according to the present invention.

【図2】本発明の薬剤包装機の構成図である。FIG. 2 is a configuration diagram of a medicine packaging machine of the present invention.

【図3】本発明の制御装置の構成図である。FIG. 3 is a configuration diagram of a control device of the present invention.

【図4】薬品ファイルメモリM11〜M1nへの登録動作を
示すフローチャートである。
FIG. 4 is a flow chart showing a registration operation in the medicine file memories M11 to M1n.

【図5】薬品ファイルメモリM11〜M1nの記憶フォーマ
ットを示す図である。
FIG. 5 is a diagram showing a storage format of drug file memories M11 to M1n.

【図6】制御装置(13)の動作を示すフローチャート
である。
FIG. 6 is a flowchart showing the operation of the control device (13).

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

【図8】処方データ作成処理を示すフローチャートであ
る。
FIG. 8 is a flowchart showing a prescription data creation process.

【図9】一処方の入力例を示す図である。FIG. 9 is a diagram showing an input example of one prescription.

【図10】制御データ作成処理を示すフローチャートで
ある。
FIG. 10 is a flowchart showing a control data creation process.

【図11】制御データメモリM3の記憶フォーマットを
示す図である。
FIG. 11 is a diagram showing a storage format of a control data memory M3.

【図12】制御装置(14)の動作を示すフローチャー
トである。
FIG. 12 is a flowchart showing the operation of the control device (14).

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

(10) 制御器 (11) 包装機 (12) キー入力部 (13)(14) 制御装置 M11〜M1n 薬品ファイルメモリ M21〜M2n 処方データメモリ M3 制御データメモリ (10) Controller (11) Packaging machine (12) Key input section (13) (14) Control device M11 to M1n Drug file memory M21 to M2n Prescription data memory M3 Control data memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 登録される薬品種とこの薬品種の包装可
否情報を記憶する手段と、この記憶手段に記憶された薬
品種の中から投薬すべき薬品種を抽出すると共にこの薬
品種の薬数を入力する手段と、前記薬品の包装可否情報
により包装機において包装不可能な薬品種を判別する手
段と、前記抽出された投薬すべき薬品種を表示する手段
とを備え、この表示手段に表示される薬品種のうち包装
不可能な薬品種にマークを付けることを特徴とする薬剤
包装機の制御装置。
1. A means for storing a drug type to be registered and packaging propriety information of this drug type, a drug type to be administered is extracted from the drug types stored in this storage means, and a drug of this drug type is extracted. The display means includes means for inputting a number, means for determining a medicine type that cannot be packaged in the packaging machine based on the medicine packaging availability information, and means for displaying the extracted medicine type to be administered. A control device for a medicine packaging machine, which marks a medicine type that cannot be packed among the displayed medicine types.
JP13743994A 1994-06-20 1994-06-20 Control device for drug packaging machine Expired - Lifetime JP2810627B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13743994A JP2810627B2 (en) 1994-06-20 1994-06-20 Control device for drug packaging machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13743994A JP2810627B2 (en) 1994-06-20 1994-06-20 Control device for drug packaging machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24192891A Division JP2883478B2 (en) 1991-09-20 1991-09-20 Control device for drug packaging machine

Publications (2)

Publication Number Publication Date
JPH06345003A true JPH06345003A (en) 1994-12-20
JP2810627B2 JP2810627B2 (en) 1998-10-15

Family

ID=15198657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13743994A Expired - Lifetime JP2810627B2 (en) 1994-06-20 1994-06-20 Control device for drug packaging machine

Country Status (1)

Country Link
JP (1) JP2810627B2 (en)

Also Published As

Publication number Publication date
JP2810627B2 (en) 1998-10-15

Similar Documents

Publication Publication Date Title
US4733362A (en) Drug dispensing apparatus with a printer having programmable format
US6397558B1 (en) Medication packing apparatus
JPH0549534B2 (en)
JP2001273367A (en) Stock control system for medicine
JPH06345003A (en) Controller for medicine packing device
JPH048282B2 (en)
JPH0359B2 (en)
JPH0253283B2 (en)
JPH0253281B2 (en)
JPH0253282B2 (en)
JPH06227526A (en) Tablet-wrapping machine
JPH0360721B2 (en)
JPH04102168A (en) Stock control device for medicine packing machine
JPH09272501A (en) Medicine-packaging machine controller
JPS6077840A (en) Method of controlling tablet packer
JP2883478B2 (en) Control device for drug packaging machine
JP3030286B2 (en) Drug packaging machine
JPS63125101A (en) Medicine packer
JP3021584B2 (en) Inventory control device for drug packaging machine
JPH054601A (en) Controller for drug packing machine
JPH03629A (en) Dose packer
JP4691343B2 (en) Dispensing management system
JPH085443B2 (en) Drug packaging machine
JPH0227216B2 (en)
JP2000085728A (en) Tablet packaging machine, and its cartridge printing method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term