JP2000175497A - Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein - Google Patents

Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein

Info

Publication number
JP2000175497A
JP2000175497A JP34895798A JP34895798A JP2000175497A JP 2000175497 A JP2000175497 A JP 2000175497A JP 34895798 A JP34895798 A JP 34895798A JP 34895798 A JP34895798 A JP 34895798A JP 2000175497 A JP2000175497 A JP 2000175497A
Authority
JP
Japan
Prior art keywords
pulse
pulse motor
memory
circuit
count value
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
JP34895798A
Other languages
Japanese (ja)
Inventor
Hirokazu Sato
宏和 佐藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP34895798A priority Critical patent/JP2000175497A/en
Publication of JP2000175497A publication Critical patent/JP2000175497A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To positively enable a pulse motor controller used for production facilities, robots, etc., to detect the stepping out of a pulse motor without requiring expensive step-out detectors. SOLUTION: A pulse motor controller is constituted in a way such that the controller is provided with a detector, having such a simple constitution in that the detector can be actuated by the fixed action of a load, inputs the output signal of the detector to first and second memory circuits 12 and 13 via an input circuit 14, and stores the value counted, based on the variation of input signals from a pulse-counting circuit 10 which counts pulse trains outputted to a pulse motor drive device 2 and the detector in the memory circuits 12 and 13. The controller also detects the stepping-out state of a pulse motor, by comparing the current stored value with the preceding stored value.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、生産設備やロボッ
ト等において位置制御や速度制御に使用されるパルスモ
ータの脱調状態を検出するパルスモータ制御装置、パル
スモータ制御方法、及びパルスモータの脱調状態を検出
するパルスモータ制御プログラムを記録した記録媒体に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pulse motor control apparatus, a pulse motor control method, and a pulse motor control method for detecting a step-out state of a pulse motor used for position control and speed control in a production facility or a robot. The present invention relates to a recording medium on which a pulse motor control program for detecting an adjustment state is recorded.

【0002】[0002]

【従来の技術】位置制御や速度制御に用いられるパルス
モータは、入力パルスに応じて回転角度や回転数が決定
される構成であるため、オープンループで制御するのが
一般的である。しかしながら、パルスモータを用いた機
器において、異常なワークが制御対象として送られてき
たり、異物が可動部に付着したり、又は機構部に破損が
生じたり、等の通常では予測できない事態が発生したと
き、負荷変動が生じ、パルスモータが入力されたパルス
に対応不能な状態となる場合がある。このように、予測
できない負荷変動などにより、パルスモータが入力され
たパルスに対応できなくなり、制御不能となる現象を脱
調と呼ぶ。しかし、オープンループ制御されているパル
スモータにおいては、パルスモータからのフィードバッ
ク情報がないため、負荷変動等によりパルスモータが脱
調しても、その脱調を検出することができなかった。そ
のため、従来のパルスモータ制御装置においては、パル
スモータの実際の回転位置を検出して、当該パルスモー
タの脱調状態を検出していた。
2. Description of the Related Art A pulse motor used for position control and speed control has a structure in which a rotation angle and a rotation speed are determined in accordance with an input pulse, and therefore, it is generally controlled in an open loop. However, in a device using a pulse motor, an unusual work such as an abnormal work being sent as a control target, a foreign object adhering to a movable portion, or a breakage of a mechanical portion occurred. At this time, a load fluctuation may occur, and the pulse motor may not be able to respond to the input pulse. In this manner, a phenomenon in which the pulse motor cannot respond to the input pulse due to unpredictable load fluctuation or the like and becomes uncontrollable is called step-out. However, in a pulse motor under open loop control, since there is no feedback information from the pulse motor, even if the pulse motor loses synchronism due to a load change or the like, the loss of synchronism could not be detected. Therefore, in the conventional pulse motor control device, the actual rotational position of the pulse motor is detected to detect the step-out state of the pulse motor.

【0003】以下、脱調状態検出機能を有する従来のパ
ルスモータ制御装置の構成について図5及び図6を用い
て説明する。図5は、従来のパルスモータ制御装置の全
体構成を示すブロック図である。図6は、従来のパルス
モータ制御装置におけるパルス発生装置の構成を示して
おり、このパルス発生装置とパルスモータ駆動装置と回
転動作変換器との接続状態の一例を表している。図5及
び図6において、パルス発生装置101のマイクロプロ
セッサ107は予め指定された位置データ、速度デー
タ、加速度データ、及び負荷104の位置を検出する位
置検出器105等からの信号に基づいて、パルスモータ
103を駆動するための動作指令を演算する。パルス発
生回路108は、パルスモータ103の動作指令のパル
ス列を生成し、そのパルス列を差動出力回路109へ出
力する。差動出力回路109は、一定電圧を往復するパ
ルス信号を異なる電位を持つ2つの信号に変換し、パル
スモータ駆動装置102へ出力する。パルスモータ駆動
装置102はパルス発生装置101が出力する動作指令
のパルス列を受け取り、制御対象であるパルスモータ1
03の各相に流す電流を演算し、パルスモータ103を
駆動制御する。
The configuration of a conventional pulse motor control device having a step-out state detecting function will be described below with reference to FIGS. FIG. 5 is a block diagram showing an overall configuration of a conventional pulse motor control device. FIG. 6 shows a configuration of a pulse generation device in a conventional pulse motor control device, and shows an example of a connection state between the pulse generation device, the pulse motor drive device, and the rotary operation converter. 5 and 6, the microprocessor 107 of the pulse generator 101 generates a pulse based on position data, velocity data, acceleration data, and a signal from the position detector 105 that detects the position of the load 104. An operation command for driving the motor 103 is calculated. The pulse generation circuit 108 generates a pulse train of an operation command of the pulse motor 103 and outputs the pulse train to the differential output circuit 109. The differential output circuit 109 converts a pulse signal reciprocating at a constant voltage into two signals having different potentials, and outputs the two signals to the pulse motor driving device 102. The pulse motor driving device 102 receives a pulse train of an operation command output from the pulse generator 101, and controls the pulse motor 1 to be controlled.
The pulse motor 103 is driven and controlled by calculating a current flowing through each phase of the pulse motor 103.

