JPH11253530A - Sensor network system for preparation of medicine - Google Patents

Sensor network system for preparation of medicine

Info

Publication number
JPH11253530A
JPH11253530A JP5760998A JP5760998A JPH11253530A JP H11253530 A JPH11253530 A JP H11253530A JP 5760998 A JP5760998 A JP 5760998A JP 5760998 A JP5760998 A JP 5760998A JP H11253530 A JPH11253530 A JP H11253530A
Authority
JP
Japan
Prior art keywords
unit
sensor
medicine bag
dispensing
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5760998A
Other languages
Japanese (ja)
Inventor
Shiro Omura
司郎 大村
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.)
TOSHO KK
Original Assignee
TOSHO KK
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 TOSHO KK filed Critical TOSHO KK
Priority to JP5760998A priority Critical patent/JPH11253530A/en
Publication of JPH11253530A publication Critical patent/JPH11253530A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a system wherein scale of a circuit of a sensor system is made small and changing in operation is facilitated and wirings are made less and furthermore, load of a control device is reduced. SOLUTION: Optical sensors 21 and 22 are connected with a processing device 25 through an integration-comparison parts 23 and 24. Processing devices 29, 34 and 38 are respectively connected with a tray detecting sensor 11, a microswitch 32 and a proximity switch 36. The processing devices are constituted of microcomputors and are connected with a communication medium 40 through network interfaces 26, 30, 35 and 39. Operations in the processing devices 25, 29, 34 and 38 are changable by changing programs by means of a control device 17.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、調剤用装置で用い
られる調剤用センサネットワークシステムに関する。
TECHNICAL FIELD The present invention relates to a dispensing sensor network system used in a dispensing device.

【0002】[0002]

【従来の技術】従来より、処方箋に従って調剤業務を自
動的に行う調剤用システムが実用化されている。この調
剤用システムには、薬剤分包装置、薬袋作成装置等の種
々の調剤用装置が含まれている。
2. Description of the Related Art Conventionally, a dispensing system for automatically performing a dispensing operation according to a prescription has been put to practical use. This dispensing system includes various dispensing devices such as a drug packaging device and a medicine bag making device.

【0003】この調剤用システムに含まれる調剤用装置
は、種々のセンサを備えて構成されるものであり、この
種々のセンサから出力された情報や、所定の調剤情報
(薬袋の枚数、種類等)に基づいて動作制御が行われ
る。ここで、調剤用装置で用いられる種々のセンサとし
ては、例えば、薬剤分包装置では分包紙を閉じるための
ヒータの温度を検出するために温度センサが用いられ、
薬袋を作成すると共に薬袋に薬袋書記用データを印字す
る薬袋作成装置では薬袋用紙の有無を検出するために光
センサが用いられている。なお、この他にも、調剤用装
置では、各種の可動部分の位置を検出するためにマイク
ロスイッチや近接スイッチ等も用いられている。
The dispensing device included in the dispensing system is provided with various sensors, and information output from the various sensors and predetermined dispensing information (such as the number and type of medicine bags, etc.) ) Is performed based on the operation control. Here, as various sensors used in the dispensing device, for example, in a medicine packaging device, a temperature sensor is used to detect a temperature of a heater for closing the packaging paper,
2. Description of the Related Art An optical sensor is used in a medicine bag making apparatus that creates medicine bags and prints medicine bag writing data on the medicine bags to detect the presence or absence of medicine bag paper. In addition, in addition to the above, in the dispensing device, a micro switch, a proximity switch, or the like is used to detect the positions of various movable parts.

【0004】従来の調剤用装置では、上記のような種々
のセンサから出力された情報や、所定の調剤情報等に基
づいて、例えば、調剤用装置全体を管理する制御装置
が、モータやソレノイド等の出力装置を制御したり、所
定の判定(例えば、用紙の有無の判定)等を行うが、こ
の場合には、センサからの入力をオペアンプやコンパレ
ータといったアナログ回路やアナログ−ディジタル(以
下、A/Dと記す。)変換器等といったハードウェアを
用いて、制御装置が必要とする所定の信号に変換するこ
とが行われていた。
In a conventional dispensing device, for example, a control device for managing the entire dispensing device based on information output from various sensors as described above, predetermined dispensing information, and the like includes a motor, a solenoid, and the like. In this case, the input from the sensor is converted to an analog circuit such as an operational amplifier or a comparator or an analog-digital (hereinafter, A / D). D is used to convert the signal into a predetermined signal required by the control device using hardware such as a converter.

【0005】また、従来の調剤用装置では、調剤用装置
全体を管理する制御装置が、センサについての自己診断
や自動感度調整等を行う機能を有している場合もある。
[0005] In a conventional dispensing device, a control device that manages the entire dispensing device may have a function of performing self-diagnosis, automatic sensitivity adjustment, and the like for sensors.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述の
ような従来の構成では、アナログ回路やA/D変換器等
のハードウェアのために、センサとこのセンサからの入
力を制御装置が必要とする所定の信号に変換する周辺回
路からなるセンサ装置の回路規模が大きくなるという問
題点があった。また、従来のセンサ装置では、アナログ
回路やA/D変換器等のハードウェアによって動作が規
定されるため、センサの感度を調整したり、所定の判定
のためのしきい値を変更する等、センサ装置の動作を変
更する場合には、直接、センサ装置内の回路を調整した
り、センサ装置内の回路を交換したりしなければなら
ず、作業が煩雑であるという問題点があった。
However, in the above-described conventional configuration, a sensor and an input from the sensor are required by a control device because of hardware such as an analog circuit and an A / D converter. There has been a problem that the circuit scale of a sensor device including a peripheral circuit that converts the signal into a predetermined signal becomes large. In the conventional sensor device, the operation is defined by hardware such as an analog circuit and an A / D converter, so that the sensitivity of the sensor is adjusted, the threshold value for a predetermined determination is changed, and the like. When the operation of the sensor device is changed, it is necessary to directly adjust the circuit in the sensor device or replace the circuit in the sensor device, and there is a problem that the operation is complicated.

【0007】更に、従来の構成では、センサ装置を個別
に制御装置に接続する必要があり、配線が多くなるとい
う問題点があった。
Further, in the conventional configuration, it is necessary to individually connect the sensor devices to the control device, and there is a problem that the number of wirings increases.

【0008】また、従来の構成では、制御装置が、セン
サから出力された情報や、所定の調剤情報等に基づいて
動作制御を行う他に、更に、センサについての自己診断
や自動感度調整等を行う機能を有しているので、制御装
置の負担が大きくなるという問題点があった。
Further, in the conventional configuration, in addition to controlling the operation based on information output from the sensor, predetermined dispensing information, and the like, the control device further performs self-diagnosis and automatic sensitivity adjustment of the sensor. There is a problem that the load on the control device is increased due to the function of performing the control.

【0009】本発明はかかる問題点に鑑みてなされたも
ので、その目的は、センサ装置の回路規模を小さくする
ことができると共に動作の変更を容易にし、また、配線
を少なくすることができ、更に、制御装置の負担を軽減
することを可能にした調剤用センサネットワークシステ
ムを提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to reduce the circuit scale of a sensor device, facilitate the change of operation, and reduce the number of wirings. It is still another object of the present invention to provide a dispensing sensor network system capable of reducing the load on a control device.

【0010】[0010]

【課題を解決するための手段】本発明の調剤用センサネ
ットワークシステムは、調剤用装置で用いられる複数の
センサと、各々が、この複数のセンサのうちの少なくと
も一つのセンサに接続され、所定の処理手順に従った動
作により、少なくとも一つのセンサからの入力に応じた
所定の情報を生成する複数の処理装置と、この複数の処
理装置の各々に通信媒体を介して接続されると共に、接
続された複数の処理装置に対する所定の動作設定を行う
制御装置とを備えたものである。なお、本発明におい
て、センサは、何らかの情報を検出する装置をいい、例
えばマイクロスイッチや近接スイッチ等のスイッチも含
むものとする。
A dispensing sensor network system according to the present invention includes a plurality of sensors used in a dispensing device, each of which is connected to at least one of the plurality of sensors, and includes a predetermined sensor. A plurality of processing devices that generate predetermined information according to an input from at least one sensor by an operation according to the processing procedure, and are connected to each of the plurality of processing devices via a communication medium, and are connected. And a control device for performing predetermined operation settings for a plurality of processing devices. In the present invention, a sensor refers to a device that detects some information, and includes a switch such as a microswitch or a proximity switch.

【0011】この調剤用センサネットワークシステムで
は、複数のセンサのうちの少なくとも一つのセンサに接
続された複数の処理装置により、所定の処理手順に従っ
た動作で、少なくとも一つのセンサからの入力に応じた
所定の情報が生成される。また、この複数の処理装置の
各々に通信媒体を介して接続された制御装置により、複
数の処理装置に対する所定の動作設定が行われる。
In this dispensing sensor network system, a plurality of processing devices connected to at least one of the plurality of sensors operate in accordance with a predetermined processing procedure in response to an input from at least one sensor. Predetermined information is generated. In addition, a predetermined operation setting for the plurality of processing devices is performed by a control device connected to each of the plurality of processing devices via a communication medium.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。図2は、本発明の一
実施の形態に係る調剤用センサネットワークシステムを
含む薬袋作成装置の概略の構成を示すブロック図であ
る。また、図3は、図2に示した薬袋作成装置を含む調
剤システムの概略構成を示すブロック図である。更に、
図4は、図3に示した調剤システムに含まれる操作卓ユ
ニットの概略構成を示すブロック図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 is a block diagram showing a schematic configuration of a medicine bag making apparatus including the dispensing sensor network system according to one embodiment of the present invention. FIG. 3 is a block diagram showing a schematic configuration of a dispensing system including the medicine bag making device shown in FIG. Furthermore,
FIG. 4 is a block diagram showing a schematic configuration of a console unit included in the dispensing system shown in FIG.

【0013】調剤システムは、それぞれ薬袋作成装置等
の各種調剤用装置を含む複数のユニットを備えて構成さ
れる。すなわち、図3に示したように、調剤システム
は、調剤情報を含む各種データのデータ入力端末および
データサーバとして機能する操作卓ユニット1と、調剤
された薬剤を分包した分包袋を収容して搬送路10上を
移動するトレイ2と、通信路3により操作卓ユニット1
に接続され、それぞれ多種類の錠剤、散剤または水剤を
格納すると共に操作卓ユニット1から入力された調剤情
報に基づいて必要な錠剤、散剤または水剤を自動的に分
包して分包袋の形でトレイ2中に投入する錠剤分包ユニ
ット4、散剤分包ユニット5および水剤分包ユニット6
と、図2に示した薬袋作成装置を含んで構成されトレイ
2内に投入された各種類の分包袋を患者に手渡す際に用
いられる収容袋である薬袋に必要な情報を印字してトレ
イ2中に投入する薬袋供給ユニット7と、患者に手渡さ
れる薬剤が調剤情報通りのものか否かを薬剤師が確認す
る監査作業を支援するための監査支援ユニット8とを備
えている。これらの各ユニットは搬送路駆動ユニット9
によって駆動される搬送路10に沿って配置されてい
る。
The dispensing system comprises a plurality of units each including various dispensing devices such as a medicine bag making device. That is, as shown in FIG. 3, the dispensing system accommodates the console unit 1 functioning as a data input terminal and a data server for various data including dispensing information, and a sachet containing the dispensed medicine. Console unit 1 by means of a tray 2 moving on a transport path 10 and a communication path 3
Are connected to each other to store various types of tablets, powders or liquid medicines, and to automatically pack necessary tablets, powders or liquid medicines based on the dispensing information input from the console unit 1 to form a sachet. Tablet packaging unit 4, powder packaging unit 5 and liquid medication packaging unit 6 to be put into tray 2 in the form of
And a tray for printing necessary information on a medicine bag, which is a storage bag used when handing each type of sachet put into the tray 2 to the patient, including the medicine bag making apparatus shown in FIG. 2 includes a medicine bag supply unit 7 to be put into the apparatus 2 and an audit support unit 8 for assisting an audit operation in which a pharmacist checks whether the medicine delivered to the patient is as per the dispensing information. Each of these units is a transport path drive unit 9
Along the transport path 10 driven by the

【0014】これらの各ユニット間は通信路3によって
相互接続されているが、各ユニットは操作卓ユニット1
によって統括制御されるのではない。各ユニットはそれ
ぞれ自律的に動作すると共に、必要に応じて他のユニッ
トとの間で相互にデータ通信を行うことによって、全体
として秩序ある動作を行うようになっている。そのた
め、各ユニットはそれぞれ個別に制御装置および制御プ
ログラムを保有している。
These units are interconnected by a communication path 3, and each unit is connected to the console unit 1.
It is not totally controlled by. Each of the units operates autonomously, and performs mutual data communication with other units as necessary, thereby performing an orderly operation as a whole. Therefore, each unit individually has a control device and a control program.

【0015】また、これらのユニットのうち、錠剤分包
ユニット4、散剤分包ユニット5、水剤分包ユニット
6、薬袋供給ユニット7および監査支援ユニット8の各
々には、トレイ2の到着を検知するトレイ検知センサ1
1と、このトレイ検知センサ11による検知に基づいて
トレイ2の移動を停止させる機能を有するストッパ12
とが備えられている。
Of these units, each of the tablet packaging unit 4, the powder packaging unit 5, the liquid medication packaging unit 6, the medicine bag supply unit 7, and the audit support unit 8 detects the arrival of the tray 2. Tray detection sensor 1
1 and a stopper 12 having a function of stopping the movement of the tray 2 based on the detection by the tray detection sensor 11.
And are provided.

【0016】操作卓ユニット1は、図4に示したよう
に、CPU111、ハードディスク装置112、メモリ
113および通信メディアドライバ114を含んで構成
された本体制御部110と、必要な情報を表示するため
の表示装置120と、必要な情報(調剤情報等)を入力
するためのキーボード130とを備えている。
As shown in FIG. 4, the console unit 1 includes a main body control unit 110 including a CPU 111, a hard disk device 112, a memory 113, and a communication media driver 114, and displays necessary information. A display device 120 and a keyboard 130 for inputting necessary information (dispensing information and the like) are provided.

【0017】この操作卓ユニット1において、本体制御
部110の各部と表示装置120およびキーボード13
0との間は内部バス140によって接続されている。メ
モリ113は処理プログラムを格納するほか、CPU1
11が必要な処理を行う際のワークメモリとして使用さ
れるものである。ハードディスク装置112には、キー
ボード130から入力された患者ごとの処方データ等の
調剤情報を含んで構築されたデータベースが格納され、
必要に応じてCPU111によって参照されるようにな
っている。ハードディスク装置112のデータベースに
格納される調剤情報としては、例えば、処方データとし
ての処方薬、用法、分包数等の情報や、薬袋の種類、枚
数、出力する順番等が含まれる。本体制御部110のC
PU111は、通信メディアドライバ114により、通
信路3を介して他のユニット(薬袋供給ユニット7等)
との間でデータ通信ができるようになっており、これら
の各ユニットに対してハードディスク装置112のデー
タベースの内容を適宜送ることができるようになってい
る。
In the console unit 1, each part of the main body control unit 110, the display device 120 and the keyboard 13
0 is connected by the internal bus 140. The memory 113 stores a processing program and the CPU 1
Reference numeral 11 is used as a work memory when performing necessary processing. The hard disk device 112 stores a database constructed including dispensing information such as prescription data for each patient input from the keyboard 130,
It is referred to by the CPU 111 as needed. The dispensing information stored in the database of the hard disk device 112 includes, for example, prescription data as prescription data, information on usage, the number of packages, the type and number of medicine bags, output order, and the like. C of main body control unit 110
The PU 111 is connected to another unit (such as the medicine bag supply unit 7) via the communication path 3 by the communication media driver 114.
Data communication can be performed with these units, and the contents of the database of the hard disk device 112 can be appropriately transmitted to these units.

【0018】薬袋供給ユニット7は、薬袋作成装置を含
んで構成される。この薬袋作成装置は、図2に示したよ
うに、薬袋用紙を収納すると共に後述する印刷部に薬袋
用紙を供給する給紙部13と、この給紙部13より供給
される薬袋用紙に、印字ヘッドによって、処方データに
基づく薬袋書記用データを印字する印刷部14と、この
印刷部14で薬袋書記用データが印字された薬袋用紙を
シールし、所定の大きさにカットして薬袋を完成させる
シール・カット部15と、このシール・カット部15で
完成された薬袋を収容する薬袋収容部16と、外部より
薬袋書記用データを入力し、給紙部13、印刷部14お
よびシール・カット部15を制御して薬袋作成装置全体
を管理する制御装置17とを備えている。
The medicine bag supply unit 7 includes a medicine bag making device. As shown in FIG. 2, the medicine bag making apparatus includes a paper supply unit 13 that stores medicine bag paper and supplies the medicine bag paper to a printing unit described later, and prints the medicine bag paper supplied from the paper supply unit 13. A printing unit 14 for printing medicine bag writing data based on the prescription data by the head, and a medicine bag paper on which the medicine bag writing data is printed by the printing unit 14 are sealed and cut into a predetermined size to complete the medicine bag. A seal cut section 15, a medicine bag accommodating section 16 for accommodating a medicine bag completed by the seal cut section 15, a medicine bag writing data input from outside, and a paper feed section 13, a printing section 14, and a seal cut section. And a control device 17 for controlling the whole of the medicine bag making device by controlling the device 15.

【0019】印刷部14内には、印字後の薬袋用紙が通
過する搬送路に面して、2つの反射型の光センサ21,
22が配設されている。各光センサ21,22は、それ
ぞれ、搬送路に向けて光を出射する発光部と、この発光
部から出射され薬袋用紙で反射した光を受光するための
受光部とを有している。一方の光センサ21は薬袋用紙
の有無を判定するために用いられ、他方の光センサ22
は薬袋用紙上の印字の状態を判定するために用いられる
ようになっている。
In the printing section 14, two reflection-type optical sensors 21, 21 facing the transport path through which the printed medicine bag paper passes.
22 are provided. Each of the optical sensors 21 and 22 has a light emitting unit for emitting light toward the transport path, and a light receiving unit for receiving light emitted from the light emitting unit and reflected on the medicine bag paper. One optical sensor 21 is used to determine the presence or absence of a medicine bag sheet, and the other optical sensor 22
Are used to determine the state of printing on the medicine bag paper.

【0020】次に、本実施の形態に係る調剤用センサネ
ットワークシステムについて説明する。本実施の形態に
係る調剤用センサネットワークシステムは、図3で示し
た各ユニット内のそれぞれに含まれているのであるが、
以下では、本実施の形態に係る調剤用センサネットワー
クシステムの一例として、薬袋供給ユニット7の薬袋作
成装置に含まれる調剤用センサネットワークシステムに
ついて説明する。
Next, a dispensing sensor network system according to the present embodiment will be described. The dispensing sensor network system according to the present embodiment is included in each of the units shown in FIG. 3,
Hereinafter, as an example of the dispensing sensor network system according to the present embodiment, a dispensing sensor network system included in the medicine bag making device of the medicine bag supply unit 7 will be described.

【0021】図1は、本実施の形態に係る調剤用センサ
ネットワークシステムおよびその周辺の回路を示すブロ
ック図である。この図に示したように、本実施の形態に
係る調剤用センサネットワークシステムは、前述のトレ
イ2を検知するために用いられるトレイ検知センサ11
や、光センサ21,22の他に、光センサ21の受光部
の出力信号を入力する積分・比較部23と、光センサ2
2の受光部の出力信号を入力する積分・比較部24と、
これら積分・比較部23,24に接続された処理装置2
5と、この処理装置25に接続されたネットワークイン
タフェース26とを備えている。光センサ21,22、
積分・比較部23,24、処理装置25およびネットワ
ークインタフェース26は印刷部14内に設けられてい
る。
FIG. 1 is a block diagram showing a dispensing sensor network system and peripheral circuits according to the present embodiment. As shown in this figure, the dispensing sensor network system according to the present embodiment has a tray detection sensor 11 used for detecting the tray 2 described above.
In addition to the optical sensors 21 and 22, an integrating / comparing unit 23 for inputting an output signal of the light receiving unit of the optical sensor 21 and an optical sensor 2
An integration / comparison unit 24 for inputting an output signal of the light receiving unit 2;
Processing device 2 connected to these integration / comparison units 23 and 24
5 and a network interface 26 connected to the processing device 25. Optical sensors 21, 22;
The integration / comparison units 23 and 24, the processing device 25, and the network interface 26 are provided in the printing unit 14.

【0022】本実施の形態に係る調剤用センサネットワ
ークシステムは、更に、センサとして、前述のトレイ検
知センサ11,光センサ21,22の他にも、マイクロ
スイッチ32,近接スイッチ36等を備えている。この
うち、マイクロスイッチ32および近接スイッチ36
は、特に、薬袋用紙をカットする部分等、紙粉が付くた
めに光センサを使用することが不適切な箇所に設けられ
ている。
The dispensing sensor network system according to the present embodiment further includes a microswitch 32, a proximity switch 36, and the like as sensors in addition to the tray detection sensor 11, the optical sensors 21 and 22, and the like. . Among them, the micro switch 32 and the proximity switch 36
Is provided in a place where it is inappropriate to use the optical sensor due to the adhesion of paper dust, such as a part for cutting medicine bag paper.

【0023】本実施の形態に係る調剤用センサネットワ
ークシステムは、更に、トレイ検知センサ11に接続さ
れた処理装置29と、この処理装置29に接続されたネ
ットワークインタフェース30と、マイクロスイッチ3
2に接続された処理装置34と、この処理装置34に接
続されたネットワークインタフェース35と、近接スイ
ッチ36に接続された処理装置38と、この処理装置3
8に接続されたネットワークインタフェース39とを備
えている。
The sensor network system for dispensing according to the present embodiment further includes a processing device 29 connected to the tray detection sensor 11, a network interface 30 connected to the processing device 29,
2, a network interface 35 connected to the processing device 34, a processing device 38 connected to the proximity switch 36, and a processing device 3
8 is connected to the network interface 39.

【0024】本実施の形態に係る調剤用センサネットワ
ークシステムでは、光センサ21,22、積分・比較部
23,24および処理装置25が、一つのセンサ装置と
して機能し、同様に、トレイ検知センサ11および処理
装置29、マイクロスイッチ32および処理装置34、
近接スイッチ36および処理装置38が、それぞれ、一
つのセンサ装置として機能する。
In the dispensing sensor network system according to the present embodiment, the optical sensors 21 and 22, the integrating / comparing units 23 and 24, and the processing device 25 function as one sensor device. And the processing device 29, the microswitch 32 and the processing device 34,
The proximity switch 36 and the processing device 38 each function as one sensor device.

【0025】各ネットワークインタフェース26,3
0,35,39は、通信媒体40に接続され、この通信
媒体40には更に、制御装置17が接続されている。本
実施の形態では、通信媒体40、各ネットワークインタ
フェース26,30,35,39および制御装置17の
接続方式にバス型を用いており、通信媒体40の終端に
は終端回路(抵抗)41が接続されている。また、制御
装置17には通信部42が接続され、この通信部42に
は、薬袋作成装置を含む複数の装置間(操作卓ユニット
1等)で通信を行うための通信媒体43が接続されてい
る。なお、この通信媒体43は、図3における通信路3
を構成するものである。
Each network interface 26, 3
0, 35, and 39 are connected to a communication medium 40, and the control device 17 is further connected to the communication medium 40. In this embodiment, the communication medium 40, the network interfaces 26, 30, 35, 39, and the control device 17 are connected in a bus type, and a terminating circuit (resistance) 41 is connected to the end of the communication medium 40. Have been. Further, a communication unit 42 is connected to the control device 17, and a communication medium 43 for performing communication between a plurality of devices (such as the console unit 1) including the medicine bag making device is connected to the communication unit 42. I have. Note that this communication medium 43 is the communication path 3 in FIG.
It constitutes.

【0026】各ネットワークインタフェース26,3
0,35,39は、それぞれ通信媒体40を用いる通信
のプロトコルの制御を行うようになっている。通信部4
2は、通信媒体40を介して、他の装置、例えば処方デ
ータを含む調剤情報を管理する操作卓ユニット1と通信
を行い、薬袋書記用データを入力するようになってい
る。
Each of the network interfaces 26 and 3
Reference numerals 0, 35, and 39 respectively control communication protocols using the communication medium 40. Communication unit 4
2 communicates with another device, for example, the console unit 1 that manages dispensing information including prescription data, via the communication medium 40, and inputs medicine bag writing data.

【0027】各処理装置25,29,34,38および
制御装置17は、それぞれ、例えばCPU(中央処理装
置),ROM(リード・オンリ・メモリ),RAM(ラ
ンダム・アクセス・メモリ),EEPROM(電気的消
去可能なプログラマブルROM),入出力インタフェー
ス回路等を含むマイクロコンピュータによって構成され
ている。
Each of the processing units 25, 29, 34, 38 and the control unit 17 includes, for example, a CPU (central processing unit), a ROM (read only memory), a RAM (random access memory), and an EEPROM (electric Erasable programmable ROM), an input / output interface circuit and the like.

【0028】制御装置17は、通信部42で入力した薬
袋書記用データを印字するように印刷部14等の薬袋作
成装置の各部を制御するようになっている。また、制御
装置17は、通信媒体40および各ネットワークインタ
フェース26,30,35,39を介して、各処理装置
25,29,34,38におけるステータス情報を監視
することによって、各処理装置25,29,34,38
がそれぞれ管理するセンサやスイッチ等の異常監視を行
い、薬袋作成装置全体の管理を行うようになっている。
更に、制御装置17は、通信媒体40および各ネットワ
ークインタフェース26,30,35,39を介して、
各処理装置25,29,34,38に対する所定の動作
設定、例えばプログラムの入力または変更を行うことが
可能になっている。また、制御装置17は、所定の動作
設定として、各処理装置25,29,34,38におけ
る動作に関連するパラメータ(しきい値等)の初期設定
および変更等を行うことも可能になっている。
The control unit 17 controls each unit of the medicine bag making device such as the printing unit 14 so as to print the medicine bag writing data input by the communication unit 42. Further, the control device 17 monitors the status information in each of the processing devices 25, 29, 34, and 38 via the communication medium 40 and each of the network interfaces 26, 30, 35, and 39, so that the processing devices 25, 29 , 34,38
Monitors abnormalities of sensors, switches, and the like, respectively, and manages the entire medicine bag making apparatus.
Further, the control device 17 communicates via the communication medium 40 and each of the network interfaces 26, 30, 35, and 39.
It is possible to perform predetermined operation settings for each of the processing devices 25, 29, 34, and 38, for example, input or change of a program. Further, the control device 17 can also perform initial setting and change of parameters (threshold value and the like) related to the operation in each of the processing devices 25, 29, 34, and 38 as predetermined operation settings. .

【0029】積分・比較部23,24は、それぞれ、一
端に基準電圧が印加されると共に他端が接地され、基準
電圧を積分するキャパシタと、このキャパシタによって
積分された積分値と光センサ21の出力信号とを比較
し、出力信号を処理装置25に出力するコンパレータ
と、処理装置25からのリセット信号に応じてキャパシ
タの一端を接地して積分値を零にするアナログスイッチ
とを有する構成となっている。
Each of the integrating / comparing units 23 and 24 has a capacitor to which a reference voltage is applied to one end and the other end grounded, and which integrates the reference voltage, an integrated value integrated by the capacitor, and the light sensor 21. It has a configuration that includes a comparator that compares the output signal with the output signal and outputs the output signal to the processing device 25, and an analog switch that grounds one end of the capacitor to zero the integrated value according to a reset signal from the processing device 25. ing.

【0030】一方、処理装置25は、クロックをカウン
トするカウンタ機能を有し、所定の周期で積分・比較部
23,24内のアナログスイッチに対してパルス状のリ
セット信号を出力し、このリセット信号を出力してか
ら、積分・比較部23,24内の各コンパレータの出力
が変化するまでの間、それぞれクロックをカウントする
ようになっている。なお、リセット信号を出力する周期
は、リセット信号出力後、キャパシタの積分値が略飽和
するまでの時間に設定する。処理装置25で得られる2
つのカウント値は、それぞれ、光センサ21,22の出
力値に対応するため、積分・比較部23,24と処理装
置25とで、光センサ21,22の出力値をA/D変換
していることになる。
On the other hand, the processing device 25 has a counter function of counting clocks, and outputs a pulse-like reset signal to analog switches in the integration / comparison units 23 and 24 at a predetermined cycle. Is output until the output of each comparator in the integration / comparison units 23 and 24 changes, the clocks are counted. Note that the cycle of outputting the reset signal is set to a time after the output of the reset signal until the integrated value of the capacitor is substantially saturated. 2 obtained by the processing device 25
Since the two count values correspond to the output values of the optical sensors 21 and 22, respectively, the output values of the optical sensors 21 and 22 are A / D-converted by the integration / comparison units 23 and 24 and the processing device 25. Will be.

【0031】処理装置25は、このようにして各光セン
サ21,22の出力値をA/D変換して得られた各ディ
ジタル値を、それぞれ所定のしきい値と比較して、薬袋
用紙の有無と薬袋用紙上の印字の状態を判定するように
なっている。なお、ここでの所定のしきい値は、例えば
制御装置17により設定される。
The processor 25 compares each digital value obtained by A / D converting the output value of each of the optical sensors 21 and 22 with a predetermined threshold value, and compares the digital value with a predetermined threshold value. The presence or absence and the state of printing on the medicine bag paper are determined. The predetermined threshold here is set by, for example, the control device 17.

【0032】ここで、薬袋用紙の有無の判定方法につい
て説明する。光センサ21に対向する位置に薬袋用紙が
ある場合には光センサ21の発光部から出射された光が
薬袋用紙で反射されて受光部に入射するため受光部の入
射光量は多くなるが、薬袋用紙がない場合には光センサ
21の発光部から出射された光が薬袋用紙で反射されな
いため受光部の入射光量は少なくなる。従って、薬袋用
紙の有無によって光センサ21の受光部の入射光量が異
なり、光センサ21の出力値も異なる。処理装置25
は、光センサ21の出力値をA/D変換して得られたデ
ィジタル値を制御装置17により設定された第1のしき
い値と比較して、ディジタル値が第1のしきい値以上の
場合には薬袋用紙があると判定し、ディジタル値が第1
のしきい値未満の場合には薬袋用紙がないと判定する。
Here, a method of determining the presence or absence of a medicine bag sheet will be described. When there is a medicine bag paper at a position facing the optical sensor 21, the light emitted from the light emitting unit of the optical sensor 21 is reflected by the medicine bag paper and enters the light receiving unit. If there is no paper, the light emitted from the light emitting unit of the optical sensor 21 is not reflected by the medicine bag paper, so that the amount of incident light on the light receiving unit is reduced. Therefore, the amount of incident light on the light receiving portion of the optical sensor 21 differs depending on the presence or absence of the medicine bag paper, and the output value of the optical sensor 21 also differs. Processing device 25
Compares a digital value obtained by A / D conversion of the output value of the optical sensor 21 with a first threshold value set by the control device 17, and determines that the digital value is equal to or greater than the first threshold value. In this case, it is determined that there is medicine bag paper, and the digital value is
If it is less than the threshold value, it is determined that there is no medicine bag paper.

【0033】次に、薬袋用紙上の印字の状態の判定方法
について説明する。本実施の形態では、薬袋用紙上の印
字の状態を判定するために、印刷部14において、印字
ヘッドによって薬袋用紙上の一部に所定のマークを印字
する。このマークを印字する位置は、薬袋用紙が搬送路
を通過する際に光センサ22に対向することになる位置
とする。このマークが光センサ22に対向したとき、光
センサ22の発光部から出射された光はマークで反射さ
れて受光部に入射するが、このとき、マークの印字濃度
によって反射率が異なる。従って、マークの印字濃度に
応じて、光センサ22の受光部の入射光量が異なり、光
センサ22の出力値も異なる。処理装置25は、光セン
サ22の出力値をA/D変換して得られたディジタル値
を制御装置17により設定された第2のしきい値と比較
して、ディジタル値が第2のしきい値以上の場合には印
字が不適正(印字濃度が薄いまたは印字がない)と判定
し、ディジタル値が第2のしきい値未満の場合には印字
が適正(印字濃度が濃い)と判定する。
Next, a method of determining the state of printing on the medicine bag paper will be described. In the present embodiment, in order to determine the state of printing on the medicine bag paper, the printing unit 14 prints a predetermined mark on a part of the medicine bag paper by the print head. The position where this mark is printed is a position where the medicine bag paper will face the optical sensor 22 when passing through the transport path. When the mark faces the optical sensor 22, the light emitted from the light emitting unit of the optical sensor 22 is reflected by the mark and enters the light receiving unit. At this time, the reflectance differs depending on the print density of the mark. Therefore, the amount of light incident on the light receiving portion of the optical sensor 22 differs according to the print density of the mark, and the output value of the optical sensor 22 also varies. The processing device 25 compares the digital value obtained by A / D conversion of the output value of the optical sensor 22 with a second threshold value set by the control device 17, and compares the digital value with a second threshold value. If the digital value is less than the second threshold value, it is determined that the printing is appropriate (the printing density is high). .

【0034】処理装置25は、判定結果をネットワーク
インタフェース26および通信媒体40を介して制御装
置17に送る。処理装置25は、上述の各動作を、EE
PROMに格納されたアプリケーションプログラムに従
って実行するようになっている。従って、アプリケーシ
ョンプログラムを変更することにより、第1のしきい値
および第2のしきい値の変更や、リセット信号を出力す
る周期の変更が可能である。制御装置17は、通信媒体
40およびネットワークインタフェース26を介して、
処理装置25内のEEPROMにアプリケーションプロ
グラムを書き込むこと、およびEEPROMに既に格納
されているアプリケーションプログラムを書き換えるこ
とができ、これにより、処理装置25におけるアプリケ
ーションプログラムの入力および変更を行うことができ
るようになっている。更に、通信媒体43に接続された
ホストコンピュータあるいはパーソナルコンピュータ等
(例えば、図3における操作卓ユニット1)によって、
通信部42を介して制御装置17に、処理装置25にお
けるアプリケーションプログラムを送り、制御装置17
によって、処理装置25におけるアプリケーションプロ
グラムの入力および変更を行うこともできるようになっ
ている。このようにして、本実施の形態では、外部よ
り、処理装置25におけるアプリケーションプログラム
の入力および変更が可能となっている。
The processing device 25 sends the determination result to the control device 17 via the network interface 26 and the communication medium 40. The processing device 25 performs each of the above operations by EE
The program is executed according to an application program stored in the PROM. Therefore, by changing the application program, the first threshold value and the second threshold value can be changed, and the cycle of outputting the reset signal can be changed. The control device 17 communicates via the communication medium 40 and the network interface 26
The application program can be written in the EEPROM in the processing device 25 and the application program already stored in the EEPROM can be rewritten, whereby the input and change of the application program in the processing device 25 can be performed. ing. Further, a host computer, a personal computer, or the like (for example, the console unit 1 in FIG. 3) connected to the communication medium 43
The application program in the processing device 25 is sent to the control device 17 via the communication unit 42, and the control device 17
Thus, input and change of an application program in the processing device 25 can be performed. As described above, in the present embodiment, it is possible to input and change the application program in the processing device 25 from outside.

