JPH02236703A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH02236703A
JPH02236703A JP5909289A JP5909289A JPH02236703A JP H02236703 A JPH02236703 A JP H02236703A JP 5909289 A JP5909289 A JP 5909289A JP 5909289 A JP5909289 A JP 5909289A JP H02236703 A JPH02236703 A JP H02236703A
Authority
JP
Japan
Prior art keywords
numerical control
control device
signal
data
external signal
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
JP5909289A
Other languages
Japanese (ja)
Inventor
Shoichi Otsuka
大塚 昭一
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP5909289A priority Critical patent/JPH02236703A/en
Publication of JPH02236703A publication Critical patent/JPH02236703A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Position Or Direction (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To simplify the constitution of hardware and to detect a coordinate value with high accuracy even in fast travel by operating the position of a control axis at a time when an external signal is inputted from present position data read out periodically and data read out by an interruption processing. CONSTITUTION:The present position data of a moving touch sensor 8 is stored in a RAM 3 at every ITP cycle signal of an interval timer 11. A register 12 holds data of low-order bit in the interval timer counter 11 simultaneously with the input of a skip signal. Meanwhile, a microprocessor 1 executes the interruption processing to read out high-order bit data in the interval timer counter 11 and low-order bit data in the register 12 by the skip signal after inputting the external signal. The position of the control axis at the time when the external signal is inputted is operated from the present position data read out periodically and the data read out by the interruption processing. Thereby, the constitution of the hardware can be simplified, and the coordinate value can be detected with high accuracy even in the fast travel.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は工作機械等を制御する数値制御装置に係り、特
に位置計測又は位置決め等を制御するスキップ機能を有
する数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device for controlling machine tools and the like, and particularly to a numerical control device having a skip function for controlling position measurement, positioning, etc.

〔従来の技術〕[Conventional technology]

数値制御装置の中でも1軸制御用の数値制御装置は加工
及び計測等を行う一般産業機械に利用される。このよう
な産業機械では、外部信号入力に応じて軸の位置計測又
は位置決め等の制御を実行するため、数値制御装置側に
スキップ機能が要求される。
Among numerical control devices, one-axis control numerical control devices are used in general industrial machines that perform processing, measurement, and the like. In such industrial machines, a skip function is required on the numerical control device side in order to perform control such as axis position measurement or positioning in response to external signal input.

以下、スキップ機能について説明する。第3図はスキッ
プ機能の概念を示す図である。数値制御装置は点Al−
A2−A3を通過するような移動指令を受け、それを点
AIからA2までの第1ブロック、A2からA3までの
第2ブロックの順番で実行する。この移動指令の第1ブ
ロック実行中の点A4の位置で外部から外部信号(スキ
ップ信号)SKが入力されると、数値制御装置はこの移
動指令の残りの実行を中止して次の第2ブロックを実行
する。即ち、外部信号SKの入力された点A4から第2
ブロック実行後の点A5へ移動する.このように、移動
指令の途中に外部から外部信号が入力された場合に、実
行中の移動指令の残りを中止して次のブロックを実行す
ることをスキップ機能という。
The skip function will be explained below. FIG. 3 is a diagram showing the concept of the skip function. The numerical controller is at point Al-
It receives a movement command to pass through A2-A3 and executes it in the order of a first block from point AI to A2 and a second block from A2 to A3. When an external signal (skip signal) SK is input from the outside at the position of point A4 during execution of the first block of this movement command, the numerical control device stops execution of the rest of this movement command and starts the next second block. Execute. That is, from the point A4 where the external signal SK is input, the second
Move to point A5 after block execution. In this way, when an external signal is input from the outside during a movement command, canceling the rest of the movement command being executed and executing the next block is called a skip function.

このスキップ機能では、外部信号の入力された時点(第
3図の点A4)の座標値(現在位置)が数値制御装置内
に格納されるので、移動量が明確でない場合等の位置計
測又は位置決め等に利用することができる。例えば、工
具をタッチセンサ等につきあてての工具の測定等に利用
できる。
With this skip function, the coordinate value (current position) at the time when the external signal is input (point A4 in Figure 3) is stored in the numerical control device, so it can be used for position measurement or positioning when the amount of movement is unclear. It can be used for etc. For example, it can be used to measure a tool by placing the tool against a touch sensor or the like.

従来、数値制御装置内部ではこのスキップ機能を実現す
るために、外部信号(スキップ信号)をマイクロプロセ
ッサ(CPU)の割込み信号として捉え、ソフトウェア
の割込み処理で実行し、外部信号の入力された時点の座
標値(現在位置)を認識している。
Conventionally, in order to realize this skip function inside a numerical control device, an external signal (skip signal) is captured as an interrupt signal of the microprocessor (CPU), and executed by software interrupt processing, and the skip function is executed at the time when the external signal is input. Coordinate values (current position) are recognized.

また、このスキップ機能を実現するために数値制御装置
内部に、インターバルタイマから出力されるITP (
補間)周期信号に同期して、その周期内のシステムクロ
ックの数を計数するサイクリックカウンタを設けている
。そして、外部信号(スキップ信号)入力と同時にその
カウンタをストップさせ、ITP (補間)周期毎に読
み出される現在位置レジスタの値とそのカウンタの値と
を演算処理することによって外部信号の入力された時点
の座標値(現在位置)を認識している。
In addition, in order to realize this skip function, the ITP (
Interpolation) A cyclic counter is provided that is synchronized with the periodic signal and counts the number of system clocks within the period. Then, the counter is stopped at the same time as the external signal (skip signal) is input, and the value of the current position register read every ITP (interpolation) cycle and the value of the counter are processed to calculate the time when the external signal is input. The coordinate values (current position) are recognized.

(発明が解決しようとする課題) しかし、上記のようなソフトウエアの割込み処理の場合
、マイクロプロセッサ(CPU)は外部信号を入力後、
その割込みの解析を行い、その外部信号がスキップ信号
であると認識後、座標値(現在位置)の演算を実行する
。従って、スキップ信号入力から座標値(現在位置)の
演算を実行するまでに時間が掛かるので、スキップ信号
入力時の移動速度が大きければ大きい程、正確な座標値
を認識することができなくなるという問題がある。
(Problem to be Solved by the Invention) However, in the case of software interrupt processing as described above, after inputting an external signal, the microprocessor (CPU)
After analyzing the interrupt and recognizing that the external signal is a skip signal, the coordinate value (current position) is calculated. Therefore, since it takes time to calculate the coordinate values (current position) after the skip signal is input, the problem is that the faster the moving speed when the skip signal is input, the less accurate coordinate values can be recognized. There is.

また、サイクリックカウンタを設けた場合、例えばシス
テムクロツクが1μsecで、ITP(補間)周期が8
ms e cの場合、8000カウントのサイクリック
カウンタをスキップ機能専用として準備しなければなら
ず、ハードウェア上の負担が大きいという問題がある。
Furthermore, if a cyclic counter is provided, for example, if the system clock is 1 μsec, the ITP (interpolation) period is 8
In the case of msec, an 8000-count cyclic counter must be prepared exclusively for the skip function, which poses a problem in that it imposes a heavy burden on the hardware.

本発明はこのような点に鑑みてなされたものであり、ハ
ードウェアが簡略化され、かつ高速移動時でも高精度に
座標値を検出することのできるスキップ機能を有する数
値制御装置を提供することを目的とする。
The present invention has been made in view of the above points, and an object of the present invention is to provide a numerical control device having a skip function that has simplified hardware and can detect coordinate values with high precision even when moving at high speed. With the goal.

同期して前記制御軸の現在位置データを周期的に読出し
、前記インターバルタイマカウンタの前記下位ビット以
外の上位ビットデータと前記記憶回路内の下位ビットデ
ータとを読出す割込み処理を前記外部信号入力後に実行
し、前記周期的に読み出した現在位置データと前記割込
み処理によって読み出した第1及び第2のデータとから
前記外部信号の入力された時点における前記制御軸の位
置を演算するマイクロプロセッサとを有することを特徴
とする数値制御装置が、提供される。
After inputting the external signal, interrupt processing is performed to synchronously read current position data of the control axis periodically, and read out upper bit data other than the lower bit of the interval timer counter and lower bit data in the storage circuit. and a microprocessor that calculates the position of the control axis at the time when the external signal is input from the current position data read periodically and the first and second data read by the interrupt processing. A numerical control device is provided.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では上記課題を解決するために、外部信号の入力
された時点における制御軸の位置を検出する数値制御装
置において、システムクロックをカウントすることによ
って一定周期毎にタイミング信号を出力するインターバ
ルタイマカウンタと、前記外部信号の入力された時点で
前記インターバルタイマカウンタの下位ビットのデータ
を保持する記憶回路と、前記タイミング信号に〔作用〕 CPUの処理の時間管理を行うためのインターバルタイ
マカウンタを利用し、これの出力の一部(下位ビット)
を外部信号が入力された時点で保持する記憶回路を設け
る。インターバルタイマカウンタの上位ビットは、外部
信号が入力された時点から割り込みによってCPUが読
みとるまでの間、ほとんど変化する可能性がない。従っ
て、インターバルタイマカウンタの値をそのままCPU
で読み取っても測定精度に誤差は生じないので、CPU
はソフトウェアにより外部信号が入力された時点の細か
な単位の時間を知ることができる。
In order to solve the above problems, the present invention uses an interval timer counter that outputs a timing signal at regular intervals by counting the system clock in a numerical control device that detects the position of a control axis at the time when an external signal is input. a memory circuit that holds data of lower bits of the interval timer counter at the time when the external signal is input; , part of the output of this (lower bits)
A memory circuit is provided to hold the data at the time when an external signal is input. The upper bits of the interval timer counter are unlikely to change from the time an external signal is input until they are read by the CPU by an interrupt. Therefore, the value of the interval timer counter is used as is by the CPU.
Since there is no error in measurement accuracy even if the CPU
The software allows you to know the time in minute units at the time the external signal was input.

しかし、まれにカウンタの桁上げがありその値が変化し
てしまうことがあるので、その桁上げを中間キャリフラ
グとして記憶する。これにより、CPUは補正演算を行
い、正確な値を演算処理する.〔実施例〕 以下、本発明の一実施例を図面に基づいて説明する。
However, in rare cases, there is a carry of the counter and its value changes, so the carry is stored as an intermediate carry flag. As a result, the CPU performs correction calculations and calculates accurate values. [Example] Hereinafter, an example of the present invention will be described based on the drawings.

第1図は本発明を実施するための数値制御装置のハード
ウエアの概略構成図である。図において、マイクロプロ
セッサ(CPU)1はROM2に格納されたシステムプ
ログラムに従って数値制御装置全体を制御する。ROM
2にはEFROMあるいはEEFROMが使用される。
FIG. 1 is a schematic diagram of the hardware of a numerical control device for implementing the present invention. In the figure, a microprocessor (CPU) 1 controls the entire numerical control device according to a system program stored in a ROM 2. ROM
2 uses EFROM or EEFROM.

RAM3はDRAM等が使用され、各種のデータあるい
は入出力信号が格納される。位置制御回路4はマイクロ
プロセッサ1からの位置指令を受けて、サーボモータ6
を制御するための速度指令信号をサーボアンプ5に出力
する。サーボアンプ5はこの速度指令信号を増幅し、サ
ーボモータ6を駆動する。
A DRAM or the like is used as the RAM 3, and various data or input/output signals are stored therein. The position control circuit 4 receives a position command from the microprocessor 1 and controls the servo motor 6.
A speed command signal for controlling the servo amplifier 5 is output to the servo amplifier 5. Servo amplifier 5 amplifies this speed command signal and drives servo motor 6.

サーボモータ6には図示していないが位置帰還信号を出
力する位置検出器と速度帰還信号を出力するタコジェネ
レー夕とがそれぞれ結合されている。位置検出器にはパ
ルスコーダ等が使用され、位置帰還パルスを位置制御回
路4にフィードバックする。タコジェネレー夕はサーボ
モータ6の回転速度に応じた電圧信号をサーボアンプ5
にフィードバックする。
Although not shown, the servo motor 6 is connected to a position detector that outputs a position feedback signal and a tachogenerator that outputs a speed feedback signal. A pulse coder or the like is used as the position detector, and feeds back position feedback pulses to the position control circuit 4. The tacho generator sends a voltage signal corresponding to the rotational speed of the servo motor 6 to the servo amplifier 5.
Give feedback.

ボールネジ7はサーボモータ6に結合されており、サー
ボモータ6の回転に同期して回転する。
The ball screw 7 is connected to the servo motor 6 and rotates in synchronization with the rotation of the servo motor 6.

タッチセンサ8はボールネジ7の回転によって移動し、
被測定物に接触すると接触信号を出力する。
The touch sensor 8 is moved by the rotation of the ball screw 7,
When it comes into contact with the object to be measured, it outputs a contact signal.

スキップ信号発生回路10はタッチセンサ8の接触信号
を入力し、スキップ信号を発生する。このスキップ信号
はレジスタ12へ出力されると共に、バス9を介してマ
イクロプロセッサ1への割込み信号として出力される。
The skip signal generation circuit 10 receives the contact signal from the touch sensor 8 and generates a skip signal. This skip signal is output to the register 12 and is also output as an interrupt signal to the microprocessor 1 via the bus 9.

タッチセンサ8の現在位置データは位置制御回路4から
バス9を介してRAM3に格納される。この格納のタイ
ミングはインターバルタイマカウンタ1lの出力するI
TP(補間)周期信号によって行われる。
Current position data of the touch sensor 8 is stored in the RAM 3 from the position control circuit 4 via the bus 9. The timing of this storage is determined by the I output from the interval timer counter 1l.
This is done using a TP (interpolation) periodic signal.

インターバルタイマカウンタ11はシステムクロックを
入力し、それをカウントすることによって所定のタイミ
ング信号を出力する。ITP周期信号は通常8ms e
 cであり、システムクロックは1μsecである。従
って、インターバルタイマカウンタ11はシステムクロ
ックを8000カウント毎にITP周期信号を出力する
The interval timer counter 11 inputs a system clock and outputs a predetermined timing signal by counting it. ITP periodic signal is usually 8ms e
c, and the system clock is 1 μsec. Therefore, the interval timer counter 11 outputs an ITP periodic signal every 8000 counts of the system clock.

レジスタ12はインターバルタイマカウンタ11の下位
ビット(LSB)のデータを格納し、スキップ信号発生
回路10のスキップ信号によってそのデータを保持する
。レジスク12内のデータはバッファ14を介してバス
9へ出力される。インターバルタイマ11の上位ビット
(MSB)は、バッファ14を介してバス9へ直接出力
される。
The register 12 stores the lower bit (LSB) data of the interval timer counter 11 and holds the data by the skip signal from the skip signal generation circuit 10. The data in the register 12 is output to the bus 9 via the buffer 14. The most significant bit (MSB) of interval timer 11 is directly output to bus 9 via buffer 14 .

レジスタ12はインターバルタイマカウンタ1lの約2
0μsec分(16〜32カウント分)を格納できる容
量とする。
The register 12 is about 2 of the interval timer counter 1l.
It has a capacity that can store 0 μsec (16 to 32 counts).

中間キャリーフラッグ発生回路13はインターバルタイ
マカウンタ11の下位ビット(LSB)と上位ビット(
MSB)との境界で生じた桁上げを示すフラッグを発生
する。発生したフラッグはバッファ14を介してバス9
へ出力される。バッファ14のデータはマイクロプロセ
ッサ1からの続出し指令によって読み出される。
The intermediate carry flag generation circuit 13 outputs the lower bit (LSB) and upper bit (LSB) of the interval timer counter 11.
A flag is generated to indicate a carry that occurred on the boundary with MSB). The generated flag is transferred to bus 9 via buffer 14.
Output to. The data in the buffer 14 is read out in response to a continuation command from the microprocessor 1.

