JP2665314B2 - Motor control device for parts inspection device - Google Patents

Motor control device for parts inspection device

Info

Publication number
JP2665314B2
JP2665314B2 JP9344094A JP9344094A JP2665314B2 JP 2665314 B2 JP2665314 B2 JP 2665314B2 JP 9344094 A JP9344094 A JP 9344094A JP 9344094 A JP9344094 A JP 9344094A JP 2665314 B2 JP2665314 B2 JP 2665314B2
Authority
JP
Japan
Prior art keywords
rotation
motor
component
angle
deceleration
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 - Lifetime
Application number
JP9344094A
Other languages
Japanese (ja)
Other versions
JPH07303384A (en
Inventor
英治 藤田
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.)
CKD Corp
Original Assignee
CKD Corp
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 CKD Corp filed Critical CKD Corp
Priority to JP9344094A priority Critical patent/JP2665314B2/en
Publication of JPH07303384A publication Critical patent/JPH07303384A/en
Application granted granted Critical
Publication of JP2665314B2 publication Critical patent/JP2665314B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
  • Control Of Conveyors (AREA)
  • Sorting Of Articles (AREA)
  • Control Of Position Or Direction (AREA)
  • Control Of Velocity Or Acceleration (AREA)
  • Stopping Of Electric Motors (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、部品検査装置用モータ
を制御するための制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for controlling a motor for a component inspection device.

【0002】[0002]

【従来の技術】従来より、キャリアテープ上に等間隔に
保持された抵抗器やコンデンサ等の電子部品を順次検査
する部品検査装置として、円盤状に形成され、その円周
面に沿ってキャリアテープを保持するターレットと、タ
ーレットを回転させてキャリアテープを移送する回転駆
動装置と、ターレットの近傍における所定位置に設けら
れ、ターレットの回転に伴って通過していく部品の良否
を順次検出する良否検出センサと、ターレットの近傍に
おいて良否検出センサとは異なる所定位置に設けられ、
良否検出センサにより不良品であると検出された部品を
キャリアテープから排出する排出装置と、を備えたもの
が実用化されている。
2. Description of the Related Art Conventionally, as a component inspection apparatus for sequentially inspecting electronic components such as resistors and capacitors held at equal intervals on a carrier tape, the component tape is formed in a disk shape, and the carrier tape is formed along the circumferential surface thereof. Turret, a rotary drive for rotating the turret and transporting the carrier tape, and a pass / fail detection that is provided at a predetermined position near the turret and sequentially detects the pass / fail of components passing through as the turret rotates. A sensor, provided at a predetermined position different from the pass / fail detection sensor in the vicinity of the turret,
A discharge device that discharges, from a carrier tape, a component detected as a defective product by a pass / fail detection sensor has been put to practical use.

【0003】そして、この種の部品検査装置において、
良否検出センサにより不良品であると検出された部品を
キャリアテープから排出するためには、その部品が排出
装置の設けられた位置に来るようにターレットの回転を
停止させる必要がある。そこで従来より、ターレットを
回転させる回転駆動装置としては、モータを駆動源にす
ると共に、ターレットを部品1個分だけ移動させる角度
毎に間欠的に停止させるギアやカム等からなる所謂イン
デックス機構を備えたもの、或は、モータにより減速機
を介してターレットを連続的に回転させると共に、モー
タをサーボ制御することによって、不良品が排出装置の
位置に来るようにターレットを停止させるように構成さ
れたものが採用されている。
[0003] In this kind of component inspection apparatus,
In order to discharge a component detected as defective by the pass / fail detection sensor from the carrier tape, it is necessary to stop the rotation of the turret so that the component comes to the position where the discharge device is provided. Therefore, conventionally, as a rotary drive device for rotating the turret, a so-called index mechanism including a gear and a cam for intermittently stopping at each angle at which the turret is moved by one component, while using a motor as a drive source, is provided. Or the turret is continuously rotated by a motor via a speed reducer, and the turret is stopped by servo-controlling the motor so that defective products come to the position of the discharge device. Things have been adopted.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記前
者の回転駆動装置では、ターレットを間欠的に停止した
際の部品位置と排出装置の位置とを予め一致させておく
ことにより、不良品を正確に排出装置の位置に停止させ
て排出させることができるものの、ターレットを回転と
停止とを繰り返す間欠動作でしか回転させることができ
ず、またターレットの回転速度を大きくすると機械的な
振動が発生してしまうため、検査速度を上げることがで
きないという問題がある。しかも、ターレットを間欠的
に停止させる間隔は、インデックス機構の各部の設定に
よって固定的に決定されてしまうため、他の間隔で配設
された部品の検査には使用することができない。
However, in the former rotary drive device, the defective part can be accurately detected by previously matching the component position when the turret is intermittently stopped with the position of the discharge device. Although the turret can be stopped at the position of the ejection device and ejected, it can only be rotated by intermittent operation that repeats rotation and stop, and when the turret rotation speed is increased, mechanical vibration occurs Therefore, there is a problem that the inspection speed cannot be increased. In addition, the interval at which the turret is intermittently stopped is fixedly determined by the settings of each part of the index mechanism, and cannot be used for inspection of components arranged at other intervals.

【0005】一方、上記後者の回転駆動装置では、モー
タの回転速度に応じてターレットの回転速度を大きく設
定することができるものの、減速機の遊び等によって、
ターレットを不良品が正確に排出装置の位置に来るよう
に停止させることが難しいという問題がある。また、良
否検出センサと排出装置との相対位置が変更された場合
には、良否検出センサによって部品が不良であると検出
されてからターレットを停止させるまでの制御量を、減
速機の減速比を考慮しつつ変更しなければならず、その
設定が難しいという問題もある。
On the other hand, in the latter rotary driving device, the rotation speed of the turret can be set to be large according to the rotation speed of the motor.
There is a problem that it is difficult to stop the turret so that the defective product comes to the position of the discharge device accurately. When the relative position between the pass / fail detection sensor and the discharge device is changed, the control amount from when the pass / fail detection sensor detects that the component is defective to when the turret is stopped is determined by the reduction ratio of the speed reducer. There is also a problem that it is necessary to change while taking into account, and that setting is difficult.

【0006】そこで、回転軸によってターレットを直接
回転させることのできる高トルクの所謂ダイレクトドラ
イブモータ(DDモータ)を使用することが考えられる
が、この場合でも、良否検出センサと排出装置との相対
位置や検査する部品の間隔に応じて、モータの制御を最
適に行うことはできなかった。
Therefore, it is conceivable to use a so-called direct drive motor (DD motor) having a high torque capable of directly rotating the turret by the rotating shaft. In this case, too, the relative position between the pass / fail detection sensor and the discharge device is considered. It was not possible to optimally control the motor according to the distance between the components to be inspected.

【0007】本発明は、こうした問題に鑑みなされたも
のであり、回転軸に、検査対象となる部品を円周面に沿
って等間隔に保持する保持部材が固定され、その保持部
材周囲の任意の2箇所に、部品の良否を検出する良否検
出手段及び部品を保持部材からを排出する排出手段が配
設される部品検査装置用モータ、を制御するのに好適で
且つ汎用性に優れた制御装置を提供することを目的とす
る。
The present invention has been made in view of such a problem, and a holding member for holding a component to be inspected at equal intervals along a circumferential surface is fixed to a rotating shaft, and an arbitrary part around the holding member is fixed. A control which is suitable for controlling a motor for a component inspection apparatus in which a quality detection means for detecting the quality of a component and a discharge means for discharging the component from a holding member are provided at two places, and which has excellent versatility. It is intended to provide a device.

【0008】[0008]

【課題を解決するための手段】即ち、上記目的を達成す
るためになされた請求項1に記載の本発明は、図1に例
示するように、回転軸に、検査対象となる部品を円周面
に沿って等間隔に保持する保持部材が固定され、該保持
部材周囲の任意の2箇所に、該保持部材の回転に伴い通
過する上記部品の良否を検出する良否検出手段、及び上
記保持部材の停止に伴い停止した上記部品を上記保持部
材からを排出する排出手段が配設される部品検査装置用
モータ、を制御するための制御装置であって、上記回転
軸の現在の回転位置を検出する位置検出手段と、上記モ
ータの定回転速度,回転速度を零から上記定回転速度へ
上昇させるまでの加速時間,回転速度を上記定回転速度
から零へ下降させるまでの減速時間,及び上記部品を1
個分移動させるのに必要な上記回転軸の回転角度を表す
角度データを夫々入力するための入力手段と、上記定回
転速度,加速時間,減速時間,及び上記回転軸の現在の
回転位置に基づき、上記モータの回転速度を零から上記
定回転速度まで上昇させて再び零に戻す場合に減速を開
始すべき上記回転軸の回転位置を算出し、当該回転位置
を減速開始位置として設定する減速開始位置設定手段
と、上記回転軸の現在の回転位置に上記角度データの表
す回転角度を加算することにより、上記モータの運転が
開始された後、最初に上記良否検出手段を作動させるべ
き上記回転軸の回転位置を算出し、当該回転位置を検出
指令位置として設定する検出指令位置設定手段と、上記
減速開始位置及び検出指令位置が設定された後、上記定
回転速度及び加速時間に基づいて、上記モータを停止状
態から上記定回転速度となるように運転する起動運転手
段と、該起動運転手段により上記モータの運転が開始さ
れると、上記回転軸の回転位置が上記検出指令位置に達
したか否かを判定し、該検出指令位置に達したと判定す
ると、上記良否検出手段を作動させると共に、上記検出
指令位置に上記角度データの表す回転角度を加算して該
検出指令位置を更新する検出指令位置更新手段と、上記
起動運転手段により上記モータの運転が開始されると、
上記回転軸の回転位置が上記減速開始位置に達したか否
かを判定し、上記減速開始位置に達したと判定すると、
上記良否検出手段の検出結果を判定する結果判定手段
と、該結果判定手段により上記部品が良品であると判定
されると、上記減速開始位置に上記角度データの表す回
転角度を加算して該減速開始位置を更新する減速開始位
置更新手段と、上記結果判定手段により上記部品が不良
品であると判定されると、上記減速時間に基づいて上記
モータを停止させる停止運転手段と、を備えたことを特
徴とする部品検査装置用モータの制御装置を要旨として
いる。
That is, in order to achieve the above object, according to the present invention, as shown in FIG. 1, a component to be inspected is provided on a rotating shaft with a circumference. Holding members fixed at equal intervals along the surface, and pass / fail detection means for detecting pass / fail of the component passing at any two positions around the holding member as the holding member rotates, and the holding member A control device for controlling a motor for a component inspection device, which is provided with a discharging unit that discharges the component stopped with the stop of the component from the holding member, and detects a current rotational position of the rotary shaft. A constant rotation speed of the motor, an acceleration time for increasing the rotation speed from zero to the constant rotation speed, a deceleration time for decreasing the rotation speed from the constant rotation speed to zero, and the component. 1
An input unit for inputting angle data representing a rotation angle of the rotary shaft required to move the rotary shaft by an amount corresponding to each; and a constant rotation speed, an acceleration time, a deceleration time, and a current rotation position of the rotary shaft. When the rotation speed of the motor is increased from zero to the constant rotation speed and returned to zero again, the rotation position of the rotation shaft to start deceleration is calculated, and the rotation position is set as the deceleration start position. By adding a rotation angle represented by the angle data to a current rotation position of the rotation axis, the rotation axis to which the pass / fail detection means should be operated first after the operation of the motor is started. Detection command position setting means for calculating the rotation position of the motor and setting the rotation position as a detection command position; and after the deceleration start position and the detection command position are set, the constant rotation speed and acceleration Starting operation means for operating the motor from the stop state to the constant rotation speed based on the above, and when the operation of the motor is started by the starting operation means, the rotational position of the rotating shaft is detected by the detection command. It is determined whether or not the position has been reached, and if it is determined that the detection command position has been reached, the pass / fail detection means is actuated, and a rotation angle represented by the angle data is added to the detection command position to determine the detection command. When the operation of the motor is started by the detection command position updating means for updating the position and the starting operation means,
It is determined whether the rotation position of the rotating shaft has reached the deceleration start position, and when it is determined that the deceleration start position has been reached,
A result judging means for judging a detection result of the pass / fail detection means; and if the result judging means judges that the component is a non-defective product, a rotation angle represented by the angle data is added to the deceleration start position to perform the deceleration. Deceleration start position updating means for updating a start position, and stop operation means for stopping the motor based on the deceleration time when the result determination means determines that the component is defective. The gist of the present invention is a control device for a motor for a component inspection device.

【0009】また、請求項2に記載の本発明は、請求項
1に記載の部品検査装置用モータの制御装置において、
上記減速開始位置設定手段が、上記回転軸の現在の回転
位置から上記角度データの表す回転角度を正数倍した角
度だけ進んだ回転位置のうち、上記モータの回転速度を
零から上記定回転速度まで上昇させて再び零に戻す場合
に上記回転軸を停止可能で且つ現在の回転位置に最も近
い回転位置を、上記加速時間及び減速時間に基づいて算
出し、当該回転位置から上記定回転速度と減速時間とに
よって決まる回転角度だけ戻った回転位置を上記減速開
始位置として設定すること、を特徴とする部品検査装置
用モータの制御装置を要旨としている。
According to a second aspect of the present invention, there is provided a motor control device for a component inspection apparatus according to the first aspect,
The deceleration start position setting means changes the rotation speed of the motor from zero to the constant rotation speed from among the rotation positions advanced from the current rotation position of the rotation shaft by a positive multiple of the rotation angle represented by the angle data. When returning to zero and returning to zero again, the rotational axis can be stopped and the rotational position closest to the current rotational position is calculated based on the acceleration time and deceleration time, and the constant rotational speed and the constant rotational speed are calculated from the rotational position. A gist of the invention is a control device for a motor for a component inspection device, wherein a rotation position returned by a rotation angle determined by a deceleration time is set as the deceleration start position.

【0010】また、請求項3に記載の本発明は、請求項
1又は請求項2に記載の部品検査装置用モータの制御装
置において、上記入力手段が、上記検出指令位置の調整
角度を入力可能に構成され、上記検出指令位置設定手段
が、上記算出した回転位置に上記入力された調整角度を
加算或いは減算することにより上記検出指令位置を設定
すること、を特徴とする部品検査装置用モータの制御装
置を要旨としている。
According to a third aspect of the present invention, in the control device for a motor for a component inspection apparatus according to the first or second aspect, the input means can input an adjustment angle of the detection command position. Wherein the detection command position setting means sets the detection command position by adding or subtracting the input adjustment angle to or from the calculated rotation position. The gist is a control device.

【0011】そして、請求項4に記載の本発明は、請求
項1ないし請求項3の何れかに記載の部品検査装置用モ
ータの制御装置において、上記入力手段が、上記保持部
材に設けられた保持部の数を入力可能に構成されると共
に、360度を上記入力された保持部の数で割ることに
より、上記部品を1個分移動させるのに必要な上記回転
軸の回転角度を算出する角度算出手段を備えたこと、を
特徴とする部品検査装置用モータの制御装置を要旨とし
ている。
According to a fourth aspect of the present invention, in the control device for a motor for a parts inspection apparatus according to any one of the first to third aspects, the input means is provided on the holding member. The number of holding units is configured to be inputtable, and the rotation angle of the rotation shaft required to move the component by one is calculated by dividing 360 degrees by the number of holding units input. A gist of the present invention is a control device for a motor for a component inspection device, which is provided with an angle calculation means.

【0012】[0012]

【作用及び発明の効果】上記のように構成された請求項
1に記載の部品検査装置用モータの制御装置において、
部品検査装置用モータの回転軸には、検査対象となる部
品を円周面に沿って等間隔に保持する保持部材が固定さ
れており、その保持部材周囲の任意の2箇所には、保持
部材の回転に伴って通過する部品の良否を検出する良否
検出手段と、保持部材の停止に伴って停止した部品を保
持部材からを排出する排出手段とが配設されている。そ
して、位置検出手段が、回転軸の現在の回転位置を検出
する。
According to the first aspect of the present invention, there is provided a motor control system for a component inspection apparatus, comprising:
A holding member for holding the components to be inspected at equal intervals along the circumferential surface is fixed to the rotating shaft of the motor for the component inspection device, and holding members are provided at arbitrary two positions around the holding member. There is provided a pass / fail detection unit for detecting pass / fail of a component passing along with the rotation of the unit, and a discharging unit for discharging the stopped component from the holding member when the holding member stops. Then, the position detecting means detects the current rotational position of the rotating shaft.

【0013】ここで、当該装置の使用者が入力手段を介
して、モータの定回転速度,モータの回転速度を零から
その定回転速度へ上昇させるまでの加速時間,モータの
回転速度をその定回転速度から零へ下降させるまでの減
速時間,及び部品を1個分移動させるのに必要な回転軸
の回転角度を表す角度データを夫々入力すると、減速開
始位置設定手段が、入力された定回転速度,加速時間,
減速時間,及び位置検出手段により検出された回転軸の
現在の回転位置に基づいて、モータの回転速度を零から
定回転速度まで上昇させて再び零に戻す場合に減速を開
始すべき回転軸の回転位置を算出し、その回転位置を減
速開始位置として設定する。
[0013] Here, the user of the apparatus determines the constant rotation speed of the motor, the acceleration time required to increase the rotation speed of the motor from zero to the constant rotation speed, and the rotation speed of the motor via the input means. When deceleration time until the rotation speed is decreased from zero to zero and angle data representing the rotation angle of the rotating shaft required to move one part are input, the deceleration start position setting means sets the input constant rotation. Speed, acceleration time,
Based on the deceleration time and the current rotational position of the rotary shaft detected by the position detecting means, when the rotational speed of the motor is increased from zero to a constant rotational speed and returned to zero again, the rotation of the rotary shaft to start decelerating is started. A rotation position is calculated, and the rotation position is set as a deceleration start position.

【0014】つまり、加速時間と定回転速度とから、モ
ータの回転速度を零から定回転速度まで上昇させた場合
に回転軸が回転する角度θ1が分かり、また、減速時間
と定回転速度とから、モータの回転速度を定回転速度か
ら零まで下降させた場合に回転軸が回転する角度θ2が
分かるため、現在の回転位置に角度θ1を加算した回転
位置が減速開始位置として設定されることとなる。そし
て、この回転位置から減速すると、回転軸は最初の回転
位置から(θ1+θ2)だけ回転した位置で停止するこ
ととなる。
That is, from the acceleration time and the constant rotation speed, the angle θ1 at which the rotating shaft rotates when the motor rotation speed is increased from zero to the constant rotation speed can be determined. When the rotation speed of the motor is decreased from the constant rotation speed to zero, the angle θ2 at which the rotation shaft rotates can be known. Therefore, the rotation position obtained by adding the angle θ1 to the current rotation position is set as the deceleration start position. Become. When the rotation speed is reduced from this rotation position, the rotation shaft stops at a position rotated by (θ1 + θ2) from the initial rotation position.

【0015】また、検出指令位置設定手段が、入力され
た角度データの表す回転角度(即ち、部品を1個分移動
させるのに必要な回転軸の回転角度)を回転軸の現在の
回転位置に加算することにより、モータの運転が開始さ
れた後、最初に良否検出手段を作動させるべき回転軸の
回転位置を算出して、その回転位置を検出指令位置とし
て設定する。
Further, the detection command position setting means sets the rotation angle represented by the input angle data (that is, the rotation angle of the rotation shaft necessary to move one component) to the current rotation position of the rotation shaft. By the addition, after the operation of the motor is started, first, the rotation position of the rotation shaft on which the pass / fail detection unit is to be operated is calculated, and the rotation position is set as the detection command position.

【0016】そして、減速開始位置と検出指令位置とが
設定された後、起動運転手段が、入力された定回転速度
と加速時間とに基づいて、モータを停止状態から定回転
速度となるように運転し、この起動運転手段によりモー
タの運転が開始されると、検出指令位置更新手段が、回
転軸の回転位置が検出指令位置に達したか否かを判定
し、検出指令位置に達したと判定すると、良否検出手段
を作動させると共に、検出指令位置に角度データの表す
回転角度を加算して検出指令位置を更新する。
After the deceleration start position and the detection command position are set, the start-up operation means causes the motor to change from the stopped state to the constant rotation speed based on the inputted constant rotation speed and acceleration time. When the operation of the motor is started by the start-up operation means, the detection command position updating means determines whether or not the rotation position of the rotating shaft has reached the detection command position. When the determination is made, the pass / fail detection means is operated, and the detected command position is updated by adding the rotation angle represented by the angle data to the detected command position.

【0017】また、結果判定手段が、回転軸の回転位置
が減速開始位置に達したか否かを判定し、減速開始位置
に達したと判定すると、良否検出手段の検出結果を判定
する。そして、この結果判定手段により部品が良品であ
ると判定されると、減速開始位置更新手段が、減速開始
位置に角度データの表す回転角度を加算して減速開始位
置を更新し、逆に、結果判定手段により部品が不良品で
あると判定されると、停止運転手段が、入力された減速
時間に基づいてモータを停止させる。
The result determining means determines whether or not the rotational position of the rotating shaft has reached the deceleration start position, and when it is determined that the rotational position has reached the deceleration start position, determines the detection result of the pass / fail detection means. If the result determination means determines that the part is non-defective, the deceleration start position updating means updates the deceleration start position by adding the rotation angle represented by the angle data to the deceleration start position. If the determining means determines that the part is defective, the stop operating means stops the motor based on the input deceleration time.

【0018】次に、このような部品検査装置用モータの
制御装置の使用方法について、一例を挙げて説明する。
まず、保持部材に保持された何れかの部品が排出手段の
設けられた位置に停止している場合に、その部品からモ
ータの回転方向とは反対方向にみて、良否検出手段の設
けられた位置に停止している部品の1個後の部品までの
角度が上述した角度(θ1+θ2)となるように、ま
た、上述した角度θ1が、部品1個分の回転角度よりも
大きく部品2個分の回転角度よりも小さくなるように、
モータの定回転速度,加速時間,及び減速時間を入力す
ると共に、部品を1個分移動させるのに必要な回転軸の
回転角度を表す角度データを入力する。
Next, a method of using such a controller for a motor for a component inspection apparatus will be described with reference to an example.
First, when any part held by the holding member is stopped at the position where the discharging means is provided, the position where the good or bad detecting means is provided is viewed from the part in a direction opposite to the rotation direction of the motor. The angle θ1 is larger than the rotation angle of one component so that the angle to the component immediately after the stopped component becomes the above-mentioned angle (θ1 + θ2). So that it is smaller than the rotation angle,
A constant rotation speed, an acceleration time, and a deceleration time of the motor are inputted, and angle data representing a rotation angle of a rotating shaft necessary for moving one part is inputted.

【0019】すると、減速開始位置設定手段によって、
現在、良否検出手段の位置に停止している部品の1個後
の部品を排出手段の位置に停止させるために減速を開始
すべき回転軸の回転位置(即ち、現在の回転位置に上述
の角度θ1を加算した回転位置)が減速開始位置として
設定される。また、検出指令位置設定手段によって、入
力された角度データの表す回転角度を回転軸の現在の回
転位置に加算した回転位置が検出指令位置として設定さ
れる。
Then, by the deceleration start position setting means,
The rotation position of the rotating shaft at which deceleration is to be started in order to stop the component immediately after the component currently stopped at the position of the pass / fail detection unit at the position of the discharge unit (that is, the above-described angle is added to the current rotation position) The rotation position obtained by adding θ1) is set as the deceleration start position. Further, the detection command position setting means sets a rotation position obtained by adding the rotation angle represented by the input angle data to the current rotation position of the rotation axis as the detection command position.

