JPH0542901A - Controlling device for medicine dispensation-packing machine - Google Patents

Controlling device for medicine dispensation-packing machine

Info

Publication number
JPH0542901A
JPH0542901A JP3241928A JP24192891A JPH0542901A JP H0542901 A JPH0542901 A JP H0542901A JP 3241928 A JP3241928 A JP 3241928A JP 24192891 A JP24192891 A JP 24192891A JP H0542901 A JPH0542901 A JP H0542901A
Authority
JP
Japan
Prior art keywords
data
medicine
storage area
drug
memory
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
JP3241928A
Other languages
Japanese (ja)
Other versions
JP2883478B2 (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 JP24192891A priority Critical patent/JP2883478B2/en
Publication of JPH0542901A publication Critical patent/JPH0542901A/en
Application granted granted Critical
Publication of JP2883478B2 publication Critical patent/JP2883478B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To provide, for a medicine dispensation-packing machine, a device for controlling it which is capable of inventory control relating to all kinds of medicines in a dispensary, including the kinds which are incapable of being portioned out in packs by the medicine dispensation-packing machine. CONSTITUTION:A device for controlling a medicine dispensation-packing machine comprises: medicine file memories M11-M1n for storing a list of the kinds of medicines to be placed under control and information respecting their capability or incapability of being portioned out in packs; a CPU 18 and an input-keying part 12 for extracting, from among the kinds of medicines in storage in the medicine file memories, the kind of medicine to be dispensed and for inputting the quantity; the CPU 18 in its function to distinguish, on the basis of the information (referred to above) respecting capability of being portioned out in packs, the kinds of medicines incapable of being portioned out in packs by a dispensation-packing machine 11; and the dispensation-packing machine 11 for packing the medicine to be dispensed except those incapable of being packed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は病院等に於いて、患者毎
に異る処方箋に基づき一種類または数種類の薬剤を選択
的に包装できる薬剤包装機の制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller 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]

【従来の技術】薬剤包装機は、例えば特公昭56−48
362号公報や特開昭54−38887号公報で開示さ
れているように予め薬品種及び薬数をキー入力すること
でこの入力データに基づく分包を連続して作成する構成
である。したがって処方箋に基づき薬品種及び薬数を入
力するために、薬剤包装機の制御装置は薬品の在庫管理
にも適用されるのであるが、斯る機能を有した錠剤包装
機は末だ存在しない。
2. Description of the Related Art A medicine packaging machine is disclosed in, for example, Japanese Patent Publication No. 56-48.
As disclosed in Japanese Patent Laid-Open No. 362 and Japanese Patent Application Laid-Open No. 54-38887, by key inputting the drug type and the number of drugs in advance, the packaging based on the input data is continuously created. Therefore, in order to input the drug type and the number of drugs based on the prescription, the control device of the drug packing machine is also applied to inventory management of drugs, but there is no tablet packing machine having such a function.

【0003】[0003]

【発明が解決しようとする課題】しかして多種類の薬品
を選択的に分包する薬剤包装機は、現在のところ錠剤が
主で水剤及び散剤等は分包できず、そのため病院の薬局
オペレータは各診療科より送られてくる処方箋から薬剤
包装機で分包可能な薬品のみを選別して入力することで
分包を行っている。よって従来の薬剤包装機では処方箋
にて服用が指示される全ての薬品種を入力することがで
きないために、薬局における全薬品の在庫管理を行うの
は現状のままでは不可能である。
However, at present, a medicine packaging machine for selectively packaging various kinds of medicines is mainly tablets, but not liquid medicines and powders. Therefore, a pharmacy operator of a hospital. Packs by selecting and inputting only the medicines that can be packed by the medicine packing machine from the prescription sent from each clinical department. Therefore, in the conventional medicine packaging machine, since it is not possible to input all the medicine types instructed to be taken by the prescription, it is impossible to manage the inventory of all the medicines in the pharmacy as it is.

【0004】本発明は、薬剤包装機で分包不可能な種類
を含めた薬局の全薬品種の在庫管理を成し得る薬剤包装
機の制御装置を提供するものである。
The present invention provides a control device for a medicine packing machine capable of managing the inventory of all kinds of medicines in a pharmacy, including kinds that cannot be packed by the medicine packing machine.

【0005】[0005]

【課題を解決するための手段】本発明は、管理すべき薬
品種とその包装可否情報を記憶する手段と、この記憶手
段に記憶された薬品種の中から投薬すべき薬品種を抽出
する共にその薬数を入力する手段と、前記薬品の包装可
否情報により包装機において包装不可能な薬品種を判別
する手段と、包装不可能な薬品種を除いて投薬すべき薬
品を包装する手段とを備えたものである。
SUMMARY OF THE INVENTION According to the present invention, there is provided means for storing a drug type to be managed and information on whether or not it can be packaged, and extracting the drug type to be administered from the drug types stored in the storage means. A means for inputting the number of medicines, 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 packaging a medicine to be dispensed excluding the medicine type that cannot be packaged. Be prepared.

【0006】[0006]

【作用】本発明の薬剤包装機の制御装置は上記の構成に
より、薬剤包装機での包装の可否の如何に拘ず、管理す
べき薬品の全てを薬剤包装機に入力して記憶させること
ができると共に、薬品種及びその薬数が入力されるとそ
の薬品種のうちで包装不可能な薬品種を除いて包装する
ことができ、薬剤包装機に薬剤の管理機能を備えること
ができるものである。
With the above-described structure, the controller of the medicine packaging machine of the present invention can input and store all the medicines to be managed into the medicine packaging machine regardless of whether the medicine packaging machine can be packaged. In addition, when the medicine type and the number of medicines are input, the medicines that cannot be packed can be packed out of the medicine kind, and the medicine packing machine can have a medicine management function. is there.

【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 structure of the packaging machine (11), in which a tablet case storage portion (1) is formed in the upper part, and below the hopper (2), the shutter (3) and the tablet packaging 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) includes a roller (7) around which a wrapping paper (6) which is heat-weldable and is folded in half is wound, a tension roller (8) and a wrapping paper (6) is 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及び処方データメモリ
21〜M2nと、制御データメモリM3と、レジスタR3
4とを具備している。そして制御装置(14)は、包
装機(11)側の制御手順をプログラムしたシステムメ
モリ(25)と、包装機(11)の包装動作を制御する
包装機コントローラ(28)と、中央処理装置(24)
と、メモリM4と、制御カウンタ(27)と、レジスタ
1・R2とを具備している。
FIG. 3 shows a control device for the tablet packaging machine according to the present invention, in which (13) is a control device on the operating device (10) side, and (1)
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 M 11 to M 1n corresponding to each drug type. and a prescription data memory M 21 ~M 2n, the control data memory M 3, register R 3 ·
R 4 and. Then, the control device (14) includes 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 M 4 , a control counter (27), and registers R 1 and R 2 .

【0010】図4は、制御装置(13)が薬品ファイル
メモリM11〜M1nに薬局で扱う全ての薬品の名称・略称
コード及びコード番号を登録するときの動作を示すフロ
ーチャートで、キー入力部(12)の登録開始を表わす
ファンクションキーの操作にて処理が開始される。N0
ステップでは、キー入力部(12)のテンキーの操作に
て薬品種についての任意のコード番号が入力される。こ
のとき登録すべき薬品が包装機(11)で分包可能で、
何れかのタブレットケース(5)…(5)に充填してい
る場合には、テンキーにて「0」以外のコード番号が入
力され、また包装機(11)で分包不可能な散剤或いは
水剤の場合にはテンキーによって「0」が入力される。
1ステップはキー入力されたコード番号データを薬品
ファイルメモリ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
1nにコード番号データ・略称コード及び薬品名を登録
し、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 M 11 to M 1n. The process is started by operating the function key indicating the start of registration in (12). N 0
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 N 1 step is to store the code number data input by the key in the medicine file memories M 11 to M 1n . Pharmaceutical file memory M 11 ~M 1n corresponding to each drug varieties, has a storage area m 7 · m 8 · m 9 · m 10 as shown in respectively Figure 5, code number data for each chemical storage Store in area m 7 . Then, when an abbreviation for the medicine type is keyed in at the N 2 step, it is judged at the N 3 step whether or not this abbreviation overlaps with the abbreviations of other already registered medicines. In 4 steps, the abbreviation code is stored in the storage area m 8 of the corresponding storage units M 11 to M 1n . For example, if "A" is input as abbreviation for chemicals entitled "A tablet", the character code representing the letter "A" is stored in the storage area m 8. On the other hand, when the codes are duplicated, the process is changed from the N 3 step to the N 2 step and waits for the code to be re-keyed. Then, when the medicine name of the medicine type is keyed in in the N 5 step, each character constituting the medicine name is stored in the storage area m 9 by the character code in the N 6 step. This process is repeated for each drug type, and the drug file memory M 11 ...
The code number data, the abbreviation code, and the medicine name are registered in M 1n , and when it is detected in step N 7 that the function key indicating the end of registration in the key input unit (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) controls the packaging 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 the state where the packaging control is not performed. Figure 6 is a flowchart showing a normal operation of the control unit (13), is always running a process based on this flowchart is outside the registration operation to the drug file memory M 11 ~M 1n. In the N 10 step, “1” is stored in the register R 3 and the transfer number is set to 1, and “0” is stored in the register R 4 , and in the N 11 step, a transfer request from the control unit (14). determines the presence of the signal, it determines the presence or absence of the key input at N 12 step a transfer request signal is not output. When the key input section (12) is operated,
When the number of days that dose abbreviated and drugs number of chemicals to be dosed before each morning, noon and evening, sleep is key input, the N 13 step to create a prescription data based on the key entry in accordance with the format of FIG. 7 Prescription data memory M 21
~ M 2n , but hereinafter stored in the prescription data memory M 21 .

【0012】図8はN13ステップでの動作を説明するフ
ローチャートである。n0ステップで薬品の略称がキー
入力されると、n1ステップでは薬品ファイルメモリM
11〜M1nを索引して何れの薬品がキー入力されたかを判
定してn2ステップとなる。しかしながら何れの薬品フ
ァイルメモリM11〜M1nにもキー入力された略称と同じ
略称がストアされていないと、n0ステップに復帰して
再度の略称入力を待機する。n2ステップは、キー入力
された略称に一致する薬品のコード番号及び薬品名を薬
品ファイルメモリM11〜M1nより読み取って、夫々処方
データメモリM 21の記憶領域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の記憶領域
4にはレジスタR3の内容が1加算されているために、
1つ進められた転送番号がストアされる。
FIG. 8 shows N13A file explaining the operation of the step
It is a row chart. n0Abbreviation of chemical is key in step
When entered, n1In step, medicine file memory M
11~ M1nIndex to determine which drug was keyed in.
Set n2It becomes a step. However, which drug
File memory M11~ M1nIs the same as the abbreviation keyed in
If the abbreviation is not stored, n0Return to the step
Wait for another abbreviation input. n2Step key input
The drug code number and drug name that match the specified abbreviation
Product file memory M11~ M1nRead more and prescribe each
Data memory M twenty oneStorage area mFive・ M6Store at. So
Then n3At the step every morning, noon, evening, before bedtime
When the number of drugs is entered, nFourPrescription data memo in step
Re Mtwenty oneStorage area m2Morning at each address from 0 to 3
Write the drug number data for each day, evening and bedtime, nFiveStep
When there is a key input with, n6Key input contents in step
Is the abbreviation for the drug or the number of days
judge. When packing multiple types of tablets in one package
Since the abbreviation is entered again, n1Return to the step
The same processing is repeated, and the prescription data memory Mtwenty oneIn
The code number, drug name, and number of drugs that match this abbreviation are
Stored. Therefore, the medicine to be packed in one packet and
After setting the number of medicines, the number of days taken is nFiveIn steps
When entered, n6N from step7It becomes a step
Data memory Mtwenty oneStorage area m1To store the days data
Oh n8Steps are performed in the morning by inputting the number of days data.
Calculate the total number of packets for each day, evening, and before going to bed to calculate the prescription data
Mori Mtwenty oneStorage area m3Strike each address 0-3
Oh n9In step, register R3Store in
Prescription data memory Mtwenty oneStorage area mFourWritten on
Included, nTenRegister R in steps31 counts the content of
And advance the transfer number by one to N11Go to step. So
And the transfer request signal is not sent, the prescription
Memory key Mtwenty twoPrescription data to
However, at this time, the prescription data memory Mtwenty twoStorage area
mFourRegister R3Since the content of 1 has been added,
The forwarded transfer number is stored.

【0013】図9はかかるキー入力時におけるCRT
(22)の表示内容を示しており、オペレータのキー入
力にて指定される薬品名及びこの薬品の朝・昼・夕・就
寝前毎の剤数と日数は表示部(31)(32)(33)
で夫々表示し、そして略称に基づき薬品ファイルメモリ
11〜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 specified 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 drug file memories M 11 to M 1n 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 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 M 21
No. 1 to No. In each storage area m 5 up to 4, the code number data of each chemical of A, B, C, E is written, respectively, and No. 1 to No. Each storage area m 2 in the morning, noon and evening, going to bed address 0-2 corresponding to before you store the medicine the number of data of up to 3 to address 3 together with the respective medicine the number of data "1" is written "0 Is written, and No. Each address 0-3 of the storage area m 2 4 respectively "1" is written, the number of days the data "7" is written in the storage area m 1.
And by inputting the number of medicines 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 m 3 , and the CRT (22)
Is displayed on the display unit (35). Moreover, since the E powder cannot be packaged in the packaging machine (11), the code number is "0".
Although There has been stored in the prescription data memory M 21, CRT
The display portion (34) of (22) displays “...” For E powder, indicating 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図のフォーマットにしたがって制御デー
タに変換する。尚、何れか二つ以上の処方データメモリ
21〜M2nに処方データがストアされていると、記憶領
域m4にストアされている転送番号の小さい処方データ
を選定する。
The prescription data is created in this manner and N 11
Returns to step determines the transfer request signal from the control unit (14) detects that the is being sent, whether the contents of register R 4 is a N 14 step is a value other than "0". When the packaging machine (11) is in the packaging operation, the register R 4 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 R 4 is "0", so that the process proceeds to the N 19 step to determine the presence or absence of prescription data. When the prescription data is stored in the prescription data memory M 21 by the processing in the N 13 step described above, the transfer number stored in the storage area m 4 of the prescription data memory M 21 is registered in the register R in the N 20 step. The prescription data written in 4 and transferred to the control device (14) in step N 21 is converted into control data according to the format shown in FIG. 11. Note that any two or more prescription data to the prescription data memory M 21 ~M 2n is the is stored, selects a small prescription data of forwarding number that is stored in the storage area m 4.