次に、本実施例の動作を説明する。サーボモータ6はマ
イクロプロセッサ1の移動指令に応じて回転し、タッチ
センサ8を移動させる。移動するタッチセンサ8の現在
位置データはインターバルタイマ11のITP周期信号
毎にRAM3に格納される。そして、移動指令の途中に
タッチセンサ8から接触信号が発生すると、スキップ信
号発生回路10からスキップ信号が出力される。スキッ
プ信号はレジスタ12とマイクロプロセッサ1に取り込
まれる。
Next, the operation of this embodiment will be explained. The servo motor 6 rotates in response to a movement command from the microprocessor 1 and moves the touch sensor 8. Current position data of the moving touch sensor 8 is stored in the RAM 3 every ITP periodic signal of the interval timer 11. When a contact signal is generated from the touch sensor 8 during the movement command, a skip signal is output from the skip signal generation circuit 10. The skip signal is taken into register 12 and microprocessor 1.

レジスタ12はスキップ信号の入力と同時にインターバ
ルタイマカウンタ11の下位ビット(LSB)のデータ
を保持する。一方、マイクロプロセッサ1はスキップ信
号によってバッファ14のデータを読み出すための割込
み処理を実行する。
The register 12 holds the lower bit (LSB) data of the interval timer counter 11 at the same time as the skip signal is input. On the other hand, the microprocessor 1 executes interrupt processing for reading data from the buffer 14 in response to the skip signal.