【0020】尚、上述した角度θ1が、部品1個分の回
転角度よりも大きく且つ部品2個分の回転角度よりも小
さくなるように、定回転速度,加速時間,及び減速時間
を入力するのは、最初の検出指令位置から順次更新され
ていく検出指令位置の各間に、減速開始位置が設定され
るようにするためである。
The constant rotation speed, the acceleration time, and the deceleration time are input so that the angle θ1 is larger than the rotation angle of one part and smaller than the rotation angle of two parts. The reason is that the deceleration start position is set between each of the detection command positions sequentially updated from the first detection command position.

【0021】そして、起動運転手段によってモータの運
転が開始され、回転軸の回転位置が検出指令位置に達す
ると、検出指令位置更新手段によって、良否検出手段が
作動されると共に、検出指令位置に部品を1個分移動さ
せるのに必要な回転軸の回転角度が加算される。つま
り、良否検出手段の位置に停止していた部品の1個後の
部品が良否検出手段の位置に移動すると、良否検出手段
が作動してその部品の検査が行われることとなる。
When the operation of the motor is started by the start-up operation means and the rotational position of the rotary shaft reaches the detection command position, the detection command position updating means activates the pass / fail detection means and sets the component to the detection command position. The rotation angle of the rotation shaft required to move the rotation by one is added. In other words, when a component that is one stop after the component stopped at the position of the pass / fail detection unit moves to the position of the pass / fail detection unit, the pass / fail detection unit operates and the component is inspected.