【0015】図10は制御データ作成のフローチャート
を示しており、n20ステップは処方データをストアして
いるメモリM21〜M2nを選定し、且つ選定したメモリM
21の各記憶領域m5・m2で先頭の記憶領域m5・m2を指
定する。n21ステップは、処方データメモリM21の記憶
領域m5にストアしている薬品のコード番号データを制
御データメモリM3の記憶領域m5’に書込む。制御デー
タメモリM3は、処方データメモリM21〜M2nの記憶領
域m2・m3・m5に対応して記憶領域m2’・m 3’・
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 is a flowchart for creating control data.
, N20Step stores prescription data
Memory Mtwenty one~ M2nAnd the selected memory M
twenty oneEach storage area mFive・ M2And the first storage area mFive・ M2Finger
Set. ntwenty oneStep is prescription data memory Mtwenty oneMemory of
Area mFiveControl the code number data of the drug stored in
Data memory M3Storage area mFive’ Control day
Memory M3Is the prescription data memory Mtwenty one~ M2nMemory of
Area m2・ M3・ MFiveCorresponding to the storage area m2’・ M 3’・
mFive’ ntwenty twoThe step is the storage area mFive
It is judged whether the code number data stored in
N if other than "0"twenty threeBecome a step, prescription data
Memory Mtwenty oneStorage area m2Store at each address 0-3
The data of the number of medicines for each morning, noon, evening, and
Data memory M3Storage area m2'To each address 0 to 3
Torture. If it is "0", ntwenty fourControl by step
Data memory M3Storage area m2'At each address 0-3
Write "0" for each. ntwenty fiveStep is a prescription data memo
Re Mtwenty oneStorage area mFive・ M2Respectively, n26Step
Prescription data memory Mtwenty oneAll storage areas mFiveSpecify
Determine whether you have done. Take ntwenty oneN from step26Step
Repeat the process up to20Place selected in step
Data memory Mtwenty oneStorage area mFiveIs stored in
Control code memory M for code number data of chemicals3Moved to
If the code number data is other than "0",
Control data memory M for the drug number data of the drug type as it is
3, And if it is “0”, the drug quantity data of the drug type is written.
Control data memory M corrected to "0"3Write to. did
Therefore, in the input example shown in FIG. 9, the control data memory M3of
No. 1 to No. Storage area up to 3 mFive’A and B
・ C Code number data of each tablet, No. 4 storage areas m
Five“0” is written in each of the ‘’ corresponding to E powder,
Control data memory M3No. 1 to No. Each up to 3
Storage area m2'Is 0 for addresses 0 to 2 and
“0” is written in the address 3, and No. Four
Storage area m2'0' for each address from 0 to 3
Are written respectively.

【0016】n27ステップは、n20ステップで選定した
処方データメモリM21の記憶部の記憶領域m3における
先頭のアドレス0を指定するとともに、制御データメモ
リM3の各記憶領域m2’及びm3’のうちのアドレス0
を夫々指定する。n28ステップは、各記憶領域m2’の
アドレス0に夫々ストアしている薬品種毎の薬数データ
の論理和が「0」であるかを判定する。このとき各記憶
領域m2’のアドレス0にストアしている薬数データの
少なくとも一つが「0」以外であると、n29ステップで
記憶領域m3のアドレス0にストアしている朝について
の総分包数データを、制御データメモリM3の記憶領域
3’のアドレス0に書込む。また各記憶領域m2’のア
ドレス0にストアしている薬数データが全て「0」であ
ると、n30ステップで制御データメモリM3の記憶領域
3’のアドレス0に「0」を書込む。n31ステップ
は、n27ステップで選定した処方データメモリM2の記
憶部の記憶領域m3におけるアドレスを0から1にシフ
トするとともに、制御データメモリM3の各記憶領域
2’のアドレスを全て0から1にシフトし、n32ステ
ップは処方データメモリM2の記憶領域m3のアドレスが
オーバーしたかを判定して、アドレスが3以内のうちは
28ステップに移行する。そしてn28ステップからn32
ステップまでの処理にて制御データメモリM3の各記憶
領域m2’の各アドレス1にストアしている薬品種毎の
薬数データの論理和が「0」であるかで昼の総分包数デ
ータの修正の要否を判定し「0」以外の場合は修正の要
なしとして記憶領域m3のアドレス1にストアしている
データを記憶領域m3’のアドレス1に書込み、「0」
の場合は記憶領域m3’のアドレス1に「0」を書込ん
で総分包数データを修正する。同様に、夕及び就寝前に
ついての総分包数も夫々n28ステップからn32ステップ
までの処理により修正が判定されて、制御データメモリ
3の記憶領域m3’のアドレス2及び3には夫々所定の
データが書込まれる。そして処方データメモリM2のア
ドレスが記憶領域m3を越えると、n32ステップからN
22ステップとなる。したがって本例の処方入力に依れ
ば、就寝前の服用はE散剤のみであり、制御データメモ
リM3における各記憶領域m2’のアドレス3にストアさ
れているデータの論理和は「0」のために、記憶領域m
3’のアドレス3には修正値である「0」が書込まれ
る。
In the n 27 step, the start address 0 in the storage area m 3 of the storage section of the prescription data memory M 21 selected in the n 20 step is designated, and each storage area m 2 'of the control data memory M 3 and address 0 of m 3 '
Are specified respectively. In the n 28 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 m 2 'is "0". At this time, if at least one of the drug number data stored in the address 0 of each storage area m 2 'is other than “0”, the data about the morning stored in the address 0 of the storage area m 3 in n 29 step is displayed. The total package number data is written to address 0 of the storage area m 3 'of the control data memory M 3 . Further, if all the drug number data stored in the address 0 of each storage area m 2 'is "0", "0" is set in the address 0 of the storage area m 3 ' of the control data memory M 3 in step n 30. Write. n 31 steps, with an address in the storage area m 3 of the storage unit of the prescription data memory M 2 that was selected in n 27 step shifts from 0 to 1, the address of each storage area m 2 'of the control data memory M 3 All are shifted from 0 to 1, and in the n 32 step, it is determined whether or not the address of the storage area m 3 of the prescription data memory M 2 is over, and if the address is within 3, the process proceeds to the n 28 step. And from n 28 steps to n 32
In the process up to the step, the total package for the day is determined by whether the logical sum of the drug number data for each drug type stored in each address 1 of each storage area m 2 ′ of the control data memory M 3 is “0”. write to address 1 of determining the necessity of several data modification "0" other than the storage area m 3 data are stored in the address 1 of the storage area m 3 as principal without modification in the case of '"0"
In this case, "0" is written in the address 1 of the storage area m 3 'to correct the total packaging number data. Similarly, the total number of packets for evening and before going to bed is determined to be corrected by the processing from n 28 steps to n 32 steps, and the addresses 2 and 3 of the storage area m 3 'of the control data memory M 3 are stored in the addresses 2 and 3. Prescribed data is written in each. Then, when the address of the prescription data memory M 2 exceeds the storage area m 3 , n 32 steps to N
There are 22 steps. Therefore, according to the prescription input of this example, only E powder is taken before bedtime, and the logical sum of the data stored in address 3 of each storage area m 2 'in the control data memory M 3 is "0". For storage area m
The corrected value "0" is written in the address 3 of 3 '.

