JP2012018511A - Numerical control device - Google Patents

Numerical control device Download PDF

Info

Publication number
JP2012018511A
JP2012018511A JP2010154766A JP2010154766A JP2012018511A JP 2012018511 A JP2012018511 A JP 2012018511A JP 2010154766 A JP2010154766 A JP 2010154766A JP 2010154766 A JP2010154766 A JP 2010154766A JP 2012018511 A JP2012018511 A JP 2012018511A
Authority
JP
Japan
Prior art keywords
processing unit
auxiliary command
command
sequence
auxiliary
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
JP2010154766A
Other languages
Japanese (ja)
Inventor
Hiroaki Tanahashi
弘明 棚橋
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 JP2010154766A priority Critical patent/JP2012018511A/en
Publication of JP2012018511A publication Critical patent/JP2012018511A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a numerical control device capable of executing general subsidiary instructions without creating any sequence program in order to reduce work load at a machine maker for creating a sequence of subsidiary instructions using a sequence program for executing a basic subsidiary instruction.SOLUTION: A numerical control device provided to a machine maker, which manufactures a machine including a numerical control device, comprises: a sequence processing section 103 that executes subsidiary instructions given through a processing program; a built-in subsidiary instructions processing section 117 that executes the subsidiary instructions without execution by the sequence processing section 103; a subsidiary instructions switch setting section 111 that sets either one of the sequence processing section 103 and the built-in subsidiary instructions processing section 117 to execute the subsidiary instruction; and a subsidiary instructions switch processing section 116 that switches between the sequence processing section 103 and the built-in subsidiary instructions processing section 117 to execute the subsidiary instructions based on the setting set by the subsidiary instructions switch setting section 111 when a subsidiary instruction is given.

Description

この発明は、加工プログラムの補助指令の実行処理を行う数値制御(Numerical Control;以下NCという)装置に係り、特にNC装置メーカがNC装置付き機械を製造する機械メーカに供給するNC装置に関するものである。   The present invention relates to a numerical control (hereinafter referred to as NC) device that executes an auxiliary command of a machining program, and more particularly to an NC device that an NC device manufacturer supplies to a machine manufacturer that manufactures a machine with an NC device. is there.

NC装置は、加工プログラムの軸移動指令をサーボアンプに指令位置を通知してサーボモータを回転させ、また主軸アンプに指令を通知して主軸モータを回転させることにより、ワークと工具を相対的に移動させ、工具とワークを接触させることでワークを加工する。
加工を行うときには、この本来の仕事であるワークを加工することの他に、ワークの着脱、主軸モータの起動・停止、切削油のオン・オフ、ツールチェンジャーの動作等様々な機能を、加工プログラムの実行途中で実行することが必要である。
The NC device informs the servo amplifier of the machining program's axis movement command to rotate the servo motor, and notifies the spindle amplifier to rotate the spindle motor to relatively move the workpiece and the tool. The workpiece is machined by moving it and bringing the tool into contact with the workpiece.
When machining, in addition to machining the workpiece, which is the original work, various functions such as workpiece attachment / detachment, spindle motor start / stop, cutting oil on / off, tool changer operation, etc. It is necessary to execute in the middle of execution.

このような加工プログラムで座標位置を指令しNC制御軸を動作させる以外の補助的な機能を実行するための指令を、補助指令という。加工プログラム中に補助指令があると、シーケンス処理部に補助指令が指令されたことを通知する。シーケンス処理部ではその補助指令に対応する処理を実行し、処理完了を確認できると、シーケンス処理部から補助指令完了信号を加工プログラム解析処理部に通知する。加工プログラム解析処理部は補助指令完了信号を受け取ると、加工プログラムを次ブロックに進める。
加工プログラム中に補助指令があるとNC装置は前記のように動作するが、この補助指令を実行するためのシーケンスプログラムは、NC装置を機械に組込んで販売する機械メーカや、最終エンドユーザである製造メーカが、機械構成や希望する機械動作に応じて作成する。
A command for executing an auxiliary function other than commanding the coordinate position and operating the NC control axis with such a machining program is referred to as an auxiliary command. If there is an auxiliary command in the machining program, the sequence processing unit is notified that the auxiliary command has been issued. When the sequence processing unit executes processing corresponding to the auxiliary command and confirms the completion of the processing, the sequence processing unit notifies the machining program analysis processing unit of an auxiliary command completion signal. When receiving the auxiliary command completion signal, the machining program analysis processing unit advances the machining program to the next block.
If there is an auxiliary command in the machining program, the NC device operates as described above. However, the sequence program for executing this auxiliary command can be used by machine manufacturers or the end-users who install and sell the NC device in the machine. A manufacturer makes it according to the machine configuration and desired machine operation.

