JPH08178693A - Encoder diagnostic device - Google Patents

Encoder diagnostic device

Info

Publication number
JPH08178693A
JPH08178693A JP32220094A JP32220094A JPH08178693A JP H08178693 A JPH08178693 A JP H08178693A JP 32220094 A JP32220094 A JP 32220094A JP 32220094 A JP32220094 A JP 32220094A JP H08178693 A JPH08178693 A JP H08178693A
Authority
JP
Japan
Prior art keywords
encoder
absolute value
power
turned
counter
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
JP32220094A
Other languages
Japanese (ja)
Inventor
Takanori Yoneda
隆則 米田
Sadatsune Yasumi
貞恒 安味
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.)
Nippei Toyama Corp
Original Assignee
Nippei Toyama Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippei Toyama Corp filed Critical Nippei Toyama Corp
Priority to JP32220094A priority Critical patent/JPH08178693A/en
Publication of JPH08178693A publication Critical patent/JPH08178693A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE: To provide an encoder diagnostic device in which an absolute value encoder or incremental encoder can be easily diagnosed. CONSTITUTION: The absolute value data transmitted from an absolute value encoder 12 when a power source is OFF is stored in a nonvolatile memory 25. When the power source is then ON, the above absolute value data stored in the nonvolatile memory 25 is compared with the absolute valve data transmitted from the absolute value encoder at that time, and when the difference is out of a predetermined allowable range, an alarm is displayed on an indicator 26. The data stored in the nonvolatile memory 25 may be the count value stored in an INC counter 23. In operation, the absolute value data provided from the absolute value encoder 12 is compared with the count value of the INC counter 23 when the rotating speed of a motor 6 is less than a fixed value, and the alarm is displayed on the indicator 26 when the different is out of the predetermined allowable range.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、工作機械の移動部、例
えば研削盤における砥石台などの高速移動する機構部に
設けられているエンコーダの診断装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a diagnostic device for an encoder provided in a moving part of a machine tool, for example, a mechanical part that moves at high speed such as a grindstone in a grinder.

【0002】[0002]

【従来の技術】研削盤の砥石台など、サーボモータを使
用して高速に一方向に移動制御される機構では、モータ
又はモータで回転する回転軸にエンコーダを取り付けて
その出力に基づいてサーボ系による位置制御を行ってい
る。
2. Description of the Related Art In a mechanism such as a grinding wheel head of a grinder that is controlled to move in one direction at high speed by using a servomotor, an encoder is attached to a motor or a rotary shaft rotated by the motor, and a servo system is based on the output of the encoder. The position is controlled by.

【0003】通常、このような装置では、電源オン時に
移動制御対象となる砥石台等の移動部を予め定めた原点
位置に移動させ、その原点位置を基準として砥石台等の
移動部を位置制御する。
Usually, in such a device, when the power is turned on, a moving part such as a grinding wheel head to be controlled to move is moved to a predetermined origin position, and the moving part such as the grinding wheel position is position-controlled based on the origin position. To do.

【0004】従来、上記の制御のためにモータで回転す
る回転軸に回転に伴って増減パルスを出力するインクリ
メンタリエンコーダを取り付けるとともに、その出力パ
ルスを計数するカウンタを設け、電源オン時など、切削
加工をスタートする初期状態のときに、砥石台等の移動
部を原点位置に復帰させるとともに上記カウンタをリセ
ットすることによって、若しくは初期値をプリセットす
ることによって、または機械式リミットスイッチによっ
て該カウンタの値を砥石台等の移動部の位置に対応させ
るいわゆる原点復帰(ZRN)動作を行っている。
Conventionally, for the above control, an incremental encoder that outputs an increase / decrease pulse according to the rotation is attached to a rotary shaft that is rotated by a motor, and a counter that counts the output pulse is provided to cut the power when the power is turned on. In the initial state of starting machining, the moving part such as the grinding stone head is returned to the origin position and the counter is reset, or the initial value is preset, or the value of the counter is set by the mechanical limit switch. A so-called origin return (ZRN) operation is performed to make the position correspond to the position of a moving part such as a grindstone.

【0005】しかし、上記の構成では装置の電源オン時
に砥石台などの移動部を原点位置に復帰させて機械式リ
ミットスイッチを利用してカウンタをリセットする動作
(ZRN動作)が必要であり、この電源オン時の立ち上
げ時の動作に時間がかかるという問題や機械式リミット
スイッチが故障しやすいという問題がある。そこで、上
記インクリメンタリエンコーダおよびカウンタとは別に
砥石台等の移動部の原点に対する絶対値を直接出力する
絶対値エンコーダ(アブソリュートエンコーダ)を設
け、電源オン時にこの絶対値エンコーダの出力を取り込
むことにより、機械式リミットスイッチを取外し、且つ
上記ZRN動作を省略した装置が提案されている。
However, in the above-mentioned configuration, when the power of the apparatus is turned on, an operation (ZRN operation) of resetting the counter by using the mechanical limit switch to return the moving portion such as the grindstone to the origin position is necessary. There are problems that it takes a long time to start up when the power is turned on and that the mechanical limit switch is easily damaged. Therefore, in addition to the incremental encoder and the counter, an absolute value encoder (absolute encoder) that directly outputs the absolute value with respect to the origin of the moving part such as a grindstone is provided, and by taking in the output of this absolute value encoder when the power is turned on, An apparatus has been proposed in which the mechanical limit switch is removed and the ZRN operation is omitted.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
ようにインクリメンタリエンコーダと絶対値エンコーダ
を併用する場合、電源オン時に絶対値エンコーダから送
られてくる値が正しいものとして以後の制御を行うため
に、この絶対値エンコーダが機械的または電気的に調整
が狂っていた場合不良動作をしてしまう不具合があっ
た。特に、工作機械は1日の終わりに電源がオフし、翌
日の朝に電源がオンすることが多いが、この電源オフの
期間において工作機械やエンコーダの調整が行われるこ
とにより、回転軸とエンコーダの取付け位置のズレ等が
生じて基準値が合わなくなり研削不良となることがあっ
た。
However, when the incremental encoder and the absolute value encoder are used together as described above, the value sent from the absolute value encoder when the power is turned on is correct in order to perform the subsequent control. However, there is a problem that this absolute value encoder malfunctions if the adjustment is mechanically or electrically incorrect. In particular, the machine tool is often turned off at the end of the day and turned on the next morning, but the machine tool and encoder are adjusted during this power-off period, so that the rotary shaft and encoder There was a case that the reference value did not match due to the displacement of the mounting position of the above, and grinding failure occurred.

