JPH02146978A - Controller for revolution of motor - Google Patents

Controller for revolution of motor

Info

Publication number
JPH02146978A
JPH02146978A JP63299894A JP29989488A JPH02146978A JP H02146978 A JPH02146978 A JP H02146978A JP 63299894 A JP63299894 A JP 63299894A JP 29989488 A JP29989488 A JP 29989488A JP H02146978 A JPH02146978 A JP H02146978A
Authority
JP
Japan
Prior art keywords
motor
value
drive current
current value
computer
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
JP63299894A
Other languages
Japanese (ja)
Inventor
Misao Kato
加藤 操
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.)
Komatsu Ltd
Original Assignee
Komatsu 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 Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP63299894A priority Critical patent/JPH02146978A/en
Publication of JPH02146978A publication Critical patent/JPH02146978A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

PURPOSE:To compensate the drift of an analog circuit by storing a driving current value at a time when a driving command to a motor is stopped and the motor is rested and using the driving current value as the base of control. CONSTITUTION:Currents driving a motor are detected by a current sensor 7, and input to a computer 1 through a filter 72, an amplifier 73, a sample holder 74 and an A/D converter 8. The computer 1 checks a motor driving command to an inverter 3 and an output from a revolution detector 6, and reads a current value at a time when there is no motor driving command and the motor 5 is not turned and stores the current value in a storage device 4, and the stored value is used as the reference value of the control of the revolution of the motor.

Description

【発明の詳細な説明】 し産業上の利用分野] 本発明はモータの回転制御装置に係わり、特にモータ休
止時に於ける駆動電流値を制御の基準とするモータの回
転制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application] The present invention relates to a motor rotation control device, and more particularly to a motor rotation control device that uses a drive current value when the motor is at rest as a reference for control.

[従来の技術] ロボット、無人搬送車、NC制御装置等においてモータ
を精度よく制御するには駆動電流がゼロのときにおける
駆動電流検知回路の出力値と現在の駆動電流の駆動電流
検知回路検出値とを比較し、その差に対応して次の指令
励磁電流値を決めることが必要である。コンピュータ等
によってなされるディジタル制御装置において駆動電流
を検知するには、モータの駆動電流をホール素子等の電
流センサによって検出して適切な値まで増幅した後サン
プルホールドし、その出力をA/Dコンバータによって
ディジタル値に変換している。駆動電流がゼロの時の上
述の駆動電流検知回路の出力値を得るには起動前のモー
タ駆動電流がゼロの時のA/Dコンバータ出力のディジ
タルメイン憶装置に記憶し、該ディジタル値を制御処理
の基準として用いているが、最初に記憶した基準値は装
置の運転中は書き替えられることがなく固定されている
[Prior art] In order to accurately control motors in robots, automatic guided vehicles, NC control devices, etc., it is necessary to determine the output value of the drive current detection circuit when the drive current is zero and the detection value of the drive current detection circuit of the current drive current. It is necessary to compare the values and determine the next command excitation current value in accordance with the difference. To detect the drive current in a digital control device such as a computer, the motor drive current is detected by a current sensor such as a Hall element, amplified to an appropriate value, sampled and held, and the output is sent to an A/D converter. is converted into a digital value by To obtain the output value of the drive current detection circuit described above when the drive current is zero, the output value of the A/D converter is stored in the digital main storage device when the motor drive current is zero before startup, and the digital value is controlled. Although used as a standard for processing, the first stored standard value is not rewritten and is fixed during operation of the device.

[発明が解決しようとする課題] ところが、上記従来のモータ制御の為の基準値記憶方法
では、最初モータの駆動電流がゼロの時の値を記憶した
後記憶の内容の書き替えをおこなっていないが、駆動電
流を処理する為のアナログ回路やサンプルホールド回路
は、温度ドリフト等の為に制御処理を行っている時の駆
動電流ゼロのディジタル変換値は変動してきている為に
、最初に計測した値をそのまま制御の基準に用いている
ということは制御精度を低下させているという問題があ
った。
[Problems to be Solved by the Invention] However, in the conventional reference value storage method for motor control described above, the value when the motor drive current is zero is first stored, and then the stored contents are not rewritten. However, the analog circuit and sample-hold circuit for processing the drive current fluctuate during control processing due to temperature drift, etc., so the digital conversion value of the zero drive current is fluctuating. There is a problem in that using the value as it is as a reference for control reduces control accuracy.