このときマイクロプロセッサ1はスキップ信号入力後、
その割込みの解析を行ってからバッファ14のデータを
読み出す。従って、バッファ14にマイクロプロセッサ
1から読出し信号が入力された時点ではインターバルタ
イマカウンタ11の値は変化していることになる。即ち
、スキップ信号発生からバッファ14を読出すまでの間
にインターバルタイマカウンタ11はシステムクロック
をカウントする。
At this time, after inputting the skip signal, the microprocessor 1
After analyzing the interrupt, the data in the buffer 14 is read out. Therefore, at the time when the read signal from the microprocessor 1 is input to the buffer 14, the value of the interval timer counter 11 has changed. That is, the interval timer counter 11 counts the system clock from the generation of the skip signal until the buffer 14 is read.

しかし、この間に変化するのはインターバルタイマカウ
ンタ11の下位ビット(LSB)であり、上位ビット(
MSB)はほとんど変化しない。従って、マイクロプロ
セッサ1からの読出し信号入力時点で、バッファ14の
データを読み出すことによって、スキップ信号発生時の
インターバルタイマカウンタ11の値を正確に読み出す
ことができる。
However, what changes during this time is the lower bit (LSB) of the interval timer counter 11, and the upper bit (
MSB) remains almost unchanged. Therefore, by reading the data in the buffer 14 at the time when the read signal is input from the microprocessor 1, it is possible to accurately read the value of the interval timer counter 11 when the skip signal is generated.

