JPH0779589A - Electric motor controller - Google Patents
Electric motor controllerInfo
- Publication number
- JPH0779589A JPH0779589A JP25009493A JP25009493A JPH0779589A JP H0779589 A JPH0779589 A JP H0779589A JP 25009493 A JP25009493 A JP 25009493A JP 25009493 A JP25009493 A JP 25009493A JP H0779589 A JPH0779589 A JP H0779589A
- Authority
- JP
- Japan
- Prior art keywords
- output
- angle
- control device
- motor
- angle calculation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Transmission And Conversion Of Sensor Element Output (AREA)
- Control Of Multiple Motors (AREA)
- Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
Abstract
(57)【要約】
【目的】 複数の制御装置を同期運転させることが可能
で、かつ安価な電動機の制御装置を提供すること。
【構成】 モータの制御装置13は、ダイレクトドライ
ブモータ14の回転軸に直接取り付けられて該回転軸の
回転角度を検出する角度検出レゾルバ11,12の出力
に応じて、該回転軸の回転速度を制御するモータの制御
装置であって、角度検出レゾルバ11,12の角度出力
をデジタル変換するR/Dコンバータ16と、R/Dコ
ンバータ16の出力に基づいて回転軸の絶対角度位置
を、所定のサンプリング時間毎に8ビットのデジタルデ
ータとして演算する角度演算プログラム27と、角度演
算プログラム27が演算した8ビットのデジタルデータ
を外部装置に伝送するための位置出力回路24とを有し
ている。
(57) [Abstract] [Purpose] To provide an inexpensive motor control device capable of synchronously operating a plurality of control devices. A motor control device 13 is mounted directly on a rotary shaft of a direct drive motor 14 and controls a rotational speed of the rotary shaft according to outputs of angle detection resolvers 11 and 12 for detecting a rotation angle of the rotary shaft. A control device of a motor for controlling, wherein an R / D converter 16 for converting the angle output of the angle detection resolvers 11 and 12 into a digital signal, and an absolute angular position of a rotary shaft based on an output of the R / D converter 16 are set to a predetermined value. It has an angle calculation program 27 for calculating 8-bit digital data for each sampling time, and a position output circuit 24 for transmitting the 8-bit digital data calculated by the angle calculation program 27 to an external device.
Description
【0001】[0001]
【産業上の利用分野】本発明は、製造装置等で使用され
るダイレクトドライブモータ等の電動機の制御装置に関
し、さらに詳細には、電動機に直接取り付けたレゾルバ
等の位置検出器の出力を演算処理して、外部制御装置に
対して電動機の回転位置との同期信号を出力する電動機
の制御装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for an electric motor such as a direct drive motor used in a manufacturing apparatus or the like. In addition, the present invention relates to a motor control device that outputs a synchronization signal to the external control device with the rotational position of the motor.
【0002】[0002]
【従来の技術】従来、自動組立機、自動包装機等の製造
装置においては、メインモータにより主軸を回転駆動さ
せ、歯車やカム等を介して、その主軸と直接連結駆動す
ることにより、各部の同期をとることが行われていた。
ここで、メインモータとしては、製造装置全体のスピー
ドを制御するため、サーボモータ等が使用されていた。
サーボモータには、サーボモータの回転速度の制御を行
なうため、レゾルバ等の回転位置検出器が取り付けられ
ていた。一方、一般に主軸にロータリーエンコーダ、レ
ゾルバ等の回転位置検出器を取り付けて、その出力によ
り同期タイミングをとることが行われていた。しかし、
この方法によると、メインモータの速度制御用に取り付
けられているレゾルバとは別にレゾルバ等の回転位置検
出器を必要とするため、コストアップを生じていた。ま
た、主軸にレゾルバ等を取り付けることは装置全体を大
きくすることになり問題であった。2. Description of the Related Art Conventionally, in a manufacturing apparatus such as an automatic assembling machine and an automatic packaging machine, a main motor is driven to rotate a main shaft, and a main gear is directly connected to the main shaft via gears, cams, etc. Synchronization was being done.
Here, as the main motor, a servo motor or the like has been used to control the speed of the entire manufacturing apparatus.
A rotation position detector such as a resolver was attached to the servo motor in order to control the rotation speed of the servo motor. On the other hand, generally, a rotary position detector such as a rotary encoder or a resolver is attached to the main shaft, and synchronization timing is set by its output. But,
According to this method, a rotational position detector such as a resolver is required in addition to the resolver attached for controlling the speed of the main motor, resulting in an increase in cost. Further, attaching a resolver or the like to the main shaft is a problem because it makes the entire apparatus large.
【0003】その問題を解決する手段として、特開昭1
−249733号公報において、サーボモータの速度制
御用に取り付けられている絶対値パルスエンコーダの出
力により、射出成形機を制御する方法が説明されてい
る。この発明においては、パルスエンコーダの出力パル
スをカウンターおよびCPUにより読み取って射出成形
機を制御している。As a means for solving the problem, Japanese Unexamined Patent Publication No. Sho.
Japanese Patent No. 249733 describes a method of controlling an injection molding machine by the output of an absolute value pulse encoder mounted for speed control of a servo motor. In the present invention, the output pulse of the pulse encoder is read by the counter and the CPU to control the injection molding machine.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記従
来技術には次のような問題があった。すなわち、自動組
立機等の製造装置は動作等が複雑であるため、いくつか
のユニットにより構成され、各ユニット毎に各別の制御
装置により制御されることが多い。ここで、自動組立機
等で使用されるシーケンサ等の制御装置は、単純なオン
オフ入力により動作するものであり、高い周期で出力さ
れるパルスエンコーダ等の出力を読み取ることができな
い。マイコン等を登載してパルスエンコーダ等の出力を
読取可能なシーケンサを構成することも可能であるが、
コストアップとなり現実的でない。そのため、自動組立
機等の制御ではサーボモータの回転速度を制御するため
のパルスエンコーダの出力パルスをシーケンサ等の制御
装置に使用できない問題があった。However, the above-mentioned prior art has the following problems. That is, since a manufacturing apparatus such as an automatic assembly machine has complicated operations and the like, it is often composed of several units, and each unit is often controlled by a separate controller. Here, a control device such as a sequencer used in an automatic assembly machine or the like operates by a simple on / off input, and cannot read the output of a pulse encoder or the like output at a high cycle. It is also possible to build a sequencer that can read the output of a pulse encoder etc. by mounting a microcomputer etc.,
This is costly and unrealistic. Therefore, in the control of the automatic assembly machine or the like, there is a problem that the output pulse of the pulse encoder for controlling the rotation speed of the servo motor cannot be used in the control device such as the sequencer.
【0005】本発明は、上記問題点を解決して、複数の
制御装置を同期運転させることが可能で、かつ安価な電
動機の制御装置を提供することを目的とする。SUMMARY OF THE INVENTION It is an object of the present invention to solve the above problems and to provide an inexpensive motor control device capable of synchronously operating a plurality of control devices.
【0006】[0006]
【課題を解決するための手段】この目的を達成するため
に、本発明の電動機の制御装置は、電動機の回転軸に直
接取り付けられて該回転軸の回転角度および位置を検出
する角度検出器の出力に応じて、該回転軸の回転速度を
制御する電動機の制御装置であって、角度検出器の角度
出力をデジタル変換するR/Dコンバータと、R/Dコ
ンバータの出力に基づいて回転軸の絶対角度位置を、所
定のサンプリング時間毎に所定ビットのデジタルデータ
として演算する角度演算手段と、角度演算手段が演算し
た所定ビットのデジタルデータを外部装置に伝送するた
めの出力回路とを有している。また、本発明の電動機の
制御手段は、上記電動機の制御装置において、前記角度
演算手段が2以上の出力形式を有すると共に、前記角度
演算手段の前記2以上の出力形式のうちの1つを選択す
る出力形式選択手段を有している。In order to achieve this object, the control device for an electric motor of the present invention includes an angle detector mounted directly on the rotary shaft of the electric motor to detect the rotation angle and position of the rotary shaft. A controller for an electric motor that controls the rotation speed of the rotating shaft according to the output, the R / D converter converting the angle output of the angle detector into a digital form, and the rotating shaft of the rotating shaft based on the output of the R / D converter. It has an angle calculation means for calculating the absolute angular position as digital data of predetermined bits at predetermined sampling times, and an output circuit for transmitting the digital data of predetermined bits calculated by the angle calculation means to an external device. There is. In the motor control device of the present invention, in the motor control device, the angle calculation means has two or more output formats, and one of the two or more output formats of the angle calculation means is selected. It has an output format selection means.
【0007】[0007]
【作用】上記の構成よりなる本発明の電動機の角度検出
器は、電動機の回転軸に直接取り付けられて該回転軸の
回転角度を検出する。そして、電動機の制御装置は、角
度検出器の出力に応じて、回転軸の回転速度および位置
を制御する。また、R/Dコンバータは、角度検出器の
角度出力をデジタル変換する。また、角度演算手段は、
R/Dコンバータの出力に基づいて回転軸の絶対角度位
置を、所定のサンプリング時間毎に所定ビットのデジタ
ルデータとして演算する。また、出力回路は、角度演算
手段の演算した所定ビットのデジタルデータを外部装置
に伝送する。また、前記角度演算手段が2以上の出力形
式を有し、使用者は、出力形式選択手段により角度演算
手段の前記2以上の出力形式のうちの1つを選択する。The angle detector of the electric motor of the present invention having the above-mentioned structure is directly attached to the rotary shaft of the electric motor to detect the rotation angle of the rotary shaft. Then, the control device for the electric motor controls the rotation speed and the position of the rotation shaft according to the output of the angle detector. The R / D converter also digitally converts the angle output of the angle detector. Also, the angle calculation means,
Based on the output of the R / D converter, the absolute angular position of the rotary shaft is calculated as digital data of predetermined bits at predetermined sampling times. The output circuit also transmits the predetermined bit of digital data calculated by the angle calculation means to an external device. Further, the angle calculation means has two or more output formats, and the user selects one of the two or more output formats of the angle calculation means by the output format selection means.
【0008】[0008]
【実施例】以下、本発明を具体化した一実施例であるモ
ータの制御装置を図面を用いて詳細に説明する。図1に
モータの制御装置の全体構成をブロック図で示す。ダイ
レクトドライブモータ14に、駆動回路であるインバー
タ回路17が3本の動力線により接続している。ダイレ
クトドライブモータ14の出力軸には、ダイレクトドラ
イブモータ14の回転角度を検出するためのエンコーダ
である1回転検出レゾルバ11および多極検出レゾルバ
12が接続している。1回転検出レゾルバ11および多
極検出レゾルバ12には、切換えスイッチ15が接続し
ている。また、切換えスイッチ15には、1回転検出レ
ゾルバ11または多極検出レゾルバ12の出力を一定間
隔でサンプリングしてデジタル量に変換するR/Dコン
バータ16が接続している。R/Dコンバータ16は、
I/O回路25を介してCPU20に接続している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A motor control device according to an embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of the motor control device. An inverter circuit 17 which is a drive circuit is connected to the direct drive motor 14 by three power lines. The output shaft of the direct drive motor 14 is connected to a one-rotation detection resolver 11 and a multi-pole detection resolver 12, which are encoders for detecting the rotation angle of the direct drive motor 14. A changeover switch 15 is connected to the one-rotation detection resolver 11 and the multi-pole detection resolver 12. Further, the changeover switch 15 is connected to an R / D converter 16 which samples the output of the one-rotation detection resolver 11 or the multi-pole detection resolver 12 at a constant interval and converts it into a digital amount. The R / D converter 16 is
It is connected to the CPU 20 via the I / O circuit 25.
【0009】インバータ回路17は、I/O回路25を
介して全体の制御を行うCPU20に接続している。イ
ンバータ回路17の内部構成は、主電源から供給される
交流電圧を直流電圧に変換する整流回路、CPU20よ
り指令を受けてダイレクトドライブモータ14へ供給す
る電流値を制御するベースドライブ制御回路、ベースド
ライブ制御回路の指令により直流電流を交流電流に変換
するインバータとで構成されている。CPU20には、
I/O回路25、制御プログラム等を記憶しているRO
M21、検知したデータ等を一時的に記憶するRAM2
2、および通信ポート23が接続している。また、CP
U20には、所定のサンプリング時間毎に同期タイミン
グ等を出力するための位置検出回路24が接続してい
る。また、通信ポート23には、外部装置であるハンデ
ィターミナル又はコンピュータ26が接続している。ま
た、ROM21には、角度演算プログラム27が記憶さ
れている。The inverter circuit 17 is connected via an I / O circuit 25 to a CPU 20 which controls the entire system. The internal configuration of the inverter circuit 17 includes a rectifier circuit that converts an AC voltage supplied from the main power supply into a DC voltage, a base drive control circuit that receives a command from the CPU 20 and controls a current value supplied to the direct drive motor 14, and a base drive. It is composed of an inverter that converts a direct current into an alternating current according to a command from the control circuit. The CPU 20 has
RO that stores the I / O circuit 25, control program, etc.
M21, RAM2 for temporarily storing detected data and the like
2 and the communication port 23 are connected. Also, CP
A position detection circuit 24 for outputting a synchronization timing or the like at every predetermined sampling time is connected to U20. An external device such as a handy terminal or a computer 26 is connected to the communication port 23. The ROM 21 also stores an angle calculation program 27.
【0010】次に、上記構成を有するモータの制御装置
の作用を説明する。一般に、レゾルバの出力精度は、コ
イルの巻き付け等のばらつきによりあまり高精度でない
ことが知られている。本出願人は、レゾルバの出力精度
を高めるために、1回転検出レゾルバ11と多極検出レ
ゾルバ12を組み合わせて使用する方法を特願平2−1
25161号で提案している。本実施例のモータの制御
装置においても同じ方法を使用しているが、ここでは詳
細な説明を省略する。Next, the operation of the motor controller having the above structure will be described. It is generally known that the output accuracy of a resolver is not very high due to variations such as coil winding. The applicant of the present application has proposed a method in which the single-revolution detection resolver 11 and the multipole detection resolver 12 are used in combination in order to improve the output accuracy of the resolver.
No. 25161 proposed. The same method is used in the motor control device of this embodiment, but a detailed description thereof will be omitted here.
【0011】ダイレクトドライブモータ14の制御装置
においては、自動組立機各部の制御装置である各シーケ
ンサに同期信号を与えるために、(1)ダイレクトドラ
イブモータ14の回転軸の絶対位置である回転角度を与
える方法(絶対位置出力)、(2)ダイレクトドライブ
モータ14の回転軸の回転角度の上限値および下限値を
与えて、その範囲内にある場合にオンまたはオフの信号
を与える方法(範囲出力)の2種類の出力方法を選択で
きる。ここで、各出力方法の詳細については後で説明す
る。出力選択および上限値、下限値の設定は、RC−2
32C通信ポート23に対して、ハンディターミナルま
たはコンピュータ26により信号を送ることにより行わ
れる。先に、その出力選択方法および上限値、下限値の
設定方法を図4のフローチャートにより説明する。In the control device of the direct drive motor 14, in order to give a synchronizing signal to each sequencer which is a control device of each part of the automatic assembly machine, (1) the rotation angle which is the absolute position of the rotation shaft of the direct drive motor 14 is set. Method of giving (absolute position output), (2) Method of giving an upper limit value and a lower limit value of the rotation angle of the rotary shaft of the direct drive motor 14 and giving an ON or OFF signal when within the range (range output) Two types of output methods can be selected. Here, the details of each output method will be described later. Output selection and setting of upper limit and lower limit are RC-2
This is done by sending a signal to the 32C communication port 23 by the handy terminal or the computer 26. First, the output selecting method and the setting method of the upper limit value and the lower limit value will be described with reference to the flowchart of FIG.
【0012】始めに、コンピュータ等26の外部端末に
より、CPU20を介してRAM22に記憶している受
信データを読み出す(S21)。次に、図7に示すよう
に、受信データのパラメータ番号63の内容が0である
場合、絶対位置出力が選択されたと判断して、次のフロ
ーチャートに進む(S22,YES)。パラメータ番号
の内容が0でない場合、範囲出力が選択されたと判断し
て(S22,NO)、パラメータ番号を1増加する(S
23)。従って、使用者は、パラメータ番号63の内容
を変更することにより、位置出力回路24の出力形式と
して、絶対位置出力または範囲出力のいずれかを選択す
ることができる。これにより、各シーケンサに応じて任
意の出力形式を選択できるため、使い勝手が良い。First, an external terminal such as a computer 26 reads the received data stored in the RAM 22 via the CPU 20 (S21). Next, as shown in FIG. 7, when the content of the parameter number 63 of the received data is 0, it is determined that the absolute position output has been selected, and the process proceeds to the next flowchart (S22, YES). If the content of the parameter number is not 0, it is determined that range output has been selected (S22, NO), and the parameter number is incremented by 1 (S22).
23). Therefore, the user can select either absolute position output or range output as the output format of the position output circuit 24 by changing the content of the parameter number 63. As a result, any output format can be selected according to each sequencer, which is convenient.
【0013】次に、パラメータ番号64により、位置出
力回路24のポート0で出力する範囲出力の上限値を入
力する。最後にキャリッジリターンCRを押すことによ
り(S24)、受信データはポート0の上限値としてR
AM22に記憶される(S25)。次に、パラメータ番
号65により、位置出力回路24のポート0で出力する
範囲出力の下限値を入力する。最後にキャリッジリター
ンCRを押すことにより(S26)、受信データはポー
ト0の上限値としてRAM22に記憶される(S2
7)。次に、データ入力が完了したか否かが確認され、
データ入力が完了している場合は、プログラムが終了す
る(S28,YES)。データ入力が終了していない場
合は、S23へ進み次のパラメータ番号65により、ポ
ート1の範囲出力の上限値と下限値とを設定する。本実
施例の位置出力回路24は、8個のポートを有している
ので、8個の範囲出力を出力することが可能である。す
なわち、各シーケンサに8個の異なった範囲出力を伝送
することが可能であり、自動組立機等の同期制御が容易
となる。Next, with the parameter number 64, the upper limit value of the range output output at the port 0 of the position output circuit 24 is input. Finally, by pressing the carriage return CR (S24), the received data becomes R as the upper limit value of port 0.
It is stored in the AM 22 (S25). Next, with the parameter number 65, the lower limit value of the range output output at the port 0 of the position output circuit 24 is input. Finally, by pushing the carriage return CR (S26), the received data is stored in the RAM 22 as the upper limit value of the port 0 (S2).
7). Next, it is confirmed whether the data input is completed,
If the data input is completed, the program ends (S28, YES). If the data input is not completed, the process proceeds to S23, and the upper limit value and the lower limit value of the range output of the port 1 are set by the next parameter number 65. Since the position output circuit 24 of this embodiment has eight ports, it can output eight range outputs. That is, it is possible to transmit eight different range outputs to each sequencer, which facilitates synchronous control of an automatic assembly machine or the like.
【0014】次に、絶対位置出力を出す具体的方法につ
いて説明する。角度演算プログラム27により、ダイレ
クトドライブモータ14の回転軸の絶対位置を検出する
方法について図2のフローチャートにより説明する。本
実施例の1回転検出レゾルバ11および多極検出レゾル
バ12の組み合せ方法により、ダイレクトドライブモー
タ14の回転軸が1回転するときに、CPU20は、R
/Dコンバータ16およびI/O回路25を介して、5
40671個のパルスを受ける(S1)。次に、原点位
置からパルス数をカウントして求められる現在位置パル
スカウントをパラメータで設定した値で分周する、すな
わち、現在位置パルスカウントを2nで割る(S2)。Next, a specific method for outputting the absolute position will be described. A method of detecting the absolute position of the rotary shaft of the direct drive motor 14 by the angle calculation program 27 will be described with reference to the flowchart of FIG. When the rotating shaft of the direct drive motor 14 makes one rotation by the combination method of the one-rotation detecting resolver 11 and the multi-pole detecting resolver 12 of the present embodiment, the CPU 20 makes R
5 via the I / O converter 25 and the I / O circuit 16
Receive 40671 pulses (S1). Next, the current position pulse count obtained by counting the number of pulses from the origin position is divided by the value set by the parameter, that is, the current position pulse count is divided by 2n (S2).
【0015】次に、分周して得られた値をバイナリーコ
ードとして、位置出力回路24に出力する(S3)。本
実施例の角度演算プログラム27では、212=4096
で分周しているので、分解能は、360度*4096/
540672=2.73度となる。例えば、ダイレクト
ドライブモータ14の回転軸の現在位置が原点から12
0度である場合、位置出力回路24の各ポートの出力
は、図6に示すように、120*540672/(40
96*360)=44をバイナリーコードで表現した状
態となる。角度演算プログラム27は、図示しないメイ
ンプログラムにより所定のサンプリング時間毎に実行さ
れるため、所定のサンプリング時間毎に位置出力回路2
4の各ポートの出力が変更される。本実施例では、位置
出力回路24が8個の出力ポートを備えている場合につ
いて説明したが、さらにポートの数を増やすことにより
分解能を高くして、精密な同期制御を実現することも可
能である。Next, the value obtained by frequency division is output as a binary code to the position output circuit 24 (S3). In the angle calculation program 27 of this embodiment, 212 = 4096
Since the frequency is divided by, the resolution is 360 degrees * 4096 /
540672 = 2.73 degrees. For example, if the current position of the rotary shaft of the direct drive motor 14 is 12
When it is 0 degree, the output of each port of the position output circuit 24 is 120 * 540672 / (40) as shown in FIG.
96 * 360) = 44 is represented by a binary code. The angle calculation program 27 is executed at a predetermined sampling time by a main program (not shown), and thus the position output circuit 2 is executed at a predetermined sampling time.
The output of each port of 4 is changed. In the present embodiment, the case where the position output circuit 24 has eight output ports has been described, but it is also possible to increase the resolution by further increasing the number of ports and realize precise synchronization control. is there.
【0016】次に、範囲出力を出す方法について図3の
フローチャートに基づいて説明する。始めに、上限値と
下限値とを比較して、上限値が下限値より小さい場合
(S11,NO)、現在位置が下限値より小さくなく
(S14,NO)、かつ現在位置が上限値より小さい場
合(S15,NO)、ポートの出力をオンとする(S1
6)。そして、現在位置が下限値より小さい場合(S1
4,YES)、ポートの出力をオフにする(S17)。
また、現在位置が下限値より小さくないが(S14,N
O)、現在位置が上限値より大きいかまたは等しい場合
(S15,YES)、ポートの出力をオフとする(S1
7)。例えば、上限値が200,000で下限値が40
0,000の場合、出力ポートの出力は、図5の(b)
に示すようになる。ここで、斜線部は出力がオン状態で
あることを示している。Next, a method of outputting the range output will be described with reference to the flowchart of FIG. First, the upper limit value and the lower limit value are compared, and if the upper limit value is smaller than the lower limit value (S11, NO), the current position is not smaller than the lower limit value (S14, NO), and the current position is smaller than the upper limit value. In the case (S15, NO), the output of the port is turned on (S1).
6). When the current position is smaller than the lower limit value (S1
4, YES), the output of the port is turned off (S17).
Although the current position is not smaller than the lower limit value (S14, N
O), if the current position is greater than or equal to the upper limit value (S15, YES), the output of the port is turned off (S1).
7). For example, the upper limit is 200,000 and the lower limit is 40.
In the case of 10,000, the output of the output port is (b) in FIG.
As shown in. Here, the shaded area indicates that the output is on.
【0017】次に、上限値と下限値とを比較して、上限
値が下限値より大きいかまたは等しい場合(S11,Y
ES)、現在位置が下限値より大きいかまたは等しく
(S12,YES)、かつ現在位置が上限値より小さい
場合(S13,YES)、ポートの出力をオンとする
(S16)。そして、現在位置が下限値より小さい場合
(S12,NO)、ポートの出力をオフにする(S1
7)。また、現在位置が下限値より小さくないが(S1
2,YES)、かつ現在位置が上限値より大きいかまた
は等しい場合(S13,NO)、ポートの出力をオフと
する(S17)。例えば、上限値が400,000で下
限値が200,000とする場合、出力ポートの出力
は、図5の(a)に示すようになる。ここで、斜線部は
出力がオン状態であることを示している。Next, the upper limit value and the lower limit value are compared, and if the upper limit value is greater than or equal to the lower limit value (S11, Y
ES), if the current position is greater than or equal to the lower limit value (S12, YES) and the current position is less than the upper limit value (S13, YES), the output of the port is turned on (S16). When the current position is smaller than the lower limit value (S12, NO), the output of the port is turned off (S1).
7). Although the current position is not smaller than the lower limit value (S1
2, YES) and if the current position is greater than or equal to the upper limit value (S13, NO), the output of the port is turned off (S17). For example, when the upper limit value is 400,000 and the lower limit value is 200,000, the output of the output port is as shown in FIG. Here, the shaded area indicates that the output is on.
【0018】以上詳細に説明したように、本実施例のモ
ータの制御手段によれば、角度検出器の角度出力を所定
のサンプリング時間毎にデジタル変換するR/Dコンバ
ータ16と、R/Dコンバータの出力に基づいて回転軸
の絶対角度位置を、8ビットのデジタルデータとして演
算する角度演算プログラム27と、角度演算プログラム
27が演算した8ビットのデジタルデータを外部装置に
伝送するための位置出力回路24とを有しているので、
自動組立機等複数のシーケンサに対してシーケンサが読
取可能な同期信号を伝送できるため、安価なモータの制
御装置を提供することができる。また、本実施例のモー
タの制御手段は、角度演算プログラム27が絶対位置出
力と範囲出力という2種類の出力形式を有すると共に、
角度演算プログラム27の2種類の出力形式のうちの1
つを選択するための通信ポート23を有しているので、
使用するシーケンサの仕様に合わせて出力形式を選択で
きるため、自動組立機全体システムにとって最適な同期
信号出力形式を選択することができる。As described in detail above, according to the motor control means of this embodiment, the R / D converter 16 for digitally converting the angle output of the angle detector every predetermined sampling time, and the R / D converter. Angle calculation program 27 for calculating the absolute angular position of the rotation axis as 8-bit digital data based on the output of the above, and a position output circuit for transmitting the 8-bit digital data calculated by the angle calculation program 27 to an external device. Since it has 24 and
Since a sequencer-readable synchronization signal can be transmitted to a plurality of sequencers such as an automatic assembly machine, it is possible to provide an inexpensive motor control device. Further, in the motor control means of this embodiment, the angle calculation program 27 has two types of output formats: absolute position output and range output, and
One of the two output formats of the angle calculation program 27
Since it has a communication port 23 for selecting one,
Since the output format can be selected according to the specifications of the sequencer used, it is possible to select the optimum synchronization signal output format for the entire automatic assembly machine system.
【0019】以上本発明のモータの制御装置について実
施例に基づいて詳細に説明したが、本発明は上記実施例
に限定されることなく、色々な変形が可能である。例え
ば、本実施例では、ダイレクトドライブモータ14の回
転軸の角度検出器として、2個のレゾルバを使用してい
るが、レゾルバの代わりに光学式エンコーダを使用して
もよい。また、精度があまり問題とされない場合は、1
個のレゾルバを使用することも可能である。本実施例の
範囲出力は、1つのオン状態出力のみ説明したが、2つ
以上のタイミングを得るために2つ以上のオン状態を出
力することも可能である。Although the motor control device of the present invention has been described in detail based on the embodiments, the present invention is not limited to the above embodiments and various modifications can be made. For example, in this embodiment, two resolvers are used as the angle detector of the rotary shaft of the direct drive motor 14, but an optical encoder may be used instead of the resolvers. Also, if accuracy is not a concern, then 1
It is also possible to use individual resolvers. Although only one ON-state output is described as the range output in the present embodiment, it is also possible to output two or more ON-states in order to obtain two or more timings.
【0020】[0020]
【発明の効果】以上説明したことから明かなように、本
発明の電動機の制御装置によれば、角度検出器の角度出
力を所定のサンプリング時間毎にデジタル変換するR/
Dコンバータと、R/Dコンバータの出力に基づいて回
転軸の絶対角度位置を、所定ビットのデジタルデータと
して演算する角度演算手段と、角度演算手段が演算した
所定ビットのデジタルデータを外部装置に伝送するため
の出力回路とを有しているので、自動組立機等複数のシ
ーケンサに対してシーケンサが読取可能な同期信号を伝
送できるため、別に余分の角度検出器を必要とせず、安
価かつ省スペースの電動機の制御装置を提供することが
できる。また、本発明の電動機の制御手段は、角度演算
手段が絶対位置出力と範囲出力という2以上の出力形式
を有すると共に、角度演算手段の2以上の出力形式のう
ちの1つを選択するための選択手段を有しているので、
使用するシーケンサの仕様に合わせて出力形式を選択で
きるため、自動組立機全体システムにとって最適な同期
信号出力形式を選択することができる。As is apparent from the above description, according to the motor control device of the present invention, the R / R that digitally converts the angle output of the angle detector at every predetermined sampling time is used.
An angle calculation means for calculating the absolute angular position of the rotation axis as digital data of predetermined bits based on the outputs of the D converter and the R / D converter, and the digital data of predetermined bits calculated by the angle calculation means are transmitted to an external device. Since it has an output circuit for controlling the sequencer, a sequencer-readable synchronization signal can be transmitted to a plurality of sequencers such as an automatic assembly machine, so an additional angle detector is not required, and it is inexpensive and space-saving. It is possible to provide a control device for the electric motor. Further, in the motor control means of the present invention, the angle calculation means has two or more output formats of the absolute position output and the range output, and at least one of the two or more output formats of the angle calculation means is selected. Since it has a selection means,
Since the output format can be selected according to the specifications of the sequencer used, it is possible to select the optimum synchronization signal output format for the entire automatic assembly machine system.
【図1】本発明の一実施例であるモータの制御装置の構
成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a motor control device that is an embodiment of the present invention.
【図2】モータの制御装置の作用を示す第1フローチャ
ートである。FIG. 2 is a first flowchart showing the operation of the motor control device.
【図3】モータの制御装置の作用を示す第2フローチャ
ートである。FIG. 3 is a second flowchart showing the operation of the motor control device.
【図4】モータの制御装置の作用を示す第3フローチャ
ートである。FIG. 4 is a third flowchart showing the operation of the motor control device.
【図5】範囲出力の出力例を示すデータ図である。FIG. 5 is a data diagram showing an output example of range output.
【図6】絶対位置出力の出力例を示すデータ図である。FIG. 6 is a data diagram showing an output example of absolute position output.
【図7】出力形式の選択等のパラメータを示すデータ図
である。FIG. 7 is a data diagram showing parameters such as output format selection.
11 1回転検出レゾルバ 12 多極検出レゾルバ 13 モータの制御装置 14 ダイレクトドライブモータ 16 R/Dコンバータ 20 CPU 21 ROM 22 RAM 23 通信ポート 24 位置出力回路 27 角度演算プログラム 11 1-Revolution Detection Resolver 12 Multi-Pole Detection Resolver 13 Motor Controller 14 Direct Drive Motor 16 R / D Converter 20 CPU 21 ROM 22 RAM 23 Communication Port 24 Position Output Circuit 27 Angle Calculation Program
【手続補正書】[Procedure amendment]
【提出日】平成5年10月15日[Submission date] October 15, 1993
【手続補正1】[Procedure Amendment 1]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0003[Name of item to be corrected] 0003
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【0003】その問題を解決する手段として、特開昭6
1−249733号公報において、サーボモータの速度
制御用に取り付けられている絶対値パルスエンコーダの
出力により、射出成形機を制御する方法が説明されてい
る。この発明においては、パルスエンコーダの出力パル
スをカウンターおよびCPUにより読み取って射出成形
機を制御している。[0003] as a means to solve the problem, JP-A-6
In 1 -249733, JP-the output of the absolute value pulse encoder attached to a speed control of a servo motor, a method of controlling the injection molding machine is described. In the present invention, the output pulse of the pulse encoder is read by the counter and the CPU to control the injection molding machine.
【手続補正2】[Procedure Amendment 2]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0012[Correction target item name] 0012
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【0012】始めに、CPU20を介してRAM22に
記憶している受信データを読み出す(S21)。次に、
図7に示すように、受信データのパラメータ番号63の
内容が0である場合、絶対位置出力が選択されたと判断
して、次のフローチャートに進む(S22,YES)。
パラメータ番号の内容が0でない場合、範囲出力が選択
されたと判断して(S22,NO)、パラメータ番号を
1増加する(S23)。従って、使用者は、パラメータ
番号63の内容を変更することにより、位置出力回路2
4の出力形式として、絶対位置出力または範囲出力のい
ずれかを選択することができる。これにより、各シーケ
ンサに応じて任意の出力形式を選択できるため、使い勝
手が良い。First, the received data stored in the RAM 22 is read out via the CPU 20 (S21). next,
As shown in FIG. 7, when the content of the parameter number 63 of the received data is 0, it is determined that the absolute position output has been selected, and the process proceeds to the next flowchart (S22, YES).
If the content of the parameter number is not 0, it is determined that range output has been selected (S22, NO), and the parameter number is incremented by 1 (S23). Therefore, the user can change the contents of the parameter number 63 to change the position output circuit 2
As the output format of No. 4, either absolute position output or range output can be selected. As a result, any output format can be selected according to each sequencer, which is convenient.
【手続補正3】[Procedure 3]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0013[Correction target item name] 0013
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【0013】次に、パラメータ番号64により、位置出
力回路24のポート0で出力する範囲出力の上限値を入
力する。最後にキャリッジリターンCRを押すことによ
り(S24)、受信データはポート0の上限値としてR
AM22に記憶される(S25)。次に、パラメータ番
号65により、位置出力回路24のポート0で出力する
範囲出力の下限値を入力する。最後にキャリッジリター
ンCRを押すことにより(S26)、受信データはポー
ト0の下限値としてRAM22に記憶される(S2
7)。次に、データ入力が完了したか否かが確認され、
データ入力が完了している場合は、プログラムが終了す
る(S28,YES)。データ入力が終了していない場
合は、S23へ進み次のパラメータ番号65により、ポ
ート1の範囲出力の上限値と下限値とを設定する。本実
施例の位置出力回路24は、8個のポートを有している
ので、8個の範囲出力を出力することが可能である。す
なわち、各シーケンサに8個の異なった範囲出力を伝送
することが可能であり、自動組立機等の同期制御が容易
となる。Next, with the parameter number 64, the upper limit value of the range output output at the port 0 of the position output circuit 24 is input. Finally, by pressing the carriage return CR (S24), the received data becomes R as the upper limit value of port 0.
It is stored in the AM 22 (S25). Next, with the parameter number 65, the lower limit value of the range output output at the port 0 of the position output circuit 24 is input. Finally, by pressing the carriage return CR (S26), the received data is stored in the RAM22 as the lower limit value of the port 0 (S2
7). Next, it is confirmed whether the data input is completed,
If the data input is completed, the program ends (S28, YES). If the data input is not completed, the process proceeds to S23, and the upper limit value and the lower limit value of the range output of the port 1 are set by the next parameter number 65. Since the position output circuit 24 of this embodiment has eight ports, it can output eight range outputs. That is, it is possible to transmit eight different range outputs to each sequencer, which facilitates synchronous control of an automatic assembly machine or the like.
【手続補正4】[Procedure amendment 4]
【補正対象書類名】図面[Document name to be corrected] Drawing
【補正対象項目名】図5[Name of item to be corrected] Figure 5
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【図5】 [Figure 5]
Claims (2)
回転軸の回転角度を検出する角度検出器の出力に応じ
て、該回転軸の回転速度および位置を制御する電動機の
制御装置において、 前記角度検出器の角度出力をデジタル変換するR/Dコ
ンバータと、 前記R/Dコンバータの出力に基づいて前記回転軸の絶
対角度位置を、所定サンプリング時間毎に所定ビットの
デジタルデータとして演算する角度演算手段と、 前記角度演算手段が演算した所定ビットのデジタルデー
タを外部装置に伝送するための出力回路とを有すること
を特徴とする電動機の制御装置。1. A control device for an electric motor, which controls the rotational speed and the position of the rotational shaft according to the output of an angle detector which is directly attached to the rotational shaft of the electric motor and detects the rotational angle of the rotational shaft. An R / D converter that digitally converts the angle output of the angle detector, and an angle calculation that calculates the absolute angular position of the rotary shaft as digital data of predetermined bits at predetermined sampling times based on the output of the R / D converter. A control device for an electric motor, comprising: a means and an output circuit for transmitting a predetermined bit of digital data calculated by the angle calculation means to an external device.
おいて、 前記角度演算手段が2以上の出力形式のデジタルデータ
を演算できると共に、 前記角度演算手段の前記2以上の出力形式のうちの1つ
を選択する出力形式選択手段を有することを特徴とする
電動機の制御装置。2. The motor control device according to claim 1, wherein the angle calculation means can calculate digital data of two or more output formats, and one of the two or more output formats of the angle calculation means. A control device for an electric motor having an output format selection means for selecting one of the two.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5250094A JP2664331B2 (en) | 1993-09-09 | 1993-09-09 | Motor control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5250094A JP2664331B2 (en) | 1993-09-09 | 1993-09-09 | Motor control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0779589A true JPH0779589A (en) | 1995-03-20 |
| JP2664331B2 JP2664331B2 (en) | 1997-10-15 |
Family
ID=17202729
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5250094A Expired - Fee Related JP2664331B2 (en) | 1993-09-09 | 1993-09-09 | Motor control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2664331B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1315280A3 (en) * | 2001-11-22 | 2004-06-30 | Tamagawa Seiki Kabushiki Kaisha | Sensor system for controlling a motor |
| CN110715598A (en) * | 2019-10-22 | 2020-01-21 | 北京动力机械研究所 | Rotary transformer offset detection system and method of rotary transformer |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5648010U (en) * | 1979-09-21 | 1981-04-28 | ||
| JPS58204311A (en) * | 1982-05-24 | 1983-11-29 | Mitsubishi Electric Corp | Detector for absolute position |
| JPH02259908A (en) * | 1989-03-31 | 1990-10-22 | Okuma Mach Works Ltd | Numerical controller with communication port checking function |
| JPH0311987A (en) * | 1989-06-08 | 1991-01-21 | Fuji Electric Co Ltd | How to detect rotational position of electric motor |
| JPH0425908A (en) * | 1990-05-22 | 1992-01-29 | Kobe Steel Ltd | Detection of position for industrial robot |
-
1993
- 1993-09-09 JP JP5250094A patent/JP2664331B2/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5648010U (en) * | 1979-09-21 | 1981-04-28 | ||
| JPS58204311A (en) * | 1982-05-24 | 1983-11-29 | Mitsubishi Electric Corp | Detector for absolute position |
| JPH02259908A (en) * | 1989-03-31 | 1990-10-22 | Okuma Mach Works Ltd | Numerical controller with communication port checking function |
| JPH0311987A (en) * | 1989-06-08 | 1991-01-21 | Fuji Electric Co Ltd | How to detect rotational position of electric motor |
| JPH0425908A (en) * | 1990-05-22 | 1992-01-29 | Kobe Steel Ltd | Detection of position for industrial robot |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1315280A3 (en) * | 2001-11-22 | 2004-06-30 | Tamagawa Seiki Kabushiki Kaisha | Sensor system for controlling a motor |
| CN110715598A (en) * | 2019-10-22 | 2020-01-21 | 北京动力机械研究所 | Rotary transformer offset detection system and method of rotary transformer |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2664331B2 (en) | 1997-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4511884A (en) | Programmable limit switch system using a resolver-to-digital angle converter | |
| US5686804A (en) | System for measuring the angle of rotation | |
| US7005812B2 (en) | Commutation converter for a brushless servo motor | |
| US5689161A (en) | Motion controller with remote linking | |
| SU822772A3 (en) | Device for control of synchronous motion of gear-working lathe | |
| US4358723A (en) | Method and apparatus for measuring the rotation of a work table | |
| CN109546808B (en) | Steering engine and method for reducing virtual position of steering engine | |
| US6525502B1 (en) | Closed loop control of motor position and velocity | |
| CA1176698A (en) | Microprocessor controlled micro-stepping chart drive | |
| JPH0847280A (en) | Method for controlling ac servo motor | |
| US5905350A (en) | Position measuring system and measuring process | |
| JPH0779589A (en) | Electric motor controller | |
| US4744022A (en) | Programmable control apparatus including an absolute position transducer | |
| JP2000188890A (en) | Synchronism control device and method therefor | |
| JP2004264038A (en) | Encoder signal processing device and servo driver | |
| US6539860B2 (en) | Synchronous control system for rotary presses | |
| US4835676A (en) | Programmable control apparatus including an absolute position transducer | |
| JPH01320467A (en) | Measurement of revolutions for machine | |
| US5572018A (en) | Method and apparatus to detect absolute position using encoder having a counter clear signal | |
| JP4638094B2 (en) | Multi-axis control device and synchronization method therefor | |
| JP2719480B2 (en) | Multi-rotation position detection device | |
| JPH05337729A (en) | Motion controller | |
| JP2547395B2 (en) | Absolute position detection method | |
| KR100270233B1 (en) | Rotation angle measuring system | |
| JP2629784B2 (en) | Synchronous control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080620 Year of fee payment: 11 |
|
| 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) |
Free format text: PAYMENT UNTIL: 20090620 Year of fee payment: 12 |
|
| 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) |
Free format text: PAYMENT UNTIL: 20110620 Year of fee payment: 14 |
|
| LAPS | Cancellation because of no payment of annual fees |