JPH0120374B2 - - Google Patents

Info

Publication number
JPH0120374B2
JPH0120374B2 JP10168683A JP10168683A JPH0120374B2 JP H0120374 B2 JPH0120374 B2 JP H0120374B2 JP 10168683 A JP10168683 A JP 10168683A JP 10168683 A JP10168683 A JP 10168683A JP H0120374 B2 JPH0120374 B2 JP H0120374B2
Authority
JP
Japan
Prior art keywords
capsule
signal
cap
predetermined
article
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.)
Expired
Application number
JP10168683A
Other languages
Japanese (ja)
Other versions
JPS59226975A (en
Inventor
Masahiro Kishi
Yukimasa Tachibana
Tetsuji Kawasaki
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP10168683A priority Critical patent/JPS59226975A/en
Publication of JPS59226975A publication Critical patent/JPS59226975A/en
Publication of JPH0120374B2 publication Critical patent/JPH0120374B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 この発明は、薬剤用カプセルの如き円筒状物品
を光学センサにより走査して得られるセンサ出力
にもとづいて物品の検査を行なう物品の外観検査
装置、特にセンサ出力を記憶する記憶方式を改良
した外観検査装置に関する。
Detailed Description of the Invention [Technical Field to which the Invention Pertains] The present invention relates to an article appearance inspection device that inspects the article based on sensor output obtained by scanning a cylindrical article such as a pharmaceutical capsule with an optical sensor. In particular, the present invention relates to an appearance inspection device with an improved storage method for storing sensor outputs.

〔従来技術とその問題点〕[Prior art and its problems]

第1図はかかる薬剤カプセルを示す外観図であ
る。すなわち、カプセル1はキヤツプ11とボデ
ー12とから構成され、さらにキヤツプ11には
これとボデー12とを相互にロツクするためのロ
ツク孔(ノツチ)13が設けられている。薬剤充
てん前のカプセルを空カプセルといゝ、このとき
のキヤツプ11とボデー12との結合力は小さ
く、同図aの如く、いわば仮結合状態にある。こ
の空カプセルは、薬剤充てん後は同図bの如くキ
ヤツプ11とボデー12は更に押圧されて結合力
の大きな本結合状態にされる。このように形成さ
れるカプセルにおいては、その製造時に種々の欠
陥を生じることがある。例えば、カプセルの肉厚
が部分的に薄くなつたスイン(thin)スポツト、
このスインスポツトが更に大きくなつた穴、ピン
ホール等がそれである。また、製造されたカプセ
ルの中には、キヤツプとボデーが分離したルース
品、分離したキヤツプが正常品のボデーに再結合
したツインキヤツプ、またはカプセル搬送中に空
カプセルが本結合状態となるロツクカプセルと呼
ばれる不良品等が混在することがある。したがつ
て、空カプセルを検査して上記のような欠陥をも
つ不良品を排除することが必要である。
FIG. 1 is an external view of such a drug capsule. That is, the capsule 1 is composed of a cap 11 and a body 12, and the cap 11 is further provided with a locking hole (notch) 13 for locking the cap and the body 12 together. The capsule before being filled with a drug is called an empty capsule, and at this time the bonding force between the cap 11 and the body 12 is small, and they are in a so-called temporary bonded state as shown in FIG. After the empty capsule is filled with a drug, the cap 11 and body 12 are further pressed to form a fully bonded state with a strong bonding force, as shown in FIG. Capsules formed in this manner may suffer from various defects during manufacture. For example, a thin spot where the capsule wall thickness is partially thinned,
This is a hole, pinhole, etc. where this swing spot has become even larger. Among the manufactured capsules, there are loose products in which the cap and body are separated, twin caps in which the separated cap is recombined with the normal product body, and lock capsules in which the empty capsule is fully connected during capsule transportation. There may be cases where defective products called . Therefore, it is necessary to inspect empty capsules to eliminate defective products with the above-mentioned defects.

ところで、かかるカプセルを検査する方法とし
ては種々考えられるが、例えば次の如くすること
ができる。
By the way, various methods can be considered for inspecting such a capsule, and for example, the following can be used.

第2図はカプセル検査装置の構成を示すブロツ
ク図、第3図はカプセルの搬送態様とセンサ出力
波形との関係を示す説明図である。第2図におい
て、2は例えばカプセルに光を照射しその反射光
を受光する光学センサ、3は該センサ出力を所定
のレベルで2値化する2値化回路、4はデータ処
理装置(CPU)およびメモリ等からなる判定回
路、5はコントローラである。なお、カプセル
は、その長さ方向軸を回転軸として回転せしめら
れながら、第3図aの如き搬送部材6によつて示
矢の方向へ搬送されるので、第2図に示されるセ
ンサ2によつて各カプセルの表面が走査されるこ
とになる。かかる走査はヘリカルスキヤンとも呼
ばれるが、このヘリカルスキヤンによつて得られ
る出力波形は、例えば第3図bの如きアナログ波
形となるので、2値化回路3により2値化して判
定回路4内のメモリへ書込み、データ処理装置に
て所定の処理を行なうことにより、カプセルの検
査を行なうことができる。
FIG. 2 is a block diagram showing the configuration of the capsule inspection apparatus, and FIG. 3 is an explanatory diagram showing the relationship between the capsule transport mode and the sensor output waveform. In FIG. 2, 2 is an optical sensor that irradiates light onto a capsule and receives the reflected light, 3 is a binarization circuit that binarizes the sensor output at a predetermined level, and 4 is a data processing unit (CPU). and a determination circuit consisting of a memory, etc., and 5 is a controller. Incidentally, since the capsule is conveyed in the direction of the arrow by the conveying member 6 as shown in FIG. 3a while being rotated about its longitudinal axis as the rotation axis, The surface of each capsule is thus scanned. Such scanning is also called a helical scan, and the output waveform obtained by this helical scan is an analog waveform, for example, as shown in FIG. The capsule can be inspected by writing the data into the file and performing predetermined processing using the data processing device.

ところで、このようなシステムにおいては、 1) カプセルの搬送方向は必ずしも定まつてお
らず、第3図aに示される如くキヤツプ側を先
にして搬送されるものと、ボデー側を先にして
搬送されるものとがある。
By the way, in such a system, 1) The transport direction of the capsule is not necessarily fixed, and as shown in Figure 3a, some capsules are transported with the cap side first, while others are transported with the body side first. There are things that are done.