ところで、この補助指令はシーケンス処理部で実行させる必要があって、処理時間に影響を与え、ひいては加工時間に影響を与えるため、これを改善する種々の技術の提案がなされている。
例えば、NC装置付き工作機械を製造する機械メーカが、従来シーケンス処理で行っていた処理を行うマクロモジュール(ユーザ定義プログラム)やマクロプログラムを予めNC装置に登録しておき、加工プログラムより補助指令がなされたとき、このマクロモジュールやマクロプログラムをシーケンス処理の代わりに実行させる技術が提案されている(例えば特許文献参照)
By the way, this auxiliary command needs to be executed by the sequence processing unit, which affects the processing time, and hence the machining time. Therefore, various techniques for improving this have been proposed.
For example, a machine maker who manufactures a machine tool with an NC device registers a macro module (user-defined program) or macro program for performing processing that has been performed in the conventional sequence processing in the NC device in advance, and an auxiliary command is issued from the machining program. When it is made, a technique for executing the macro module or macro program instead of the sequence processing has been proposed (see, for example, Patent Document).

特許第3535408号   Japanese Patent No. 3535408

ところが前記特許文献に開示のものは、機械メーカが、従来シーケンス処理で行っていた処理をマクロモジュールやマクロプログラムとして登録しなければならず、加工時間は短縮できるが、機械メーカの負担は減らない。
また、ある補助指令がマクロモジュールやマクロプログラムとして登録されている場合であっても、このマクロモジュールやマクロプログラムを実行することなく、処理によっては従来通りシーケンス処理で実行させたい場合がある。ところが、前記特許文献に開示のものは、ある補助指令がマクロモジュールやマクロプログラムとして登録されている場合、必ずこのマクロモジュールやマクロプログラムを実行するので、融通性に欠けるという問題があった。
However, what is disclosed in the above-mentioned patent document is that the machine manufacturer must register the processing that has been performed in the conventional sequence processing as a macro module or a macro program, and the processing time can be shortened, but the burden on the machine manufacturer is not reduced. .
Even when a certain auxiliary command is registered as a macro module or macro program, there is a case where it is desired to execute the macro module or macro program in the sequence processing as usual without executing the macro module or macro program. However, the one disclosed in the above-mentioned patent document has a problem in that it lacks flexibility because a certain auxiliary command is registered as a macro module or macro program, and the macro module or macro program is always executed.

この発明は、かかる問題点を解決するためになされたもので、NC装置付き工作機械を製造する機械メーカがシーケンスプログラムを作成することなく、予め内部に組み込まれた処理で、基本的な補助指令で実現でき、またどちらで補助指令を実行するかを切り替えることができるNC装置を得ることを目的としている。   The present invention has been made to solve such a problem, and a basic auxiliary command can be obtained by a process incorporated in advance by a machine maker that manufactures a machine tool with an NC device without creating a sequence program. It is an object of the present invention to obtain an NC device that can be realized by the above-described method and can switch between which auxiliary command is executed.

この発明は前記目的を達成するために、数値制御装置付き機械を製造する機械メーカに供給される数値制御装置において、加工プログラムにて指令される補助指令を処理するシーケンス処理部と、前記補助指令を前記シーケンス処理部による処理なしで処理する組込み補助指令処理部と、前記補助指令が指令されたとき、この補助指令を、前記シーケンス処理部で処理するか前記組込み補助指令処理部で処理するかを任意に切り替える補助指令切替処理手段とを備えるものである。   In order to achieve the above object, according to the present invention, in a numerical controller supplied to a machine maker that manufactures a machine with a numerical controller, a sequence processing unit that processes an auxiliary command instructed by a machining program, and the auxiliary command Embedded auxiliary command processing unit for processing without processing by the sequence processing unit, and when the auxiliary command is commanded, whether this auxiliary command is processed by the sequence processing unit or the built-in auxiliary command processing unit Auxiliary command switching processing means for arbitrarily switching between.

またこの発明は、前記組込み補助指令処理部が、前記補助指令を実行するときに、外部信号により実行の開始タイミングを制御する機能を備えるものである。   In addition, according to the present invention, the built-in auxiliary command processing unit has a function of controlling execution start timing by an external signal when the auxiliary command is executed.

この発明によれば、NC装置付き工作機械を製造する機械メーカが、基本的な補助指令を処理するためのシーケンスプログラムを作成することなく、予め内部に組み込まれた処理で、基本的な補助指令で実現できる。また補助指令をシーケンス処理部及び組込み補助指令処理部の何れで処理するかを切り替えることができ、ひいては融通性のあるNC装置を得ることができる。   According to the present invention, a machine maker that manufactures a machine tool with an NC device does not create a sequence program for processing a basic auxiliary command, and the basic auxiliary command is processed in advance in the process. Can be realized. In addition, it is possible to switch whether the auxiliary command is processed by the sequence processing unit or the built-in auxiliary command processing unit, and thus a flexible NC device can be obtained.

またこの発明によれば、補助指令処理部を使うときでも、外部信号によりインタロックをかけることができ、より汎用的に使用できるNC装置を得ることができる。   Further, according to the present invention, even when the auxiliary command processing unit is used, it is possible to obtain an NC device that can be interlocked by an external signal and can be used more generally.