本発明は上記従来の問題点に着目し、アナログ回路のド
リフトによってモータ駆動電流の基準計測値が変動して
きても精度のよいモータ回転制御装置を提供することを
目的としている。
The present invention has focused on the above-mentioned conventional problems, and an object of the present invention is to provide a motor rotation control device that is highly accurate even when the reference measurement value of the motor drive current fluctuates due to the drift of the analog circuit.

[課題を解決するための手段] 上述の目的を達成するために、本発明に係わるモータ回
転制御装置は、モータが運転を休止しているときのモー
タの駆動電流値を記憶し、該記憶値を回転制御の基準と
するモータの回転ル制御装置において、モータへの駆動
指令が休止指令であって、かつ、モータの回転が停止し
ているときの駆動電流値を計測し、該電流値によって前
記記憶値を書き替えることによって、アナログ回路のド
リフトによってモータ駆動電流の基準計測値が変動して
きても精度のよいモータ回転制御装置を提供するように
した。
[Means for Solving the Problems] In order to achieve the above-mentioned object, a motor rotation control device according to the present invention stores the drive current value of the motor when the motor is not operating, and stores the drive current value of the motor when the motor is not operating. In a motor rotation control device that uses rotation control as a reference, the drive current value is measured when the drive command to the motor is a stop command and the motor rotation is stopped, and the By rewriting the stored value, it is possible to provide a motor rotation control device with high accuracy even if the reference measured value of the motor drive current fluctuates due to the drift of the analog circuit.

し作用] 上記構成によれば、モータへの駆動指令が休止指令であ
って、かつ、モータが停止しているときの駆動電流値を
計測し、該電流値によって前記記憶値を書き替えるよう
にしたので、アナログ回路のドリフトによってモータ駆
動電流の基準計測値が変動してきても制御に用いるモー
タ回転の停止時の基準値が変動しないので精度のよいモ
ータ回転制御装置を提供することが出来る。
According to the above configuration, the drive current value is measured when the drive command to the motor is a stop command and the motor is stopped, and the stored value is rewritten based on the current value. Therefore, even if the reference measurement value of the motor drive current fluctuates due to the drift of the analog circuit, the reference value used for control when stopping the motor rotation does not fluctuate, making it possible to provide a highly accurate motor rotation control device.