【0022】その後、回転軸の回転位置が減速開始位置
に達すると、結果判定手段によって良否検出手段の検出
結果が判定され、部品(即ち、最初に良否検出手段の位
置に停止していた部品の1個後の部品)が不良品である
と判定されると、停止運転手段が、入力された減速時間
に基づいてモータを停止させる。すると、その部品は、
排出手段の設けられた位置で停止することとなる。
Thereafter, when the rotational position of the rotary shaft reaches the deceleration start position, the result of the pass / fail detection by the pass / fail detection means is judged by the result judging means, and the component (that is, the component which was initially stopped at the position of the pass / fail detection means) is determined. If it is determined that the next component) is defective, the stop operation means stops the motor based on the input deceleration time. Then, the parts are
It stops at the position where the discharging means is provided.

【0023】一方、結果判定手段によって部品が良品で
あると判定されると、減速開始位置更新手段によって、
減速開始位置に部品を1個分移動させるのに必要な回転
軸の回転角度が加算され、そのままモータの回転が継続
して行われることとなる。そして、結果判定手段によっ
て何れかの部品が不良品であると判定されると、上述と
全く同様に、停止運転手段によりモータが停止され、不
良品であると判定された部品が排出手段の位置に正確に
停止されるのである。
On the other hand, if the result determination means determines that the part is non-defective, the deceleration start position updating means determines
The rotation angle of the rotating shaft required to move one component to the deceleration start position is added, and the rotation of the motor is continued as it is. Then, when any of the components is determined to be defective by the result determining unit, the motor is stopped by the stop operating unit, and the component determined to be defective is located at the position of the discharging unit in exactly the same manner as described above. It is stopped exactly.

【0024】つまり、請求項1に記載の部品検査装置用
モータの制御装置によれば、使用者が、そのとき設定さ
れている排出手段と良否検出手段との相対位置に応じ
て、モータの運転条件となる定回転速度,加速時間,及
び減速時間を入力すると共に、保持部材における部品間
隔に応じた角度データを入力することにより、排出手段
と良否検出手段との位置関係及び保持部材の部品間隔に
関わらず、部品検査用モータを最適に制御することがで
きる。
In other words, according to the motor control device for the parts inspection apparatus according to the first aspect, the user operates the motor in accordance with the relative position between the discharge means and the pass / fail detection means set at that time. By inputting the constant rotation speed, acceleration time, and deceleration time, which are conditions, and inputting angle data corresponding to the component interval of the holding member, the positional relationship between the discharging unit and the pass / fail detection unit and the component interval of the holding member are input. Regardless of this, the component inspection motor can be optimally controlled.

【0025】また、請求項1に記載の制御装置によれ
ば、モータの回転軸によって、直接的に保持部材を回転
させるようにしているため、不良品を正確に排出手段の
位置に停止させることができ、また、モータの回転速度
によって検査速度を任意に調整することができる。
According to the first aspect of the present invention, since the holding member is directly rotated by the rotating shaft of the motor, the defective product can be accurately stopped at the position of the discharging means. The inspection speed can be arbitrarily adjusted according to the rotation speed of the motor.

【0026】しかも、請求項1に記載の制御装置によれ
ば、モータの運転条件となる定回転速度,加速時間,及
び減速時間を入力して、排出手段と良否検出手段との相
対位置に応じた設定を行うようにしているため、当該装
置を使用した部品検査工程の前後に設けられる他工程の
速度を考慮して、排出手段と良否検出手段との相対位置
に応じた設定を行うことができる。
Further, according to the control device of the first aspect, the constant rotation speed, the acceleration time, and the deceleration time, which are the operating conditions of the motor, are inputted, and the operation is performed according to the relative position between the discharge means and the pass / fail detection means. Since the speed of other processes provided before and after the component inspection process using the device is taken into account, it is possible to make settings in accordance with the relative positions of the discharging means and the pass / fail detection means. it can.

【0027】次に、請求項2に記載の部品検査装置用モ
ータの制御装置では、減速開始位置設定手段が、回転軸
の現在の回転位置から角度データの表す回転角度を正数
倍した角度だけ進んだ回転位置のうち、モータの回転速
度を零から定回転速度まで上昇させて再び零に戻す場合
に回転軸を停止可能で且つ現在の回転位置に最も近い回
転位置を、加速時間及び減速時間に基づいて算出し、そ
の回転位置から定回転速度と減速時間とによって決まる
回転角度だけ戻った回転位置を減速開始位置として設定
するようにしている。
[0027] Next, in the control device for the motor for the parts inspection apparatus according to the second aspect, the deceleration start position setting means sets the rotation angle represented by the angle data from the current rotation position of the rotation axis to an angle obtained by multiplying the rotation angle by a positive number. Among the advanced rotation positions, when the rotation speed of the motor is increased from zero to a constant rotation speed and returned to zero again, the rotation position capable of stopping the rotation axis and closest to the current rotation position is determined as an acceleration time and a deceleration time. , And a rotation position that is returned from the rotation position by a rotation angle determined by the constant rotation speed and the deceleration time is set as the deceleration start position.

【0028】従って、請求項2に記載の制御装置によれ
ば、モータの定回転速度,加速時間,及び減速時間によ
って決まる上記角度(θ1+θ2)が、排出手段の位置
に停止している部品からみて、良否検出手段の位置に停
止している部品とその1個後の部品との間の位置までの
角度となるように、定回転速度,加速時間,及び減速時
間を入力すれば、良否検出手段の位置に停止している部
品の1個後の部品(即ち、次に検査する部品)を排出手
段の位置に停止させることのできる減速開始位置を設定
することができる。
Therefore, according to the control device of the second aspect, the angle (θ1 + θ2) determined by the constant rotation speed, the acceleration time, and the deceleration time of the motor is viewed from the part stopped at the position of the discharging means. If the constant rotation speed, the acceleration time, and the deceleration time are input so as to be the angle between the component stopped at the position of the pass / fail detection unit and the next component, the pass / fail detection unit A deceleration start position at which the component immediately after the component stopped at the position (ie, the component to be inspected next) can be stopped at the position of the discharge means can be set.

【0029】つまり、請求項1に記載の部品検査装置用
モータの制御装置においては、排出手段の位置に停止し
ている部品から良否検出手段の位置に停止している部品
の1個後の部品までの角度と上記角度(θ1+θ2)と
が完全に一致するように、定回転速度,加速時間,及び
減速時間を入力しなければならなかったのであるが、請
求項2に記載の制御装置においては、上記角度(θ1+
θ2)が、排出手段の位置に停止している部品からみ
て、良否検出手段の位置に停止している部品とその1個
後の部品との間の位置までの角度となるように、定回転
速度,加速時間,及び減速時間を概ね入力するだけで、
良否検出手段の位置に停止している部品の1個後の部品
を排出手段の位置に正確に停止させることのできる減速
開始位置を設定することができるのである。
In other words, in the control device for the motor for the component inspection apparatus according to the first aspect, the component that is one stop after the component stopped at the position of the discharge means from the component stopped at the position of the discharge means. The constant rotation speed, the acceleration time, and the deceleration time had to be input so that the angle up to and the angle (θ1 + θ2) completely coincided with each other. , The angle (θ1 +
θ2) is a constant rotation so that the angle between the component stopped at the position of the pass / fail detection unit and the next component after the component stopped at the position of the pass / fail detection unit is viewed from the component stopped at the position of the discharge unit. Simply enter the speed, acceleration time, and deceleration time.
It is possible to set a deceleration start position at which the component immediately after the component stopped at the position of the pass / fail detection unit can be accurately stopped at the position of the discharge unit.

【0030】次に、請求項3に記載の部品検査装置用モ
ータの制御装置では、入力手段を介して検出指令位置の
調整角度を入力すると、検出指令位置設定手段は、算出
した回転位置にその調整角度を加算或いは減算して検出
指令位置を設定する。従って、請求項3に記載の部品検
査装置用モータの制御装置によれば、良否検出手段を作
動させるタイミングを、入力手段を介して入力する調整
角度の値によって任意に調整することができる。
Next, in the control device for the motor for the parts inspection apparatus according to the third aspect, when the adjustment angle of the detection command position is input through the input means, the detection command position setting means sets the calculated rotation position to the calculated rotation position. The detection command position is set by adding or subtracting the adjustment angle. Therefore, according to the control device for the motor for the component inspection device according to the third aspect, the timing for operating the pass / fail detection unit can be arbitrarily adjusted by the value of the adjustment angle input through the input unit.

