JPH0367310A - Teaching circuit for pulse motor - Google Patents

Teaching circuit for pulse motor

Info

Publication number
JPH0367310A
JPH0367310A JP20283889A JP20283889A JPH0367310A JP H0367310 A JPH0367310 A JP H0367310A JP 20283889 A JP20283889 A JP 20283889A JP 20283889 A JP20283889 A JP 20283889A JP H0367310 A JPH0367310 A JP H0367310A
Authority
JP
Japan
Prior art keywords
motor
output
counter
coil
ram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP20283889A
Other languages
Japanese (ja)
Inventor
Atsushi Yagisawa
淳 八木澤
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.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo 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 Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to JP20283889A priority Critical patent/JPH0367310A/en
Publication of JPH0367310A publication Critical patent/JPH0367310A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To simplify the system of a teaching circuit together with improvement of its reliability by providing a means which detects the voltage generated at the coil of a motor, a means which counts the output of the detecting means, and a means which stores the output of the counter means. CONSTITUTION:The voltage generated by a coil 1 is compared with the reference voltage by a comparator CP1 and therefore detected. Then a pulse signal is outputted. The pulse signals outputted from the CP1 are counted by a counter 3 via an OR circuit 2. hen a switch SW2 is operated when a single teaching action is through. Thus a CPU 4 stores the count value of the counter 3 into a prescribed address of a RAM 5 via an I/O port 6 and then resets the counter 3. In such a way, the information corresponding to the drive value of a motor is stored in the RAM 5 for each action. Then the information is read out of the RAM 5 for each action. Then the information is read out of the RAM 5 when a teaching action is through. Thus an object like a robot, etc., to be moved can move as if they are manually moved.

Description

【発明の詳細な説明】 [産業上の利用分野1 本発明はロボット等の駆動装置として利用されるパルス
モータ−のティーチング回路に関するものであ。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field 1] The present invention relates to a teaching circuit for a pulse motor used as a drive device for a robot or the like.

[従来の技術] 各種駆動用に利用されているパルスモータ−は、一般に
第5図に示すように、入力パルス信号によって0N10
FFするスイッチングトランジスターTr+と、モータ
ーMと並列に接続したフライホイールダイオードD、か
ら構成されており、トランジスタTr+がONのときモ
ーターMの電流■。をカットすることによりモーターを
回転させるようになっている。
[Prior Art] Pulse motors used for various types of drives generally operate at 0N10 depending on input pulse signals, as shown in Fig.
It consists of an FF switching transistor Tr+ and a flywheel diode D connected in parallel with the motor M, and when the transistor Tr+ is ON, the motor M current ■. The motor can be rotated by cutting the .

このようなパルスモータ−によりロボット等を駆動させ
る場合、一般に、ロボットの移動量等の情報をRAM等
の記憶手段に記憶させておき、コンピューターがその記
憶手段から読み出し、記憶している情報に基いてパルス
モーターを駆動制御している。
When a robot or the like is driven by such a pulse motor, information such as the amount of movement of the robot is generally stored in a storage device such as a RAM, and a computer reads it from the storage device and uses it based on the stored information. and controls the pulse motor.

こうしたパルスモータ−の駆動制御情報を予め記憶手段
に設定する方法の一つに、現場においてパルスモータ−
を停止した状態で、手動によりロボット等を実際に移動
させ、その移動に伴なうモーターの回転数をエンコーダ
ーやタコジェネレータ等を利用して検出し、記憶手段に
記憶するようにした、いわゆるティーチング法が知られ
ている。
One of the ways to set such pulse motor drive control information in the storage means in advance is to
This is a so-called teaching method in which the robot, etc. is actually moved manually while the robot is stopped, and the rotational speed of the motor associated with the movement is detected using an encoder, tacho generator, etc., and stored in a storage means. The law is known.

しかしながら、従来は上記したようなエンコーダやタコ
ジェネレータ等のアクチュエータ、ディテクターが必要
であり、システムが複雑となって高価になるという問題
がある。しかも、メカ部材が多くなるため、故障が多発
し、寿命が短く信頼性に乏しいという欠点があった。
However, conventional methods require actuators and detectors such as the encoder and tachogenerator as described above, making the system complicated and expensive. Moreover, since the number of mechanical parts is increased, failures occur frequently, and the service life is short and reliability is poor.