【0004】図5に示した負荷104としては、パルス
モータ103により回転制御される回転板や、移動制御
されるテーブルなどである。位置検出器105は、負荷
104の位置を検出するためのセンサであり、負荷10
4が定められた移動範囲を越えないように制限するため
に設けられている。パルスモータ103の回転軸に設け
られている回転動作変換器115は、パルスモータ10
3の回転軸の回転位置を検出し、パルス発生装置101
にフィードバックしている。回転動作変換器115とし
ては、エンコーダやレゾルバなどが用いられている。回
転動作変換器115としてのエンコーダは、円板等につ
けられたスリットを光や電磁気手段を用いて検出し、9
0度位相のずれたA相とB相の2つのパルス列を出力す
る検出器である。また、回転動作変換器115としての
レゾルバは、固定子に互いに直交する2相巻線を有し、
回転子に単相巻線あるいは直交する2相巻線を有する制
御変圧器であり、固定子巻線に2相交流電圧を印可する
ことにより回転子巻線に回転子角度のsin成分、co
s成分に比例する電圧が生じるため、その関係から位置
を割り出している。図5における回転動作変換器115
としては、エンコーダを用いており、このエンコーダは
90度位相のずれたA相とB相の2つのパルス列を出力
し、パルスモ−タ103の回転位置検出を回転動作変換
器115から出力されたA相とB相のパルスをカウント
して求めている。
The load 104 shown in FIG. 5 is a rotary plate whose rotation is controlled by a pulse motor 103, a table whose movement is controlled, or the like. The position detector 105 is a sensor for detecting the position of the load 104,
4 is provided so as to limit the movement of the moving member 4 from exceeding a predetermined moving range. The rotary motion converter 115 provided on the rotation axis of the pulse motor 103
3 detects the rotational position of the rotating shaft, and generates a pulse
Feedback. As the rotation operation converter 115, an encoder, a resolver, or the like is used. The encoder serving as the rotary motion converter 115 detects a slit formed in a disk or the like using light or electromagnetic means, and
This is a detector that outputs two pulse trains of the A phase and the B phase which are shifted in phase by 0 degrees. The resolver as the rotary motion converter 115 has two-phase windings orthogonal to each other on the stator,
A control transformer having a single-phase winding or an orthogonal two-phase winding on the rotor, and applying a two-phase AC voltage to the stator winding to apply a sin component of the rotor angle to the rotor winding, co
Since a voltage proportional to the s component is generated, the position is determined from the relationship. Rotational motion converter 115 in FIG.
The encoder outputs two pulse trains of phase A and phase B, which are 90 degrees out of phase, and detects the rotational position of the pulse motor 103 from the rotary operation converter 115. The phase and B-phase pulses are counted and obtained.

【0005】図6において、差動入力回路117は電気
信号の変換回路であり、90度位相のずれたA相(A、
a)とB相(B、b)の2組の信号をそれぞれ一定電圧
間を往復するパルス信号に変換する。位置カウント回路
116は、差動入力回路117の出力したパルス信号を
カウントし、そのカウント値(位置情報)を必要なビッ
トで表す。パルス発生回路108はマイクロプロセッサ
107により設定された値のパルス信号(移動量情報)
を一定周期のパルス列に変換する。差動出力回路109
は、前記の差動入力回路117とは逆に、異なる電位を
有する2つの信号を一定電圧間を往復するパルス信号に
変換する。
In FIG. 6, a differential input circuit 117 is a conversion circuit for an electric signal, and the A-phase (A, A,
The two sets of signals of a) and B phase (B, b) are converted into pulse signals that reciprocate between fixed voltages. The position count circuit 116 counts the pulse signals output from the differential input circuit 117, and represents the count value (position information) with necessary bits. The pulse generation circuit 108 generates a pulse signal (movement amount information) having a value set by the microprocessor 107.
Is converted into a pulse train having a constant period. Differential output circuit 109
Converts two signals having different potentials into a pulse signal that reciprocates between fixed voltages, contrary to the differential input circuit 117 described above.

【0006】図6に示すように、差動出力回路109か
らパルスモータ駆動回路102へ2組の信号CW,c
w,CCW,ccwが出力される。この信号において、
CWはパルスモータの時計方向への回転指令を示す信号
のパルス信号を表し、cwはCW信号がHレベルのとき
Lレベルとなり、LレベルのときHレベルとなる差動信
号のペアである。CCWは反時計方向への回転指令を示
すパルス信号を表し、ccwはCCW信号がHレベルの
ときLレベルとなり、LレベルのときHレベルとなる差
動信号のペアである。パルスカウント回路110は、パ
ルス発生回路108からのパルス信号が入力されて、1
6ビットから32ビット程度の位置指令情報を生成す
る。比較回路111は、パルスカウント回路110から
の位置指令情報と位置カウント回路116からの位置情
報が入力され、位置指令情報と位置情報とを比較する。
As shown in FIG. 6, two sets of signals CW and c are sent from a differential output circuit 109 to a pulse motor drive circuit 102.
w, CCW and ccw are output. In this signal,
CW represents a pulse signal of a signal indicating a clockwise rotation command of the pulse motor, and cw is a pair of differential signals that become L level when the CW signal is H level and become H level when the CW signal is L level. CCW represents a pulse signal indicating a counterclockwise rotation command, and ccw is a pair of differential signals that go low when the CCW signal is high and high when the CCW signal is low. The pulse count circuit 110 receives the pulse signal from the pulse generation circuit 108 and
Position command information of about 6 bits to about 32 bits is generated. The comparison circuit 111 receives the position command information from the pulse count circuit 110 and the position information from the position count circuit 116, and compares the position command information with the position information.

【0007】次に、従来のパルスモータ制御装置におけ
る動作について説明する。図6において、回転動作変換
器115から出力されたA相とB相の2種類の信号は、
それぞれ差動入力回路117においてパルス信号にそれ
ぞれ変換されて、位置カウント回路116に入力され
る。位置カウント回路116では入力したA相とB相の
信号を16ビットから32ビット程度の位置情報に変換
する。
Next, the operation of the conventional pulse motor control device will be described. In FIG. 6, two types of signals of the A-phase and the B-phase output from the rotary motion converter 115 are:
Each of the signals is converted into a pulse signal by the differential input circuit 117 and input to the position count circuit 116. The position count circuit 116 converts the input A-phase and B-phase signals from 16 bits to about 32 bits of position information.

【0008】一方、パルス発生回路108はマイクロプ
ロセッサ107により設定された値のパルス信号を一定
周期で生成する。パルス発生回路108からのパルス信
号は、差動出力回路109に入力され、パルスモータ駆
動装置102へ出力する駆動指令のパルス列を出力す
る。また、パルス発生回路108が生成するパルス信号
は同時にパルスカウント回路110に入力され、パルス
カウント回路110により16ビットから32ビット程
度の位置指令情報に変換される。前記位置指令情報と前
記位置情報とは比較回路111にそれぞれ入力され、両
者の値の比較結果がマイクロプロセッサ107に入力さ
れる。そして、マイクロプロセッサ107は位置指令情
報と位置情報が一致しない場合にパルスモータが脱調状
態であると判断する。このように、従来のパルスモータ
制御装置は回転動作変換器115から出力されるパルス
信号を処理するための位置カウント回路116や差動入
力回路117等のパルス処理回路が設けられていた。な
お、従来のパルスモータ制御装置においては、前記比較
回路111を設けずに、マイクロプロセッサ107の内
部において位置指令情報と位置情報との比較するための
パルス処理手段と比較手段とを設けて脱調状態を検出す
る構成の装置もあった。
On the other hand, the pulse generating circuit 108 generates a pulse signal having a value set by the microprocessor 107 at a constant period. The pulse signal from the pulse generation circuit 108 is input to the differential output circuit 109, and outputs a pulse train of a driving command to be output to the pulse motor driving device 102. The pulse signal generated by the pulse generation circuit 108 is simultaneously input to the pulse count circuit 110, and is converted by the pulse count circuit 110 from 16 bits to about 32 bits of position command information. The position command information and the position information are input to the comparison circuit 111, respectively, and the result of comparing the two values is input to the microprocessor 107. When the position command information and the position information do not match, the microprocessor 107 determines that the pulse motor is out of step. As described above, the conventional pulse motor control device is provided with the pulse processing circuit such as the position count circuit 116 and the differential input circuit 117 for processing the pulse signal output from the rotary motion converter 115. In the conventional pulse motor control device, step-out is performed by providing a pulse processing unit and a comparison unit for comparing position command information and position information inside the microprocessor 107 without providing the comparison circuit 111. Some devices were configured to detect the state.