この発明の実施例1に係るNC装置の構成を示すブロック図である。It is a block diagram which shows the structure of NC apparatus which concerns on Example 1 of this invention. この発明の実施例1に係るNC装置の補助指令処理手順を示すフローチャートである。It is a flowchart which shows the auxiliary | assistant command processing procedure of NC apparatus which concerns on Example 1 of this invention. この発明の実施例1に係る補助指令を含んだ加工プログラムを示す図である。It is a figure which shows the process program containing the auxiliary | assistant command which concerns on Example 1 of this invention. この発明の実施例1に係る補助命令切替設定パラメータ例を示す図である。It is a figure which shows the example of an auxiliary command switching setting parameter which concerns on Example 1 of this invention.

実施例1.
以下、この発明の実施例1を、図1〜図4を用いて説明する。なおこの実施例1は、NC装置をマシニングセンタに適用した場合の例である。
図1はこの発明の実施例1に係るNC装置の構成を示すブロックで、100はNC装置、130は工作機械(マシニングセンタ)を示す。加工プログラム101は加工プログラム解析処理部115で解析され、実行される。シーケンスプログラム102はシーケンス処理部103に読み出され実行される。パラメータ設定部110には、補助指令を、組込み補助指令処理部117で内部処理するか、シーケンス処理部103で実行するかを切り替える補助指令切替設定部111が含まれる。なお、補助指令切替設定部111については、図4を用いて後述する。
Example 1.
Embodiment 1 of the present invention will be described below with reference to FIGS. The first embodiment is an example in which the NC device is applied to a machining center.
FIG. 1 is a block diagram showing the configuration of an NC apparatus according to Embodiment 1 of the present invention, where 100 is an NC apparatus, and 130 is a machine tool (machining center). The machining program 101 is analyzed and executed by the machining program analysis processing unit 115. The sequence program 102 is read by the sequence processing unit 103 and executed. The parameter setting unit 110 includes an auxiliary command switching setting unit 111 that switches whether the auxiliary command is internally processed by the built-in auxiliary command processing unit 117 or executed by the sequence processing unit 103. The auxiliary command switching setting unit 111 will be described later with reference to FIG.

加工プログラム解析処理部115には補助指令切替処理部116があり、補助指令が読み込まれ、解析されたときに実行される。補助指令切替設定部111がシーケンス処理に設定されておれば、補助指令を、加工プログラム解析処理部115からシーケンスインタフェース部104を介して、シーケンス処理部103へ伝達する。また、補助指令切替設定部111が組込み補助指令処理に設定されているときは、補助指令はシーケンスインタフェース部104へ出力せず、組込み補助指令処理部117へ出力し、組込み補助指令処理部117で処理を実行する。
なお、組込み補助指令処理部117には、例えば図4に示す補助指令(S、M3、M4、M5、M19)を、シーケンス処理部103で処理することなく実行できる機能が、NC装置メーカにより予め組込まれている。
またこの実施例では、補助指令切替設定部111と補助指令切替処理部116により、補助指令切替処理手段を構成している。
The machining program analysis processing unit 115 includes an auxiliary command switching processing unit 116, which is executed when the auxiliary command is read and analyzed. If the auxiliary command switching setting unit 111 is set to sequence processing, the auxiliary command is transmitted from the machining program analysis processing unit 115 to the sequence processing unit 103 via the sequence interface unit 104. When the auxiliary command switching setting unit 111 is set to the built-in auxiliary command processing, the auxiliary command is not output to the sequence interface unit 104 but is output to the built-in auxiliary command processing unit 117, and the built-in auxiliary command processing unit 117 Execute the process.
The built-in auxiliary command processing unit 117 has a function that can execute the auxiliary command (S, M3, M4, M5, M19) shown in FIG. It is incorporated.
In this embodiment, the auxiliary command switching setting unit 111 and the auxiliary command switching processing unit 116 constitute auxiliary command switching processing means.

制御処理部121は指令位置、速度を生成する、補間処理機能をを含む処理部であって、NC軸を制御するNC軸制御処理部122、主軸を制御する主軸制御処理部123が含まれる。加工プログラム解析処理部115から制御処理部121へは、加工プログラムによる移動指令が伝達される。補助指令切替設定部111がシーケンス処理に設定されているとき、シーケンス処理部103から制御処理部121へシーケンスインタフェース部104を介して、主軸の正転指令、逆転指令等の補助指令を伝達する。また、補助指令切替設定部111が組込み補助指令処理に設定されているとき、組込み補助指令処理部117から主軸の正転指令、逆転指令等の補助指令を伝達する。制御処理部121から加工プログラム解析処理部115とシーケンスインタフェース部104へは、サーボ軸、主軸の状態が通知される。サーボ・主軸通信インタフェース部120は制御処理部121からの移動指令を主軸アンプ132、サーボアンプ134に通知するものである。主軸アンプ132は主軸モータ131を回転させ、主軸を回す。サーボアンプ134はサーボモータ133を駆動し、テーブル等を動作させる。   The control processing unit 121 is a processing unit including an interpolation processing function that generates a command position and a speed. The control processing unit 121 includes an NC axis control processing unit 122 that controls the NC axis, and a spindle control processing unit 123 that controls the spindle. A movement command based on the machining program is transmitted from the machining program analysis processing unit 115 to the control processing unit 121. When the auxiliary command switching setting unit 111 is set to sequence processing, auxiliary commands such as a forward rotation command and reverse rotation command of the spindle are transmitted from the sequence processing unit 103 to the control processing unit 121 via the sequence interface unit 104. When the auxiliary command switching setting unit 111 is set to the built-in auxiliary command processing, the built-in auxiliary command processing unit 117 transmits auxiliary commands such as a forward rotation command and a reverse rotation command for the spindle. The control processing unit 121 notifies the machining program analysis processing unit 115 and the sequence interface unit 104 of the servo axis and spindle status. The servo / spindle communication interface unit 120 notifies the movement command from the control processing unit 121 to the spindle amplifier 132 and the servo amplifier 134. The spindle amplifier 132 rotates the spindle motor 131 to rotate the spindle. The servo amplifier 134 drives the servo motor 133 to operate the table and the like.

