JP6252198B2 - Numerical controller - Google Patents

Numerical controller Download PDF

Info

Publication number
JP6252198B2
JP6252198B2 JP2014009120A JP2014009120A JP6252198B2 JP 6252198 B2 JP6252198 B2 JP 6252198B2 JP 2014009120 A JP2014009120 A JP 2014009120A JP 2014009120 A JP2014009120 A JP 2014009120A JP 6252198 B2 JP6252198 B2 JP 6252198B2
Authority
JP
Japan
Prior art keywords
parameter
value
parameters
cpu
machine tool
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.)
Active
Application number
JP2014009120A
Other languages
Japanese (ja)
Other versions
JP2015138362A (en
Inventor
村上 裕
裕 村上
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2014009120A priority Critical patent/JP6252198B2/en
Publication of JP2015138362A publication Critical patent/JP2015138362A/en
Application granted granted Critical
Publication of JP6252198B2 publication Critical patent/JP6252198B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、数値制御装置に関する。   The present invention relates to a numerical control device.

数値制御装置は外部機器から入力するパラメータに基づいてソフトウェアを実行する。ソフトウェアをバージョンアップすると、ソフトウェアのパラメータ構成が変わる。外部機器からパラメータを正確に入力できなくなる。特許文献1は、制御プログラムのバージョンアップに対応可能なデータ処理装置を開示する。外部記憶装置は、バージョンアップ前の制御プログラムのバージョンコードとパラメータを記憶する。制御装置は、外部記憶装置からバージョンコードとパラメータを受信すると、受信したバージョンコードを内部ROMに記憶された制御プログラムのバージョンコードと比較する。両者が相違する場合、受信したパラメータを内部ROMの制御プログラム用に自動的に変更する。   The numerical controller executes software based on parameters input from an external device. When the software is upgraded, the software parameter configuration changes. It becomes impossible to input parameters accurately from an external device. Patent Document 1 discloses a data processing apparatus that can cope with a version upgrade of a control program. The external storage device stores the version code and parameters of the control program before upgrading. When receiving the version code and the parameter from the external storage device, the control device compares the received version code with the version code of the control program stored in the internal ROM. If they are different, the received parameters are automatically changed for the internal ROM control program.

特開平11−161479号公報Japanese Patent Laid-Open No. 11-161479

数値制御装置のソフトウェアの場合、同じパラメータでも工作機械の仕様によって出荷値(推奨値)が異なる場合がある。特許文献1に記載のデータ処理装置は、工作機械の仕様の種類に対応していないので、共通の出荷値を予め設定できず、使用者の手入力を必要とするので、入力作業が面倒であった。   In the case of numerical control device software, the shipment value (recommended value) may differ depending on the machine tool specifications even with the same parameters. Since the data processing apparatus described in Patent Document 1 does not correspond to the types of machine tool specifications, a common shipment value cannot be set in advance, and manual input by the user is required. there were.

本発明の目的は、工作機械の仕様に応じてパラメータの設定を容易にできる数値制御装置を提供することにある。   An object of the present invention is to provide a numerical control device capable of easily setting parameters according to the specifications of a machine tool.

本発明の請求項1に係る数値制御装置は、工作機械の動作に関係するパラメータの集合であるパラメータ群の夫々の設定値を記憶する主記憶装置を備え、該主記憶装置に記憶したパラメータを用いて工作機械の動作を制御する数値制御装置において、前記主記憶装置に記憶された前記パラメータ群の中で前記設定値が未設定のパラメータである未設定パラメータ以外のパラメータに基づき、前記工作機械の仕様を推定する推定手段と、前記工作機械の前記仕様の種類に夫々対応づけられた前記パラメータ群の前記設定値の情報であるパラメータ情報を外部から取得する取得手段と、前記取得手段が取得した前記パラメータ情報に基づき、前記主記憶装置に記憶した前記パラメータ群の前記設定値を書き換える書換手段とを備えたことを特徴とする。数値制御装置はパラメータ群のうち未設定パラメータ以外のパラメータから工作機械の仕様を推定し、その仕様に対応するパラメータ群の設定値に書き換えることができる。故に数値制御装置は未設置パラメータの設定値を手入力する必要が無くなるので、入力の手間を省略できる。   A numerical control device according to a first aspect of the present invention includes a main storage device that stores a set value of each parameter group that is a set of parameters related to the operation of a machine tool, and the parameters stored in the main storage device are stored in the main storage device. In the numerical controller for controlling the operation of the machine tool using the machine tool based on parameters other than the unset parameter in which the set value is an unset parameter in the parameter group stored in the main storage device Estimation means for estimating the specifications of the machine tool, acquisition means for acquiring parameter information, which is information of the set values of the parameter group respectively associated with the specification types of the machine tool, and the acquisition means Rewriting means for rewriting the set value of the parameter group stored in the main storage device based on the parameter information. That. The numerical control apparatus can estimate the specifications of the machine tool from parameters other than the unset parameters in the parameter group, and can rewrite the set values of the parameter group corresponding to the specifications. Therefore, the numerical control device does not need to manually input the setting value of the non-installed parameter, so that the labor of inputting can be omitted.

請求項2に係る発明の数値制御装置は、請求項1に記載の発明の構成に加え、前記推定手段が推定した前記仕様に対応する前記パラメータ群の前記設定値を、前記取得手段が取得した前記パラメータ情報の中から特定する特定手段を更に備え、前記書換手段は、前記未設定パラメータのみを、前記特定手段が特定した前記設定値に書き換えることを特徴とする。数値制御装置は未設定パラメータのみを書き換えるので、書換の処理量を削減できる。   According to a second aspect of the present invention, in addition to the configuration of the first aspect of the invention, the acquisition unit acquires the set value of the parameter group corresponding to the specification estimated by the estimation unit. The information processing apparatus further includes specifying means for specifying the parameter information, wherein the rewriting means rewrites only the unset parameter with the set value specified by the specifying means. Since the numerical control device rewrites only unset parameters, the rewrite processing amount can be reduced.

請求項3に係る発明の数値制御装置は、請求項1又は2に記載の発明の構成に加え、前期主記憶装置に記憶したソフトウェアの更新を受け付ける受付手段と、前記受付手段が前記更新を受け付けた場合、前記ソフトウェアの前記更新を実行する実行手段とを備え、前記判断手段は、前記実行手段による前記ソフトウェアの前記更新が終了した場合、前記更新に伴い、前記パラメータ群に追加した追加パラメータを含む前記パラメータ群の中に、前記未設定パラメータが有るか否か判断し、前記パラメータ情報は、前記ソフトウェアの更新に伴う前記追加パラメータの設定値を含むことを特徴とする。数値制御装置はソフトウェア更新時に追加した追加パラメータに未設定パラメータがある場合も、それ以外のパラメータから工作機械の仕様を推定し、その工作機械の仕様に対応する追加パラメータの設定値に書き換えることができる。故に数値制御装置は追加パラメータの設定値を手入力する必要が無くなるので、入力の手間を省略できる。   According to a third aspect of the present invention, in addition to the configuration of the first or second aspect of the invention, the numerical control device accepts the update of the software stored in the main memory device in the previous period, and the accepting unit accepts the update. An execution means for executing the update of the software, and when the update of the software by the execution means is completed, the determination means adds an additional parameter added to the parameter group along with the update. It is determined whether or not the parameter group includes the unset parameter, and the parameter information includes a set value of the additional parameter that accompanies an update of the software. Even if there are unset parameters among the additional parameters added when updating the software, the numerical control unit can estimate the machine tool specifications from the other parameters and rewrite them with the additional parameter settings corresponding to the machine tool specifications. it can. Therefore, the numerical control device does not need to manually input the set values of the additional parameters, so that the labor of inputting can be omitted.

数値制御装置30と工作機械1の電気的構成を示すブロック図。FIG. 3 is a block diagram showing an electrical configuration of the numerical control device 30 and the machine tool 1. 主記憶装置34の各種記憶領域を示す概念図。FIG. 3 is a conceptual diagram showing various storage areas of the main storage device 34. パラメータファイル3421の概念図。The conceptual diagram of the parameter file 3421. FIG. 外部記憶装置13の各種記憶領域を示す概念図。3 is a conceptual diagram showing various storage areas of an external storage device 13. FIG. パラメータ比較DB1321の概念図。The conceptual diagram of parameter comparison DB1321. 各種パラメータの境界値を示す表。The table | surface which shows the boundary value of various parameters. パラメータ参照ファイル1331の概念図。The conceptual diagram of the parameter reference file 1331. FIG. バージョンアップ制御処理の流れ図。The flowchart of a version-up control process. パラメータ出荷値設定処理の流れ図。The flowchart of a parameter shipment value setting process. 出荷値ID決定処理の流れ図。The flowchart of a shipment value ID determination process. パラメータ仕様数値変換処理の流れ図。The flowchart of a parameter specification numerical value conversion process. 図11の続きを示す流れ図。FIG. 12 is a flowchart showing a continuation of FIG. 11.

以下、本発明の一実施形態を図面を参照して説明する。数値制御装置30は工作機械1を制御しテーブル(図示略)上面に保持したワーク(図示略)の切削加工を行う。工作機械1の左右方向、前後方向、上下方向は、夫々X軸方向、Y軸方向、Z軸方向である。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The numerical control device 30 controls the machine tool 1 to cut a workpiece (not shown) held on the upper surface of a table (not shown). The left-right direction, the front-rear direction, and the vertical direction of the machine tool 1 are an X-axis direction, a Y-axis direction, and a Z-axis direction, respectively.

図1を参照し、工作機械1の構成を簡単に説明する。工作機械1は図示しない主軸機構、主軸移動機構、工具交換装置等を備える。主軸機構は主軸モータ52を備え、工具を装着した主軸を回転する。主軸移動機構は、Z軸モータ51、X軸モータ53、Y軸モータ54を備え、テーブル上面に支持したワークに対し相対的に主軸をXYZの各軸方向に夫々移動する。   A configuration of the machine tool 1 will be briefly described with reference to FIG. The machine tool 1 includes a spindle mechanism, a spindle movement mechanism, a tool changer, and the like (not shown). The spindle mechanism includes a spindle motor 52, and rotates the spindle on which a tool is mounted. The main shaft moving mechanism includes a Z-axis motor 51, an X-axis motor 53, and a Y-axis motor 54, and moves the main shaft in the XYZ axial directions relative to the workpiece supported on the table upper surface.

工具交換装置はマガジンモータ55を備え、複数の工具を収納する工具マガジン(図示略)を駆動し、主軸に装着した工具を他の工具と交換する。工作機械1は操作盤10を更に備える。操作盤10は入力部11と表示部12を備える。入力部11は各種入力、指示、設定等を行う為の機器である。表示部12は各種表示画面、設定画面、異常警告画面等を表示する機器である。操作盤10は数値制御装置30の入出力部35に接続する。   The tool changer includes a magazine motor 55, drives a tool magazine (not shown) that stores a plurality of tools, and exchanges the tool mounted on the spindle with another tool. The machine tool 1 further includes an operation panel 10. The operation panel 10 includes an input unit 11 and a display unit 12. The input unit 11 is a device for performing various inputs, instructions, settings, and the like. The display unit 12 is a device that displays various display screens, setting screens, abnormality warning screens, and the like. The operation panel 10 is connected to the input / output unit 35 of the numerical controller 30.

Z軸モータ51はエンコーダ51Bを備える。主軸モータ52はエンコーダ52Bを備える。X軸モータ53はエンコーダ53Bを備える。Y軸モータ54はエンコーダ54Bを備える。マガジンモータ55はエンコーダ55Bを備える。エンコーダ51B〜55Bは数値制御装置30のモータ制御部51A〜55Aに各々接続する。   The Z-axis motor 51 includes an encoder 51B. The spindle motor 52 includes an encoder 52B. The X-axis motor 53 includes an encoder 53B. The Y-axis motor 54 includes an encoder 54B. The magazine motor 55 includes an encoder 55B. The encoders 51B to 55B are connected to the motor control units 51A to 55A of the numerical control device 30, respectively.

図1を参照し、数値制御装置30の電気的構成を説明する。数値制御装置30は、CPU31、ROM32、RAM33、主記憶装置34、入出力部35、モータ制御部51A〜55A等を備える。CPU31は数値制御装置30を統括制御する。ROM32は、メインプログラム、後述するバージョンアップ制御プログラム等の各種プログラムを記憶する。RAM33は各種処理実行中の各種データを記憶する。主記憶装置34は不揮発性メモリであり、後述する各種記憶領域を備える(図2参照)。入出力部35は操作盤10と外部記憶装置13に接続する。外部記憶装置13は不揮発性メモリであり、後述する各種記憶領域を備える(図4参照)。外部記憶装置13は例えば持ち運び可能な不揮発性メモリでもよい。   The electrical configuration of the numerical control device 30 will be described with reference to FIG. The numerical control device 30 includes a CPU 31, a ROM 32, a RAM 33, a main storage device 34, an input / output unit 35, motor control units 51A to 55A, and the like. The CPU 31 performs overall control of the numerical control device 30. The ROM 32 stores various programs such as a main program and an upgrade control program described later. The RAM 33 stores various data during execution of various processes. The main storage device 34 is a non-volatile memory and includes various storage areas described later (see FIG. 2). The input / output unit 35 is connected to the operation panel 10 and the external storage device 13. The external storage device 13 is a non-volatile memory and includes various storage areas described later (see FIG. 4). The external storage device 13 may be a portable nonvolatile memory, for example.

モータ制御部51AはZ軸モータ51とエンコーダ51Bに接続する。モータ制御部52Aは主軸モータ52とエンコーダ52Bに接続する。モータ制御部53AはX軸モータ53とエンコーダ53Bに接続する。モータ制御部54AはY軸モータ54とエンコーダ54Bに接続する。モータ制御部55Aはマガジンモータ55とエンコーダ55Bに接続する。モータ制御部51A〜55AはCPU31から指令信号を受け、対応する各モータ51〜55に駆動電流(パルス)を夫々出力する。モータ制御部51A〜55Aはエンコーダ51B〜55Bからフィードバック信号を受け、位置と速度のフィードバック制御を行う。モータ制御部51A〜55Aは例えばFPGA回路でもよい。(段落0013と重複)   The motor control unit 51A is connected to the Z-axis motor 51 and the encoder 51B. The motor control unit 52A is connected to the spindle motor 52 and the encoder 52B. The motor control unit 53A is connected to the X-axis motor 53 and the encoder 53B. The motor control unit 54A is connected to the Y-axis motor 54 and the encoder 54B. The motor control unit 55A is connected to the magazine motor 55 and the encoder 55B. The motor controllers 51A to 55A receive command signals from the CPU 31 and output drive currents (pulses) to the corresponding motors 51 to 55, respectively. The motor controllers 51A to 55A receive feedback signals from the encoders 51B to 55B, and perform position and speed feedback control. The motor control units 51A to 55A may be, for example, FPGA circuits. (Duplicate paragraph 0013)

図2を参照し、主記憶装置34の各種記憶領域を説明する。主記憶装置34は、出荷値ID記憶領域341、パラメータファイル記憶領域342、加工プログラム記憶領域343等を備える。出荷値ID記憶領域341は出荷値IDを記憶する。出荷値IDとは、工作機械1の仕様に応じて設定する各種パラメータの出荷値の型(タイプ)を識別する為の情報である。出荷値とは、工場から工作機械1を出荷するときの設定値である。パラメータは、工作機械1の制御動作に関するものである。パラメータファイル記憶領域342は、後述するパラメータファイル3421(図3参照)を記憶する。加工プログラム記憶領域343は加工プログラムを記憶する。加工プログラムは各種NC制御指令を含む複数のブロックで構成し、工作機械1の軸移動、主軸回転、工具交換等を含む各種動作をブロック単位で制御するものである。   Various storage areas of the main storage device 34 will be described with reference to FIG. The main storage device 34 includes a shipment value ID storage area 341, a parameter file storage area 342, a machining program storage area 343, and the like. The shipping value ID storage area 341 stores the shipping value ID. The shipping value ID is information for identifying the type of the shipping value of various parameters set according to the specifications of the machine tool 1. The shipment value is a set value when the machine tool 1 is shipped from the factory. The parameters relate to the control operation of the machine tool 1. The parameter file storage area 342 stores a parameter file 3421 (see FIG. 3) described later. The machining program storage area 343 stores a machining program. The machining program is composed of a plurality of blocks including various NC control commands, and controls various operations including axis movement, spindle rotation, tool change and the like of the machine tool 1 in units of blocks.

図3を参照し、パラメータファイル3421を説明する。パラメータファイル3421は、工作機械1の制御動作に関する各種パラメータ毎のパラメータ値を夫々有する。パラメータの項目名は、表示言語、ストロークX、ストロークY、ストロークZ、工具収納本数、主軸最高回転数、X軸早送り時定数1、X軸早送り時定数2、X軸早送り時定数3、早送り速度X軸、早送り速度Y軸、早送り速度Z軸、主軸インポジションチェックタイムアウト時間、X軸インポジションチェックタイムアウト時間、Y軸インポジションチェックタイムアウト時間、Z軸インポジションチェックタイムアウト時間、ワーク無し時イナーシャ、工具脱着位置オフセット量等を有する。数値制御装置30は、パラメータファイル3421の各種パラメータのパラメータ値に基づき、工作機械1の動作を制御する。   The parameter file 3421 will be described with reference to FIG. The parameter file 3421 has parameter values for each of various parameters related to the control operation of the machine tool 1. Parameter item names are: Display language, Stroke X, Stroke Y, Stroke Z, Number of tools stored, Maximum spindle speed, X-axis fast feed time constant 1, X-axis fast feed time constant 2, X-axis fast feed time constant 3, Fast feed speed X-axis, rapid feed speed Y-axis, rapid feed speed Z-axis, spindle in-position check timeout time, X-axis in-position check timeout time, Y-axis in-position check timeout time, Z-axis in-position check timeout time, inertia when no workpiece, tool Desorption position offset amount and the like. The numerical control device 30 controls the operation of the machine tool 1 based on the parameter values of various parameters in the parameter file 3421.

図3に示すパラメータファイル3421は、ソフトウェアのバージョンアップ完了時のものである。各種パラメータのうち、ワーク無し時イナーシャ、工具脱着位置オフセット量は、ソフトウェアのバージョンアップ完了後、パラメータファイル3421に新たに追加した追加パラメータである。ソフトウェアのバージョンアップによる追加パラメータのパラメータ値は、工作機械1の仕様によって出荷値が異なるものも存在し、該場合は未設定である。更に、X軸早送り時定数1、X軸早送り時定数2、X軸早送り時定数3も、工作機械1の仕様によって出荷値が異なるパラメータである。それら以外のパラメータの出荷値は全仕様共通である。   The parameter file 3421 shown in FIG. 3 is the one when the software version upgrade is completed. Among various parameters, the inertia when no workpiece and the tool attachment / detachment position offset amount are additional parameters newly added to the parameter file 3421 after completion of the software version upgrade. Some of the parameter values of the additional parameters due to software upgrades have different shipment values depending on the specifications of the machine tool 1, and are not set in this case. Further, the X-axis rapid feed time constant 1, the X-axis rapid feed time constant 2, and the X-axis rapid feed time constant 3 are parameters whose shipment values differ depending on the specifications of the machine tool 1. The shipment values of other parameters are common to all specifications.

また、工作機械1の使用者は、操作盤10において、パラメータファイル3421のうち特定のパラメータのパラメータ値を削除して使用する可能性がある。故に追加パラメータ以外の既存のパラメータのパラメータ値が未設定である場合もある。図3に示すパラメータファイル3421の例では、X軸早送り時定数2、X軸インポジションチェックタイムアウト時間もパラメータ値が未設定である場合を想定する。以下説明では、追加パラメータを含む未設定のパラメータを未設定パラメータと呼ぶ。   Further, the user of the machine tool 1 may delete the parameter value of a specific parameter from the parameter file 3421 and use it on the operation panel 10. Therefore, the parameter values of existing parameters other than the additional parameters may not be set. In the example of the parameter file 3421 shown in FIG. 3, it is assumed that the parameter values are not set for the X-axis fast-forward time constant 2 and the X-axis in-position check timeout time. In the following description, unset parameters including additional parameters are referred to as unset parameters.

数値制御装置30は、ソフトウェアをバージョンアップした場合、バージョンアップ後のソフトウェアで工作機械1を動作させる為に、パラメータファイル3421のうち追加パラメータに出荷値を設定し、且つ未設定となっている既存のパラメータにも出荷値を設定する必要がある。数値制御装置30は後述するバージョンアップ制御処理(図8参照)を実行することにより、ソフトウェアのバージョンアップ完了後に、パラメータファイル3421のうち追加パラメータを含む未設定パラメータに、工作機械1の仕様に応じた出荷値を自動的に設定できる。   When the software is upgraded, the numerical control device 30 sets a shipping value to an additional parameter in the parameter file 3421 and sets an unset value in order to operate the machine tool 1 with the upgraded software. It is necessary to set the shipping value for these parameters. The numerical control device 30 executes an upgrade control process (see FIG. 8) to be described later, so that after the upgrade of the software is completed, unset parameters including additional parameters are set in the parameter file 3421 according to the specifications of the machine tool 1. The default shipping value can be set automatically.

図4を参照し、外部記憶装置13の各種記憶領域を説明する。外部記憶装置13は、バージョンアップソフト記憶領域131、パラメータ比較DB記憶領域132、出荷パラメータ群記憶領域133等を備える。バージョンアップソフト記憶領域131は、バージョンアップ用のソフトウェアを記憶する。パラメータ比較DB記憶領域132は、後述するパラメータ比較データベース1321(図5参照)を記憶する。出荷パラメータ群記憶領域133は、出荷ID毎にパラメータファイルを夫々記憶する。例えば、出荷ID=0001用のパラメータ参照ファイル1331(図7参照)、出荷ID=0002用のパラメータ参照ファイル1332、出荷ID=0003用のパラメータ参照ファイル1333等を記憶する。パラメータ参照ファイル1331については後述する。   Various storage areas of the external storage device 13 will be described with reference to FIG. The external storage device 13 includes an upgrade software storage area 131, a parameter comparison DB storage area 132, a shipping parameter group storage area 133, and the like. The upgrade software storage area 131 stores upgrade software. The parameter comparison DB storage area 132 stores a parameter comparison database 1321 (see FIG. 5) described later. The shipment parameter group storage area 133 stores a parameter file for each shipment ID. For example, a parameter reference file 1331 for shipping ID = 0001 (see FIG. 7), a parameter reference file 1332 for shipping ID = 0002, a parameter reference file 1333 for shipping ID = 0003, and the like are stored. The parameter reference file 1331 will be described later.

図5を参照し、パラメータ比較データベース1321を説明する。パラメータ比較データベース(以下、パラメータ比較DBと呼ぶ。)1321は、CPU31が工作機械1の仕様を推定する際に参照するものである。パラメータ比較DB1321は、出荷値IDと4つのパラメータの仕様数値の組み合わせとを夫々対応づけた情報である。出荷値IDは例えば0001〜0027までを設定することで27通りの工作機械1の仕様に対応する。仕様数値は各種パラメータに設定するパラメータ値を簡単な数値(0、1、2等)に変換したものである。CPU31は後述するパラメータ仕様数値変換処理(図11,図12参照)を実行することにより、各種パラメータのパラメータ値から仕様数値を算出する。   The parameter comparison database 1321 will be described with reference to FIG. A parameter comparison database (hereinafter referred to as parameter comparison DB) 1321 is referred to when the CPU 31 estimates the specifications of the machine tool 1. The parameter comparison DB 1321 is information in which a shipment value ID is associated with a combination of specification values of four parameters. The shipment value ID is set to, for example, 0001 to 0027, and corresponds to 27 specifications of the machine tool 1. The specification numerical values are obtained by converting parameter values set for various parameters into simple numerical values (0, 1, 2, etc.). The CPU 31 calculates a specification numerical value from the parameter values of various parameters by executing a parameter specification numerical value conversion process (see FIGS. 11 and 12) described later.

図3に示すパラメータファイル3421のうち、工作機械1の仕様を推定する際に参照するパラメータは、追加パラメータ以外の既存のパラメータであり、例えば、ストロークX、ストロークZ、工具収納本数、主軸最高回転数の4つである。ストロークXの仕様数値は、0、1、2の3通りである。ストロークZの仕様数値は、0、1、2の3通りである。主軸最高回転数の仕様数値は、0、1の2通りである。工具収納本数は、0、1の2通りである。尚、工作機械1の仕様を推定する際に参照するパラメータは、既存のパラメータであればこれら以外のパラメータでもよい。参照するパラメータの数も4つに限定しない。   In the parameter file 3421 shown in FIG. 3, parameters referred to when estimating the specifications of the machine tool 1 are existing parameters other than the additional parameters. For example, the stroke X, the stroke Z, the number of stored tools, the maximum spindle rotation Number four. There are three specification values for the stroke X, 0, 1, and 2. There are three specification values for the stroke Z, 0, 1 and 2. There are two specification values for the maximum spindle speed: 0 and 1. There are two tool storage numbers, 0 and 1. The parameters referred to when estimating the specifications of the machine tool 1 may be other parameters as long as they are existing parameters. The number of parameters to be referred to is not limited to four.

ここで、パラメータ値から仕様数値への変換方法を説明する。例えば、ストロークXのパラメータ値の仕様の組み合わせは、300、500、700の3種類である。後述するパラメータ仕様数値変換処理では、300は仕様数値=「0」、500は仕様数値=「1」、700は仕様数値=「2」、700以上は仕様数値=「2」に変換する。ストロークZのパラメータ値の仕様の組み合わせは、480、630、730の3種類である。480は仕様数値=「0」、630は仕様数値=「1」、730は仕様数値=「2」に変換する。主軸最高回転数のパラメータ値の仕様の組み合わせは、10000、16000の2種類である。10000は仕様数値=「0」、16000は仕様数値=「1」に変換する。工具収納本数のパラメータ値の仕様の組み合わせは、14、21の2種類である。14は仕様数値=「0」、21は仕様数値=「1」に変換する。   Here, the conversion method from the parameter value to the specification numerical value will be described. For example, there are three types of combinations of specifications of the parameter value of the stroke X: 300, 500, and 700. In the parameter specification numerical value conversion process described later, 300 is converted into specification numerical value = “0”, 500 is converted into specification numerical value = “1”, 700 is converted into specification numerical value = “2”, and 700 or higher is converted into specification numerical value = “2”. There are three types of combinations of parameter values for the stroke Z: 480, 630, and 730. 480 is a specification numerical value = “0”, 630 is a specification numerical value = “1”, and 730 is a specification numerical value = “2”. There are two types of combinations of specifications of the parameter value of the maximum spindle speed: 10,000 and 16000. 10000 is converted into specification numerical value = “0”, and 16000 is converted into specification numerical value = “1”. There are two types of combinations of parameter values for the number of stored tools: 14, 21. 14 is converted into specification numerical value = “0”, and 21 is converted into specification numerical value = “1”.

尚、各種パラメータのパラメータ値は、操作盤10を用いて使用者によって書換可能である。故に上記仕様の組み合わせの数値とパラメータ値が異なる場合がある。仕様の組み合わせの数値とパラメータ値が異なると、仕様数値の組み合わせから工作機械1の仕様を推定できない。本実施形態は、図6の表に示す如く、各種パラメータに境界値を設定し、パラメータ値が各境界値で区切られた範囲のどの範囲に属するかにより、仕様数値を一律に決定する。ストロークXの境界値は300と500である。ストロークZの境界値は480と630である。主軸最高回転数の境界値は10000である。工具収納本数の境界値は14である。   The parameter values of various parameters can be rewritten by the user using the operation panel 10. Therefore, the numerical value and parameter value of the combination of the above specifications may be different. If the value of the combination of specifications and the parameter value are different, the specification of the machine tool 1 cannot be estimated from the combination of the specification values. In the present embodiment, as shown in the table of FIG. 6, boundary values are set for various parameters, and the specification numerical values are uniformly determined depending on which range the parameter values belong to within the boundary values. The boundary values of the stroke X are 300 and 500. The boundary values of the stroke Z are 480 and 630. The boundary value of the maximum spindle speed is 10,000. The boundary value for the number of stored tools is 14.

ストロークXのパラメータ値が300以下の場合は仕様数値を0、300よりも大きく500以下の場合は使用数値を1、500よりも大きい場合は仕様数値を2とする。ストロークZのパラメータ値が480以下の場合は仕様数値を0、480より大きく630以下の場合は仕様数値を1、630よりも大きい場合は仕様数値を2とする。主軸最高回転数のパラメータ値が10000以下の場合は仕様数値を0、10000よりも大きい場合は仕様数値を1とする。工具収納本数のパラメータ値が14以下の場合は仕様数値を0、15本以上の場合は仕様数値を1とする。故にパラメータ値が上記仕様の組み合わせの数値と異なる場合でも、仕様数値を一律に決定できる。CPU31は、上記変換手法に基づき、各種パラメータのパラメータ値を仕様数値に夫々変換する。   When the parameter value of the stroke X is 300 or less, the specification numerical value is 0, when it is larger than 300 and 500 or less, the use numerical value is 1, and when it is larger than 500, the specification numerical value is 2. When the parameter value of the stroke Z is 480 or less, the specification value is 0, when the parameter value is greater than 480 and less than 630, the specification value is 1, and when the parameter value is greater than 630, the specification value is 2. When the parameter value of the maximum spindle speed is 10,000 or less, the specification value is 0, and when the parameter value is greater than 10,000, the specification value is 1. When the parameter value of the number of stored tools is 14 or less, the specification value is 0, and when the parameter value is 15 or more, the specification value is 1. Therefore, even if the parameter value is different from the numerical value of the combination of the above specifications, the specification numerical value can be determined uniformly. The CPU 31 converts the parameter values of various parameters into specification numerical values based on the conversion method.

図5に示すパラメータ比較DB1321において、例えば、出荷値ID=0001に対応するストロークX、ストロークZ、主軸最高回転数、工具収納本数の仕様数値の組み合わせは(0,0,0,0)である。出荷値ID=0005に対応する仕様数値の組み合わせは(0,1,0,1)である。出荷値ID=0010に対応する仕様数値の組み合わせは(1,0,0,0)である。出荷値ID=0015に対応する仕様数値の組み合わせは(1,1,1,0)である。出荷値ID=0020に対応する仕様数値の組み合わせは(2,0,0,1)である。出荷値ID=0025に対応する仕様数値の組み合わせは(2,2,0,0)である。CPU31は、各種パラメータの仕様数値の組み合わせから、パラメータ比較DB1321を参照することにより、工作機械1の出荷値IDを特定できる。   In the parameter comparison DB 1321 shown in FIG. 5, for example, the combination of the specification numerical values of the stroke X, the stroke Z, the maximum spindle speed, and the number of stored tools corresponding to the shipping value ID = 0001 is (0, 0, 0, 0). . The combination of the specification numerical values corresponding to the shipping value ID = 0005 is (0, 1, 0, 1). The combination of the specification numerical values corresponding to the shipping value ID = 0010 is (1, 0, 0, 0). The combination of the specification numerical values corresponding to the shipping value ID = 0015 is (1, 1, 1, 0). The combination of the specification numerical values corresponding to the shipping value ID = 0020 is (2, 0, 0, 1). The combination of the specification numerical values corresponding to the shipping value ID = 0025 is (2, 2, 0, 0). The CPU 31 can specify the shipment value ID of the machine tool 1 by referring to the parameter comparison DB 1321 from the combination of the specification numerical values of various parameters.

図7を参照し、パラメータ参照ファイル1331を説明する。外部記憶装置13の出荷パラメータ群記憶領域133は、出荷ID毎にパラメータ参照ファイルを夫々記憶する(図4参照)。出荷ID=0001用のパラメータ参照ファイル1331は、図3に示すパラメータファイル3421(図3参照)と同様に、各種パラメータ毎の夫々の出荷値を有する。項目名はパラメータファイル3421と同じであり、追加パラメータであるワーク無し時イナーシャ、工具脱着位置オフセット量の出荷値を含む。パラメータ参照ファイル1331は、出荷値ID=0001の工作機械1の仕様のパラメータファイル3421について、未設定パラメータに出荷値を設定する際に参照される。   The parameter reference file 1331 will be described with reference to FIG. The shipment parameter group storage area 133 of the external storage device 13 stores a parameter reference file for each shipment ID (see FIG. 4). The parameter reference file 1331 for the shipment ID = 0001 has respective shipment values for various parameters, like the parameter file 3421 (see FIG. 3) shown in FIG. The item name is the same as that of the parameter file 3421, and includes additional parameters, that is, inertia at the time of no work and a shipment value of the tool attachment / detachment position offset amount. The parameter reference file 1331 is referred to when setting a shipment value for an unset parameter for the parameter file 3421 of the specification of the machine tool 1 with the shipment value ID = 0001.

図8〜図12を参照し、バージョンアップ制御処理を説明する。ソフトウェアのバージョンアップ(更新)を行う場合、使用者は外部記憶装置13を数値制御装置30の入出力部35に接続し、操作盤10を用いてバージョンアップ処理の開始の操作を行う。CPU31は、操作盤10にてバージョンアップ開始の操作を受け付けた場合、ROM32からバージョンアップ制御プログラムを読み出して本処理を実行する。   The upgrade control process will be described with reference to FIGS. When upgrading (updating) the software, the user connects the external storage device 13 to the input / output unit 35 of the numerical controller 30 and uses the operation panel 10 to start the upgrade process. When receiving an upgrade start operation on the operation panel 10, the CPU 31 reads the upgrade control program from the ROM 32 and executes this processing.

CPU31は外部記憶装置13からバージョンアップ用のソフトウェアを読み出し、バージョンアップ処理を実行する(S1)。CPU31はバージョンアップ処理が正常に終了したか否か判断する(S2)。正常に終了しなかった場合(S2:NO)、未設定パラメータに出荷値の設定は出来ないので、CPU31は本処理を終了する。正常に終了した場合(S2:YES)、図3に示す如く、パラメータファイル3421には、ワーク無し時イナーシャと工具脱着位置オフセット量の2つの追加パラメータが追加される。ソフトのバージョンアップ処理に伴い、未設定パラメータに出荷値を設定する為に、パラメータ出荷値設定処理を実行する(S3)。パラメータ出荷値設定処理の終了後、CPU31は本処理を終了する。   The CPU 31 reads the upgrade software from the external storage device 13 and executes the upgrade process (S1). The CPU 31 determines whether or not the upgrade process has been completed normally (S2). If the process has not been completed normally (S2: NO), the shipment value cannot be set for the unset parameter, and the CPU 31 ends this process. When the process is completed normally (S2: YES), as shown in FIG. 3, two additional parameters are added to the parameter file 3421, that is, an inertia when no workpiece is present and a tool attachment / detachment position offset amount. Along with the software upgrade process, a parameter shipment value setting process is executed in order to set a shipment value for an unset parameter (S3). After completing the parameter shipment value setting process, the CPU 31 ends this process.

図9を参照し、パラメータ出荷値設定処理を説明する。CPU31は主記憶装置34の出荷値ID記憶領域341に出荷値IDを記憶しているか否か判断する(S5)。出荷値IDを記憶していない場合(S5:NO)、CPU31は工作機械1の仕様に対応する出荷値IDを決定する為に、出荷値ID決定処理を実行する(S6)。出荷値IDを記憶している場合(S5:YES)、CPU31は後述するS8に処理を進める。   The parameter shipment value setting process will be described with reference to FIG. The CPU 31 determines whether or not the shipping value ID is stored in the shipping value ID storage area 341 of the main storage device 34 (S5). When the shipping value ID is not stored (S5: NO), the CPU 31 executes a shipping value ID determination process in order to determine the shipping value ID corresponding to the specifications of the machine tool 1 (S6). When the shipping value ID is stored (S5: YES), the CPU 31 advances the process to S8 described later.

図10を参照し、出荷値ID決定処理を説明する。CPU31は、主記憶装置34のパラメータファイル記憶領域342に記憶するパラメータファイル3421(図3参照)を読み出してRAM33上に展開する(S15)。次いで、CPU31は外部記憶装置13のパラメータ比較DB記憶領域132に記憶するパラメータ比較DB1321(図5参照)を読み出してRAM33上に展開する(S16)。CPU31はパラメータ比較DB1321の4つのパラメータのうち何れかの仕様数値が未設定か否か判断する(S17)。何れかの仕様数値が未設定であった場合(S17:YES)、CPU31は出荷値IDを決定できないので、出荷値ID決定処理を終了し、図9の後述するS7に処理を進める。   The shipping value ID determination process will be described with reference to FIG. The CPU 31 reads the parameter file 3421 (see FIG. 3) stored in the parameter file storage area 342 of the main storage device 34, and expands it on the RAM 33 (S15). Next, the CPU 31 reads the parameter comparison DB 1321 (see FIG. 5) stored in the parameter comparison DB storage area 132 of the external storage device 13 and develops it on the RAM 33 (S16). The CPU 31 determines whether or not any specification numerical value among the four parameters in the parameter comparison DB 1321 is not set (S17). If any specification numerical value has not been set (S17: YES), the CPU 31 cannot determine the shipping value ID, so the shipping value ID determination process ends, and the process proceeds to S7 described later in FIG.

一方、パラメータ比較DB1321の4つのパラメータの仕様数値が全て設定済みの場合(S17:NO)、CPU31はパラメータ仕様数値変換処理を実行する(S18)。   On the other hand, when all the specification values of the four parameters in the parameter comparison DB 1321 have been set (S17: NO), the CPU 31 executes a parameter specification value conversion process (S18).

図11,図12を参照し、パラメータ仕様数値変換処理を説明する。図11に示す如く、CPU31は、主記憶装置34に記憶するパラメータファイル3421(図3参照)からストロークXのパラメータ値を取得する(S31)。ストロークXとは、X軸方向のストロークを意味する。CPU31は取得したパラメータ値が300以下か否か判断する(S32)。パラメータ値が300以下の場合(S32:YES)、CPU31はストロークXの仕様数値を0とする(S33)。パラメータ値が300より大きい場合(S32:NO)、CPU31はパラメータ値が500以下か否か判断する(S34)。パラメータ値が500以下の場合(S32:YES)、CPU31はストロークXの仕様数値を1とする(S35)。パラメータ値が500より大きい場合(S34:NO)、CPU31はストロークXの仕様数値を2とする(S36)。尚、パラメータファイル3421におけるストロークXのパラメータ値は500.000であるので(S34:YES)、CPU31はストロークXの仕様数値を1とする。CPU31はストロークXの仕様数値をRAM33に記憶する(S37)。   The parameter specification numerical value conversion process will be described with reference to FIGS. As shown in FIG. 11, the CPU 31 acquires the parameter value of the stroke X from the parameter file 3421 (see FIG. 3) stored in the main storage device 34 (S31). The stroke X means a stroke in the X-axis direction. The CPU 31 determines whether the acquired parameter value is 300 or less (S32). When the parameter value is 300 or less (S32: YES), the CPU 31 sets the specification value of the stroke X to 0 (S33). If the parameter value is greater than 300 (S32: NO), the CPU 31 determines whether the parameter value is 500 or less (S34). When the parameter value is 500 or less (S32: YES), the CPU 31 sets the specification numerical value of the stroke X to 1 (S35). When the parameter value is larger than 500 (S34: NO), the CPU 31 sets the specification value of the stroke X to 2 (S36). Since the parameter value of the stroke X in the parameter file 3421 is 500.000 (S34: YES), the CPU 31 sets the specification value of the stroke X to 1. The CPU 31 stores the specification value of the stroke X in the RAM 33 (S37).

次いで、CPU31はパラメータファイル3421からストロークZのパラメータ値を取得する(S38)。ストロークZとは、Z軸方向のストロークを意味する。CPU31は取得したパラメータ値が480以下か否か判断する(S39)。パラメータ値が480以下の場合(S39:YES)、CPU31はストロークZの仕様数値を0とする(S40)。パラメータ値が480より大きい場合(S39:NO)、CPU31はパラメータ値が630以下か否か判断する(S41)。パラメータ値が630以下の場合(S41:YES)、CPU31はストロークZの仕様数値を1とする(S42)。パラメータ値が630より大きい場合(S41:NO)、CPU31はストロークZの仕様数値を2とする(S43)。尚、パラメータファイル3421におけるストロークZのパラメータ値は480.000であるので(S39:YES)、CPU31はストロークZの仕様数値を0とする。CPU31はストロークZの仕様数値をRAM33に記憶する(S44)。   Next, the CPU 31 acquires the parameter value of the stroke Z from the parameter file 3421 (S38). Stroke Z means a stroke in the Z-axis direction. The CPU 31 determines whether the acquired parameter value is 480 or less (S39). When the parameter value is 480 or less (S39: YES), the CPU 31 sets the specification numerical value of the stroke Z to 0 (S40). When the parameter value is larger than 480 (S39: NO), the CPU 31 determines whether the parameter value is 630 or less (S41). When the parameter value is 630 or less (S41: YES), the CPU 31 sets the specification numerical value of the stroke Z to 1 (S42). When the parameter value is larger than 630 (S41: NO), the CPU 31 sets the specification numerical value of the stroke Z to 2 (S43). Since the parameter value of the stroke Z in the parameter file 3421 is 480.000 (S39: YES), the CPU 31 sets the specification value of the stroke Z to 0. The CPU 31 stores the specification value of the stroke Z in the RAM 33 (S44).

次いで、図12に示如く、CPU31はパラメータファイル3421から主軸最高回転数のパラメータ値を取得する(S45)。CPU31は取得したパラメータ値が10000以下か否か判断する(S46)。10000以下の場合(S46:YES)、CPU31は主軸最高回転数の仕様数値を0とする(S47)。パラメータ値が10000より大きい場合(S46:NO)、CPU31は主軸最高回転数の仕様数値を1とする(S48)。尚、パラメータファイル3421における主軸最高回転数のパラメータ値は10000であるので(S46:YES)、CPU31は主軸最高回転数の仕様数値を0とする。CPU31は主軸最高回転数の仕様数値をRAM33に記憶する(S49)。   Next, as shown in FIG. 12, the CPU 31 acquires the parameter value of the maximum spindle speed from the parameter file 3421 (S45). The CPU 31 determines whether or not the acquired parameter value is 10,000 or less (S46). If it is 10,000 or less (S46: YES), the CPU 31 sets the specification numerical value of the maximum spindle speed to 0 (S47). When the parameter value is larger than 10,000 (S46: NO), the CPU 31 sets the specification numerical value of the maximum spindle speed to 1 (S48). Since the parameter value of the maximum spindle speed in the parameter file 3421 is 10,000 (S46: YES), the CPU 31 sets the specification value of the maximum spindle speed to 0. The CPU 31 stores the specification value of the maximum spindle speed in the RAM 33 (S49).

次いで、CPU31はパラメータファイル3421から工具収納本数のパラメータ値を取得する(S50)。工具収納本数とは、工具マガジン(図示略)の工具の収納本数を意味する。CPU31は取得したパラメータ値が14以下か否か判断する(S51)。14以下の場合(S51:YES)、CPU31は工具収納本数の仕様数値を0とする(S52)。パラメータ値が15以上の場合(S51:NO)、CPU31は主軸最高回転数の仕様数値を1とする(S53)。尚、パラメータファイル3421における工具収納本数のパラメータ値は14であるので(S51:YES)、CPU31は工具収納本数の仕様数値を0とする。CPU31は工具収納本数の仕様数値をRAM33に記憶する(S54)。CPU31はパラメータ仕様数値変換処理を終了し、図10の出荷値ID決定処理に戻り、S19に処理を進める。   Next, the CPU 31 acquires the parameter value of the number of stored tools from the parameter file 3421 (S50). The number of stored tools means the number of tools stored in a tool magazine (not shown). The CPU 31 determines whether or not the acquired parameter value is 14 or less (S51). When the number is 14 or less (S51: YES), the CPU 31 sets the specification numerical value of the number of stored tools to 0 (S52). When the parameter value is 15 or more (S51: NO), the CPU 31 sets the specification numerical value of the maximum spindle speed to 1 (S53). Since the parameter value of the tool storage number in the parameter file 3421 is 14 (S51: YES), the CPU 31 sets the specification numerical value of the tool storage number to 0. CPU31 memorize | stores the specification numerical value of the tool storage number in RAM33 (S54). The CPU 31 ends the parameter specification numerical value conversion process, returns to the shipping value ID determination process of FIG. 10, and advances the process to S19.

図10に示す如く、CPU31は出荷値ID決定処理を実行する(S19)。出荷値ID決定処理では、CPU31は、外部記憶装置13からパラメータ比較DB1321を読み出し、RAM33に記憶した仕様数値の組み合わせに対応する出荷値IDを決定する(S19)。例えば、図3に示すパラメータファイル3421から参照した4つのパラメータの仕様数値の組み合わせは、上記の通り(1,0,0,0)である。故にCPU31はパラメータ比較DB1321を参照し、出荷値ID=0010と特定できる。   As shown in FIG. 10, the CPU 31 executes a shipping value ID determination process (S19). In the shipment value ID determination process, the CPU 31 reads the parameter comparison DB 1321 from the external storage device 13 and determines the shipment value ID corresponding to the combination of the specification numerical values stored in the RAM 33 (S19). For example, the combination of the specification values of the four parameters referenced from the parameter file 3421 shown in FIG. 3 is (1, 0, 0, 0) as described above. Therefore, the CPU 31 can specify the shipment value ID = 0010 with reference to the parameter comparison DB 1321.

CPU31は出荷値IDが決定したか否か判断する(S20)。出荷値IDが決定した場合(S20:YES)、CPU31は決定した出荷値IDを主記憶装置34の出荷値ID記憶領域341に記憶する(S21)。CPU31は出荷値ID決定処理を終了し、図9のS7に処理を進める。一方、上記の出荷値ID決定処理(S19)で、パラメータ比較DB1321の中に、S18で算出した仕様数値の組み合わせに該当する出荷値IDが無かった場合、出荷値IDを決定できないので(S20:NO)、CPU31は何もせずに、出荷値ID決定処理を終了し、図9のS7に処理を進める。   The CPU 31 determines whether or not the shipping value ID has been determined (S20). When the shipping value ID is determined (S20: YES), the CPU 31 stores the determined shipping value ID in the shipping value ID storage area 341 of the main storage device 34 (S21). The CPU 31 ends the shipping value ID determination process and advances the process to S7 in FIG. On the other hand, in the shipping value ID determination process (S19), if there is no shipping value ID corresponding to the combination of the specification numerical values calculated in S18 in the parameter comparison DB 1321, the shipping value ID cannot be determined (S20: NO), the CPU 31 does nothing, ends the shipping value ID determination process, and advances the process to S7 in FIG.

図9に示す如く、CPU31は主記憶装置34の出荷値ID記憶領域341に出荷値IDを記憶しているか否か判断する(S7)。出荷値IDを記憶していない場合(S7:NO)、未設定パラメータに出荷値を設定できないので、CPU31はアラーム報知を行う(S11)。アラーム報知は、例えば、操作盤10の表示部12にエラーメッセージ等を表示してもよく、音声で報知してもよく、ランプ等の発光手段を点灯する等して報知してもよい。アラーム報知後、CPU31は図8のバージョンアップ制御処理に戻り、本処理を終了する。   As shown in FIG. 9, the CPU 31 determines whether or not the shipping value ID is stored in the shipping value ID storage area 341 of the main storage device 34 (S7). When the shipping value ID is not stored (S7: NO), the shipping value cannot be set in the unset parameter, and therefore the CPU 31 issues an alarm notification (S11). For example, an error message or the like may be displayed on the display unit 12 of the operation panel 10, or may be notified by voice, or may be notified by turning on a light emitting means such as a lamp. After the alarm notification, the CPU 31 returns to the upgrade control process of FIG. 8 and ends this process.

尚、図10に示すS17において、パラメータ比較DB1321の4つのパラメータのうち何れかの仕様数値が未設定であった場合(S17:YES)、CPU31は出荷値IDを決定できないので、出荷値ID決定処理を終了する。CPU31は、出荷値IDを記憶していないので(S7:NO)、CPU31はアラーム報知を行う(S11)。アラーム報知後、CPU31は図8のバージョンアップ制御処理に戻り、本処理を終了する。   In S17 shown in FIG. 10, if any of the four numerical values in the parameter comparison DB 1321 is not set (S17: YES), the CPU 31 cannot determine the shipping value ID, so the shipping value ID is determined. The process ends. Since the CPU 31 does not store the shipping value ID (S7: NO), the CPU 31 issues an alarm notification (S11). After the alarm notification, the CPU 31 returns to the upgrade control process of FIG. 8 and ends this process.

一方、図9に戻り、出荷値IDを記憶している場合(S7:YES)、CPU31は決定した出荷値IDに対応するパラメータ参照ファイルを、外部記憶装置13の出荷パラメータ群記憶領域133から取得する(S8)。決定した出荷値IDが0010である場合、CPU31は、出荷値ID=0010用のパラメータ参照ファイル1331(図4,図7参照)を取得する。CPU31は、取得したパラメータ参照ファイル1331を参照し、未設定パラメータの出荷値を特定する(S9)。CPU31は特定した出荷値を、パラメータファイル3421の未設定パラメータに夫々設定する(S10)。   On the other hand, returning to FIG. 9, when the shipping value ID is stored (S7: YES), the CPU 31 acquires the parameter reference file corresponding to the determined shipping value ID from the shipping parameter group storage area 133 of the external storage device 13. (S8). When the determined shipping value ID is 0010, the CPU 31 acquires a parameter reference file 1331 (see FIGS. 4 and 7) for the shipping value ID = 0010. The CPU 31 refers to the acquired parameter reference file 1331 and identifies the shipment value of the unset parameter (S9). The CPU 31 sets the specified shipment value as an unset parameter in the parameter file 3421 (S10).

図3に示す如く、パラメータファイル3421の未設定パラメータは、ワーク無し時イナーシャ、工具脱着位置オフセット量、X軸早送り時定数2、X軸インポジションチェックタイムアウト時間である。これらに対し、CPU31はパラメータ参照ファイル1331を参照して、出荷値を夫々設定する。ワーク無し時イナーシャには0.000821、工具脱着位置オフセット量には3、X軸早送り時定数2には20、X軸インポジションチェックタイムアウト時間には5000を夫々設定する。ワーク無し時イナーシャ、工具脱着位置オフセット量、X軸早送り時定数2は仕様によって出荷値が変わるパラメータである。本実施形態は、工作機械1の出荷値IDをパラメータ比較DB1321から決定することで、工作機械1の仕様を推定し、その出荷値IDに対応するパラメータ参照ファイル1331を参照することで、工作機械1の仕様に対応する出荷値を未設定パラメータに設定できる。   As shown in FIG. 3, the unset parameters in the parameter file 3421 are an inertia at the time of no workpiece, a tool attachment / detachment position offset amount, an X-axis rapid feed time constant 2, and an X-axis in-position check timeout time. On the other hand, the CPU 31 refers to the parameter reference file 1331 and sets the shipping values. 0.000821 is set for the inertia when there is no workpiece, 3 is set for the tool attachment / detachment position offset amount, 20 is set for the X-axis rapid feed time constant 2, and 5000 is set for the X-axis in-position check timeout time. The inertia when there is no workpiece, the tool attachment / detachment position offset amount, and the X-axis rapid feed time constant 2 are parameters whose shipment values vary depending on the specifications. In this embodiment, the specification of the machine tool 1 is estimated by determining the shipment value ID of the machine tool 1 from the parameter comparison DB 1321, and the machine tool 1 is referenced by referring to the parameter reference file 1331 corresponding to the shipment value ID. The shipping value corresponding to the specification of 1 can be set as an unset parameter.

また、本実施形態では、仕様によって出荷値が異なるパラメータ以外のパラメータで未設定のものがあった場合でも、その未設定パラメータについても、パラメータ参照ファイル1331から出荷値を取得して設定できる。ここで、パラメータファイル3421において、パラメータ値が設定されているパラメータのパラメータ値については、CPU31はそのパラメータ値を書き換えない。即ち、未設定パラメータのみに出荷値を設定するので、全てのパラメータのパラメータ値を出荷値に書換える場合に比べ、処理量を軽減できる。CPU31は、未設定のパラメータに出荷値を設定後(S10)、図8に戻り、バージョンアップ制御処理を終了する。   Further, in this embodiment, even when there is a parameter other than the parameter whose shipping value differs depending on the specification but not set, the shipping value can be acquired from the parameter reference file 1331 for the unset parameter. Here, in the parameter file 3421, the CPU 31 does not rewrite the parameter value of the parameter for which the parameter value is set. That is, since the shipment values are set only for the unset parameters, the processing amount can be reduced as compared with the case where the parameter values of all the parameters are rewritten to the shipment values. The CPU 31 sets a shipment value for an unset parameter (S10), returns to FIG. 8, and ends the upgrade control process.

尚、図9のパラメータ出荷値設定処理において、主記憶装置34の出荷値ID記憶領域341に出荷値IDを既に記憶している場合(S5:YES)、CPU31は、出荷値IDに基づき、上記器のS8〜S10処理を実行し、バージョンアップ制御処理を終了すればよい。   In the parameter shipment value setting process of FIG. 9, when the shipment value ID is already stored in the shipment value ID storage area 341 of the main storage device 34 (S5: YES), the CPU 31 performs the above process based on the shipment value ID. The S8 to S10 processes of the device may be executed and the upgrade control process may be terminated.

上記説明にて、パラメータファイル3421が本発明のパラメータ群に相当し、S6の処理を実行するCPU31が本発明の推定手段に相当し、S9の処理を実行するCPU31が本発明の取得手段に相当し、パラメータ参照ファイル1331が本発明のパラメータ情報に相当し、S10の処理を実行するCPU31が本発明の書換手段に相当し、S9の処理を実行するCPU31が本発明の特定手段に相当し、操作盤10が本発明の受付手段に相当し、S1の処理を実行するCPU31が本発明の実行手段に相当する。   In the above description, the parameter file 3421 corresponds to the parameter group of the present invention, the CPU 31 that executes the process of S6 corresponds to the estimation means of the present invention, and the CPU 31 that executes the process of S9 corresponds to the acquisition means of the present invention. The parameter reference file 1331 corresponds to the parameter information of the present invention, the CPU 31 that executes the process of S10 corresponds to the rewrite means of the present invention, and the CPU 31 that executes the process of S9 corresponds to the specifying means of the present invention. The operation panel 10 corresponds to the accepting unit of the present invention, and the CPU 31 that executes the process of S1 corresponds to the executing unit of the present invention.

以上説明の如く、本実施形態の数値制御装置30は、工作機械の動作に関係するパラメータを用いて工作機械1の動作を制御する。主記憶装置34はパラメータファイル3421を備える。パラメータファイル3421は各種パラメータのパラメータ値を有する。数値制御装置30のソフトウェアのバージョンアップを行う場合、使用者は操作盤10を用いてバージョンアップ制御処理の開始指示を入力する。ソフトウェアのバージョンアップ完了後、パラメータファイル3421にはバージョンアップに伴う追加パラメータが追加される。追加パラメータは工作機械1の仕様によって出荷値が異なるので出荷値は未設定である。そこで、数値制御装置30は、パラメータファイル3421の中でパラメータ値が未設定のパラメータ以外の4つの既存のパラメータのパラメータ値を仕様数値に夫々変換する。   As described above, the numerical controller 30 according to the present embodiment controls the operation of the machine tool 1 using the parameters related to the operation of the machine tool. The main storage device 34 includes a parameter file 3421. The parameter file 3421 has parameter values for various parameters. When upgrading the software of the numerical control device 30, the user inputs an instruction to start the upgrade control process using the operation panel 10. After the software upgrade is completed, additional parameters associated with the upgrade are added to the parameter file 3421. Since the shipping value of the additional parameter varies depending on the specifications of the machine tool 1, the shipping value is not set. Therefore, the numerical control device 30 converts the parameter values of the four existing parameters other than the parameters whose parameter values are not set in the parameter file 3421 into specification numerical values, respectively.

数値制御装置30はパラメータ比較DB1321を用いて、4つの仕様数値の組み合わせに対応する出荷値IDを特定する。出荷値IDとは、工作機械1の仕様に応じて設定する各種パラメータの出荷値の型を識別する為の情報である。数値制御装置30は出荷値IDを特定することで、工作機械1の仕様を推定する。数値制御装置30は、特定した出荷値IDに対応するパラメータ参照ファイル1331を外部記憶装置13から読み出し、その中からパラメータファイル3421において未設定パラメータの出荷値を取得し、未設定パラメータに設定する。即ち、数値制御装置30は未設定パラメータ以外の既存のパラメータから工作機械1の仕様を推定し、その工作機械1の仕様に対応するパラメータ参照ファイル1331の出荷値に書き換える。故に数値制御装置30は未設置パラメータの出荷値を手入力する必要が無くなるので、入力の手間を省略できる。   The numerical controller 30 uses the parameter comparison DB 1321 to identify the shipping value ID corresponding to the combination of the four specification numerical values. The shipment value ID is information for identifying the types of shipment values of various parameters set according to the specifications of the machine tool 1. The numerical controller 30 estimates the specification of the machine tool 1 by specifying the shipment value ID. The numerical control device 30 reads the parameter reference file 1331 corresponding to the specified shipment value ID from the external storage device 13, acquires the shipment value of the unset parameter in the parameter file 3421, and sets it as the unset parameter. That is, the numerical control device 30 estimates the specification of the machine tool 1 from existing parameters other than the unset parameters, and rewrites the shipment value of the parameter reference file 1331 corresponding to the specification of the machine tool 1. Therefore, it is not necessary for the numerical control device 30 to manually input the shipment values of the non-installed parameters, so that it is possible to save the input effort.

本実施形態は更に、パラメータファイル3421のうち未設定パラメータに、その工作機械1の仕様に対応するパラメータ参照ファイル1331の出荷値を設定して書き換える。即ち、数値制御装置30はパラメータ値が既に設定済みのパラメータは書き換えないので、書換えに伴う処理量を削減できる。   In the present embodiment, the unset parameter in the parameter file 3421 is further set with the shipping value of the parameter reference file 1331 corresponding to the specification of the machine tool 1 and rewritten. That is, since the numerical control device 30 does not rewrite parameters whose parameter values have already been set, the processing amount associated with rewriting can be reduced.

尚、本発明は上記実施形態に限らず種々の変更が可能である。上記実施形態は、パラメータファイル3421において追加パラメータを含む未設定のパラメータのみに、工作機械1の仕様に対応するパラメータ参照ファイル1331の出荷値を設定するが、パラメータファイル3421の全パラメータについて、パラメータ参照ファイル1331の出荷値に書き換えてもよい。   The present invention is not limited to the above embodiment, and various modifications can be made. In the above embodiment, the shipment value of the parameter reference file 1331 corresponding to the specifications of the machine tool 1 is set only for unset parameters including additional parameters in the parameter file 3421. However, for all parameters in the parameter file 3421, parameter reference is made. The shipment value of the file 1331 may be rewritten.

また、上記実施形態では、ソフトウェアのバージョンアップ時に、パラメータファイル3421における未設定パラメータに対し、工作機械1の仕様に対応するパラメータ参照ファイル1331の出荷値を設定するが、これ以外にも例えばソフトウェアの再インストール時にも適用可能である。   In the above embodiment, when the software is upgraded, the shipment value of the parameter reference file 1331 corresponding to the specification of the machine tool 1 is set for the unset parameter in the parameter file 3421. It can also be applied during reinstallation.

パラメータ比較DB1321は実施例以外の形式でも構わない。例えば、複数のパラメータから仕様の判別に必要なパラメータ項目を、任意の個数追加する形にしてもよい。   The parameter comparison DB 1321 may have a format other than the embodiment. For example, an arbitrary number of parameter items required for specification discrimination from a plurality of parameters may be added.

また、パラメータファイル3421のパラメータの種類は、上記実施形態以外のパラメータでもよい。   Further, the parameter type of the parameter file 3421 may be a parameter other than that in the above embodiment.

1 工作機械
10 操作盤
13 外部記憶装置
30 数値制御装置
31 CPU
34 主記憶装置
1321 パラメータ比較DB
1331 パラメータ参照ファイル
3421 パラメータファイル
DESCRIPTION OF SYMBOLS 1 Machine tool 10 Operation panel 13 External storage device 30 Numerical control device 31 CPU
34 Main storage device 1321 Parameter comparison DB
1331 Parameter reference file 3421 Parameter file

Claims (3)

工作機械の動作に関係するパラメータの集合であるパラメータ群の夫々の設定値を記憶する主記憶装置を備え、該主記憶装置に記憶したパラメータを用いて工作機械の動作を制御する数値制御装置において、
前記主記憶装置に記憶された前記パラメータ群の中で前記設定値が未設定のパラメータである未設定パラメータ以外のパラメータに基づき、前記工作機械の仕様を推定する推定手段と、
前記工作機械の前記仕様の種類に夫々対応づけられた前記パラメータ群の前記設定値の情報であるパラメータ情報を外部から取得する取得手段と、
前記取得手段が取得した前記パラメータ情報に基づき、前記主記憶装置に記憶した前記パラメータ群の前記設定値を書き換える書換手段と
を備えたことを特徴とする数値制御装置。
In a numerical controller that includes a main storage device that stores a set value of each parameter group that is a set of parameters related to the operation of a machine tool, and that controls the operation of the machine tool using the parameters stored in the main storage device. ,
Estimating means for estimating the specifications of the machine tool based on parameters other than the unset parameter in which the set value is an unset parameter in the parameter group stored in the main storage device;
Acquisition means for acquiring parameter information, which is information of the setting values of the parameter group respectively associated with the type of specification of the machine tool, from the outside;
A numerical control apparatus comprising: rewriting means for rewriting the set values of the parameter group stored in the main storage device based on the parameter information acquired by the acquisition means.
前記推定手段が推定した前記仕様に対応する前記パラメータ群の前記設定値を、前記取得手段が取得した前記パラメータ情報の中から特定する特定手段を更に備え、
前記書換手段は、
前記未設定パラメータのみを、前記特定手段が特定した前記設定値に書き換えることを特徴とする請求項1に記載の数値制御装置。
Further comprising specifying means for specifying the set value of the parameter group corresponding to the specification estimated by the estimating means from the parameter information acquired by the acquiring means;
The rewriting means is
The numerical control apparatus according to claim 1, wherein only the unset parameter is rewritten to the set value specified by the specifying unit.
前期主記憶装置に記憶したソフトウェアの更新を受け付ける受付手段と、
前記受付手段が前記更新を受け付けた場合、前記ソフトウェアの前記更新を実行する実行手段と
を備え、
前記パラメータ群は、
前記更新に伴って追加した追加パラメータを含み、
前記パラメータ情報は、
前記ソフトウェアの前記更新に伴う前記追加パラメータの設定値を含むことを特徴とする請求項1又は2に記載の数値制御装置。
Accepting means for accepting an update of software stored in the main memory device in the previous period;
An execution unit that executes the update of the software when the reception unit receives the update;
The parameter group is:
Including additional parameters added with the update,
The parameter information is
The numerical control apparatus according to claim 1, further comprising a setting value of the additional parameter that accompanies the update of the software.
JP2014009120A 2014-01-22 2014-01-22 Numerical controller Active JP6252198B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014009120A JP6252198B2 (en) 2014-01-22 2014-01-22 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014009120A JP6252198B2 (en) 2014-01-22 2014-01-22 Numerical controller

Publications (2)

Publication Number Publication Date
JP2015138362A JP2015138362A (en) 2015-07-30
JP6252198B2 true JP6252198B2 (en) 2017-12-27

Family

ID=53769327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014009120A Active JP6252198B2 (en) 2014-01-22 2014-01-22 Numerical controller

Country Status (1)

Country Link
JP (1) JP6252198B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6696383B2 (en) * 2016-09-27 2020-05-20 ブラザー工業株式会社 Numerical control device
JP6538771B2 (en) * 2017-07-26 2019-07-03 ファナック株式会社 Numerical control device and control method of numerical control device
JP6881380B2 (en) * 2018-03-30 2021-06-02 ブラザー工業株式会社 Machine tools, control methods and computer programs
DE112021004129T5 (en) * 2020-10-09 2023-07-20 Fanuc Corporation control device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2604881B2 (en) * 1990-05-17 1997-04-30 三菱電機株式会社 Control devices for industrial machines
JPH11161479A (en) * 1997-11-28 1999-06-18 Brother Ind Ltd Device and method for processing data and recording medium
JP2006293544A (en) * 2005-04-07 2006-10-26 Fanuc Ltd Numerical control system
JP4598865B2 (en) * 2009-02-17 2010-12-15 ファナック株式会社 Robot control device used in combination with machine tools

Also Published As

Publication number Publication date
JP2015138362A (en) 2015-07-30

Similar Documents

Publication Publication Date Title
JP5817256B2 (en) Machine control program creation device
JP6496272B2 (en) Parameter setting device, parameter setting program and parameter setting method
JP6252198B2 (en) Numerical controller
JP6557282B2 (en) Machine tool control device and production system
JP6450708B2 (en) Information processing apparatus for processing machining information among a plurality of manufacturing cells
US7742839B2 (en) Robot system provided with robot controller
CN111919182B (en) NC program conversion processing method and processing system
US20170139390A1 (en) Sequence-control programming apparatus, sequence-control programming method, and operating system
JP6434434B2 (en) A processing robot system that connects a processing device to a robot for processing
JP2013257782A (en) Numerical control device for machine tool with operation support control section
JP5123502B2 (en) Post-processor development support system and CAM system using the same
US8667475B2 (en) Computer-readable storage medium and program-converting method
EP3765929B1 (en) Automated system and method for updating firmware on industrial devices
JP6904994B2 (en) Screen creation device and screen creation system
JP6542710B2 (en) Numerical control device with program correction support function for alarm solution
JP5994862B2 (en) Development support device and development support program
JP5153437B2 (en) Control program creation device
JP2020015143A (en) Tool management system, tool management device and tool management method
JP5362146B1 (en) Numerical control apparatus and numerical control system
JP2020123324A (en) Method for controlling a machine tool and machine tool
US10474132B2 (en) Information processing device, information processing method, and recording medium
WO2014162598A1 (en) Numerical control device
JP6632692B1 (en) Control program creation support tool and control program creation method
US20240053725A1 (en) Parameterization of a digital twin and/or an automation system
JP2012048471A (en) Numerical control device and macro program execution method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171018

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171031

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171113

R150 Certificate of patent or registration of utility model

Ref document number: 6252198

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150