【0007】本発明の目的は、上記絶対値エンコーダや
インクリメンタリエンコーダを簡単に診断することがで
きるエンコーダ診断装置を提供することにある。
An object of the present invention is to provide an encoder diagnostic device which can easily diagnose the absolute value encoder and the incremental encoder.

【0008】[0008]

【課題を解決するための手段】本発明は、工作機械の移
動部を駆動させる駆動モータの回転軸に連結され、前記
移動部の移動に応じた増分パルスを出力するインクリメ
ンタリエンコーダと、前記駆動モータの回転軸と同一の
回転軸に連結され前記移動部の絶対位置を示す絶対値デ
ータを出力する絶対値エンコーダで構成するエンコーダ
部の診断装置において、電源オフ時に、前記絶対値エン
コーダからシリアル通信路を介して送られてくる前記移
動部の絶対値データを電源オフ時に記憶する不揮発性メ
モリと、電源オン時に前記絶対値エンコーダから送られ
てくる絶対値データと前記不揮発性メモリに記憶されて
いる絶対値データとを比較し、その差が予め定めた許容
範囲内にないときにアラーム報知を行う手段とを備えて
なることを特徴とする。また、前記インクリメンタリエ
ンコーダの出力パルスを計数するカウンタと、該カウン
タの計数値を電源オフ時に記憶する不揮発性メモリと、
電源オン時に前記絶対値エンコーダから送られてくる絶
対値データと前記不揮発性メモリに記憶されている位置
データとを比較し、その差が予め定めた許容範囲内にな
いときにアラーム報知を行う手段とを備えてなることを
特徴とする。
According to the present invention, there is provided an incremental encoder which is connected to a rotary shaft of a drive motor for driving a moving part of a machine tool and which outputs an incremental pulse according to the movement of the moving part, and the drive. In a diagnostic device for an encoder unit configured with an absolute value encoder that is connected to the same rotary shaft as a motor and outputs absolute value data indicating the absolute position of the moving unit, serial communication is performed from the absolute value encoder when the power is off. A non-volatile memory that stores the absolute value data of the moving unit sent via a path when the power is turned off, and the absolute value data sent from the absolute value encoder when the power is turned on and the non-volatile memory Means for making an alarm notification when the difference is not within a predetermined allowable range. That. A counter that counts the output pulses of the incremental encoder; a non-volatile memory that stores the count value of the counter when the power is off;
Means for comparing the absolute value data sent from the absolute value encoder when the power is turned on with the position data stored in the non-volatile memory, and issuing an alarm when the difference is not within a predetermined allowable range. It is characterized by comprising and.

【0009】さらに、前記インクリメンタリエンコーダ
の出力パルスを計数するカウンタと、前記移動部の移動
速度が一定以下のときに前記カウンタの計数値と絶対値
エンコーダから送られてくる絶対値データとを比較し、
その差が予め定めた許容範囲内にないときにアラーム報
知を行う手段と、を備えてなることを特徴とする。
Further, the counter for counting the output pulses of the incremental encoder is compared with the count value of the counter and the absolute value data sent from the absolute encoder when the moving speed of the moving part is below a certain level. Then
Means for giving an alarm when the difference is not within a predetermined allowable range.

【0010】[0010]

【作用】本発明では、電源がオンすると絶対値エンコー
ダの値を取り込んで移動部の現在の位置を検出する。こ
のとき、絶対値エンコーダの値を知ることにより機械の
現在位置を知ることができるため、移動部を原点復帰さ
せてインクリメンタリエンコーダに接続されているカウ
ンタをリセットするZRN動作は不要である。従って、
電源オン直後から即可動の状態になる。なお、通常、イ
ンクリメンタリエンコーダにはその出力パルスを計数す
るカウンタが接続されている。このカウンタの計数値は
移動部の位置に対応することになるために、上記電源オ
ン時に読み取られた絶対値エンコーダの値はこのカウン
タにセットされる。稼働状態においては、このカウンタ
の値、すなわちインクリメンタリエンコーダの出力パル
スに基づいて移動部の移動制御がサーボ系によって行わ
れる。絶対値エンコーダの出力も上記カウンタの値と同
一であるが、絶対値エンコーダの出力はインクリメンタ
リエンコーダのような増減パルスではなく位置データそ
のものであるために、そのデータを取り込むためには通
信ポートを介して取り込む。そのため移動部が高速移動
するような場合に、高速移動部の位置データを通信ポー
トを解して取り込むのに時間がかかりすぎ、対応するこ
とができない。それゆえ、工作機械が稼働状態に入った
ときには、このインクリメンタリエンコーダの出力パル
スに基づいて位置制御が行われる。
In the present invention, when the power is turned on, the value of the absolute encoder is taken in to detect the current position of the moving part. At this time, since the current position of the machine can be known by knowing the value of the absolute value encoder, the ZRN operation of resetting the counter connected to the incremental encoder by returning the moving unit to the origin is unnecessary. Therefore,
Immediately after the power is turned on, it will be in a movable state immediately. Incidentally, a counter that counts the output pulse thereof is usually connected to the incremental encoder. Since the count value of this counter corresponds to the position of the moving part, the value of the absolute encoder read when the power is turned on is set in this counter. In the operating state, the servo system controls the movement of the moving unit based on the value of the counter, that is, the output pulse of the incremental encoder. The output of the absolute value encoder is the same as the value of the above counter, but the output of the absolute value encoder is not the increase / decrease pulse like the incremental encoder but the position data itself. Take in through. Therefore, when the moving unit moves at high speed, it takes too much time to capture the position data of the high-speed moving unit through the communication port, and it is not possible to deal with it. Therefore, when the machine tool enters the operating state, position control is performed based on the output pulse of this incremental encoder.