2) 検査処理能力を高くすることが重要である
が、そのためには、搬送速度が一定ならば、第
3図aの如く、カプセル配置間隔dを狭くする
ことが必要である。
2) It is important to increase the inspection throughput, and for this purpose, if the transport speed is constant, it is necessary to narrow the capsule arrangement interval d as shown in FIG. 3a.

3) カプセルの材料によつては、キヤツプ、ボ
デーとも透明または不透明、あるいはその組み
合わせとなるが、その場合、2値化するための
信号レベルが異なるので、その対策が必要であ
る。
3) Depending on the material of the capsule, both the cap and body may be transparent or opaque, or a combination thereof, but in that case, the signal level for binarization will be different, so countermeasures are required.

4) 搬送速度は、一定であるとは云つても若干
の変動がある。
4) Although the conveyance speed is constant, there are some fluctuations.

等の種々の問題点がある。このため、判定回路を
全てハードウエア構成にすると、特に、上記1)、
2)および3)項に対処するためには、回路が極
めて複雑となり、部品点数も多くなるので、通常
は、データ処理装置によるソフトウエア処理が行
なわれる。この場合、カプセル1個分の2値化デ
ータを適宜な間隔で所定のメモリに記憶し、この
記憶内容をソフトウエア処理してその判定を行な
うことになるが、第3図bからも明らかように、
全検査時間(T1+T2)の大部分がデータ取り込
み時間T1のために費やされ、判定時間のために
は僅かな時間T2しか残されていない。しかも、
この時間は、上記2)項で指摘されているよう
に、減少される傾向にあり、このため、正確な判
定ができないという欠点がある。
There are various problems such as. For this reason, if all the determination circuits are configured in hardware, especially the above 1),
In order to deal with items 2) and 3), the circuit becomes extremely complex and the number of parts increases, so software processing is usually performed by a data processing device. In this case, the binarized data for one capsule is stored in a predetermined memory at appropriate intervals, and the stored contents are processed by software to make a determination, as is clear from Fig. 3b. To,
Most of the total testing time (T 1 +T 2 ) is spent on data acquisition time T 1 , leaving only a small amount of time T 2 for judgment time. Moreover,
As pointed out in item 2) above, this time tends to be reduced, which has the disadvantage that accurate determination cannot be made.

〔発明の目的〕[Purpose of the invention]

この発明はかかる点に鑑みてなされたもので、
カプセルの良、否を判定するための時間を充分に
確保することができるカプセル検査装置を提供す
ることを目的とする。
This invention was made in view of these points,
It is an object of the present invention to provide a capsule inspection device that can secure enough time to determine whether a capsule is good or not.

〔発明の要点〕[Key points of the invention]