【0035】処理装置29は、トレイ検知センサ11か
らの入力に応じた所定の情報を生成し、必要に応じてそ
の情報を制御装置17に送るようになっている。同様
に、処理装置34は、マイクロスイッチ32からの入力
に応じた所定の情報を生成し、必要に応じてその情報を
制御装置17に送るようになっている。また、処理装置
38は、近接スイッチ36からの入力に応じた所定の情
報を生成し、必要に応じてその情報を制御装置17に送
るようになっている。処理装置25と同様に、処理装置
29,34,38も、上述の各動作を、EEPROMに
格納されたアプリケーションプログラムに従って実行す
るようになっていると共に、外部からアプリケーション
プログラムの入力および変更が可能になっている。
The processing device 29 generates predetermined information according to the input from the tray detection sensor 11 and sends the information to the control device 17 as necessary. Similarly, the processing device 34 generates predetermined information according to the input from the microswitch 32, and sends the information to the control device 17 as necessary. Further, the processing device 38 generates predetermined information according to the input from the proximity switch 36 and sends the information to the control device 17 as necessary. Similarly to the processing device 25, the processing devices 29, 34, and 38 execute the above-described operations in accordance with the application programs stored in the EEPROM, and can input and change the application programs from outside. Has become.

【0036】また、各処理装置25,29,34,38
は、それぞれが管理するセンサやスイッチ等についての
自己診断機能を有している。この自己診断機能は、例え
ば、センサやスイッチ等からの入力が所定の範囲を越え
た場合や、所定時間以上同じ値が続いた場合等に異常と
判定するものである。各処理装置25,29,34,3
8は、上述の自己診断機能による判定結果をステータス
情報として制御装置17に送るようになっている。
Each processing unit 25, 29, 34, 38
Has a self-diagnosis function for sensors, switches, and the like managed by each. This self-diagnosis function is to determine an abnormality, for example, when an input from a sensor, a switch, or the like exceeds a predetermined range, or when the same value continues for a predetermined time or more. Each processing device 25, 29, 34, 3
Numeral 8 sends the result of determination by the self-diagnosis function to the control device 17 as status information.

【0037】次に、本実施の形態に係る調剤用センサネ
ットワークシステムを含む調剤システムの動作について
説明する。
Next, the operation of the dispensing system including the dispensing sensor network system according to the present embodiment will be described.

【0038】まず、図3に示した調剤システム全体の動
作について簡単に説明する。図3において、薬剤師等が
操作卓ユニット1のキーボード130から、ある患者の
処方箋を基に処方データ等の調剤情報を入力すると、こ
の調剤情報は図4に示したハードディスク装置112に
格納される。ここで操作卓ユニット1に入力された調剤
情報は、その他の各ユニットへ適宜送信される。
First, the operation of the entire dispensing system shown in FIG. 3 will be briefly described. In FIG. 3, when a pharmacist or the like inputs dispensing information such as prescription data based on a prescription of a certain patient from the keyboard 130 of the console unit 1, the dispensing information is stored in the hard disk device 112 shown in FIG. Here, the dispensing information input to the console unit 1 is appropriately transmitted to other units.

【0039】調剤情報が入力されると、搬送路駆動ユニ
ット9は搬送路10を駆動する。搬送路10が駆動する
と、トレイ2は矢印の方向に移動して、まず、水剤分包
ユニット6に到着する。水剤分包ユニット6は、トレイ
2の到着をトレイ検知センサ11により検知すると、通
信路3を介して搬送停止コマンドを搬送路駆動ユニット
9に送出し、搬送路10の駆動を一時的に停止させる。
また、同時にストッパ12を動作させて、トレイ2を所
定位置に停止させる。トレイ2が所定位置に停止する
と、水剤分包ユニット6は、操作卓ユニット1に入力さ
れた調剤情報に基づいて所定の処理を行う。水剤分包ユ
ニット6は、所定の処理を終えると、ストッパ12の停
止機能を解除すると共に、通信路3を介して搬送開始コ
マンドを搬送路駆動ユニット9に送出し、搬送路10の
駆動を開始させ、トレイ2を次段のユニット(錠剤分包
ユニット4)に移動させる。
When dispensing information is input, the transport path drive unit 9 drives the transport path 10. When the transport path 10 is driven, the tray 2 moves in the direction of the arrow and arrives at the liquid medication dispensing unit 6 first. When the arrival of the tray 2 is detected by the tray detection sensor 11, the liquid medication packaging unit 6 sends a transport stop command to the transport path drive unit 9 via the communication path 3 and temporarily stops the drive of the transport path 10. Let it.
At the same time, the stopper 12 is operated to stop the tray 2 at a predetermined position. When tray 2 stops at the predetermined position, liquid medication dispensing unit 6 performs predetermined processing based on the dispensing information input to console unit 1. Upon completion of the predetermined process, liquid medication packaging unit 6 releases the stop function of stopper 12, and sends a transport start command to transport path drive unit 9 via communication path 3 to drive transport path 10. Then, the tray 2 is moved to the next unit (tablet packing unit 4).

【0040】このようにして、水剤分包ユニット6にお
ける処理が終わると、トレイ2は、錠剤分包ユニット
4、散剤分包ユニット5、薬袋供給ユニット7および監
査支援ユニット8の各々に順次移動する。各ユニットで
は、水剤分包ユニット6における場合と同様に、搬送路
駆動ユニット9への搬送停止コマンドの送出や、ストッ
パ12の動作等を行う。
When the processing in the liquid medication packaging unit 6 is completed in this way, the tray 2 is sequentially moved to each of the tablet packaging unit 4, the powder packaging unit 5, the medicine bag supply unit 7, and the audit support unit 8. I do. In each unit, similarly to the case of liquid medication dispensing unit 6, transmission of a transport stop command to transport path driving unit 9, operation of stopper 12, and the like are performed.

【0041】なお、各ユニットは、自身のユニットでの
処理が完了した後、次段のユニットへ完了情報を送信す
るようになっている。そして、この完了情報を受信した
ユニットは、トレイ2が到着する前に開始することので
きる処理があれば、その処理を開始する。例えば、薬袋
供給ユニット7は、散剤分包ユニット5での所定の処理
が完了し、散剤分包ユニット5から完了情報が送信され
ると、トレイ2が到着する前に、あらかじめ操作卓ユニ
ット1から入力された調剤情報に基づいて、次にトレイ
2に収容される薬剤等が分かるので、その薬剤に応じた
薬袋の大きさ、枚数等を判断し、薬袋書記用のデータの
印字を開始することができる。
It should be noted that each unit transmits completion information to the next unit after the completion of the processing in its own unit. Then, the unit that has received the completion information starts the process if there is a process that can be started before the tray 2 arrives. For example, when the predetermined processing in the powder packaging unit 5 is completed and the completion information is transmitted from the powder packaging unit 5, the medicine bag supply unit 7 sends the completion information from the console unit 1 before the tray 2 arrives. Based on the input dispensing information, the next drug or the like to be stored in the tray 2 can be determined. Therefore, the size and the number of medicine bags corresponding to the medicine are determined, and printing of data for medicine bag writing is started. Can be.

【0042】次に、薬袋供給ユニット7に含まれる図2
に示した薬袋作成装置の動作について簡単に説明する。
薬袋用紙は給紙部13より印刷部14に供給され、印刷
部14において、薬袋用紙に、操作卓ユニット1から入
力された調剤情報に含まれる処方データに基づく薬袋書
記用データが印字される。薬袋書記用データが印字され
た薬袋用紙は、シール・カット部15でシールされ、所
定の大きさにカットされて薬袋が完成される。完成され
た薬袋は、薬袋収容部16に排出され、収容される。制
御装置17は、通信部42で入力した薬袋書記用データ
を薬袋用紙に印字するように印刷部14等の薬袋作成装
置の各部を制御する。
Next, FIG. 2 included in the medicine bag supply unit 7
The operation of the medicine bag making apparatus shown in FIG.
The medicine bag paper is supplied from the paper supply unit 13 to the printing unit 14, and the printing unit 14 prints medicine bag writing data based on the prescription data included in the dispensing information input from the console unit 1 on the medicine bag paper. The medicine bag paper on which the medicine bag writing data is printed is sealed by the seal / cut section 15 and cut into a predetermined size to complete the medicine bag. The completed medicine bag is discharged to and accommodated in the medicine bag accommodation section 16. The control device 17 controls each unit of the medicine bag making device such as the printing unit 14 so as to print the medicine bag writing data input by the communication unit 42 on the medicine bag paper.

