JPH0863212A - Origin return system for cnc - Google Patents

Origin return system for cnc

Info

Publication number
JPH0863212A
JPH0863212A JP19639494A JP19639494A JPH0863212A JP H0863212 A JPH0863212 A JP H0863212A JP 19639494 A JP19639494 A JP 19639494A JP 19639494 A JP19639494 A JP 19639494A JP H0863212 A JPH0863212 A JP H0863212A
Authority
JP
Japan
Prior art keywords
signal
movement
absolute
outputs
origin return
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
JP19639494A
Other languages
Japanese (ja)
Inventor
Jiro Kinoshita
次朗 木下
Kazunari Aoyama
一成 青山
Kinya Kusakabe
欽也 日下部
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 JP19639494A priority Critical patent/JPH0863212A/en
Publication of JPH0863212A publication Critical patent/JPH0863212A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To enable an origin return which does not require a speed reduction switch as to the origin return system for CNC for confirming the origin position of a table at the start of machining. CONSTITUTION: An absolute position detecting means 5 receives the absolute position signal from an absolute pulse coder 4, outputs a speed reduction start position signal when the table 1 reaches a speed reduction start position for the origin return, and outputs a speed reduction period end position signal when the table reaches a speed reduction period end position. An origin return control means 6 outputs an origin return command when the power source is turned ON, outputs a speed reduction command when the speed reduction start position signal is inputted, and outputs a movement stop command at the timing of a 1st reference signal after the speed reduction period end position signal is inputted. A shaft movement control means 7 performs movement control over a servomotor 3 in the origin return direction by inputting the origin return command, reduces the speed of the movement of the servomotor 3 by inputting the speed reduction command, and stops the movement of the servomotor 3 by inputting the movement stop command.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は加工開始時にテーブルの
原点位置を確認するためのCNCの原点復帰方式に関
し、特にフルクローズシステムにおけるCNCの原点復
帰方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CNC origin return method for confirming the origin position of a table at the start of machining, and more particularly to a CNC origin return method in a full-closed system.

【0002】[0002]

【従来の技術】従来、CNCで制御される工作機械のテ
ーブルの原点復帰を行う場合には、テーブルに取り付け
られるリニアスケールと、テーブルを移動させるサーボ
モータの速度を検出するパルスコーダと、テーブルの原
点付近に設けられる減速スイッチおよびその減速スイッ
チを所定移動距離だけ押すドグを必要とした。
2. Description of the Related Art Conventionally, when performing a home return of a table of a machine tool controlled by a CNC, a linear scale attached to the table, a pulse coder for detecting the speed of a servo motor for moving the table, and an origin of the table. A deceleration switch provided in the vicinity and a dog for pushing the deceleration switch by a predetermined moving distance are required.

【0003】この原点復帰方式では、軸を原点方向に移
動させながら、リニアスケールの絶対位置確認用の基準
信号とパルスコーダの信号をもとに、CNC内部で仮想
的に基準信号の間隔でグリッド信号を生成し、減速スイ
ッチがオンになるとオンの間だけ軸の送り速度を減速
し、減速スイッチが再びオフになるとその直後のグリッ
ド信号のタイミングで軸移動を停止し、その位置を原点
と認識するようにしていた。
In this origin return method, while the axis is moved in the direction of the origin, a grid signal is virtually generated within the CNC at intervals of the reference signal based on the reference signal for absolute position confirmation of the linear scale and the signal of the pulse coder. When the deceleration switch is turned on, the axis feed speed is decelerated only while it is turned on, and when the deceleration switch is turned off again, the axis movement is stopped at the timing of the grid signal immediately after that and the position is recognized as the origin. Was doing.

【0004】[0004]

【発明が解決しようとする課題】しかし、このような方
式では、減速スイッチを必要とするため、取り付けの手
間やコストがかかっていた。
However, in such a system, since the deceleration switch is required, the labor and cost for mounting are increased.

【0005】本発明はこのような点に鑑みてなされたも
のであり、減速スイッチが不要なCNCの原点復帰方式
を提供することを目的とする。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a home position return system for a CNC which does not require a speed reduction switch.

【0006】[0006]

【課題を解決するための手段】本発明では上記課題を解
決するために、加工開始時にテーブルの原点位置を確認
するためのCNCの原点復帰方式において、前記テーブ
ルに取り付けられ、前記テーブルの移動量に応じた微小
間隔のパルス信号と前記パルス信号よりも十分に大きな
間隔の基準信号を出力するリニアスケールと、前記テー
ブルを移動させるサーボモータの絶対位置を検出して絶
対位置信号を出力するアブソリュートパルスコーダと、
前記アブソリュートパルスコーダからの絶対位置信号を
受け取り、前記テーブルが原点復帰用の減速開始位置に
くると減速開始位置信号を出力し、減速期間終了位置に
くると減速期間終了位置信号を出力する絶対位置検出手
段と、電源投入時には原点復帰指令を出力し、前記減速
開始位置信号の入力時には減速指令を出力し、前記減速
期間終了位置信号が入力されてから最初の前記基準信号
のタイミングで移動停止指令を出力する原点復帰制御手
段と、前記原点復帰指令の入力によって前記原点復帰方
向に前記サーボモータを移動制御し、前記減速指令の入
力によって前記サーボモータの移動を減速させ、前記移
動停止指令の入力によって前記サーボモータの移動を停
止する軸移動制御手段と、を有することを特徴とするC
NCの原点復帰方式が提供される。
According to the present invention, in order to solve the above-mentioned problems, in a home position return method of a CNC for confirming a home position of a table at the start of machining, a movement amount of the table attached to the table is set. A linear scale that outputs a pulse signal with a minute interval according to the above and a reference signal with an interval sufficiently larger than the pulse signal, and an absolute pulse that outputs an absolute position signal by detecting the absolute position of the servo motor that moves the table. With a coder,
An absolute position that receives an absolute position signal from the absolute pulse coder, outputs a deceleration start position signal when the table reaches the deceleration start position for origin return, and outputs a deceleration period end position signal when the table reaches the deceleration period end position. An origin return command is output when the power is turned on, a deceleration command is output when the deceleration start position signal is input, and a movement stop command is output at the timing of the first reference signal after the deceleration period end position signal is input. And a home position return control unit for outputting the home position return command to control the movement of the servo motor in the home position return direction, inputting the deceleration command to decelerate the movement of the servo motor, and inputting the movement stop command. Axis movement control means for stopping the movement of the servomotor according to C.
An NC return to origin method is provided.

【0007】[0007]

【作用】テーブルに取り付けられたリニアスケールは、
テーブルの移動量に応じた微小間隔のパルス信号とこの
パルス信号よりも十分に大きな間隔の基準信号を出力す
る。一方、アブソリュートパルスコーダは、テーブルを
移動させるサーボモータの絶対位置を検出して絶対位置
信号を出力する。絶対位置検出手段は、アブソリュート
パルスコーダからの絶対位置信号を受け取り、テーブル
が原点復帰用の減速開始位置にくると減速開始位置信号
を出力し、減速期間終了位置にくると減速期間終了位置
信号を出力する。
[Function] The linear scale attached to the table
A pulse signal with a minute interval according to the amount of movement of the table and a reference signal with an interval sufficiently larger than this pulse signal are output. On the other hand, the absolute pulse coder detects the absolute position of the servo motor that moves the table and outputs an absolute position signal. The absolute position detection means receives the absolute position signal from the absolute pulse coder, outputs the deceleration start position signal when the table reaches the deceleration start position for origin return, and outputs the deceleration period end position signal when it reaches the deceleration period end position. Output.

【0008】原点復帰制御手段は、電源投入時には原点
復帰指令を出力し、減速開始位置信号の入力時には減速
指令を出力し、減速期間終了位置信号が入力されてから
最初の基準信号のタイミングで移動停止指令を出力す
る。軸移動制御手段は、原点復帰指令の入力によって原
点復帰方向にサーボモータを移動制御し、減速指令の入
力によってサーボモータの移動を減速させ、移動停止指
令の入力によってサーボモータの移動を停止する。
The origin return control means outputs an origin return command when the power is turned on, outputs a deceleration command when a deceleration start position signal is input, and moves at the timing of the first reference signal after the deceleration period end position signal is input. Output a stop command. The axis movement control means controls the movement of the servo motor in the direction of returning to the origin in response to the input of the origin return command, decelerates the movement of the servo motor in response to the input of the deceleration command, and stops the movement of the servo motor in response to the input of the movement stop command.

【0009】[0009]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の一実施例の機能の概念を示す図
である。テーブル1に取り付けられたリニアスケール2
は、テーブルの移動量に応じて微小間隔のパルス信号と
このパルス信号よりも十分に大きな間隔の基準信号を出
力する。一方、アブソリュートパルスコーダ4は、テー
ブル1を移動させるサーボモータ3の絶対位置を検出し
て絶対位置信号を出力する。絶対位置検出手段5は、ア
ブソリュートパルスコーダ4からの絶対位置信号を受け
取り、テーブル1が原点復帰用の減速開始位置にくると
減速開始位置信号を出力し、減速期間終了位置にくると
減速期間終了位置信号を出力する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing the concept of the function of one embodiment of the present invention. Linear scale 2 attached to table 1
Outputs a pulse signal with a minute interval and a reference signal with an interval sufficiently larger than this pulse signal according to the amount of movement of the table. On the other hand, the absolute pulse coder 4 detects the absolute position of the servo motor 3 that moves the table 1 and outputs an absolute position signal. The absolute position detection means 5 receives the absolute position signal from the absolute pulse coder 4, outputs the deceleration start position signal when the table 1 reaches the deceleration start position for origin return, and ends the deceleration period when it reaches the deceleration period end position. Output position signal.