その要点は、カプセルの外形およびその表面形
状に応じて所定の位置毎に変化するセンサ出力を
所定のレベルで2値化して得られる2値化信号を
少なくとも1カプセル分だけ記憶する第1、第2
のメモリを設け、一方のメモリへ2値化信号が書
込まれている間は他方のメモリから2値化信号を
読出し可能にする動作をカプセルが通過する毎に
交互に繰り返すことにより、判定時間を充分に長
く(最大で、1カプセルに要する全検査時間;第
3図bではT1とT2の和に相当する。)とることが
できるようにした点にある。
The key point is that the sensor output, which varies from predetermined position to predetermined position according to the outer shape and surface shape of the capsule, is binarized at a predetermined level. 2
The determination time can be reduced by alternately repeating the operation of enabling the binary signal to be read from the other memory while the binary signal is being written to one memory each time the capsule passes. The key point is that it is possible to take a sufficiently long time (maximum, the total inspection time required for one capsule; in Fig. 3b, it corresponds to the sum of T 1 and T 2 ).

〔発明の実施例〕[Embodiments of the invention]

第4図はこの発明の実施例を示す構成図、第5
図は第4図の動作を説明するための各部波形図、
第6図はメモリの書込み、読出し動作を説明する
説明図、第7図はセンサ出力のメモリへの読込み
タイミングを説明する波形図、第8図は第7図に
おける各種信号の部分的な記憶態様を示すメモリ
構成図である。
FIG. 4 is a configuration diagram showing an embodiment of this invention, and FIG.
The figure is a waveform diagram of each part to explain the operation of Fig. 4,
FIG. 6 is an explanatory diagram explaining the write and read operations of the memory, FIG. 7 is a waveform diagram explaining the timing of reading sensor output into the memory, and FIG. 8 is a partial storage mode of various signals in FIG. 7. FIG. 2 is a memory configuration diagram showing the.

第4図において、2,5は第2図と同様の光学
センサおよびコントローラ、4′はデータ処理装
置(CPU)、211,212は微分器、221〜22
はコンパレータ、231〜234はモノステーブ
ルマルチバイブレータ(以下、単にモノステとも
いう。)、24,26はこの発明により特に設けら
れたバス切換スイツチ、251,252は同じくメ
モリ、271,272,271′,272′はデータバ
ス、28はアンドゲートである。
In FIG. 4, 2 and 5 are the same optical sensors and controllers as in FIG. 2, 4' is a data processing unit (CPU), 21 1 and 21 2 are differentiators, and 22 1 to 22
5 is a comparator, 23 1 to 23 4 are monostable multivibrators (hereinafter also simply referred to as monostable), 24 and 26 are bus changeover switches specially provided according to the present invention, 25 1 and 25 2 are also memories, and 27 1 , 27 2 , 27 1 ', 27 2 ' are data buses, and 28 is an AND gate.

第4図の微分器211,212、コンパレータ2
1〜225、モノステ231〜234およびアンド
ゲート28等によつて2値化回路が形成される
が、ここで第5図も参照して、その動作を説明す
る。なお、第5図に示される如く、N回目では良
品カプセル11が、また、N+1回目では穴14
のある不良品カプセル12がそれぞれ検査される
ものとする。
Differentiators 21 1 , 21 2 and comparator 2 in Fig. 4
2 1 to 22 5 , monostages 23 1 to 23 4 , AND gate 28 and the like form a binarization circuit, and its operation will now be described with reference to FIG. Furthermore, as shown in FIG .
It is assumed that 1 and 2 defective capsules are each inspected.