【0009】[0009]

【発明が解決しようとする課題】上記のように、従来の
パルスモータ制御装置の構成においては、パルスモータ
の脱調状態を検出するために特別にエンコーダやレゾル
バ等の回転動作変換器を設ける必要があり、また回転動
作変換器からの信号を処理するための機能を有するパル
ス処理回路又はパルス処理手段を設けねばならず、装置
が高価で小型化できないという問題があった。さらに、
使用するパルスモータの位置分解能の種類に応じて同等
の分解能を有する回転動作変換器を取り付けなければな
らないため、パルスモータの仕様に合わせて各種の回転
動作変換器等を用意しなければならなかった。本発明
は、エンコーダやレゾルバ等の高価な回転動作変換器を
設けることなくパルスモータの脱調状態を確実に検出す
ることが可能なパルスモータ制御装置、パルスモータ制
御方法、及び制御プログラムを記録した記録媒体を提供
することを目的とする。
As described above, in the configuration of the conventional pulse motor control device, it is necessary to provide a rotary motion converter such as an encoder or a resolver in order to detect a step-out state of the pulse motor. In addition, a pulse processing circuit or a pulse processing means having a function for processing a signal from the rotary motion converter must be provided, and there has been a problem that the apparatus is expensive and cannot be miniaturized. further,
Since a rotary motion converter with the same resolution must be installed according to the type of position resolution of the pulse motor to be used, various rotary motion converters, etc. had to be prepared according to the specifications of the pulse motor. . The present invention records a pulse motor control device, a pulse motor control method, and a control program capable of reliably detecting a step-out state of a pulse motor without providing an expensive rotary motion converter such as an encoder or a resolver. It is intended to provide a recording medium.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に、本発明に係るパルスモータ制御装置は、パルスモー
タを駆動するため予め指定された位置データ、速度デー
タ、及び加速度データに基づいて動作指令のパルス列を
発生するパルス発生回路と、前記パルスモータにより駆
動される負荷の一定動作を検出する検出器と、前記パル
ス発生回路が出力するパルス列をカウントするパルスカ
ウント回路と、前記検出器が負荷の一定動作を検出した
ときに出力する信号に基づいて前記パルスカウント回路
のカウントした値を記憶する第1のメモリと、前記第1
のメモリが前記パルスカウント回路のカウント値を記憶
したとき、前記第1のメモリが記憶していた前回のカウ
ント値を記憶する第2のメモリと、前記第1のメモリと
前記第2のメモリに記憶されたそれぞれのカウント値を
比較する比較回路と、前記比較回路の出力信号に基づ
き、前記パルスモータの脱調状態を検出する処理手段と
を具備する。上記のように構成された本発明によれば、
負荷が一定動作したときのパルス列のカウント値を記憶
し、そのカウント値と前回のカウント値を比較すること
により、パルスモータの脱調状態を確実に検出すること
ができる。
In order to achieve the above object, a pulse motor control device according to the present invention operates based on position data, speed data, and acceleration data designated in advance for driving a pulse motor. A pulse generation circuit for generating a command pulse train; a detector for detecting a constant operation of a load driven by the pulse motor; a pulse count circuit for counting a pulse train output by the pulse generation circuit; A first memory for storing a value counted by the pulse count circuit based on a signal output when the constant operation of
When the memory stores the count value of the pulse count circuit, the second memory stores the previous count value stored in the first memory, the first memory and the second memory. A comparison circuit that compares the stored count values; and a processing unit that detects a step-out state of the pulse motor based on an output signal of the comparison circuit. According to the present invention configured as described above,
By storing the count value of the pulse train when the load performs a constant operation and comparing the count value with the previous count value, the step-out state of the pulse motor can be reliably detected.

【0011】本発明に係るパルスモータ制御方法は、パ
ルスモータを駆動するため予め指定された位置データ、
速度データ、及び加速度データに基づいて動作指令のパ
ルス列を発生するステップと、前記パルス列のパルスを
カウントするステップと、前記パルスモータにより駆動
される負荷の一定動作を検出するステップと、前記負荷
の一定動作を検出したときの前記パルス列のカウント値
を第1のメモリに記憶するステップと、前記第1のメモ
リが前記カウント値を記憶したとき、前記第1のメモリ
が記憶していた前回のカウント値を第2のメモリが記憶
するステップと、前記第1のメモリと前記第2のメモリ
に記憶されたそれぞれのカウント値を比較するステップ
と、比較されたカウント値の結果に基づき、前記パルス
モータの脱調状態を検出するステップとを有する。上記
のように構成された本発明によれば、負荷の一定動作を
検出したときのパルス列をカウントし、そのカウント値
と前回のカウント値を比較することにより、脱調状態を
確実に検出することができる。
According to the pulse motor control method of the present invention, a position data specified in advance for driving a pulse motor is provided.
Generating a pulse train of an operation command based on speed data and acceleration data; counting pulses of the pulse train; detecting a constant operation of a load driven by the pulse motor; Storing, in a first memory, a count value of the pulse train when an operation is detected; and, when the first memory stores the count value, a previous count value stored in the first memory. Is stored in a second memory; the step of comparing the respective count values stored in the first memory and the second memory; and the stepping motor of the pulse motor based on a result of the compared count value. Detecting a step-out state. According to the present invention configured as described above, it is possible to reliably detect a step-out state by counting a pulse train when a constant operation of a load is detected and comparing the count value with a previous count value. Can be.

【0012】本発明に係る制御プログラムを記録した記
録媒体は、パルスモータを駆動するため予め指定された
位置データ、速度データ、及び加速度データに基づいて
動作指令のパルス列を発生する手順と、前記パルス列の
パルスをカウントする手順と、前記パルスモータにより
駆動される負荷の一定動作を検出したときの前記パルス
列のカウント値を第1のメモリに記憶する手順と、前記
第1のメモリが前記カウント値を記憶したとき、前記第
1のメモリが記憶していた前回のカウント値を第2のメ
モリが記憶する手順と、前記第1のメモリと前記第2の
メモリに記憶されたそれぞれのカウント値を比較する手
順と、比較されたカウント値の結果に基づき、前記パル
スモータの脱調状態を検出する手順と、をコンピュータ
に実行させる。上記のように構成された本発明によれ
ば、制御プログラムを記録した記録媒体をコンピュータ
に供給し、そのコンピュータが記録媒体に記録された制
御プログラムを読みだし実行することにより、パルスモ
ータの脱調状態が検出される。
A recording medium on which a control program according to the present invention is recorded includes a step of generating a pulse train of an operation command based on position data, speed data and acceleration data designated in advance for driving a pulse motor; Counting a pulse, a step of storing a count value of the pulse train in a first memory when a constant operation of a load driven by the pulse motor is detected, and a step in which the first memory stores the count value in the first memory. When storing, the procedure of storing the previous count value stored in the first memory in the second memory is compared with the respective count values stored in the first memory and the second memory. And causing the computer to execute a step of detecting a step-out state of the pulse motor based on a result of the compared count value. According to the present invention configured as described above, the recording medium on which the control program is recorded is supplied to the computer, and the computer reads out and executes the control program recorded on the recording medium, whereby the step-out of the pulse motor is performed. A condition is detected.

