JP2677016B2 - Numerical control unit - Google Patents

Numerical control unit

Info

Publication number
JP2677016B2
JP2677016B2 JP2335293A JP33529390A JP2677016B2 JP 2677016 B2 JP2677016 B2 JP 2677016B2 JP 2335293 A JP2335293 A JP 2335293A JP 33529390 A JP33529390 A JP 33529390A JP 2677016 B2 JP2677016 B2 JP 2677016B2
Authority
JP
Japan
Prior art keywords
numerical control
encoder
control unit
signal
servomotor
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.)
Expired - Fee Related
Application number
JP2335293A
Other languages
Japanese (ja)
Other versions
JPH04205324A (en
Inventor
純一 三戸
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2335293A priority Critical patent/JP2677016B2/en
Publication of JPH04205324A publication Critical patent/JPH04205324A/en
Application granted granted Critical
Publication of JP2677016B2 publication Critical patent/JP2677016B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Position Or Direction (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、数値制御部からの指令に基づいて回転駆
動するサーボモータの位置決めを的確に行なう数値制御
装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a numerical control device that accurately positions a servomotor that is rotationally driven based on a command from a numerical control unit.

[従来の技術] 第4図は、従来の数値制御装置におけるサーボ機構の
概略構成図であり、1はサーボ機構を含んだ数値制御装
置の全体を制御するCPU,2はサーボ機構を制御するCPU、
3はサーボモータ4を駆動するアクチュエータ、5はサ
ーボモータ4に取付けられたエンコーダで、サーボモー
タの回転に伴う変位を検出しパルス状の信号を出力す
る。6はこのエンコーダ5の出力パルスをカウントする
カウンタ回路を内蔵したエンコーダ用インターフェース
(I/F)である。
[Prior Art] FIG. 4 is a schematic configuration diagram of a servo mechanism in a conventional numerical controller, 1 is a CPU for controlling the entire numerical controller including the servo mechanism, and 2 is a CPU for controlling the servo mechanism. ,
Reference numeral 3 is an actuator for driving the servo motor 4, and 5 is an encoder attached to the servo motor 4, which detects a displacement caused by the rotation of the servo motor and outputs a pulse signal. Reference numeral 6 denotes an encoder interface (I / F) having a built-in counter circuit that counts the output pulses of the encoder 5.

したがって、メインのCPU1に読み込まれた移動指令
を、単位時間当たりの各サーボ軸の移動指令に分解し、
サーボ用CPU2にその指令値を渡し、一方、サーボ用CPU2
ではその指令値に実際にアクチュエータ3を動かすため
の出力としての補正を行ない、アクチュエータ3に出力
する。アクチュエータ3では、その指令値をサーボモー
タ4に印加する電圧、電流値に変換し、サーボモータ4
を回転駆動する。この状態で、エンコーダ5は、同心状
の2種類のスリットをもつ円盤7の各スリットを透過し
た光を2個のディテクタ8が検出することにより、第6
図に示すような互いに位相がずれたパルス信号が得ら
れ、このパルス信号はフイルタ回路9を経て波形整形し
た後、ドライバIC10により数値制御装置側へと伝送ライ
ン11を介して伝送される。数値制御装置側では、この2
種類のパルス信号をレシーバ12を介して受信し、それぞ
れフイルタ回路13を経てカウンタ回路14に入力され、こ
のカウンタ回路14では2つの信号の位相差により、サー
ボモータ4の回転方向を検出し、併せてその位相差によ
りカウントアップ/カウントダウンパルスを生成し、回
転方向によってカウントのアップ/ダウンを行なう。
Therefore, the movement command read into the main CPU1 is decomposed into movement commands for each servo axis per unit time,
The command value is passed to the servo CPU2, while the servo CPU2
Then, the command value is corrected as an output for actually moving the actuator 3, and is output to the actuator 3. The actuator 3 converts the command value into a voltage and current value to be applied to the servo motor 4, and the servo motor 4
Is driven to rotate. In this state, the encoder 5 detects the light transmitted through each slit of the disk 7 having two kinds of concentric slits by the two detectors 8 and
As shown in the figure, pulse signals whose phases are shifted from each other are obtained. The pulse signals are shaped by the filter circuit 9 and then transmitted by the driver IC 10 to the numerical controller via the transmission line 11. On the side of the numerical controller, this 2
Various kinds of pulse signals are received via the receiver 12 and input to the counter circuit 14 via the filter circuit 13, respectively. The counter circuit 14 detects the rotation direction of the servo motor 4 based on the phase difference between the two signals, and A count-up / count-down pulse is generated according to the phase difference, and count-up / down is performed depending on the rotation direction.

[発明が解決しようとする課題] 従来の数値制御装置は以上のように、エンコーダの出
力パルスを直接数値制御装置側に設けられたカウント回
路まで伝送しているので、伝送ラインに例えばノイズが
加わったような場合、各パルスが異常波形となり、直接
カウントアップ/カウントダウンパルスに影響を与え
て、カウンタ回路の内容が狂ってしまい、その結果、サ
ーボモータによる位置決めが正確に行なえないという問
題点があった。
[Problems to be Solved by the Invention] As described above, since the conventional numerical control device directly transmits the output pulse of the encoder to the counting circuit provided on the side of the numerical control device, noise is added to the transmission line. In such a case, each pulse becomes an abnormal waveform and directly affects the count-up / count-down pulse, causing the contents of the counter circuit to be incorrect, and as a result, positioning by the servo motor cannot be performed accurately. It was

この発明は、上記のような問題点を解決するためにな
されたもので、カウントアップ/カウントダウンパルス
のノイズによる影響をなくし、サーボモータの制御を正
確に行なうことのできる数値制御装置を得ることを目的
とする。
The present invention has been made in order to solve the above problems, and an object of the present invention is to obtain a numerical controller capable of eliminating the influence of the noise of the count-up / count-down pulse and accurately controlling the servomotor. To aim.

[課題を解決するための手段] この発明に係わる数値制御装置においては、数値制御
部からの指令に基づき回転駆動するサーボモータと、こ
のサーボモータに取り付けられその回転変位を検出して
変位に応じたパルス信号を発生するエンコーダと、この
エンコーダに設けられ前記パルス信号を計数するカウン
タ回路とを備え、前記カウンタ回路のカウント値を前記
数値制御部からの送信要求信号に応答して前記数値制御
部に出力するとともに、前記数値制御部からの送信要求
信号に応答して前記カウンタ回路のカウント値をラッチ
し、且つこのラッチされた今回値と前回の数値制御部か
らの送信要求信号によりラッチされているカウンタ回路
のカウント値の前回値とを比較し、今回と前回値との差
が所定値より大きいときにアラーム信号を前記数値制御
部に送信するアラーム発生回路を,前記エンコーダに設
けたものである。
[Means for Solving the Problems] In the numerical control device according to the present invention, a servomotor that is rotationally driven based on a command from the numerical control unit, and a rotational displacement that is attached to the servomotor is detected to respond to the displacement. An encoder for generating a pulse signal, and a counter circuit provided in the encoder for counting the pulse signal, and the numerical control unit in response to a transmission request signal from the numerical control unit for the count value of the counter circuit. And latches the count value of the counter circuit in response to the transmission request signal from the numerical control unit, and latches the latched current value and the previous transmission request signal from the numerical control unit. If the difference between the current value and the previous value is larger than the specified value, the alarm signal An alarm generating circuit to be transmitted to the numerical value control unit is provided in the encoder.

また、この発明に係わる数値制御装置においては、数
値制御部からの指令に基づき回転駆動するサーボモータ
と、このサーボモータに取り付けられてその回転変位を
検出して変位に応じたパルス信号を発生するエンコーダ
と、このエンコーダに設けられ前記パルス信号を計数す
るカウンタ回路とを備え、前記カウンタ回路のカウント
値を前記数値制御部からの送信要求信号に応答して数値
制御部に出力するとともに、前記数値制御部から前記エ
ンコーダに送信要求信号が所定時間経過しても送信され
ない場合,アラーム信号を前記数値制御部へ送信するア
ラーム発生回路を前記エンコーダに設けたものである。
Further, in the numerical control device according to the present invention, a servomotor that is rotationally driven based on a command from the numerical control unit, and a servomotor that is attached to the servomotor to detect its rotational displacement and generate a pulse signal corresponding to the displacement. An encoder and a counter circuit provided in the encoder for counting the pulse signal are provided, and the count value of the counter circuit is output to the numerical control unit in response to a transmission request signal from the numerical control unit, and the numerical value is also output. The encoder is provided with an alarm generation circuit for transmitting an alarm signal to the numerical control unit when the transmission request signal is not transmitted from the control unit to the encoder even after a predetermined time elapses.

また,この発明に係わる数値制御装置においては、数
値制御部からの指令に基づき回転駆動するサーボモータ
と、このサーボモータに取り付けられその回転変位を検
出して変位に応じたパルス信号を発生するエンコーダ
と、このエンコーダに設けられ前記パルス信号を計数す
るカウンタ回路と、このカウンタ回路のカウント値を前
記数値制御部からの送信要求信号に応答して前記数値制
御部にシリアル伝送する、前記エンコーダに設けられた
シリアル伝送手段と、前記エンコーダに設けられ、前記
エンコーダの発生する前記パルス信号を前記数値制御部
へ直接伝送する直接伝送手段と、前記エンコーダに設け
られ、前記数値制御部からの信号により、前記直接伝送
手段により前記エンコーダの発生する前記パルス信号を
前記数値制御部へ直接伝送する場合と、前記シリアル伝
送手段によりシリアル信号に変換した信号を前記数値制
御部へ伝送する場合とを切り替える手段とを備えたもの
である。
Further, in the numerical control device according to the present invention, a servomotor which is rotationally driven based on a command from the numerical control unit, and an encoder which is attached to the servomotor and which detects a rotational displacement of the servomotor and generates a pulse signal corresponding to the displacement. A counter circuit provided in the encoder for counting the pulse signal, and a counter circuit for serially transmitting the count value of the counter circuit to the numerical control unit in response to a transmission request signal from the numerical control unit. Provided serial transmission means, the encoder, the direct transmission means for directly transmitting the pulse signal generated by the encoder to the numerical control unit, and provided in the encoder, by the signal from the numerical control unit, The pulse signal generated by the encoder is directly transmitted to the numerical control unit by the direct transmission means. The case of transmission, in which a signal converted to a serial signal by the serial transmission means and means for switching between a case of transmitting to the numerical control unit.

[作用] この発明に係わる数値制御装置においては、エンコー
ダのカウント値を毎回チェックし、そのカウンタ値が不
連続性を示す場合には、そのカウント値に不具合が発生
したことを数値制御部へ知らせる。
[Operation] In the numerical control device according to the present invention, the count value of the encoder is checked every time, and if the count value shows discontinuity, the numerical control unit is notified that a defect has occurred in the count value. .

また、数値制御部から前記エンコーダに送信要求信号
が所定時間経過しても送信されない場合には、アラーム
信号により数値制御部へ知らせる。
Further, when the transmission request signal is not transmitted from the numerical control unit to the encoder within a predetermined time, the numerical control unit is notified by an alarm signal.

更にまた、数値制御部での信号処理形態に応じて、パ
ルス信号を直接伝送するか又はシリアル信号に変換して
伝送するかを選択できる。
Furthermore, depending on the signal processing form in the numerical control unit, it is possible to select whether to directly transmit the pulse signal or convert it into a serial signal for transmission.

[実施例] 以下、この発明の一実施例を第1図乃至第3図で説明
する。
[Embodiment] An embodiment of the present invention will be described below with reference to FIGS. 1 to 3.

第1図はこの発明が適用された数値制御装置の概略構
成図である。第1図において、1は数値制御装置の全体
を制御するメインのCPU、2はサーボ機構を制御するCP
U、3はサーボモータを実際に駆動制御するアクチュエ
ータ部、4はサーボモータ、5はサーボモータ4の反負
荷側に取付けたエンコーダで、A相、B相の二つの位置
検出信号パルスを出力する。これらの構成は従来と同様
である。20はエンコーダ5から出力されるA相、B相の
各信号をカウントするカウント回路を含むエンコーダ用
インターフェース(I/F)であり、21はカウンタ値のシ
リアル伝送データを送信するためのシリアルI/Oインタ
ーフェースであって、これらはエンコーダ5部分に予め
内蔵されている。第2図は、この発明によるエンコーダ
5の内部のハードウエア構成図であり、カスタムICから
構成されている。すなわち、エンコーダが同心状の2種
類のスリットをもつ円盤7と、そのスリットを透過する
光を検出して位相の異なる二つのパルス信号を出力する
するディテクタ8と、さらにこの二つの信号パルスを波
形整形するフイルター回路9から構成されていること
は、従来と同じである。22はフイルター回路9から出た
A相、B相の各信号パルスの位相差によりアップカウン
ト/ダウンカウントするカウンタ回路(CNT1)、23はカ
ウンタ回路22のカウントのオーバフロー/アンダーフロ
ーパルスを受けてカウントする上位カウンタ回路(CNT
2)、21は各カウンタ回路22、23のカウントデータをラ
ッチして数値制御装置側に送信するためのシリアルI/O
インターフェース(I/F)、25は数値制御装置側からカ
ウントデータ送信要求(RTS)に対し、カウントデータ
のラッチ及び送信用クロック、各カウンタ用クロックパ
ルスを供給するタイミング制御部、26は前回ラッチされ
たカウントデータと、今回ラッチされたカウントデータ
との差分をある固定値と比較して、その差が大すぎる場
合にアラームを発生するアラーム発生回路である。
FIG. 1 is a schematic configuration diagram of a numerical controller to which the present invention is applied. In FIG. 1, 1 is a main CPU that controls the entire numerical control device, and 2 is a CP that controls the servo mechanism.
U, 3 are actuators that actually drive and control the servo motor, 4 is a servo motor, and 5 is an encoder mounted on the anti-load side of the servo motor 4, and outputs two position detection signal pulses of A phase and B phase. . These configurations are the same as the conventional one. Reference numeral 20 is an encoder interface (I / F) including a counting circuit for counting each of the A-phase and B-phase signals output from the encoder 5, and 21 is a serial I / F for transmitting serial transmission data of the counter value. These are O interfaces, which are built in the encoder 5 part in advance. FIG. 2 is a hardware configuration diagram of the encoder 5 according to the present invention, which is configured by a custom IC. That is, the encoder has a disk 7 having two kinds of concentric slits, a detector 8 that detects light passing through the slits and outputs two pulse signals having different phases, and further waveforms of these two signal pulses. The filter circuit 9 for shaping is the same as the conventional one. 22 is a counter circuit (CNT1) that counts up / down depending on the phase difference between the A-phase signal pulse and the B-phase signal pulse output from the filter circuit 9, and 23 is a counter circuit that receives an overflow / underflow pulse of the counter circuit 22 Upper counter circuit (CNT
2) and 21 are serial I / Os for latching the count data of the counter circuits 22 and 23 and transmitting them to the numerical controller.
Interface (I / F), 25 is a timing control unit that supplies a count data latch and transmission clock, each counter clock pulse in response to a count data transmission request (RTS) from the numerical control device side, and 26 is previously latched The alarm generation circuit compares the difference between the count data and the count data latched this time with a certain fixed value and generates an alarm when the difference is too large.

次に動作について説明する。一般に数値制御装置で
は、サーボモータの位置を検出する場合に、あるタイミ
ングでカウントデータをサンプリングしており、それ以
外のタイミングでは各カウンタ22、23はサーボモータ4
の回転方向により、アップ/ダウンのカウントを実行し
ている。そこで、この発明では、サンプリングのタイミ
ングで、数値制御装置側からエンコーダ5に対し送信要
求(RTS)を送ると、エンコーダ側ではタイミング制御
部25がその信号を受けて各カウンタ22、23のカウントデ
ータをラッチさせ、このときのカウントデータをシリア
ルI/Oインターフェース21からCh.Aの信号線を通して数
値制御装置側に送信する。この場合において、前回のRT
S信号によりラッチされたカウントデータと、今回ラッ
チされたカウントデータとをアラーム発生回路6で比較
し、その差分が大きすぎると、このアラーム発生回路は
Ch.Bを通してアラーム信号を数値制御装置側に送出す
る。
Next, the operation will be described. Generally, in the numerical control device, when detecting the position of the servo motor, the count data is sampled at a certain timing, and at other timings, the counters 22 and 23 are set to the servo motor 4 respectively.
The up / down count is executed depending on the rotation direction of. Therefore, in the present invention, when a transmission request (RTS) is sent from the numerical control device side to the encoder 5 at the sampling timing, the timing control unit 25 on the encoder side receives the signal and count data of the counters 22 and 23 is counted. Is latched, and the count data at this time is transmitted from the serial I / O interface 21 to the numerical control device side through the signal line of Ch.A. In this case, the previous RT
The alarm generation circuit 6 compares the count data latched by the S signal with the count data latched this time, and if the difference is too large, the alarm generation circuit will
Sends an alarm signal to the numerical controller via Ch.B.

第3図は、カウントデータを伝送するタイミングの具
体例を示すもので、(イ)は要求信号(RTS)がサンプ
リングのタイミングに合わせて同期的にカウントデータ
が数値制御装置に向けて伝送されている正常な動作を示
し、(ロ)は要求信号(RTS)が1回抜けてしまったた
めに、Ch.Bの伝送路にアラーム信号が送られている状態
を示す。なお、このアラーム信号は次回の要求信号(RT
S)によりリセットされる。
FIG. 3 shows a specific example of the timing of transmitting the count data. (A) shows that the count signal is transmitted to the numerical control device synchronously in synchronization with the sampling timing of the request signal (RTS). Shows the normal operation, and (b) shows the state where the alarm signal is sent to the transmission path of Ch.B because the request signal (RTS) is missed once. This alarm signal is the next request signal (RT
It is reset by S).

また、前述の動作ではアラーム信号をカウントデータ
の前後のものを比較することにより発生させているが、
サーボモータが低速回転しているような場合には、カウ
ント値の差分が上限値に達しないので、要求信号(RT
S)からのタイマーによるアラーム発生方式としたほう
が良い。
In the above operation, the alarm signal is generated by comparing the count data before and after the count data.
If the servo motor is rotating at a low speed, the difference between the count values does not reach the upper limit, so the request signal (RT
It is better to use the timer from S) to generate an alarm.

また、第2図において、数値制御装置側からSEL信号
に切替えると、従来のエンコーダと等価になる。
Further, in FIG. 2, when the SEL signal is switched from the numerical control device side, it becomes equivalent to the conventional encoder.

さらに、第2図の電気回路をカスタムIC化すること
で、エンコーダに実装されている内部プリント基板にそ
のまま実装可能となり、全体コンパクトな構造とするこ
とができる。
Further, by customizing the electric circuit of FIG. 2 into a custom IC, it can be mounted on the internal printed circuit board mounted on the encoder as it is, and the entire structure can be made compact.

なお、上記実施例では、エンコーダの出力パルスをそ
のまま伝送する場合と、出力パルスをカウンタ回路に蓄
積したカウントデータをシリアルに伝送する場合とを切
替える構成としたが、両者を同時に伝送する構成として
もよく、特にこの場合には、数値制御装置側において伝
送されたパルスをカウントするカウンタI/Fを設けるこ
とにより、エンコーダ側と数値制御装置側の両者のカウ
ントデータが比較可能となり、信頼性の向上を図ること
ができる。
In the above embodiment, the configuration is switched between the case where the output pulse of the encoder is directly transmitted and the case where the count data accumulated in the counter circuit of the output pulse is transmitted serially, but it is also possible to transmit both of them at the same time. Well, especially in this case, by providing a counter I / F that counts the pulses transmitted on the numerical controller side, it becomes possible to compare the count data on both the encoder side and the numerical controller side, improving reliability. Can be achieved.

[発明の効果] この発明は、以上説明したように構成されているの
で、以下に記載されるような効果を奏する。
[Effects of the Invention] Since the present invention is configured as described above, it has the following effects.

即ち、数値制御部からの指令に基づき回転駆動するサ
ーボモータと、このサーボモータに取り付けられその回
転変位を検出して変位に応じたパルス信号を発生するエ
ンコーダと、このエンコーダに設けられ前記パルス信号
を計数するカウンタ回路とを備え、前記カウンタ回路の
カウント値を前記数値制御装置からの送信要求信号に応
答して前記数値制御部に出力するとともに、前記数値制
御部からの送信要求信号に応答して前記カウンタ回路の
カウント値をラッチし、且つこのラッチされた今回値と
前回の数値制御部からの送信要求信号によりラッチされ
ているカウンタ回路のカウント値の前回値とを比較し、
今回値と前回値との差が所定値より大きいときにアラー
ム信号を前記数値制御部に送信するアラーム発生回路
を、前記エンコーダに設けたので、制御周期、即ち要求
信号の発生間隔が異なる数値制御部であってもエンコー
ダとの間で自由に信号の送受信を行うことができるばか
りでなく、エンコーダの異常を常時検出することがで
き、ひいては信頼性が高く柔軟性のある数値制御装置を
得ることができる。
That is, a servomotor that is rotationally driven based on a command from a numerical control unit, an encoder that is attached to the servomotor and that detects a rotational displacement of the servomotor to generate a pulse signal corresponding to the displacement, and the pulse signal provided in the encoder. And a counter circuit that counts the output value to the numerical control unit in response to a transmission request signal from the numerical control device, and responds to a transmission request signal from the numerical control unit. Latch the count value of the counter circuit, and compare this latched current value with the previous value of the count value of the counter circuit latched by the previous transmission request signal from the numerical control unit,
Since the encoder is provided with an alarm generation circuit that transmits an alarm signal to the numerical control unit when the difference between the current value and the previous value is larger than a predetermined value, the numerical control in which the control cycle, that is, the generation interval of the request signal is different. Not only can send and receive signals to and from the encoder freely, but also can constantly detect encoder abnormalities, thus providing a highly reliable and flexible numerical control device. You can

また今回値と前回値の比較のためカウンタ回路のカウ
ント値をラッチするトリガとなる信号を、カウント回路
のカウント値を数値制御部に出力するトリガとなる信号
を用いているので、カウンタ回路のカウント値をラッチ
するトリガとなる信号を新たに作り出す必要がないとい
う特有の効果を奏する。
In addition, the signal that serves as a trigger for latching the count value of the counter circuit for comparing the current value with the previous value and the signal that serves as a trigger for outputting the count value of the count circuit to the numerical control unit are used. It has a unique effect that it is not necessary to newly generate a signal that becomes a trigger for latching a value.

また、数値制御部からの指令に基づき回転駆動するサ
ーボモータと、このサーボモータに取り付けられその回
転変位を検出して変位に応じたパルス信号を発生するエ
ンコーダと、このエンコーダに設けられ前記パルス信号
を計数するカウンタ回路とを備え、前記カウンタ回路の
カウント値を前記数値制御部からの送信要求信号に応答
して数値制御部に出力するとともに、前記数値制御部か
ら前記エンコーダに送信要求信号が所定時間経過しても
送信されない場合、アラーム信号を前記数値制御部へ送
信するアラーム発生回路を前記エンコーダに設けたの
で、制御周期、即ち要求信号の発生間隔が異なる数値制
御部であってもエンコーダとの間で自由に信号の送受信
を行うことができるばかりでなく、数値制御部側の異常
(エンコーダに対し数値制御部より所定時間経過後に送
信要求信号が送信されないこと)を検出でき、ひいては
信頼性が高く柔軟性のある数値制御装置を得ることがで
きるという特有の効果を奏する。
Further, a servomotor that is rotationally driven based on a command from the numerical control unit, an encoder that is attached to the servomotor and that detects a rotational displacement of the servomotor to generate a pulse signal according to the displacement, and the pulse signal provided in the encoder. And a counter circuit that counts the value of the counter circuit in response to a transmission request signal from the numerical control unit to the numerical control unit, and the numerical control unit sends a predetermined transmission request signal to the encoder. If the encoder is provided with an alarm generation circuit that transmits an alarm signal to the numerical control unit when it is not transmitted even after a lapse of time, even if the numerical control unit has a different control cycle, that is, a request signal generation interval, Not only is it possible to freely send and receive signals between Can detect that) a transmission request signal from the control unit after a predetermined time has elapsed is not sent, it exhibits a unique effect that it is possible to obtain a numerical controller and hence a high flexibility and reliability.

更にまた、数値制御部からの指令に基づき回転駆動す
るサーボモータと、このサーボモータに取り付けられそ
の回転変位を検出して変位に応じたパルス信号を発生す
るエンコーダと、このエンコーダに設けられ前記パルス
信号を計数するカウンタ回路と、このカウンタ回路のカ
ウント値を前記数値制御部からの送信要求信号に応答し
て前記数値制御部にシリアル伝送する、前記エンコーダ
に設けられたシリアル伝送手段と、前記エンコーダに設
けられ、前記エンコーダの発生する前記パルス信号を前
記数値制御部へ直接伝送する直接伝送手段と、前記エン
コーダに設けられ、前記数値制御部からの信号により、
前記直接伝送手段により前記エンコーダの発生する前記
パルス信号を前記数値制御部へ直接伝送する場合と、前
記シリアル伝送手段によりシリアル信号に変換した信号
を前記数値制御部へ伝送する場合とを切り替える手段と
を備えたので、制御周期、即ち要求信号の発生間隔が異
なる数値制御部であってもエンコーダとの間で自由に信
号の送受信を行うことができるばかりでなく、エンコー
ダと数値制御部間の配線変更作業なしに、エンコーダの
発生するパルス信号を数値制御部へ直接伝送する場合
と、シリアル信号に変換した信号を数値制御部へ伝送す
る場合とを切り替えることができ、ひいては信頼性が高
く柔軟性のある数値制御装置を得ることができるという
特有の効果を奏する。
Furthermore, a servomotor that is rotationally driven based on a command from the numerical control unit, an encoder that is attached to the servomotor and that detects a rotational displacement of the servomotor to generate a pulse signal according to the displacement, and the pulse provided on the encoder. A counter circuit for counting signals, serial transmission means provided in the encoder for serially transmitting a count value of the counter circuit to the numerical control unit in response to a transmission request signal from the numerical control unit, and the encoder And a direct transmission means for directly transmitting the pulse signal generated by the encoder to the numerical control section, and a signal provided from the numerical control section provided in the encoder,
Means for switching between the case where the pulse signal generated by the encoder is directly transmitted to the numerical control section by the direct transmission means and a case where a signal converted into a serial signal by the serial transmission means is transmitted to the numerical control section; Since it is equipped with, it is possible not only to send and receive signals freely with the encoder even if the numerical control unit has a different control cycle, that is, the generation interval of the request signal, and also to connect the encoder and the numerical control unit. It is possible to switch between transmitting the pulse signal generated by the encoder directly to the numerical control unit and transmitting the signal converted into a serial signal to the numerical control unit without any change work, which results in high reliability and flexibility. A unique effect of being able to obtain a certain numerical control device is exhibited.

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

第1図はこの発明の一実施例による数値制御装置の概略
構成図、第2図はそのエンコーダの回路構成図、第3図
はカウントデータの伝送動作を示す図、第4図は従来の
数値制御装置の概略構成図、第5図はそのエンコーダの
回路構成図、第6図はその信号波形図である。 1はメインCPU、2はサーボ用CPU、4はサーボモータ、
5はエンコーダ、20はエンコーダ用I/F、21はシリアルI
/OI/F、22はカウンタ回路、23は上体カウンタ回路、25
はタイミング制御部、26はアラーム発生回路、 図中、同一符号は同一または相当部分を示す。
FIG. 1 is a schematic configuration diagram of a numerical controller according to an embodiment of the present invention, FIG. 2 is a circuit configuration diagram of an encoder thereof, FIG. 3 is a diagram showing a count data transmission operation, and FIG. 4 is a conventional numerical value. FIG. 5 is a schematic configuration diagram of the control device, FIG. 5 is a circuit configuration diagram of the encoder, and FIG. 6 is a signal waveform diagram thereof. 1 is a main CPU, 2 is a servo CPU, 4 is a servo motor,
5 is an encoder, 20 is an encoder I / F, 21 is a serial I / F
/ OI / F, 22 counter circuit, 23 upper body counter circuit, 25
Is a timing control unit, 26 is an alarm generation circuit, and the same reference numerals in the drawings denote the same or corresponding portions.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】数値制御部からの指令に基づき回転駆動す
るサーボモータと、このサーボモータに取り付けられそ
の回転変位を検出して変位に応じたパルス信号を発生す
るエンコーダと、このエンコーダに設けられ前記パルス
信号を計数するカウンタ回路とを備え、前記カウンタ回
路のカウント値を前記数値制御部からの送信要求信号に
応答して前記数値制御部に出力するとともに、前記数値
制御部からの送信要求信号に応答して前記カウンタ回路
のカウント値をラッチし、且つこのラッチされた今回値
と前回の数値制御部からの送信要求信号によりラッチさ
れているカウンタ回路のカウント値の前回値とを比較
し、今回値と前回値との差が所定値より大きいときにア
ラーム信号を前記数値制御部に送信するアラーム発生回
路を、前記エンコーダに設けたことを特徴とする数値制
御装置。
1. A servomotor which is rotationally driven based on a command from a numerical control section, an encoder which is attached to the servomotor and which detects a rotational displacement of the servomotor to generate a pulse signal according to the displacement, and which are provided in the encoder. A counter circuit that counts the pulse signal, and outputs a count value of the counter circuit to the numerical control unit in response to a transmission request signal from the numerical control unit, and a transmission request signal from the numerical control unit. In response to, the count value of the counter circuit is latched, and this latched current value and the previous value of the count value of the counter circuit latched by the previous transmission request signal from the numerical control unit are compared, An alarm generation circuit for transmitting an alarm signal to the numerical control unit when the difference between the present value and the previous value is larger than a predetermined value is Numerical control device, characterized in that provided in the.
【請求項2】数値制御部からの指令に基づき回転駆動す
るサーボモータと、このサーボモータに取り付けられそ
の回転変位を検出して変位に応じたパルス信号を発生す
るエンコーダと、このエンコーダに設けられ前記パルス
信号を計数するカウンタ回路とを備え、前記カウンタ回
路のカウント値を前記数値制御部からの送信要求信号に
応答して数値制御部に出力するとともに、前記数値制御
部から前記エンコーダに送信要求信号が所定時間経過し
ても送信されない場合、アラーム信号を前記数値制御部
へ送信するアラーム発生回路を前記エンコーダに設けた
ことを特徴とする数値制御装置。
2. A servomotor which is rotationally driven based on a command from a numerical control section, an encoder which is attached to the servomotor and which detects a rotational displacement of the servomotor to generate a pulse signal corresponding to the displacement, and which are provided in the encoder. A counter circuit that counts the pulse signal, outputs the count value of the counter circuit to the numerical control unit in response to a transmission request signal from the numerical control unit, and requests the encoder to transmit from the numerical control unit. A numerical controller, wherein the encoder is provided with an alarm generation circuit for transmitting an alarm signal to the numerical controller when the signal is not transmitted even after a predetermined time has elapsed.
【請求項3】数値制御部からの指令に基づき回転駆動す
るサーボモータと、このサーボモータに取り付けられそ
の回転変位を検出して変位に応じたパルス信号を発生す
るエンコーダと、このエンコーダに設けられ前記パルス
信号を計数するカウンタ回路と、このカウンタ回路のカ
ウント値を前記数値制御部からの送信要求信号に応答し
て前記数値制御部にシリアル伝送する、。前記エンコー
ダに設けられたシリアル伝送手段と、前記エンコーダに
設けられ、前記エンコーダの発生する前記パルス信号を
前記数値制御部へ直接伝送する直接伝送手段と、前記エ
ンコーダに設けられ、前記数値制御部からの信号によ
り、前記直接伝送手段により前記エンコーダの発生する
前記パルス信号を前記数値制御部へ直接伝送する場合
と、前記シリアル伝送手段によりシリアル信号に変換し
た信号を前記数値制御部へ伝送する場合とを切り替える
手段とを備えたことを特徴とする数値制御装置。
3. A servomotor which is rotationally driven based on a command from a numerical control section, an encoder which is attached to the servomotor and which detects a rotational displacement of the servomotor to generate a pulse signal corresponding to the displacement, and which are provided in the encoder. A counter circuit that counts the pulse signal, and serially transmits a count value of the counter circuit to the numerical control unit in response to a transmission request signal from the numerical control unit. Serial transmission means provided in the encoder, direct transmission means provided in the encoder for directly transmitting the pulse signal generated by the encoder to the numerical control section, and provided in the encoder, from the numerical control section In the case of directly transmitting the pulse signal generated by the encoder by the direct transmission means to the numerical control unit by the signal of, and in the case of transmitting the signal converted into the serial signal by the serial transmission unit to the numerical control unit. And a means for switching between the two.
JP2335293A 1990-11-30 1990-11-30 Numerical control unit Expired - Fee Related JP2677016B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2335293A JP2677016B2 (en) 1990-11-30 1990-11-30 Numerical control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2335293A JP2677016B2 (en) 1990-11-30 1990-11-30 Numerical control unit

Publications (2)

Publication Number Publication Date
JPH04205324A JPH04205324A (en) 1992-07-27
JP2677016B2 true JP2677016B2 (en) 1997-11-17

Family

ID=18286904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2335293A Expired - Fee Related JP2677016B2 (en) 1990-11-30 1990-11-30 Numerical control unit

Country Status (1)

Country Link
JP (1) JP2677016B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100376720B1 (en) * 2000-12-30 2003-03-17 현대자동차주식회사 An imitating encoder signal generating device and a method thereof
JP6235506B2 (en) * 2015-03-05 2017-11-22 ファナック株式会社 Data measurement device that measures physical data by switching communication destinations

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62280907A (en) * 1986-05-29 1987-12-05 Fanuc Ltd Positioning system
JPS6362008A (en) * 1986-09-03 1988-03-18 Matsushita Electric Ind Co Ltd Control system
JPH01276010A (en) * 1988-04-27 1989-11-06 Shin Meiwa Ind Co Ltd Diagnostic method for position detecting device
JPH01313713A (en) * 1988-06-13 1989-12-19 Mitsubishi Electric Corp Digital displacement sensor

Also Published As

Publication number Publication date
JPH04205324A (en) 1992-07-27

Similar Documents

Publication Publication Date Title
US5652494A (en) Angle controller for a switched reluctance drive utilizing a high frequency clock
CA2172666A1 (en) Position encoder
US4882529A (en) Pulse encoder
JP2677016B2 (en) Numerical control unit
JP2690210B2 (en) Elevator speed detector
JP3989767B2 (en) Multi-turn encoder
JPS59112308A (en) Numerical controller
JPH0789399B2 (en) Encoder transmission line abnormality detection circuit
JP2515443B2 (en) Encoder output pulse open phase detector
JP2597977B2 (en) Reference point setting method for position detection circuit
JP3144877B2 (en) Backup type absolute position encoder
JPS63190582A (en) Open-phase detector for encoder
JPH0230521B2 (en)
JP2542184B2 (en) Origin positioning method
JPH05164541A (en) Moving position calibrator
JP2579605B2 (en) Robot origin alignment method
JP2507141B2 (en) Contact type encoder signal processor
JPS58184508A (en) Position detecting device
JPH07111357B2 (en) Encoder abnormality detection device
JPH077985A (en) Digital type speed detector and speed controller of electric motor using the same
JPH0626883A (en) Multiple revolution type absolute encoder
SU1631565A1 (en) Interpolator for stepper graph plotter
JP2590569B2 (en) Robot origin positioning method
JP2529185B2 (en) Motor control circuit
JPH0336608A (en) Position detecting circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees