JPH0481904A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH0481904A
JPH0481904A JP19649290A JP19649290A JPH0481904A JP H0481904 A JPH0481904 A JP H0481904A JP 19649290 A JP19649290 A JP 19649290A JP 19649290 A JP19649290 A JP 19649290A JP H0481904 A JPH0481904 A JP H0481904A
Authority
JP
Japan
Prior art keywords
machining
movement amount
movement
amount storage
storage memory
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
JP19649290A
Other languages
Japanese (ja)
Inventor
Shinji Iida
慎二 飯田
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 JP19649290A priority Critical patent/JPH0481904A/en
Publication of JPH0481904A publication Critical patent/JPH0481904A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To execute the working at a high speed, while reducing the memory capacity of a moving amount storage memory to held by executing the reciprocation working by using moving data of every minute unit time obtained by analyzing and operating one working program in the reciprocation working. CONSTITUTION:In a moving amount storage memory 9, a moving data group of every minute unit time which can be processed at a high speed, processed at the time of going-working which extends from P2 to P3 in the figure is stored. Accordingly, reciprocation working after the return direction working which extends from P4 to P5 in the figure comes to utilize a moving data group of its memory 9. In such a way, in the case of executing the reciprocation working, etc., of an object to be worked, working can be executed at a high speed, while reducing the capacity of the moving amount storage memory for storing moving data of every minute unit time which can be processed at a high speed to half.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、数値制御装置(以下NC装置と称す)に係
り、特に往復加工等の制御に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a numerical control device (hereinafter referred to as an NC device), and particularly relates to control of reciprocating machining and the like.

[従来の技術] 従来の往復加工の制御に用いたNC装置として、例えば
特開昭64−23305号公報に記載のNC装置がある
[Prior Art] As a conventional NC device used for controlling reciprocating machining, there is, for example, an NC device described in Japanese Patent Application Laid-Open No. 64-23305.

このNC装置は、1つのサブプログラムを順方向及び逆
方向の双方から読み込む事ができるようにしたもので、
従来のものに比べて加工プログラムのサイズが半分とな
り、゛このため、加工プログラムの作成時間が半減する
と共に、加工プログラム容量も半減するものである。
This NC device allows one subprogram to be read in both forward and reverse directions.
The size of the machining program is halved compared to the conventional one, so the time required to create the machining program is halved and the capacity of the machining program is also halved.

又、高速に工作機械を制御するためのNC装置として、
例えば特開昭57−201904号公報に記載のNC装
置がある。
Also, as an NC device for controlling machine tools at high speed,
For example, there is an NC device described in Japanese Unexamined Patent Publication No. 57-201904.

このNC装置は、NC装置に入力される演算指令ブロッ
ク群を予め最終演算結果である高速処理の可能な移動デ
ータ群に変換してメモリに記憶させておき1次にこれら
移動データ群を順次読み出して出力することにより工作
機械を高速に制御するものである。
This NC device converts a group of operation command blocks inputted to the NC device into a group of movement data that can be processed at high speed, which is the final operation result, in advance and stores it in a memory, and then sequentially reads out the group of movement data. The machine tool can be controlled at high speed by outputting the following information.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の特開昭64−23305号公報に示すNC装置で
は、往復加工の復路の加工においてサブプログラムをブ
ロック単位で逆方向から読み出さなければならないので
、サブプログラムの読み出し時間を要すると共に、各ブ
ロックを解析・演算して復路の移動データを求める必要
があり、よって往路と同様に時間がかかり、高速加工に
は不向きであるという問題点があった。又サブプログラ
ム中に直線補間指令(GO1O1指令円弧補間指令(G
02、GO3指令)がある場合、これらの指令の終点や
円弧中心位置を逆に計算し直す必要があり更に処理時間
がかかった。
In the conventional NC device disclosed in Japanese Patent Application Laid-open No. 64-23305, subprograms must be read out block by block from the opposite direction during the return pass of reciprocating machining. It is necessary to analyze and calculate the movement data for the return trip, which takes time as well as for the outward trip, which poses the problem of being unsuitable for high-speed machining. Also, a linear interpolation command (GO1O1 command, circular interpolation command (G
02, GO3 commands), it was necessary to recalculate the end point and arc center position of these commands, further increasing processing time.

又、従来の特開昭57−201904号公報に示すNC
装置は、上記特開昭64−23305号公報に開示の発
明のように往復加工の加工プログラムサイズの縮小を考
慮したものではないので、高速加工は可能なももの、往
復加工の復路の加工において加工プログラムを予め作成
しなければならず、よって特開昭64−23305号公
報に示すNC装置に比べて加工プログラムのサイズが2
倍となり、このため、加工プログラムの作成時間が倍増
すると共に、高速加工をさせるためには高速処理可能な
移動データ群を記憶させるメモリに復路加工用移動デー
タ群をも記憶させる必要がありそのメモリの容量が倍増
するという問題点があったー この発明は、かかる問題点を解決するためになされたも
ので、往復加工等において、高速処理可能な移動データ
群を記憶させるメモリ容量を増加させることな(高速加
工が可能なNC装置を得ることを目的とする。
Moreover, the NC shown in the conventional Japanese Patent Application Laid-Open No. 57-201904
Unlike the invention disclosed in JP-A No. 64-23305, the device does not take into account the reduction of the machining program size for reciprocating machining, so it is not suitable for machining thighs that are capable of high-speed machining, and for machining the return path of reciprocating machining. The machining program must be created in advance, so the size of the machining program is 2.
Therefore, the time required to create a machining program is doubled, and in order to perform high-speed machining, it is necessary to also store the movement data group for return machining in the memory that stores the movement data group that can be processed at high speed. There was a problem that the capacity of the machine was doubled.This invention was made to solve this problem.It increases the memory capacity to store a group of moving data that can be processed at high speed in reciprocating machining, etc. (The purpose is to obtain an NC device capable of high-speed machining.

〔課題を解決するための手段] この発明に係る数値制御装置は、移動量記憶メモリと、
この移動量記憶メモリに、所定の加工プログラムを解析
・演算した微小単位時間毎の移動データ群を、上記加工
プログラムのブロックの符号そのままの状態でかつブロ
ック順に格納する移動量格納手段と、上記移動量記憶メ
モリから移動データ群を加工プログラムのブロック順方
向とは逆方向に読み出す逆読み出し手段と、この逆読み
出し手段にて読み出された移動データ群の符号を反転さ
せて出力部に出力する逆変換手段とを備える構成とした
ものである。
[Means for Solving the Problems] A numerical control device according to the present invention includes a movement amount storage memory,
a movement amount storage means for storing, in the movement amount storage memory, a group of movement data for each minute unit time obtained by analyzing and calculating a predetermined machining program with the codes of the blocks of the machining program unchanged and in block order; Reverse reading means for reading out the movement data group from the quantity storage memory in a direction opposite to the block forward direction of the machining program, and reverse reading means for reversing the sign of the movement data group read by the reverse reading means and outputting it to the output section. The configuration includes a converting means.

又この発明の他の発明に係る数値制御装置は、移動量記
憶メモリと、この移動量記憶メモリに、所定の加工プロ
グラムを解析・演算した微小単位時間毎の移動データ群
を、上記加工プログラムのブロックの符号を反転した状
態でかつブロック順に格納する移動量格納手段と、上記
移動量記憶メモリから移動データ群を加工プログラムの
ブロック順方向とは逆方向に読み$し出力部に出力する
逆読み出し手段とを備える構成としたものである。
Further, the numerical control device according to another aspect of the present invention stores a movement amount storage memory and a movement data group for each minute unit time obtained by analyzing and calculating a predetermined machining program in the movement amount storage memory. A movement amount storage means that stores the blocks in block order with the sign reversed, and a reverse readout that reads the movement data group from the movement amount storage memory in a direction opposite to the block forward direction of the machining program and outputs it to the output section. The configuration includes a means.

〔作用〕[Effect]

この発明に係る数値制御装置は、例えば往復加工の場合
、往復加工のうち一方の加工用プログラムを解析・演算
した微小単位時間毎の移動データを使用して往復加工を
行う。
For example, in the case of reciprocating machining, the numerical control device according to the present invention performs reciprocating machining using movement data for each minute unit time obtained by analyzing and calculating one of the machining programs of the reciprocating machining.

[発明の実施例] 以下この発明の一実施例を説明する。[Embodiments of the invention] An embodiment of this invention will be described below.

第1図はこの発明の一実施例のメインプログラム(17
)とサブプログラム(18)との関係を示した説明図で
、第2図は往復加工時の加工軌跡を示した説明図、第3
図はこの発明の一実施例のNC閾装の構成を示した図、
第4図はその動作を示したフローチャート、第5図は第
4図の逆方向読み出しのブロックの詳細を示したフロー
チャートで、第6図は移動量記憶メモリ(9)に格納さ
れた移動データの説明図である。
FIG. 1 shows the main program (17) of an embodiment of this invention.
) and the subprogram (18). Figure 2 is an explanatory diagram showing the machining trajectory during reciprocating machining, and Figure 3 is an explanatory diagram showing the relationship between the subprogram (18).
The figure shows the configuration of an NC thresholder according to an embodiment of the present invention.
Fig. 4 is a flowchart showing the operation, Fig. 5 is a flowchart showing details of the backward reading block in Fig. 4, and Fig. 6 is a flowchart showing the details of the block of backward reading in Fig. 4. It is an explanatory diagram.

第3図において、(1)は加工プログラムを解読して被
加工物と工具の相対位置を制御することにより加工制御
を行うNC装置5、(2)は各種数値制御情報を表示す
る表示装置(CRT)及び各種設定情報を入力する操作
ボード、(3)は加工プログラム記憶媒体である加工プ
ログラムメモリ、(4)は加工プログラムメモリ(3)
から加工プログラムを読み、該加工プログラムを移動量
格納手段(11)又は移動量演算手段(21)に出力す
る加工プログラム入力手段、(5)は工作機械、(6)
は工作機械(5)に取り付けられた工具、(7)は工作
機械(5)を動かすサーボモータ、(8)は各種補間さ
れた情報を入力とし、サーボモータ(7)を駆動するた
めの駆動信号を発生する出力部であるサーボコントロー
ラ、(9)は移動量記憶メモリ、(lO)は移動量記憶
メモリ(9)内の移動回数レジスタ、(11)は加工プ
ログラム入力手段(4)から出力された加工プログラム
を解読し、そのプログラムから工具と被加工物の相対位
置を制御する各プログラムブロックを、微小単位時間毎
の移動データに補間演算して移動量記憶メモリ(9)に
格納する移動量格納手段、(12)は移動量格納手段(
11)が移動量記憶メモリ(9)に格納した回数をカウ
ントし、移動回数レジスタ(lO)に書き込む移動回数
加算手段、(13)は移動量記憶メモリ(9)に記憶さ
れた移動データを移動回数レジスタの回数になるまでサ
ーボコントローラ(8)に出力する移動量読み出し手段
、(14)は移動量記憶メモリ(9)から移動量を出力
すると移動回数レジスタ(10)の内容を更新する移動
回数減算手段、(15)は移動量記憶メモリ(9)から
微小単位時間毎の移動データを最後に格納されたものか
ら逆方向に読み出す移動量通読み出し手段、(16)は
その移動データの符号を反転してサーボコントローラ(
8)に出力する移動量逆変換手段、(19)はメインプ
ログラム(17)、サブプログラム(18)のどちらを
実行するかを判別するメインプログラム/サブプログラ
ム判別手段、(20)は往路加工(第2図におけるP2
からP3への加工)、復路加工(第2図におけるP4か
らP5への加工)のどちら方向の加工を行うかを判別す
ると共に、往路加工の場合における第1回目の加工か或
いは2回目以降の加工かを判別する往路加工/復路加工
判別手段で、第1回目の往路加工の場合、移動量格納手
段(11)及び移動量読み出し手段(13)を実行させ
、又第2回目以降の往路加工の場合、移動量読み出し手
段(13)のみを実行させ、更に復路加工の場合移動量
通読み出し手段(15)を実行させるものである。又(
21)はメインプログラムの移動量演算手段、(22)
は移動回数レジスタ(lO)の内容が「0」になったと
き、再度元の値に戻す移動回数リセット手段である。
In FIG. 3, (1) is an NC device 5 that performs machining control by decoding the machining program and controlling the relative position of the workpiece and tool, and (2) is a display device (2) that displays various numerical control information. CRT) and an operation board for inputting various setting information, (3) is a machining program memory which is a machining program storage medium, (4) is a machining program memory (3)
machining program input means for reading a machining program from and outputting the machining program to the travel amount storage means (11) or the travel amount calculation means (21); (5) is a machine tool; (6)
is a tool attached to the machine tool (5), (7) is a servo motor that moves the machine tool (5), and (8) is a drive that uses various interpolated information as input to drive the servo motor (7). The servo controller is an output unit that generates a signal, (9) is a movement amount storage memory, (lO) is a movement number register in the movement amount storage memory (9), and (11) is output from the machining program input means (4). A movement in which each program block that controls the relative position of the tool and workpiece is interpolated into movement data for each minute unit time and stored in the movement amount storage memory (9). The amount storage means (12) is the movement amount storage means (
11) counts the number of times stored in the movement amount storage memory (9) and writes it to the movement number register (lO); (13) moves the movement data stored in the movement amount storage memory (9); Movement amount reading means (14) outputs the movement amount to the servo controller (8) until it reaches the number of times in the movement amount register, and (14) is a movement number that updates the contents of the movement number register (10) when the movement amount is output from the movement amount storage memory (9). Subtraction means (15) is a movement amount readout means for reading movement data for each minute unit time from the movement amount storage memory (9) in the reverse direction from the last stored one, and (16) is a movement amount readout means for reading out the sign of the movement data. Flip it over and attach the servo controller (
(19) is a main program/sub program discrimination means for determining whether to execute the main program (17) or sub program (18); (20) is a forward machining ( P2 in Figure 2
In addition to determining in which direction machining is to be performed (machining from P4 to P3 in Fig. 2) or return machining (machining from P4 to P5 in Fig. 2), it is determined whether the process is the first machining or the second and subsequent machining in the case of forward machining. The forward machining/return machining discrimination means determines whether it is machining, and in the case of the first forward machining, the movement amount storage means (11) and the movement amount reading means (13) are executed, and the movement amount storage means (11) and the movement amount reading means (13) are executed in the case of the first outward machining. In this case, only the movement amount reading means (13) is executed, and in the case of backward machining, the movement amount reading means (15) is executed. or(
21) is the movement amount calculation means of the main program, (22)
is a movement count reset means that returns the contents of the movement count register (lO) to the original value when it becomes "0".

このNC装置は、基本的には、第4図に示すようにメイ
ンプログラムを演算実行させ(Sl)、このメインプロ
グラム中に指令されている指令コードがrM98.2J
かrM98−3Jかを判断しくS3)、その指令コード
がrM98.2Jの場合サブプログラムを順方向に実行
させ(S4)、又その指令コードが「M2R,3Jの場
合サブプログラムを逆方向に実行させ(S5)、そして
メインプログラムが終了するとその実行を終了させる(
Sl)ものである。
This NC device basically executes the main program as shown in Fig. 4 (Sl), and the command code instructed in this main program is rM98.
If the command code is rM98.2J, the subprogram is executed in the forward direction (S4), and if the command code is M2R, 3J, the subprogram is executed in the reverse direction. (S5), and when the main program ends, its execution is terminated (S5).
SL).

次にこのNC装置の詳細動作を具体例をもって説明する
Next, the detailed operation of this NC device will be explained using a specific example.

なおこの動作説明は、第2図に示すような往復加工を行
うため、第1図に示すような加工プログラムを実行する
場合について説明する。
In this operation description, a case will be described in which a machining program as shown in FIG. 1 is executed in order to perform reciprocating machining as shown in FIG. 2.

又、第1図のメインプログラム(17)中、rNlOG
OIX −3、F2O3; J ハ第2図!l;&t6
P11!l)らP2の位置まで工具(6)を500mm
 /分の送り速度で位置決めさせるための指令ブロック