【0017】N22ステップは、制御データメモリM3
記憶領域m3’のアドレス0〜3までにストアされてい
る朝・昼・夕・就寝前毎の総分包数が全て「0」かを判
定し、「0」の場合には包装機(11)で分包する必要
がないためN11ステップに復帰する。しかして朝・昼・
夕・就寝前の少なくとも何れか一つの総分包数が「0」
以外であると、包装機(11)で分包する必要があっ
て、N23ステップで制御データを制御装置(14)に転
送するが、このとき制御データはインターフェイス(1
5)でシリアル変換されて送信される。しかして転送終
了後、N11ステップに復帰するが、制御装置(14)は
制御データの受信により包装機(11)の包装制御を行
なっているために転送要求信号を出力しない。したがっ
て制御装置(13)はN12ステップでキー入力の有無を
繰り返し判定し、キー入力があるとN 13ステップとな
り、処方データをストアしていない何れかの処方データ
メモリM 21〜M2nにキー入力データをストアする。
Ntwenty twoThe step is a control data memory M3of
Storage area m3’Stored at addresses 0 to 3
Whether the total number of packages for morning, noon, evening, and before going to bed is all "0"
If it is "0", it must be packaged in the packaging machine (11).
N because there is no11Return to step. Then morning, noon,
At least one of the total packages before evening / sleep is “0”
If it is other than the above, it is necessary to perform packaging in the packaging machine (11).
, Ntwenty threeThe control data is transferred to the control device (14) in steps.
The control data is sent to the interface (1
It is serial-converted in 5) and transmitted. The end of transfer
After completion, N11Returning to the step, the control device (14)
The packaging control of the packaging machine (11) is performed by receiving the control data.
Therefore, the transfer request signal is not output. Because
The control device (13) is N12Whether or not there is a key input in the step
Repeatedly judged, N if key input 13Step
, Any prescription data that does not store prescription data
Memory M twenty one~ M2nStore key input data in.