【0010】原点復帰制御手段6は、電源投入時には原
点復帰指令を出力し、減速開始位置信号の入力時には減
速指令を出力し、減速期間終了位置信号が入力されてか
ら最初の基準信号のタイミングで移動停止指令を出力す
る。軸移動制御手段7は、原点復帰指令の入力によって
原点復帰方向にサーボモータ3を移動制御し、減速指令
の入力によってサーボモータ3の移動を減速させ、移動
停止指令の入力によってサーボモータ3の移動を停止す
る。
The origin return control means 6 outputs an origin return command when the power is turned on, outputs a deceleration command when the deceleration start position signal is input, and outputs the deceleration period end position signal at the timing of the first reference signal. Outputs a movement stop command. The axis movement control means 7 controls the movement of the servomotor 3 in the direction of returning to the origin by the input of the origin return command, decelerates the movement of the servomotor 3 by the input of the deceleration command, and moves the servomotor 3 by the input of the movement stop command. To stop.

【0011】図2は本発明を実施するための数値制御装
置(CNC)のハードウェアを示すブロック図である。
プロセッサ(CPU)11は、ROM12に格納された
システム・プログラムに従って数値制御装置全体を制御
する。ROM12にはEPROM又はEEPROMが使
用される。RAM13にはDRAMが使用され、各種の
データが格納される。不揮発性メモリ14には、加工プ
ログラム14a、パラメータ14b等が記憶されてい
る。また、不揮発性メモリ14には、後述する減速開始
位置データおよび減速期間終了位置データ等も格納され
ている。不揮発性メモリ14は、バッテリバックアップ
されたCMOS等が使用されるので、数値制御装置の電
源切断後もその内容が保持される。
FIG. 2 is a block diagram showing the hardware of a numerical controller (CNC) for implementing the present invention.
The processor (CPU) 11 controls the entire numerical controller according to a system program stored in the ROM 12. EPROM or EEPROM is used for the ROM 12. A DRAM is used as the RAM 13 and stores various data. The non-volatile memory 14 stores a processing program 14a, parameters 14b and the like. The non-volatile memory 14 also stores deceleration start position data, deceleration period end position data, and the like, which will be described later. Since the battery-backed CMOS or the like is used for the non-volatile memory 14, the contents thereof are retained even after the power of the numerical control device is cut off.

【0012】PMC(プログラマブル・マシン・コント
ローラ)15はM機能、T機能等の指令を受けて、シー
ケンス・プログラム15aによって工作機械を制御する
信号に変換して出力する。また、機械側からのリミット
スイッチ信号又は機械操作盤からのスイッチ信号を受け
て、シーケンス・プログラム15aで処理し、必要な信
号はバスを経由してRAM13に格納され、プロセッサ
11によって読み取られる。
A PMC (Programmable Machine Controller) 15 receives commands for M functions, T functions, etc., converts them into signals for controlling a machine tool by a sequence program 15a, and outputs the signals. Further, a limit switch signal from the machine side or a switch signal from the machine operation panel is received and processed by the sequence program 15a, and necessary signals are stored in the RAM 13 via the bus and read by the processor 11.

【0013】グラフィック制御回路(CRTC)16
は、各軸の現在位置、移動量等のデータを表示信号に変
換し表示装置16aに送る。表示装置16aは、この表
示信号を表示する。表示装置16aには、CRT、液晶
表示装置等が使用される。キーボード17は各種のデー
タを入力するのに使用される。
Graphic control circuit (CRTC) 16
Converts the data such as the current position and movement amount of each axis into a display signal and sends it to the display device 16a. The display device 16a displays this display signal. A CRT, a liquid crystal display device, or the like is used as the display device 16a. The keyboard 17 is used to input various data.

【0014】軸制御回路18は、プロセッサ11から位
置指令を受けると、サーボモータ20を制御するための
速度指令信号をサーボアンプ19に出力する。サーボア
ンプ19は、この速度指令信号を増幅してサーボモータ
20を駆動する。
Upon receiving the position command from the processor 11, the axis control circuit 18 outputs a speed command signal for controlling the servo motor 20 to the servo amplifier 19. The servo amplifier 19 amplifies this speed command signal and drives the servo motor 20.

【0015】入出力回路23は機械側の制御回路に接続
され、機械側との間で入出力信号の授受を行う。すなわ
ち、機械側のリミットスイッチ信号、機械操作盤のスイ
ッチ信号を受け、これをPMC15が読み取る。また、
PMC15からの機械側の空圧アクチュエイタ等を制御
する制御信号を受けて、機械側に出力する。
The input / output circuit 23 is connected to a control circuit on the machine side and exchanges input / output signals with the machine side. That is, the limit switch signal on the machine side and the switch signal on the machine operation panel are received, and the PMC 15 reads them. Also,
It receives a control signal for controlling the pneumatic actuator on the machine side from the PMC 15 and outputs it to the machine side.

【0016】手動パルス発生器24は回転角度に応じ
て、各軸を精密に移動させるパルス列を出力し、機械操
作盤に実装される。サーボモータ20にはボールネジ2
6が接合されており、サーボモータ20の回転に応じて
このボールネジ26も回転する。ボールネジ26には、
その回転に応じて移動する機械側のテーブル25が設け
られている。なお、本実施例ではX軸のみ示す。
The manual pulse generator 24 outputs a pulse train for precisely moving each axis according to the rotation angle, and is mounted on the machine operation panel. Ball screw 2 for servo motor 20
6 are joined, and the ball screw 26 also rotates according to the rotation of the servomotor 20. The ball screw 26 has
A machine-side table 25 that moves according to the rotation is provided. In this embodiment, only the X axis is shown.