カプセル11,12は、センサ2によつてヘリカ
ルスキヤンされ、第5図イの如き信号aが得られ
る。ここで、a1はノツチ13によつて生じた凹部
であり、a2は穴14によつて生じた凹部である。
この信号aから、次のようにして4種類の信号
b,f,gおよびmが得られる。まず、信号bは
アナログ信号aをコンパレータ221にて所定の
レベルaL(第5図イ参照)と比較することにより
得られ、第5図ロの如くカプセルや搬送部材6の
有無に応じて変化することになる。信号f,gは
センサの視野の大きさ、カプセルの搬送速度VT
およびカプセルの形状によつて決まる所定の微分
係数をもつ微分器211によつてアナログ信号a
を微分した後、コンパレータ222,223におい
て第5図ハに示されるレベルCH,CLで2値化さ
れたもので、搬送部材6に形成されたカプセル収
納穴61の始まりや終りおよびボデー、キヤツプ
の始まりや終りに応じて、それぞれ第5図ニ,ホ
の如く得られる。なお、この信号f,gはコンパ
レータ222,223の出力をモノステ231,2
2によつてそれぞれ所定幅の信号に整形したも
のであるが、このように所定時間だけ信号を保持
する理由については後述する。一方、信号mはセ
ンサの視野の大きさ、カプセル周速度VNおよび
欠陥部の形状等によつて決まる所定の微分定数を
有する微分器212によつて、上記アナログ信号
aを微分して得られる第5図ヘの如き信号hを、
コンパレータ224,225にて所定のレベルhH
hLとそれぞれ比較することによつて信号i,jを
得、この信号jを所定幅の信号に整形するモノス
テ234を通して得た信号kと信号iとをアンド
ゲート28にて論理積操作した信号lを、さらに
モノステ233によつて所定幅の信号に整形した
ものである。したがつて、信号lまたはmは第5
図トの如く、アナログ信号aにa1の如き凹部が存
在するときのみ得られ、それ以外の場合には得ら
れない。なお、ここではカプセルのノツチを含む
凹部をモノステ233,234およびアンドゲート
28を用いて検出するようにしているが、コンパ
レータ224,225の出力i,jを所定幅の信号
に整形してメモリへ記憶させ、CPU4′の内部で
その検出を行なうようにすることができる。こう
して得られるカプセルからの2値化信号が、例え
ば第5図に示されるN番目のカプセル11からの
ものであり、そのときバス切換スイツチ24,2
6が第4図の実線の位置にあるものとすれば、そ
れらの信号はメモリ251へ格納される。このと
き、メモリ252にはN−1番目のカプセルに関
するデータが書き込まれており、したがつて、
CPU4′はこのデータによつてN−1番目のカプ
セルの判定を行ない、その結果をコントローラ5
へ送る。次に、第5図に示される如きN+1番目
のカプセル12を走査するときは、コントローラ
5によつてバス切換スイツチ24,26を第4図
の点線の位置に切り換えることにより、2値化信
号はメモリ252へ書込まれる一方、メモリ251
はCPU4′と接続されるので、CPU4′はN番目
のカプセルの判定を行なう。
The capsules 1 1 and 1 2 are helically scanned by the sensor 2, and a signal a as shown in FIG. 5A is obtained. Here, a 1 is the recess created by the notch 13, and a 2 is the recess created by the hole 14.
From this signal a, four types of signals b, f, g and m are obtained as follows. First, the signal b is obtained by comparing the analog signal a with a predetermined level a L (see FIG. 5 B) using the comparator 22 1 , and as shown in FIG. It's going to change. Signals f and g are the size of the field of view of the sensor and the transport speed of the capsule V T
and the analog signal a by a differentiator 21 1 having a predetermined differential coefficient determined by the shape of the capsule.
After being differentiated, it is binarized by the comparators 22 2 and 22 3 at the levels C H and CL shown in FIG . Depending on the beginning and end of the body and cap, the results are as shown in Figure 5 D and H, respectively. Note that the signals f and g are output from the comparators 22 2 and 22 3 to monostems 23 1 and 2
The reason for holding the signals for a predetermined period of time will be described later. On the other hand, the signal m is obtained by differentiating the analog signal a using a differentiator 212 having a predetermined differential constant determined by the size of the field of view of the sensor, the circumferential velocity of the capsule VN , the shape of the defective part, etc. The signal h as shown in Fig. 5,
The comparators 22 4 and 22 5 set the predetermined level h H ,
Signals i and j are obtained by comparing them with h L respectively, and the AND gate 28 performs an AND operation on the signal k obtained through the monostage 23 4 that shapes this signal j into a signal of a predetermined width, and the signal i. The signal l is further shaped into a signal of a predetermined width by a monostage 233 . Therefore, the signal l or m is the fifth
As shown in the figure, this is obtained only when a concavity such as a1 exists in the analog signal a, and is not obtained in other cases. Here, the concave portion including the notch of the capsule is detected using the monoste 23 3 , 23 4 and the AND gate 28 , but the outputs i and j of the comparators 22 4 and 22 5 are shaped into signals of a predetermined width. It is possible to store the information in the memory and perform the detection inside the CPU 4'. The binary signal from the capsule thus obtained is, for example, from the Nth capsule 11 shown in FIG.
6 is in the position indicated by the solid line in FIG. 4, those signals are stored in the memory 251 . At this time, data regarding the N-1st capsule has been written in the memory 252 , and therefore,
The CPU 4' determines the N-1st capsule based on this data, and sends the result to the controller 5.
send to Next, when scanning the N+1-th capsule 12 as shown in FIG. 5, the controller 5 switches the bus selector switches 24 and 26 to the dotted line positions in FIG. is written to memory 25 2 while memory 25 1
is connected to CPU 4', so CPU 4' judges the Nth capsule.