、rNlIM9g、2P tooo; Jは01000
往路加工用サブプログラム(18)を順方向に実行させ
、第2図におけるP2からP3への往路加工を行わせる
ための指令ブロック、rN12GOIX −3; J 
ハ第2図4m g ケ6P3からP4の位置まで工具(
6)を位置決めさせるための指令ブロック、r N 1
3M98.3P 1000 ; Jは01000の往路
加工用サブプログラム(18)を逆方向に実行させ、第
2図におけるP4からP5への復路加工を行わせるため
の指令ブロックである。
Also, in the main program (17) in Figure 1, rNlOG
OIX -3, F2O3; J Ha Figure 2! l;&t6
P11! l) Move the tool (6) 500mm from position P2.
Command block for positioning at a feed rate of /min, rNlIM9g, 2P tooo; J is 01000
Command block for executing the forward machining subprogram (18) in the forward direction and performing the forward machining from P2 to P3 in FIG. 2, rN12GOIX-3; J
C Fig. 2 4m g Ke6 Tool (from P3 to P4 position)
6) Command block for positioning r N 1
3M98.3P 1000; J is a command block for executing the outgoing machining subprogram (18) of 01000 in the reverse direction and performing the backward machining from P4 to P5 in FIG.

まずこのようなメインプログラム(17)及びサブプロ
グラム(18)を加工プログラムメモリ(3)に記憶さ
せ、そして加工を開始させると、加工プログラム入力手
段(4)が加工プログラムメモリ(3)中のメインプロ
グラム(17)を読み込む。メインプログラム(17)
が読み込まれると、メインプログラム/サブプログラム
判別手段(19)がメインプログラム(17)の実行と
判断して移動量演算手段(21)を実行させ、移動量演
算手段(21)がメインプログラム(17)中の例えば
rNloGOIX−3,F2O3、J (7)ブロック
を演算処理してサーボコントローラ(8)にその処理結
果を渡し、サーボモータ(7)を制御する。例えばrN
lOGolx−3,Fsoo ; 」の処理が実行され
た場合、第2図におけるPLからP2への位置決めが5
00mm /分の送り速度で実行される。
First, such a main program (17) and subprogram (18) are stored in the machining program memory (3), and when machining is started, the machining program input means (4) inputs the main program in the machining program memory (3). Load program (17). Main program (17)
is read, the main program/subprogram determining means (19) determines that the main program (17) is to be executed and causes the movement amount calculation means (21) to execute, and the movement amount calculation means (21) executes the main program (17). ), for example, rNloGOIX-3, F2O3, J (7) blocks are processed and the processing results are passed to the servo controller (8) to control the servo motor (7). For example rN
lOGolx-3,Fsoo;'', the positioning from PL to P2 in Fig. 2 is 5.
It is carried out at a feed rate of 00 mm/min.