レジスタ12にはスキップ信号発生からバッファ14の
読出しまでの間に発生するシステムクロックを充分に吸
収することができる程度の容量のものを設けているが、
マイクロプロセッサ1が他の優先度の高い処理を実行し
ていてバッファ14の読出しまでに時間が掛かった場合
、下位ビット(LSB)と上位ビット(MSB)との間
で桁上げが発生し、正確な値を読み取ることができなく
なる。そこで、桁上げの発生を検出するために上位ビッ
ト(MSB)の下位側に中間キャリーフラグ発生回路1
3を設け、桁上げの有無をフラグとして立てるようにす
る。従って、マイクロプロセッサ1はバッファl4のデ
ータを読出し、桁上げフラグが立っている場合はその分
を減算して補正処理する。
The register 12 is provided with a capacity that can sufficiently absorb the system clock generated between the generation of the skip signal and the readout of the buffer 14.
If the microprocessor 1 is executing other high-priority processing and it takes time to read the buffer 14, a carry will occur between the lower bit (LSB) and the upper bit (MSB), resulting in It becomes impossible to read the value. Therefore, in order to detect the occurrence of a carry, an intermediate carry flag generation circuit 1 is installed on the lower side of the upper bit (MSB).
3 is provided, and the presence or absence of a carry is set as a flag. Therefore, the microprocessor 1 reads the data in the buffer l4, and if the carry flag is set, subtracts the amount and performs correction processing.