【0018】制御装置(14)の動作を図12のフロー
チャートによって説明する。N0’ステップで転送要求
信号を出力して制御データを受信すると、N1’ステッ
プからN2’ステップとなり制御データをメモリM4にス
トアする。メモリM4は、メモリM3の各記憶領域m2
・m3’・m5’に対応して記憶領域m2”・m3”・
5”を具備して、夫々薬数データ・総分包数データ・
薬品種のコード番号データをストアする。N3’ステッ
プは、1が加算されるごとに順次「0」から「3」まで
を繰り返し計数する3進の制御カウンタ(27)を
「0」にセットする。N 4’ステップは、メモリM4の記
憶領域m3”の内容が「0」かを判定する。記憶領域
3”は朝・昼・夕・就寝前に対応する0から3までの
4つのアドレスに夫々総分包数をストアしているが、こ
の場合、制御カウンタ(27)の内容CNは「0」のた
めにアドレス0が指定されて、朝の総分包数データが
「0」であるかが判定される。本例では朝服用の分包数
は7日分でありN5’ステップに移行する。N5’ステッ
プは、メモリM4の記憶領域m5”にストアしているコー
ド番号データをレジスタR1にストアし、記憶領域m2
にストアしている薬数データをレジスタR2にストアす
る。このとき記憶領域m2”に関しては、制御カウンタ
(27)の内容CNが「0」のために先ず記憶領域
2”のアドレス0にストアされている薬数データが読
出されてレジスタR2にストアされる。したがってレジ
スタR1にはA・B・C各錠剤のコード番号データが書
込まれ、レジスタR2にはこれら錠剤種について朝の分
包分の薬数データが書込まれる。N6’ステップはレジ
スタR2の内容が「0」かを判定するが、A・B・Cの
各錠剤種について少なくとも一つの錠剤種の薬数データ
が「0」以外にあるとN7’ステップとなって錠剤の摘
出動作となる。N7’ステップに於いて、包装機コント
ローラ(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’ステップで包装動作が成される。
9’ステップで包装機コントローラ(28)はシャッ
タ(3)・横ヒートシール機構(10)・縦ヒートシー
ル機構(9)に夫々制御信号を与えて錠剤投入・分包袋
密封・分包袋形成の各動作を制御し、しかる後、送りロ
ーラ(11)の駆動装置へ制御信号を与え包装紙(6)
を長手方向へ所定寸法移送させて朝服用分の分包の包装
動作を終了する。N10’ステップは、制御カウンタ(2
7)の内容「0」によりメモリM4の記憶領域m3”のア
ドレス0を指定して、そこにストアしているデータより
「1」を減算し、N11’ステップでは記憶領域m3”の
0〜3までの全てのアドレスのデータが「0」であるか
を判定する。この場合、朝服用分の分包が一つ終了して
記憶領域m3”のアドレス0のデータより「1」を減算
した段階であり、N12’ステップで制御カウンタ(2
7)の内容CNを「0」から「1」に進めてN4’ステ
ップに復帰する。そしてN4’ステップでは、制御カウ
ンタ(27)の内容が「1」のためにm3”のアドレス
1を指定してその内容が「0」かを判定するが、このと
きアドレス1の内容は「7」のためにN5’ステップに
移行して昼服用分の分包動作となる。
The operation of the control device (14) is shown in the flow chart of FIG.
It will be described with reference to a chart. N0Transfer request in step '
When a signal is output and control data is received, N1’Step
From N2’, The control data is stored in the memory M.FourIn
Torture. Memory MFourIs the memory M3Each storage area m2
・ M3’・ MFiveStorage area m corresponding to2"・ M3”・
m Five", The data on the number of medicines, the data on the total number of packages,
Store the code number data of the drug type. N3’Step
Each time 1 is added, the number is incremented from "0" to "3"
A ternary control counter (27) that repeatedly counts
Set to "0". N Four’Step is memory MFourNote of
Memory area m3It is determined whether the content of "is" 0 ". Storage area
m3"Is from 0 to 3 corresponding to morning, noon, evening, and before going to bed
The total number of packages is stored in each of the four addresses.
In the case of, the content CN of the control counter (27) is "0".
Address 0 is specified for the
It is determined whether it is "0". In this example, the number of packets for morning use
Is for 7 days and NFive’Go to step. NFive’Step
Memory is MFourStorage area mFiveStored in
Register number data1Stored in memory area m2
The drug number data stored in2Store in
It Storage area m at this time2"For the control counter
Since the content CN of (27) is "0", first the storage area
m2Read the drug number data stored at address 0
Register R issued2Stored in. Therefore cash register
Star R1The code number data for each A, B, C tablet is written in
And register R2About these tablet types in the morning
Data on the number of drugs for each package is written. N6’Step is cash register
Star R2It is judged whether the content of "0" is "0".
Number data for at least one tablet type for each tablet type
Is N other than "0", N7It ’s the step and picking tablets
It is a move-out operation. N7’In the step,
Tablets with drug count data other than "0" on the roller (28)
The code number data for the seed is the register R1Read from
Will be introduced. And packaging machine controller (28)
Is a tablet case containing various tablets of A, B and C
(5) ... An extraction signal is output to (5). Because
Tablet case (5) with the extraction signal introduced ...
(5) drives to extract one tablet. N8’Step
The number of tablets for which the extraction operation was performed
"1" is subtracted from the6'Return to step. Book
In the example, in the morning sachet, each of A, B, and C drugs is used.
Register R for packaging2Stored in
・ The number data of various drugs of C is “0”. Because
The tablets for one minute in the morning are extracted and guided to the hopper (2).
Entered the next N9The packaging operation is performed in the step '.
N9The packaging machine controller (28)
(3), horizontal heat seal mechanism (10), vertical heat seal
The control mechanism (9) is given a control signal, and tablets are loaded and sachets are packed.
It controls each operation of sealing and forming sachet, and after that,
Wrapping paper (6) by giving a control signal to the driving device of the roller (11)
Transferring a predetermined length in the longitudinal direction to wrap a package for morning clothes
The operation ends. NTen’The control counter (2
According to the content "0" of 7), the memory MFourStorage area m3"A
Specify the dress 0, and from the data stored there
Subtract "1", N11In step ', storage area m3"of
Is the data of all addresses 0 to 3 "0"?
To judge. In this case, one package for morning use is finished
Storage area m3Subtract "1" from the data at address 0 of "
It is a stage where N12Control counter (2
7) Content CN is advanced from "0" to "1" and NFour’Ste
Return to the top. And NFour’In step, control cow
M because the content of the computer (27) is "1"3Address of
Specify 1 and determine whether the content is "0".
The content of address 1 is N because it is "7"Five’In step
It shifts and it becomes a packing operation for lunch clothes.

【0019】N5’ステップでは、記憶領域m5”にスト
アしているコード番号データをレジスタR1にストア
し、各記憶領域m2”のアドレス1にストアしている薬
数データをレジスタR2にストアする。そしてN6’ステ
ップからN7’ステップとなると、レジスタR2にストア
されている薬数データが「0」以外にある錠剤種につい
てタブレットケース(5)…(5)より錠剤を摘出し、
8’ステップではレジスタR2の薬数データより「1」
を減算する。本例では、昼服用分の分包もA・B・Cの
各種薬剤を一錠づつ包装するために、レジスタR2の薬
数データは全て「0」となりN6’ステップからN9’ス
テップとなる。N9’ステップでは、ホッパー(2)に
取り出した昼の一分包分の錠剤の包装動作を行い、
10’ステップでは、記憶領域m3”のアドレス1にス
トアしているデータから「1」を減算して、昼の一分包
動作が終了したことを記憶する。そしてN11’ステップ
からN 12’ステップとなると、制御カウンタ(27)の
内容CNを「1」から「2」に進める。したがって次の
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)に送
信する。
NFiveIn step ', storage area mFiveTo strike
Store the code number data1In store
Each storage area m2Stored at address 1 of
Register the numerical data in register R2Store at. And N6’Ste
Up to N7'When the step comes, the register R2In store
For tablet types for which the data on the number of drugs used are other than "0"
Remove the tablets from the tablet case (5) ... (5),
N8In step ', register R2"1" from the data on the number of medicines
Subtract. In this example, the package for lunch is also A, B, C.
Register R to package various medicines one by one2Medicine
Numerical data are all "0" and N6’Step to N9’Su
It becomes a step. N9’In step hopper (2)
Performs the packing operation of the tablets taken out for one minute in the daytime,
NTenIn step ', storage area m3To address 1 of
Subtract "1" from the tortured data
Remember that the operation is complete. And N11’Step
To N 12'When the step comes, the control counter (27)
The content CN is advanced from "1" to "2". Therefore the following
NFourFrom the'step, the contents of the control counter (27)
Storage area m for "2"Five"・ M2"2 specifies address 2"
The processing for the evening one-pack operation is performed.
After that, when the processing for evening sachets ends, the control counter
Content of (27) Advance CN from "2" to "3" to NFour
Return to step. Storage area m at this time3Address of
The content of space 3 is "0", and NFour’Step to N11
It becomes a step. That is, in the input prescription of this example, before bedtime
Is for packing the E powder that cannot be packed in the packing machine (11)
In addition, the packaging operation for the dose before bedtime was omitted.
Becomes And N12Control counter (2
Move the content of 7) from "3" to "0" and repeat the morning
Perform processing on the package. In this way the memory MFourof
Storage area m3'Data stored in addresses 0 to 3
The packets are packed in the order of morning, noon and evening until all the data becomes "0".
Repeat the operation. By the way, 7 minutes package for 7 days of morning, noon and evening
When each package is completed, the package for one-input prescription will be
N as if finished11’Step to N0’Return to step
Go home. And N0’Step is related to the next packing operation.
Send a prescription data transfer request signal to the control device (13)
Believe.