【0031】また、請求項4に記載の部品検査装置用モ
ータの制御装置では、入力手段を介して、部品を保持す
るために保持部材に設けられた保持部の数を入力する
と、角度算出手段が、その入力された保持部の数で36
0度を割ることにより、部品を1個分移動させるのに必
要な回転軸の回転角度を算出する。すると、当該装置の
内部において、減速開始位置設定手段,減速開始位置更
新手段,検出指令位置設定手段,及び検出指令位置更新
手段は、上記角度データの代わりに、角度算出手段によ
って算出された回転角度を用いて上述の演算を行う。
In the control device for a motor for a component inspection apparatus according to the fourth aspect, when the number of holding portions provided on the holding member for holding the component is input via the input means, the angle calculation means Is 36 in the number of input holding units.
By dividing the angle by 0 degree, the rotation angle of the rotation axis required to move the component by one component is calculated. Then, inside the device, the deceleration start position setting means, the deceleration start position updating means, the detection command position setting means, and the detection command position updating means are replaced with the rotation angle calculated by the angle calculation means instead of the angle data. Is used to perform the above calculation.

【0032】従って、請求項4に記載の部品検査装置用
モータの制御装置によれば、部品を1個分移動させるの
に必要な回転軸の回転角度を計算して角度データを入力
しなくても、保持部材に設けれた保持部の数を入力する
だけで、部品の間隔に応じた最適な制御を行うことがで
きる。
Therefore, according to the motor control device for a parts inspection apparatus according to the fourth aspect, it is not necessary to calculate the rotation angle of the rotating shaft required to move one part and input the angle data. Also, only by inputting the number of holding portions provided on the holding member, it is possible to perform optimal control according to the interval between components.

【0033】[0033]

【実施例】以下に本発明が適用された実施例について図
面を用いて説明する。まず、図2は本発明が適用された
部品検査装置の構成を表わすブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. First, FIG. 2 is a block diagram showing a configuration of a component inspection apparatus to which the present invention is applied.

【0034】図2に示すように、本実施例の部品検査装
置は、キャリアテープ10上に等間隔に配設された部品
(例えば、抵抗器)12の良否を順次検査し、不良品を
キャリアテープ10から排出するものであり、円盤状に
形成され円周面に沿ってキャリアテープ10上の部品1
2を保持する保持部材としてのターレット14と、ター
レット14を図2において反時計廻りに回転させるモー
タ16と、ターレット14の近傍に設けられ、ターレッ
ト14の回転に伴って通過する部品12の良否を順次検
出する良否検出手段としての良否検出センサ18と、タ
ーレット14の近傍において良否検出センサ18とは異
なる位置に設けられ、ターレット14の停止に伴って停
止した部品12をキャリアテープ10から排出する排出
手段としての排出装置20と、キャリアテープ10をタ
ーレット14に導くためのガイドローラ22,24と、
モータ16の回転状態を制御する制御装置としてのコン
トローラ26と、コントローラ26に対してモータ16
の起動及び停止を行わせる起動指令及び停止指令を出力
すると共に、コントローラ26から検出指令を受けると
良否検出センサ18を作動させ、またコントローラ26
から排出指令を受けると排出装置20を作動させるシー
ケンサ28と、コントローラ26に後述する各種制御パ
ラメータを入力するための入力手段としての入力装置3
0と、を備えている。
As shown in FIG. 2, the component inspection apparatus according to the present embodiment sequentially inspects the quality of components (eg, resistors) 12 arranged at equal intervals on a carrier tape 10 and determines defective products on a carrier. The component 1 is ejected from the tape 10 and is formed in a disk shape.
2, a motor 16 for rotating the turret 14 counterclockwise in FIG. 2, and the quality of the component 12 provided near the turret 14 and passing with the rotation of the turret 14. A quality detection sensor 18 serving as a quality detection means for sequentially detecting, and a discharge which is provided near the turret 14 at a position different from the quality detection sensor 18 and which stops the component 12 stopped with the stop of the turret 14 from the carrier tape 10. A discharge device 20 as means, guide rollers 22 and 24 for guiding the carrier tape 10 to the turret 14,
A controller 26 as a control device for controlling the rotation state of the motor 16;
A start command and a stop command for starting and stopping the motor are output, and when a detection command is received from the controller 26, the pass / fail detection sensor 18 is operated.
, A sequencer 28 that activates the discharging device 20 when receiving a discharging command from the controller, and an input device 3 as input means for inputting various control parameters to be described later to the controller 26.
0.

【0035】ここで、ターレット14は、モータ16の
回転軸16aに直接固定されている。そして、ターレッ
ト14の円周部には、キャリアテープ10上の部品12
と同一の間隔で保持部としての保持溝14aが形成され
ており、この保持溝14aによって部品12を保持す
る。
Here, the turret 14 is directly fixed to the rotating shaft 16a of the motor 16. Then, the component 12 on the carrier tape 10 is
The holding groove 14a as a holding portion is formed at the same interval as that described above, and the component 12 is held by the holding groove 14a.

【0036】一方、モータ16は、ロータの周面に互い
に極性の異なる永久磁石が交互に配設され、ステータ側
に3相コイルによって励磁される複数の極歯を備えた所
謂PM型モータの構造を有しており、減速機を介すこと
なくターレット14を回転可能な高トルクを発生するも
のである。また、モータ16の内部には、回転軸16a
の回転位置を検出するためのレゾルバが設けられてい
る。
On the other hand, the motor 16 has a structure of a so-called PM type motor in which permanent magnets having different polarities are alternately arranged on the peripheral surface of the rotor and a plurality of pole teeth are excited on the stator side by a three-phase coil. And generates a high torque capable of rotating the turret 14 without passing through a speed reducer. A rotating shaft 16 a is provided inside the motor 16.
A resolver for detecting the rotational position of is provided.

【0037】尚、レゾルバは、レゾルバコイルが巻装さ
れたレゾルバステータと、レゾルバロータとからなり、
レゾルバステータは、モータ16のステータ側に固定さ
れており、レゾルバロータは、モータ16のロータ側に
固定されている。そして、レゾルバコイルに所定周波数
(例えば、6kHz)の交流を流した状態でロータが回
転すると、レゾルバステータとレゾルバロータの極歯に
おけるパーミアンス(磁気抵抗の逆数)が変化してレゾ
ルバコイルのインピーダンスが変化するため、これによ
って生ずるレゾルバコイルの電流の変化を検出すること
により、回転軸16aの回転位置を測定することができ
る。
The resolver includes a resolver stator around which a resolver coil is wound, and a resolver rotor.
The resolver stator is fixed on the stator side of the motor 16, and the resolver rotor is fixed on the rotor side of the motor 16. When the rotor rotates with an alternating current of a predetermined frequency (for example, 6 kHz) flowing through the resolver coil, the permeance (reciprocal of the magnetic resistance) at the pole teeth of the resolver stator and the resolver rotor changes, and the impedance of the resolver coil changes. Therefore, the rotation position of the rotating shaft 16a can be measured by detecting a change in the current of the resolver coil caused by this.

【0038】つまり、モータ16は、回転軸16aの位
置検出器を備えた所謂ダイレクトドライブモータであ
る。次に、コントローラ26は、図2に示すように、モ
ータ制御用の制御プログラムを実行するCPU32と、
その制御プログラムが格納されたROM34と、CPU
32の演算結果や入力装置30から入力された制御パラ
メータ等を一時記憶するRAM36と、CPU32から
の指令に基づきモータ16へ駆動信号(PWM信号)を
出力するドライバ部38と、モータ16内のレゾルバコ
イルに交流を流すと共に、その電流値を検出して回転軸
16aの回転位置(絶対位置)を検出する位置検出手段
としての位置検出部40と、シーケンサ28からの起動
指令及び停止指令を入力すると共に、シーケンサ28へ
検出指令及び排出指令を出力するためのI/Oインタフ
ェース42と、入力装置30から入力される制御パラメ
ータを受信するためのI/Oインタフェース44と、こ
れら各部を接続するデータバス46と、から構成されて
いる。
That is, the motor 16 is a so-called direct drive motor having a position detector for the rotating shaft 16a. Next, as shown in FIG. 2, the controller 26 executes a control program for motor control,
A ROM 34 storing the control program and a CPU
RAM 36 for temporarily storing the calculation results of control data 32 and control parameters input from the input device 30, a driver unit 38 for outputting a drive signal (PWM signal) to the motor 16 based on a command from the CPU 32, a resolver in the motor 16 An alternating current is passed through the coil, and a position detection unit 40 as a position detection means for detecting the current value of the coil to detect the rotational position (absolute position) of the rotary shaft 16a, and a start command and a stop command from the sequencer 28 are input. In addition, an I / O interface 42 for outputting a detection command and a discharge command to the sequencer 28, an I / O interface 44 for receiving a control parameter input from the input device 30, and a data bus connecting these components 46.

【0039】そして、コントローラ26(CPU32)
は、電源が投入されると、後述するメインルーチンとモ
ータ制御処理とを実行して、モータ16の駆動制御を行
う。一方、シーケンサ28は、当該部品検査装置の使用
者により、図示しない起動スイッチが投入されると、コ
ントローラ26に対してモータ16を起動させる旨を示
す起動指令を出力する。そして、コントローラ26から
後述するように出力される検出指令を受け取ると、良否
検出センサ18を作動させてその検出結果を判定し、部
品12が不良品である場合には、コントローラ26に対
してモータ16を停止させる旨を示す停止指令を出力す
る。そしてその後、コントローラ26から後述するよう
に出力される排出指令を受け取ると、排出装置20を作
動させてキャリアテープ10から部品12を排出させ、
その排出動作が終了すると、再びコントローラ26に対
して起動指令を出力する。
Then, the controller 26 (CPU 32)
When the power is turned on, a main routine (to be described later) and a motor control process are executed to control the drive of the motor 16. On the other hand, when a start switch (not shown) is turned on by a user of the component inspection apparatus, the sequencer 28 outputs a start command to the controller 26 to start the motor 16. When a detection command output as described later is received from the controller 26, the quality detection sensor 18 is actuated to determine the detection result. If the part 12 is defective, the controller 26 Then, a stop command indicating that the stop of the drive 16 is stopped is output. Then, after that, when a discharge command output as described later is received from the controller 26, the discharge device 20 is operated to discharge the component 12 from the carrier tape 10,
When the discharging operation is completed, a start command is output to the controller 26 again.

【0040】また、入力装置30としては、数値入力用
の数字キーや各種制御コードを入力するためのアルファ
ベットキー等を備えた専用のハンディターミナル、或い
は、汎用のパーソナルコンピュータが用いられる。次
に、このように構成された本実施例の部品検査装置にお
いて、コントローラ26がモータ16を制御するために
実行するメインルーチン及びモータ制御処理について、
図3〜図6を用いて説明する。尚、モータ制御処理は、
メインルーチンの実行中において所定時間(例えば1m
s)毎の割込処理として実行される。
As the input device 30, a dedicated handy terminal provided with numeric keys for inputting numerical values, alphabet keys for inputting various control codes, or a general-purpose personal computer is used. Next, in the component inspection apparatus of the present embodiment configured as described above, a main routine and a motor control process executed by the controller 26 to control the motor 16 will be described.
This will be described with reference to FIGS. The motor control process
During the execution of the main routine, a predetermined time (for example, 1 m
This is executed as an interrupt process for each s).