【0011】本発明では、電源オフ時において、前記絶
対値エンコーダからシリアル通信路を介して送られてく
る移動部の絶対値データを不揮発性メモリに記憶してお
いて、次の電源オン時にこの不揮発性メモリに記憶され
ている絶対値データと、そのときに上記絶対値エンコー
ダから送られてくる絶対値データとを比較する。そし
て、その差が予め定めた許容範囲内にないときにアラー
ム報知を行う。従って、電源がオフされて次にオンされ
るまでの間に絶対値エンコーダに何らかの障害が起きた
場合、例えば絶対値エンコーダの再調整を行ったり外力
によって取り付け位置が狂った場合などには、この動作
によって電源オン時の絶対値エンコーダの出力が正しい
ものでないことを知ることができる。
According to the present invention, when the power is turned off, the absolute value data of the moving part sent from the absolute value encoder via the serial communication path is stored in the non-volatile memory, and is stored at the next power on. The absolute value data stored in the non-volatile memory is compared with the absolute value data sent from the absolute value encoder at that time. Then, when the difference is not within a predetermined allowable range, an alarm is issued. Therefore, if there is any failure in the absolute encoder between the time the power is turned off and the next time it is turned on, for example, if the absolute encoder is readjusted or the mounting position is changed due to external force, this By the operation, it can be known that the output of the absolute encoder when the power is turned on is not correct.

【0012】また、本発明においては、インクリメンタ
リエンコーダと絶対値エンコーダの2つのエンコーダを
使用しているために、インクリメンタリエンコーダの計
数値を記憶するカウンタの値と、絶対値エンコーダの出
力値とを比較することによってエンコーダの診断を行う
こともできる。すなわち、本発明では、インクリメンタ
リエンコーダの出力パルスを計数するカウンタの計数値
を電源オフ時に不揮発性メモリに記憶しておき、次の電
源オン時に上記不揮発性メモリの値と絶対値エンコーダ
から送られてくる値とを比較し、その値が予め定めた許
容範囲内にないときにアラーム報知を行う。この動作に
おいては、2つのエンコーダのうち何れか一方が電源オ
フ時において調整が狂った場合に、次の電源オン時にお
いてその調整が正しくない状態を知ることができる。
Further, in the present invention, since two encoders of the incremental encoder and the absolute value encoder are used, the value of the counter for storing the count value of the incremental encoder and the output value of the absolute value encoder are used. It is also possible to diagnose the encoder by comparing. That is, in the present invention, the count value of the counter that counts the output pulses of the incremental encoder is stored in the nonvolatile memory when the power is turned off, and the value of the nonvolatile memory and the absolute value encoder are sent when the power is turned on next time. The received value is compared, and when the value is not within the predetermined allowable range, an alarm is notified. In this operation, if one of the two encoders is misaligned when the power is off, it is possible to know that the adjustment is incorrect when the power is next turned on.

【0013】さらに本発明においては、工作機械の稼働
中において上記双方のエンコーダの診断を行うこともで
きる。上述のように、絶対値エンコーダからの位置情報
の取込みには時間がかかるために移動部が高速動作をし
ているときにはこの絶対値エンコーダの出力によって移
動部の位置制御を行うことができないが、移動部が停止
しているときや低速動作のときには、通信ポートを介し
て送られてくる絶対値エンコーダの値は移動部の位置変
化に十分に追随している。従って、このような状態のと
きを検出し、絶対値エンコーダの出力とインクリメンタ
リエンコーダに接続されているカウンタの値とを対比し
て何れかのエンコーダが異常状態にあるかどうかをチェ
ックする。
Further, according to the present invention, both encoders can be diagnosed while the machine tool is in operation. As described above, since it takes time to fetch the position information from the absolute encoder, the position of the moving unit cannot be controlled by the output of the absolute encoder when the moving unit is operating at high speed. When the moving unit is stopped or operating at a low speed, the value of the absolute encoder sent via the communication port sufficiently follows the change in the position of the moving unit. Therefore, when such a state is detected, the output of the absolute value encoder is compared with the value of the counter connected to the incremental encoder to check whether any of the encoders is in an abnormal state.

【0014】[0014]

【実施例】図1は本発明の実施例のエンコーダ診断装置
が適用される研削盤の要部平面図を示している。
1 is a plan view of a main part of a grinding machine to which an encoder diagnostic apparatus according to an embodiment of the present invention is applied.