【0017】サーボモータ20には、アブソリュートパ
ルスコーダ20aが内蔵されており、サーボモータ20
の絶対位置を検出し、その絶対位置信号を軸制御回路1
8に送る。このアブソリュートパルスコーダ20aは、
バッテリでバックアップされており、電源切断後もその
検出絶対位置を保持している。
The servo motor 20 has an absolute pulse coder 20a built therein.
The absolute position signal of the axis is detected and the absolute position signal is detected.
Send to 8. This absolute pulse coder 20a
It is backed up by a battery and holds the detected absolute position even after the power is turned off.

【0018】テーブル25には、リニアスケール21が
取り付けられている。リニアスケール21は、スケール
21aおよびセンサ21bで構成されている。スケール
21aはテーブル25とともに移動可能に取り付けら
れ、センサ21bは台側に固定されている。センサ21
bは、スケール21aの移動量に応じて微小間隔のパル
ス信号を軸制御回路18にフィードバックする。また、
センサ21bは、比較的大きな間隔、例えば5mm毎に
基準信号を出力する。
A linear scale 21 is attached to the table 25. The linear scale 21 includes a scale 21a and a sensor 21b. The scale 21a is movably attached together with the table 25, and the sensor 21b is fixed to the table side. Sensor 21
b feeds back a pulse signal with a minute interval to the axis control circuit 18 according to the amount of movement of the scale 21a. Also,
The sensor 21b outputs a reference signal at relatively large intervals, for example, every 5 mm.

【0019】軸制御回路18は、センサ21bからのパ
ルス信号および基準信号に基づいて、テーブル25の現
在の位置を検出する。パルス信号、基準信号、および絶
対位置信号は、この軸制御回路18からバスを介してプ
ロセッサ11に送られる。プロセッサ11は、電源投入
時にこれらパルス信号、基準信号、および絶対位置信号
に基づいて、後述する原点復帰制御を行う。
The axis control circuit 18 detects the current position of the table 25 based on the pulse signal and the reference signal from the sensor 21b. The pulse signal, the reference signal, and the absolute position signal are sent from the axis control circuit 18 to the processor 11 via the bus. When the power is turned on, the processor 11 performs origin return control, which will be described later, based on the pulse signal, the reference signal, and the absolute position signal.

【0020】なお、これらの要素は軸数分だけ必要であ
るが、各要素の構成は同じであるので、ここでは1軸分
のみ記載してある。また、図ではスピンドルを制御する
ためのスピンドル制御回路、スピンドルアンプ、スピン
ドルモータ等は省略してある。
These elements are required for the number of axes, but since the configuration of each element is the same, only one axis is described here. Further, in the figure, a spindle control circuit for controlling the spindle, a spindle amplifier, a spindle motor, etc. are omitted.

【0021】次に、このような構成を有する数値制御装
置による原点復帰方式の具体的な手順を説明する。図3
は本発明の一実施例の原点復帰方式の具体的な手順を示
す図である。まず、電源が投入されると、プロセッサ1
1は、各軸のサーボモータ20等を制御して原点復帰動
作を開始する。この原点復帰動作開始後、プロセッサ1
1は、リニアスケール21のセンサ21bから最初の基
準信号を受け取ると(時刻t0 )、その時点から基準信
号と同じ間隔毎にグリッド信号を生成する。
Next, a specific procedure of the origin return method by the numerical controller having such a configuration will be described. FIG.
FIG. 6 is a diagram showing a specific procedure of an origin return method according to an embodiment of the present invention. First, when the power is turned on, the processor 1
1 controls the servo motor 20 of each axis to start the origin return operation. After starting the home-return operation, the processor 1
When No. 1 receives the first reference signal from the sensor 21b of the linear scale 21 (time t 0 ), from that time point, the grid signal is generated at the same intervals as the reference signal.

【0022】そして、アブソリュートパルスコーダ20
aが予め設定されている減速開始位置を検出すると(時
刻t1 )、軸の送り速度を減速させる。次いで、アブソ
リュートパルスコーダ20aが、同じく予め設定されて
いる減速期間終了位置を検出すると(時刻t2 )、その
減速期間終了位置から最初のグリッド信号の発生時(時
刻t3 )に、軸の送り速度を0にして移動を停止させ
る。こうして、この時点の各軸の位置を原点と認識する
ことにより、原点復帰動作が終了する。以後は、リニア
スケール21のパルス信号が入力される度にカウントア
ップを行えば、テーブル25の現在位置を常に正確に把
握することができる。
The absolute pulse coder 20
When a deceleration start position set in advance is detected (time t 1 ), the feed rate of the axis is decelerated. Then, when the absolute pulse coder 20a is likewise detects a deceleration period end position set in advance (time t 2), upon the occurrence of the first grid signal from the deceleration period end position (time t 3), the feed axis The speed is set to 0 and the movement is stopped. Thus, by recognizing the position of each axis at this point as the origin, the origin returning operation is completed. After that, the current position of the table 25 can always be accurately grasped by counting up each time the pulse signal of the linear scale 21 is input.