【0043】また、印刷部14内の処理装置25は、光
センサ21からの入力に基づいて薬袋用紙の有無を判定
すると共に、光センサ22からの入力に基づいて薬袋用
紙上の印字の状態を判定し、判定結果をネットワークイ
ンタフェース26および通信媒体40を介して制御装置
17に送る。制御装置17は、処理装置25から送られ
る判定結果に基づいて、薬袋用紙がない場合および印字
が不適正である場合には、薬袋作成装置の動作を停止す
るようになっている。
Further, the processing device 25 in the printing unit 14 determines the presence or absence of the medicine bag paper based on the input from the optical sensor 21, and determines the state of printing on the medicine bag paper based on the input from the optical sensor 22. A determination is made, and the determination result is sent to the control device 17 via the network interface 26 and the communication medium 40. The control device 17 stops the operation of the medicine bag making device based on the determination result sent from the processing device 25 when there is no medicine bag paper and when printing is improper.

【0044】次に、図1に示した調剤用センサネットワ
ークシステムの動作について説明する。まず、処理装置
25は、所定の周期で積分・比較部23,24内のアナ
ログスイッチに対してリセット信号を出力する。各積分
・比較部23,24では、リセット信号を入力すると、
基準電圧を積分するキャパシタの積分値が零にされ、そ
の後、キャパシタで基準電圧の積分を開始する。キャパ
シタによって積分された積分値が各光センサ21,22
の出力信号を越えると、積分・比較部23,24内の各
コンパレータの出力が変化し、処理装置25は、リセッ
ト信号を出力してから、積分・比較部23,24内の各
コンパレータの出力が変化するまでの間、それぞれクロ
ックをカウントする。このようにして処理装置25で得
られる2つのカウント値は、それぞれ、光センサ21,
22の出力値をA/D変換したディジタル値となる。処
理装置25は、光センサ21の出力値をA/D変換して
得られたディジタル値を第1のしきい値と比較して、デ
ィジタル値が第1のしきい値以上の場合には薬袋用紙が
あると判定し、ディジタル値が第1のしきい値未満の場
合には薬袋用紙がないと判定する。また、処理装置25
は、光センサ22の出力値をA/D変換して得られたデ
ィジタル値を第2のしきい値と比較して、ディジタル値
が第2のしきい値以上の場合には印字が不適正(印字濃
度が薄いまたは印字がない)と判定し、ディジタル値が
第2のしきい値未満の場合には印字が適正(印字濃度が
濃い)と判定する。処理装置25は、薬袋用紙の有無の
判定結果および印字の状態の判定結果を、ネットワーク
インタフェース26を介して制御装置17に対して送
る。
Next, the operation of the dispensing sensor network system shown in FIG. 1 will be described. First, the processing device 25 outputs a reset signal to the analog switches in the integration / comparison units 23 and 24 at a predetermined cycle. When a reset signal is input to each of the integration / comparison units 23 and 24,
The integration value of the capacitor integrating the reference voltage is set to zero, and then the integration of the reference voltage is started at the capacitor. The integrated values integrated by the capacitors are output to the respective optical sensors 21 and 22.
, The outputs of the comparators in the integration / comparison units 23 and 24 change, and the processing unit 25 outputs a reset signal, and then outputs the output of each comparator in the integration / comparison units 23 and 24. Until changes, the clocks are counted. The two count values obtained by the processing device 25 in this manner are respectively assigned to the optical sensors 21 and
22 is a digital value obtained by A / D conversion of the output value. The processing device 25 compares the digital value obtained by A / D conversion of the output value of the optical sensor 21 with a first threshold value, and when the digital value is equal to or more than the first threshold value, It is determined that there is paper, and if the digital value is less than the first threshold, it is determined that there is no medicine bag paper. Also, the processing device 25
Compares the digital value obtained by A / D conversion of the output value of the optical sensor 22 with a second threshold value, and if the digital value is equal to or greater than the second threshold value, the printing is inappropriate. If the digital value is less than the second threshold, it is determined that the printing is proper (the printing density is high). The processing device 25 sends the determination result of the presence or absence of the medicine bag paper and the determination result of the printing state to the control device 17 via the network interface 26.

【0045】また、処理装置29,34,38は、それ
ぞれ、トレイ検知センサ11,マイクロスイッチ32,
近接スイッチ36からの入力に応じた所定の情報を生成
し、必要に応じてその情報を制御装置17に送る。
The processing units 29, 34, and 38 respectively include a tray detection sensor 11, a micro switch 32,
Predetermined information corresponding to the input from the proximity switch 36 is generated, and the information is sent to the control device 17 as necessary.

【0046】制御装置17は、通信部42で入力した薬
袋書記用データを薬袋用紙に印字するように薬袋作成装
置の各部の動作を制御する。また、制御装置17は、各
処理装置25,29,34,38におけるステータス情
報を監視することによって、各処理装置25,29,3
4,38がそれぞれ管理するセンサやスイッチ等の異常
監視を行い、薬袋作成装置全体の管理を行う。また、制
御装置17は、処理装置25から送られる判定結果に基
づいて、薬袋用紙がない場合および印字が不適正である
場合には、薬袋作成装置の動作を停止する。また、制御
装置17は、使用者の指示に従って、各処理装置25,
29,34,38に対する所定の動作設定、例えばアプ
リケーションプログラムの入力および変更を行う。
The control unit 17 controls the operation of each unit of the medicine bag making apparatus so that the medicine bag writing data input by the communication unit 42 is printed on the medicine bag paper. In addition, the control device 17 monitors the status information in each of the processing devices 25, 29, 34, and 38, and thereby,
4 and 38 monitor abnormalities of sensors, switches and the like respectively managed, and manage the entire medicine bag making apparatus. In addition, based on the determination result sent from the processing device 25, the control device 17 stops the operation of the medicine bag making device when there is no medicine bag paper or when printing is improper. Further, the control device 17 controls each processing device 25,
Predetermined operation settings for 29, 34, 38, for example, input and change of application programs are performed.

【0047】このように本実施の形態に係る調剤用セン
サネットワークシステムによれば、トレイ検知センサ1
1、光センサ21,22、マイクロスイッチ32,近接
スイッチ36(以下、これらを単にセンサと言う。)か
らの入力に応じた所定の情報を生成する動作(例えば、
光センサ21,22の出力値をA/D変換する動作の一
部と、A/D変換後のディジタル値を所定のしきい値と
比較して薬袋用紙の有無および印字の状態を判定する動
作)を、処理装置25,29,34,38においてプロ
グラム(アプリケーションプログラム)によって規定さ
れる所定の処理手順に従った動作によって実行するよう
にしたので、同様の動作をアナログ回路やA/D変換器
を用いて実行する場合に比べて、センサ装置の回路規模
を小さくすることができる。また、プログラムを変更す
ることで、容易に、センサ装置の動作を変更することが
できる。なお、センサ装置の動作の変更は、センサの仕
様に応じてしきい値を変更する場合等に必要となる。
As described above, according to the dispensing sensor network system according to the present embodiment, the tray detection sensor 1
1. An operation of generating predetermined information according to an input from the optical sensors 21 and 22, the micro switch 32, and the proximity switch 36 (hereinafter, these are simply referred to as sensors) (for example,
Part of the operation of A / D converting the output values of the optical sensors 21 and 22 and the operation of comparing the digital value after A / D conversion with a predetermined threshold value to determine the presence or absence of a medicine bag paper and the state of printing ) Is executed by the processing devices 25, 29, 34, and 38 by an operation according to a predetermined processing procedure defined by a program (application program), and the same operation is performed by an analog circuit or an A / D converter. The circuit size of the sensor device can be reduced as compared with the case where the processing is performed by using. Also, by changing the program, the operation of the sensor device can be easily changed. The operation of the sensor device needs to be changed when the threshold value is changed according to the specifications of the sensor.