【0015】ベッド1上には砥石台2、主軸台3などが
配置され、砥石台2には、砥石車4およびこの砥石車4
を駆動するモータ5が設けられ、さらにこの砥石台2を
X軸方向(図の上下方向)に移動制御するサーボモータ
6が設けられている。また、主軸台3には、主軸8を駆
動する主軸モータ7が設けられ、主軸8にはドレッサを
介してワーク9が取り付けられている。さらに、上記主
軸台3をZ軸方向(図の左右方向)に移動制御するため
のサーボモータ10が設けられている。
On the bed 1, a grindstone 2, a spindle head 3, etc. are arranged. On the grindstone 2, a grinding wheel 4 and this grinding wheel 4 are arranged.
Is provided with a motor 5 for driving, and a servo motor 6 for controlling the movement of the grindstone base 2 in the X-axis direction (vertical direction in the drawing). Further, a spindle motor 7 that drives a spindle 8 is provided on the spindle stock 3, and a work 9 is attached to the spindle 8 via a dresser. Further, a servo motor 10 is provided to control the movement of the headstock 3 in the Z-axis direction (left-right direction in the drawing).

【0016】以上の構成において、さらに、サーボモー
タ6,10のそれぞれの回転軸には、インクリメンタリ
エンコーダ11,13と絶対値エンコーダ12,14が
取り付けられている。サーボモータ6,10の駆動信号
ラインおよびエンコーダ11〜14の信号ラインは図示
しない数値制御装置に導かれ、この数値制御装置におい
てこれらのエンコーダからの情報に基づいてサーボモー
タ6,10の制御を行う。
In the above structure, incremental encoders 11 and 13 and absolute value encoders 12 and 14 are further attached to the rotary shafts of the servomotors 6 and 10, respectively. The drive signal lines of the servomotors 6 and 10 and the signal lines of the encoders 11 to 14 are guided to a numerical control device (not shown), and the numerical control device controls the servomotors 6 and 10 based on the information from these encoders. .

【0017】図2は、図1におけるサーボモータ6の駆
動制御部の構成を示している。この駆動制御部は上記数
値制御装置内に設けられるものである。
FIG. 2 shows the structure of the drive control unit of the servomotor 6 shown in FIG. The drive control unit is provided in the numerical control device.

【0018】モータ6の回転軸に連結されるインクリメ
ンタリエンコーダ11は、周囲に等分割マークやスリッ
ト部を形成した円板とその円板に対向して配置した光学
センサや磁気センサを備える公知のエンコーダで構成さ
れ、回転軸が一定の角度回転する度に1パルスを発生す
る。なお、本実施例では、モータ6に正逆回転可能なも
のを使用していて、インクリメンタリエンコーダ11に
は、出力パルスからモータ6の回転方向を知るために4
分の1周期だけ位相をずらして配置した2個のセンサと
各センサの出力端子を設けている。回転方向は、この2
つの出力端子の出力パルスの時間的タイミングの相違か
ら公知の手法によって検知することができる。回転速度
はパルスの周期から計算することができる。一方、絶対
値エンコーダ12は、モータ6の回転軸の回転角ととも
に回転数をも自身で記憶し、外部に対しては基準値に対
する位置データを絶対値データとしてダイレクトに出力
することができる。
The incremental encoder 11 connected to the rotating shaft of the motor 6 is provided with a known disk including a disk having equally divided marks or slits formed around it and an optical sensor or a magnetic sensor arranged so as to face the disk. It is composed of an encoder and generates one pulse each time the rotating shaft rotates by a certain angle. In the present embodiment, a motor 6 capable of rotating in the forward and reverse directions is used, and the incremental encoder 11 uses the output encoder 4 in order to know the rotation direction of the motor 6.
Two sensors arranged with their phases shifted by one-half cycle and output terminals of each sensor are provided. The rotation direction is this 2
It can be detected by a known method from the difference in the timing of the output pulses of the two output terminals. The rotation speed can be calculated from the pulse period. On the other hand, the absolute value encoder 12 itself stores the rotation angle as well as the rotation angle of the rotating shaft of the motor 6, and can externally directly output the position data with respect to the reference value as absolute value data.

【0019】上記インクリメンタリエンコーダ11の出
力端子は駆動制御部20内のパルス入力ポート21に接
続され、絶対値エンコーダ12の出力端子はシリアル通
信ラインによって制御部20内のシリアル通信ポート2
2に接続される。インクリメンタリエンコーダ11から
はパルス入力ポート21に対して検出パルスがダイレク
トに入力されるが、絶対値エンコーダ12はシリアル通
信ポート22に対しシリアル通信ラインによって絶対値
位置データを送る。従って、前者は極めて高速であり、
後者は相対的にかなり低速である。例えば、インクリメ
ンタリエンコーダ11から出力されるパルスは500k
Hz以上の周波数となるが、絶対値エンコーダ12とシ
リアル通信ポート22間の通信速度は9600bps程
度である。
The output terminal of the incremental encoder 11 is connected to the pulse input port 21 in the drive control unit 20, and the output terminal of the absolute value encoder 12 is a serial communication line in the serial communication port 2 in the control unit 20.
Connected to 2. A detection pulse is directly input from the incremental encoder 11 to the pulse input port 21, but the absolute value encoder 12 sends absolute value position data to the serial communication port 22 via a serial communication line. Therefore, the former is extremely fast,
The latter is relatively slow. For example, the pulse output from the incremental encoder 11 is 500k.
Although the frequency is higher than Hz, the communication speed between the absolute encoder 12 and the serial communication port 22 is about 9600 bps.