入出力信号インタフェース部125、シーケンスインタフェース部104を介して、工作機械の油圧センサ136などの、センサやスイッチなどの入力信号をシーケンス処理部103へ伝達し、またシーケンス処理部103から油圧機器137などの周辺機器を動作させるための出力信号を伝達する。
また、入出力装置140は、表示装置、キーボードなどのマンマシンインタフェース部であり、パラメータ設定部110のパラメータ、加工プログラム101、シーケンスプログラム102の表示、編集を行うものである。
以上のように実施例1に係るNC装置は構成されている。
Via the input / output signal interface unit 125 and the sequence interface unit 104, input signals such as sensors and switches of the machine tool hydraulic sensor 136 are transmitted to the sequence processing unit 103, and from the sequence processing unit 103 to the hydraulic equipment 137, etc. An output signal for operating peripheral devices is transmitted.
The input / output device 140 is a man-machine interface unit such as a display device or a keyboard, and displays and edits the parameters of the parameter setting unit 110, the machining program 101, and the sequence program 102.
As described above, the NC device according to the first embodiment is configured.

次に、加工プログラム解析処理部115が図3の加工プログラム101の補助指令を読み、解析した場合のシーケンス処理部103、補助指令切替処理部116及び組込み補助指令処理部117の動作を、図2のフローチャートを用いて説明する。   Next, operations of the sequence processing unit 103, the auxiliary command switching processing unit 116, and the built-in auxiliary command processing unit 117 when the machining program analysis processing unit 115 reads and analyzes the auxiliary command of the machining program 101 of FIG. It demonstrates using the flowchart of these.

補助指令切替設定部111に、例えば図4に示すように、組込み対象Mコードの動作を入出力装置140を用いて予め登録しておく。この補助指令切替設定部111は各補助指令に対して、どのように動作させるか設定するものである。S指令は主軸回転速度を設定する補助指令、M3指令は主軸正転指令、M4指令は主軸反転指令、M5指令は主軸停止指令、M19指令は主軸オリエンテーション指令を示す。図4に示す設定の場合、S指令、M5はシーケンス処理部103からのインタロック解除信号などを待つことなく組込み補助指令処理部117で処理を行うことを示す。また、M3、M4は組込み補助指令処理部117で処理を行うが、処理開始はシーケンス処理部103からのインタロック解除信号を待つ処理を行うことを示す。また、M19指令は、組込み補助指令処理部117で処理を行うことなく、シーケンス処理部103で処理を行うことを示す。なお、本実施例では、組込み補助指令処理部117で実行可能な補助指令は図4で登録されたものだけであるとする。   For example, as illustrated in FIG. 4, the operation of the M code to be embedded is registered in advance in the auxiliary command switching setting unit 111 using the input / output device 140. This auxiliary command switching setting unit 111 sets how to operate each auxiliary command. The S command is an auxiliary command for setting the spindle rotation speed, the M3 command is a spindle forward rotation command, the M4 command is a spindle reverse command, the M5 command is a spindle stop command, and the M19 command is a spindle orientation command. In the case of the setting shown in FIG. 4, the S command M5 indicates that the built-in auxiliary command processing unit 117 performs processing without waiting for an interlock release signal or the like from the sequence processing unit 103. M3 and M4 are processed by the built-in auxiliary command processing unit 117, but the start of processing indicates that processing for waiting for an interlock release signal from the sequence processing unit 103 is performed. Further, the M19 command indicates that the processing is performed by the sequence processing unit 103 without being processed by the built-in auxiliary command processing unit 117. In this embodiment, it is assumed that only auxiliary commands that can be executed by the built-in auxiliary command processing unit 117 are those registered in FIG.

