JPH054601A - Controller for drug packing machine - Google Patents
Controller for drug packing machineInfo
- Publication number
- JPH054601A JPH054601A JP3241929A JP24192991A JPH054601A JP H054601 A JPH054601 A JP H054601A JP 3241929 A JP3241929 A JP 3241929A JP 24192991 A JP24192991 A JP 24192991A JP H054601 A JPH054601 A JP H054601A
- Authority
- JP
- Japan
- Prior art keywords
- data
- drug
- storage area
- stored
- 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
Links
- 239000003814 drug Substances 0.000 title claims abstract description 137
- 229940079593 drug Drugs 0.000 title claims abstract description 100
- 238000012856 packing Methods 0.000 title abstract description 33
- 238000004806 packaging method and process Methods 0.000 claims description 68
- 230000015654 memory Effects 0.000 description 86
- 238000012546 transfer Methods 0.000 description 23
- 238000000034 method Methods 0.000 description 15
- 239000000126 substance Substances 0.000 description 14
- 239000000843 powder Substances 0.000 description 12
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000007789 sealing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000000605 extraction Methods 0.000 description 4
- 230000001186 cumulative effect Effects 0.000 description 3
- 239000007788 liquid Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000009512 pharmaceutical packaging Methods 0.000 description 1
- 239000003826 tablet Substances 0.000 description 1
Landscapes
- Basic Packing Technique (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
Description
【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 yet.
【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, it is impossible to manage the inventory of all medicines in the pharmacy as it is because it is not possible to input all kinds of medicines which are instructed to be taken by the prescription.
【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, a means for inputting a drug type to be administered and the number of drugs, a means for specifying the necessity of packaging for each input drug type, and a summary of the packaging. A means for discriminating the type of medicine that does not need to be packaged in the packaging machine based on the rejection information,
And a means for packaging a drug to be dispensed excluding a drug type that does not require packaging.
【0006】[0006]
【作用】本発明の薬剤包装機の制御装置は上記の構成に
より、包装機で包装不可能な薬品を含め薬局で扱う全て
の薬品種を処方箋に沿って入力することが可能となり、
薬剤管理機能を備えた薬剤包装機が提供できる。しか
も、薬品種毎に分包の要否を指定するために、分包機内
における該当薬品の収納の有無だけにとどまらず、収納
されている薬品種についても適宜包装不要に設定するこ
とができ、本来であれば包装機で包装可能な薬品であっ
ても品切れやタブレットケースの故障により包装できな
い薬品が生じた場合に、暫定的に包装できる薬品だけを
包装することができる。With the above configuration, the control device of the medicine packing machine of the present invention can input all kinds of medicines handled by the pharmacy, including medicines that cannot be packed by the packing machine, according to the prescription,
A drug packaging machine equipped with a drug management function can be provided. Moreover, in order to specify the necessity of packaging for each chemical type, it is possible to set not only the presence or absence of the corresponding chemical in the packaging machine but also the stored chemical type as appropriate without packaging. Even if a medicine that can be packaged by a packaging machine is used, but when a medicine that cannot be packaged occurs due to a product shortage or a tablet case failure, only the medicine that can be provisionally packaged can be packaged.
【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及び処方データメモ
リM21〜M2nと、制御データメモリM3と、レジスタR3
・R4とを具備している。そして制御装置(14)は、
包装機(11)側の制御手順をプログラムしたシステム
メモリ(25)と、包装機(11)の包装動作を制御す
る包装機コントローラ(28)と、中央処理装置(2
4)と、メモリM4と、制御カウンタ(27)と、レジ
スタR1・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 prescription data memories M 21 to M 2n , control data memory M 3 , and register R 3
・ Has R 4 . And the control device (14)
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 (2).
4), a memory M 4 , a control counter (27), and registers R 1 and R 2 .
【0010】図4は、制御装置(13)が薬品ファイル
メモリM11〜M1nに薬局で扱う全ての薬品の名称・略称
コード及びコード番号を登録するときの動作を示すフロ
ーチャートで、キー入力部(12)の登録開始を表わす
ファンクションキーの操作にて処理が開始される。この
登録動作では、登録する薬品種が水剤や散剤であった
り、または錠剤であってもタブレットケース(5)…
(5)に収納されていない場合は包装機(11)で包装
不能なために、コード番号を設定しないことを示すファ
ンクションキーを操作するものである。したがってN0
ステップでキー入力部(12)にキー入力があると、N
1ステップでは、このキー入力内容が設定コード番号を
示すテンキーの操作による数値データか、或いはファン
クションキーの操作によるコード番号の不要を示すもの
であるかを判定する。数値データの場合、N2ステップ
でこの数値が示すコード番号を薬品ファイルメモリM11
〜M1nにストアする。薬品種毎に対応する薬品ファイル
メモリM11〜M1nは、図5に示すように記憶領域m7・
m8・m9・m10を有しており、薬品毎のコード番号デー
タは記憶領域m7にストアする。一方、テンキーの操作
によるコード番号データの入力に代って、コード番号を
設定しないことを示すファンクションキーが操作される
と、N1ステップからN3ステップとなる。N3ステップ
で当該薬品種に関しての略称がキー入力されると、N4
ステップではこの略称が既に登録されている他の薬品の
略称と重複しないかを判定して、重複しない場合にはN
5ステップで略称コードを対応する記憶部M11〜M1nの
記憶領域m8にストアする。例えば「A錠」という名称
の薬品について略称として「A」が入力されたとする
と、文字「A」を表わすキャラクタコードが記憶領域m
8にストアされる。一方重複している場合にはN4ステッ
プからN3ステップとなってコードが再度キー入力され
るのを待機する。しかしてN6ステップで当該薬品種の
薬品名がキー入力されると、N7ステップで薬品名を構
成する各文字を夫々キャラクタコードによって記憶領域
m9にストアする。斯る処理を薬品種毎に繰り返して薬
品ファイルメモリM11〜M1nにコード番号データ・略称
コード及び薬品名を登録し、N8ステップでキー入力部
(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). In this registration operation, even if the drug type to be registered is liquid medicine, powder, or tablets, the tablet case (5) ...
If it is not stored in (5), it cannot be packed by the packing machine (11), and the function key indicating that the code number is not set is operated. Therefore N 0
If there is a key input in the key input section (12) at the step, N
In one step, it is determined whether this key input content is numeric data by operating the numeric keypad indicating the setting code number or indicating that the code number is not required by operating the function key. In the case of numerical data, the code number indicated by this numerical value in the N 2 step is used as the medicine file memory M 11
Store to M 1n . The drug file memories M 11 to M 1n corresponding to each drug type have storage areas m 7
has a m 8 · m 9 · m 10 , code number data for each chemical is stored in the storage area m 7. On the other hand, in place of the input of the code number data by operating the ten-key, function key indicating that no setting the code number is operated, the N 3 steps from N 1 steps. When the abbreviation for the drug type is entered in the N 3 step, N 4
In the step, it is judged whether or not this abbreviation overlaps with the abbreviations of other medicines already registered.
In 5 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 entered as an abbreviation for a drug named "A lock", the character code representing the character "A" is stored in the storage area m.
Stored at 8 . On the other hand, when the codes are duplicated, the process is changed from the N 4 step to the N 3 step and waits until the code is input again. Then, when the medicine name of the medicine type is keyed in in the N 6 step, each character constituting the medicine name is stored in the storage area m 9 by the character code in the N 7 step. This process is repeated for each drug type to register the code number data / abbreviated code and drug name in the drug file memories M 11 to M 1n , and the function key indicating the end of registration in the key input unit (12) in N 8 steps is displayed. When the operation is detected, the registration operation ends.
【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, it is assumed to be 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にストアする。し
かして入力された薬品種が水剤や散剤であったり、また
は錠剤でもタブレットケース(5)…(5)に収納され
ていない種類であったりして分包不能であると、キー入
力部(12)の分包不要キーが操作される。したがって
分包不要キーが操作されるとn3ステップからn4ステッ
プとなって、処方データメモリM21の記憶領域m5には
「0」が書込まれる。そしてn5ステップでその薬品の
朝・昼・夕・就寝前毎の薬数が入力されると、n6ステ
ップでは処方データメモリM21の記憶領域m2の0〜3
までの各アドレスに朝・昼・夕・就寝前毎の薬数データ
を書込み、n7ステップでキー入力があると、n8ステッ
プではキー入力の内容が薬品に関する略称であるか或い
は服用日数であるかを判定する。1分包中に複数種の錠
剤を包装する場合には略称が再度入力されるために、n
1ステップに復帰して同様な処理が繰り返されて、処方
データメモリM21にはこの略称に一致する薬品のコード
番号・薬品名及び薬数がストアされる。しかして1分包
中に包装すべき薬品及びその薬数の設定が終了して、服
用日数がn7ステップで入力されると、n8ステップから
n9ステップとなって処方データメモリM21の記憶領域
m1に日数データをストアする。n10ステップは、日数
データの入力により朝・昼・夕・就寝前毎の総分包数を
演算して、処方データメモリM21の記憶領域m3の各ア
ドレス0〜3までにストアする。n11ステップでは、レ
ジスタR3にてストアしている転送番号を処方データメ
モリM21の記憶領域m4に書込み、n12ステップではレ
ジスタR3の内容を1加算計数して転送番号を1つ進め
てN11ステップに移行する。そして転送要求信号が送信
されていない状態で再び処方データのキー入力がある
と、メモリM22に処方データをストアするが、このとき
処方データメモリM22の記憶領域m4にはレジスタ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. Shi
If the chemical type that was once entered is liquid or powder,
Even tablets are stored in the tablet case (5) ... (5)
If you can not pack it because it is not a type,
The packing unnecessary key of the force part (12) is operated. Therefore
When the packaging unnecessary key is operated, n3N from stepFourStep
Prescription data memory Mtwenty oneStorage area mFiveIn
"0" is written. And nFiveOf the drug in steps
When the number of medicines for morning, noon, evening and before bedtime is entered, n6Ste
Prescription data memory Mtwenty oneStorage area m20-3
Number of medicines for each address up to morning, noon, evening, and before going to bed
Write n7If there is a key input at the step, n8Step
The key input is an abbreviation for chemicals
Determines whether it is the number of doses. Multiple types of tablets in one packet
Since the abbreviation is entered again when packaging the agent, n
1After returning to the step and repeating the same process,
Data memory Mtwenty oneThe code of the drug that matches this abbreviation
The number, drug name and number of drugs are stored. Then 1 minute packet
After setting the medicines to be packed and the number of medicines,
N days7When input in step, n8From step
n9Prescription data memory Mtwenty oneStorage area
m1Store days data in. nTenStep is the number of days
By inputting the data, the total number of packets for morning, noon, evening and before bedtime can be calculated.
Calculate the prescription data memory Mtwenty oneStorage area m3Of each
Store by dress 0-3. n11In step,
Dista R3The transfer number stored at
Mori Mtwenty oneStorage area mFourWrite to, n12In step
Dista R3Increments the content of 1 and advances the transfer number by 1
N11Go to step. And the transfer request signal is transmitted
There is a key input of prescription data again in the state where it is not
And memory Mtwenty twoStore prescription data in
Prescription data memory Mtwenty twoStorage area mFourRegister R3of
The transfer number advanced by 1 because the content is incremented by 1.
Issue 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散剤は、包装機(1
1)で分包不可能なためコード番号としては「0」が処
方データメモリM21にストアされているが、CRT(2
2)の表示部(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 of medicines and the number of days of this medicine 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 tablet A, one tablet B, one tablet C is packed every morning, noon, and evening for 7 days, and one unit of E powder is prepared every morning, noon, evening, and before bedtime. It indicates that the packing for 7 days each has been keyed. Although the E powder, which is a powder, cannot be packaged in the packaging machine (11) and is packaged by another packaging machine dedicated to powder or by manual work, it is input for inventory management. Therefore, No. of the prescription data memory M 21 . 1 to No. Each storage area m 5 up to 4 has A
・ The code number data of each chemical of B, C, E is written,
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. “1” is written in each address 0 to 3 of the memory area m 2 of 4 respectively,
The number of days data “7” is written in the storage area m 1 . And by inputting the drug number data and the number of days data, morning, noon, evening,
The total number of packages before bedtime is calculated and stored in each address 0 to 3 of the storage area m 3 , and displayed on the display unit (35) of the CRT (22). In addition, E powder is packed in a packaging machine (1
Since it is impossible to package in 1), “0” is stored as the code number in the prescription data memory M 21 , but the CRT (2
The display part (34) of 2) displays "..." For E powder to indicate that packaging is impossible.
【0014】このようにして処方データを作成してN11
ステップに復帰し、制御装置(14)から転送要求信号
が送信されているのを検出すると、N14ステップとなっ
てレジスタR4の内容が「0」以外の値であるかを判定
する。レジスタR4は、包装機(11)が包装動作中で
あると、このときの包装動作の基となる処方データの転
送番号をストアしている。したがって現在、包装機(1
1)が包装動作を停止しているとレジスタR4の内容が
「0」のために、N19ステップに移行して処方データの
有無を判定する。そして前述のN13ステップの処理によ
り処方データメモリM21に処方データをストアしている
と、N20ステップとなって処方データメモリM2の記憶
領域m4にストアされている転送番号をレジスタR4に書
込み、N21ステップで制御装置(14)に転送する処方
データを図11のフォーマットにしたがって制御データ
に変換する。尚、何れか二つ以上の処方データメモリM
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 process of the N 13 step described above, the transfer number stored in the storage area m 4 of the prescription data memory M 2 becomes 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 of FIG. 11. In addition, any two or more prescription data memories M
If the prescription data is stored in 21 to M 2n , the prescription data with the smaller transfer number stored in the storage area m 4 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’・m 3’・
m5’を具備している。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’のうちのアドレス0を夫々指定
する。n28ステップは、各記憶領域m2’のアドレス0
に夫々ストアしている薬品種毎の薬数データの論理和が
「0」であるかを判定する。このとき各記憶領域m2’
のアドレス0にストアしている薬数データの少なくとも
一つが「0」以外であると、n29ステップで記憶領域m
3のアドレス0にストアしている朝についての総分包数
データを、制御データメモリM3の記憶領域m3’のアド
レス0に書込む。また各記憶領域m2’のアドレス0に
ストアしている薬数データが全て「0」であると、n30
ステップで制御データメモリM3の記憶領域m3’のアド
レス0に「0」を書込む。n31ステップは、n27ステッ
プで選定した処方データメモリM2の記憶部の記憶領域
m3におけるアドレスを0から1にシフトするととも
に、制御データメモリM3の各記憶領域m2’のアドレス
を全て0から1にシフトし、n32ステップは処方データ
メモリM2の記憶領域m3のアドレスがオーバーしたかを
判定して、アドレスが3以内のうちはn28ステップに移
行する。そしてn28ステップからn32ステップまでの処
理にて、制御データメモリM3の各記憶領域m2’の各ア
ドレス1にストアしている薬品種毎の薬数データの論理
和が「0」であるかで昼の総分包数データの修正の要否
を判定し、「0」以外の場合は修正の要なしとして記憶
領域m3のアドレス1にストアしているデータを記憶領
域m3’のアドレス1に書込み、「0」の場合は記憶領
域m3’のアドレス1に「0」を書込んで総分包数デー
タを修正する。同様に、夕及び就寝前についての総分包
数も夫々n28ステップからn32ステップまでの処理によ
り修正が判定されて、制御データメモリM3の記憶領域
m3’のアドレス2及び3には夫々所定のデータが書込
まれる。そして処方データメモリM2のアドレスが記憶
領域m3を越えると、n32ステップからN22ステップと
なる。したがって本例の処方入力に依れば、就寝前の服
用はE散剤のみであり、制御データメモリM3における
各記憶領域m2’のアドレス3にストアされているデー
タの論理和は「0」のために、記憶領域m3’のアドレ
ス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 at the same time, in each storage area m 2 ′ of the control data memory M 3 . The address 0 of them is designated respectively. At step n 28 , the address 0 of each storage area m 2 'is set.
It is determined whether or not the logical sum of the drug quantity data for each drug type stored in each is. At this time, each storage area m 2 '
When at least one drug the number of data that are stored in the address 0 is not "0", stored in n 29 Step area m
The total number of packets data about the morning that is stored in the third address 0 is written to address 0 of the memory area m 3 'of the control data memory M 3. If all the drug number data stored at address 0 of each storage area m 2 'is "0", n 30
"0" is written into address 0 of the memory area m 3 'of the control data memory M 3 in step. 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. Then, in the processing from step n 28 to step n 32 , 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”. or by determining the necessity of daytime total number of packets data modification is, "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 ' write to the address 1, in the case of "0" to correct the total number of packets data write the "0" in the address 1 of the storage area m 3 '. 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. When the address of the prescription data memory M 2 exceeds the storage area m 3 , the steps from n 32 to N 22 are performed. 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". Therefore, the correction value “0” is written in the address 3 of the storage area m 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”・
m 5”を具備して、夫々薬数データ・総分包数データ・
薬品種のコード番号データをストアする。N3’ステッ
プは、1が加算されるごとに順次「0」から「3」まで
を繰り返し計数する3進の制御カウンタ(27)を
「0」にセットする。N 4’ステップは、メモリM4の記
憶領域m3”の内容が「0」かを判定する。記憶領域
m3”は朝・昼・夕・就寝前に対応する0から3までの
4つのアドレスに夫々総分包数をストアしているが、こ
の場合、制御カウンタ(27)の内容CNは「0」のた
めにアドレス0が指定されて、朝の総分包数データが
「0」であるかが判定される。本例では朝服用の分包数
は7日分でありN5’ステップに移行する。N5’ステッ
プは、メモリM4の記憶領域m5”にストアしているコー
ド番号データをレジスタR1にストアし、記憶領域m2”
にストアしている薬数データをレジスタR2にストアす
る。このとき記憶領域m2”に関しては、制御カウンタ
(27)の内容CNが「0」のために先ず各記憶領域m
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’ステップで包装動作が成される。
N9’ステップで包装機コントローラ(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", each storage area m
2Read the drug number data stored at address 0
Register R2Stored in. Therefore Regis
R1The code number data of each tablet of A, B and C is written in
Rare, register R2In the morning for these tablet types
The drug number data for each minute is written. N6’Step is Regis
R2Determines whether the content of "0" is "0", but each of A, B, C
Number data for at least one tablet type
N if it is other than "0"7’Steps to extract tablets
It will work. N7’In step, packaging machine control
(28) is a tablet type with drug count data other than "0"
Code number data for1Read more
Will be introduced. And the packaging machine controller (28)
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
In the case of the tablet type for which the extraction operation was performed,
N by subtracting "1" from the data6'Return to step.
In this example, one tablet of each of A, B, and C is packed in the morning package.
Register R for packaging2Stored in
The data on the number of drugs for each of B and C is “0”. But
Then one minute worth of tablets in the morning were extracted and put in the hopper (2).
Introduced, 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)より錠剤を摘出し、
N8’ステップではレジスタR2の薬数データより「1」
を減算する。本例では、昼服用分の分包もA・B・Cの
各種薬剤を一錠づつ包装するために、レジスタR2の剤
数データは全て「0」となりN6’ステップからN9’ス
テップとなる。N9’ステップでは、ホッパー(2)に
取り出した昼の一分包分の錠剤の包装動作を行ない、N
10’ステップでは、記憶領域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 N 5 'step, the code number data stored in the storage area m 5 ″ is stored in the register R 1 , and the drug number data stored in the address 1 of each storage area m 2 ″ is stored in the register R 1. Store at 2 . Then, from the N 6 'step to the N 7 ' step, tablets are extracted from the tablet case (5) ... (5) for the tablet types whose drug number data stored in the register R 2 is other than "0",
In the N 8 'step, it is “1” from the drug number data in the register R 2.
Subtract. In this example, since the sachets for lunch are also packed with one tablet of each of A, B, and C, the drug number data in the register R 2 is all “0”, and the steps from N 6 'to N 9 ' Becomes In the N 9 'step, the packing operation of the one-minute packet for the day taken out into the hopper (2) is performed, and N
10 'in step subtracts "1" from the data that is stored in address 1 of the storage area m 3 ", to record a day one minute packing operation is completed. Then, from the N 11 'step to the N 12 ' step, the content CN of the control counter (27) is advanced from "1" to "2". Therefore, the next N
4 'from step, the storage area m 5 "· m 2" for the contents of the control counter (27) is "2" becomes the processing for one minute packing operations of evening the address 2 is specified, thereafter, evening When the processing for the packaging of No. 4 is completed, the content CN of the control counter (27) is advanced from “2” to “3” and N 4 '
Return to step. At this time, the content of the address 3 of the memory area m 3 ″ is “0”, and the step from N 4 ′ to N 11 ′ is performed.
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. The control counter (2 N 12 'Step
The content of 7) is advanced from "3" to "0", and the process for morning sachets is performed again. Until this manner are stored in the address 0-3 of the storage area m 3 'of the memory M 4 the data is all "0", and repeats the packing operation in morning, noon and evening of the order. Then, when the packaging for 7 minutes for 7 days in the morning, noon, and evening is completed, it is determined that the packaging for one input prescription is completed, and the process returns from the N 11 'step to the N 0 ' step. Then, in the N 0 'step, a transfer request signal of prescription data regarding the next packaging operation is transmitted to the control device (13).
【0020】そして制御装置(14)が転送要求信号を
出力しているのを、制御装置(13)がN11ステップで
検出すると、このときは処方データを制御装置(14)
に転送してレジスタR4には転送番号をストアしている
ためにN14ステップとなる。N15ステップは、処方デー
タメモリM21にストアしている薬品名より対応する薬品
ファイルメモリM11〜M1nを索引し、N16ステップで該
メモリの薬数記憶領域m10に薬数の累積を記憶する。N
17ステップでは処方データメモリ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(2
2)は各薬品種毎のコード番号・略称コード・薬品名・
累積薬数を表示する。When the control device (13) detects that the control device (14) is outputting the transfer request signal in the N 11 step, at this time, the prescription data is the control device (14).
Since it is transferred to the register R 4 and the transfer number is stored in the register R 4 , it becomes N 14 steps. N 15 step, prescription data stored in the memory M 21 indexed chemicals file memory M 11 ~M 1n corresponding than medicine name and the cumulative number of drugs drugs number storage area m 10 of the memory at N 16 step Memorize N
In step 17 , the prescription data memory M 21 is cleared and N 18
In the step, the register R 4 is set to “0”, and N 19 steps are performed. In this way, when 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 N 11 step and the contents of the register R 4 in the N 14 step, Drug file memory M 11 corresponding to the drug type shown in the prescription data after packaging
By designating ~ M 1n , the drug number data of the drug type is added to the cumulative drug number stored in the storage area m 10 . When the prescription data is stored in any one of the prescription data memories M 22 to M 2n , the control data is created again and the control device controls the control data in the case of the medicine type that can be packaged by the packaging machine (11). 14). The data stored in the drug file memories M 11 to M 1n is input to the central processing unit (18) with a display command for operating the predetermined key of the key input unit (12) to display the data. Then, it is displayed on the CRT (22). That is,
In the flowchart of FIG. 6, the transfer request signal is not transmitted from the control device (14), and the key input unit (12)
When it is detected in N 24 steps that the display command has been generated in the state where the prescription input is not made in N, it becomes N 25 steps and the data stored in the medicine file memories M 11 to M 1n is stored in the CRT controller (21). Installed on the CRT (2
2) is the code number, abbreviation code, and drug name for each drug type
Display the cumulative drug count.
【0021】[0021]
【発明の効果】本発明に依ると、包装機で包装不可能な
薬品を含め薬局で扱う全ての薬品種を処方箋に沿って入
力することが可能となり、薬剤管理機能を備えた薬剤包
装機が提供できる。しかも、薬品種毎に分包の要否を指
定するために、包装機内における該当薬品の収納の有無
だけにとどまらず、収納されている薬品種についても適
宜包装不要に設定することができ、本来であれば包装機
で包装可能な薬品であっても品切れやタブレットケース
の故障により包装できない薬品が生じた場合に、暫定的
に包装できる薬品だけを包装することができる。EFFECTS OF THE INVENTION According to the present invention, it becomes possible to input all kinds of medicines handled by a pharmacy, including medicines that cannot be packed by the packing machine, according to a prescription, and a medicine packing machine having a medicine management function is provided. Can be provided. Moreover, in order to specify the necessity of packing for each chemical type, it is possible to set not only the presence or absence of the corresponding chemical in the packaging machine but also the stored chemical type as appropriate without packaging. In that case, even if a medicine that can be packed by the packing machine is used and a medicine that cannot be packed is generated due to a malfunction of the tablet case, only the temporarily packable medicine can be packed.
【図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).
(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. Means for inputting the type of medicine to be administered and the number of medicines, means for specifying the necessity of packaging for each input drug type, and information on the necessity of packaging. A device for controlling a medicine packaging machine, comprising means for determining a medicine type that does not require packaging in the packaging machine, and means for packaging a medicine to be dispensed excluding the medicine type that does not require packaging.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24192991A JPH07121721B2 (en) | 1991-09-20 | 1991-09-20 | Control device for drug packaging machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24192991A JPH07121721B2 (en) | 1991-09-20 | 1991-09-20 | Control device for drug packaging machine |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8487484A Division JPS60228224A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP30677996A Division JP2966798B2 (en) | 1996-11-18 | 1996-11-18 | Control method of drug packaging system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH054601A true JPH054601A (en) | 1993-01-14 |
| JPH07121721B2 JPH07121721B2 (en) | 1995-12-25 |
Family
ID=17081670
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP24192991A Expired - Lifetime JPH07121721B2 (en) | 1991-09-20 | 1991-09-20 | Control device for drug packaging machine |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07121721B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5977568A (en) * | 1982-10-26 | 1984-05-04 | Tokyo Shokai:Kk | Processor of medical prescription |
-
1991
- 1991-09-20 JP JP24192991A patent/JPH07121721B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5977568A (en) * | 1982-10-26 | 1984-05-04 | Tokyo Shokai:Kk | Processor of medical prescription |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07121721B2 (en) | 1995-12-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61232113A (en) | Tablet packaging machine | |
| US6397558B1 (en) | Medication packing apparatus | |
| JPH03628A (en) | Dose packer | |
| JP4546605B2 (en) | Chemical inventory management system | |
| JP2966798B2 (en) | Control method of drug packaging system | |
| JPH048282B2 (en) | ||
| JP2002334155A (en) | System for controlling dispensation | |
| JP3030286B2 (en) | Drug packaging machine | |
| JPH0542901A (en) | Controlling device for medicine dispensation-packing machine | |
| JPH07121721B2 (en) | Control device for drug packaging machine | |
| JPH0253283B2 (en) | ||
| JPH04102168A (en) | Stock control device for medicine packing machine | |
| JPH0360721B2 (en) | ||
| JP2006081837A (en) | Medicinal preparation managing system | |
| JPH06227526A (en) | Tablet-wrapping machine | |
| JP2691858B2 (en) | Dispensing control method | |
| JP3021584B2 (en) | Inventory control device for drug packaging machine | |
| JP2810627B2 (en) | Control device for drug packaging machine | |
| JPH0253282B2 (en) | ||
| JPH0253281B2 (en) | ||
| JPH03629A (en) | Dose packer | |
| JPH024670Y2 (en) | ||
| JPH05147627A (en) | Medicine package-printing emthod of tabletpacking machine | |
| JP3083046B2 (en) | Drug packaging device | |
| JPH0444904A (en) | Medicine packaging machine |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |