JP2008130013A - Numerical control device - Google Patents

Numerical control device Download PDF

Info

Publication number
JP2008130013A
JP2008130013A JP2006317186A JP2006317186A JP2008130013A JP 2008130013 A JP2008130013 A JP 2008130013A JP 2006317186 A JP2006317186 A JP 2006317186A JP 2006317186 A JP2006317186 A JP 2006317186A JP 2008130013 A JP2008130013 A JP 2008130013A
Authority
JP
Japan
Prior art keywords
control
reference value
command
axis
stored
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
JP2006317186A
Other languages
Japanese (ja)
Inventor
Takahiko Endo
貴彦 遠藤
Toru Watanabe
徹 渡邉
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 JP2006317186A priority Critical patent/JP2008130013A/en
Publication of JP2008130013A publication Critical patent/JP2008130013A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To switch cutting feed mode/fast-forward mode in a path table operation. <P>SOLUTION: A command R200 for switching to a fast-forward mode in accordance with a reference value L and a command R201 for switching to a cutting feed mode are set and stored in a path table in which the position of a control shaft is stored in accordance with the reference value L, the reference value L and a shaft position of the i-th row command from the path table are defined as start points (Rs(L) and Rs(X)) (S3, S14 and S15), and the reference value L and the shaft position of the (i+1)-th row command are defined as end points (Re(L) and Re(X)) (S5). Movement is performed between the start points and the end points by a command function, while synchronizing with a reference value Lm (S11 to S13). When the commands R200 and R201 are read out, they are switched to servo control gains or the like suitable for a commanded feeding mode (S6, S7, S8 and S9). Cutting feed and fast-forward feed are possible during path table operation. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、工作機械や各種産業機械を制御する数値制御装置に関し、特に、時間や主軸位置等の基準値に対する制御軸の位置をテーブル形式データに基づいて制御する数値制御装置に関する。   The present invention relates to a numerical control device that controls machine tools and various industrial machines, and more particularly to a numerical control device that controls the position of a control axis with respect to a reference value such as time and spindle position based on table format data.

時間や主軸位置等の基準とする値に対する制御軸の位置を、テーブル形式データをパステーブルとしてメモリに記憶しておき、このパステーブルに記憶したデータに基づいて、基準値に同期させて、基準値に対応する制御軸の位置をパステーブルより読み出し、該位置に制御軸の位置を制御するパステーブル運転はすでに公知である(特許文献1参照)。   The position of the control axis with respect to the reference value such as time and spindle position is stored in the memory as table format data as a path table. Based on the data stored in this path table, the reference axis is synchronized with the reference value. A path table operation for reading the position of the control axis corresponding to the value from the path table and controlling the position of the control axis at the position is already known (see Patent Document 1).

このパステーブル運転での工作機械による加工では、従来の加工プログラムにとらわれない自由な工具の動作が可能となり、加工時間の短縮や加工の高精度化を実現している。   In machining with a machine tool in this pass table operation, it is possible to move the tool freely without being constrained by the conventional machining program, and the machining time is shortened and the machining accuracy is improved.

特許第3671020号公報Japanese Patent No. 3671020

従来のパステーブル運転においては、加工時間の短縮や加工の高精度化を目的としていることから、実際に切削する部分をパステーブル化してパステーブル運転を行うものが多く、移動指令は、切削送りのみである。パステーブル運転では、制御軸を駆動するサーボモータの位置、速度をフィードバック制御するモータ制御部のゲインや、フィードフォワード制御するときのフィードフォワード係数は、切削送り用のゲインや、フィードフォワード係数に固定されている。そのため、パステーブル運転で早送り相当の高速な移動を行わせると、過度にトルクが高くなるなどの問題が生じ、高速移動に適したモータ制御ができないという問題があった。   In conventional pass table operation, the purpose is to shorten the machining time and increase the accuracy of machining, so there are many cases where the part to be cut is made into a pass table and the pass table is operated. Only. In the path table operation, the gain of the motor controller that feeds back the position and speed of the servo motor that drives the control axis, and the feed forward coefficient when performing feed forward control are fixed to the gain for cutting feed and the feed forward coefficient. Has been. For this reason, when a high-speed movement equivalent to fast-forwarding is performed in the path table operation, there is a problem that the torque becomes excessively high, and a motor control suitable for high-speed movement cannot be performed.

そこで、本発明の目的は、高速移動に適したモータ制御をも可能にしたパステーブル運転ができる数値制御装置を提供することにある。   Accordingly, an object of the present invention is to provide a numerical control device capable of path table operation that enables motor control suitable for high-speed movement.