【0023】図4はこのような本発明の一実施例の原点
復帰のプロセッサ11側の手順を示すフローチャートで
ある。 〔S1〕軸を移動させて原点復帰動作を開始する。 〔S2〕リニアスケール21から基準信号が入力された
か否かを判断し、されればステップS3に進み、そうで
なければステップS2を繰り返す。 〔S3〕基準信号に基づいてグリッド信号を生成する。 〔S4〕アブソリュートパルスコーダ20aの検出位置
が減速開始位置になったか否かを判断し、なればステッ
プS5に進み、そうでなければステップS4を繰り返
す。 〔S5〕軸移動の減速を開始する。 〔S6〕アブソリュートパルスコーダ20aの検出位置
が減速期間終了位置になったか否かを判断し、なればス
テップS7に進み、そうでなければステップS6を繰り
返す。 〔S7〕減速期間終了位置から初めてグリッド信号が発
生したか否かを判断し、発生すればステップS8に進
み、しなければステップS7を繰り返す。 〔S8〕軸の移動を停止する。
FIG. 4 is a flow chart showing the procedure on the processor 11 side for the origin return in such an embodiment of the present invention. [S1] The axis is moved to start the origin return operation. [S2] It is determined whether or not a reference signal is input from the linear scale 21, and if so, the process proceeds to step S3, and if not, step S2 is repeated. [S3] A grid signal is generated based on the reference signal. [S4] It is determined whether or not the detected position of the absolute pulse coder 20a has reached the deceleration start position. If not, the process proceeds to step S5, and if not, step S4 is repeated. [S5] The deceleration of axis movement is started. [S6] It is determined whether or not the detected position of the absolute pulse coder 20a has reached the deceleration period end position. If not, the process proceeds to step S7, and if not, step S6 is repeated. [S7] It is determined whether or not a grid signal is generated for the first time from the deceleration period end position. If it is generated, the process proceeds to step S8, and if not, step S7 is repeated. [S8] The movement of the axis is stopped.

【0024】このように、本実施例では、サーボモータ
20の位置検出器としてアブソリュートパルスコーダ2
0aを使用し、その絶対位置検出信号に基づいて原点復
帰を行うようにしたので、従来のように減速スイッチや
ドグを設けることなく減速停止を行うことができる。こ
のため、製造コストなどを低減することができる。
As described above, in this embodiment, the absolute pulse coder 2 is used as the position detector of the servomotor 20.
Since 0a is used and the home position return is performed based on the absolute position detection signal, it is possible to perform deceleration stop without providing a deceleration switch or dog as in the conventional case. Therefore, manufacturing cost and the like can be reduced.

【0025】なお、本実施例では、リニアスケール21
の基準信号に基づいてグリッド信号を生成するようにし
たが、基準信号のみを使用するようにしてもよい。次
に、本発明の他の実施例を説明する。
In this embodiment, the linear scale 21
Although the grid signal is generated based on the reference signal of, the reference signal may be used only. Next, another embodiment of the present invention will be described.

【0026】図5は本実施例の機能の概念を示す図であ
る。テーブル31に取り付けられたリニアスケール32
は、テーブル31の移動量に応じた微小間隔のパルス信
号とそのパルス信号よりも十分に大きな間隔の基準信号
を出力する。一方、テーブル31を移動させるサーボモ
ータ33に内蔵されたアブソリュートパルスコーダ34
は、サーボモータ33の絶対位置を検出して絶対位置信
号を出力する。位置補正手段35は、電源投入時には軸
移動開始指令を出力し、この軸移動開始指令の入力とと
もに軸移動制御手段36がサーボモータの移動制御を行
う。位置補正手段35は、軸移動開始から最初の基準信
号の入力時にCNCの座標系をアブソリュートパルスコ
ーダの絶対位置と基準信号のタイミングに基づいて補正
する。
FIG. 5 is a diagram showing the concept of the function of this embodiment. Linear scale 32 attached to table 31
Outputs a pulse signal with a minute interval according to the movement amount of the table 31 and a reference signal with an interval sufficiently larger than the pulse signal. On the other hand, an absolute pulse coder 34 built in the servo motor 33 that moves the table 31.
Detects the absolute position of the servo motor 33 and outputs an absolute position signal. The position correction means 35 outputs an axis movement start command when the power is turned on, and the axis movement control means 36 controls the movement of the servomotor along with the input of this axis movement start command. The position correction means 35 corrects the CNC coordinate system based on the absolute position of the absolute pulse coder and the timing of the reference signal when the first reference signal is input from the start of axis movement.

【0027】次に本実施例の具体的な手順を説明する。
ただし、本実施例のハードウェアの構成は、図2とほぼ
同じなので、ここでは説明を省略する。図6は本実施例
の原点復帰方式の具体的な手順を示す図である。通常、
作業を停止して電源を切断すると、それまでのリニアス
ケールをもとにした座標は失われる一方、各機構部のガ
タ等によりテーブル25の位置は微妙にずれる。またこ
のずれ量は基準信号の間隔に対して十分に小さい。この
ため、再び電源を投入したときには、アブソリュートパ
ルスコーダ20aで認識しているテーブル25の絶対位
置は、実際のテーブル25の位置と異なった値となって
いる。ここでは、例えばアブソリュートパルスコーダ2
0aの座標5mm,10mm,15mm,20mm,2
5mm・・・の各位置がリニアスケール21の基準信号
と一致するような状態で電源が切断され、その後の電源
投入時には、テーブル25側の座標が少しだけ負方向に
ずれた場合を示している。
Next, a specific procedure of this embodiment will be described.
However, since the hardware configuration of this embodiment is almost the same as that of FIG. 2, the description thereof is omitted here. FIG. 6 is a diagram showing a specific procedure of the origin return method of this embodiment. Normal,
When the work is stopped and the power is turned off, the coordinates based on the linear scale up to that point are lost, but the position of the table 25 is slightly deviated due to backlash of each mechanism. Further, this shift amount is sufficiently small with respect to the interval of the reference signal. Therefore, when the power is turned on again, the absolute position of the table 25 recognized by the absolute pulse coder 20a has a value different from the actual position of the table 25. Here, for example, the absolute pulse coder 2
0a coordinates 5mm, 10mm, 15mm, 20mm, 2
The power is cut off in a state where each position of 5 mm coincides with the reference signal of the linear scale 21, and when the power is subsequently turned on, the coordinates on the table 25 side are slightly shifted in the negative direction. .

【0028】電源投入時、プロセッサ11側では、その
時点のアブソリュートパルスコーダ20aによる絶対位
置P0 (例として、15mmとする)を認識している。
また、それをもとにした座標系によって軸の移動を行
う。例えば、軸を正方向に移動させていき、基準信号が
立ち上がった時点でプロセッサ11は、アブソリュート
パルスコーダ20aによる絶対位置P1 の座標値に、最
も近いリニアスケール21の基準信号の上がるべき座標
値(15mmとする)によって、それまでのアブソリュ
ートパルスコーダ20aをもとにした座標系を補正する
(P1 =15mmとする)。またそれ以後、その補正し
た座標系によって軸の移動を行うこととする。これによ
り、CNCの座標系とリニアスケール21の座標系を一
致させることができる。
When the power is turned on, the processor 11 side recognizes the absolute position P 0 (for example, 15 mm) by the absolute pulse coder 20a at that time.
Also, the axis is moved by the coordinate system based on it. For example, when the reference signal rises while moving the axis in the positive direction, the processor 11 determines that the coordinate value of the linear scale 21 closest to the coordinate value of the absolute position P 1 by the absolute pulse coder 20a should be raised. By (15 mm), the coordinate system based on the absolute pulse coder 20a up to then is corrected (P 1 = 15 mm). After that, the axis is moved in the corrected coordinate system. Thereby, the coordinate system of the CNC and the coordinate system of the linear scale 21 can be matched.

【0029】図7は本発明の他の実施例のプロセッサ側
の手順を示すフローチャートである。なお、このフロー
チャートは、電源投入時に実行開始される。 〔S10〕軸を移動開始する。 〔S11〕基準信号が立ち上がったか否かを判断し、立
ち上がればステップS13に進み、そうでなければステ
ップS12を繰り返す。 〔S12〕アブソリュートパルスコーダ20aをもとに
した座標系をリニアスケール21の基準信号をもとに補
正する。
FIG. 7 is a flow chart showing the procedure on the processor side according to another embodiment of the present invention. Note that this flowchart is started when the power is turned on. [S10] The axis starts moving. [S11] It is determined whether or not the reference signal has risen. If it rises, the process proceeds to step S13, and if not, step S12 is repeated. [S12] The coordinate system based on the absolute pulse coder 20a is corrected based on the reference signal of the linear scale 21.

【0030】このように、本実施例では、電源投入後に
軸を移動させ、最初に基準信号が立ち上がった時に、そ
の基準信号をもとにアブソリュートパルスコーダ20a
による座標系を補正し、CNCの座標系とリニアスケー
ル21の座標系を一致させるようにしたので、電源投入
時に原点まで軸を移動させる必要がない。このため、よ
り迅速な原点復帰が可能となる。
As described above, in this embodiment, when the axis is moved after the power is turned on and the reference signal first rises, the absolute pulse coder 20a is based on the reference signal.
Since the coordinate system according to is corrected so that the coordinate system of the CNC and the coordinate system of the linear scale 21 coincide with each other, it is not necessary to move the axis to the origin when the power is turned on. Therefore, it is possible to return to the origin more quickly.

【0031】[0031]