[実施例1 以下本発明に係わるモータの回転制御装置の実施例を図
面を参照して詳細に説明する。第1図にはモータの回転
制御装置のモータ電流検出回路の構成を、第2図には検
出電流補正方法のフローチャートを示す、第1図におい
て5は制御すべきモータ、6はモータの回転速度を検出
するエンコーダのような回転検出器であって検出値を制
御装置であるコンピュータlに入力する。7はモータの
駆動電流検出装置であって、71は電流センサ、72は
フィルタ、73は増幅器、74は増幅された信号をラッ
チするサンプルホルダであって、その出力はA/Dコン
バータ8を経てコンピュータ1に入力される。コンピュ
ータ1からのモータ駆動信号はD/Aコンバータ2、イ
ンバータ3を経てモータ駆動電流となり、モータ5を駆
動する。4は記憶装置であって、コンピュータ1が動作
をする為に必要な情報を記憶せておく。
[Embodiment 1] Hereinafter, an embodiment of a motor rotation control device according to the present invention will be described in detail with reference to the drawings. Fig. 1 shows the configuration of the motor current detection circuit of the motor rotation control device, and Fig. 2 shows a flowchart of the detected current correction method. In Fig. 1, 5 is the motor to be controlled, and 6 is the rotation speed of the motor. It is a rotation detector such as an encoder that detects the rotation angle, and inputs the detected value to a computer l which is a control device. 7 is a motor drive current detection device, 71 is a current sensor, 72 is a filter, 73 is an amplifier, 74 is a sample holder that latches the amplified signal, and its output is passed through the A/D converter 8. It is input to the computer 1. A motor drive signal from the computer 1 passes through a D/A converter 2 and an inverter 3, becomes a motor drive current, and drives a motor 5. A storage device 4 stores information necessary for the computer 1 to operate.

次に本実施例の動作について第1図、第2図によって説
明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 1 and 2.

モータを駆動する電流は電流センサ7によって検出され
た後、フィルタ72によって不要なノイズ分が除去され
た後適切な値まで増幅器73によって増幅され、コンピ
ュータlからのタイミング指令に基づいてサンプリング
されたあと絶対レベルが一時的にラッチされる。ラッチ
された電流検出値は、コンピュータの入力に適切なディ
ジタル信号にA/Dコンバータ8によって変換された後
コンピュータlに入力される。
The current that drives the motor is detected by the current sensor 7, and after unnecessary noise is removed by the filter 72, it is amplified to an appropriate value by the amplifier 73, and then sampled based on timing instructions from the computer l. Absolute level is temporarily latched. The latched current detection value is input to the computer 1 after being converted by the A/D converter 8 into a digital signal suitable for input to the computer.

モータの回転速度はエンコーダのような回転検出器6に
よって検出され、駆動電流値と同じくコンピュータ1に
入力される。
The rotation speed of the motor is detected by a rotation detector 6 such as an encoder, and is input to the computer 1 in the same manner as the drive current value.

本発明に基づくコンピュータ内において行われる処理手
段について第2図のフローチャートによって説明する。
The processing means carried out in the computer according to the present invention will be explained with reference to the flowchart shown in FIG.

コンピュータのメインプログラムによって本フローがス
タートすると先ずインバータ3へのモータ駆動信号司令
値をチエツクし、駆動司令が出ていればフローはスター
トに戻るが駆動指令がなければ次のステップに進んでモ
ータ回転速度の速度信号の内容をチエツクする。速度信
号がある、即ちモータが回転していればフローをスター
トに戻し、速度信号がゼロ、すなわちモータが完全に停
止していることを検知すると次のステップに進んでA/
D変換した電流センサ7からの駆動電流値をコンピュー
タ1に読み込む、コンピュータ1は記憶装置4に記憶さ
れているモータ休止電流値の基準を表すモータ駆動駆動
電流検出装置出力値を書き替えた後本フローのスタート
に戻る。コンピュータ1は装置全体を制御するメインプ
ログラムによって本フローを管理し、本フローがスター
トに戻るとその他の制御プログラムを実行する。
When this flow is started by the main program of the computer, it first checks the motor drive signal command value to the inverter 3, and if a drive command is issued, the flow returns to the start, but if there is no drive command, it proceeds to the next step and starts rotating the motor. Check the content of the speed signal. If there is a speed signal, that is, the motor is rotating, the flow is returned to the start, and if the speed signal is zero, that is, the motor is completely stopped, the flow goes to the next step and A/
The D-converted drive current value from the current sensor 7 is read into the computer 1. The computer 1 rewrites the output value of the motor drive drive current detection device, which represents the standard of the motor rest current value stored in the storage device 4, and then reads the current value. Return to the start of the flow. The computer 1 manages this flow using a main program that controls the entire device, and executes other control programs when the flow returns to the start.

以上説明したように、本発明によれば、計測されたモー
タ駆動電流値の記憶値は常に最新の値に修正されるよう
になっているので、精度の良いモータ制御が可能である
As described above, according to the present invention, since the stored value of the measured motor drive current value is always corrected to the latest value, highly accurate motor control is possible.

第2図のフローチャートの説明ではコンピュータのメイ
ンプログラムによる指令によってフローがスタートする
ように説明したが、例えばモータ回転が零になったこと
を検知してフローをスタートし条件が満足されていれば
記憶装置内の基準電流値を書き替えても良い、また制御
装置はコンピュータではなく適切な制御回路によって行
うこともできる。
In the explanation of the flowchart in Figure 2, it was explained that the flow is started by a command from the main program of the computer, but for example, if the flow is started when it detects that the motor rotation has become zero, and the conditions are satisfied, it is stored. The reference current value within the device may be rewritten, and the control device may be controlled by an appropriate control circuit instead of a computer.

[発明の効果〕 本発明は以上説明したように、上述の構成によれば、モ
ータへの駆動指令が休止指令であって、かつ、モータが
停止しているときの即動電流値を計測し、該電流値によ
って前記記憶値を書き替えるようにしたので、アナログ
回路のドリフトによってモータ駆動電流の基準計測値が
変動してきても制御に用いるモータ運転休止時の基準値
が変動しないので精度のよいモータ回転制御装置を提供
することが出来る。
[Effects of the Invention] As explained above, the present invention has the above-mentioned configuration, and measures the immediate current value when the drive command to the motor is a stop command and the motor is stopped. Since the stored value is rewritten according to the current value, even if the reference measured value of the motor drive current fluctuates due to the drift of the analog circuit, the reference value used for control when motor operation is stopped does not fluctuate, resulting in high accuracy. A motor rotation control device can be provided.

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

第1図は実施例にかかるモータの回転制御装置の回路構
成図。 第2図は実施例にかかるモータの回転制御装置のフロー
チャート図。 ■・・・・・・コンピュータ 2・・・−・・D/Aコンバータ 3・・・・・・インバータ 4・・・・・・記憶装置 5・・・・・・モータ 6・・・・−・回転検出器 7・・・・・・駆動電流検出装置 71・・・電流センサ 72・・・フィルタ 73・・・増幅器 74・・・サンプルホルダ
FIG. 1 is a circuit configuration diagram of a motor rotation control device according to an embodiment. FIG. 2 is a flowchart of the motor rotation control device according to the embodiment. ■・・・Computer 2...D/A converter 3...Inverter 4...Storage device 5...Motor 6...- - Rotation detector 7... Drive current detection device 71... Current sensor 72... Filter 73... Amplifier 74... Sample holder

Claims (1)

【特許請求の範囲】[Claims] モータが運転を休止しているときのモータの駆動電流値
を記憶し、該記憶値を回転制御の基準とするモータの回
転制御装置において、モータへの駆動指令が運転休止指
令であって、且つ、モータの回転が停止しているときの
駆動電流値を計測し、該電流値によって前記記憶値を書
き替えることを特徴とするモータの回転制御装置。
In a motor rotation control device that stores a motor drive current value when the motor is not operating, and uses the stored value as a reference for rotation control, the drive command to the motor is an operation stop command, and A motor rotation control device, characterized in that a drive current value is measured when the rotation of the motor is stopped, and the stored value is rewritten based on the current value.
JP63299894A 1988-11-28 1988-11-28 Controller for revolution of motor Pending JPH02146978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63299894A JPH02146978A (en) 1988-11-28 1988-11-28 Controller for revolution of motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63299894A JPH02146978A (en) 1988-11-28 1988-11-28 Controller for revolution of motor

Publications (1)

Publication Number Publication Date
JPH02146978A true JPH02146978A (en) 1990-06-06

Family

ID=17878219

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63299894A Pending JPH02146978A (en) 1988-11-28 1988-11-28 Controller for revolution of motor

Country Status (1)

Country Link
JP (1) JPH02146978A (en)

Similar Documents

Publication Publication Date Title
JPH0667716A (en) Device and method for numerical control
JPH02146978A (en) Controller for revolution of motor
JPH036459A (en) Method for detecting number of rotations
JPH05232054A (en) Method and apparatus for monitoring aged state of oxygen sensor
KR940010382B1 (en) Air-fuel ratio sensor for internal combustion engine
JPS5810210A (en) Position controller
JPH0248386B2 (en) KOSAKUKIKAINIOKERUOKURISEIGYOHOHO
JPS58186538A (en) Screw tightening robot
JP3025369U (en) Lathe with unbalance correction function
KR920019493A (en) Position control device of robot system and its control method
KR840007611A (en) At least partial automation method of sewing work and partly automated sewing machine for its implementation
KR0170687B1 (en) Offset compensation method of digital servo control system
JPH0491880A (en) Detector for completion of piercing for laser beam machine
JPH05113427A (en) Method for controlling application on specimen
JPH0620408A (en) Magnetic disk device
JPS61286760A (en) F/v converter circuit
JP3250705B2 (en) Positioning device
JPH0630576A (en) Servo controller and method for controlling servo
JPS6331876Y2 (en)
JPS5926423B2 (en) Copying control device
JPH02294803A (en) Device with thermal displacement correcting function
JPS6398535A (en) Input processing circuit of pressure sensor in cylinder
KR900008538B1 (en) The system setting up position of nc spindle
JPS60178521A (en) Digital control method of load current
JPS6375807A (en) Deviation correcting device for servo mechanism