本発明、時間あるいは主軸位置を基準とし、該基準の値と制御軸の位置とを対応させたパステーブルをメモリに格納しておき、該パステーブルの基準の値と制御軸の位置を順次読み出し、基準値に同期して制御軸の位置を制御する数値制御装置において、前記パステーブルには、切削送りと早送りの送りモードの切換指令を設定しておき、前記パステーブルより前記切換指令が読み出され、該切換指令が記憶された基準の値に、基準値が達した時に、制御軸を駆動制御するサーボモータの制御手段の制御ゲインを切換指令された送りモードの値に切換える手段を備えたことを特徴とするものである。又、前記サーボモータの制御手段がフィードフォワード制御をも含むときには、該フィードフォワード制御の係数をも、切換指令された送りモードの値に切換えるようにした。   The present invention stores a path table in which a reference value and a control axis position are associated with each other on the basis of time or spindle position, and sequentially reads the reference value of the path table and the control axis position. In the numerical control apparatus that controls the position of the control axis in synchronization with the reference value, a switching command for cutting feed and rapid feed mode is set in the path table, and the switching command is read from the path table. Means for switching the control gain of the servo motor control means for driving and controlling the control shaft to the value of the feed mode instructed to switch when the reference value reaches the reference value stored in the switching command. It is characterized by that. When the servo motor control means includes feed forward control, the coefficient of the feed forward control is also switched to the value of the feed mode instructed to be switched.

パステーブル運転においても、切削送り、早送りと切換えて実施することができ、高速移動のパステーブル運転ができる。   In the pass table operation, it is possible to switch between cutting feed and fast feed, and a high speed movement pass table operation can be performed.

以下、本発明の一実施形態について図面と共に説明する。
図1は本発明の一実施形態の数値制御装置10の要部ブロック図である。CPU11は数値制御装置10を全体的に制御するプロセッサである。CPU11は、ROM12に格納されたシステムプログラムを、バス19を介して読み出し、該システムプログラムに従って数値制御装置全体を制御する。RAM13には一時的な計算データや表示データ及びCRTや液晶等で構成される表示器とキーボード等で構成される手動入力手段とからなる表示器/MDIユニット20を介してオペレータが入力した各種データが格納される。SRAM14には、インターフェイス15を介して読み込まれた加工プログラムや表示器/MDIユニット20を介して入力された加工プログラム等が記憶される。表示器/MDIユニット20は、インターフェイス18を介してバス19に接続されている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a principal block diagram of a numerical controller 10 according to an embodiment of the present invention. The CPU 11 is a processor that controls the numerical controller 10 as a whole. The CPU 11 reads out a system program stored in the ROM 12 via the bus 19 and controls the entire numerical control device according to the system program. The RAM 13 stores temporary calculation data, display data, and various data input by the operator via a display / MDI unit 20 including a display composed of a CRT, liquid crystal, etc., and manual input means composed of a keyboard. Is stored. The SRAM 14 stores a machining program read through the interface 15 and a machining program input through the display / MDI unit 20. The display / MDI unit 20 is connected to the bus 19 via the interface 18.

インターフェイス15は、数値制御装置10とメモリカード21等の外部機器との接続を可能とするものである。PMC(プログラマブル・マシン・コントローラ)16は、数値制御装置10に内蔵されたシーケンスプログラムで制御対象物の工作機械の補助装置にI/Oユニット17を介して信号を出力し制御する。また、数値制御装置で制御される制御対象物である工作機械の本体に配備された操作盤の各種スイッチ等の信号を受け、必要な信号処理をした後、CPU11に渡す。
X、Y、X軸のサーボモータ30x、30y、30zを駆動制御する軸制御回路31x、31y、31zはCPU11からの各軸の移動指令量を受けて、各軸の指令をサーボアンプ32x、32y、32zに出力する。サーボアンプ32x、32y、32zはこの指令を受けて、機械(制御対象物)の各軸のサーボモータ30x、30y、30zを駆動する。各軸のサーボモータ30x、30y、30zは位置・速度検出器を内蔵し、この位置・速度検出器からの位置、速度フィードバック信号を軸制御回路31x、31y、31zにフィードバックし、位置・速度のフィードバック制御を行う。なお、図1では、位置・速度のフィードバックについては省略している。
The interface 15 enables connection between the numerical controller 10 and an external device such as the memory card 21. A PMC (programmable machine controller) 16 is a sequence program built in the numerical control device 10 and outputs a signal to an auxiliary device of a machine tool to be controlled via the I / O unit 17 for control. In addition, it receives signals from various switches on the operation panel provided on the machine tool main body, which is a control object controlled by the numerical control device, performs necessary signal processing, and then passes them to the CPU 11.
Axis control circuits 31x, 31y, and 31z that drive and control servo motors 30x, 30y, and 30z for the X, Y, and X axes receive movement command amounts for the respective axes from the CPU 11, and send the commands for the respective axes to servo amplifiers 32x and 32y. , 32z. In response to this command, the servo amplifiers 32x, 32y, and 32z drive the servo motors 30x, 30y, and 30z of each axis of the machine (control target). Each axis servo motor 30x, 30y, 30z has a built-in position / velocity detector, and the position / velocity feedback signal from this position / velocity detector is fed back to the axis control circuits 31x, 31y, 31z, Perform feedback control. In FIG. 1, the position / speed feedback is omitted.