【発明の効果】以上説明したように本発明では、テーブ
ルの移動量に応じた微小間隔のパルス信号とこのパルス
信号よりも十分に大きな間隔の基準信号を出力するリニ
アスケールをテーブルに取り付け、テーブルを移動させ
るサーボモータの絶対位置を検出して絶対位置信号を出
力するアブソリュートパルスコーダを設け、電源投入時
には原点復帰方向にサーボモータを移動制御し、テーブ
ルが原点復帰用の減速開始位置にくるとサーボモータの
移動を減速させ、減速期間終了位置にくるとサーボモー
タの移動を停止するようにしたので、減速スイッチやド
グを設けることなく減速停止を行うことができる。この
ため、製造コストなどを低減することができる。
As described above, according to the present invention, a pulse signal having a minute interval according to the movement amount of the table and a linear scale for outputting a reference signal having an interval sufficiently larger than the pulse signal are attached to the table. An absolute pulse coder that detects the absolute position of the servo motor that moves the motor and outputs an absolute position signal is provided.When the power is turned on, the servo motor is controlled to move in the home return direction, and when the table reaches the deceleration start position for home return. Since the movement of the servo motor is decelerated and the movement of the servo motor is stopped when the position reaches the deceleration period end position, deceleration stop can be performed without providing a deceleration switch or dog. Therefore, manufacturing cost and the like can be reduced.

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

【図1】本発明の一実施例の機能の概念を示す図であ
る。
FIG. 1 is a diagram showing a functional concept of an embodiment of the present invention.

【図2】本発明を実施するための数値制御装置(CN
C)のハードウェアを示すブロック図である。
FIG. 2 is a numerical controller for implementing the present invention (CN
It is a block diagram which shows the hardware of C).

【図3】本発明の一実施例の原点復帰方式の具体的な手
順を示す図である。
FIG. 3 is a diagram showing a specific procedure of an origin return method according to an embodiment of the present invention.

【図4】本発明の一実施例の原点復帰のプロセッサ側の
手順を示すフローチャートである。
FIG. 4 is a flowchart showing a procedure on the processor side for origin return according to an embodiment of the present invention.

【図5】他の実施例の機能の概念を示す図である。FIG. 5 is a diagram showing a concept of functions of another embodiment.

【図6】他の実施例の原点復帰方式の具体的な手順を示
す図である。
FIG. 6 is a diagram showing a specific procedure of a return to origin method according to another embodiment.

【図7】本発明の他の実施例のプロセッサ側の手順を示
すフローチャートである。
FIG. 7 is a flowchart showing a procedure on the processor side according to another embodiment of the present invention.

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

1 テーブル 2 リニアスケール 3 サーボモータ 4 アブソリュートパルスコーダ 5 絶対位置検出手段 6 原点復帰制御手段 7 軸移動制御手段 11 プロセッサ 12 ROM 13 RAM 14 不揮発性メモリ 18 軸制御回路 19 サーボアンプ 20 サーボモータ 20a アブソリュートパルスコーダ 21 リニアスケール 21a スケール 21b センサ 25 テーブル 1 table 2 linear scale 3 servo motor 4 absolute pulse coder 5 absolute position detection means 6 origin return control means 7 axis movement control means 11 processor 12 ROM 13 RAM 14 non-volatile memory 18 axis control circuit 19 servo amplifier 20 servo motor 20a absolute pulse Coder 21 Linear scale 21a Scale 21b Sensor 25 Table

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 加工開始時にテーブルの原点位置を確認
するためのCNCの原点復帰方式において、 前記テーブルに取り付けられ、前記テーブルの移動量に
応じた微小間隔のパルス信号と前記パルス信号よりも十
分に大きな間隔の基準信号を出力するリニアスケール
と、 前記テーブルを移動させるサーボモータの絶対位置を検
出して絶対位置信号を出力するアブソリュートパルスコ
ーダと、 前記アブソリュートパルスコーダからの絶対位置信号を
受け取り、前記テーブルが原点復帰用の減速開始位置に
くると減速開始位置信号を出力し、減速期間終了位置に
くると減速期間終了位置信号を出力する絶対位置検出手
段と、 電源投入時には原点復帰指令を出力し、前記減速開始位
置信号の入力時には減速指令を出力し、前記減速期間終
了位置信号が入力されてから最初の前記基準信号のタイ
ミングで移動停止指令を出力する原点復帰制御手段と、 前記原点復帰指令の入力によって前記原点復帰方向に前
記サーボモータを移動制御し、前記減速指令の入力によ
って前記サーボモータの移動を減速させ、前記移動停止
指令の入力によって前記サーボモータの移動を停止する
軸移動制御手段と、 を有することを特徴とするCNCの原点復帰方式。
1. A CNC origin return method for confirming the origin position of a table at the start of machining, the pulse signal being attached to the table and having a minute interval according to the movement amount of the table, and the pulse signal being more sufficient than the pulse signal. A linear scale that outputs a reference signal with a large interval, an absolute pulse coder that outputs an absolute position signal by detecting the absolute position of the servo motor that moves the table, and an absolute position signal from the absolute pulse coder, Absolute position detection means that outputs a deceleration start position signal when the table reaches the deceleration start position for origin return, and outputs a deceleration period end position signal when the table reaches the deceleration period end position, and outputs an origin return command when the power is turned on. However, a deceleration command is output when the deceleration start position signal is input, and the deceleration period end position signal is output. The origin return control means that outputs a movement stop command at the timing of the first reference signal after the input of, and the movement control of the servo motor in the origin return direction by the input of the origin return command, and the input of the deceleration command. Axis return control means for decelerating the movement of the servo motor and stopping the movement of the servo motor by the input of the movement stop command.
【請求項2】 前記原点復帰制御手段は、前記原点復帰
動作の開始から最初の前記基準信号の入力以後は、前記
基準信号と同じ間隔で仮想的にグリッド信号を生成する
ように構成されていることを特徴とする請求項1記載の
CNCの原点復帰方式。
2. The origin return control means is configured to virtually generate grid signals at the same intervals as the reference signal after the first input of the reference signal from the start of the origin return operation. The method for returning to origin of a CNC according to claim 1, wherein.
【請求項3】 加工開始時にテーブルの原点位置を確認
するためのCNCの原点復帰方式において、 前記テーブルに取り付けられ、前記テーブルの移動量に
応じた微小間隔のパルス信号と前記パルス信号よりも十
分に大きな間隔の基準信号を出力するリニアスケール
と、 前記テーブルを移動させるサーボモータの絶対位置を検
出して絶対位置信号を出力するアブソリュートパルスコ
ーダと、 電源投入時には軸移動開始指令を出力し、前記軸移動開
始から最初の前記基準信号の入力時に前記CNCの座標
系を前記アブソリュートパルスコーダの絶対位置と前記
基準信号のタイミングに基づいて補正する位置補正手段
と、 前記軸移動開始指令の入力とともに前記サーボモータの
移動制御を行う軸移動制御手段と、 を有することを特徴とするCNCの原点復帰方式。
3. A CNC origin return method for confirming the origin position of a table at the start of machining, in which a pulse signal attached to the table and having a minute interval according to the movement amount of the table and the pulse signal are more sufficient than the pulse signal. , A linear scale that outputs a reference signal with a large interval, an absolute pulse coder that detects the absolute position of the servo motor that moves the table and outputs an absolute position signal, and an axis movement start command is output when the power is turned on. Position correction means for correcting the coordinate system of the CNC based on the absolute position of the absolute pulse coder and the timing of the reference signal when the reference signal is input for the first time from the start of the axis movement; And a shaft movement control means for controlling the movement of the servomotor. Homing scheme.
【請求項4】 前記位置補正手段は、前記軸移動開始か
ら最初に前記基準信号が立ち上がったときに、前記軸移
動開始の前に前記基準信号と一致していた前記アブソリ
ュートパルスコーダの位置が前記基準信号と一致するよ
うに座標系を補正するように構成されていることを特徴
とするCNCの原点復帰方式。
4. The position correction means, when the reference signal first rises from the start of the axial movement, the position of the absolute pulse coder that matches the reference signal before the start of the axial movement is the position of the absolute pulse coder. A CNC origin return method, characterized in that it is configured to correct the coordinate system so as to match the reference signal.
JP19639494A 1994-08-22 1994-08-22 Origin return system for cnc Pending JPH0863212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19639494A JPH0863212A (en) 1994-08-22 1994-08-22 Origin return system for cnc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19639494A JPH0863212A (en) 1994-08-22 1994-08-22 Origin return system for cnc