【0048】また、本実施の形態に係る調剤用センサネ
ットワークシステムによれば、処理装置25,29,3
4,38においてプログラムによって動作を規定し、ま
た、処理装置25,29,34,38がディジタル値の
記憶や演算が可能であることから、各センサ装置におい
て、各センサからの入力に基づいて、平均値の演算やフ
ィルタ処理等の多様な処理を行って多様な情報を生成し
たり、多様な判定を行うことも可能となる。また、例え
ば、電源投入時等に定期的に、光センサ21,22の出
力値をA/D変換して得られたディジタル値を初期値と
して記憶し、この初期値に応じて、しきい値の変更や、
その後に光センサ21,22の出力値をA/D変換して
得られたディジタル値の補正を行うことにより、光セン
サ21,22の発光部、受光部の汚れやくもり等の影響
を除去する高度な自動感度調整も可能となる。また、外
部からプログラムを変更することによって、各センサの
感度等の調整を外部より遠隔的に行うことができる。
According to the dispensing sensor network system of the present embodiment, the processing devices 25, 29, 3
4 and 38, the operation is defined by a program, and the processing devices 25, 29, 34, and 38 can store and calculate digital values. It is also possible to generate various information by performing various processes such as an average value calculation and a filter process, and to perform various determinations. Also, for example, at the time of turning on the power, a digital value obtained by A / D converting the output values of the optical sensors 21 and 22 is stored as an initial value, and a threshold value is set in accordance with the initial value. Changes,
After that, the digital values obtained by A / D conversion of the output values of the optical sensors 21 and 22 are corrected to remove the influence of the light emitting portions and the light receiving portions of the optical sensors 21 and 22 such as stains and clouding. Advanced automatic sensitivity adjustment is also possible. Further, by changing the program from the outside, it is possible to remotely adjust the sensitivity and the like of each sensor from the outside.

【0049】また、本実施の形態に係る調剤用センサネ
ットワークシステムによれば、処理装置25,29,3
4,38において、センサについての自己診断や自動感
度調整等の機能を行うようにしたので、これらの機能を
全て制御装置が行う場合に比べて、制御装置の処理の負
担が軽減される。
According to the dispensing sensor network system of the present embodiment, the processing devices 25, 29, 3
Since the functions such as self-diagnosis and automatic sensitivity adjustment of the sensor are performed in the sensors 4 and 38, the processing load on the control device is reduced as compared with the case where the control device performs all of these functions.

【0050】また、本実施の形態に係る調剤用センサネ
ットワークシステムによれば、各センサに対応する処理
装置25,29,34,38および制御装置17を通信
媒体40を介して接続してネットワーク化したので、各
センサを個別に制御装置に接続して各センサ毎の処理を
全て制御装置で行う場合に比べて配線を少なくすること
ができる。
Further, according to the dispensing sensor network system according to the present embodiment, the processing devices 25, 29, 34, 38 and the control device 17 corresponding to each sensor are connected via the communication medium 40 to form a network. Therefore, the number of wirings can be reduced as compared with the case where each sensor is individually connected to the control device and the processing for each sensor is entirely performed by the control device.

【0051】なお、本発明は上記実施の形態に限定され
ず、例えば、光センサ22の出力値に対応するディジタ
ル値を、2つのしきい値と比較することによって、印字
状態を3段階、すなわち、印字が適正、印字濃度がやや
薄い(実用上不具合を生じない程度に印字濃度が薄
い)、印字が不適正(実用上不具合を生じるほど印字濃
度が薄いまたは印字がない)の3段階で判断するように
しても良い。また、この場合、印字濃度が不適正な場合
は薬袋作成装置の動作を停止し、印字濃度がやや薄い場
合はランプを点灯する等の警報を発するようにしても良
い。また、印刷部14の印字ヘッドの全画素を用いて印
字濃度検出用のマークを印字し、ラインセンサ等によっ
てマークの画素毎の濃度を検出して、所定のしきい値と
比較することによって、印字ヘッドの画素の欠陥を検出
できるようにしても良い。
The present invention is not limited to the above embodiment. For example, by comparing a digital value corresponding to the output value of the optical sensor 22 with two threshold values, the printing state can be determined in three stages, that is, in three stages. Judgment is made in three stages: appropriate printing, slightly lighter printing density (low printing density to the extent that no practical problems occur), and improper printing (low printing density or no printing enough to cause practical problems) You may do it. In this case, if the print density is not appropriate, the operation of the medicine bag making device may be stopped, and if the print density is slightly low, an alarm such as turning on a lamp may be issued. Also, by printing a mark for print density detection using all pixels of the print head of the printing unit 14, detecting the density of each mark pixel by a line sensor or the like, and comparing it with a predetermined threshold value, You may make it possible to detect a defect of a pixel of the print head.

【0052】また、A/D変換の方法は、上記実施の形
態で説明した方法に限らず、二重積分型等の他の方法で
も良い。二重積分型のA/D変換を行う場合には、積分
・比較部23,24はそれぞれ、例えば、光センサ2
1,22の出力信号と負の基準電圧とを切り替えて出力
する第1のアナログスイッチと、この第1のアナログス
イッチの出力を積分する積分器と、この積分器の積分値
を零にリセットする第2のアナログスイッチと、積分器
の出力を反転入力端より入力し、非反転入力端が接地さ
れたコンパレータとを有する構成とする。この場合、処
理装置25は、各アナログスイッチに制御信号を送り、
第2のアナログスイッチによって積分器の積分値を一旦
零にすると共に、第1のアナログスイッチを光センサ2
1,22の出力信号側に切り替え、一定時間経過後に第
1のアナログスイッチを基準電圧側に切り替え、その後
コンパレータの出力が変化するまでの間クロックをカウ
ントする。このカウント値は、光センサ21,22の出
力値に対応したディジタル値となる。
The A / D conversion method is not limited to the method described in the above embodiment, but may be another method such as a double integration type. When performing the double integration type A / D conversion, the integration / comparison units 23 and 24 each include, for example, the optical sensor 2
A first analog switch that switches and outputs the output signals of the first and second switches and a negative reference voltage, an integrator that integrates the output of the first analog switch, and resets the integrated value of the integrator to zero The configuration includes a second analog switch and a comparator to which an output of the integrator is input from an inverting input terminal and a non-inverting input terminal is grounded. In this case, the processing device 25 sends a control signal to each analog switch,
The integrated value of the integrator is temporarily reduced to zero by the second analog switch, and the first analog switch is
The first analog switch is switched to the reference voltage side after a lapse of a predetermined time, and the clock is counted until the output of the comparator changes thereafter. This count value is a digital value corresponding to the output value of the optical sensors 21 and 22.

【0053】また、上記実施の形態では、各ユニット内
の処理装置の動作の設定は、各ユニット内の制御装置が
各々行うようにしたが、すべてのユニット内の処理装置
の動作の設定を操作卓ユニット1で行うようにしてもよ
い。
In the above embodiment, the setting of the operation of the processing device in each unit is performed by the control device in each unit. However, the setting of the operation of the processing device in all units is operated. You may make it perform in the desk unit 1.

【0054】また、一つの処理装置に対してどのセンサ
を接続するかは、調剤用装置の構成や動作に応じて適宜
に設計することができる。例えば、図1における光セン
サ21および積分・比較部23用の処理装置と、光セン
サ22および積分・比較部24用の処理装置とを別々に
設けても良いし、一つの処理装置に対して、マイクロス
イッチ32および近接スイッチ36を接続しても良い。
Further, which sensor is connected to one processing apparatus can be appropriately designed according to the configuration and operation of the dispensing apparatus. For example, a processing device for the optical sensor 21 and the integration / comparison unit 23 in FIG. 1 and a processing device for the optical sensor 22 and the integration / comparison unit 24 may be provided separately, or one processing device may be provided. , The microswitch 32 and the proximity switch 36 may be connected.

【0055】また、本発明は、上記実施の形態に示した
ような薬袋作成装置内のセンサを含むシステムに限ら
ず、調剤用装置全般におけるセンサを含むシステムに適
用することができる。すなわち、本発明は、例えば、分
包紙へ印字を行う印刷装置や水剤等に貼り付けるラベル
に印字を行う印刷装置等において用紙の有無や印字の状
態を判定するための光センサや、薬剤分包装置において
分包紙を閉じるためのヒータの温度を検出するための温
度センサや、薬袋作成装置以外の調剤用装置内の各種の
可動部分の位置を検出するためのマイクロスイッチ、近
接スイッチ等を含むシステムにも適用することができ
る。更に、本発明では、薬袋作成装置等の一つの調剤用
装置内の複数のセンサをネットワーク化したシステムに
限らず、複数の調剤用装置内の複数のセンサをネットワ
ーク化したシステムとしても良い。
The present invention is not limited to a system including a sensor in a medicine bag making apparatus as described in the above embodiment, but can be applied to a system including a sensor in a general dispensing apparatus. That is, the present invention is, for example, an optical sensor for determining the presence or absence of paper and the state of printing, such as a printing device that prints on packaging paper or a printing device that prints on a label attached to a liquid agent, etc. Temperature sensor for detecting the temperature of the heater for closing the packaging paper in the packaging device, microswitch, proximity switch, etc. for detecting the position of various movable parts in the dispensing device other than the medicine bag making device Can also be applied to systems including Further, the present invention is not limited to a system in which a plurality of sensors in one dispensing device such as a medicine bag making device are networked, but may be a system in which a plurality of sensors in a plurality of dispensing devices are networked.

【0056】[0056]