加工プログラム101の実行を開始し、加工プログラム解析処理部115にある組込み補助指令切替処理部116は、ブロックN10を読み込むと、補助指令切替設定部111の設定内容を参照し、ステップS101で組み込み対象の補助指令であるかどうか判断する。ブロックN10のM8指令は組込み補助指令処理がないと判断し、ステップS110に進む。ステップS110の「従来のシーケンス処理部による補助指令処理」とは、シーケンスインタフェース部104を介して、シーケンス処理部103に補助指令信号を通知し、シーケンス処理部103でその補助指令に対応する処理を行い、完了したら補助指令完了信号を加工プログラム解析処理部115に通知する処理を指す。   The execution of the machining program 101 is started, and the built-in auxiliary command switching processing unit 116 in the machining program analysis processing unit 115 reads the block N10, refers to the setting content of the auxiliary command switching setting unit 111, and is to be incorporated in step S101. It is determined whether it is an auxiliary command. The M8 command of block N10 determines that there is no built-in auxiliary command processing, and the process proceeds to step S110. The “auxiliary command processing by the conventional sequence processing unit” in step S110 is to notify an auxiliary command signal to the sequence processing unit 103 via the sequence interface unit 104, and the sequence processing unit 103 performs processing corresponding to the auxiliary command. This is a process for notifying the machining program analysis processing unit 115 of the auxiliary command completion signal when it is completed.

なお、補助指令完了信号を加工プログラム解析処理部115が確認したあと、ステップS106へ進む。この場合は、加工プログラム解析処理部115はM8指令を、シーケンスインタフェース部104を介して、シーケンス処理部103に通知し、シーケンス処理部103ではクーラントを入れるための処理を行う。クーラントを入れるためにシーケンスインタフェース部104、入出力信号インタフェース部125を介し、周辺機器を動作させる。シーケンス処理部103で周辺機器の動作の開始を確認できたら、シーケンサインタフェース部104を介して、加工プログラム解析処理部115へ補助指令完了を通知する。加工プログラム解析処理部115は補助指令完了を確認したらステップS106で、次のブロックに進む。   After the machining program analysis processing unit 115 confirms the auxiliary command completion signal, the process proceeds to step S106. In this case, the machining program analysis processing unit 115 notifies the M8 command to the sequence processing unit 103 via the sequence interface unit 104, and the sequence processing unit 103 performs processing for adding coolant. In order to put the coolant, the peripheral device is operated via the sequence interface unit 104 and the input / output signal interface unit 125. If the sequence processing unit 103 can confirm the start of the operation of the peripheral device, the processing program analysis processing unit 115 is notified of the completion of the auxiliary command via the sequencer interface unit 104. When the machining program analysis processing unit 115 confirms the completion of the auxiliary command, the process proceeds to the next block in step S106.

次に、ブロックN20を読み込むとステップS101では組込み対象補助指令にS指令は含まれるので、ステップS102に進む。ステップS102では補助指令切替設定部111の動作箇所を確認し、S指令が組込み処理であることを判断し、ステップS103に進む。S指令は、インタロック設定はないので、ステップS105に進み、組込み補助命令実行処理部117で、補助命令実行処理を行う。なお、ステップS102で、補助指令切替設定部111の動作箇所が組込み処理でなく、シーケンス処理の場合、ステップS110に移行する。組込み補助指令処理部117にはS指令の主軸回転速度データを主軸処理部123へ通知する機能を予め組み込んである。ここでは、主軸制御部123へ主軸回転速度を1000r/minに設定するよう通知し、S106で、次のブロックへ進む。   Next, when the block N20 is read, the S command is included in the assembly target auxiliary command in step S101, and the process proceeds to step S102. In step S102, the operation location of the auxiliary command switching setting unit 111 is confirmed, and it is determined that the S command is an incorporation process, and the process proceeds to step S103. Since there is no interlock setting for the S command, the process proceeds to step S105, and the built-in auxiliary instruction execution processing unit 117 performs auxiliary instruction execution processing. In step S102, when the operation location of the auxiliary command switching setting unit 111 is not an incorporation process but a sequence process, the process proceeds to step S110. The built-in auxiliary command processing unit 117 incorporates in advance a function for notifying the spindle processing unit 123 of the spindle rotation speed data of the S command. Here, the spindle controller 123 is notified to set the spindle rotational speed to 1000 r / min, and the process proceeds to the next block in S106.

次に、ブロックN30を読み込むとM3指令は組込み内部処理があり、補助命令切替設定部111では組込み処理になっているので、同様にステップS103に進む。M3指令はインタロック待ちありなので、ステップS104に進み、インタロック解除を待つ。ここで、M3指令は、主軸を正転させる補助指令である。   Next, when the block N30 is read, the M3 command has a built-in internal process, and the auxiliary instruction switching setting unit 111 is a built-in process, so the process similarly proceeds to step S103. Since the M3 command is waiting for an interlock, the process proceeds to step S104 and waits for the interlock to be released. Here, the M3 command is an auxiliary command for causing the main shaft to rotate forward.