【0020】そして制御装置(14)が転送要求信号を
出力しているのを、制御装置(13)がN11ステップで
検出すると、このときは処方データを制御装置(14)
に転送してレジスタR4には転送番号をストアしている
ためにN14ステップからN15ステップとなる。N15ステ
ップは、処方データメモリM21にストアしている薬品名
より対応する薬品ファイルメモリM11〜M1nを索引し、
16ステップで該メモリの薬数記憶領域m10に薬数の累
積を記録する。N17ステップでは処方データメモリM21
をクリアし、N18ステップではレジスタR4を「0」に
してN19ステップとなる。このように制御装置(13)
は、転送した制御データに基づく包装動作が終了したこ
とを、N11ステップでの転送要求信号の有無及びN14
テップでのレジスタR4の内容にて判断すると、包装の
終了した処方データに示される薬品種に対応した薬品フ
ァイルメモリM11〜M1nを指定して、その記憶領域m10
にストアしている累積薬数に当該薬品種の薬数データを
加算するものである。そして何れかの処方データメモリ
22〜M2nに処方データがストアされていると、再び制
御データを作成し且つ包装機(11)で包装可能な薬品
種の場合にこの制御データを制御装置(14)に転送す
る。また薬品ファイルメモリM11〜M1nにストアしてい
るデータは、キー入力部(12)の所定キーを操作して
かかるデータの表示を指示する表示指令を中央処理装置
(18)に入力することで、CRT(22)において表
示される。即ち、図6のフローチャートで、制御装置
(14)より転送要求信号が送信されておらず、そして
キー入力部(12)に処方入力が成されていない状態で
表示指令が発生したことをN24ステップで検出すると、
25ステップとなって薬品ファイルメモリM11〜M1n
ストアしているデータをCRTコントローラ(21)へ
導入し、CRT(22)は各薬品種毎のコード番号・略
称コード・薬品名・累積薬数を表示する。
Then, the control device (14) sends the transfer request signal.
The controller (13) outputs N11In steps
If detected, at this time, the prescription data is controlled by the control device (14).
To register RFourStore the forwarding number in
For N14Step to N15It becomes a step. N15Ste
Is the prescription data memory Mtwenty oneName of drug stored in
More compatible drug file memory M11~ M1nIndex
N16In step, the drug number storage area m of the memoryTenCumulative number of drugs
Record the product. N17In step, prescription data memory Mtwenty one
Clear, N18Register R in stepFourTo "0"
Then N19It becomes a step. In this way the control device (13)
Indicates that the packaging operation based on the transferred control data has been completed.
And N11Presence / absence of transfer request signal in step and N14Su
Register R at the stepFourJudging from the contents of
The drug label corresponding to the drug type shown in the completed prescription data
File memory M11~ M1nAnd specify its storage area mTen
The number data of the drug type is added to the cumulative number of drugs stored in
It is to add. And any prescription data memory
Mtwenty two~ M2nIf the prescription data is stored in the
Chemicals that can create data and be packaged by the packaging machine (11)
In case of seeds, transfer this control data to the controller (14)
It Also, drug file memory M11~ M1nStore in
Data can be obtained by operating the specified keys on the key input section (12).
The central processing unit issues a display command for instructing the display of such data.
By inputting in (18), it is displayed in CRT (22).
Shown. That is, in the flowchart of FIG.
No transfer request signal is transmitted from (14), and
With no prescription input in the key input section (12)
N that the display command has occurredtwenty fourWhen detected in step,
N twenty fiveIt becomes a step and the medicine file memory M11~ M1nTo
Stored data to CRT controller (21)
Introduced, CRT (22) is the code number for each drug type
The name code, drug name, and cumulative drug number are displayed.