また、スピンドル制御回路40は主軸回転指令を受け、スピンドルアンプ41にスピンドル速度信号を出力する。スピンドルアンプ41はスピンドル速度信号を受けて、主軸モータ42を指令された回転速度で回転させる。ポジションコーダ43は、主軸モータ42の回転に同期して帰還パルスをスピンドル制御回路40にフィードバックし、速度制御を行う。   The spindle control circuit 40 receives a spindle rotation command and outputs a spindle speed signal to the spindle amplifier 41. The spindle amplifier 41 receives the spindle speed signal and rotates the spindle motor 42 at the commanded rotational speed. The position coder 43 feeds back a feedback pulse to the spindle control circuit 40 in synchronization with the rotation of the spindle motor 42 to perform speed control.

上述したように数値制御装置10のハードウェア構成としては、従来の数値制御装置と同じであるが、本実施形態では、SRAM14に、基準値に同期させるためにこの基準の値に対する制御軸の位置をテーブル形式データで記憶したパステーブルを予め格納されていることと、該パステーブルに切削送り、早送りのモード切換指令が組み込まれ、パステーブル運転中に切削送りのモータ制御、早送りの高速移動のモータ制御ができるように構成されている点で従来と相違する。なお、基準値としては、時間や主軸の位置を用い、時間を用いるときには、数値制御装置10内のクロックに基づいて基準値が生成され、主軸位置を用いるときには、ポジションコーダ43からの主軸位置信号を、スピンドル制御回路40を介して読込み、この読み込んだ主軸位置を基準値とする。   As described above, the hardware configuration of the numerical control apparatus 10 is the same as that of the conventional numerical control apparatus. However, in this embodiment, the position of the control axis with respect to the reference value is set in the SRAM 14 in order to synchronize with the reference value. Is stored in advance in a table format data, and a cutting feed and fast feed mode switching command is incorporated into the pass table, and the cutting feed motor control and fast feed high-speed movement during the path table operation. It differs from the prior art in that it is configured to allow motor control. As the reference value, time or the position of the spindle is used. When using time, a reference value is generated based on the clock in the numerical controller 10, and when using the spindle position, the spindle position signal from the position coder 43 is used. Is read via the spindle control circuit 40, and the read spindle position is used as a reference value.

このモード切換指令が組み込まれたパステーブルの一例を以下に示す。
L0 X0.0 R1
L900 X100.0 R1
L1000 R200
L1100 X100.0 R1
L2100 X550.0 R1
L2200 R201
L2300 X550.0 R1
L4300 X500.0 R1


上述したパステーブルのデータにおいて、「L□」は基準値に対応する基準の値を示し、「X□」はパステーブル運転による制御軸の位置を示し、この例では制御軸がX軸のパステーブル運転の例を示している。なお、パステーブルで指令される基準の値は、Lと記載し、同期するために読み出す基準値をLmと記載する。又、R1の指令は、一次関数で輪郭制御を行う指令であり、パステーブルで指令された各制御軸の位置間を一次関数の直線による接続の輪郭制御を行うように移動指令の分配処理を行わせる指令である。又、この指令をR2、R3として指令することにより、二次関数接続、三次関数接続を指令することもできるものである。この点は、前述した特許文献1に記載されており、本願発明と直接関係しないものであるから、詳細は省略する。
又、R200の指令は、切削送りから早送りへの切換を行う送りモード切換指令であり、R201の指令は、早送りから切削送りへの切換を行う送りモード切換指令である。
An example of a path table in which this mode switching command is incorporated is shown below.
L0 X0.0 R1
L900 X10.0 R1
L1000 R200
L1100 X100.0 R1
L2100 X550.0 R1
L2200 R201
L2300 X550.0 R1
L4300 X50.0 R1
...
...
In the path table data described above, “L □” indicates a reference value corresponding to the reference value, “X □” indicates the position of the control axis by the path table operation, and in this example, the control axis is the X-axis path. An example of table operation is shown. Note that the reference value commanded in the path table is described as L, and the reference value read for synchronization is described as Lm. Also, the command of R1 is a command for performing contour control with a linear function, and movement command distribution processing is performed so as to perform contour control of connection between the positions of each control axis commanded by the path table by a straight line of the linear function. It is a command to be performed. Further, by commanding these commands as R2 and R3, it is also possible to command a quadratic function connection and a cubic function connection. Since this point is described in Patent Document 1 described above and is not directly related to the present invention, details thereof are omitted.
The R200 command is a feed mode switching command for switching from cutting feed to rapid feed, and the R201 command is a feed mode switching command for switching from fast feed to cutting feed.

このパステーブルによる運転による動作、即ち、基準値に対する制御軸のX軸の位置の関係をグラフに表したものが図2である。
パステーブル運転は、パステーブルの1行に記載されているように基準の値L=0で制御軸のX軸の位置X=0から開始される。
次の行は、L=900、X=100.0であり、R1の一次関数接続の指令であるから、図2に示すように、基準値Lmが指令値L=900になったときX=100.0になるように一次関数接続(直線接続)でX軸のサーボモータ30xが制御される。次の行には、基準の値L=1000で早送りに切換える指令R200が指令されていることから、基準値Lmが「1000」となった時点で、早送りモードに切換えられ、各制御軸を駆動するサーボモータ30x、30y、30zの制御手段の軸制御回路31x、31y、31zにおける制御ゲイン(位置や速度のフィードバック制御ゲイン)さらにはフィードフォワード制御をも行っているときは、このフィードフォワード係数を、パラメータメモリに設定されている早送り用の値に変更する。
FIG. 2 is a graph showing the operation by this path table, that is, the relationship of the position of the X axis of the control axis with respect to the reference value.
The path table operation is started from the position X = 0 of the X axis of the control axis with the reference value L = 0 as described in one line of the path table.
The next line is L = 900, X = 10.0, and is a command for connecting a linear function of R1, and as shown in FIG. 2, when the reference value Lm becomes the command value L = 900, X = The X-axis servomotor 30x is controlled by linear function connection (straight line connection) so as to be 100.0. In the next line, since the command R200 for switching to the rapid feed at the reference value L = 1000 is commanded, when the reference value Lm becomes “1000”, the mode is switched to the fast feed mode to drive each control axis. When the control gain (feedback control gain of position and speed) and also the feedforward control are performed in the axis control circuits 31x, 31y, 31z of the control means of the servo motors 30x, 30y, 30z, the feedforward coefficient is Change to the fast-forward value set in the parameter memory.

次の行では、「L1100 X100.0 R1」と指令されているから、基準値Lm=1100になるまで、X軸は移動せず、次の行で「L2100 X550.0 R1」と指令されているから、基準値Lmが「1100」から「2100」までの間は、X軸は「100.0」から「550.0」の位置まで、早送りにより一次関数接続(直線接続)でX軸のサーボモータ30xが駆動制御される。   In the next line, “L1100 X100.0 R1” is commanded, so the X axis does not move until the reference value Lm = 1100, and in the next line, “L2100 X550.0 R1” is commanded. Therefore, when the reference value Lm is between “1100” and “2100”, the X-axis is moved from “100.0” to “550.0” in a linear function connection (straight line connection) by rapid traverse. The servo motor 30x is driven and controlled.

次の行では、「L2200 R201」と指令されているから、基準値Lmが「2200」に達すると、切削送りモードに切換えられ(制御ゲインやフィードフォワード係数の値の切換)、次の行での指令が「L2300 X550.0 R1」でその次の指令が「L4300 X500.0 R1」であるから、基準値Lmが「2300」になるまで待ち、基準値Lmが「2300」となると、基準値Lmが「4300」になるまでの間に、X軸を「550.0」から「500.0」の位置まで、切削送りにより一次関数接続(直線接続)でX軸のサーボモータ30xが駆動制御される。   In the next line, since "L2200 R201" is commanded, when the reference value Lm reaches "2200", the cutting feed mode is switched (switching of control gain and feedforward coefficient values). Is “L2300 X550.0 R1” and the next command is “L4300 X50.0 R1”. Wait until the reference value Lm becomes “2300”, and when the reference value Lm becomes “2300”, Before the value Lm reaches “4300”, the X-axis servomotor 30x is driven by a linear function connection (straight line connection) by cutting feed from the position of “550.0” to “50.0”. Be controlled.

以上のように、上述したパステーブルの例では、図2に示すように、制御軸のX軸が駆動制御されることになり、パステーブル運転中も切削送りから、早送りに、又は、逆に早送りから切削送りに切換えられ制御軸を制御できるものである。   As described above, in the example of the path table described above, as shown in FIG. 2, the X axis of the control axis is driven and controlled, and during the path table operation, from cutting feed to rapid feed or vice versa. The control axis can be controlled by switching from rapid feed to cutting feed.

図3は、数値制御装置のCPU11がパステーブル運転するときの処理のアルゴリズムを示すフローチャートである。このフローチャートにおいても、パステーブル運転で制御される制御軸はX軸として説明しているが、他の軸を制御してもよいことはもちろんである。   FIG. 3 is a flowchart showing an algorithm of processing when the CPU 11 of the numerical control device performs a path table operation. Also in this flowchart, the control axis controlled by the path table operation is described as the X axis, but it goes without saying that other axes may be controlled.

パステーブル運転を開始する際には、制御軸は、パステーブル運転開始位置に位置決めされており、パステーブル運転指令が入力されると、CPU11は、まず、パステーブルにおける指令が記載されている行を指定するポインタiを「1」にセットし(ステップS1)、該パステーブルのi行のデータを読み取り(ステップS2)、指令基準の値Liを、パス始点を記憶するレジスタMs(L)に格納し、制御軸の指令、即ちX軸への指令位置が指定されていれば、該位置Xiをパスの始点を記憶するレジスタMs(X)に格納する(ステップS3)。次に、パステーブルの(i+1)行のデータを読み取り(ステップS4)、指令基準の値Li+1を、パス終点を記憶するレジスタMe(L)に格納し、制御軸のX軸への指令位置が指定されていれば、該位置Xi+1をパスの終点を記憶するレジスタMe(X)に格納する(ステップS5)。   When starting the pass table operation, the control axis is positioned at the pass table operation start position. When a pass table operation command is input, the CPU 11 first executes the line in which the command in the pass table is described. Is set to "1" (step S1), i-row data in the path table is read (step S2), and the command reference value Li is stored in the register Ms (L) for storing the path start point. If the command for the control axis, that is, the command position for the X axis is designated, the position Xi is stored in the register Ms (X) for storing the starting point of the path (step S3). Next, the data in the (i + 1) line of the path table is read (step S4), the command reference value Li + 1 is stored in the register Me (L) for storing the path end point, and the command to the X axis of the control axis is stored. If the position is designated, the position Xi + 1 is stored in the register Me (X) that stores the end point of the path (step S5).

ステップS4で読み込んだ(i+1)行のデータで「R200」の送りモード切換指令があるか(ステップS6)、「R201」の指令があるか(ステップS8)、テーブル運転の終了指令があるか(ステップS10)、判断し、これらの指令がなければ、基準値Lmを読み出し(ステップS11)、該基準値LmがステップS5でレジスタMe(L)に記憶した値(Li+1)以上か判断する(ステップS12)。なお、基準値Lmは増大するものとしてパステーブルデータが登録され、テーブル運転されるものとしている。   Whether there is a “R200” feed mode switching command (step S6), a “R201” command (step S8), or a table operation end command (i + 1) row data read in step S4 (step S6) In step S10), if there is no such command, the reference value Lm is read (step S11), and it is determined whether the reference value Lm is equal to or greater than the value (Li + 1) stored in the register Me (L) in step S5. (Step S12). It is assumed that the path table data is registered and the table operation is performed on the assumption that the reference value Lm increases.

最初は、基準値LmはレジスタMe(L)に記憶した終点の値(Li+1)に達していないから、ステップS13に移行し、レジスタMs(L)、Ms(X)に記憶する始点の基準の値Li、X軸の位置Xiと、レジスタMe(L)、Me(X)に記憶する終点の基準の値Li+1、X軸の位置Xi+1に基づいて、ステップS4で読み込んだ、輪郭制御の関数指令R(R1、R2、R3等)による処理を行い、補間周期におけるX軸の位置を求め、前周期でのX軸の位置との差の移動量を、X軸を駆動する軸制御回路31xに出力する。以下、補間周期毎ステップS11〜S13の処理を繰り返し実行し、指令された関数による移動量を求めX軸の軸制御回路31xに出力し、X軸の軸制御回路31xは、この指令された移動量と位置・速度検出器からフィードバックされる位置、速度に基づいて位置、速度のフィードバック制御、さらにはフィードフォワード制御等のモータ制御を行い、サーボアンプ32xを介してX軸のサーボモータ30xを駆動制御する。   At first, since the reference value Lm has not reached the end point value (Li + 1) stored in the register Me (L), the process proceeds to step S13, where the start point stored in the registers Ms (L) and Ms (X) is stored. Based on the reference value Li, the X-axis position Xi, the end-point reference value Li + 1 stored in the registers Me (L) and Me (X), and the X-axis position Xi + 1, the data is read in step S4. , Processing by contour control function command R (R1, R2, R3, etc.) is performed, the position of the X axis in the interpolation cycle is obtained, and the movement amount of the difference from the position of the X axis in the previous cycle is driven. Output to the axis control circuit 31x. Thereafter, the processing of steps S11 to S13 is repeatedly executed for each interpolation cycle, the movement amount by the commanded function is obtained and output to the X-axis axis control circuit 31x, and the X-axis axis control circuit 31x performs this commanded movement. Based on the position and speed fed back from the quantity and position / velocity detector, position and speed feedback control, and motor control such as feedforward control are performed, and the X-axis servomotor 30x is driven via the servo amplifier 32x. Control.

ステップS11〜13を繰り返し実行中に、基準値LmがレジスタMe(L)に記憶した終点の値(Li+1)以上になると、ポインタiを1インクリメントし(ステップS14)、終点の基準の値を記憶するレジスタMe(L)の値を、始点の基準の値を記憶するレジスタMs(L)に格納し、終点X軸位置を記憶するレジスタMe(X)の値を、終点X軸位置を記憶するレジスタMs(X)に格納し(ステップS15)、ステップS4に戻り、前述したステップS4〜S6、S8、S10〜S15の処理を実行する。   If the reference value Lm becomes equal to or greater than the end point value (Li + 1) stored in the register Me (L) during repeated execution of steps S11 to 13, the pointer i is incremented by 1 (step S14), and the end point reference value is reached. Is stored in the register Ms (L) that stores the reference value of the start point, the value of the register Me (X) that stores the end point X-axis position, and the end point X-axis position. The data is stored in the register Ms (X) to be stored (step S15), the process returns to step S4, and the processes of steps S4 to S6, S8, and S10 to S15 described above are executed.