【発明の効果】以上説明したように本発明の調剤用セン
サネットワークシステムによれば、各センサに接続され
た複数の処理装置が、所定の処理手順に従った動作によ
り、各センサからの入力に応じた所定の情報を生成する
ように構成すると共に、通信媒体を介して各処理装置と
接続された制御装置によって、各処理装置に対する動作
設定を可能としたので、センサ装置の回路規模を小さく
することができると共に動作の変更が容易になるという
効果を奏する。また、本発明の調剤用センサネットワー
クシステムによれば、各センサを個別に制御装置に接続
して各センサ毎の処理を全て制御装置で行う場合に比べ
て配線を少なくすることができるという効果を奏する。
また、本発明の調剤用センサネットワークシステムによ
れば、必要に応じて、センサについての自己診断機能や
自動感度調整等の高度な機能をセンサ側の処理装置で実
現することが可能になり、制御装置の負担を軽減するこ
とが可能になるという効果を奏する。
As described above, according to the sensor network system for dispensing of the present invention, a plurality of processing devices connected to each sensor perform an operation in accordance with a predetermined processing procedure to receive an input from each sensor. In addition to the configuration in which the predetermined information corresponding to the information is generated, the operation of each processing device can be set by the control device connected to each processing device via the communication medium, so that the circuit size of the sensor device is reduced. This makes it possible to change the operation easily. Further, according to the dispensing sensor network system of the present invention, it is possible to reduce the number of wirings compared to a case where each sensor is individually connected to the control device and all processing for each sensor is performed by the control device. Play.
Further, according to the dispensing sensor network system of the present invention, if necessary, advanced functions such as a self-diagnosis function and an automatic sensitivity adjustment for the sensor can be realized by the processing device on the sensor side. This has the effect of reducing the load on the device.

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

【図1】本発明の一実施の形態に係る調剤用センサネッ
トワークシステムおよびその周辺の回路を示すブロック
図である。
FIG. 1 is a block diagram showing a dispensing sensor network system and peripheral circuits according to an embodiment of the present invention.

【図2】本発明の一実施の形態に係る調剤用センサネッ
トワークシステムを含む薬袋作成装置の概略の構成を示
す説明図である。
FIG. 2 is an explanatory diagram showing a schematic configuration of a medicine bag making apparatus including a dispensing sensor network system according to one embodiment of the present invention.

【図3】本発明の一実施の形態に係る調剤用センサネッ
トワークシステムを含む調剤システムの全体構成を示す
ブロック図である。
FIG. 3 is a block diagram showing an overall configuration of a dispensing system including a dispensing sensor network system according to one embodiment of the present invention.

【図4】図3における操作卓ユニットの概略構成を示す
ブロック図である。
FIG. 4 is a block diagram illustrating a schematic configuration of a console unit in FIG. 3;

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

1 操作卓ユニット 2 トレイ 3 通信路 7 薬袋供給ユニット 11 トレイ検知センサ 12 ストッパ 13 給紙部 14 印刷部 15 シール・カット部 16 薬袋収容部 17 制御装置 21,22 光センサ 23,24 積分・比較部 25,29,34,38 処理装置 26,30,35,39 ネットワークインタフェース 32 マイクロスイッチ 36 近接スイッチ 40 通信媒体 42 通信部 43 通信媒体 REFERENCE SIGNS LIST 1 console unit 2 tray 3 communication path 7 medicine bag supply unit 11 tray detection sensor 12 stopper 13 paper feed unit 14 printing unit 15 seal / cut unit 16 medicine bag storage unit 17 control device 21, 22 optical sensor 23, 24 integration / comparison unit 25, 29, 34, 38 Processing device 26, 30, 35, 39 Network interface 32 Micro switch 36 Proximity switch 40 Communication medium 42 Communication unit 43 Communication medium

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 調剤用装置で用いられる複数のセンサ
と、 各々が、前記複数のセンサのうちの少なくとも一つのセ
ンサに接続され、所定の処理手順に従った動作により、
前記少なくとも一つのセンサからの入力に応じた所定の
情報を生成する複数の処理装置と、 この複数の処理装置の各々に通信媒体を介して接続され
ると共に、接続された複数の処理装置に対する所定の動
作設定を行う制御装置とを備えたことを特徴とする調剤
用センサネットワークシステム。
1. A plurality of sensors used in a dispensing device, each of which is connected to at least one of the plurality of sensors and operated according to a predetermined processing procedure,
A plurality of processing devices for generating predetermined information according to an input from the at least one sensor; and a plurality of processing devices connected to each of the plurality of processing devices via a communication medium, and a plurality of processing devices connected to the plurality of processing devices. A dispensing sensor network system, comprising: a control device for performing the above-mentioned operation setting.
JP5760998A 1998-03-10 1998-03-10 Sensor network system for preparation of medicine Pending JPH11253530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5760998A JPH11253530A (en) 1998-03-10 1998-03-10 Sensor network system for preparation of medicine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5760998A JPH11253530A (en) 1998-03-10 1998-03-10 Sensor network system for preparation of medicine

Publications (1)

Publication Number Publication Date
JPH11253530A true JPH11253530A (en) 1999-09-21

Family

ID=13060612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5760998A Pending JPH11253530A (en) 1998-03-10 1998-03-10 Sensor network system for preparation of medicine

Country Status (1)

Country Link
JP (1) JPH11253530A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002243436A (en) * 2001-02-22 2002-08-28 Ricoh Co Ltd Apparatus and method for measuring as well as method for controlling operation of apparatus for measuring and measurement control unit
JP2002263063A (en) * 2001-03-12 2002-09-17 Asahi Optical Co Ltd Endoscope system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01226501A (en) * 1988-02-29 1989-09-11 Kowa Boseki Kk Automatic tablet subdivision packing apparatus
JPH04142237A (en) * 1990-10-03 1992-05-15 Tokyo Shokai:Kk Control method for drug-package preparation device
JPH0546893A (en) * 1991-08-21 1993-02-26 Hitachi Ltd Method for controlling measuring instrument and its device
JPH07168610A (en) * 1991-02-22 1995-07-04 Siemens Ag Control device capable of programming memory and its operating method
JPH08183502A (en) * 1994-12-28 1996-07-16 Yuyama Seisakusho:Kk Medicine packaging machine and its control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01226501A (en) * 1988-02-29 1989-09-11 Kowa Boseki Kk Automatic tablet subdivision packing apparatus
JPH04142237A (en) * 1990-10-03 1992-05-15 Tokyo Shokai:Kk Control method for drug-package preparation device
JPH07168610A (en) * 1991-02-22 1995-07-04 Siemens Ag Control device capable of programming memory and its operating method
US5475583A (en) * 1991-02-22 1995-12-12 Siemens Aktiengesellschaft Programmable control system including a logic module and a method for programming
JPH0546893A (en) * 1991-08-21 1993-02-26 Hitachi Ltd Method for controlling measuring instrument and its device
JPH08183502A (en) * 1994-12-28 1996-07-16 Yuyama Seisakusho:Kk Medicine packaging machine and its control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002243436A (en) * 2001-02-22 2002-08-28 Ricoh Co Ltd Apparatus and method for measuring as well as method for controlling operation of apparatus for measuring and measurement control unit
JP2002263063A (en) * 2001-03-12 2002-09-17 Asahi Optical Co Ltd Endoscope system

Similar Documents

Publication Publication Date Title
KR100818846B1 (en) Medication supplying apparatus
US11089269B2 (en) System and method for tracking content in a medicine container
US9299213B2 (en) Automated pill dispensing systems configured for detecting bottles in output chutes and related methods of operation
JPH0518632B2 (en)
CA2681274A1 (en) Methods and apparatus for dispensing solid pharmaceutical articles
EP3620405A1 (en) Trash can having sensing flip lid having settable sensing distance and control method therefor
TW201544098A (en) Drug imaging device, drug shape measurement device, drug dispensing device
US20050096786A1 (en) Tablet dispensing packing apparatus
JP6043921B2 (en) Drug filling device and container holder
JPH11253530A (en) Sensor network system for preparation of medicine
CN109849535A (en) Print expanding unit and system
JP2001276183A (en) Drug paying-out equipment
JP2931303B1 (en) Rotary nucleated tablet machine
JPS6254693B2 (en)
EP2023303A1 (en) Apparatus and method for migrating information of patients waiting for drugs to be dispensed
CN210466540U (en) Self-service medicine instrument dispensing device
JPS6030161Y2 (en) Automatic tablet packaging machine for medication
JPH09253564A (en) Resist applying device and resist applying method
JP2006204495A (en) Medicine supplier
JP2003212225A (en) Labeling system
JPS63203502A (en) Tablet partial packer
US5349407A (en) Film transporting system including a counter and a film existence detector for a photographic camera
JPS6024995B2 (en) Equipment non-operation detection method and device
GB2283116A (en) Data verification in a process control system
JPS6131915B2 (en)

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040708

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070807

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071225