ここで、2値化信号をメモリへ書込むタイミン
グについて、第7図を参照して説明する。なお、
第7図イはセンサ出力aを、同図イ′はその部分
拡大波形を、同図ロは第4図におけるアンドゲー
ト28の出力を、同図ハは同じく第4図のモノス
テ233の出力を、同図ニはタイミングtをそれ
ぞれ示すもので、特にタイミングtの間隔はカプ
セル長さ方向の判定精度の基準となるが、ここで
は、例えばカプセルが1/4周だけ回転するに要す
る時間と等しく選ばれる。ところで、上述の如き
2値化信号lの時間幅は、カプセルのノツチや穴
などの大きさによつて決まるが、その値はカプセ
ルが1回転するに要する時間の略1/10以下であ
る。したがつて、第7図ニの如き読込みタイミン
グでは、信号lを読むことができないので、モノ
ステ233によつて信号lを1/4周期より若干長い
時間THだけ保持することにより信号mを作るも
のである。なお、この信号mによれば、第7図の
如く1回以上読込むことができる。この点は、信
号f,gの場合も同様である。こうして、第6図
イ,ロの如く、2値化信号はメモリ251,252
へ交互に書込まれ(WRITE)または読出され
(READ)、例えば、第7図の場合の例では第8
図の如く記憶される。なお、第6図イは例えばメ
モリ251の、同図ロはメモリ252の動作をそれ
ぞれ示すものである。
Here, the timing of writing the binarized signal into the memory will be explained with reference to FIG. 7. In addition,
Figure 7A shows the sensor output a, Figure A' shows its partially enlarged waveform, Figure 7B shows the output of the AND gate 28 in Figure 4, and Figure C shows the output of the monoste 233 in Figure 4. , Figure 2 shows the timing t. In particular, the interval between the timings t is the standard for the determination accuracy in the capsule length direction, but here, for example, the time required for the capsule to rotate 1/4 turn and equally chosen. Incidentally, the time width of the binary signal l as described above is determined by the size of the notch or hole in the capsule, but its value is approximately 1/10 or less of the time required for one revolution of the capsule. Therefore, since the signal l cannot be read at the read timing shown in FIG . It's something you make. Note that, according to this signal m, reading can be performed more than once as shown in FIG. This point also applies to the signals f and g. In this way, as shown in FIG .
For example, in the case of FIG. 7, the 8th
It is stored as shown in the figure. 6A shows the operation of the memory 251 , and FIG. 6B shows the operation of the memory 252 , respectively.

第9,10図は第5図の如く正常品カプセル1
、穴あきカプセル12をそれぞれ走査して得られ
た信号のb,f,gおよびmの記憶態様を説明す
るための説明図である。
Figures 9 and 10 are normal capsules 1 as shown in Figure 5.
FIG . 1 is an explanatory diagram for explaining the storage mode of signals b, f, g, and m obtained by scanning the perforated capsules 1 and 2 , respectively.

第9,10図において、各アドレスに示される
記号は次のようにしてつけられる。すなわち、
CPIN1、2は2値化信号bが“1”となる始ま
りと終りのアドレスに、RISE1、2は2値化信号
fが“1”となるアドレスで、CENTER−B、
Cはカプセル中央部付近のアドレスに、FALL1、
2は2値化信号gが“1”となるアドレスで、カ
プセルの始まりと終り付近のアドレスに、
NOTCH1、2は2値化信号mが“1”となるア
ドレスで、キヤツプとボデーが重なり合う領域で
生じたアドレスに、また、HOLEは上記
NOTCH以外の領域で2値化信号mが“1”と
なるアドレスにそれぞれ対応して付されるもので
ある。なお、第9図はキヤツプを先にして搬送さ
れる正常品の場合であり、第10図はボデーに穴
があり、かつボデーを先にして搬送される不良品
の場合であることから、第9図ではノツチを示す
アドレス(NOTCH1、2)が第10図の場合よ
りも先に現われているとともに、穴を示すアドレ
ス(HOLE)は現われていないことがわかる。
In FIGS. 9 and 10, the symbols shown at each address are attached as follows. That is,
CPIN1, 2 are the start and end addresses where the binary signal b becomes "1", RISE1, 2 are the addresses where the binary signal f becomes "1", CENTER-B,
C is the address near the center of the capsule, FALL1,
2 is the address where the binary signal g becomes "1", and the addresses near the beginning and end of the capsule are
NOTCH1 and NOTCH2 are addresses where the binary signal m becomes "1", which occurs in the area where the cap and body overlap, and HOLE is the address mentioned above.
These are assigned in correspondence with the addresses where the binary signal m becomes "1" in areas other than NOTCH. Note that Figure 9 shows the case of a normal product that is transported with the cap first, and Figure 10 shows the case of a defective product that has a hole in the body and is transported with the body first. It can be seen that in FIG. 9, the addresses indicating notches (NOTCH1, 2) appear earlier than in the case of FIG. 10, and the address indicating a hole (HOLE) does not appear.