【0013】[0013]

【発明の実施の形態】以下、本発明のパルスモータ制御
装置およびパルスモータ制御方法の好適な実施の形態を
添付の図1〜図4を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a pulse motor control device and a pulse motor control method according to the present invention will be described below with reference to FIGS.

【0014】《実施例1》図1は本発明の一実施の形態
である実施例1のパルスモータ制御装置の構成を示す図
である。図2は実施例1のパルスモータ制御装置におけ
るパルス発生装置の構成を示すブロック図である。図1
及び図2において、パルス発生装置1は、パルスモータ
3の動作指令のパルス列を発生する制御装置である。パ
ルス発生装置1における処理回路7は予め指定された位
置データ、速度データ、加速度データ、及び位置検出器
5からの信号等に基づいて、パルスモータ3を駆動する
ための動作指令を演算する。パルス発生回路8はマイク
ロプロセッサで構成される処理回路7により設定された
値のパルス信号(移動量情報)を一定周期で生成する。
差動出力回路9は、一定電圧間を往復するパルス信号を
異なる電位を有する2つの信号に変換する。
Embodiment 1 FIG. 1 is a diagram showing a configuration of a pulse motor control device according to Embodiment 1 of the present invention. FIG. 2 is a block diagram illustrating a configuration of a pulse generator in the pulse motor control device according to the first embodiment. FIG.
In FIG. 2 and FIG. 2, the pulse generator 1 is a control device that generates a pulse train of an operation command of the pulse motor 3. The processing circuit 7 in the pulse generator 1 calculates an operation command for driving the pulse motor 3 based on the position data, speed data, acceleration data, signals from the position detector 5 and the like specified in advance. The pulse generation circuit 8 generates a pulse signal (movement amount information) having a value set by the processing circuit 7 composed of a microprocessor at a constant period.
The differential output circuit 9 converts a pulse signal reciprocating between fixed voltages into two signals having different potentials.

【0015】図2に示すように、差動出力回路9からパ
ルスモータ駆動装置2へ2組合計4個の信号CW,c
w,CCW,ccwが出力される。この信号において、
CWはパルスモータの軸側から見て時計方向への回転指
令を示す信号のパルス信号を表し、cwはCW信号がH
レベルのときLレベルとなり、LレベルのときHレベル
となる差動信号のペアである。CCWは反時計方向への
回転指令を示すパルス信号を表し、ccwはCCW信号
がHレベルのときLレベルとなり、LレベルのときHレ
ベルとなる差動信号のペアである。パルスモータ駆動装
置2はパルス発生装置1が出力する動作指令のパルス列
を受け取り、制御対象であるパルスモータ3の各相に流
す電流を演算し、パルスモータ3を駆動制御する。実施
例1において、負荷4としてはパルスモータ3により回
転制御される回転板や移動制御されるテーブルなどであ
る。
As shown in FIG. 2, two sets of a total of four signals CW, c are sent from the differential output circuit 9 to the pulse motor driving device 2.
w, CCW and ccw are output. In this signal,
CW indicates a pulse signal of a signal indicating a clockwise rotation command as viewed from the axis side of the pulse motor, and cw indicates that the CW signal is H
It is a pair of differential signals that are at L level when at level and at H level when at L level. CCW represents a pulse signal indicating a counterclockwise rotation command, and ccw is a pair of differential signals that go low when the CCW signal is high and high when the CCW signal is low. The pulse motor driving device 2 receives a pulse train of an operation command output from the pulse generation device 1, calculates a current flowing in each phase of the pulse motor 3 to be controlled, and controls the driving of the pulse motor 3. In the first embodiment, the load 4 is a rotary plate whose rotation is controlled by the pulse motor 3 or a table whose movement is controlled.

【0016】複数の位置検出器5は、負荷4の位置を検
出するためのセンサであり、好ましくは光電センサや近
接センサであり、負荷4が定められた移動範囲を越えな
いように位置規制するために設けられている。脱調検出
用検出器6は、パルスモータ3の脱調状態を検出するも
のであり、好ましくは光電センサや近接センサであり、
負荷4の定められた回転運動または往復運動の範囲内に
おいて、負荷4の特定の移動位置を検出するために所定
の位置に固定されている。図2において、入力回路14
は脱調検出用検出器6であるセンサからの検出信号を第
1のメモリ回路12及び第2のメモリ回路13に出力す
る。パルスカウント回路10は、パルス発生回路8から
のパルス信号が入力されて、16ビットから32ビット
程度の位置指令情報を生成し、第1のメモリ回路12へ
出力する。第1のメモリ回路12及び第2のメモリ回路
13は同一の記憶装置における異なる領域に区分されて
形成されている。
The plurality of position detectors 5 are sensors for detecting the position of the load 4, and are preferably photoelectric sensors or proximity sensors, and regulate the position so that the load 4 does not exceed a predetermined moving range. It is provided for. The step-out detection detector 6 detects a step-out state of the pulse motor 3, and is preferably a photoelectric sensor or a proximity sensor.
The load 4 is fixed at a predetermined position in order to detect a specific moving position of the load 4 within a predetermined range of the rotational movement or the reciprocating movement. In FIG. 2, the input circuit 14
Outputs a detection signal from a sensor which is a step-out detection detector 6 to the first memory circuit 12 and the second memory circuit 13. The pulse count circuit 10 receives the pulse signal from the pulse generation circuit 8, generates position command information of about 16 to 32 bits, and outputs the position command information to the first memory circuit 12. The first memory circuit 12 and the second memory circuit 13 are formed by being divided into different areas in the same storage device.