【0041】まず、図3は、メインルーチンを表すフロ
ーチャートである。このメインルーチンは、コントロー
ラ26に電源が投入されると実行が開始され、まず、ス
テップ(以下、単にSと記す)110にて、当該装置の
使用者により入力装置30を介して、モータ16の定常
運転時における定回転速度V,モータ16の回転速度を
零から定回転速度Vへ上昇させるまでの加速時間AT,
モータ16の回転速度を定回転速度Vから零へ下降させ
るまでの減速時間RT,ターレット14に設けられた保
持溝14aの数(以下、分割数という)N,及び後述す
る検出指令位置CPを算出するためのオフセット△θ、
からなる制御パラメータが入力されたか否かを判定す
る。
FIG. 3 is a flowchart showing a main routine. The main routine is started when the controller 26 is turned on. First, at step (hereinafter simply referred to as S) 110, the user of the device operates the motor 16 via the input device 30. The constant rotation speed V during the steady operation, the acceleration time AT for increasing the rotation speed of the motor 16 from zero to the constant rotation speed V,
Calculate the deceleration time RT until the rotation speed of the motor 16 decreases from the constant rotation speed V to zero, the number N of holding grooves 14a provided in the turret 14 (hereinafter referred to as the number of divisions), and a detection command position CP described later. Offset △ θ,
It is determined whether or not the control parameter consisting of is input.

【0042】そして、S110にて、これらの制御パラ
メータが入力されたと判定されると、続くS120に
て、入力された定回転速度V,加速時間AT,減速時間
RT,及び分割数Nと、位置検出部40により検出され
た回転軸16aの現在の回転位置GPとに基づいて、現
在の回転位置GPから360度を分割数Nで割った回転
角度(即ち、部品12を一個分移動させるのに必要な回
転角度)の正数倍だけ進んだ回転位置のうち、モータ1
6の回転速度を零から定回転速度Vまで上昇させて再び
零に戻した場合に回転軸16aを停止可能で且つ現在の
回転位置GPに最も近い回転位置を、停止位置Stop
として算出し、続くS130にて、回転軸16aを停止
位置Stopで停止させるために減速を開始すべき回転
軸16aの回転位置を、減速開始位置RPとして算出す
る。尚、本実施例においては、S120及びS130の
処理が、減速開始位置設定手段に対応している。
If it is determined in S110 that these control parameters have been input, then in S120, the input constant rotation speed V, acceleration time AT, deceleration time RT, division number N, position Based on the current rotation position GP of the rotation shaft 16a detected by the detection unit 40, a rotation angle obtained by dividing 360 degrees from the current rotation position GP by the number of divisions N (that is, when moving the part 12 by one piece). Of the rotation position advanced by a positive multiple of the required rotation angle)
6 is increased from zero to the constant rotation speed V and returned to zero again, the rotation position of the rotation shaft 16a can be stopped and the rotation position closest to the current rotation position GP is determined as the stop position Stop.
In S130, the rotation position of the rotation shaft 16a at which deceleration should be started to stop the rotation shaft 16a at the stop position Stop is calculated as the deceleration start position RP. In this embodiment, the processing of S120 and S130 corresponds to the deceleration start position setting means.

【0043】ここで、停止位置Stopと減速開始位置
RPの算出について、図5を用いて説明する。図5に示
すように、モータ16の回転速度を零から定回転速度V
まで上昇させる間に回転軸16aが回転する角度θ1
は、定回転速度Vに加速時間ATを乗じて2で割った値
(V・AT/2)となる。また、モータ16の回転速度
を定回転速度Vから零まで下降させる間に回転軸16a
が回転する角度θ2は、定回転速度Vに減速時間RTを
乗じて2で割った値(V・RT/2)となる。
Here, the calculation of the stop position Stop and the deceleration start position RP will be described with reference to FIG. As shown in FIG. 5, the rotation speed of the motor 16 is changed from zero to a constant rotation speed V.
The angle θ1 at which the rotating shaft 16a rotates while being raised to
Is a value obtained by multiplying the constant rotation speed V by the acceleration time AT and dividing by 2 (V · AT / 2). Further, while the rotation speed of the motor 16 is lowered from the constant rotation speed V to zero, the rotation shaft 16a
Is the value (V · RT / 2) obtained by multiplying the constant rotation speed V by the deceleration time RT and dividing by 2.

【0044】よって、図5に示すように、現在の回転位
置GPに角度(θ1+θ2)を加算した回転位置SP
が、モータ16を定回転速度V,加速時間AT,及び減
速時間RTの条件で運転した場合に、回転軸16aを最
初に停止可能な回転位置となる。
Therefore, as shown in FIG. 5, the rotation position SP obtained by adding the angle (θ1 + θ2) to the current rotation position GP.
However, when the motor 16 is operated under the conditions of the constant rotation speed V, the acceleration time AT, and the deceleration time RT, the rotation position becomes the rotation position where the rotation shaft 16a can be stopped first.

【0045】そこで、S120では、現在の回転位置G
Pから360度を分割数Nで割った回転角度の正数倍だ
け進んだ回転位置のうち、回転位置SPの次にある回転
位置を、停止位置Stopとして算出し、S130で
は、停止位置Stopからθ2だけ戻った回転位置を、
減速開始位置RPとして算出するようにしている。
Therefore, in S120, the current rotational position G
Among the rotational positions advanced by a positive multiple of the rotational angle obtained by dividing 360 degrees from P by the number of divisions N, the rotational position next to the rotational position SP is calculated as the stop position Stop, and in S130, the rotational position is calculated from the stop position Stop. The rotational position returned by θ2 is
The deceleration start position RP is calculated.

【0046】従って、現在の回転位置GPからモータ1
6の運転を開始し、減速開始位置RPから減速を開始す
れば、停止位置Stopで回転軸16aを停止させるこ
とができる。このように、停止位置Stopと減速開始
位置RPとが算出されると、続くS140にて、現在の
回転位置GPに360度を分割数Nで割った回転角度を
加算し、その値からオフセット△θを減算することによ
り検出指令位置CPを算出する、検出指令位置設定手段
としての処理を実行する。尚、この検出指令位置CP
は、モータ16の運転を開始した後、シーケンサ28に
対して最初に検出指令を出力すべき回転軸16aの回転
位置を表している。
Accordingly, the motor 1 is shifted from the current rotational position GP.
If the operation of No. 6 is started and deceleration is started from the deceleration start position RP, the rotating shaft 16a can be stopped at the stop position Stop. As described above, when the stop position Stop and the deceleration start position RP are calculated, in S140, a rotation angle obtained by dividing 360 degrees by the number of divisions N is added to the current rotation position GP, and an offset △ A process as a detection command position setting means for calculating a detection command position CP by subtracting θ is executed. Note that this detection command position CP
Represents the rotational position of the rotary shaft 16a to which the detection command should be output first to the sequencer 28 after the operation of the motor 16 is started.

【0047】そして、続くS150にて、シーケンサ2
8から起動指令が出力されたか否かを判定し、起動指令
があれば、S160に進んで、後述するモータ制御処理
にてモータ16を回転させるか或いは停止させるかを判
定するために用いられる運転指示フラグFSに、モータ
16を回転させる旨を示す「0」をセットする。する
と、後述するモータ制御処理により、モータ16の運転
が開始されることとなる。
Then, in S150, the sequencer 2
8 to determine whether or not a start command has been output, and if there is a start command, the process proceeds to S160, and an operation used to determine whether to rotate or stop the motor 16 in a motor control process described later. The instruction flag FS is set to “0” indicating that the motor 16 is to be rotated. Then, the operation of the motor 16 is started by the motor control processing described later.

【0048】そして、続くS170では、シーケンサ2
8から停止指令が出力されたか否かを判定し、停止指令
があるまで、即ち何れかの部品12が不良品であると判
定されるまで、このS170で待機する。一方、何れか
の部品12が不良品であると判定されてシーケンサ28
から停止指令が出力されると、S180に進んで、後述
するモータ制御処理の実行によりモータ16の停止が完
了したか否かを判定し、モータ16が停止したと判定す
ると、続くS190にて、シーケンサ28へ排出指令を
出力する。そして、続くS200にて、上述したS12
0及びS130の処理と全く同様に、停止位置Stop
と減速開始位置RPとを算出し、続くS210にて、シ
ーケンサ28から再び起動指令が出力されたか否かを判
定する。そして、起動指令が出力されると、即ち不良品
の排出が完了すると、再度S160からの処理を繰り返
す。
Then, in S170, the sequencer 2
It is determined whether or not a stop command has been output from S8, and the process waits in S170 until there is a stop command, that is, until it is determined that any part 12 is defective. On the other hand, if any of the parts 12 is determined to be defective, the sequencer 28
When a stop command is output from step S180, the process advances to step S180 to determine whether or not the stop of the motor 16 has been completed by executing a motor control process to be described later. An ejection command is output to the sequencer 28. Then, in subsequent S200, the above-described S12
0 and S130, the stop position Stop
And the deceleration start position RP are calculated, and in subsequent S210, it is determined whether or not a start command is output from the sequencer 28 again. When the start command is output, that is, when the discharge of the defective product is completed, the process from S160 is repeated again.

【0049】次に、上述のように入力された定回転速度
V,加速時間AT,減速時間RT,及び分割数Nと、メ
インルーチンの実行により算出された停止位置Sto
p,減速開始位置RP,及び検出指令位置CPとに基づ
いて、モータ16の制御を行うモータ制御処理につい
て、図4に示すフローチャートを用いて説明する。
Next, the constant rotation speed V, the acceleration time AT, the deceleration time RT, and the number of divisions N input as described above, and the stop position Sto calculated by executing the main routine.
A motor control process for controlling the motor 16 based on p, the deceleration start position RP, and the detection command position CP will be described with reference to the flowchart shown in FIG.

【0050】図4に示すように、このモータ制御処理の
実行が開始されると、まず、S310にて、運転指示フ
ラグFSが「1」であるか否かを判定し、「1」ではな
い、即ち「0」であると判定すると、S320へ進む。
そして、このS320にて、定回転速度Vと加速時間A
Tとに基づきモータ16の運転を行う、起動運転手段と
しての処理を実行する。尚、このS320の処理は、モ
ータ16の回転速度が加速時間ATをかけて定回転速度
Vに上昇し、その後、定回転速度Vで安定するように、
ドライバ部38からモータ16へ駆動信号を出力する、
といった手順で実行される。
As shown in FIG. 4, when execution of the motor control process is started, first, in S310, it is determined whether or not the operation instruction flag FS is "1", and it is not "1". That is, if it is determined to be "0", the process proceeds to S320.
At S320, the constant rotation speed V and the acceleration time A
Based on T, the motor 16 is operated to execute a process as a starting operation means. The processing in S320 is performed so that the rotation speed of the motor 16 increases to the constant rotation speed V over the acceleration time AT, and then stabilizes at the constant rotation speed V.
Outputting a drive signal from the driver unit 38 to the motor 16;
It is executed in such a procedure.