【0021】[0021]

【発明の効果】本発明に依ると、包装可否の如何に拘
ず、管理すべき薬品の全てを薬剤包装機に入力して記憶
させることができると共に、薬品種及びその薬数が入力
されると、その薬品種のうちで包装機で包装不可能な種
類を検出し包装不可能な薬品種があると、これを除いて
包装動作を行うことができる。したがって包装機で包装
不可能な薬品を含め薬局で扱う全ての薬品種を処方箋に
したがって入力、記憶することができ、薬局での薬剤管
理機能を備えた薬剤包装機が提供される。
EFFECTS OF THE INVENTION According to the present invention, it is possible to input and store all the medicines to be managed into the medicine packaging machine regardless of whether they are packaged or not, and to input the medicine type and the number of the medicines. Then, if the packaging machine detects a type that cannot be packaged by the packaging machine, and if there is a type that cannot be packaged, the packaging operation can be performed excluding this. Therefore, it is possible to input and store all drug types handled by the pharmacy according to the prescription, including drugs that cannot be packed by the packing machine, and provide a drug packing machine having a drug management function at the pharmacy.

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

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

【図2】包装機の構成図である。FIG. 2 is a configuration diagram of a packaging machine.

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

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

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

【図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 M 3 .

【図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) Packing machine (12) Key input section (13) (14) Control device M 11 to M 1n drug file memory M 21 to M 2n prescription data memory M 3 control data memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 管理すべき薬品種とその包装可否情報を
記憶する手段と、この記憶手段に記憶された薬品種の中
から投薬すべき薬品種を抽出すると共にその薬数を入力
する手段と、前記薬品の包装可否情報により包装機にお
いて包装不可能な薬品種を判別する手段と、包装不可能
な薬品種を除いて投薬すべき薬品を包装する手段とを備
えた薬剤包装機の制御装置。
1. A means for storing a drug type to be managed and its packaging availability information, and a means for extracting a drug type to be administered from the drug types stored in the storage means and inputting the number of the drugs. A control device for a medicine packaging machine, comprising means for determining a medicine type that cannot be packaged by a packaging machine based on the medicine packaging availability information, and means for packaging a medicine to be dispensed excluding the medicine type that cannot be packaged. ..
JP24192891A 1991-09-20 1991-09-20 Control device for drug packaging machine Expired - Lifetime JP2883478B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP8487384A Division JPS60228223A (en) 1984-04-25 1984-04-25 Controller for medicine packaging machine

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP13743994A Division JP2810627B2 (en) 1994-06-20 1994-06-20 Control device for drug packaging machine
JP10258432A Division JP3030286B2 (en) 1998-09-11 1998-09-11 Drug packaging machine

Publications (2)

Publication Number Publication Date
JPH0542901A true JPH0542901A (en) 1993-02-23
JP2883478B2 JP2883478B2 (en) 1999-04-19

Family

ID=17081654

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2883478B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130011410A1 (en) * 2011-07-07 2013-01-10 Amicus Biotech Inc. Egg White Antibodies for Prevention and Treatment of Specific Localized Intestinal Infections and Diseases Associated with a Pathogenic Organism or Molecule

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5977568A (en) * 1982-10-26 1984-05-04 Tokyo Shokai:Kk Processor of medical prescription

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5977568A (en) * 1982-10-26 1984-05-04 Tokyo Shokai:Kk Processor of medical prescription

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130011410A1 (en) * 2011-07-07 2013-01-10 Amicus Biotech Inc. Egg White Antibodies for Prevention and Treatment of Specific Localized Intestinal Infections and Diseases Associated with a Pathogenic Organism or Molecule

Also Published As

Publication number Publication date
JP2883478B2 (en) 1999-04-19

Similar Documents

Publication Publication Date Title
JPS61232113A (en) Tablet packaging machine
JPH03628A (en) Dose packer
JP2001273367A (en) Stock control system for medicine
KR100570463B1 (en) Sealing device for medication packing machine
JPH0542901A (en) Controlling device for medicine dispensation-packing machine
JP3030286B2 (en) Drug packaging machine
JP2919579B2 (en) Inventory control device for drug packaging machine
JP2966798B2 (en) Control method of drug packaging system
JPS63125101A (en) Medicine packer
JPH048282B2 (en)
JPH054601A (en) Controller for drug packing machine
JP3519753B2 (en) Tablet packing machine
JP3021584B2 (en) Inventory control device for drug packaging machine
JPH0253283B2 (en)
JP2810627B2 (en) Control device for drug packaging machine
JP2691858B2 (en) Dispensing control method
JPH0360721B2 (en)
JP3519752B2 (en) Medicine bandage and tablet packing machine
JPH03629A (en) Dose packer
JPS60228224A (en) Controller for medicine packaging machine
JPH0253281B2 (en)
JPH05147627A (en) Medicine package-printing emthod of tabletpacking machine
JPH085443B2 (en) Drug packaging machine
JP2691859B2 (en) Dispensing control method
JP2000085728A (en) Tablet packaging machine, and its cartridge printing method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term