【0017】次に、実施例1のパルスモータ制御装置の
動作について説明する。パルス発生装置1はあらかじめ
指定された位置データ、速度データ、加速度データ、お
よび負荷4に取り付けられた位置検出器5からの位置デ
ータ等に基づいて演算を行い、パルスモータ3に対する
動作指令のパルス列を発生する。パルスモータ駆動装置
2はパルス発生装置1が出力した動作指令のパルス列
(CW、cw、CCW、ccw)を受け取り、パルスモ
ータ3の各相に流す電流を演算し、電流を制御すること
により制御対象のパルスモータ3を駆動する。脱調検出
用検出器6は、負荷4が予め定められた回転運動又は往
復運動を行ったときの動作を検出するセンサーであり、
具体的には負荷4が一定の動作を行ったときの位置を検
出する位置センサーである。この脱調検出用検出器6
は、負荷4が一定の動作を行ったときに作動するよう取
り付けられており、その負荷4の一定動作を検出したと
きパルス発生装置1へ検出信号を出力する。
Next, the operation of the pulse motor control device according to the first embodiment will be described. The pulse generator 1 performs a calculation based on position data, speed data, acceleration data, position data from a position detector 5 attached to the load 4, and the like, and generates a pulse train of an operation command for the pulse motor 3. appear. The pulse motor driving device 2 receives a pulse train (CW, cw, CCW, ccw) of the operation command output from the pulse generation device 1, calculates a current flowing through each phase of the pulse motor 3, and controls the current to control the current. Is driven. The out-of-step detection detector 6 is a sensor that detects an operation when the load 4 performs a predetermined rotational motion or a reciprocating motion,
Specifically, it is a position sensor that detects a position when the load 4 performs a certain operation. This step-out detection detector 6
Is mounted so as to operate when the load 4 performs a constant operation, and outputs a detection signal to the pulse generator 1 when the constant operation of the load 4 is detected.