ステップS4〜S6、S8、S10〜S15の処理を実行中、ステップS6で、切削送りから早送りへの切換を行う送りモード指令R200が読み込まれたことが検出されると、設定されている早送り用のパラメータを読込み、制御軸のサーボモータを制御する軸制御回路31x、31y、31zのモータ制御ゲイン等のパラメータ値に切換える。即ち、サーボモータの位置、速度を制御する位置、速度のフィードバック制御の位置ループゲインや速度制御ゲイン等を早送り用の値に変更する。又、軸制御回路31x、31y、31zがフィードフォワード制御をも行うものであれば、このフィードフォワード制御のフィードフォワード係数も早送り用の値に切換えて(ステップS7)、ステップS11に移行する。以後は、軸制御回路31x、31y、31zは切換えられた早送り用のモータ制御のゲインや係数に基づいてサーボモータ30x、30y、30zは制御されることになる。   When the processing of steps S4 to S6, S8, and S10 to S15 is being executed, if it is detected in step S6 that the feed mode command R200 for switching from cutting feed to fast feed is read, the set fast feed is set. Are switched to parameter values such as motor control gains of the axis control circuits 31x, 31y, 31z for controlling the servo motors of the control axes. That is, the position of the servo motor, the position for controlling the speed, the position loop gain for speed feedback control, the speed control gain, and the like are changed to the values for fast-forwarding. If the axis control circuits 31x, 31y, and 31z also perform feedforward control, the feedforward coefficient of this feedforward control is also switched to the fast forward value (step S7), and the process proceeds to step S11. Thereafter, the servo motors 30x, 30y, and 30z are controlled by the axis control circuits 31x, 31y, and 31z based on the switched fast-feed motor control gains and coefficients.

一方、ステップS8で、早送りから切削送りへの切換を行う指令R201が読み込まれたことが検出されると、切削送り用のパラメータを読込み、軸制御回路31x、31y、31zのモータ制御ゲインやフィードフォワード係数を切削送り用の値に切換えて(ステップS9)、ステップS11に移行する。以後は、軸制御回路は切換えられた切削送り用のモータ制御のゲインや係数に基づいてサーボモータは制御されることになる。   On the other hand, when it is detected in step S8 that the command R201 for switching from rapid feed to cutting feed is read, the parameters for cutting feed are read and the motor control gains and feeds of the axis control circuits 31x, 31y, 31z are read. The forward coefficient is switched to a value for cutting feed (step S9), and the process proceeds to step S11. Thereafter, the servo motor is controlled on the basis of the gain and coefficient of the motor control for the cutting feed that has been switched by the axis control circuit.

上述したステップS4からステップS15までの処理が繰り返し実行されて、ステップS10でテーブル運転の終了指令が読み込まれたことが判別されるとこのテーブル運転は終了する。   When the processes from step S4 to step S15 described above are repeatedly executed and it is determined in step S10 that the table operation end command has been read, the table operation ends.

そこで、図2に示した動作を実行させる上述したパステーブルのデータの例で説明すると、ステップS1でポインタiが「1」にセットされ、ステップS3で、i=1行で指令された基準の値L=0がレジスタMs(L)に格納され、X軸位置X=0.0がレジスタMs(X)に格納される。又、ステップS5では、レジスタMe(L)に「900」が格納され、レジスタMe(X)に「100.0」が格納される。そして、ステップS11〜S13の処理によって、図2に示すように、始点(Ms(L),Ms(X))=(L1,X1)=(0,0.0)から終点(Me(L),Me(X))=(L2,X2)=(900,100.0)まで、一次関数(R1)による直線移動の輪郭制御がなされる。   Therefore, in the example of the above-described path table data for executing the operation shown in FIG. 2, the pointer i is set to “1” in step S1, and the reference i commanded in the line i = 1 in step S3. The value L = 0 is stored in the register Ms (L), and the X-axis position X = 0.0 is stored in the register Ms (X). In step S5, “900” is stored in the register Me (L), and “100.0” is stored in the register Me (X). Then, by the processing in steps S11 to S13, as shown in FIG. 2, the start point (Ms (L), Ms (X)) = (L1, X1) = (0, 0.0) to the end point (Me (L) , Me (X)) = (L2, X2) = (900, 100.0), the linear movement contour control is performed by the linear function (R1).

そして、基準値Lmが「900」になると、ステップS12からステップS14に移行しポインタiがインクリメントされ(i=2)、今までの終点を始点とする置き換え処理のステップS15の処理がなされ、始点(Ms(L),Ms(X))=(L2,X2)=(900,100.0)とされ、次の3行(i+1=2+1=3)の指令がステップS4で読み込まれるが、この行の指令は、「L1000 R200」であることから、ステップS5では、Me(L)には「1000」が格納されるが、Me(X)には、指令がないので、先に記憶した「100.0」が記憶された状態となる。すなわち、終点(Me(L),Me(X))=(L3,X3)=(1000,100.0)となる。又、「R200」の指令であることから、早送りモードに切換えられ(ステップS7)、ステップS11〜S13の処理がなされるが、始点(Ms(L),Ms(X))=(L2,X2)=(900,100.0)で、終点(Me(L),Me(X))=(L3,X3)=(1000,100.0)であるから、X軸は移動しない。   Then, when the reference value Lm becomes “900”, the process proceeds from step S12 to step S14, the pointer i is incremented (i = 2), and the process of step S15 of the replacement process starting from the previous end point is performed. (Ms (L), Ms (X)) = (L2, X2) = (900, 100.0) and the next three lines (i + 1 = 2 + 1 = 3) are read in step S4. Since the command for the line is “L1000 R200”, in step S5, “1000” is stored in Me (L), but since there is no command in Me (X), the “ “100.0” is stored. That is, the end point (Me (L), Me (X)) = (L3, X3) = (1000, 100.0). Further, since it is a command of “R200”, the mode is switched to the fast-forward mode (step S7), and the processing of steps S11 to S13 is performed, but the start point (Ms (L), Ms (X)) = (L2, X2 ) = (900, 100.0) and the end point (Me (L), Me (X)) = (L3, X3) = (1000, 100.0), the X axis does not move.