ステップS103のインタロック解除待ちブロックでは、M3指令を、シーケンスインタフェース部104を介して、シーケンス処理部103に通知する。シーケンス処理部103では、例えば、主軸の温度を一定に保つための冷却油用の油圧が正常になっている等の周辺条件、機械の状態を確認できてから主軸正転の実行が可能になったと判断する。実行可能になったら、シーケンス処理部103はインタロック解除信号を、シーケンスインタフェース部104を介して、組込み補助指令処理部117に通知する。   In the interlock release waiting block in step S103, the M3 command is notified to the sequence processing unit 103 via the sequence interface unit 104. In the sequence processing unit 103, for example, it is possible to execute the normal rotation of the spindle after confirming the peripheral conditions such as the hydraulic pressure for cooling oil for maintaining the spindle temperature constant and the state of the machine. Judge that When the execution becomes possible, the sequence processing unit 103 notifies the built-in auxiliary command processing unit 117 of the interlock release signal via the sequence interface unit 104.

ステップS104で組込み補助指令処理部117がインタロックの解除を認識すると、制御処理部121の主軸制御部123に対して、主軸正転指令を通知する。主軸制御部123はサーボ・主軸通信インタフェース部120を介して、主軸アンプ132に指令を出力する。主軸アンプ132は主軸モータ131に電流指令を与え1000r/minの速度で正転させる。組込み補助指令処理部117にはM3指令を受け取ると、主軸制御部123から主軸モータ131の回転速度を受け取り、主軸のフィードバック速度がS指令で設定した回転速度に到達すると補助指令の完了を認識する機能が予め組み込んである。この実施例では速度が1000r/minに到達することを確認できたらM3指令が完了したとみなし、ステップS106で、次のブロックへ進む。   When the built-in auxiliary command processing unit 117 recognizes the release of the interlock in step S104, it notifies the main shaft control unit 123 of the control processing unit 121 of a main shaft normal rotation command. The spindle control unit 123 outputs a command to the spindle amplifier 132 via the servo / spindle communication interface unit 120. The spindle amplifier 132 gives a current command to the spindle motor 131 so as to rotate forward at a speed of 1000 r / min. When the built-in auxiliary command processing unit 117 receives the M3 command, it receives the rotation speed of the spindle motor 131 from the spindle control unit 123, and recognizes the completion of the auxiliary command when the feedback speed of the spindle reaches the rotation speed set by the S command. The function is built in beforehand. In this embodiment, if it is confirmed that the speed reaches 1000 r / min, it is considered that the M3 command is completed, and the process proceeds to the next block in step S106.

次に、ブロックN40、ブロックN50は補助命令を含まないので、補助指令切替処理部117では処理を行わない。即ち、加工プログラム解析処理部115が、ブロックN40、ブロックN50の指令を、制御処理部121に渡す。次に、ブロックN60を読み込むとM5指令は、S指令と同様、組込み対象補助指令があり、組込み補助指令で、インタロック待ちはないので、ステップS105に進む。   Next, since the block N40 and the block N50 do not include an auxiliary command, the auxiliary command switching processing unit 117 does not perform processing. That is, the machining program analysis processing unit 115 passes the commands of the blocks N40 and N50 to the control processing unit 121. Next, when the block N60 is read, the M5 command, like the S command, has a built-in auxiliary command, and the built-in auxiliary command does not wait for an interlock, so the process proceeds to step S105.

組込み補助指令処理部117には、M5指令を受け取ると、主軸制御部123に対して、主軸停止指令を通知し、主軸制御部123は主軸アンプ132に対して主軸停止指令を通知し、主軸モータ131を停止させ、主軸制御部121から通知される主軸状態で主軸の停止を確認できると補助指令完了を認識する機能が予め組み込まれている。ステップS105では、組込み補助指令処理部117により主軸停止を実行し、ステップS106で、次のブロックへ進む。   When the M5 command is received, the built-in auxiliary command processing unit 117 notifies the spindle control unit 123 of the spindle stop command, and the spindle control unit 123 notifies the spindle amplifier 132 of the spindle stop command, and the spindle motor. The function of recognizing the completion of the auxiliary command when the stop of the main shaft 131 is stopped and the stop of the main shaft can be confirmed in the main shaft state notified from the main shaft control unit 121 is incorporated in advance. In step S105, the spindle stop is executed by the built-in auxiliary command processing unit 117, and the process proceeds to the next block in step S106.

次の、ブロックN70を読み込むと、M19指令があり、補助指令切替処理部117で組込み対象補助指令ありと判断し(ステップS101)、補助指令切替設定部111の設定がシーケンス処理なので、従来の補助指令処理へ進む(ステップS102)。シーケンスインタフェース部104を介し、シーケンス処理部103へM19指令を通知する。シーケンス処理部103は主軸オリエンテーション指令を、シーケンスインタフェース部104を介して、主軸制御部123に通知し、オリエンテーションを実行する。   When the next block N70 is read, there is an M19 command, and the auxiliary command switching processing unit 117 determines that there is an auxiliary command to be incorporated (step S101), and the setting of the auxiliary command switching setting unit 111 is a sequence process. The process proceeds to command processing (step S102). The M19 command is notified to the sequence processing unit 103 via the sequence interface unit 104. The sequence processing unit 103 notifies the spindle orientation command to the spindle control unit 123 via the sequence interface unit 104, and executes the orientation.