次に、上記の如くして抽出、記憶された情報
(b,f,g,m等の信号)にもとづいて、どの
ように判定が行なわれるかについて説明する。
Next, a description will be given of how the determination is made based on the information (signals b, f, g, m, etc.) extracted and stored as described above.

ここで、信号b,f,gおよびmのもつ意味に
ついて整理すると、次の如くなる。
Here, the meanings of the signals b, f, g, and m are summarized as follows.

1) 信号bについて カプセルまたは搬送部材を走査するとき
“1”となる。
1) Regarding signal b: Becomes "1" when scanning a capsule or conveyance member.

2) 信号fについて カプセルの始まり、搬送部材上のカプセル収
納穴の終り、またはカプセルがボデーを先にし
て搬送されたときにキヤツプ切り口を走査する
と“1”になる。
2) Regarding the signal f, it becomes "1" when scanning the beginning of the capsule, the end of the capsule storage hole on the conveying member, or the cut end of the cap when the capsule is conveyed with the body first.

3) 信号gについて カプセルの終り、カプセル収納穴の始まり、
またはカプセルがキヤツプを先にして搬送され
たときにキヤツプ切り口を走査すると“1”に
なる。
3) About signal g End of capsule, beginning of capsule storage hole,
Alternatively, if the capsule is transported with the cap first and the cap cut end is scanned, it becomes "1".

4) 信号mについて カプセル表面の凹部、肉薄部または反射率の
低い部分を走査するとき“1”となる。
4) Signal m becomes "1" when scanning a concave part, a thin part, or a part with low reflectance on the capsule surface.

以上の如く、各信号はそれぞれに個有の意味を
持つているが、必ずしも一義的に決まるものでは
なく、したがつて、これらをさらに分析する必要
がある。すなわち、信号f,gはカプセルの始ま
り、終りまたは中央部付近で発生するが、これら
は互いにアドレスが遠く離れていることから、容
易に区別することができる。しかし、信号mはノ
ツチ(NOTCH)によるものと穴(HOLE)に
よるものとがあるので、ここでは、次のようにし
て区別をしている。
As described above, each signal has its own meaning, but it is not necessarily determined uniquely, and therefore it is necessary to further analyze these. That is, the signals f and g are generated near the beginning, end, or center of the capsule, but since their addresses are far apart from each other, they can be easily distinguished. However, since there are two types of signal m, one for a notch (NOTCH) and the other for a hole (HOLE), the distinction is made here as follows.

第11図は信号の判定方法を説明するフローチ
ヤートである。
FIG. 11 is a flowchart illustrating a signal determination method.

まず、上記2)、3)の項からも明らかなよう
に、信号fまたはgが“1”となるアドレスを調
べることにより、カプセルの搬送方向とキヤツプ
切口の位置を判別する(イ,ロ参照)。次に、信
号mが“1”となるアドレスを調べ(ハ,ニ参
照)、このアドレスがキヤツプ側にあり、かつキ
ヤツプ切り口より所定距離以上離れていない場合
は、m=1なる信号はノツチによるものであり、
一方、所定距離以上離れていて、かつボデー側に
ある場合は穴によるものと考えることができる。
したがつて、ここでは、中心位置を表わすf=1
またはg=1となるアドレスと、m=1となるア
ドレスとの差が所定の設定値CT1より小さいか否
かを判別し(ホ,ヘ参照)、YESならばノツチに
よるもので、正常と判定し(ト参照)、NOなら
ば穴がある不良品であると判定する(チ参照)。
なお、ハ,ニにおいて、m=1となるアドレスが
存在しないときは、エラーとする(リ,ヌ参照)。
First, as is clear from the above sections 2) and 3), by checking the address where the signal f or g becomes "1", the direction of transport of the capsule and the position of the cap cut are determined (see A and B). ). Next, check the address for which the signal m is "1" (see C and D), and if this address is on the cap side and is not more than a predetermined distance from the cap cut, the signal m = 1 is due to the notch. It is a thing,
On the other hand, if it is a predetermined distance or more away and is on the body side, it can be considered that it is due to a hole.
Therefore, here, f=1 representing the center position
Alternatively, determine whether the difference between the address where g = 1 and the address where m = 1 is smaller than a predetermined setting value CT 1 (see E and F), and if YES, it is due to the notch and is normal. (see G), and if NO, it is determined that the product is defective because it has a hole (see H).
Note that in C and D, if there is no address for which m=1, it is determined as an error (see R and N).