【0051】一方、S310にて、運転指示フラグFS
が「1」であると判定されると、S330に移行する。
そして、このS330にて、モータ16を定回転速度V
から減速時間RTだけかけて停止させる、停止運転手段
としての処理を実行する。尚、このS330の処理は、
モータ16の回転速度が減速時間RTをかけて零に下降
し、その後、回転軸16aが停止位置Stopで停止す
るように、ドライバ部38からモータ16へ駆動信号を
出力する、といった手順で実行される。
On the other hand, at S310, the operation instruction flag FS
Is determined to be “1”, the process proceeds to S330.
Then, at S330, the motor 16 is set to the constant rotation speed V.
From the time of the deceleration time RT to stop. Note that the process of S330 is
The rotation speed of the motor 16 is reduced to zero over the deceleration time RT, and thereafter, a drive signal is output from the driver unit 38 to the motor 16 so that the rotation shaft 16a stops at the stop position Stop. You.

【0052】そして、S320或いはS330の処理の
後、続くS340では、回転軸16aの回転位置GPが
検出指令位置CPに達したか否かを判定し、検出指令位
置CPに達したと判定した場合には、続くS350に
て、シーケンサ28へ検出指令を出力し、続くS360
にて、検出指令位置CPに360度を分割数Nで割った
回転角度を加算する。つまり、S340〜S360の処
理により、検出指令位置更新手段としての処理を実行し
ている。
After S320 or S330, in S340, it is determined whether or not the rotational position GP of the rotating shaft 16a has reached the detection command position CP, and it is determined that the rotation position GP has reached the detection command position CP. In S350, a detection command is output to the sequencer 28 in S350.
Then, a rotation angle obtained by dividing 360 degrees by the division number N is added to the detection command position CP. That is, the processing as the detection command position updating means is executed by the processing of S340 to S360.

【0053】そして、S360にて検出指令位置が更新
された場合、或いは、S340にて、現在の回転位置G
Pが検出指令位置CPに達していないと判定された場合
には、S370に移行して、今度は、現在の回転位置G
Pが減速開始位置RPに達したか否かを判定し、減速開
始位置RPに達したと判定した場合には、S380に進
んで、シーケンサ28から停止指令が出力されたか否か
を判定する、結果判定手段としての処理を実行する。そ
して、停止指令が出力されていないと判定すると、即ち
部品12が良品であると判定されている場合には、S3
90に進んで、減速開始位置RPと停止位置Stopと
に、夫々、360度を分割数Nで割った回転角度を加算
する、減速開始位置更新手段としての処理を実行する。
When the detected command position is updated in S360, or in S340, the current rotational position G is updated.
If it is determined that P has not reached the detection command position CP, the process moves to S370, and this time the current rotational position G
It is determined whether or not P has reached the deceleration start position RP. If it is determined that P has reached the deceleration start position RP, the process proceeds to S380, and it is determined whether or not a stop command is output from the sequencer 28. A process as a result determination means is executed. If it is determined that the stop command has not been output, that is, if it is determined that the component 12 is a non-defective product, the process proceeds to S3.
Proceeding to 90, a process as a deceleration start position updating means for adding a rotation angle obtained by dividing 360 degrees by the number of divisions N to the deceleration start position RP and the stop position Stop, respectively, is executed.

【0054】そして、このようにS390にて減速開始
位置RPと停止位置Stopとを更新した場合、或い
は、S370にて、現在の回転位置GPが減速開始位置
RPに達していないと判定した場合には、S400に移
行して、モータ16が1回転したか否かを判定する。そ
して、1回転していないと判定した場合には、そのまま
当該モータ制御処理を終了し、1回転したと判定した場
合には、続くS410にて、停止位置Stop,減速開
始位置RP,検出指令位置CP,及び現在の回転位置G
Pを、モータ16の1回転に対応した座標に修正して、
当該モータ制御処理を終了する。
When the deceleration start position RP and the stop position Stop are updated in S390, or when it is determined in S370 that the current rotational position GP has not reached the deceleration start position RP. Shifts to S400, and determines whether or not the motor 16 has made one rotation. If it is determined that the motor has not made one rotation, the motor control process is terminated as it is. If it is determined that the motor has made one rotation, in S410, the stop position Stop, the deceleration start position RP, and the detection command position are determined. CP and current rotational position G
P is corrected to coordinates corresponding to one rotation of the motor 16,
The motor control process ends.

【0055】一方、S380にて、シーケンサ28から
停止指令が出力されたと判定した場合には、S420へ
移行して、運転指示フラグFSに「1」をセットした
後、S400へ進む。つまり、メインルーチン及びモー
タ制御処理においては、シーケンサ28から起動指令が
出力されて、メインルーチンのS160にて運転指示フ
ラグFSに「0」がセットされると、モータ制御処理で
は、S320の処理が実行されてモータ16の運転が開
始される。
On the other hand, if it is determined in S380 that a stop command has been output from the sequencer 28, the flow shifts to S420, where the operation instruction flag FS is set to "1", and then to S400. In other words, in the main routine and the motor control processing, when a start command is output from the sequencer 28 and the operation instruction flag FS is set to “0” in S160 of the main routine, the processing of S320 is performed in the motor control processing. Then, the operation of the motor 16 is started.

【0056】そして、S340〜S360の処理によ
り、回転軸16aの回転位置GPがメインルーチンのS
140で算出された検出指令位置CPに最初に達した
時、及び、その後360度を分割数Nで割った角度だけ
回転する度に、シーケンサ28に対して検出指令が出力
される。尚、シーケンサ28は、検出指令を受け取った
タイミングで良否検出センサ18を作動させ、その検出
結果が不良である場合には、当該コントローラ26に対
して停止指令を出力する。
Then, by the processing of S340 to S360, the rotational position GP of the rotary shaft 16a is changed to the S in the main routine.
A detection command is output to the sequencer 28 when it reaches the detection command position CP calculated in 140 for the first time, and every time it rotates by an angle obtained by dividing 360 degrees by the number of divisions N thereafter. The sequencer 28 activates the pass / fail detection sensor 18 at the timing when the detection command is received, and outputs a stop command to the controller 26 when the detection result is defective.

【0057】また同様に、S370〜S390の処理に
より、回転軸16aの回転位置GPがメインルーチンの
S130で算出された減速開始位置RPに最初に達した
時、及び、その後360度を分割数Nで割った角度だけ
回転する度に、シーケンサ28から停止指令があったか
否かが判定され、停止指令があった場合、即ち、S35
0で出力した検出指令に応じて検査された部品12が不
良であった場合には、S420にて運転指示フラグFS
に「1」をセットすることにより、S330の処理によ
ってモータ16の減速を開始し、回転軸16aをそのと
き設定されている停止位置Stopで停止させるように
している。
Similarly, when the rotational position GP of the rotary shaft 16a first reaches the deceleration start position RP calculated in S130 of the main routine, and then 360 degrees are divided into N by the processing of S370 to S390. It is determined whether or not there is a stop command from the sequencer 28 every time the motor rotates by an angle divided by.
If the part 12 inspected in response to the detection command output at 0 is defective, the operation instruction flag FS is determined at S420.
Is set to "1", the deceleration of the motor 16 is started by the processing of S330, and the rotating shaft 16a is stopped at the stop position Stop set at that time.

【0058】そして、モータ16が完全に停止すると、
メインルーチンのS190にて、シーケンサ28へ排出
指令が出力されると共に、S200の処理が実行され、
その後、部品12の排出が完了してシーケンサ28から
再び起動指令が出力されると(S210:YES)、上
述と同様の処理が再開されることとなる。
When the motor 16 is completely stopped,
In S190 of the main routine, a discharge command is output to the sequencer 28, and the process of S200 is executed.
Thereafter, when the ejection of the component 12 is completed and the activation command is output again from the sequencer 28 (S210: YES), the same processing as described above is restarted.

【0059】次に、このような部品検査装置にてモータ
16の制御を行うコントローラ26の使用方法及び動作
状態について、図5及び図6を用いて具体的に説明す
る。尚、図6は、良否検出センサ18と排出装置20と
が90度の位置関係で配設され、ターレット14には合
計16個の保持溝14aが設けられている場合を例示し
ている。つまり、排出装置20の位置から良否検出セン
サ18の位置までは、部品12の4個分の間隔に相当す
ることとなる。また、図6において、部品12に付した
数字(丸印内の数字)は、説明の便宜上、排出装置20
の位置に現在停止している部品12を0番目として、各
部品12に反時計廻りに順次番号を付けたものである。
また更に、以下の説明において、回転軸16aの回転位
置は、0番目の部品の位置に対する角度位置で表すもの
とする。まず、図5に示した角度(θ1+θ2)が、0
番面の部品からモータ16の回転方向(図6における矢
印の方向)とは反対方向にみて、良否検出センサ18の
位置に停止している4番目の部品と5番目の部品との間
の角度(本例の場合では、90度より大きく112.5
度以下)となるように、且つ、図5に示した角度θ1
が、0番面の部品からモータ16の回転方向とは反対方
向にみて、1番目の部品と2番目の部品との間の角度
(本例の場合では、22.5度より大きく45度以下)
となるように、定回転速度V,加速時間AT,及び減速
時間RTを入力する。また、分割数Nとして16を入力
すると共に、オフセット△θとして部品の1個分の角度
(本例では、22.5度)よりも小さな角度を入力す
る。
Next, a method of using the controller 26 for controlling the motor 16 in such a component inspection apparatus and an operation state thereof will be specifically described with reference to FIGS. FIG. 6 illustrates a case where the pass / fail detection sensor 18 and the discharge device 20 are disposed in a 90-degree positional relationship, and the turret 14 is provided with a total of 16 holding grooves 14a. In other words, the distance from the position of the discharging device 20 to the position of the pass / fail detection sensor 18 corresponds to an interval of four components 12. In FIG. 6, the numbers (numbers in circles) given to the components 12 are, for convenience of explanation, the discharging devices 20.
The parts 12 that are currently stopped at the position of 0 are set to the 0th, and the parts 12 are sequentially numbered counterclockwise.
Furthermore, in the following description, the rotation position of the rotation shaft 16a is represented by an angular position with respect to the position of the 0th component. First, the angle (θ1 + θ2) shown in FIG.
The angle between the fourth component and the fifth component stopped at the position of the pass / fail detection sensor 18 as viewed from the surface component in the direction opposite to the rotation direction of the motor 16 (the direction of the arrow in FIG. 6). (In the case of this example, it is larger than 90 degrees and 112.5
Degrees or less) and the angle θ1 shown in FIG.
Is the angle between the first component and the second component as viewed from the component on the 0th surface in the direction opposite to the rotation direction of the motor 16 (in the case of this example, greater than 22.5 degrees and not more than 45 degrees) )
The constant rotation speed V, the acceleration time AT, and the deceleration time RT are input so that In addition, 16 is input as the number of divisions N, and an angle smaller than the angle of one component (22.5 degrees in this example) is input as the offset Δθ.

【0060】すると、図6に示すように、メインルーチ
ンのS120にて、5番目の部品の位置が最初の停止位
置Stop1として算出され、また、メインルーチンの
S130にて、1番目の部品と2番目の部品との間の位
置が最初の減速開始位置RP1として算出される。ま
た、メインルーチンのS140にて、0番目の部品と1
番目の部品との間の位置が最初の検出指令位置CP1と
して算出される。
Then, as shown in FIG. 6, the position of the fifth component is calculated as the first stop position Stop1 in S120 of the main routine, and the position of the first component and the second component are determined in S130 of the main routine. The position between the first component and the third component is calculated as the first deceleration start position RP1. Also, in S140 of the main routine, the 0th component and 1
The position between the first and second components is calculated as the first detection command position CP1.