なお、この実施例では、動作の補助指令の実現を組込み補助指令処理部117で行うか、シーケンス処理部103で行うかの切り替えに、パラメータ設定部110の補助指令切替設定部111を用いたが、この代わりにシーケンスインタフェース部104からの外部信号を用いて切り替えることが可能である。この場合、補助指令切替処理手段は、補助指令切替処理部116と前記外部信号の入力部とで構成することになる。
またS指令、主軸正転、主軸逆転、主軸停止及び主軸オリエンテーションの補助指令の処理する機能を、組込み補助指令処理部117に予め組込んである場合について説明したが、その他の補助指令を処理する機能についても、組込み補助指令処理部117に予め組込んでおいてもよい。
In this embodiment, the auxiliary command switching setting unit 111 of the parameter setting unit 110 is used to switch whether the operation auxiliary command is realized by the built-in auxiliary command processing unit 117 or the sequence processing unit 103. Instead, it is possible to switch using an external signal from the sequence interface unit 104. In this case, the auxiliary command switching processing means includes the auxiliary command switching processing unit 116 and the external signal input unit.
In addition, the function for processing the auxiliary command for the S command, the main spindle forward rotation, the main shaft reverse rotation, the main shaft stop, and the main shaft orientation has been described in the built-in auxiliary command processing unit 117 in advance, but other auxiliary commands are processed. The functions may be incorporated in the built-in auxiliary command processing unit 117 in advance.

この実施例によれば、NC装置付き工作機械を製造する機械メーカが、基本的な補助指令を処理するためのシーケンスプログラムを作成することなく、予めNC装置内部に組み込まれた処理で、基本的な補助指令で実現できる。
また補助指令をシーケンス処理部及び組込み補助指令処理部の何れで処理するかを切り替えることができ、ひいては融通性のあるNC装置を得ることができる。
なおまた、組込み補助指令処理部を使用する場合でも、補助指令の処理開始を、シーケンス処理部などからの外部信号により任意のタイミングに変更することができ、ひいてはより汎用的なNC装置を得ることができる。
According to this embodiment, a machine maker that manufactures a machine tool with an NC device does not create a sequence program for processing a basic auxiliary command, and the basic processing is performed in advance in the NC device. Can be realized with simple auxiliary commands.
In addition, it is possible to switch whether the auxiliary command is processed by the sequence processing unit or the built-in auxiliary command processing unit, and thus a flexible NC device can be obtained.
In addition, even when the built-in auxiliary command processing unit is used, the start of auxiliary command processing can be changed to an arbitrary timing by an external signal from the sequence processing unit or the like, and thus a more versatile NC device can be obtained. Can do.

この発明に係る数値制御装置は、補助指令処理の高速処理をしたい数値制御装置として用いられるのに適している。   The numerical control device according to the present invention is suitable for use as a numerical control device that desires high-speed processing of auxiliary command processing.

100 NC装置、101 加工プログラム、102 シーケンスプログラム、103 シーケンス処理部、104 シーケンスインタフェース部、110 パラメータ設定部、111 補助指令切替設定部、115 加工プログラム解析処理部、116 補助指令切替処理部、117 組込み補助指令処理部、120 サーボ・主軸通信インタフェース部、121 制御処理部、122 NC軸制御部、123 主軸制御部、125 入出力信号インタフェース部、130 工作機械、140 入出力装置。   100 NC device, 101 machining program, 102 sequence program, 103 sequence processing unit, 104 sequence interface unit, 110 parameter setting unit, 111 auxiliary command switching setting unit, 115 machining program analysis processing unit, 116 auxiliary command switching processing unit, 117 incorporation Auxiliary command processing unit, 120 servo / spindle communication interface unit, 121 control processing unit, 122 NC axis control unit, 123 spindle control unit, 125 I / O signal interface unit, 130 machine tool, 140 I / O device.

Claims (4)