以上、主としてカプセル表面の検査について説
明したが、前述の如きツインキヤツプ、チツプド
キヤツプまたはロツクカプセル等の検査も同様に
して可能である。また、第4図の実施例では、ア
ナログ信号の凹部を検出するためにモノステ23
を設けるようにしているが、このモノステ234
をコンパレータ225ではなく224側へ接続する
ことにより、アナログ信号の凸部を検出すること
ができる。また、アナログ信号の凹凸を区別しな
い場合はモノステを省略することが可能である。
また、前述した如く、コンパレータ224,225
の出力を直接記憶させ、その検出処理をCPU
4′にて行なわせるようにしてもよいものである。
Although the above description has mainly focused on inspecting the surface of a capsule, it is also possible to inspect twin caps, chipped caps, lock capsules, etc. as described above in the same way. In addition, in the embodiment shown in FIG. 4, the monoste 23 is
I am trying to set up 4 , but this monoste 23 4
By connecting to the comparator 22 4 side instead of the comparator 22 5 , the convex portion of the analog signal can be detected. Moreover, if the unevenness of the analog signal is not to be distinguished, it is possible to omit the monoste.
Furthermore, as mentioned above, the comparators 22 4 and 22 5
directly memorizes the output of
4' may also be used.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、2つのメモ
リを設けて2値化信号の書込み、読出しを交互に
行なうようにしたゝめ、データの取込みの時間と
演算時間とをわけずに全てを演算時間として利用
することができる。例えば、メモリを1つにした
場合の判定時間は、第3図で説明したカプセル搬
送ピツチ時間(T1+T2)の約20%以下となるが、
この発明によれば、判定時間をこれとほゞ同程
度、つまり、処理能力を低下させることなく、5
倍以上にすることができる。また、この発明で
は、1カプセル分の2値化情報を全て記憶するよ
うにしているので、ソフトウエアによる判定が容
易となるばかりでなく、搬送速度の影響を少なく
することができ、さらにはカプセルの搬送方向が
まちまちでも容易に対処しうるという利点が得ら
れるものである。
As described above, according to the present invention, two memories are provided and the writing and reading of the binary signal are performed alternately, so that the data acquisition time and the calculation time are not separated. It can be used as calculation time. For example, the determination time when only one memory is used is approximately 20% or less of the capsule transport pitch time (T 1 + T 2 ) explained in FIG.
According to this invention, the determination time is approximately the same as this, that is, without reducing the processing capacity, the determination time can be reduced to 5.
It can be more than doubled. Furthermore, in this invention, all the binarized information for one capsule is stored, which not only makes it easier to judge by software, but also reduces the influence of conveyance speed. This has the advantage that it can be easily handled even if the conveyance directions vary.

なお、この発明は、上述の如き薬剤用カプセル
ばかりでなく、これと類似する物品一般の検査装
置として広く適用することができる。
The present invention can be widely applied not only to pharmaceutical capsules as described above, but also as an inspection device for similar articles in general.

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

第1図はカプセルを示す外観図、第2図はカプ
セル検査装置の概略を示すブロツク図、第3図は
カプセルの搬送態様とセンサ出力波形との関係を
示す説明図、第4図はこの発明の実施例を示す構
成図、第5図は第4図の動作を説明するための各
部波形図、第6図は2つのメモリの書込み、読出
し動作を説明するための説明図、第7図はセンサ
出力のメモリへの読込タイミングの関係を説明す
る波形図、第8図は各種信号の部分的な記憶態様
を示すメモリ構成図、第9図および第10図は第
5図に示される各種信号の記憶態様を示すメモリ
構成図、第11図は信号の判定方法の一部を示す
フローチヤートである。 符号説明 1,11,12……薬剤カプセル、1
1……キヤツプ、12……ボデー、13……ノツ
チ、14……穴、2……光学センサ、3……2値
化回路、4……判定回路、4′……データ処理装
置(CPU)、5……コントローラ、6……搬送部
材、61……搬送部材のカプセル収納穴、211
212……微分器、221〜225……コンパレー
タ、231〜234……モノステーブルマルチバイ
ブレータ(モノステ)、24,26……バス切換
スイツチ、271,272,271′,272′……デ
ータバス。
Fig. 1 is an external view showing the capsule, Fig. 2 is a block diagram showing the outline of the capsule inspection device, Fig. 3 is an explanatory diagram showing the relationship between the transport mode of the capsule and the sensor output waveform, and Fig. 4 is the present invention. FIG. 5 is a waveform diagram of each part to explain the operation of FIG. 4, FIG. 6 is an explanatory diagram to explain write and read operations of two memories, and FIG. A waveform diagram illustrating the relationship between the reading timing of the sensor output into the memory, FIG. 8 is a memory configuration diagram showing the partial storage mode of various signals, and FIGS. 9 and 10 are the various signals shown in FIG. 5. FIG. 11 is a flowchart showing part of a signal determination method. Code explanation 1, 1 1 , 1 2 ... drug capsule, 1
1... Cap, 12... Body, 13... Notch, 14... Hole, 2... Optical sensor, 3... Binarization circuit, 4... Judgment circuit, 4'... Data processing unit (CPU) , 5...Controller, 6...Transporting member, 6 1 ...Capsule storage hole of the transporting member, 21 1 ,
21 2 ... Differentiator, 22 1 to 22 5 ... Comparator, 23 1 to 23 4 ... Monostable multivibrator (Monoste), 24, 26 ... Bus changeover switch, 27 1 , 27 2 , 27 1 ', 27 2 '...Data bus.