【0020】前記パルス入力ポート21に入力されたパ
ルスはアップダウンカウンタからなるINCカウンタ2
3に入力する。前述のように、インクリメンタリエンコ
ーダ11の2つの出力端子の出力パルスの位相差からモ
ータ6の回転軸の回転方向がわかるために、INCカウ
ンタ23では、この位相差から回転方向を判定して入力
パルスによりカウンタ計数値をアップさせるかダウンさ
せるかを決める。後述のように、INCカウンタ23は
電源オン時に絶対値エンコーダ12から得られた絶対値
データがプリセットされるようになっているために、パ
ルス入力ポート21から刻々入力されるパルスを計数す
ることにより、結局、このカウンタ23の計数値が砥石
台2の絶対値データを記憶することになる。
The pulse input to the pulse input port 21 is an INC counter 2 including an up / down counter.
Enter in 3. As described above, since the rotation direction of the rotation shaft of the motor 6 can be known from the phase difference between the output pulses of the two output terminals of the incremental encoder 11, the INC counter 23 determines the rotation direction from this phase difference and inputs the rotation direction. The pulse determines whether the counter count value is to be incremented or decremented. As will be described later, since the INC counter 23 is designed to preset the absolute value data obtained from the absolute value encoder 12 when the power is turned on, the INC counter 23 counts the pulses input from the pulse input port 21 momentarily. After all, the count value of this counter 23 stores the absolute value data of the grinding wheel head 2.

【0021】一方、前記絶対値エンコーダ12で得られ
る絶対値データは電源オン時のまだ稼働状態にないとき
にシリアル通信ポート22を介して制御部24に取り込
まれる。また、電源がオフされたときに電源供給が完全
に停止するまでの間に制御部24はシリアル通信ポート
22を介して絶対値エンコーダ12の示す絶対値データ
を取り込み、不揮発性メモリ25に記憶する。不揮発性
メモリ25は、最も典型的にはRAMをバッテリバック
アップしたもので構成することができ、またEEPRO
Mなどを使用することもできる。
On the other hand, the absolute value data obtained by the absolute value encoder 12 is fetched by the control section 24 through the serial communication port 22 when it is not in the operating state when the power is turned on. Further, when the power is turned off, the control unit 24 takes in the absolute value data indicated by the absolute value encoder 12 via the serial communication port 22 and stores it in the nonvolatile memory 25 until the power supply is completely stopped. . The non-volatile memory 25 is most typically composed of a battery backed-up RAM, and the EEPRO.
M or the like can also be used.

【0022】制御部24では、上記INCカウンタ23
の計数値およびシリアル通信ポート22を介して得られ
る絶対値データに基づいてモータ駆動制御信号をモータ
駆動部27に対して出力し、モータ駆動部27ではこの
信号に基づいてモータM6を駆動制御する。また、上述
のように電源がオフしたときに制御部24への電源供給
が完全に停止する前に絶対値エンコーダ12が示す絶対
値データを不揮発性メモリ25に記憶し、次の電源がオ
ンしたときには、上記不揮発性メモリ25に記憶されて
いる絶対値置データと、そのときに絶対値エンコーダ1
2が示す絶対値データとを比較する。そして、その差が
予め設定した許容範囲内にないときには表示器26にア
ラーム報知する。
In the control section 24, the INC counter 23
A motor drive control signal is output to the motor drive unit 27 based on the count value of the above and the absolute value data obtained via the serial communication port 22, and the motor drive unit 27 drives and controls the motor M6 based on this signal. . Further, as described above, the absolute value data indicated by the absolute value encoder 12 is stored in the non-volatile memory 25 before the power supply to the control unit 24 is completely stopped when the power is turned off, and the next power supply is turned on. Sometimes, the absolute value data stored in the nonvolatile memory 25 and the absolute value encoder 1 at that time are stored.
2 is compared with the absolute value data. When the difference is not within the preset allowable range, an alarm is given to the display 26.

【0023】図3,図4はそれぞれ電源がオンしたとき
とオフしたときの制御部24の動作を示すフローチャー
トである。
3 and 4 are flow charts showing the operation of the control unit 24 when the power is turned on and when the power is turned off.

【0024】図3において、電源がオンすると、絶対値
エンコーダ12の示すそのときの絶対値データをシリア
ル通信ポート22を介して読み込む(ST1)。この値
をAとする。次に、不揮発性メモリ25に記憶されてい
る絶対値データを読み込む(ST2)。この値をBとす
る。後述のように、この不揮発性メモリ25には、電源
がオフされるときの絶対値データが記憶される。ST3
においては、上記値AとBとが比較される。そして、そ
の差が予め決めた許容範囲内であれば正常なものとして
稼働状態に入る。もし、上記差が許容範囲を越えるもの
であればST4に進み表示器26にアラーム報知を行っ
てエラー処理に移る。エラー処理においては、オペレー
タは絶対値エンコーダの調整のやり直しを行うことにな
る。
In FIG. 3, when the power is turned on, the absolute value data at that time indicated by the absolute value encoder 12 is read through the serial communication port 22 (ST1). Let this value be A. Next, the absolute value data stored in the non-volatile memory 25 is read (ST2). Let this value be B. As will be described later, the non-volatile memory 25 stores absolute value data when the power is turned off. ST3
In, the above values A and B are compared. Then, if the difference is within a predetermined allowable range, the operating state is regarded as normal. If the difference exceeds the permissible range, the process proceeds to ST4 to notify the display 26 of an alarm and shift to error processing. In the error processing, the operator must redo the adjustment of the absolute encoder.

【0025】一方、電源がオフされると、図4に示すよ
うに、ST10において、そのときの絶対値エンコーダ
12が示す絶対値データAを読み込んでST11におい
て不揮発性メモリ25に記憶する。電源供給が完全に停
止するまでにこの動作を行う。従って、次に電源がオン
されると、図3に示すST2において、上記ST11で
記憶された絶対値データが比較のために読み込まれる。
On the other hand, when the power is turned off, as shown in FIG. 4, in ST10, the absolute value data A indicated by the absolute value encoder 12 at that time is read and stored in the nonvolatile memory 25 in ST11. This operation is performed until the power supply is completely stopped. Therefore, when the power is turned on next time, in ST2 shown in FIG. 3, the absolute value data stored in ST11 is read for comparison.