【0061】その後、シーケンサ28の起動スイッチを
投入すると、シーケンサ28からコントローラ26へ起
動指令が出力されてモータ16の運転が開始され、排出
装置20の位置に最初の検出指令位置CP1が来ると、
シーケンサ28へ検出指令が出力される。すると、良否
検出センサ18は、5番目の部品の良否を検出し、5番
目の部品が不良でない場合には、シーケンサ28からコ
ントローラ26へ停止指令が出力されないため、モータ
制御処理にてS310,S320,S340〜S410
が順次実行されて、検出指令位置CP,停止位置Sto
p,及び減速開始位置RPが、360度を分割数Nで割
った角度だけ順次更新されていく。
Thereafter, when the start switch of the sequencer 28 is turned on, a start command is output from the sequencer 28 to the controller 26 to start the operation of the motor 16, and when the first detection command position CP 1 comes to the position of the discharging device 20,
A detection command is output to sequencer 28. Then, the pass / fail detection sensor 18 detects pass / fail of the fifth component, and if the fifth component is not defective, a stop command is not output from the sequencer 28 to the controller 26. Therefore, S310 and S320 are performed in the motor control process. , S340 to S410
Are sequentially executed, and the detection command position CP and the stop position Sto
p and the deceleration start position RP are sequentially updated by an angle obtained by dividing 360 degrees by the division number N.

【0062】そして例えば、排出装置20の位置に3番
目の検出指令位置CP3が来て、7番目の部品を検査す
るべくシーケンサ28へ検出指令が出力された場合に、
その7番目の部品が不良であった場合には、シーケンサ
28からコントローラ26へ停止指令が出力される。す
ると、排出装置20の位置に3番目の減速開始位置RP
3が来たときに、モータ制御処理のS420にて運転指
示フラグFSに「1」がセットされ、以後S320では
なく、S330の処理が実行されて、モータ16が減速
制御されることとなる。
For example, when the third detection command position CP3 comes to the position of the discharge device 20 and a detection command is output to the sequencer 28 to inspect the seventh component,
If the seventh component is defective, a stop command is output from the sequencer 28 to the controller 26. Then, the third deceleration start position RP is set at the position of the discharge device 20.
When 3 arrives, "1" is set to the operation instruction flag FS in S420 of the motor control process, and thereafter, the process of S330 is executed instead of S320, and the motor 16 is controlled to decelerate.

【0063】そして、排出装置20の位置に3番目の停
止位置Stop3、即ち7番目の部品が来るとモータ1
6の回転が停止する。すると、メインルーチンのS18
0にて肯定判定され、続くS190にてシーケンサ28
へ排出指令が出力されるため、シーケンサ28により排
出装置20が作動されて、7番目の部品がキャリアテー
プ10から排出されることとなる。そして、部品の排出
が完了すると、シーケンサ28は再度起動指令を出力
し、メインルーチンのS210にて肯定判定されて、再
びモータ16の回転が再開されるのである。
When the third stop position Stop3, that is, the seventh part comes to the position of the discharge device 20, the motor 1
The rotation of 6 stops. Then, S18 of the main routine
0 is affirmatively determined, and the sequencer 28 is subsequently performed in S190.
Therefore, the ejection device 20 is operated by the sequencer 28, and the seventh component is ejected from the carrier tape 10. Then, when the ejection of the components is completed, the sequencer 28 outputs the start command again, the affirmative determination is made in S210 of the main routine, and the rotation of the motor 16 is restarted again.

【0064】このように、本実施例のコントローラ26
によれば、使用者が、そのとき設定されている排出装置
20と良否検出センサ18との相対位置に応じて、モー
タの運転条件となる定回転速度V,加速時間AT,及び
減速時間RTを入力すると共に、ターレット14に設け
られた保持溝14aの数(分割数)Nを入力することに
より、排出装置20と良否検出センサ18との位置関係
及び部品12の間隔に関わらず、モータ16を最適に制
御することができる。
As described above, the controller 26 of the present embodiment
According to this, the user sets the constant rotation speed V, the acceleration time AT, and the deceleration time RT, which are the operating conditions of the motor, in accordance with the relative position between the discharge device 20 and the pass / fail detection sensor 18 set at that time. By inputting the number (the number of divisions) N of the holding grooves 14 a provided in the turret 14, the motor 16 can be operated regardless of the positional relationship between the ejection device 20 and the pass / fail detection sensor 18 and the interval between the components 12. It can be controlled optimally.

【0065】そして、本実施例のコントローラ26によ
れば、モータ16の回転軸16aによって、直接的にタ
ーレット14を回転させるようにしているため、不良品
を正確に排出装置20の位置に停止させることができ、
また、モータ16の回転速度によって検査速度を任意に
調整することができる。
According to the controller 26 of this embodiment, the turret 14 is directly rotated by the rotating shaft 16a of the motor 16, so that the defective product is accurately stopped at the position of the discharge device 20. It is possible,
Further, the inspection speed can be arbitrarily adjusted by the rotation speed of the motor 16.

【0066】しかも、本実施例のコントローラ26にお
いては、モータ16の運転条件となる定回転速度V,加
速時間AT,及び減速時間RTを入力するようにしてい
るため、当該装置を使用した部品検査工程の前後に設け
られる他の工程の速度を考慮して、排出装置20と良否
検出センサ18との相対位置に応じた設定を行うことが
できる。
Further, in the controller 26 of this embodiment, since the constant rotation speed V, the acceleration time AT, and the deceleration time RT, which are the operating conditions of the motor 16, are inputted, the component inspection using the device is performed. The setting according to the relative position between the discharge device 20 and the pass / fail detection sensor 18 can be performed in consideration of the speed of another process provided before and after the process.

【0067】一方、本実施例のコントローラ26におい
ては、現在の回転位置GPから360度を分割数Nで割
った回転角度の正数倍だけ進んだ回転位置のうち、モー
タ16の回転速度を零から定回転速度Vまで上昇させて
再び零に戻した場合に回転軸16aを停止可能で且つ現
在の回転位置GPに最も近い回転位置を、停止位置St
opとして算出し、その停止位置Stopから定回転速
度Vと減速時間RTとによって決まる角度θ2(=V・
RT/2)だけ戻った回転位置を、減速開始位置RPと
して算出するようにしている。
On the other hand, in the controller 26 of the present embodiment, the rotational speed of the motor 16 is set to zero among the rotational positions advanced by a positive multiple of the rotational angle obtained by dividing 360 degrees by the number of divisions N from the current rotational position GP. When the rotation speed is increased to the constant rotation speed V and returned to zero again, the rotation shaft 16a can be stopped and the rotation position closest to the current rotation position GP is determined as the stop position St.
and an angle θ2 (= V · V) determined from a constant rotation speed V and a deceleration time RT from the stop position Stop.
The rotational position returned by RT / 2) is calculated as the deceleration start position RP.

【0068】従って、本実施例のコントローラ26によ
れば、定回転速度V,加速時間AT,及び減速時間RT
によって決まる図5に示した角度(θ1+θ2)が、排
出装置20の位置に停止している部品からみて、良否検
出センサ18の位置に停止している部品とその1個後の
部品との間の位置までの角度となるように、定回転速度
V,加速時間AT,及び減速時間RTを入力すれば、良
否検出センサ18の位置に停止している部品の1個後の
部品(次に検査する部品)を、正確に排出装置20の位
置に停止させるための減速開始位置RPを設定すること
ができる。
Therefore, according to the controller 26 of this embodiment, the constant rotation speed V, the acceleration time AT, and the deceleration time RT
The angle (θ1 + θ2) shown in FIG. 5 is determined between the component stopped at the position of the pass / fail detection sensor 18 and the component immediately after it, as viewed from the component stopped at the position of the discharge device 20. If the constant rotation speed V, the acceleration time AT, and the deceleration time RT are input so as to be the angle to the position, the component after the component stopped at the position of the pass / fail detection sensor 18 (the next inspection). It is possible to set the deceleration start position RP for stopping the component) at the position of the discharge device 20 accurately.

【0069】また更に、本実施例のコントローラ26に
おいては、入力装置30を介してオフセット△θを入力
することにより、検出指令位置CPを調整することがで
きるように構成されている。従って、本実施例のコント
ローラ26によれば、シーケンサ28へ検出指令を出力
してから良否検出センサ18が作動して、シーケンサ2
8から停止指令が帰ってくるまでの総遅延時間に応じ
て、オフセット△θを入力することにより、システムに
応じた検査タイミングを設定することができる。
Further, the controller 26 of this embodiment is configured so that the detection command position CP can be adjusted by inputting the offset Δθ through the input device 30. Therefore, according to the controller 26 of the present embodiment, after the detection command is output to the sequencer 28, the pass / fail detection sensor 18 is operated, and the sequencer 2
By inputting the offset Δθ according to the total delay time from when the stop command returns from 8, it is possible to set the inspection timing according to the system.

【0070】尚、上記実施例のコントローラ26は、シ
ーケンサ28を介して良否検出センサ18を作動させる
と共に、シーケンサ28からの停止指令の有無により、
良否検出センサ18の検出結果を判断するようにしたも
のであったが、コントローラ26が良否検出センサ18
を直接作動させ、その検出結果を直接判断するように構
成していもよい。
The controller 26 of the above embodiment operates the pass / fail detection sensor 18 via the sequencer 28 and determines whether or not there is a stop command from the sequencer 28.
Although the detection result of the quality detection sensor 18 is determined, the controller 26
May be directly operated to directly determine the detection result.

【0071】また、上記実施例においては、入力装置3
0から、ターレット14に設けられた保持溝14aの数
(分割数)Nを入力し、360度を分割数Nで割ること
により、部品12を1個分移動させるのに必要な回転角
度を求めるようにしたが、この回転角度を入力装置30
から直接入力するように構成してもよい。
In the above embodiment, the input device 3
From 0, the number (division number) N of the holding grooves 14a provided in the turret 14 is input, and 360 degrees are divided by the division number N to obtain the rotation angle required to move the part 12 by one. However, this rotation angle is input to the input device 30.
Alternatively, it may be configured to input directly from.

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

【図1】 本発明の構成を例示するブロック図である。FIG. 1 is a block diagram illustrating the configuration of the present invention.

【図2】 実施例の部品検査装置の構成を表わすブロッ
ク図である。
FIG. 2 is a block diagram illustrating a configuration of a component inspection apparatus according to the embodiment.

【図3】 実施例のコントローラで実行されるメインル
ーチンを表すフローチャートである。
FIG. 3 is a flowchart illustrating a main routine executed by the controller according to the embodiment.

【図4】 実施例のコントローラで実行されるモータ制
御処理を表すフローチャートである。
FIG. 4 is a flowchart illustrating a motor control process executed by the controller according to the embodiment.

【図5】 メインルーチンで実行される停止位置と減速
開始位置との算出を説明する説明図である。
FIG. 5 is an explanatory diagram illustrating calculation of a stop position and a deceleration start position executed in a main routine.

【図6】 実施例のコントローラの作用を説明する説明
図である。
FIG. 6 is an explanatory diagram illustrating the operation of the controller according to the embodiment.

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