基準値Lmが終点位置1000に達すると、ポインタiは「3」とされ(ステップS14)、始点を記憶するレジスタMs(L)には「1000」、Ms(X)には「100.0」が格納され(ステップS15)、ステップS4でi+1=4行目の指令が読まれ、ステップS5で、終点のレジスタMe(L)には、「1100」、Me(X)には「100.0」が格納されることになる。そしてステップS11〜S13の処理がなされるが、始点と終点のX軸位置が同じであることから、X軸のサーボモータ30xは移動せず停止したままである。   When the reference value Lm reaches the end point position 1000, the pointer i is set to “3” (step S14), “1000” is stored in the register Ms (L) storing the start point, and “100.0” is stored in Ms (X). Is stored (step S15). In step S4, the command of i + 1 = 4th line is read. In step S5, "1100" is stored in the end point register Me (L), and "100.0 is stored in Me (X). "Is stored. Then, although the processes of steps S11 to S13 are performed, the X-axis servo motor 30x does not move and remains stopped because the X-axis position of the start point and the end point are the same.

そして基準値Lmが「1100」となると、ポインタiは「4」、レジスタMs(L)には「1100」、Ms(X)には「100.0」が格納され(ステップS14、S15)、ステップS5で、5行目の指令により、レジスタMe(L)には「2100」、Ms(X)には「550.0」が格納されることから、ステップS11〜S13の処理では、始点(Ms(L),Ms(X))=(1100,100.0)から終点(Me(L),Me(X))=(2100,550.0)まで、一次関数の直線送りによる早送りが図2に示すように実行されることになる。   When the reference value Lm becomes “1100”, the pointer i is “4”, “1100” is stored in the register Ms (L), and “100.0” is stored in Ms (X) (steps S14 and S15). In step S5, “2100” is stored in the register Me (L) and “550.0” is stored in Ms (X) in accordance with the instruction on the fifth line. Therefore, in the processing of steps S11 to S13, the start point ( From Ms (L), Ms (X)) = (1100, 100.0) to the end point (Me (L), Me (X)) = (2100, 550.0), rapid feed by linear feed of the linear function is illustrated. As shown in FIG.

そして、基準値Lmが「2100」に達すると、i=5、Ms(L)=2100、Ms(X)=550.0となり、ステップS5で、i+1行の6行の指令で、Me(L)=2200、Me(X)の値は変化なく「550.0」となり、「R201」が指令されていることから、ステップS9で切削送りモードに切換えられ、ステップS11〜S13での処理では、X軸の始点と終点が同じ「550.0」であるから、移動はない。   Then, when the reference value Lm reaches “2100”, i = 5, Ms (L) = 2100, Ms (X) = 550.0, and in step S5, the command of six lines of i + 1 line is Me (L ) = 2200, the value of Me (X) is “550.0” without change, and “R201” is commanded. Therefore, the cutting feed mode is switched in step S9. In the processing in steps S11 to S13, Since the start point and end point of the X axis are the same “550.0”, there is no movement.

基準値Lmが「2200」に達すると、i=6,Ms(L)=2200、Ms(X)=550.0(ステップS14、S15)となり、i+1=6+1=7行目の指令により、Me(L)=2300、Me(X)=550.0となり、ステップS11〜S13での処理では、この場合も、X軸の始点と終点が同じ「550.0」であるから、移動はない。   When the reference value Lm reaches “2200”, i = 6, Ms (L) = 2200, Ms (X) = 550.0 (steps S14 and S15), and by the command in the i + 1 = 6 + 1 = 7th line, Me (L) = 2300, Me (X) = 550.0, and in the processing in steps S11 to S13, since the start point and the end point of the X axis are the same “550.0”, there is no movement.

基準値Lmが「2300」に達すると、i=7,Ms(L)=2300、Ms(X)=550.0(ステップS14、S15)となり、i+1=7+1=8行目の指令により、Me(L)=4300、Me(X)=500.0となり、ステップS11〜S13での処理では、始点(Ms(L),Ms(X))=(2300,550.0)から終点(Me(L),Me(X))=(4300,500.0)まで、一次関数の直線の切削送りが実行されることになる。
以下、前述した動作がテーブル運転エンドの指令が読み込まれるまで、実行されることになる。
When the reference value Lm reaches “2300”, i = 7, Ms (L) = 2300, Ms (X) = 550.0 (steps S14 and S15), and by the command in the i + 1 = 7 + 1 = 8th line, Me (L) = 4300 and Me (X) = 50.0, and in the processing in steps S11 to S13, the start point (Ms (L), Ms (X)) = (2300, 550.0) to the end point (Me ( The linear cutting feed of the linear function is executed until L), Me (X)) = (4300, 50.0).
Hereinafter, the above-described operation is executed until the table operation end command is read.