次に上記実施例の数値制御装置をトランスファーライン
上で使用する場合について説明する。
Next, a case will be described in which the numerical control device of the above embodiment is used on a transfer line.

自動車産業分野に代表される多量生産ライン向けの加工
機械及び組立・検査機械等の制御装置として、NC装置
をライン上に組み込んだトランスファーライン用NC装
置が使用されるようになってきている。このトランスフ
ァーライン上で加工が終了した後に、その加工結果を測
定する測定ステーションを設ける場合がある、以下、そ
の計測ステーションの実施例について説明する。
2. Description of the Related Art Transfer line NC devices incorporating an NC device on the line have come to be used as control devices for processing machines, assembly/inspection machines, etc. for mass production lines, such as those in the automobile industry. After machining is completed on this transfer line, a measuring station may be provided to measure the machining results.Hereinafter, an embodiment of the measuring station will be described.

第2図は本発明の数値制御装置をトランスファーライン
上で使用する場合の実施例の全体構成を示す図である。
FIG. 2 is a diagram showing the overall configuration of an embodiment in which the numerical control device of the present invention is used on a transfer line.

本実施例では一軸制御NC装置を対象に説明する。In this embodiment, a single-axis control NC device will be described.

主制御手段20は通信プロトコル制御手段22、系統間
制御手段28、テープ記憶手段29及びPC制御手段2
1から構成される。通信プロトコル制御手段22は外部
に設けられたLAN23との間のプロトコルを制御する
。系統間制御手段28はCRT/MD I 2 4、手
動パルス発生器25及び外部インターフェース(RS−
232C)26の各系統間の制御を行い、またシリアル
ボート管理も行う。テープ記憶手段29は系統間制御手
段28からのデータを一時的に記憶する。PC制御手段
21はDI/DO27を介して外部信号のやりとりを行
う。また、PC制御手段21は加工ステーションの一軸
制御NC装置43a及び測定ステーションの一軸制御N
C装置43bにシリアル・リンク・制御回路(SLC)
32a及び32bを介して通信回線L1、L2及びL3
で接続される。シリアル・リンク・制御回路(SLC)
32a及び32bは一軸制御NC装置のシーケンス制御
を実行するPC部31a及び3lb内に設けられる。図
では一軸制?IIINC装置は2つだけ示したが、トラ
ンスファーライン41の状態によってはこれ以上の連結
でもよいことはいうまでもない。
The main control means 20 includes a communication protocol control means 22, an intersystem control means 28, a tape storage means 29, and a PC control means 2.
Consists of 1. The communication protocol control means 22 controls the protocol with an external LAN 23. The intersystem control means 28 includes a CRT/MD I2 4, a manual pulse generator 25, and an external interface (RS-
232C) performs control between each system of 26, and also performs serial boat management. The tape storage means 29 temporarily stores data from the intersystem control means 28. The PC control means 21 exchanges external signals via the DI/DO 27. Further, the PC control means 21 includes a uniaxial control NC device 43a of the processing station and a uniaxial control N of the measurement station.
A serial link control circuit (SLC) is installed in the C device 43b.
Communication lines L1, L2 and L3 via 32a and 32b
Connected with Serial link control circuit (SLC)
32a and 32b are provided in PC sections 31a and 3lb that execute sequence control of the single-axis control NC device. Is it a single axis system in the diagram? Although only two IIINC devices are shown, it goes without saying that more than this may be connected depending on the state of the transfer line 41.

ワークはトランスファーライン41によって矢印42の
方向へ移動する。そして、加工ステーションの一軸制御
NC装置43aによって制御される工具40によって所
定の加工が施される。加工ステーションでの加工終了後
、ワークはトランスファーライン41によって次の測定
ステーションに移動する。測定ステーションではタッチ
センサ39を制御する一軸制′41]NC装置によって
ワークの加工状態が計測される。
The workpiece is moved in the direction of arrow 42 by transfer line 41. Then, predetermined machining is performed by the tool 40 controlled by the uniaxial control NC device 43a of the machining station. After finishing the machining at the machining station, the workpiece is moved to the next measuring station by the transfer line 41. At the measurement station, the machining state of the workpiece is measured by a single-axis NC device that controls the touch sensor 39.