10…キャリアテープ 12…部品 14…ターレ
ット 14a…保持溝 16…モータ 16a…回転軸 18…良否検出センサ 20…排出装置 26…コ
ントローラ 28…シーケンサ 30…入力装置 32…CPU
34…ROM 36…RAM 38…ドライバ部 40…位置検出
DESCRIPTION OF SYMBOLS 10 ... Carrier tape 12 ... Parts 14 ... Turret 14a ... Holding groove 16 ... Motor 16a ... Rotating shaft 18 ... Goodness detection sensor 20 ... Ejection device 26 ... Controller 28 ... Sequencer 30 ... Input device 32 ... CPU
34 ROM 36 RAM 38 Driver 40 Position detector

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05D 3/12 306 G05D 3/12 306G 306R 13/62 13/62 C ──────────────────────────────────────────────────続 き Continuation of the front page (51) Int.Cl. 6 Identification number Agency reference number FI Technical display location G05D 3/12 306 G05D 3/12 306G 306R 13/62 13/62 C

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 回転軸に、検査対象となる部品を円周面
に沿って等間隔に保持する保持部材が固定され、該保持
部材周囲の任意の2箇所に、該保持部材の回転に伴い通
過する上記部品の良否を検出する良否検出手段、及び上
記保持部材の停止に伴い停止した上記部品を上記保持部
材からを排出する排出手段が配設される部品検査装置用
モータ、を制御するための制御装置であって、 上記回転軸の現在の回転位置を検出する位置検出手段
と、 上記モータの定回転速度,回転速度を零から上記定回転
速度へ上昇させるまでの加速時間,回転速度を上記定回
転速度から零へ下降させるまでの減速時間,及び上記部
品を1個分移動させるのに必要な上記回転軸の回転角度
を表す角度データを夫々入力するための入力手段と、 上記定回転速度,加速時間,減速時間,及び上記回転軸
の現在の回転位置に基づき、上記モータの回転速度を零
から上記定回転速度まで上昇させて再び零に戻す場合に
減速を開始すべき上記回転軸の回転位置を算出し、当該
回転位置を減速開始位置として設定する減速開始位置設
定手段と、 上記回転軸の現在の回転位置に上記角度データの表す回
転角度を加算することにより、上記モータの運転が開始
された後、最初に上記良否検出手段を作動させるべき上
記回転軸の回転位置を算出し、当該回転位置を検出指令
位置として設定する検出指令位置設定手段と、 上記減速開始位置及び検出指令位置が設定された後、上
記定回転速度及び加速時間に基づいて、上記モータを停
止状態から上記定回転速度となるように運転する起動運
転手段と、 該起動運転手段により上記モータの運転が開始される
と、上記回転軸の回転位置が上記検出指令位置に達した
か否かを判定し、該検出指令位置に達したと判定する
と、上記良否検出手段を作動させると共に、上記検出指
令位置に上記角度データの表す回転角度を加算して該検
出指令位置を更新する検出指令位置更新手段と、 上記起動運転手段により上記モータの運転が開始される
と、上記回転軸の回転位置が上記減速開始位置に達した
か否かを判定し、上記減速開始位置に達したと判定する
と、上記良否検出手段の検出結果を判定する結果判定手
段と、 該結果判定手段により上記部品が良品であると判定され
ると、上記減速開始位置に上記角度データの表す回転角
度を加算して該減速開始位置を更新する減速開始位置更
新手段と、 上記結果判定手段により上記部品が不良品であると判定
されると、上記減速時間に基づいて上記モータを停止さ
せる停止運転手段と、 を備えたことを特徴とする部品検査装置用モータの制御
装置。
1. A holding member for holding a component to be inspected at equal intervals along a circumferential surface is fixed to a rotating shaft, and at two arbitrary positions around the holding member, the holding member is rotated by rotation of the holding member. For controlling a motor for a component inspection apparatus provided with a pass / fail detection means for detecting pass / fail of the passing part and a discharge means for discharging the part stopped from the holding member when the holding member stops. A position detecting means for detecting a current rotational position of the rotating shaft; and a constant rotation speed of the motor, an acceleration time until the rotation speed is increased from zero to the constant rotation speed, and a rotation speed. Input means for inputting deceleration time required for lowering from the constant rotation speed to zero and angle data representing a rotation angle of the rotation shaft required to move the component by one piece, respectively; Speed, acceleration time When the rotational speed of the motor is increased from zero to the constant rotational speed and returned to zero again based on the deceleration time, the current rotational position of the rotary shaft and the current rotational position of the rotary shaft, the rotational position of the rotary shaft at which deceleration is to be started is determined. The deceleration start position setting means for calculating and setting the rotation position as a deceleration start position, and adding the rotation angle represented by the angle data to the current rotation position of the rotary shaft, thereby starting the operation of the motor. After that, firstly, the rotational position of the rotary shaft on which the pass / fail detection means should be operated is calculated, the detection instruction position setting means for setting the rotational position as the detection instruction position, and the deceleration start position and the detection instruction position are set. After that, on the basis of the constant rotation speed and the acceleration time, starting operation means for operating the motor from the stopped state to the constant rotation speed; When the operation of the motor is started, it is determined whether or not the rotational position of the rotating shaft has reached the detection command position, and when it is determined that the detection command position has been reached, the pass / fail detection means is operated, Detection command position updating means for adding the rotation angle represented by the angle data to the detection command position to update the detection command position; and when the operation of the motor is started by the start-up operation means, the rotation of the rotary shaft It is determined whether or not the position has reached the deceleration start position, and if it is determined that the position has reached the deceleration start position, a result determination unit that determines a detection result of the pass / fail detection unit; If it is determined that the component is non-defective, a deceleration start position updating unit that updates the deceleration start position by adding the rotation angle represented by the angle data to the deceleration start position; If it is determined that the article, a motor control device for a component inspecting apparatus being characterized in that and a stop operation means for stopping the motor based on the deceleration time.
【請求項2】 請求項1に記載の部品検査装置用モータ
の制御装置において、 上記減速開始位置設定手段が、 上記回転軸の現在の回転位置から上記角度データの表す
回転角度を正数倍した角度だけ進んだ回転位置のうち、
上記モータの回転速度を零から上記定回転速度まで上昇
させて再び零に戻す場合に上記回転軸を停止可能で且つ
現在の回転位置に最も近い回転位置を、上記加速時間及
び減速時間に基づいて算出し、当該回転位置から上記定
回転速度と減速時間とによって決まる回転角度だけ戻っ
た回転位置を上記減速開始位置として設定すること、 を特徴とする部品検査装置用モータの制御装置。
2. The control device for a motor for a parts inspection device according to claim 1, wherein the deceleration start position setting means multiplies a rotation angle represented by the angle data by a positive number from a current rotation position of the rotation shaft. Of the rotational position advanced by an angle,
When increasing the rotation speed of the motor from zero to the constant rotation speed and returning it to zero again, the rotation shaft can be stopped and the rotation position closest to the current rotation position is determined based on the acceleration time and the deceleration time. A motor control device for a component inspection device, wherein a rotation position calculated and returned from the rotation position by a rotation angle determined by the constant rotation speed and the deceleration time is set as the deceleration start position.
【請求項3】 請求項1又は請求項2に記載の部品検査
装置用モータの制御装置において、 上記入力手段が、上記検出指令位置の調整角度を入力可
能に構成され、 上記検出指令位置設定手段が、上記算出した回転位置に
上記入力された調整角度を加算或いは減算することによ
り上記検出指令位置を設定すること、 を特徴とする部品検査装置用モータの制御装置。
3. The control device for a motor for a component inspection device according to claim 1, wherein said input means is configured to be capable of inputting an adjustment angle of said detection command position, and said detection command position setting means. Setting the detection command position by adding or subtracting the input adjustment angle to or from the calculated rotation position.
【請求項4】 請求項1ないし請求項3の何れかに記載
の部品検査装置用モータの制御装置において、 上記入力手段が、上記保持部材に設けられた保持部の数
を入力可能に構成されると共に、 360度を上記入力された保持部の数で割ることによ
り、上記部品を1個分移動させるのに必要な上記回転軸
の回転角度を算出する角度算出手段を備えたこと、 を特徴とする部品検査装置用モータの制御装置。
4. The control device for a motor for a component inspection apparatus according to claim 1, wherein the input means is configured to be capable of inputting the number of holding portions provided on the holding member. And an angle calculating means for calculating a rotation angle of the rotation shaft required to move the part by one by dividing 360 degrees by the number of the input holding parts. Control device for the motor for the parts inspection device.
JP9344094A 1994-05-02 1994-05-02 Motor control device for parts inspection device Expired - Lifetime JP2665314B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9344094A JP2665314B2 (en) 1994-05-02 1994-05-02 Motor control device for parts inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9344094A JP2665314B2 (en) 1994-05-02 1994-05-02 Motor control device for parts inspection device

Publications (2)

Publication Number Publication Date
JPH07303384A JPH07303384A (en) 1995-11-14
JP2665314B2 true JP2665314B2 (en) 1997-10-22

Family

ID=14082393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9344094A Expired - Lifetime JP2665314B2 (en) 1994-05-02 1994-05-02 Motor control device for parts inspection device

Country Status (1)

Country Link
JP (1) JP2665314B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5128804B2 (en) * 2006-11-17 2013-01-23 Ckd株式会社 Inspection method and inspection apparatus

Also Published As

Publication number Publication date
JPH07303384A (en) 1995-11-14

Similar Documents

Publication Publication Date Title
JP5077433B2 (en) Wire electric discharge machining apparatus and wire electric discharge machining method
US4873793A (en) Numerically controlled machine tool
JP2665314B2 (en) Motor control device for parts inspection device
JPH036459A (en) Method for detecting number of rotations
JP2003271212A (en) Inspection device of machine tool
JP3013998B2 (en) Rotary axis zero return method in numerical controller
JPH10161748A (en) Motor positioning controller
JP2973196B2 (en) Grinding method for non-round workpieces
JPH04329306A (en) Centering process for out-of-roundness measuring machine and its device
JPH06126616A (en) Contact detecting method and device for grinding wheel
JP7364736B2 (en) Control device, arithmetic device and control method
WO2023218649A1 (en) Control device for machine tool
CN113547691B (en) Positioning device and method, resin molding system, and method for manufacturing resin molded product
KR100224862B1 (en) Apparatus and method for callibration of robot arm
JP2000280191A (en) Position initializing method
WO2007037032A1 (en) Outline measuring machine, method for calculating geometrical basic profile of outline measuring machine and its program
JPH06311777A (en) Device for analysis of synchronism
JPH05293744A (en) Tool measuring method
JPH11333669A (en) Tool rotary type machine tool having roundness compensation and control function, and its roundness compensation and control method
JPH07253811A (en) Sampling control circuit
JP3642278B2 (en) Wire electric discharge machining method and apparatus
JP2001139226A (en) Traverse controlling method in yarn winding and yarn winding machine having traverse control function
JPH0610272Y2 (en) Dynamic balance tester
JPH036414A (en) Evaluating apparatus for shape of inner peripheral surface
JPH02292609A (en) Positioning controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20080620

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090620

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20090620

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100620

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20110620

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120620

Year of fee payment: 15

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 15

Free format text: PAYMENT UNTIL: 20120620

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130620

Year of fee payment: 16

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 16

Free format text: PAYMENT UNTIL: 20130620

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140620

Year of fee payment: 17

EXPY Cancellation because of completion of term