Publications (1)

Publication Number Publication Date
JPH0863212A true JPH0863212A (en) 1996-03-08

Family

ID=16357144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19639494A Pending JPH0863212A (en) 1994-08-22 1994-08-22 Origin return system for cnc

Country Status (1)

Country Link
JP (1) JPH0863212A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990050221A (en) * 1997-12-16 1999-07-05 이종수 Servo motor initial operation control method
CN102707662A (en) * 2012-05-15 2012-10-03 广州数控设备有限公司 Zero returning control method based on industrial Ethernet bus technology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990050221A (en) * 1997-12-16 1999-07-05 이종수 Servo motor initial operation control method
CN102707662A (en) * 2012-05-15 2012-10-03 广州数控设备有限公司 Zero returning control method based on industrial Ethernet bus technology

Similar Documents

Publication Publication Date Title
EP0474882B1 (en) Numeric controller
WO1994023869A1 (en) Nc machining apparatus
US5144550A (en) Test run control method
EP0419679B1 (en) Returning method to reference point
US5485069A (en) Numerical control apparatus
JPH0863212A (en) Origin return system for cnc
JP2880211B2 (en) Tool load monitoring control method
WO1992009018A1 (en) Method for executing auxiliary function in numerical control equipment
US5081407A (en) Numerical control apparatus
JPH08211916A (en) System for return to origin of cnc
JP3729956B2 (en) Screw rework method in lathe
WO2023228356A1 (en) Numerical control device and computer-readable storage medium
JPH08211918A (en) Position control system of cnc
JP2622417B2 (en) Load monitoring control method of programmable controller
JPH03204703A (en) Numerical controller
JPH0637883Y2 (en) CNC grinder equipped with position synchronization controller
EP0346476A1 (en) Spindle control method and numerical controller
JP2788725B2 (en) Numerical control unit
JPH056210A (en) Torque limit system
JPS63157207A (en) Numerical controller
JPS6046442B2 (en) How to correct the origin position of a numerical control device
JPH04130501A (en) Origin position adjusting method and numerical controller therefor
JP2001071235A (en) Numerical control device
JPH01147607A (en) Numerical controller
JPH048485A (en) Teaching method of robot system with conveyor