【0026】以上の動作により、電源がオフされてから
次にオンされるまでの間に何らかの原因によってエンコ
ーダ部の調整狂いが生じた場合などには、次に電源がオ
ンされて加工動作に入る前にエンコーダの異常状態を知
ることができる。
With the above operation, if the encoder section is misaligned for some reason between the time when the power is turned off and the time when the power is next turned on, the power is turned on next and the machining operation is started. The abnormal state of the encoder can be known in advance.

【0027】図5は本発明の他の実施例を示している。
上記の実施例では、電源オフ時に絶対値エンコーダ12
から読み出した絶対値データを不揮発性メモリ25に記
憶するようにしたが、ここでは、図5に示すように、電
源オフ時にINCカウンタ23の示す計数値を読み込ん
で(ST20)、その値を不揮発性メモリ25に記憶す
る(ST21)。このように出来るのは、INCカウン
タ23も、その時々の砥石台2の位置データを示してい
るからである。したがって、この計数値を不揮発性メモ
リ25に記憶しておいて、次の電源オン時において図3
のST2において読み込んでST3で絶対値エンコーダ
の示す値と比較する。
FIG. 5 shows another embodiment of the present invention.
In the above embodiment, the absolute value encoder 12 is used when the power is off.
The absolute value data read out from the non-volatile memory 25 is stored in the non-volatile memory 25. However, here, as shown in FIG. 5, the count value indicated by the INC counter 23 is read when the power is off (ST20), and the value is stored in the non-volatile memory. It is stored in the memory 25 (ST21). This is possible because the INC counter 23 also indicates the position data of the grinding wheel head 2 at that time. Therefore, this count value is stored in the non-volatile memory 25, and the next time the power is turned on, the count value shown in FIG.
Is read in ST2 and compared with the value indicated by the absolute encoder in ST3.

【0028】なお、この場合には、ST3での両者の差
が許容範囲外の場合には、絶対値エンコーダ12または
インクリメンタリエンコーダ11の何れかまたは両方が
正常でないことを示すことになる。
In this case, if the difference between the two in ST3 is outside the allowable range, it means that either or both of the absolute value encoder 12 and the incremental encoder 11 are not normal.

【0029】図6は、本発明のさらに他の実施例の動作
を示している。この実施例では、電源がオンされていて
も砥石台2の制御スピードが非常に低速の場合にはシリ
アル通信ポート22を経て得られる位置データは砥石台
2の移動に十分に追従した精度の高いものとなるから、
この値とINCカウンタ23の計数値とを比較すること
によって、何れかまたは両方のエンコーダが正常に動作
しているかどうかをチェックする。
FIG. 6 shows the operation of another embodiment of the present invention. In this embodiment, if the control speed of the grinding wheel head 2 is very low even if the power is turned on, the position data obtained via the serial communication port 22 has a high accuracy that sufficiently follows the movement of the grinding wheel head 2. Because it will be something
By comparing this value with the count value of the INC counter 23, it is checked whether or not either or both encoders are operating normally.

【0030】すなわち、最初にST30においてINC
カウンタ23に入力するパルスの周期を見ることによっ
て回転速度、すなわち砥石台2の移動速度を検出し、そ
の速度Vが0であれば、そのときの絶対値エンコーダ1
2の絶対値データとINCカウンタ23の計数値とを読
み込んで、両者を比較する(ST34)。そして、両者
の差が許容範囲外であればアラーム報知を行ってエラー
処理に移る。なお、上記速度Vが予め定めた一定速度以
下のときに絶対値エンコーダ12の絶対値データとIN
Cカウンタ23の計数値とを読み込んで、両者を比較す
るようにしてもよい。この実施例においては、装置の動
作中においてエンコーダの診断を行える利点がある。
That is, first, in ST30, INC
The rotation speed, that is, the moving speed of the wheel head 2 is detected by looking at the cycle of the pulse input to the counter 23. If the speed V is 0, the absolute value encoder 1 at that time is detected.
The absolute value data of 2 and the count value of the INC counter 23 are read, and both are compared (ST34). If the difference between the two is out of the allowable range, an alarm is issued and error processing is performed. When the speed V is equal to or lower than a predetermined constant speed, the absolute value data of the absolute value encoder 12 and IN
The count value of the C counter 23 may be read and the two may be compared. This embodiment has the advantage that the encoder can be diagnosed during operation of the device.

【0031】[0031]

【発明の効果】本発明では、電源がオフされたときに絶
対値エンコーダの調整狂いが生じても、次の電源オンの
装置の立ち上がり時にはその診断を行うことができるた
めに、誤った動作を未然に防ぐことができる。また、機
械の停止中においてもエンコーダの異常状態を検出する
ことができる。
According to the present invention, even if the absolute value encoder is misaligned when the power is turned off, it can be diagnosed at the next power-on device startup. It can be prevented. Further, the abnormal state of the encoder can be detected even when the machine is stopped.

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

【図1】本発明の実施例のエンコーダ診断装置が適用さ
れた研削盤の要部平面図。
FIG. 1 is a plan view of a main part of a grinding machine to which an encoder diagnostic device according to an embodiment of the present invention is applied.

【図2】上記研削盤の駆動制御部の構成図。FIG. 2 is a configuration diagram of a drive control unit of the grinding machine.

【図3】〜FIG. 3