本発明は、このような問題点を解決するために検討の結
果提案されたものであり、簡単なシステムで信頼性に冨
んだパルスモータ−の簡易ティーチング回路を提供する
ことを目的とするものである。
The present invention was proposed as a result of studies to solve these problems, and the object thereof is to provide a simple teaching circuit for a pulse motor that is a simple system and has high reliability. It is.

[問題点を解決するための手段] 上記目的のため、本発明は、入力パルス信号によりモー
ターの駆動を行なうパルスモータ−の駆動回路において
、モーターに電源が供給されていない状態で、外力によ
りモーターを回転させたとき、モーターのコイルに発生
する電圧を検出する手段と、該検出手段の出力をカウン
トする手段と、該カウント手段の出力を記憶する記憶手
段を設けたことをその基本的特徴とするものである。ま
た、本発明は前記検出手段としてモーターコイルの端子
電圧と所定の基準電圧を比較する比較手段を備えたこと
を特徴とするものである。
[Means for Solving the Problems] For the above purpose, the present invention provides a drive circuit for a pulse motor that drives a motor using an input pulse signal. Its basic features include: means for detecting the voltage generated in the coil of the motor when the motor is rotated; means for counting the output of the detecting means; and storage means for storing the output of the counting means. It is something to do. Further, the present invention is characterized in that the detection means includes comparison means for comparing the terminal voltage of the motor coil with a predetermined reference voltage.

さらに、本発明は前記検出手段としてモーターコイルに
並列に接続されるダイオードの出力を検出する手段とし
たことを特徴とするものである。
Furthermore, the present invention is characterized in that the detection means is means for detecting the output of a diode connected in parallel to the motor coil.