本発明の一実施形態の数値制御装置の要部ブロック図である。It is a principal part block diagram of the numerical control apparatus of one Embodiment of this invention. 同実施形態におけるパステーブル運転の一例である。It is an example of the pass table driving | operation in the embodiment. 同実施形態におけるパステーブル運転のアルゴリズムを示すフローチャートである。It is a flowchart which shows the algorithm of the path table driving | operation in the embodiment.

符号の説明Explanation of symbols

10 数値制御装置   10 Numerical controller

Claims (2)

時間あるいは主軸位置を基準とし、該基準の値と制御軸の位置とを対応させたパステーブルをメモリに格納しておき、該パステーブルの基準の値と制御軸の位置を順次読み出し、基準値に同期して制御軸の位置を制御する数値制御装置において、
前記パステーブルには、切削送りと早送りの送りモードの切換指令を設定しておき、
前記パステーブルより前記切換指令が読み出され、該切換指令が記憶された基準の値に、基準値が達した時に、制御軸を駆動制御するサーボモータの制御手段の制御ゲインを切換指令された送りモードの値に切換える手段を備えたことを特徴とする数値制御装置。
A path table in which the reference value and the control axis position are associated with each other is stored in a memory with the time or the spindle position as a reference, the reference value of the path table and the control axis position are sequentially read out, and the reference value In the numerical control device that controls the position of the control axis in synchronization with
In the path table, a switching command for cutting feed and rapid feed mode is set,
The switching command is read from the path table, and when the reference value reaches the reference value in which the switching command is stored, the control gain of the control means of the servo motor that drives and controls the control shaft is commanded to switch. A numerical control device comprising means for switching to a value in a feed mode.
前記サーボモータの制御手段がフィードフォワード制御をも含むときには、該フィードフォワード制御の係数をも、切換指令された送りのモードの値に切換える請求項1に記載の数値制御装置。   2. The numerical controller according to claim 1, wherein when the servo motor control means includes feed forward control, the coefficient of the feed forward control is also switched to the value of the feed mode instructed to be switched.
JP2006317186A 2006-11-24 2006-11-24 Numerical control device Pending JP2008130013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006317186A JP2008130013A (en) 2006-11-24 2006-11-24 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006317186A JP2008130013A (en) 2006-11-24 2006-11-24 Numerical control device

Publications (1)

Publication Number Publication Date
JP2008130013A true JP2008130013A (en) 2008-06-05

Family

ID=39555733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006317186A Pending JP2008130013A (en) 2006-11-24 2006-11-24 Numerical control device

Country Status (1)

Country Link
JP (1) JP2008130013A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013218552A (en) * 2012-04-10 2013-10-24 Fanuc Ltd Servo motor control device for controlling servo motor which drives feed shaft of machine tool
JP2018134706A (en) * 2017-02-22 2018-08-30 ジヤトコ株式会社 Deburring method, control device for deburring device, control program for deburring device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013218552A (en) * 2012-04-10 2013-10-24 Fanuc Ltd Servo motor control device for controlling servo motor which drives feed shaft of machine tool
US8736217B2 (en) 2012-04-10 2014-05-27 Fanuc Corporation Servo motor control device for controlling servo motor configured to drive feed axis of machine tool
JP2018134706A (en) * 2017-02-22 2018-08-30 ジヤトコ株式会社 Deburring method, control device for deburring device, control program for deburring device

Similar Documents

Publication Publication Date Title
JP3671020B2 (en) Numerical controller
JP4382123B2 (en) Numerical control device having control mode switching function
US9310799B2 (en) Numerical controller having function of operation based on table format data
JP4837110B2 (en) Numerical control device with tool path display function
JP4282631B2 (en) Numerical control device that operates with tabular data
JP4044105B2 (en) Numerical control device having function of switching operation means for each system
US10108175B2 (en) Numerical controller supporting left-handed coordinate system
JP4554697B2 (en) Numerical control device having table format data for operating arbitrary axis
JP2008234319A (en) Numerical controller capable of executing g-code command in path table operation
JP2007245247A (en) Machine having program validation function
JPH04237306A (en) Method for restarting punch press machine and neumerical control device
JPH11143514A (en) Numerical controller capable of executing working error check
US20050055126A1 (en) Numerical control apparatus
WO1994017459A1 (en) Method of execution of nc machining program
JP2008130013A (en) Numerical control device
US20160054727A1 (en) Numerical controller that shortens cycle time of machining program
JP2008269483A (en) Numerical controller
EP1403747A2 (en) Numerical controller
JP4116640B2 (en) Numerical control device with multi-system control function
CN105278463A (en) Numerical controller executing operation by table-format data
JP2004202594A (en) Numerical control device
JPH10301614A (en) Numeric controller
JP2006072909A (en) Numeric controller
JP6666234B2 (en) Numerical control unit
JPH0365706A (en) Data correction device