【図6】制御部の動作を示すフローチャート。FIG. 6 is a flowchart showing the operation of the control unit.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】工作機械の移動部を駆動させる駆動モータ
の回転軸に連結され、前記移動部の移動量に応じた増減
パルスを出力するインクリメンタリエンコーダと、前記
駆動モータの回転軸と同一の回転軸に連結され、前記移
動部の絶対位置を示す絶対値データを出力する絶対値エ
ンコーダで構成する工作機械エンコーダ部の診断装置に
おいて、 電源オフ時に、前記絶対値エンコーダからシリアル通信
路を介して送られてくる前記移動部の絶対値データを電
源オフ時に記憶する不揮発性メモリと、 電源オン時に前記絶対値エンコーダから送られてくる絶
対値データと前記不揮発性メモリに記憶されている絶対
値データとを比較し、その差が予め定めた許容範囲内に
ないときにアラーム報知を行う手段とを備えてなる、エ
ンコーダ診断装置。
1. An incremental encoder, which is connected to a rotary shaft of a drive motor for driving a moving part of a machine tool, and which outputs an increase / decrease pulse according to a moving amount of the moving part, and a rotary shaft of the drive motor. In a diagnostic device for a machine tool encoder unit, which is connected to a rotary shaft and is configured with an absolute value encoder that outputs absolute value data indicating the absolute position of the moving unit, when the power is off, from the absolute value encoder via a serial communication path. A non-volatile memory that stores the absolute value data of the moving unit that is sent when the power is turned off, and the absolute value data that is sent from the absolute value encoder when the power is turned on and the absolute value data that is stored in the non-volatile memory. And a means for issuing an alarm when the difference is not within a predetermined allowable range.
【請求項2】工作機械の移動部を駆動させる駆動モータ
の回転軸に連結され、前記移動部の移動量に応じた増減
パルスを出力するインクリメンタリエンコーダと、電源
オン時に前記移動部の絶対位置を示す絶対値データを出
力する絶対値エンコーダで構成する工作機械エンコーダ
部の診断装置において、 前記インクリメンタリエンコーダの出力パルスを計数す
るカウンタと、 該カウンタの計数値を電源オフ時に記憶する不揮発性メ
モリと、 電源オン時に前記絶対値エンコーダから送られてくる絶
対値データと前記不揮発性メモリに記憶されている位置
データとを比較し、その差が予め定めた許容範囲内にな
いときにアラーム報知を行う手段とを備えてなる、エン
コーダ診断装置。
2. An incremental encoder, which is connected to a rotary shaft of a drive motor for driving a moving part of a machine tool, and which outputs an increase / decrease pulse according to the moving amount of the moving part, and an absolute position of the moving part when the power is turned on. In a diagnostic device for a machine tool encoder unit configured with an absolute value encoder that outputs absolute value data indicating, a counter for counting output pulses of the incremental encoder, and a non-volatile memory for storing the count value of the counter when the power is turned off. When the power is turned on, the absolute value data sent from the absolute value encoder is compared with the position data stored in the non-volatile memory, and when the difference is not within the predetermined allowable range, an alarm is notified. An encoder diagnostic device comprising: means for performing.
【請求項3】工作機械の移動部を駆動させる駆動モータ
の回転軸に連結され、前記移動部の移動量に応じた増減
パルスを出力するインクリメンタリエンコーダと、電源
オン時に前記移動部の絶対位置を示す絶対値データを出
力する絶対値エンコーダで構成する工作機械エンコーダ
部の診断装置において、 前記インクリメンタリエンコーダの出力パルスを計数す
るカウンタと、 前記移動部の移動速度が一定以下のときに前記カウンタ
の計数値と絶対値エンコーダから送られてくる絶対値デ
ータとを比較し、その差が予め定めた許容範囲内にない
ときにアラーム報知を行う手段と、を備えてなるエンコ
ーダ診断装置。
3. An incremental encoder, which is connected to a rotary shaft of a drive motor for driving a moving part of a machine tool, and which outputs an increase / decrease pulse according to the moving amount of the moving part, and an absolute position of the moving part when the power is turned on. In a diagnostic device for a machine tool encoder unit configured with an absolute value encoder that outputs absolute value data indicating, a counter that counts output pulses of the incremental encoder, and the counter when the moving speed of the moving unit is equal to or less than a certain value. Of the absolute value data sent from the absolute value encoder and means for issuing an alarm when the difference is not within a predetermined allowable range.
JP32220094A 1994-12-26 1994-12-26 Encoder diagnostic device Pending JPH08178693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32220094A JPH08178693A (en) 1994-12-26 1994-12-26 Encoder diagnostic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32220094A JPH08178693A (en) 1994-12-26 1994-12-26 Encoder diagnostic device

Publications (1)

Publication Number Publication Date
JPH08178693A true JPH08178693A (en) 1996-07-12

Family

ID=18141075

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32220094A Pending JPH08178693A (en) 1994-12-26 1994-12-26 Encoder diagnostic device

Country Status (1)