[実施例1 第1図は本発明の一実施例を示す回路構成図、第2図は
第1図におけるB及びC位置の出力波形図である。
Embodiment 1 FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention, and FIG. 2 is an output waveform diagram at positions B and C in FIG. 1.

第1図において1はパルスモータ−のコイル、Tr+は
パルスモータ−のコイルを0N10FFさせるためのス
イッチングトランジスターであり、このトランジスター
Tr、のエミッタ側は接地されている。また、D、はコ
イルlに並列に接続されたフライホイールダイオードで
あり、該ダイオードD1はコイルに生じた高電圧の逆起
電圧を吸収しトランジスタTr+の破壊を防止するもの
である。
In FIG. 1, 1 is a coil of a pulse motor, Tr+ is a switching transistor for turning the coil of the pulse motor 0N10FF, and the emitter side of this transistor Tr is grounded. Further, D is a flywheel diode connected in parallel to the coil I, and the diode D1 absorbs the high voltage back electromotive force generated in the coil and prevents the transistor Tr+ from being destroyed.

一方、CPlは前記モーターコイルlの端子電圧と、基
準値設定回路VR,からの基準電圧VR□を比較するた
めのコンパレータであり、その出力側にはプルアップ抵
抗Raが設けられている。
On the other hand, CP1 is a comparator for comparing the terminal voltage of the motor coil I and the reference voltage VR□ from the reference value setting circuit VR, and a pull-up resistor Ra is provided on the output side of the comparator.

また2はOR回路であり、このOR回路2にはモーター
の各コイル(この実施例の場合4相とする)に対応して
設けられた各コンパレーターCPIからの出力信号C,
,C2,C,が入力され、各コンパレーターの出力をカ
ウントする。CPU4にはティーチングを行なうために
操作される操作スイッチSW+ と、RAMへカウンタ
ー3の出力値を記憶させる際に操作されるスイッチSW
2が接続されると共に、所定のパスライン、I10ボー
ト6を介してカウンター3、RA M 5 k: 接続
されている。
Reference numeral 2 denotes an OR circuit, and this OR circuit 2 receives output signals C,
, C2, C, are input, and the output of each comparator is counted. The CPU 4 includes an operation switch SW+ that is operated for teaching, and a switch SW that is operated when storing the output value of the counter 3 in the RAM.
2 is connected, and the counter 3 and the RAM 5 k: are also connected via a predetermined pass line and the I10 port 6.

なお、この実施例では説明の便宜上、1個のモーターに
よるティーチングを行なうこととする。
In this embodiment, for convenience of explanation, teaching will be performed using one motor.

次に本実施例の作動例について、第2図を参考に説明す
る。まずスイッチSW+を閉じるとCPU4はパルスモ
ータの電源側をGNDレベルに落すと共に、トランジス
タTr、を0N10FFさせるためのパルス発生手段(
図示せず)を停止させ、ティーチング待機状態となる。
Next, an example of the operation of this embodiment will be explained with reference to FIG. 2. First, when the switch SW+ is closed, the CPU 4 lowers the power supply side of the pulse motor to the GND level, and the pulse generating means (
(not shown) and enters a teaching standby state.

次に手動等の外力によりティーチングが開始されると、
パルスモータ−が回転し、B位置には第2図に示すよう
な起電圧を発生することになる。なお、図中V。Iはフ
ライホイールダイオードD1の順方向電圧降下分の電圧
である。
Next, when teaching is started by an external force such as manual,
The pulse motor rotates, and an electromotive force as shown in FIG. 2 is generated at position B. In addition, V in the figure. I is the voltage corresponding to the forward voltage drop of the flywheel diode D1.

本実施例ではコイルによって発生する起電圧を、コンパ
レーターCPにおいて基準電圧V□、と比較することに
より検出し、パルス信号を出力させる。このコンパレー
ターCP+からの出力パルス信号は、上述したようにO
R回路2を介してカウンター3でカウントされる。1動
作のティーチングが終了した時点でSW2を操作すると
、CPU4はカウンター3のカウント値をr10ボート
を介してRAMの所定アドレスに記憶させ、その後カウ
ンター3をリセットする。
In this embodiment, the electromotive voltage generated by the coil is detected by comparing it with a reference voltage V□ in a comparator CP, and a pulse signal is output. The output pulse signal from this comparator CP+ is
It is counted by a counter 3 via an R circuit 2. When the SW2 is operated when the teaching of one operation is completed, the CPU 4 stores the count value of the counter 3 in a predetermined address of the RAM via the r10 port, and then resets the counter 3.

このようにしてRAM5にはl動作ごとのモーター駆動
量に対応した情報が格納される。
In this way, the RAM 5 stores information corresponding to the amount of motor drive for each operation.

上述したティーチング操作を終えた後、スイッチングト
ランジスターTr+にパルス信号を入力し、パルスモー
タ−を回転させると、コイルlに逆起電圧が発生する。
After completing the teaching operation described above, when a pulse signal is input to the switching transistor Tr+ and the pulse motor is rotated, a back electromotive voltage is generated in the coil l.

これを上述と同様にしてコンパレーターCP+で検出す
ると共に、OR回路2を介してカウンター3でカウント
する。
This is detected by the comparator CP+ in the same manner as described above, and is counted by the counter 3 via the OR circuit 2.

CPU4においてはRAM5に予め記憶されたカウント
値がI10ボート6を介して読み出され、前記カウンタ
ー3からのカウント値が、この設定カウント値となるま
でパルス発生手段からモーターへパルス信号を発信させ
る。このようにして、1動作が終了するとカウンター3
がリセットされ、RAM5から次の駆動情報が読み出さ
れ、次の動作が始まる。これにより、ロボット等の被移
動体は、手動で作動したときと同じように移動すること
になる。
In the CPU 4, the count value stored in advance in the RAM 5 is read out via the I10 port 6, and the pulse generating means transmits a pulse signal to the motor until the count value from the counter 3 reaches the set count value. In this way, when one operation is completed, the counter 3
is reset, the next drive information is read from the RAM 5, and the next operation begins. As a result, the object to be moved, such as a robot, moves in the same way as when it is operated manually.

第3図はモータコイルに発生する電流を検出する手段の
他の実施例を示したものであり、上記フライホイールダ
イオードD、に並列に差動アンプOPlを接続したもの
である。なお、前記差動アンプOP+の反転入力端子に
は入力抵抗R6とフィードバック抵抗Rアが接続され、
非反転入力端子にも入力抵抗R6、R2が接続されてい
る。
FIG. 3 shows another embodiment of the means for detecting the current generated in the motor coil, in which a differential amplifier OPl is connected in parallel to the flywheel diode D. Note that an input resistor R6 and a feedback resistor Ra are connected to the inverting input terminal of the differential amplifier OP+,
Input resistors R6 and R2 are also connected to the non-inverting input terminal.

いま、フライホイールダイオードD、のアノード電位を
EA、カソード電位をEcとした場合、コイルlに発生
する逆起電圧VDIは、 V、、 =EA−EC 差動アンプOPlの出力をEoとすると7 、’、Eo=   Vo+ R。
Now, if the anode potential of the flywheel diode D is EA and the cathode potential is Ec, the back electromotive force VDI generated in the coil l is V,, =EA-EC If the output of the differential amplifier OPl is Eo, then 7 ,',Eo=Vo+R.

この差動アンプOPIからの信号を上記実施例と同じよ
うにOR回路2を介してカウンター2でカウントするも
のである。
The signal from the differential amplifier OPI is counted by the counter 2 via the OR circuit 2 in the same manner as in the above embodiment.

第4図は本発明のさらに別の実施例を示したものであり
、上記フライホイールダイオードD1に代えて発光ダイ
オードD3を接続し、その出力をフォトトランジスタT
rz等の受光素子で受けるようにしたものである。
FIG. 4 shows still another embodiment of the present invention, in which a light emitting diode D3 is connected in place of the flywheel diode D1, and its output is connected to a phototransistor T.
The light is received by a light receiving element such as an rz.

前記フォトトランジスタTrzのコレクターには電源電
圧Vccが接続されると共に、抵抗R9及び抵抗RIG
が接続され、その抵抗R,,R,。によって決定される
基準電圧がコンパレターCPaの反転入力端子に入力さ
れるようになっている。またフォトトランジスタTrz
のエミッタ(こは抵抗R8が接続されると共に、そのエ
ミッタの出力は前記コンパレーターCP2の非反転入力
端子に入力されるように構成されている。
A power supply voltage Vcc is connected to the collector of the phototransistor Trz, and a resistor R9 and a resistor RIG
are connected, and their resistances R,,R,. The reference voltage determined by is input to the inverting input terminal of the comparator CPa. Also, phototransistor Trz
is connected to the emitter of the resistor R8, and the output of the emitter is configured to be input to the non-inverting input terminal of the comparator CP2.

この実施例による場合、コイル1に逆起電圧が発生する
と、発光ダイオードD3が点灯する。
According to this embodiment, when a back electromotive force is generated in the coil 1, the light emitting diode D3 lights up.

その出力をフォトトランジスタTrzが受光すると、光
起電力がコンパレーターCP2の非反転入力端子に入力
され、その出力が抵抗R9,R1゜で決定される基準電
圧と比較され、基準値以上の場合はコンパレーターCP
、から信号が出力される。その出力信号をOR回路2を
介して上記カウンター3でカウントするものである。
When the phototransistor Trz receives the output, the photovoltaic force is input to the non-inverting input terminal of the comparator CP2, and the output is compared with the reference voltage determined by the resistors R9 and R1°. Comparator CP
A signal is output from . The output signal is counted by the counter 3 via the OR circuit 2.

[発明の効果] 以上説明した本発明によれば、パルスモータの駆動回路
において、モーターに電源が供給されていない状態で、
外力によりモーターを回転させ、そのとき発生する電流
を検出し、その検出手段の出力をカウントして記憶手段
に記憶するようにしたので、従来のように、タコジェネ
レータやエンコーダー等が不要となり、システムが簡素
化されると共に、故障も少なくなって信頼性も向上し、
しかも安価に実施できる、という効果が得られる。
[Effects of the Invention] According to the present invention described above, in the pulse motor drive circuit, when power is not supplied to the motor,
The motor is rotated by an external force, the current generated at that time is detected, and the output of the detection means is counted and stored in the storage means, which eliminates the need for tacho generators, encoders, etc. as in the past, and the system This simplifies the process, reduces failures and improves reliability.
Moreover, the effect is that it can be implemented at low cost.

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

第1図は本発明の実施例を示す回路構成図、第2図はそ
の作動を説明するための波形図、第3図及び第4図は本
発明の他の実施例を示す回路構成図、第5図は一般的な
パルスモータ−の回路構成図である。 図中、1はパルスモータ−のコイル、2はOR回路、3
はカウンター 4はCPU、5はRAM、D、はフライ
ホイールダイオード、D2は発光ダイオード、Tr+は
スイッチングトランジスター、Tr2はフォトトランジ
スター、cp 、 、 cp2はコンパレーター、であ
る。
FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention, FIG. 2 is a waveform diagram for explaining its operation, and FIGS. 3 and 4 are circuit configuration diagrams showing other embodiments of the present invention. FIG. 5 is a circuit diagram of a general pulse motor. In the figure, 1 is the pulse motor coil, 2 is the OR circuit, and 3
is a counter, 4 is a CPU, 5 is a RAM, D is a flywheel diode, D2 is a light emitting diode, Tr+ is a switching transistor, Tr2 is a phototransistor, cp, , cp2 is a comparator.

Claims (3)

【特許請求の範囲】[Claims] (1)入力パルス信号によりモーターの駆動を行なうパ
ルスモーターの駆動制御装置において、モーターに電源
が供給されていない状態で外力によりモーターを回転さ
せたときに、モーターのコイルに発生する電圧を検出す
る手段と、該検出手段の出力をカウントする手段と、該
カウント手段の出力を記憶する記憶手段を設けたことを
特徴とするパルスモーターのティーチング回路。
(1) In a pulse motor drive control device that drives the motor using input pulse signals, when the motor is rotated by an external force without power being supplied to the motor, the voltage generated in the motor coil is detected. 1. A teaching circuit for a pulse motor, comprising: means for counting the output of the detecting means; and storage means for storing the output of the counting means.
(2)前記検出手段はモーターコイルの端子電圧と所定
の基準電圧を比較する比較手段を備えたことを特徴とす
る請求項1に記載のパルスモーターのティーチング回路
(2) The pulse motor teaching circuit according to claim 1, wherein the detection means includes comparison means for comparing the terminal voltage of the motor coil with a predetermined reference voltage.
(3)前記検出手段はモーターコイルに並列に接続され
るダイオードの出力を検出する検出手段であることを特
徴とする請求項1に記載のパルスモーターのティーチン
グ回路。
(3) The pulse motor teaching circuit according to claim 1, wherein the detection means is a detection means for detecting the output of a diode connected in parallel to the motor coil.
JP20283889A 1989-08-07 1989-08-07 Teaching circuit for pulse motor Pending JPH0367310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20283889A JPH0367310A (en) 1989-08-07 1989-08-07 Teaching circuit for pulse motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20283889A JPH0367310A (en) 1989-08-07 1989-08-07 Teaching circuit for pulse motor

Publications (1)

Publication Number Publication Date
JPH0367310A true JPH0367310A (en) 1991-03-22

Family

ID=16464027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20283889A Pending JPH0367310A (en) 1989-08-07 1989-08-07 Teaching circuit for pulse motor

Country Status (1)

Country Link
JP (1) JPH0367310A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5289067A (en) * 1992-01-31 1994-02-22 Nsk Ltd. Bearing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5289067A (en) * 1992-01-31 1994-02-22 Nsk Ltd. Bearing device

Similar Documents

Publication Publication Date Title
JPH0612266B2 (en) Multi-turn absolute value encoder
JPH02257003A (en) Arrival position recording device for moving part moved by rotary motor
US4712053A (en) Servo control for motor having cutoff device for preventing motor from being locked
JPH0367310A (en) Teaching circuit for pulse motor
EP0055784A1 (en) Control device for indexing intermittent rotor
US20040032341A1 (en) Sensor head, control module and multiple sensor
US4922176A (en) Electronic absolute coordinate encoder for positional control devices
CN112097807B (en) Wire-saving encoder and processing method thereof
JPS5899276A (en) Motor brake device
JP3023644B2 (en) Absolute position encoder for industrial robots
JPH0191689A (en) Motor driving power supply device
JP3765134B2 (en) Instantaneous power failure detection device
JP2819599B2 (en) DC motor disconnection detection circuit
JP2579605B2 (en) Robot origin alignment method
JP3453198B2 (en) Input circuit
JP3352532B2 (en) Energization detection device for switching power supply
JP2526814B2 (en) Data transmission system
JP2546325B2 (en) Multi-rotation rotary encoder
KR830001176B1 (en) Malfunction detecting system
JPS62131786A (en) Brushless motor speed control device
JPH0431603Y2 (en)
JPS60237886A (en) Overload protective circuit of motor
JPH0715357Y2 (en) Load current limit circuit
JPS6338423Y2 (en)
JPS6037705Y2 (en) Tape recorder mechanism control circuit