メインプロクラム(17)中(7) rNIOGOIX
−3゜F2O3;Jの処理が終了すると、次にr N 
11M98.2P 1000 ; Jのブロックを読み
込む。このブロックを読み込むと、メインプログラム/
サブプログラム判別手段(19)がサブプログラム(1
8)の実行と判断して往路加工/復路加工判別手段(2
0)を実行させる。このときこの判別手段(20)は第
1回目の往路加工であることを判別し、移動量格納手段
(11)を実行させる。移動量格納手段(11)はサブ
プログラム(18)を図示の上から下ヘーブロックずつ
読んでいくと共に、各ブロックを、最終演算結果である
窩速処理可能な移動データ群、即ち微小単位時間(6丁
)毎の移動データ群に変換して、サブプログラム(18
)のブロック順にかつサブプログラム(18)の各ブロ
ックの符号と同一の符号を移動量記憶メモリ(9)に格
納する。このとき移動回数加算手段(12)はその格納
回数をカウントし移動回数レジスタ(lO)に書き込む
Main program (17) (7) rNIOGOIX
-3°F2O3; When the process of J is completed, then r N
11M98.2P 1000; Read block J. Loading this block will cause the main program/
The subprogram determining means (19) determines whether the subprogram (1
8) is executed, the forward machining/return machining discrimination means (2) is executed.
0) is executed. At this time, the determining means (20) determines that this is the first outward machining, and causes the movement amount storing means (11) to execute. The movement amount storage means (11) reads the subprogram (18) block by block from the top to the bottom of the diagram, and stores each block as a group of movement data that can be processed at high speed, which is the final calculation result, that is, a micro unit time ( The subprogram (18
) and the same code as the code of each block of the subprogram (18) is stored in the movement amount storage memory (9). At this time, the movement number adding means (12) counts the number of storage times and writes it into the movement number register (lO).

因みにこのNC装置の微小単位時間(△T)が10m5
の場合、サブプログラム(18)中のrY−2−5;」
のブロックデータは、第6図に示すように微小単位時間
(6丁)当たり「−83μ」又は「−84μ」の移動デ
ータ群に変換されて移動量記憶メモリ(9)に格納され
、又rY−2,5,Jは30分割されるので移動回数レ
ジスタ(lO)には格納回数「30」回が書き込まれる
。なおこの移動データ群中、数値が異なるのは、Y軸を
−2,5mm移動させるための端数を!l!l整するた
めである。
By the way, the minute unit time (△T) of this NC device is 10m5
In the case of rY-2-5 in subprogram (18);
The block data of , as shown in FIG. Since -2, 5, and J are divided into 30, the number of storage times "30" is written in the movement number register (lO). In this movement data group, the difference in numerical values is the fraction for moving the Y-axis by -2.5mm! l! This is to adjust the situation.

サブプログラム(18)の終りにはr M 99Jのコ
ードが指令されており、加工プログラム入力手、段(4
)がこのブロックを読み込むと、移動量格納手段(11
)は移動データ群の格納を終了すると共に、移動量読み
出し手段(13)が移動量記憶メモリ(9)からサブプ
ログラム(18)に記述されたブロック順に移動データ
群を読み出し、サーボコントローラ(8>に出力するこ
とにより第2図におけるP2からP3の加工を実行させ
る。その時、移動回数減算手段(14)が移動の口数レ
ジスタ(10)を更新する。
At the end of the subprogram (18), the code rM99J is commanded, and the machining program input means, step (4)
) reads this block, the movement amount storage means (11
) finishes storing the movement data group, and at the same time, the movement amount reading means (13) reads out the movement data group from the movement amount storage memory (9) in the block order described in the subprogram (18), and the servo controller (8> The processing from P2 to P3 in Fig. 2 is executed by outputting the output to .At this time, the number of movements subtracting means (14) updates the number of movements register (10).

移動回数レジスタ(lO)が「0」になると、移動回数
リセット手段(22)が移動回数レジスタ(lO)の内
容を再度元の値に戻すと共に、メインプログラム(17
)に戻り、加工プログラム入力手段(4)が再びメイン
プログラム(17)中(7) rN12GOIX−3、
4を読み込み上述した処理と同様の処理を行うことによ
り第2図におけるP3からP4への位置決めを実行させ
る。
When the number of movements register (lO) becomes "0", the number of movements reset means (22) returns the contents of the number of movements register (lO) to the original value again, and the main program (17
), the machining program input means (4) returns to the main program (17) (7) rN12GOIX-3,
4 and performs the same processing as described above to execute positioning from P3 to P4 in FIG.

次にr N 13M98.3P 100G 、 Jのブ
ロックが読み込まれると、往路加工/復路加工判別手段
(20)は復路加工と判別し、移動量通読み出し手段(
15)を実行させる。
Next, when the block r N 13M98.3P 100G, J is read, the forward machining/return machining discrimination means (20) determines that it is the backward machining, and the movement amount reading means (
15).

移動量通読み出し手段(I5)は移動量記憶メモリ(9
)から移動データ群をサブプログラム(18)のブロッ
ク順とは逆方向に読み出し、移動量逆変換手段 (16
)がその移動データの符号を反転してサーボコントロー
ラ(8)に出力することにより第2図におけるP4から
P5への復路加工を実行させる。
The movement amount reading means (I5) reads the movement amount storage memory (9).
) is read out from the movement data group in the direction opposite to the block order of the subprogram (18), and movement amount inverse conversion means (16
) inverts the sign of the movement data and outputs it to the servo controller (8), thereby executing the return machining from P4 to P5 in FIG.

この復路加工処理の詳細を第5図のフローチャート及び
第6図の移動量記憶メモリ(9)に格納された移動デー
タ群の説明図により説明する。
The details of this backward machining process will be explained with reference to the flowchart in FIG. 5 and the explanatory diagram of the movement data group stored in the movement amount storage memory (9) in FIG.

即ち、サブプログラム(18)を逆方向に実行するため
に、移動量通読み出し手段(15)は移動量記憶メモリ
(9)に格納された最後のブロックの移動データをサー
チする(S51) 。
That is, in order to execute the subprogram (18) in the reverse direction, the movement amount reading means (15) searches for movement data of the last block stored in the movement amount storage memory (9) (S51).

その位置から移動データを読み込む(S52)。ここで
はY軸の移動量r−2,5Jの微小単位時間毎の移動量
「−84μ」に相当する移動データが読み込まれる。
Movement data is read from that position (S52). Here, movement data corresponding to the movement amount "-84μ" per micro unit time of the Y-axis movement amount r-2, 5J is read.

その時、移動回数減算手段(14)が移動回数レジスタ
(lO)の内容を更新する(S53)。
At that time, the movement number subtraction means (14) updates the contents of the movement number register (lO) (S53).

移動量逆変換手段(16)が各座標の移動データの符号
を変換する(554)。第6図の例では、Y軸の移動デ
ータの符号が「−」であるから「+」に符号変換される
The movement amount inverse conversion means (16) converts the sign of the movement data of each coordinate (554). In the example of FIG. 6, the sign of the Y-axis movement data is "-" and is converted to "+".

符号変換された移動データをサーボコントローラ(9)
に出力する[555)。
The code-converted movement data is sent to the servo controller (9)
[555]

次に1つ前の移動データをサーチ(S57) して上記
と同様な逆読み出し・逆変換処理を繰り返す(352〜
555)。そして、当該ブロックの移動回数レジスタ(
lO)が0になると[556) 、移動回数リセット手
段(22)が再度元の値に戻す(SSa)と共に、次ブ
ロックの移動データをサーチして上述の処理と同様の処
理を繰り返すことにより第2図におけるP4からP5へ
の復路加工を実行させる。
Next, the previous movement data is searched (S57), and the same reverse readout/inverse conversion process as above is repeated (352~
555). Then, move count register (
When lO) becomes 0 [556], the movement count reset means (22) returns it to the original value again (SSa), searches for the movement data of the next block, and repeats the same process as described above. Return machining from P4 to P5 in FIG. 2 is executed.

そしてこのサブプログラム(18)の実行が終了すると
、メインプログラム(17)の処理に戻り、加工プログ
ラム入力手段(4)が再びメインプログラム(17)中
のrN14GOIX−3,;Jを読み込み上述した処理
と同様の処理を行い、第2図におけるP5からP6への
位置決めを実行させる。
When the execution of this subprogram (18) is completed, the process returns to the main program (17), and the machining program input means (4) again reads rN14GOIX-3,;J in the main program (17) and performs the above-mentioned processing. The same process as above is performed to execute positioning from P5 to P6 in FIG.

次にr N 15M 98.2P 1000 ; Jの
ブロックが読み込まれると、往路加工/復路加工判別手
段(20)は、第2回目の往路加工であることを判別し
、移動量読み出し手段(I3)を実行させる。移動量読
み出し手段(13)は、移動量記憶メモリ(9)には上
述したように既に高速処理可能な微小単位時間(ΔT)
毎の移動データ群が記憶されているので、そのメモリ(
9)からサブプログラム(18)に記述されたブロック
順に移動データ群を読み出しサーボコントローラ(8)
に出力し、第2図におけるP6からP7への加工を実行
させる。そしてこれらの処理はメインプログラム(17
)が終了するまで繰返し行われる。
Next, when the block r N 15M 98.2P 1000 ; Execute. The movement amount reading means (13) has a movement amount storage memory (9) that already has minute unit time (ΔT) which can be processed at high speed.
Since the movement data group for each movement is stored, the memory (
The servo controller (8) reads the movement data group from 9) in the block order described in the subprogram (18).
The processing from P6 to P7 in FIG. 2 is executed. These processes are performed by the main program (17
) is repeated until it is completed.

即ち、この実施例にあっては移動量記憶メモリ(9)に
は、第2図におけるP2からP3への往路加工時に処理
した高速処理可能な微小単位時間(6丁)毎の移動デー
タ群が記憶されているので、第2図におけるP4からP
5への復路方向加工以降の往復加工は、そのメモリ(9
)の移動データ群を利用することになり、よって往復加
工する場合、そのメモリ(9)のメモリ容量を半減しつ
つ高速加工が可能となる。
That is, in this embodiment, the movement amount storage memory (9) stores a group of movement data for each small unit time (6 teeth) that can be processed at high speed and that was processed during the outward machining from P2 to P3 in FIG. Since it is stored, P4 to P in Figure 2
The reciprocating machining after the return direction machining to 5 is stored in its memory (9
) is used. Therefore, when performing reciprocating machining, high-speed machining is possible while reducing the memory capacity of the memory (9) by half.

なお、上記実施例では逆読み出し後に符号を反転させて
いるが、移動量記憶メモリ(9)に移動データ群を記憶
するときに符号を反転しておけば、復路加工の時は、逆
読み出しするだけでよく、上記実施例と同様の効果が得
られる。
Note that in the above embodiment, the sign is inverted after backward reading, but if the sign is inverted when storing the movement data group in the movement amount storage memory (9), the backward reading can be performed during backward machining. The same effect as in the above embodiment can be obtained.

勿論のことこの場合、往路加工時において、移動量読み
出し手段(13)にて読み出し後符号変換させる必要が
ある。
Of course, in this case, it is necessary to perform code conversion after reading by the movement amount reading means (13) during forward machining.

又上記実施例では、第1回目の往路加工時に演算して高
速処理可能な微小単位時間(6丁)毎の移動データ群を
移動量記憶メモリ(9)に記憶させるようにしたが、加
工前に演算処理してその移動データ群をメモリ(9)に
記憶させておけば更に高速加工が可能となる。
Further, in the above embodiment, a movement data group for each minute unit time (6 teeth) calculated during the first outgoing machining and which can be processed at high speed is stored in the movement amount storage memory (9). If arithmetic processing is performed and the movement data group is stored in the memory (9), even higher speed machining becomes possible.

又上記実施例では、第2図におけるP4からP5への復
路加工以降の往復加工は、移動量記憶メモリ(9)の移
動データ群を利用するものについて説明したが、往路加
工の度に高速処理可能な微小単位時間(ΔT)毎の移動
データ群に変換してメモリ(9)に記憶させ、復路加工
時のみその移動データ群を利用するように構成しても所
期の目的が達成できることはいうまでもない。
Furthermore, in the above embodiment, the reciprocating machining after the return machining from P4 to P5 in FIG. Even if the movement data group is converted into a movement data group for every possible minute unit time (ΔT) and stored in the memory (9), and the movement data group is used only during return machining, the intended purpose cannot be achieved. Needless to say.

なお又上記実施例にあっては往復加工にこの発明を適用
した場合について説明したが、往復加工ばかりでなく左
右対称形状の加工等にもこの発明が適用できる。
Furthermore, in the above embodiment, the case where the present invention is applied to reciprocating machining has been described, but the present invention can be applied not only to reciprocating machining but also to machining of bilaterally symmetrical shapes.

〔発明の効果J 以上のようにこの発明によれば、被加工物を往復加工等
をする場合、高速処理可能な微小単位時間毎の移動デー
タを格納するメモリの容量を半減しつつ高速加工ができ
るという効果が得られる。
[Effect of the Invention J As described above, according to the present invention, when reciprocating a workpiece, etc., high-speed machining can be achieved while halving the memory capacity for storing movement data for each minute unit time that can be processed at high speed. You can get the effect that you can.

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

図はこの発明の一実施例に係る図で、第1図はメインプ
ログラムとサブプログラムとの関係を示した説明図で、
第2rI!Jは往復加工時の加工軌跡を示した説明図、
第3図はNG装置の構成を示した図、第4図はその動作
を示したフローチャート、第5図は第4図の逆方向読み
出しのブロックの詳細を示したフローチャートで、第6
図は移動量記憶メモリに格納された移動データの説明図
である。 図において、(1)はNC装置、(2)は操作ボード、
(3)は加工プログラムメモリ、(4)は加工プログラ
ム入力手段、(5)は工作機械、(6)は工具、(7)
はサーボモータ、(8)はサーボコントローラ、(9)
は移動量記憶メモリ、(lO)は移動回数レジスタ、(
11)は移動量格納手段、(12)は移動回数加算手段
、(13)は移動量読み出し手段、 (14)は移動回
数減算手段、(15)は移動量通読み出し手段、 (1
6)は移動量逆変換手段、(17)はメインプログラム
、(18)はサブプログラム、(19)はメインプログ
ラム/サブプログラム判別手段、(20)は往路加工/
復路加工判別手段、 (21)は移動量演算手段、(2
2)は移動回数リセット手段である。 なお、図中、同一符号は同一、又は相当部分を示す。 メインプログラム 18゛ザフ゛アΩ7“ラム
The figure is a diagram according to an embodiment of the present invention, and FIG. 1 is an explanatory diagram showing the relationship between the main program and subprograms.
2nd rI! J is an explanatory diagram showing the machining trajectory during reciprocating machining,
FIG. 3 is a diagram showing the configuration of the NG device, FIG. 4 is a flowchart showing its operation, FIG. 5 is a flowchart showing details of the reverse read block in FIG. 4, and FIG.
The figure is an explanatory diagram of movement data stored in a movement amount storage memory. In the figure, (1) is an NC device, (2) is an operation board,
(3) is a machining program memory, (4) is a machining program input means, (5) is a machine tool, (6) is a tool, (7)
is a servo motor, (8) is a servo controller, (9)
is the movement amount storage memory, (lO) is the movement number register, (
11) is a movement amount storage means, (12) is a movement number addition means, (13) is a movement amount reading means, (14) is a movement number subtraction means, (15) is a movement amount reading means, (1
6) is the movement amount inverse conversion means, (17) is the main program, (18) is the subprogram, (19) is the main program/subprogram discrimination means, and (20) is the forward machining/
Return path machining determination means, (21) is movement amount calculation means, (2
2) is a movement number reset means. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Main program 18゛thefireΩ7“ram

Claims (2)

【特許請求の範囲】[Claims] (1)移動量記憶メモリと、この移動量記憶メモリに、
所定の加工プログラムを解析・演算した微小単位時間毎
の移動データ群を、上記加工プログラムのブロックの符
号そのままの状態でかつブロック順に格納する移動量格
納手段と、上記移動量記憶メモリから移動データ群を加
工プログラムのブロック順方向とは逆方向に読み出す逆
読み出し手段と、この逆読み出し手段にて読み出された
移動データ群の符号を反転させて出力部に出力する逆変
換手段とを備えてなる数値制御装置。
(1) A movement amount storage memory and this movement amount storage memory,
a movement amount storage means for storing a movement data group for each minute unit time obtained by analyzing and calculating a predetermined machining program with the block codes of the machining program unchanged and in block order; and a movement data group from the movement amount storage memory. A reverse reading means for reading out the data in a direction opposite to the forward direction of the block of the machining program, and an inverse conversion means for inverting the sign of the movement data group read by the reverse reading means and outputting it to the output section. Numerical control device.
(2)移動量記憶メモリと、この移動量記憶メモリに、
所定の加工プログラムを解析・演算した微小単位時間毎
の移動データ群を、上記加工プログラムのブロックの符
号を反転した状態でかつブロック順に格納する移動量格
納手段と、上記移動量記憶メモリから移動データ群を加
工プログラムのブロック順方向とは逆方向に読み出し出
力部に出力する逆読み出し手段とを備えてなる数値制御
装置。
(2) A movement amount storage memory and this movement amount storage memory,
a movement amount storage means for storing a group of movement data for each minute unit time obtained by analyzing and calculating a predetermined machining program with the signs of the blocks of the machining program inverted and in block order; and a movement amount storage means for storing movement data from the movement amount storage memory. A numerical control device comprising reverse reading means for reading a group in a direction opposite to the block forward direction of a machining program and outputting it to an output section.
JP19649290A 1990-07-25 1990-07-25 Numerical controller Pending JPH0481904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19649290A JPH0481904A (en) 1990-07-25 1990-07-25 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19649290A JPH0481904A (en) 1990-07-25 1990-07-25 Numerical controller

Publications (1)

Publication Number Publication Date
JPH0481904A true JPH0481904A (en) 1992-03-16

Family

ID=16358675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19649290A Pending JPH0481904A (en) 1990-07-25 1990-07-25 Numerical controller

Country Status (1)

Country Link
JP (1) JPH0481904A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012194651A (en) * 2011-03-15 2012-10-11 Toshiba Mach Co Ltd Spreading block arranging/recovering program, processing method using program, and machine tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012194651A (en) * 2011-03-15 2012-10-11 Toshiba Mach Co Ltd Spreading block arranging/recovering program, processing method using program, and machine tool

Similar Documents

Publication Publication Date Title
KR920002346B1 (en) Robot controller
JPH0481904A (en) Numerical controller
JP2985138B2 (en) Speed control device and numerical control feed speed control method
JPS61256407A (en) Numerical controller
JP2642203B2 (en) Numerical control information creation device
JP2733714B2 (en) Automatic coordinate axis conversion method for machine tools
JP4560191B2 (en) Numerical controller
JP2628297B2 (en) Robot control method and device
KR0160672B1 (en) Method and device of numeric controlling for mirror-image control
JPH07205068A (en) Coordinate system setting method of robot
JPH0561516A (en) Numerical controller
JPH0561517A (en) Numerical controller
JP2000347715A (en) Numerical controller
JPS5916676A (en) Welding method by welding robot
JPH09288509A (en) Block data processing method for numerical controller
JP3457693B2 (en) Robot trajectory control method
JPS6048243A (en) Zone margin machining method
JPS58117003A (en) Control system of industrial robot
JPS63276606A (en) Locus control system for articulated robot
JPH0561524A (en) Numerical controller
JPH0561519A (en) Numerical control device
JPH0561521A (en) Numerical controller
JPS6255708A (en) Numerical controller
JPH0562367B2 (en)
JPH0254307A (en) Numerical controller