Country Link
JP (1) JPH08178693A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006194766A (en) * 2005-01-14 2006-07-27 Toyo Electric Mfg Co Ltd Initial phase detector
JP2007214752A (en) * 2006-02-08 2007-08-23 Matsushita Electric Ind Co Ltd Method for automatically adjusting trapezoidal distortion of projector
WO2009119371A1 (en) * 2008-03-25 2009-10-01 山洋電気株式会社 Encoder for detecting batteryless absolute position
JP2010249720A (en) * 2009-04-17 2010-11-04 Nikon Corp Encoder
JP4660719B2 (en) * 2001-04-19 2011-03-30 マッスル株式会社 Position detection method and position detection apparatus
US8505210B2 (en) 2008-10-28 2013-08-13 Renishaw Plc Absolute encoder setup indication
JP2014044216A (en) * 2008-08-26 2014-03-13 Nikon Corp Encoder system and signal processing method
EP2833544A3 (en) * 2013-07-31 2015-12-30 Kabushiki Kaisha Yaskawa Denki Rotating electrical machine control apparatus and rotating electrical machine system
JP2017049192A (en) * 2015-09-04 2017-03-09 キヤノン株式会社 Position detection device, lens device and imaging device
US10084397B2 (en) 2016-07-29 2018-09-25 Semiconductor Components Industries, Llc Motor driver with multipurpose pin
JP2018200321A (en) * 2018-08-10 2018-12-20 キヤノン株式会社 Position detector, lens device, imaging apparatus, and command device
CN109381216A (en) * 2017-08-08 2019-02-26 通用电气公司 The motion control device and method, computer program of the mobile bed board of patient
US10503134B2 (en) 2016-07-29 2019-12-10 Semiconductor Components Industries, Llc Motor driver with multipurpose pin
US10623895B2 (en) 2014-11-11 2020-04-14 Canon Kabushiki Kaisha Position detection apparatus for detecting position of first member relative to second member, and lens apparatus, image pickup apparatus, and lens command apparatus each including the position detection apparatus

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4660719B2 (en) * 2001-04-19 2011-03-30 マッスル株式会社 Position detection method and position detection apparatus
JP2006194766A (en) * 2005-01-14 2006-07-27 Toyo Electric Mfg Co Ltd Initial phase detector
JP2007214752A (en) * 2006-02-08 2007-08-23 Matsushita Electric Ind Co Ltd Method for automatically adjusting trapezoidal distortion of projector
JP4692309B2 (en) * 2006-02-08 2011-06-01 パナソニック株式会社 Automatic keystone distortion adjustment method for projectors
US8526013B2 (en) 2008-03-25 2013-09-03 Sanyo Denki Co., Ltd. Batterless absolute encoder
WO2009119371A1 (en) * 2008-03-25 2009-10-01 山洋電気株式会社 Encoder for detecting batteryless absolute position
JP2009229396A (en) * 2008-03-25 2009-10-08 Sanyo Denki Co Ltd Encoder for detecting batteryless absolute position
KR101535094B1 (en) * 2008-03-25 2015-07-08 산요 덴키 가부시키가이샤 Encoder for detecting batteryless absolute position
JP4617368B2 (en) * 2008-03-25 2011-01-26 山洋電気株式会社 Battery-less absolute position detection encoder
JP2014044216A (en) * 2008-08-26 2014-03-13 Nikon Corp Encoder system and signal processing method
US8505210B2 (en) 2008-10-28 2013-08-13 Renishaw Plc Absolute encoder setup indication
JP2010249720A (en) * 2009-04-17 2010-11-04 Nikon Corp Encoder
EP2833544A3 (en) * 2013-07-31 2015-12-30 Kabushiki Kaisha Yaskawa Denki Rotating electrical machine control apparatus and rotating electrical machine system
US9287756B2 (en) 2013-07-31 2016-03-15 Kabushiki Kaisha Yaskawa Denki Rotating electrical machine control apparatus and rotating electrical machine system
US10623895B2 (en) 2014-11-11 2020-04-14 Canon Kabushiki Kaisha Position detection apparatus for detecting position of first member relative to second member, and lens apparatus, image pickup apparatus, and lens command apparatus each including the position detection apparatus
JP2017049192A (en) * 2015-09-04 2017-03-09 キヤノン株式会社 Position detection device, lens device and imaging device
US10859410B2 (en) 2015-09-04 2020-12-08 Canon Kabushiki Kaisha Position detection apparatus, lens apparatus, and image pickup apparatus
US10503134B2 (en) 2016-07-29 2019-12-10 Semiconductor Components Industries, Llc Motor driver with multipurpose pin
US10404194B2 (en) 2016-07-29 2019-09-03 Semiconductor Components Industries, Llc Motor driver with multipurpose pin
US10084397B2 (en) 2016-07-29 2018-09-25 Semiconductor Components Industries, Llc Motor driver with multipurpose pin
US10948891B2 (en) 2016-07-29 2021-03-16 Semiconductor Components Industries, Llc Motor driver with multipurpose pin
CN109381216A (en) * 2017-08-08 2019-02-26 通用电气公司 The motion control device and method, computer program of the mobile bed board of patient
JP2018200321A (en) * 2018-08-10 2018-12-20 キヤノン株式会社 Position detector, lens device, imaging apparatus, and command device

Similar Documents

Publication Publication Date Title
JPH08178693A (en) Encoder diagnostic device
EP0962281B1 (en) Industrial machine having abnormal vibration detecting function
US4281385A (en) Control system for a machine tool
JP2004252839A (en) Numerical controller
KR100222940B1 (en) Calibration method utilizing a sensor and its system
JPS61146454A (en) Method of positioning work of nc control machine and nc control machine for executing said method
US4417486A (en) Apparatus for angularly positioning
US4499792A (en) Apparatus for angularly positioning a rotary member
JP3405744B2 (en) Measuring method of workpiece and time-dependent change in machine tool
EP0688154B1 (en) Method of and apparatus for centering integrated circuit lead frame
JP2001030143A (en) Automatic measuring method and device for ball end mill tool
JP3010107B2 (en) Encoder system
JPH0425101B2 (en)
US20090192747A1 (en) Measurement system and method for monitoring the measurement system
JPS6125929Y2 (en)
JPH04336915A (en) Tooth alignment method for nc device
JP3433817B2 (en) Feed control device
JP3406765B2 (en) Tool position correction method and device for machine tool
JPH01274947A (en) Drive unit for nc table
JP3168767B2 (en) Grinding equipment
JPS63190582A (en) Open-phase detector for encoder
JPH0733133Y2 (en) Origin position detector
JPH04305118A (en) Incremental type encoder
JP6250894B2 (en) Numerical control device with coordinate value acquisition function that does not require skip signals or key operations
JPH0728513A (en) Error correction system for machine tool