【0018】実施例1の脱調検出用検出器6はパルスモ
ータ3の脱調を検出するものであり、入力回路14には
脱調検出用検出器6からの信号が入力される。入力回路
14は脱調検出用検出器6からの信号を第1のメモリ回
路12及び第2のメモリ回路13に入力する。このと
き、第1のメモリ回路12はパルスカウント回路10で
変換された位置指令情報であるパルスカウント値を記憶
すると同時に、第2のメモリ回路13は第1のメモリ回
路12に記憶されていた直前のパルスカウント値を記憶
する。比較回路11は、第1のメモリ回路12と第2の
メモリ回路13に記憶されていた位置指令情報のパルス
カウント値が入力され、両者の値を比較する。実施例1
における位置指令情報のデータのフォーマットは特に特
定する必要はなく、デジタルデータであればよい。例え
ば、16ビットであれば8000h〜7FFFh(16
進符号付き表記)の範囲がカウントできる。(これは1
0進数で表すと−32、768〜+32、767の範囲
に相当する。32ビットであれば、16ビットの場合の
それぞれ65、536倍の値が範囲となる。
The out-of-step detection detector 6 of the first embodiment detects out-of-step of the pulse motor 3, and a signal from the out-of-step detection detector 6 is input to the input circuit 14. The input circuit 14 inputs a signal from the step-out detection detector 6 to the first memory circuit 12 and the second memory circuit 13. At this time, the first memory circuit 12 stores the pulse count value which is the position command information converted by the pulse count circuit 10, and the second memory circuit 13 stores the pulse count value immediately before being stored in the first memory circuit 12. Is stored. The comparison circuit 11 receives the pulse count value of the position command information stored in the first memory circuit 12 and the second memory circuit 13 and compares the two values. Example 1
It is not necessary to specify the format of the data of the position command information in, and any digital data may be used. For example, if it is 16 bits, 8000h to 7FFFh (16
Range can be counted. (This is 1
When represented by a decimal number, it corresponds to the range of -32,768 to +32,767. With 32 bits, the range is 65,536 times the value of 16 bits.

【0019】次に、実施例1のパルス発生装置1におけ
る比較動作について説明する。脱調検出用検出器6から
出力された信号は、そのまま入力回路14を介して第1
のメモリ回路12と第2のメモリ回路13に入力されて
いる。脱調検出用検出器6が負荷の予め決められた動作
を検知すると、脱調検出用検出器6は入力回路14に出
力する信号をLレベルからHレベル(あるいはHレベル
からLレベル)に切り替える。このように信号が切り替
えられ毎にパルスカウント回路10の位置指令情報を第
1のメモリ回路12に記憶する。この位置指令情報が第
1のメモリ回路12に記憶されると同時にそのときまで
第1のメモリ回路12に記憶されていた内容を第2のメ
モリ回路13に記憶する。このように、第2のメモリ回
路13に記憶された前回の位置指令情報と第1のメモリ
回路12に記憶された今回の位置指令情報は、比較回路
11において比較され、両者の値の比較結果がマイクロ
プロセッサである処理回路7に入力される。処理回路7
は、第2のメモリ回路13に記憶された前回の位置指令
情報と第1のメモリ回路12に記憶された今回の位置指
令情報の値を比較して、両者の値が異なればパルスモー
タ3が脱調状態であると判断し、パルス発生装置1はパ
ルスモータ3の脱調状態を示す信号を出力する。
Next, a comparison operation in the pulse generator 1 according to the first embodiment will be described. The signal output from the step-out detection detector 6 is directly passed through the input circuit 14 to the first signal.
Of the memory circuit 12 and the second memory circuit 13. When the out-of-step detection detector 6 detects a predetermined operation of the load, the out-of-step detection detector 6 switches the signal output to the input circuit 14 from L level to H level (or from H level to L level). . The position command information of the pulse count circuit 10 is stored in the first memory circuit 12 every time the signal is switched in this manner. The position command information is stored in the first memory circuit 12 and at the same time, the contents stored in the first memory circuit 12 up to that time are stored in the second memory circuit 13. As described above, the previous position command information stored in the second memory circuit 13 and the current position command information stored in the first memory circuit 12 are compared in the comparison circuit 11, and the comparison result of the two values is compared. Is input to the processing circuit 7 which is a microprocessor. Processing circuit 7
Compares the value of the previous position command information stored in the second memory circuit 13 with the value of the current position command information stored in the first memory circuit 12, and if the values are different, the pulse motor 3 When it is determined that the motor is out of step, the pulse generator 1 outputs a signal indicating the out-of-step state of the pulse motor 3.

【0020】なお、実施例1のパルスモータ制御装置に
おいて、位置指令情報であるパルスカウント値の比較に
際して、実際には信号の遅れ等があるため、完全に一致
するとは限らず、ある程度の許容値が適宜設けられる。
なお、脱調検出用検出器6の取り付け位置は負荷4の動
作範囲において作動するよう構成されていればよく、特
にその位置に制限はない。なお、実施例1において、初
期状態のときと脱調検出用検出器6が負荷4の所定位置
への移動を最初に検出したとき、第1のメモリ回路12
と第2のメモリ回路13のそれぞれに記憶されていた内
容が異なることが考えられるため、その場合の比較結果
は無視するよう構成し、2回目以降からあるいは比較結
果が一致した後から、脱調状態の検出動作を開始するよ
う構成している。以上のように構成された実施例1のパ
ルスモータ制御装置は、パルスモータの脱調状態を確実
に検出することができる。
In the pulse motor control device according to the first embodiment, when comparing the pulse count value as the position command information, there is actually a delay of the signal and the like. Is provided as appropriate.
It should be noted that the attachment position of the step-out detection detector 6 may be configured so as to operate within the operation range of the load 4, and the position is not particularly limited. In the first embodiment, the first memory circuit 12 operates in the initial state and when the out-of-step detection detector 6 first detects the movement of the load 4 to the predetermined position.
And the contents stored in the second memory circuit 13 may be different from each other. In this case, the comparison result is ignored, and the step-out is performed after the second time or after the comparison result matches. It is configured to start a state detection operation. The pulse motor control device according to the first embodiment configured as described above can reliably detect a step-out state of the pulse motor.

【0021】《実施例2》次に、本発明の一実施の形態
である実施例2のパルスモータ制御装置について添付の
図面を参照して説明する。図3は本発明の一実施の形態
である実施例2のパルスモータ制御装置の構成を示すブ
ロック図であり、図4は実施例2のパルスモータ制御装
置におけるパルスモータ制御のフローチャートである。
図3において、前述の実施例1と同じ機能、構成を有す
るものには同じ符号を付し、前述の実施例1の説明を援
用し、詳細な説明は省略する。図3において、脱調検出
用検出器6が出力した検出信号は入力回路14を介して
マイクロプロセッサ18に入力され、マイクロプロセッ
サ18は検出信号が入力されたときの位置指令情報を記
憶する。なお、パルスモータ、負荷、及び各種位置検出
器は、前述の実施例1と同様に、パルス発生装置1とパ
ルスモータ駆動装置2に接続されている。
Embodiment 2 Next, a pulse motor control device according to Embodiment 2 of the present invention will be described with reference to the accompanying drawings. FIG. 3 is a block diagram illustrating a configuration of a pulse motor control device according to a second embodiment, which is one embodiment of the present invention. FIG. 4 is a flowchart of pulse motor control in the pulse motor control device according to the second embodiment.
In FIG. 3, components having the same functions and configurations as those of the first embodiment are denoted by the same reference numerals, and the description of the first embodiment is referred to, and the detailed description is omitted. In FIG. 3, a detection signal output from the step-out detection detector 6 is input to a microprocessor 18 via an input circuit 14, and the microprocessor 18 stores position command information when the detection signal is input. The pulse motor, the load, and the various position detectors are connected to the pulse generator 1 and the pulse motor driver 2 as in the first embodiment.

【0022】次に、実施例2のパルスモータ制御装置に
おけるパルス発生装置1の動作について図4のフローチ
ャートを用いて説明する。パルス発生回路8はマイクロ
プロセッサ18において設定された値のパルス信号を一
定周期で生成し、生成されたパルス列は差動出力回路9
を通してパルスモータ駆動装置2へ出力される。また、
パルス発生回路8が生成したパルス信号は同時にパルス
カウント回路10に入力される。入力されたパルス信号
はパルスカウント回路10において16ビットから32
ビット程度の位置指令情報に変換される。この位置指令
情報のデータのフォーマットは特に特定する必要はな
く、デジタルデータであればよい。例えば、16ビット
であれば8000h〜7FFFh(16進符号付き表
記)の範囲がカウントできる。(これは10進数で表す
と−32、768〜+32、767の範囲に相当しま
す。32ビットであれば、16ビットの場合のそれぞれ
65、536倍の値が範囲となる。
Next, the operation of the pulse generator 1 in the pulse motor control device according to the second embodiment will be described with reference to the flowchart of FIG. The pulse generation circuit 8 generates a pulse signal having a value set in the microprocessor 18 at a constant period, and the generated pulse train is output to the differential output circuit 9.
To the pulse motor driving device 2 through Also,
The pulse signal generated by the pulse generation circuit 8 is input to the pulse count circuit 10 at the same time. The input pulse signal is converted by the pulse count circuit 10 from 16 bits to 32 bits.
It is converted into bit-wise position command information. The format of the data of the position command information does not need to be particularly specified, and may be digital data. For example, a range of 8000h to 7FFFh (hexadecimal notation) can be counted with 16 bits. (This corresponds to the range of -32, 768 to +32, 767 in decimal notation. For 32 bits, the range is 65,536 times the value of 16 bits.)

【0023】脱調検出用検出器6から出力された信号は
そのまま入力回路14を介してマイクロプロセッサ18
に入力される。脱調検出用検出器6が負荷4の所定の動
作を検出すると、脱調検出用検出器6から入力回路14
へ出力する検出信号がLレベルからHレベル(あるいは
HレベルからLレベル)に変化する。脱調検出用検出器
6の検出信号がマイクロプロセッサ18に入力されたと
き、マイクロプロセッサ18は割り込み処理を開始し、
パルスカウント回路10のパルスカウント値を読み込み
(ステップ1)、読み込んだパルスカウント値をマイク
ロプロセッサ18内の第1のメモリに記憶する(ステッ
プ2)。この割り込み処理が1回目の動作の場合には、
このときの割り込み処理は無視し、次回の割り込み処理
まで待機する(ステップ3)。2回目以降の割り込み処
理において、そのときのパルスカウント回路10のパル
スカウント値を第1のメモリに記憶する。マイクロプロ
セッサ18は第2のメモリに記憶された前回の位置指令
情報と第1のメモリに記憶された今回の位置指令情報の
差を保持する(ステップ4)。保持された位置指令情報
の差の絶対値をDEFとする。次に第1のメモリに記憶
されていたパルスカウント値を第2のメモリに記憶させ
る(ステップ5)。
The signal output from the out-of-step detection detector 6 is directly transmitted to the microprocessor 18 via the input circuit 14.
Is input to When the out-of-step detection detector 6 detects a predetermined operation of the load 4, the out-of-step detection detector 6 outputs the input circuit 14
Changes from the L level to the H level (or from the H level to the L level). When the detection signal of the out-of-step detection detector 6 is input to the microprocessor 18, the microprocessor 18 starts interrupt processing,
The pulse count value of the pulse count circuit 10 is read (step 1), and the read pulse count value is stored in a first memory in the microprocessor 18 (step 2). If this interrupt processing is the first operation,
The interrupt process at this time is ignored, and the process waits until the next interrupt process (step 3). In the second and subsequent interrupt processing, the pulse count value of the pulse count circuit 10 at that time is stored in the first memory. The microprocessor 18 holds the difference between the previous position command information stored in the second memory and the current position command information stored in the first memory (step 4). The absolute value of the difference between the held position command information is defined as DEF. Next, the pulse count value stored in the first memory is stored in the second memory (step 5).

【0024】保持された位置指令情報の差の絶対値(D
EF)を予め決められた脱調用検出基準値と比較し、位
置指令情報の差の絶対値(DEF)と脱調検出基準値と
の差の絶対値が許容値より小さいか否かを判断する(ス
テップ6)。ステップ6において、位置指令情報の差の
絶対値(DEF)と脱調検出基準値との差の絶対値が許
容値より小さい場合には、脱調がなかったと判断され、
脱調検出処理が終了し、マイクロプロセッサ18のメイ
ン処理に戻る。逆に、位置指令情報の差の絶対値(DE
F)と脱調検出基準値との差の絶対値が許容値より大き
ければ、脱調があったと判断し、脱調検出処理を行う。
パルスモータ3が脱調を起こした場合、第1のメモリは
本来記憶するはずの位置指令情報と異なるパルスカウン
ト値を記憶している。実施例2において、第1のメモリ
と第2のメモリに記憶されているパルスカウント値の差
の絶対値(DEF)と脱調検出基準値との絶対値との差
を許容値と比較して、脱調を検出している。このとき、
マイクロプロセッサ18が他の処理を行っており、脱調
検出の処理が間に合わないことがないように脱調検出用
の割り込みの優先順位をできるだけ高く設定してある。
The absolute value of the difference between the held position command information (D
EF) is compared with a predetermined step-out detection reference value, and it is determined whether or not the absolute value of the difference between the position command information difference (DEF) and the step-out detection reference value is smaller than an allowable value. (Step 6). In step 6, when the absolute value of the difference between the position command information difference (DEF) and the step-out detection reference value is smaller than the allowable value, it is determined that there is no step-out,
The step-out detection process ends, and the process returns to the main process of the microprocessor 18. Conversely, the absolute value (DE
If the absolute value of the difference between F) and the step-out detection reference value is larger than the allowable value, it is determined that step-out has occurred, and step-out detection processing is performed.
When the stepping out of the pulse motor 3 occurs, the first memory stores a pulse count value different from the position command information that should be stored originally. In the second embodiment, the difference between the absolute value (DEF) of the difference between the pulse count values stored in the first memory and the second memory and the absolute value of the step-out detection reference value is compared with an allowable value. Out-of-step is detected. At this time,
The microprocessor 18 is performing other processing, and the priority of the step-out detection interrupt is set as high as possible so that the step-out detection processing is not missed.

【0025】なお、脱調検出用検出器6の取り付け位置
はパルスモータの動作範囲で作動すればよく特に位置制
限はない。なお、マイクロプロセッサとしてROM、R
AM内蔵のマイコンを使用すると構成が簡単になる。ま
た、マイクロプロセッサとしてROM、RAM内蔵のマ
イコンにさらにカウンタを内蔵したものを使用するとさ
らに構成が簡単になる。なお、前述の実施例におけるパ
ルスモータ制御装置は、組み込まれる生産システム、ロ
ボット等による負荷、位置制御、及び速度制御等が異な
った場合にも、設定を変更することが可能なものであ
る。また、前述の実施例のパルスモータ制御装置おいて
は、位置指令情報や要求される位置情報の分解能などの
データ形式、データ量などに対して様々な設定の変更が
必要となるため、ソフトウエアの設定を変更したり、ソ
フトウエア自体を書き換えてシステムを構築できるよう
構成されている。さらに、前述の実施例に示したパルス
モータ制御方法は、コンピュータ・プログラム化するこ
とが可能であり、システムの拡張・縮小および様々なシ
ステムに応じて、設定を変更することが可能である。こ
の場合、コンピュータ・プログラムを、フロッピーディ
スク、CD−ROM、DVD(デジタルバーサタイルデ
ィスク)、光磁気ディスク、及びリムーバブル・ハード
ディスク等の記録媒体に記録することにより、共通する
ハードウエアである生産設備に同様の効果を奏しめるこ
とが可能である。
The position at which the step-out detecting detector 6 is mounted is not particularly limited as long as it operates within the operating range of the pulse motor. ROM, R
Using a microcomputer with a built-in AM simplifies the configuration. Further, if a microprocessor having a built-in counter in a microcomputer having a built-in ROM and RAM is used as the microprocessor, the configuration is further simplified. Note that the pulse motor control device in the above-described embodiment can change the setting even when the load, position control, speed control, and the like by the built-in production system, robot, and the like are different. Further, in the pulse motor control device of the above-described embodiment, since various settings need to be changed for the data format and the data amount such as the position command information and the required resolution of the position information, the software It is configured so that the system can be constructed by changing the settings of the software or by rewriting the software itself. Further, the pulse motor control method shown in the above-described embodiment can be programmed into a computer, and the setting can be changed according to expansion / reduction of the system and various systems. In this case, the computer program is recorded on a recording medium such as a floppy disk, a CD-ROM, a DVD (digital versatile disk), a magneto-optical disk, and a removable hard disk. It is possible to achieve the effect of

【0026】[0026]

【発明の効果】本発明によれば、パルスモータ駆動装置
に出力しているパルス列をカウントし、前回と同じ動作
時において記憶したカウント値と新しく記憶したカウン
ト値を比較することにより、パルスモータの脱調状態を
確実に検出できるパルスモータ制御装置およびパルスモ
ータ制御方法を得ることができる。本発明によれば、エ
ンコーダやレゾルバ等の高価な回転動作変換器を設ける
ことなくパルスモータの脱調状態を確実にかつ高精度に
検出することが可能なパルスモータ制御装置及びパルス
モータ制御方法を得ることができる。本発明のパルスモ
ータ制御方法は、コンピュータ・プログラム化すること
ができるため、記録媒体にパルスモータ制御方法を記録
してパルスモータの脱調状態を確実に検出できるパルス
モータ制御を実施することが可能である。
According to the present invention, the pulse train output to the pulse motor driving device is counted, and the count value stored in the same operation as the previous operation is compared with the newly stored count value, thereby enabling the pulse motor to operate. A pulse motor control device and a pulse motor control method capable of reliably detecting a step-out state can be obtained. According to the present invention, there is provided a pulse motor control device and a pulse motor control method capable of reliably and highly accurately detecting a step-out state of a pulse motor without providing an expensive rotary motion converter such as an encoder or a resolver. Obtainable. Since the pulse motor control method of the present invention can be computer-programmed, it is possible to record the pulse motor control method on a recording medium and implement pulse motor control that can reliably detect the step-out state of the pulse motor. It is.

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

【図1】本発明の実施例1におけるパルスモータ制御装
置の概略構成を示す図である。
FIG. 1 is a diagram illustrating a schematic configuration of a pulse motor control device according to a first embodiment of the present invention.

【図2】本発明の実施例1におけるパルスモータ制御装
置のパルス発生装置の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a pulse generation device of the pulse motor control device according to the first embodiment of the present invention.

【図3】本発明の実施例2におけるパルスモータ制御装
置のパルス発生装置の構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a pulse generator of a pulse motor control device according to a second embodiment of the present invention.

【図4】本発明の実施例2におけるパルスモータ制御装
置におけるパルスモータ制御方法を示すフローチャート
である。
FIG. 4 is a flowchart illustrating a pulse motor control method in the pulse motor control device according to the second embodiment of the present invention.

【図5】従来のパルスモータ制御装置の概略構成を示す
図である。
FIG. 5 is a diagram showing a schematic configuration of a conventional pulse motor control device.

【図6】従来のパルスモータ制御装置の構成を示すブロ
ック図である。
FIG. 6 is a block diagram showing a configuration of a conventional pulse motor control device.

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

1 パルス発生装置 2 パルスモータ駆動装置 3 パルスモータ 4 負荷 5 位置検出器 6 脱調検出用検出器 7 処理回路 8 パルス発生回路 9 差動出力回路 10 パルスカウント回路 11 比較回路 12 第1のメモリ回路 13 第2のメモリ回路 14 入力回路 REFERENCE SIGNS LIST 1 pulse generator 2 pulse motor driver 3 pulse motor 4 load 5 position detector 6 out-of-step detection detector 7 processing circuit 8 pulse generator 9 differential output circuit 10 pulse count circuit 11 comparison circuit 12 first memory circuit 13 Second memory circuit 14 Input circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 パルスモータを駆動するため予め指定さ
れた位置データ、速度データ、及び加速度データに基づ
いて動作指令のパルス列を発生するパルス発生回路、 前記パルスモータにより駆動される負荷の一定動作を検
出する検出器、 前記パルス発生回路が出力するパルス列をカウントする
パルスカウント回路、 前記検出器が負荷の一定動作を検出したときに出力する
信号に基づいて前記パルスカウント回路のカウントした
値を記憶する第1のメモリ、 前記第1のメモリが前記パルスカウント回路のカウント
値を記憶したとき、前記第1のメモリが記憶していた前
回のカウント値を記憶する第2のメモリ、 前記第1のメモリと前記第2のメモリに記憶されたそれ
ぞれのカウント値を比較する比較回路、及び前記比較回
路の出力信号に基づき、前記パルスモータの脱調状態を
検出する処理手段、を具備することを特徴とするパルス
モータ制御装置。
1. A pulse generation circuit for generating a pulse train of an operation command based on position data, speed data, and acceleration data designated in advance for driving a pulse motor, and a constant operation of a load driven by the pulse motor. A detector for detecting; a pulse count circuit for counting a pulse train output from the pulse generation circuit; and a value counted by the pulse count circuit based on a signal output when the detector detects a constant operation of the load. A first memory, a second memory that stores a previous count value stored in the first memory when the first memory stores a count value of the pulse count circuit, the first memory And a comparison circuit for comparing each count value stored in the second memory with the output signal of the comparison circuit. The pulse motor control apparatus characterized by comprising a processing means for detecting an out-of the pulse motor.
【請求項2】 前記第1及び第2のメモリが同一の記憶
装置における異なる領域に区分されて形成されている請
求項1記載のパルスモータ制御装置。
2. The pulse motor control device according to claim 1, wherein said first and second memories are formed in different areas in the same storage device.
【請求項3】 パルスモータを駆動するため予め指定さ
れた位置データ、速度データ、及び加速度データに基づ
いて動作指令のパルス列を発生するステップ、 前記パルス列のパルスをカウントするステップ、 前記パルスモータにより駆動される負荷の一定動作を検
出するステップと、 前記負荷の一定動作を検出したときの前記パルス列のカ
ウント値を第1のメモリに記憶するステップ、 前記第1のメモリが前記カウント値を記憶したとき、前
記第1のメモリが記憶していた前回のカウント値を第2
のメモリが記憶するステップ、 前記第1のメモリと前記第2のメモリに記憶されたそれ
ぞれのカウント値を比較するステップ、及び比較された
カウント値の結果に基づき、前記パルスモータの脱調状
態を検出するステップ、を有することを特徴とするパル
スモータ制御方法。
Generating a pulse train of an operation command based on position data, speed data, and acceleration data designated in advance to drive the pulse motor; counting the pulses of the pulse train; driving by the pulse motor Detecting the constant operation of the load to be performed; and storing the count value of the pulse train in the first memory when the constant operation of the load is detected; and when the first memory stores the count value. , The previous count value stored in the first memory is stored in a second
A step of storing the count values stored in the first memory and the second memory; and a step-out state of the pulse motor based on a result of the compared count values. Detecting the pulse motor.
【請求項4】 パルスモータを駆動するため予め指定さ
れた位置データ、速度データ、及び加速度データに基づ
いて動作指令のパルス列を発生する手順、 前記パルス列のパルスをカウントする手順、 前記パルスモータにより駆動される負荷の一定動作を検
出したときの前記パルス列のカウント値を第1のメモリ
に記憶する手順、 前記第1のメモリが前記カウント値を記憶したとき、前
記第1のメモリが記憶していた前回のカウント値を第2
のメモリが記憶する手順、 前記第1のメモリと前記第2のメモリに記憶されたそれ
ぞれのカウント値を比較する手順、及び比較されたカウ
ント値の結果に基づき、前記パルスモータの脱調状態を
検出する手順、をコンピュータに実行させるパルスモー
タ制御プログラムを記録した記録媒体。
4. A step of generating a pulse train of an operation command based on position data, speed data, and acceleration data designated in advance for driving the pulse motor, a step of counting pulses of the pulse train, and a step of driving by the pulse motor. Storing a count value of the pulse train in a first memory when detecting a constant operation of a load to be performed; and storing the count value in the first memory when the first memory stores the count value. Second count value from previous
A step of storing the count values stored in the first memory and the second memory, and a step-out state of the pulse motor based on a result of the compared count values. A recording medium on which a pulse motor control program for causing a computer to execute a detection procedure is recorded.
JP34895798A 1998-12-08 1998-12-08 Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein Pending JP2000175497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34895798A JP2000175497A (en) 1998-12-08 1998-12-08 Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34895798A JP2000175497A (en) 1998-12-08 1998-12-08 Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein

Publications (1)

Publication Number Publication Date
JP2000175497A true JP2000175497A (en) 2000-06-23

Family

ID=18400539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34895798A Pending JP2000175497A (en) 1998-12-08 1998-12-08 Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein

Country Status (1)

Country Link
JP (1) JP2000175497A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101610634B1 (en) * 2014-09-15 2016-04-11 현대모비스 주식회사 Apparatus and method for measuring speed of mdps drive motor
CN116260364A (en) * 2023-05-15 2023-06-13 杭州瑞盟科技股份有限公司 Stall detection method, system and device for stepping motor and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101610634B1 (en) * 2014-09-15 2016-04-11 현대모비스 주식회사 Apparatus and method for measuring speed of mdps drive motor
CN116260364A (en) * 2023-05-15 2023-06-13 杭州瑞盟科技股份有限公司 Stall detection method, system and device for stepping motor and storage medium

Similar Documents

Publication Publication Date Title
US6121744A (en) Control apparatus for position control motor
JP2568068B2 (en) Motor rotor position detector
JPH09292264A (en) Absolute encoder
JPH0232799A (en) Electric stepping motor having load angle regulator and its operation
JP2000175497A (en) Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein
JPS621012A (en) Positioning controller for rotor
JPH07218289A (en) Encoder system
JPH10127078A (en) Linear servo system and method for detecting pole position
US5949208A (en) Circuit and method for controlling a DC motor
JPS61107165A (en) Apparatus for detecting speed of motor
JP2002223584A (en) Controller for dc motor
JP2529185B2 (en) Motor control circuit
JP2600975B2 (en) Speed control method for synchronous motor
JPS6234210A (en) Detector for original point position
JPH0681552B2 (en) Stepping motor step-out detection method
RU1817061C (en) Device for controlling reeling machine
JPS61150690A (en) Method of controlling servo motor
JP2002323911A (en) Sequence controller
JPH095115A (en) Position detection circuit
JPS6174012A (en) Positioning control device
JPS60207480A (en) Controller for driving motor
JPS627380A (en) Controller for synchronous motor
JPH04331489A (en) Motor controller
JPH04321109A (en) Servo amplifier
JPS6061814A (en) Positioning control system by direct current motor

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050523

RD02 Notification of acceptance of power of attorney

Effective date: 20050523

Free format text: JAPANESE INTERMEDIATE CODE: A7422