数値制御装置付き機械を製造する機械メーカに供給される数値制御装置において、加工プログラムにて指令される補助指令を処理するシーケンス処理部と、前記補助指令を前記シーケンス処理部による処理なしで処理する組込み補助指令処理部と、前記補助指令が指令されたとき、この補助指令を、前記シーケンス処理部で処理するか前記組込み補助指令処理部で処理するかを任意に切り替える補助指令切替処理手段とを備えてなる数値制御装置。   In a numerical control device supplied to a machine manufacturer that manufactures a machine with a numerical control device, a sequence processing unit that processes an auxiliary command instructed by a machining program, and processes the auxiliary command without processing by the sequence processing unit A built-in auxiliary command processing unit; and an auxiliary command switching processing unit that arbitrarily switches whether the auxiliary command is processed by the sequence processing unit or the built-in auxiliary command processing unit when the auxiliary command is commanded. A numerical control device provided. 前記補助指令切替処理手段は、前記補助指令を前記シーケンス処理部及び組込み補助指令処理部の何れで処理するかをパラメータ設定する補助指令切替部と、前記補助指令が指令されたとき、この補助指令を、前記補助指令切替設定部の設定に基づいて、前記シーケンス処理部で処理するか前記組込み補助指令処理部で処理するかを切り替える補助指令切替処理部とから構成されていることを特徴とする請求項1に記載の数値制御装置。   The auxiliary command switching processing means includes an auxiliary command switching unit for setting a parameter as to which of the sequence processing unit and the built-in auxiliary command processing unit processes the auxiliary command, and when the auxiliary command is commanded, the auxiliary command switching unit Based on the setting of the auxiliary command switching setting unit, an auxiliary command switching processing unit that switches between processing by the sequence processing unit or processing by the built-in auxiliary command processing unit, The numerical control device according to claim 1. 前記補助指令切替処理手段は、前記補助指令を前記シーケンス処理部及び組込み補助指令処理部の何れで処理するかの外部信号を入力する入力部と、前記補助指令が指令されたとき、この補助指令を、前記外部信号に基づいて、前記シーケンス処理部で処理するか前記組込み補助指令処理部で処理するかを切り替える補助指令切替処理部とから構成されていることを特徴とする請求項1に記載の数値制御装置。   The auxiliary command switching processing means includes an input unit for inputting an external signal indicating whether the auxiliary command is processed by the sequence processing unit or the built-in auxiliary command processing unit, and the auxiliary command when the auxiliary command is commanded. 2. An auxiliary command switching processing unit that switches between processing by the sequence processing unit and processing by the built-in auxiliary command processing unit based on the external signal. Numerical control unit. 前記組込み補助指令処理部は、前記補助指令を実行するときに、外部信号により実行の開始タイミングを制御する機能を備えていることを特徴とする請求項1〜3の何れかに記載の数値制御装置。   The numerical control according to claim 1, wherein the built-in auxiliary command processing unit has a function of controlling an execution start timing by an external signal when the auxiliary command is executed. apparatus.
JP2010154766A 2010-07-07 2010-07-07 Numerical control device Pending JP2012018511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010154766A JP2012018511A (en) 2010-07-07 2010-07-07 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010154766A JP2012018511A (en) 2010-07-07 2010-07-07 Numerical control device

Publications (1)

Publication Number Publication Date
JP2012018511A true JP2012018511A (en) 2012-01-26

Family

ID=45603723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010154766A Pending JP2012018511A (en) 2010-07-07 2010-07-07 Numerical control device

Country Status (1)

Country Link
JP (1) JP2012018511A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013015399A1 (en) 2012-09-24 2014-03-27 Fanuc Corporation A numerical control device having a function of operating a video camera using a G code command

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206807A (en) * 1987-02-24 1988-08-26 Toshiba Mach Co Ltd Method for analyzing part program
JPS63298505A (en) * 1987-05-29 1988-12-06 Fanuc Ltd Sequence control system
JPH0239305A (en) * 1988-07-29 1990-02-08 Mitsubishi Electric Corp Numerical controller
JP2000235410A (en) * 1999-02-17 2000-08-29 Mitsubishi Electric Corp Numerical controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206807A (en) * 1987-02-24 1988-08-26 Toshiba Mach Co Ltd Method for analyzing part program
JPS63298505A (en) * 1987-05-29 1988-12-06 Fanuc Ltd Sequence control system
JPH0239305A (en) * 1988-07-29 1990-02-08 Mitsubishi Electric Corp Numerical controller
JP2000235410A (en) * 1999-02-17 2000-08-29 Mitsubishi Electric Corp Numerical controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013015399A1 (en) 2012-09-24 2014-03-27 Fanuc Corporation A numerical control device having a function of operating a video camera using a G code command

Similar Documents

Publication Publication Date Title
JP4406034B2 (en) Numerical control device for controlling a 5-axis machine
JP4837110B2 (en) Numerical control device with tool path display function
JP5766762B2 (en) Numerical control device with operation setting screen
EP1308809A2 (en) Synchronization control method and synchronization control device
JP2020170356A (en) Machining control system and machining system
US20120283879A1 (en) Numerical controller having function of operation based on table format data
JP2019025562A (en) Robot control device and production system
JP2004326618A (en) Numerical control device of machine tool
JP2007245247A (en) Machine having program validation function
JP2006004275A (en) Numerical control device
JP4216808B2 (en) Numerical controller
JP5210070B2 (en) Numerically controlled machine tool
JP2012018511A (en) Numerical control device
WO2014013550A1 (en) Numerical control device and numerical control system
US7136718B2 (en) Numerical control apparatus
CN106808476B (en) Working device and teaching method in working device
US20070100493A1 (en) Numerical controller
JP2016206845A (en) Monitor device for programmable controller
JP2003225783A (en) Method and device for resuming laser beam machining after midway stoppage
JPH09305213A (en) Robot controller
JP2012084113A (en) Remote handling apparatus and machine tool
JP7092842B2 (en) Numerical control device
WO2022097208A1 (en) Machine tool
JP2008130013A (en) Numerical control device
JP6666234B2 (en) Numerical control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121105

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131031

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140318