Claims (1)

【特許請求の範囲】[Claims] 1 長さ方向軸を回転中心として回転せしめられ
ながら軸方向に搬送される略円筒形状の物品を順
次走査する光学センサと、該センサ出力を所定の
レベルで2値化することにより物品の外形および
表面の形状を表わす所定の信号を抽出する信号抽
出手段と、該2値化された信号を前記物品毎に所
定の時間だけ記憶する2つの記憶手段と、該2値
化された信号が一方の記憶手段に書込まれている
ときは他方の記憶手段から該信号の読出しを行な
う如く切り換える切換手段とを設け、該切換手段
にて2つの記憶手段を前記物品毎に交互に切り換
えることにより書込み、読出しを交互に行ない、
該読出された前記2値化信号にもとづいて所定の
解析を行なうことにより、物品の検査を行なうこ
とを特徴とする外観検査装置。
1 An optical sensor that sequentially scans a substantially cylindrical article that is rotated about a longitudinal axis and conveyed in the axial direction; a signal extraction means for extracting a predetermined signal representing the shape of the surface; two storage means for storing the binarized signal for a predetermined time for each article; a switching means for switching so that when the signal is written in the storage means, the signal is read from the other storage means, and the switching means alternately switches between the two storage means for each article, thereby writing; Reading is performed alternately,
An appearance inspection apparatus characterized in that an article is inspected by performing a predetermined analysis based on the read binary signal.
JP10168683A 1983-06-09 1983-06-09 Inspecting device for external appearance Granted JPS59226975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10168683A JPS59226975A (en) 1983-06-09 1983-06-09 Inspecting device for external appearance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10168683A JPS59226975A (en) 1983-06-09 1983-06-09 Inspecting device for external appearance

Publications (2)

Publication Number Publication Date
JPS59226975A JPS59226975A (en) 1984-12-20
JPH0120374B2 true JPH0120374B2 (en) 1989-04-17

Family

ID=14307218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10168683A Granted JPS59226975A (en) 1983-06-09 1983-06-09 Inspecting device for external appearance

Country Status (1)

Country Link
JP (1) JPS59226975A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7058000B2 (en) * 2017-12-05 2022-04-21 四国電力株式会社 Vibration monitoring system

Also Published As

Publication number Publication date
JPS59226975A (en) 1984-12-20

Similar Documents

Publication Publication Date Title
JPH01100441A (en) Detection of significant difference for surface of sheetlike material to be inspected
JPH0120374B2 (en)
JPH0145024B2 (en)
JP2001242094A (en) Process for inspecting quality of product, especially of glass product
JPS6256442B2 (en)
JP4106143B2 (en) Appearance inspection method and appearance inspection device for tablet blister packaging line
JPS6248878B2 (en)
JPS62229050A (en) Surface detect inspection of object
JPH0419025B2 (en)
JPH0145023B2 (en)
JPH0763699A (en) Flaw inspection apparatus
JPS62263404A (en) Apparatus for inspecting pattern
JPS6256974B2 (en)
JP5108991B1 (en) Glass container mouth lip scratch inspection method and apparatus
JP2535704Y2 (en) Shading image processing device
JPS61190720A (en) Detector for disk defect
JP2002139307A (en) Device for inspecting screw
JPH11132966A (en) Meandering following apparatus for flaw inspection apparatus
JPH06174445A (en) Defect detecting device for disk with notch
JPH07159340A (en) Inspection apparatus for printed object
JPH0627037A (en) Flaw inspecting apparatus
JPS5934961B2 (en) Pattern inspection method
JPS60205357A (en) Ultrasonic flaw detecting method
JPH0115909B2 (en)
JPH10170449A (en) Method for inspecting wiring pattern and apparatus therefor