一軸制御NC装置43aと1軸制御NC装置43bとは
制御対象が工具40かクッチセンサ39かの違いを除け
ば共に同じ構成であるので、ここでは一軸制御NC装置
43aについて説明する。
Since the single-axis control NC device 43a and the single-axis control NC device 43b have the same configuration except for the difference in whether the object to be controlled is the tool 40 or the Cucci sensor 39, the single-axis control NC device 43a will be explained here.

一軸制御NC装置43aは軸制御機能を実行するNC部
35aとシーケンス制御機能を実行するPC部31aと
からなる。
The single-axis control NC device 43a includes an NC section 35a that executes an axis control function and a PC section 31a that executes a sequence control function.

NC部35aは第1図のCPUI、ROM2、RAM3
等で構成される。サーボアンプ36aはNG部35aか
ら軸の移動指令を受け、サーボモータ37aの回転を制
御する。サーボモータ37aに直結してあるボールネジ
によって工具40(タッチセンサ39)は移動する。ト
ランスファーライン41上を移動してきたワークはこの
工具40によって所望形状に加工される。ワークは加工
終了後、トランスファーライン41上を移動し、次の測
定ステーションへ移動する。
The NC unit 35a includes the CPUI, ROM2, and RAM3 in FIG.
Consists of etc. The servo amplifier 36a receives an axis movement command from the NG section 35a and controls the rotation of the servo motor 37a. The tool 40 (touch sensor 39) is moved by a ball screw directly connected to the servo motor 37a. A workpiece that has moved on the transfer line 41 is processed into a desired shape by this tool 40. After finishing the processing, the workpiece moves on the transfer line 41 to the next measurement station.

PC部31aは図示していないが、全体を制御するCP
Uと、PMCを制御する管理プログラム及び機械を制御
するラダーブログ・ラム等を格納するROMと、入出力
信号及び各種のデータを格納するRAMとからなる。イ
ンターフエイス(Dr/Do)33aは機械側との入力
(DI)及び出力(DO)の授受を行う。測定ステーシ
ョンではこのインターフェイス33bを介してタッチセ
ンサ39の接触信号が一軸制御NC装置43b内へ取り
込まれる。
Although the PC unit 31a is not shown, it is a CP that controls the entire
It consists of a ROM that stores a management program that controls the PMC and a ladder blog RAM that controls the machine, and a RAM that stores input/output signals and various data. The interface (Dr/Do) 33a exchanges input (DI) and output (DO) with the machine side. At the measurement station, a contact signal from the touch sensor 39 is taken into the uniaxial control NC device 43b via this interface 33b.

PC制御手段21はホストCPU,ホストSLC及びR
AMを有する。ホストCPUはホストSLC及びRAM
を制御する。RAMには入出力信号及び各種のデータが
記憶される。
The PC control means 21 includes a host CPU, host SLC and R.
Has AM. Host CPU is host SLC and RAM
control. Input/output signals and various data are stored in the RAM.

ホス}SLCは一軸制御NC装置43a内のローカルS
LC32aと通信回線(RS−422)L1を介して接
続される。また、加工ステーションのローカルSLC3
2aと測定ステーションのローカルSLC32bとの間
も同様に通信回線(RS−422)L2を介して接続さ
れる。この通信回線に光ケーブルを用いて光通信を行っ
てもよい。
SLC is the local S in the single-axis control NC device 43a.
It is connected to the LC 32a via a communication line (RS-422) L1. In addition, the local SLC3 of the processing station
2a and the local SLC 32b of the measurement station are similarly connected via a communication line (RS-422) L2. Optical communication may be performed using an optical cable for this communication line.

ローカルSLC32a内にはデータ通信用の入カメモリ
と出力メモリを有する。各軸間の通信はこの入力メモリ
と出力メモリに情報をリード・ライトすることにより行
われる。即ち、一軸制御NC装置43bがスキップ機能
を実行してワークの測定を終了すると、その測定結果を
ローカルSLC32b内の出力メモリにライトする。す
ると、PC制御手段21のホストSLCはその出力メモ
リのデータを通信回線を介して読み込み、加工ステーシ
ョンの一軸制411NC装置43aのローカルSLC3
 2 a内の入力メモリにライトする。一軸制4BNC
装置43aは入力メモリをリードし、測定結果に応じた
補正を加えて次のワークの加工制御を実行する。
The local SLC 32a has an input memory and an output memory for data communication. Communication between each axis is performed by reading and writing information to and from this input memory and output memory. That is, when the single-axis control NC device 43b executes the skip function and finishes measuring the workpiece, the measurement result is written to the output memory in the local SLC 32b. Then, the host SLC of the PC control means 21 reads the data in the output memory via the communication line, and outputs the data to the local SLC 3 of the single-axis system 411 NC device 43a of the processing station.
2 Write to the input memory in a. Single axis system 4BNC
The device 43a reads the input memory, makes corrections according to the measurement results, and executes processing control for the next workpiece.

このように測定ステーションの測定結果を通信回線によ
って加工ステーションへフィードバックすることができ
る。
In this way, the measurement results from the measurement station can be fed back to the processing station via the communication line.

このSLCはIMBPS以上の転送能力を持つので、手
の情報交換速度は非常に高速になる。また、プライオリ
ティ制御は主制御手段20が行うので、他の軸が待ち状
態におちいるデッドロック状態の発生を未然に防止する
ことができる。
Since this SLC has a transfer capacity higher than that of IMBPS, the information exchange speed is extremely high. Furthermore, since priority control is performed by the main control means 20, it is possible to prevent the occurrence of a deadlock state in which other axes fall into a waiting state.

本実施例では数値制御装置として一軸制御NC装置を例
に説明したが、これ以外のFA装置、例えばトランスフ
ァーライン用のNC装置やロボット制御装置等に適用し
ても本発明の効果を奏することは明らかである。
In this embodiment, a single-axis control NC device has been explained as an example of a numerical control device, but the effects of the present invention can also be achieved when applied to other FA devices, such as transfer line NC devices and robot control devices. it is obvious.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、ハードウェアが簡
略化でき、かつ高速移動時でも高精度に座標値を検出す
ることのできるスキップ機能を実現することができる。
As described above, according to the present invention, it is possible to realize a skip function that can simplify hardware and detect coordinate values with high accuracy even when moving at high speed.

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

第1図は本発明を実施するための数値制御装置のハード
ウエアの概略構成図、 第2図は本発明の数値制御装置をトランスファーライン
上で使用する場合の実施例の全体構成を示す図、 第3図はスキップ機能の概念を示す図である。 1    プロセッサ 2・−−一−−一一・−・〜・ROM 3 −−−−−−−−−−−−−−− R A M4 
  一位置制御回路 o−−−−−−−−−−・−・−・スキップ信号発生回
路1   ・−・−インターバルタイマカウンタ2−−
−−−−−・−・− レジスタ 3    ・中間キャリーフラグ発生回路0−−一〜−
・−〜−−一−−−一主制御手段1、L2、L3−・−
・一・−・通信回線1 −−−−−−−−−−−−−−
− }ランスファーライン特許出願人 ファナック株式
会社 代理人   弁理士  服部毅巖
FIG. 1 is a schematic diagram of the hardware configuration of a numerical control device for carrying out the present invention, and FIG. 2 is a diagram showing the overall configuration of an embodiment in which the numerical control device of the present invention is used on a transfer line. FIG. 3 is a diagram showing the concept of the skip function. 1 Processor 2 ---1--11 ----ROM 3 ------------------ R A M4
1-position control circuit o-----------------------------------------SKIPPING SIGNAL GENERATING CIRCUIT 1------ INTERVAL TIMER COUNTER 2--
−−−−−・−・− Register 3 ・Intermediate carry flag generation circuit 0−−1 to −
・---1--1 Main control means 1, L2, L3--
・1・−・Communication line 1 −−−−−−−−−−−−−−
− }Transfer Line Patent Applicant Fanuc Co., Ltd. Agent Patent Attorney Takeshi Hattori

Claims (5)

【特許請求の範囲】[Claims] (1)外部信号の入力された時点における制御軸の位置
を検出する数値制御装置において、 システムクロックをカウントすることによって一定周期
毎にタイミング信号を出力するインターバルタイマカウ
ンタと、 前記外部信号の入力された時点で前記インターバルタイ
マカウンタの下位ビットのデータを保持する記憶回路と
、 前記タイミング信号に同期して前記制御軸の現在位置デ
ータを周期的に読出し、前記インターバルタイマカウン
タの前記下位ビット以外の上位ビットデータと前記記憶
回路内の下位ビットデータとを読出す割込み処理を前記
外部信号入力後に実行し、前記周期的に読み出した現在
位置データと前記割込み処理によって読み出した第1及
び第2のデータとから前記外部信号の入力された時点に
おける前記制御軸の位置を演算するマイクロプロセッサ
とを有することを特徴とする数値制御装置。
(1) A numerical control device that detects the position of a control axis at the time when an external signal is input, which includes an interval timer counter that outputs a timing signal at regular intervals by counting a system clock; a storage circuit that holds the data of the lower bits of the interval timer counter at the time when the data of the lower bits of the interval timer counter is read out periodically in synchronization with the timing signal; An interrupt process for reading bit data and lower bit data in the storage circuit is executed after inputting the external signal, and the periodically read current position data and the first and second data read by the interrupt process are and a microprocessor that calculates the position of the control axis at the time when the external signal is input.
(2)前記外部信号が入力してから前記上位ビットデー
タ及び下位ビットデータを読み出すまでの間に前記イン
ターバルタイマカウンタの下位ビットに桁上げが生じた
ことを示すフラグを立てる手段を設け、前記上位ビット
データ及び下位ビットデータと前記フラグとから前記外
部信号の入力された時点における前記制御軸の位置を演
算することを特徴とする特許請求の範囲第1項記載の数
値制御装置。
(2) A means is provided for setting a flag indicating that a carry has occurred in the lower bits of the interval timer counter between the input of the external signal and the reading of the upper bit data and the lower bit data, and 2. The numerical control device according to claim 1, wherein the position of the control axis at the time when the external signal is input is calculated from bit data, lower bit data, and the flag.
(3)前記外部信号はスキップ信号であり、前記前記制
御軸のスキップ位置を検出することを特徴とする特許請
求の範囲第1項記載の数値制御装置。
(3) The numerical control device according to claim 1, wherein the external signal is a skip signal, and the skip position of the control axis is detected.
(4)ワークの加工を制御する第1の数値制御装置をト
ランスファーライン上の加工ステーションに、ワークの
測定を制御する第2の数値制御装置をトランスファーラ
イン上の計測ステーションにそれぞれ有するトランスフ
ァーライン用の数値制御装置において、 前記第2の数値制御装置は特許請求の範囲第1項記載の
数値制御装置で構成され、 前記第1及び第2の数値制御装置は上下通信可能なよう
に通信回線によって接続され、 前記第2の数値制御装置の計測結果は前記通信回線を介
して前記第1の数値制御装置にフィードバックされ、 前記第1の数値制御装置は前記フィードバックされた計
測結果に応じて軸制御を実行することを特徴とする数値
制御装置。
(4) A transfer line system having a first numerical control device for controlling workpiece processing at a processing station on the transfer line, and a second numerical control device for controlling workpiece measurement at a measuring station on the transfer line. In the numerical control device, the second numerical control device is constituted by the numerical control device according to claim 1, and the first and second numerical control devices are connected by a communication line so as to enable up and down communication. The measurement results of the second numerical control device are fed back to the first numerical control device via the communication line, and the first numerical control device performs axis control according to the fed-back measurement results. A numerical control device characterized by:
(5)前記第1及び第2の数値制御装置は上下通信可能
なように接続された主制御手段によって共通に制御され
ることを特徴とする特許請求の範囲第4項記載の数値制
御装置。
(5) The numerical control device according to claim 4, wherein the first and second numerical control devices are commonly controlled by a main control means that is connected to enable vertical communication.
JP5909289A 1989-03-10 1989-03-10 Numerical controller Pending JPH02236703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5909289A JPH02236703A (en) 1989-03-10 1989-03-10 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5909289A JPH02236703A (en) 1989-03-10 1989-03-10 Numerical controller

Publications (1)

Publication Number Publication Date
JPH02236703A true JPH02236703A (en) 1990-09-19

Family

ID=13103350

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5909289A Pending JPH02236703A (en) 1989-03-10 1989-03-10 Numerical controller

Country Status (1)

Country Link
JP (1) JPH02236703A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018069375A (en) * 2016-10-28 2018-05-10 Dmg森精機株式会社 Machine position measuring apparatus and machine position measuring system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018069375A (en) * 2016-10-28 2018-05-10 Dmg森精機株式会社 Machine position measuring apparatus and machine position measuring system

Similar Documents

Publication Publication Date Title
JP3703664B2 (en) Backlash correction device
US4096770A (en) Method and apparatus for modifying the position of a machine slide to compensate for different following errors
US6701212B2 (en) Lost motion correction system and lost motion correction method for numerical control machine tool
JPH0569275A (en) Numerical control device
US4173786A (en) Method and apparatus for cutting a thread on a rotating workpiece
EP0242869A2 (en) Numerical control equipment
JPH07266194A (en) Tool blade edge position measurement correction device
JPH02236703A (en) Numerical controller
JP2919754B2 (en) Backlash measurement and correction device for spherical or circular surface machining
JPH044527B2 (en)
EP1775065A1 (en) Roundness working method and roundness working device in nc machine tool
JP3426779B2 (en) Backlash compensation device for numerically controlled machine tools
TWI389764B (en) Machine tool with function for setting up a measurement reference point of a work
JPH081405A (en) Device and method for detecting lost motion
JPH04148307A (en) Detecting method for working force for force control robot
JPS61184606A (en) Machine's position detector
JPS63219009A (en) Backlash correction system in full closed loop control
JPS6377638A (en) Numerically controlled machine tool
JPH07120216A (en) Data compensation system for optical displacement sensor
JPH0336884Y2 (en)
JPS60124706A (en) Playback robot
JP2790554B2 (en) Three-dimensional comparative measurement device
JPH0233123Y2 (en)
WO2024116223A1 (en) Robot control device
JPH0233122Y2 (en)