JP2017138756A - Measurement system, measurement program and control method - Google Patents

Measurement system, measurement program and control method Download PDF

Info

Publication number
JP2017138756A
JP2017138756A JP2016018617A JP2016018617A JP2017138756A JP 2017138756 A JP2017138756 A JP 2017138756A JP 2016018617 A JP2016018617 A JP 2016018617A JP 2016018617 A JP2016018617 A JP 2016018617A JP 2017138756 A JP2017138756 A JP 2017138756A
Authority
JP
Japan
Prior art keywords
instruction
measurement
command
storage area
area
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
JP2016018617A
Other languages
Japanese (ja)
Inventor
耕樹 笠原
Koju Kasahara
耕樹 笠原
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.)
Mitutoyo Corp
Mitsutoyo Kiko Co Ltd
Original Assignee
Mitutoyo Corp
Mitsutoyo Kiko Co 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 Mitutoyo Corp, Mitsutoyo Kiko Co Ltd filed Critical Mitutoyo Corp
Priority to JP2016018617A priority Critical patent/JP2017138756A/en
Publication of JP2017138756A publication Critical patent/JP2017138756A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accelerate a measurement operation.SOLUTION: A measurement system comprises: a control device 1 for creating an instruction based on an instruction for three-dimensional measurement for controlling a three-dimensional measurement machine; a measurement device 2 for executing a three-dimensional measurement operation based on the above mentioned instruction, and being different from the three-dimensional measurement machine; and a control device 1 for making the measurement device 2 execute an operation corresponding to the instruction. The control device 1 has an NC driver 12 for writing a first instruction for making the measurement device 2 execute a first operation in a first area which is an instruction storage area which is provided on a storage part which can be referred by the measurement device 2, and writing a second instruction for making the measurement device 2 execute a second operation which is executed next the first operation, in a second area as an instruction storage area, and the measurement device 2 has an NC controller 21 for executing the first operation based on the first instruction by referring to the storage part, and executing the second operation based on the second instruction after the first operation is completed.SELECTED DRAWING: Figure 1

Description

本発明は、測定システム、測定プログラム及び制御方法に関する。   The present invention relates to a measurement system, a measurement program, and a control method.

従来、三次元測定機を制御するための命令に基づいて、三次元測定機と異なる測定装置に三次元測定動作を実行させる測定システムが知られている。例えば、特許文献1には、NC工作機械に三次元測定用のプローブを装着させておき、端末装置が、三次元測定機を制御するための命令を、NC工作機械を動作させるための命令に変換し、変換後の命令に対応する動作を、NCコントローラを介してNC工作機械に実行させることにより、NC工作機械に三次元測定動作を実行させることが記載されている。   2. Description of the Related Art Conventionally, a measurement system that makes a measurement device different from a coordinate measuring machine execute a three-dimensional measurement operation based on a command for controlling the coordinate measuring machine is known. For example, in Patent Document 1, a probe for three-dimensional measurement is attached to an NC machine tool, and a command for the terminal device to control the three-dimensional measurement machine is changed to a command for operating the NC machine tool. It is described that the NC machine tool performs a three-dimensional measurement operation by converting and causing the NC machine tool to perform an operation corresponding to the converted command via the NC controller.

特開2014−2654号公報JP 2014-2654 A

特許文献1に記載の測定システムでは、端末装置は、NC工作機械を動作させる命令を所定の記憶領域に書き込み、当該命令が完了すると、次の命令を当該記憶領域に書き込むことにより、NC工作機械に命令を実行させている。したがって、NC工作機械が一の命令に対応する動作を完了してから、記憶領域に次の命令が書き込まれるまでの間、NC工作機械が動作を停止してしまうという問題があった。   In the measurement system described in Patent Document 1, the terminal device writes an instruction to operate the NC machine tool in a predetermined storage area, and when the instruction is completed, writes the next instruction in the storage area. The instruction is executed. Therefore, there is a problem that the NC machine tool stops its operation after the NC machine tool completes the operation corresponding to one command until the next command is written in the storage area.

そこで、本発明はこれらの点に鑑みてなされたものであり、測定動作を高速化することができる測定システム、測定プログラム及び制御方法を提供することを目的とする。   Therefore, the present invention has been made in view of these points, and an object thereof is to provide a measurement system, a measurement program, and a control method capable of speeding up a measurement operation.

本発明の第1の態様に係る測定システムは、三次元測定機を制御するための三次元測定用命令に基づく命令を生成する制御装置と、前記命令に基づいて三次元測定動作を実行する、前記三次元測定機と異なる測定装置と、を備える測定システムであって、前記制御装置は、前記測定装置に第1動作を実行させるための第1命令を、前記測定装置が参照可能な記憶部が有する命令格納領域としての第1領域に書き込み、前記測定装置が前記第1動作を完了する前に、前記測定装置に、前記第1動作の次に実行される第2動作を実行させるための第2命令を、前記命令格納領域としての第2領域に書き込む動作制御部を有し、前記測定装置は、前記記憶部を参照して前記第1命令に基づく前記第1動作を実行し、前記第1動作が完了した後に前記第2命令に基づく前記第2動作を実行する動作実行部を有することを特徴とする。   The measurement system according to the first aspect of the present invention includes a control device that generates a command based on a three-dimensional measurement command for controlling a three-dimensional measuring machine, and a three-dimensional measurement operation based on the command. A measurement system comprising a measurement device different from the coordinate measuring machine, wherein the control device is capable of referring to a first command for causing the measurement device to execute a first operation. For writing to a first area as an instruction storage area, and causing the measurement apparatus to execute a second operation executed after the first operation before the measurement apparatus completes the first operation. An operation control unit that writes a second instruction to a second area as the instruction storage area; and the measurement device performs the first operation based on the first instruction with reference to the storage unit, and After the first operation is completed, Characterized in that it has an operation execution unit for executing the second operation based on the second instruction.

前記動作実行部は、命令に基づく動作が完了すると、当該動作に対応する測定結果を示す測定結果情報と、当該動作が完了したことを示す動作完了情報とを、前記記憶部に書き込み、前記動作制御部は、前記動作完了情報が書き込まれると、前記測定結果情報を取得してもよい。   When the operation based on the command is completed, the operation execution unit writes measurement result information indicating a measurement result corresponding to the operation and operation completion information indicating that the operation is completed to the storage unit, The control unit may acquire the measurement result information when the operation completion information is written.

前記動作実行部は、命令に基づく動作が完了すると、当該命令が格納されている前記命令格納領域に、当該動作に対応する測定結果を示す測定結果情報と、当該動作が完了したことを示す動作完了情報とを書き込んでもよい。   When the operation based on the instruction is completed, the operation execution unit, in the instruction storage area in which the instruction is stored, the measurement result information indicating the measurement result corresponding to the operation, and the operation indicating that the operation is completed Completion information may be written.

前記動作制御部は、前記測定結果情報を取得した後に、当該測定結果情報が格納されている前記命令格納領域に新たに命令を書き込んでもよい。
前記動作制御部は、前記測定結果情報を取得した場合において、当該測定結果情報が格納されている前記命令格納領域への書き込み対象となる命令が存在しないとき、当該命令格納領域に命令を書き込める状態であることを示す情報を当該命令格納領域に書き込んでもよい。
After acquiring the measurement result information, the operation control unit may newly write a command in the command storage area in which the measurement result information is stored.
When the operation control unit acquires the measurement result information, and there is no instruction to be written to the instruction storage area in which the measurement result information is stored, a state in which the instruction can be written to the instruction storage area May be written in the instruction storage area.

前記動作制御部は、命令を書き込める状態であることを示す情報、又は前記動作完了情報が格納されている前記命令格納領域に命令を書き込んでもよい。
前記動作制御部は、前記測定装置が前記第1動作を完了すると、前記測定装置に、前記第2動作の後に実行される第3動作を実行させるための第3命令を前記第1領域に書き込んでもよい。
The operation control unit may write the instruction into the instruction storage area in which information indicating that the instruction can be written or the operation completion information is stored.
When the measurement device completes the first operation, the operation control unit writes a third instruction in the first area for causing the measurement device to execute a third operation executed after the second operation. But you can.

前記動作制御部は、命令を前記命令格納領域に書き込む場合に、当該命令格納領域に、当該命令の次の命令が格納される前記命令格納領域のアドレスを示すアドレス情報を書き込み、前記動作実行部は、命令に基づく動作が完了すると、当該命令が格納されている命令格納領域に書き込まれている前記アドレス情報が示す前記命令格納領域を参照し、当該命令の次の命令を特定してもよい。   When the instruction is written in the instruction storage area, the operation control unit writes address information indicating an address of the instruction storage area in which the instruction next to the instruction is stored in the instruction storage area. When the operation based on the instruction is completed, the instruction next to the instruction may be identified by referring to the instruction storage area indicated by the address information written in the instruction storage area in which the instruction is stored. .

前記動作制御部は、前記測定装置による測定結果に基づいて命令が分岐する場合、分岐後の複数の命令のそれぞれを複数の前記命令格納領域のそれぞれに予め書き込み、当該測定結果を取得した後に、分岐先の命令に対応する前記アドレス情報を、分岐する直前の命令が格納されている前記命令格納領域に書き込んでもよい。   When the instruction branches based on the measurement result by the measurement device, the operation control unit pre-writes each of the plurality of instructions after branching into each of the plurality of instruction storage areas, and obtains the measurement result. The address information corresponding to the branch destination instruction may be written in the instruction storage area in which the instruction immediately before branching is stored.

前記動作制御部は、前記測定装置による測定結果に基づいて命令が分岐する場合、当該測定結果を取得した後に、分岐先の命令を、分岐する直前の命令が格納されている前記命令格納領域に格納されているアドレス情報に対応する前記命令格納領域に書き込んでもよい。   When the instruction branches based on the measurement result by the measurement device, the operation control unit obtains the measurement result, and then the branch destination instruction is stored in the instruction storage area in which the instruction immediately before branching is stored. It may be written in the instruction storage area corresponding to the stored address information.

前記記憶部は、前記動作実行部が命令に基づく動作の実行に要する時間と、前記動作制御部が前記命令格納領域に命令を書き込むために要する時間とに基づいて定められた数の命令格納領域を有してもよい。   The storage unit has a number of instruction storage areas determined based on a time required for the operation execution unit to execute an operation based on an instruction and a time required for the operation control unit to write an instruction in the instruction storage area. You may have.

本発明の第2の態様に係る測定プログラムは、三次元測定機を制御するための三次元測定用命令に基づく命令を生成し、当該命令に基づいて前記三次元測定機と異なる測定装置を制御するコンピュータを、前記測定装置に第1動作を実行させるための第1命令を、前記測定装置が参照可能な記憶部が有する命令格納領域としての第1領域に書き込み、前記測定装置が前記第1動作を完了する前に、前記測定装置に、前記第1動作の次に実行される第2動作を実行させるための第2命令を、前記命令格納領域としての第2領域に書き込む動作制御部、として機能させることを特徴とする。   The measurement program according to the second aspect of the present invention generates a command based on a three-dimensional measurement command for controlling the CMM and controls a measurement device different from the CMM based on the command. A first command for causing the measuring device to execute the first operation in a first area as a command storage area of a storage unit that can be referred to by the measuring device; An operation control unit that writes a second instruction for causing the measurement apparatus to execute a second operation to be executed next to the first operation in the second area as the instruction storage area before completing the operation; It is made to function as.

本発明の第3の態様に係る制御方法は、三次元測定機を制御するための三次元測定用命令に基づく命令を生成する制御装置が、前記三次元測定機と異なる測定装置を制御する制御方法であって、前記測定装置に第1動作を実行させるための第1命令を、前記測定装置が参照可能な記憶部が有する第1領域に書き込む第1書込ステップと、前記測定装置が前記第1動作を完了する前に、前記測定装置に、前記第1動作の次に実行される第2動作を実行させるための第2命令を、前記記憶部が有する第2領域に書き込む第2書込ステップと、を有することを特徴とする。   In the control method according to the third aspect of the present invention, a control device that generates a command based on a three-dimensional measurement command for controlling a three-dimensional measuring machine controls a measuring device different from the three-dimensional measuring device. A first writing step of writing a first instruction for causing the measurement apparatus to execute a first operation in a first area of a storage unit that can be referred to by the measurement apparatus; and Before completing the first operation, a second document for writing a second instruction for causing the measurement apparatus to execute a second operation to be executed next to the first operation in a second area of the storage unit Including a step.

本発明によれば、測定動作を高速化することができるという効果を奏する。   According to the present invention, it is possible to speed up the measurement operation.

本実施形態に係る測定システムの構成を示す図である。It is a figure which shows the structure of the measurement system which concerns on this embodiment. 本実施形態に係る測定システムの動作の概要を説明するための図である。It is a figure for demonstrating the outline | summary of operation | movement of the measurement system which concerns on this embodiment. NCドライバが複数の命令格納領域をリングバッファとして用いる例を示す図である。It is a figure which shows the example which NC driver uses a some command storage area | region as a ring buffer. 本実施形態に係る命令格納領域に書き込まれる変数の種類と、各変数が格納される領域に割り当てられているアドレスとの関係の一例を示す図である。It is a figure which shows an example of the relationship between the kind of variable written in the instruction storage area which concerns on this embodiment, and the address allocated to the area | region where each variable is stored. 図4に示す変数を用いた場合の測定システムの動作例を示す図である。It is a figure which shows the operation example of the measurement system at the time of using the variable shown in FIG. プローブに四角形の頂点を移動させる動作を説明するための図である。It is a figure for demonstrating the operation | movement which moves a square vertex to a probe. ワークの三次元座標を測定する場合の動作を説明するための図である。It is a figure for demonstrating operation | movement in the case of measuring the three-dimensional coordinate of a workpiece | work. 命令格納領域に記憶されている変数の値の変化を示す図である。It is a figure which shows the change of the value of the variable memorize | stored in the instruction | command storage area. 図8Aに続く図である。It is a figure following FIG. 8A. 図8Bに続く図である。It is a figure following FIG. 8B.

[測定システムSの構成]
図1は、本実施形態に係る測定システムSの構成を示す図である。
測定システムSは、制御装置1と、測定装置2とを備える。制御装置1は、三次元測定機を制御するための命令(以下、三次元測定用命令ともいう。)に基づく命令(以下、工作機械用命令)を生成することができる装置であり、測定装置2は、NC工作機械である。測定システムSは、制御装置1が生成する工作機械用命令に基づいて、測定装置2に三次元測定動作を実行させるシステムである。工作機械用命令は、例えば、測定装置2を動作させるためのコモン変数により構成されている。
[Configuration of measuring system S]
FIG. 1 is a diagram illustrating a configuration of a measurement system S according to the present embodiment.
The measurement system S includes a control device 1 and a measurement device 2. The control device 1 is a device capable of generating a command (hereinafter referred to as a machine tool command) based on a command for controlling the CMM (hereinafter also referred to as a 3D measurement command). Reference numeral 2 denotes an NC machine tool. The measurement system S is a system that causes the measurement device 2 to perform a three-dimensional measurement operation based on a machine tool command generated by the control device 1. The machine tool command is constituted by, for example, a common variable for operating the measuring device 2.

制御装置1は、CPU等の制御部と、ハードディスクやメモリ等の記憶部とを備えるコンピュータである。制御装置1は、データ処理部11と、動作制御部としてのNCドライバ12とを備えており、RS−232CやTCP/IP等の通信方式により、測定装置2と通信を行う。なお、制御装置1は、各メーカが用意している通信用のAPIやクラスモジュールを利用して、測定装置2と通信を行うようにしてもよい。制御装置1は、記憶部に記憶されたプログラムを実行することにより、データ処理部11及びNCドライバ12として動作する。   The control device 1 is a computer including a control unit such as a CPU and a storage unit such as a hard disk and a memory. The control device 1 includes a data processing unit 11 and an NC driver 12 as an operation control unit, and communicates with the measurement device 2 by a communication method such as RS-232C or TCP / IP. The control device 1 may communicate with the measurement device 2 using a communication API or class module prepared by each manufacturer. The control device 1 operates as the data processing unit 11 and the NC driver 12 by executing a program stored in the storage unit.

データ処理部11は、ユーザから、測定装置2に実行させる測定の内容を受け付ける。データ処理部11は、例えば、測定装置2に実行させる動作内容に関する設定を受け付ける画面を制御装置1のディスプレイに表示させ、ユーザにより入力された設定情報を取得する。データ処理部11は、取得した設定情報に基づいて三次元測定用命令を生成し、生成した三次元測定用命令をNCドライバ12に通知する。また、データ処理部11は、NCドライバ12を介して測定装置2から取得した測定結果を制御装置1のディスプレイに表示する。   The data processing unit 11 receives from the user the content of measurement to be performed by the measurement device 2. For example, the data processing unit 11 displays on the display of the control device 1 a screen for accepting settings related to the operation content to be executed by the measurement device 2 and acquires setting information input by the user. The data processing unit 11 generates a 3D measurement command based on the acquired setting information, and notifies the NC driver 12 of the generated 3D measurement command. In addition, the data processing unit 11 displays the measurement result acquired from the measuring device 2 via the NC driver 12 on the display of the control device 1.

NCドライバ12は、三次元測定用命令を、測定装置2を制御するための工作機械用命令に変換し、測定装置2に送信する。また、NCドライバ12は、測定装置2が測定した結果を取得して、取得した測定結果をデータ処理部11に通知する。制御装置1がNCドライバ12を備えることにより、制御装置1のユーザは、三次元測定機の制御に用いる制御装置1を用いて測定装置2を制御し、測定装置2を用いた三次元測定を行うことができる。   The NC driver 12 converts the three-dimensional measurement command into a machine tool command for controlling the measurement device 2 and transmits the command to the measurement device 2. Further, the NC driver 12 acquires a result measured by the measuring device 2 and notifies the data processing unit 11 of the acquired measurement result. When the control device 1 includes the NC driver 12, the user of the control device 1 controls the measurement device 2 using the control device 1 used for controlling the coordinate measuring machine, and performs three-dimensional measurement using the measurement device 2. It can be carried out.

NCドライバ12は、三次元測定用命令に基づいて、測定装置2が備える各種動作を実行させるための工作機械用命令を生成し、生成した工作機械用命令を、測定装置2が参照可能な記憶部内の命令格納領域に格納する。NCドライバ12は、例えば、命令格納領域に含まれる各領域に対応する変数番号が割り当てられている変数の値を変化させることにより、工作機械用命令を命令格納領域に格納する。NCドライバ12は、測定装置2が、一つの命令に対応する動作を完了する前に、次の命令を命令格納領域に格納する。これにより、測定システムSは、測定装置2が一つの命令に対応する動作を完了してから、次の命令に対応する動作を実行するまでの時間を短縮し、測定装置2における測定動作を高速化することができる。   The NC driver 12 generates a machine tool command for executing various operations included in the measurement device 2 based on the three-dimensional measurement command, and stores the generated machine tool command to which the measurement device 2 can refer. Store in the instruction storage area in the department. For example, the NC driver 12 stores the machine tool instruction in the instruction storage area by changing the value of a variable to which a variable number corresponding to each area included in the instruction storage area is assigned. The NC driver 12 stores the next instruction in the instruction storage area before the measuring apparatus 2 completes the operation corresponding to one instruction. As a result, the measurement system S shortens the time from when the measurement device 2 completes the operation corresponding to one command to the execution of the operation corresponding to the next command, thereby speeding up the measurement operation in the measurement device 2. Can be

NCドライバ12は、測定装置2による測定の結果を取得して、取得した測定結果を制御装置用データに変換し、変換した制御装置用データをデータ処理部11に入力する。NCドライバ12は、例えば、一つの命令に対応する測定が完了したことを示す通知を測定装置2から受けたことに応じて、測定装置2が実行した命令が格納されていた領域の一部に格納された測定結果を取得する。   The NC driver 12 acquires the result of measurement by the measuring device 2, converts the acquired measurement result into control device data, and inputs the converted control device data to the data processing unit 11. The NC driver 12, for example, in response to receiving a notification from the measuring device 2 indicating that the measurement corresponding to one command is completed, in a part of the area where the command executed by the measuring device 2 is stored. Get stored measurement results.

測定装置2は、動作実行部としてのNCコントローラ21と、NC工作機械22とを備える。
NCコントローラ21は、CPU等の制御部、ハードディスクやメモリ等の記憶部、NC工作機械22を動作させるための駆動制御回路、各種レジスタ、及びループカウンタを備え、NC工作機械22の動作を制御するコンピュータである。
The measuring apparatus 2 includes an NC controller 21 as an operation execution unit and an NC machine tool 22.
The NC controller 21 includes a control unit such as a CPU, a storage unit such as a hard disk and a memory, a drive control circuit for operating the NC machine tool 22, various registers, and a loop counter, and controls the operation of the NC machine tool 22. It is a computer.

NCコントローラ21の記憶部には、CPUにより実行されるNCプログラムが格納されている。NCコントローラ21のCPUは、NCプログラムを実行することにより、NC工作機械22の駆動制御を行う。NCコントローラ21は、例えば、API(Application Programming Interface)を介して、NCドライバ12と通信することにより、NCドライバ12から工作機械用命令を取得したり、NCドライバ12に測定結果を通知したりする。
なお、NCコントローラ21がフロントエンド用の一般的な計算機と同様の構成を有している場合、NCプログラムが、制御装置1において実行されるプログラム及びNCドライバ12の少なくとも一部のプログラムを有していてもよい。
An NC program executed by the CPU is stored in the storage unit of the NC controller 21. The CPU of the NC controller 21 controls the driving of the NC machine tool 22 by executing an NC program. For example, the NC controller 21 communicates with the NC driver 12 via an API (Application Programming Interface) to acquire a machine tool command from the NC driver 12 or notify the NC driver 12 of a measurement result. .
When the NC controller 21 has the same configuration as a general computer for front end, the NC program has at least a part of the program executed in the control device 1 and the NC driver 12. It may be.

NC工作機械22は、三次元測定を行うためのプローブが装着されており、NCコントローラ21の制御に応じて、自身に載置されているワークの三次元測定を行う。NCコントローラ21は、例えば、三次元測定の測定結果として、プローブの三次元座標を、NCドライバ12が参照可能な記憶部に記憶させる。これにより、制御装置1は、当該記憶部に記憶されている測定結果を取得することができる。   The NC machine tool 22 is equipped with a probe for performing a three-dimensional measurement, and performs a three-dimensional measurement of a workpiece placed on the NC machine tool 22 under the control of the NC controller 21. The NC controller 21 stores, for example, the three-dimensional coordinates of the probe as a measurement result of the three-dimensional measurement in a storage unit that can be referred to by the NC driver 12. Thereby, the control apparatus 1 can acquire the measurement result memorize | stored in the said memory | storage part.

[測定システムSの動作概要]
図2は、本実施形態に係る測定システムSの動作の概要を説明するための図である。
まず、データ処理部11は、NC工作機械22に実行させる測定の内容をユーザから受け付ける(S1)。データ処理部11は、受け付けた測定内容に基づいて三次元測定用命令を生成する(S2)。
[Outline of operation of measurement system S]
FIG. 2 is a diagram for explaining the outline of the operation of the measurement system S according to the present embodiment.
First, the data processing unit 11 receives from the user the content of measurement to be performed by the NC machine tool 22 (S1). The data processing unit 11 generates a three-dimensional measurement command based on the received measurement content (S2).

続いて、NCドライバ12は、三次元測定用命令を解析し、当該命令を、測定装置2のNC工作機械22が実行可能な工作機械用命令に変換する(S3)。例えば、NCドライバ12は、三次元測定用命令に対応する動作を、NC工作機械22が実行可能な1以上の動作(例えば、位置決め、測定、A/C軸回転、B軸回転等)に分解し、1以上の動作のそれぞれに対応する工作機械用命令を生成する。   Subsequently, the NC driver 12 analyzes the three-dimensional measurement command and converts the command into a machine tool command that can be executed by the NC machine tool 22 of the measuring device 2 (S3). For example, the NC driver 12 disassembles the operation corresponding to the three-dimensional measurement command into one or more operations (for example, positioning, measurement, A / C axis rotation, B axis rotation, etc.) that the NC machine tool 22 can execute. Then, a machine tool command corresponding to each of the one or more operations is generated.

続いて、NCドライバ12は、測定装置2が参照可能な記憶部(例えば、NCコントローラ21に設けられている記憶部)が有する複数の命令格納領域のいずれかに、S3で生成した工作機械用命令を書き込む(S4)。ここで、NCコントローラ21に設けられている記憶部は、NCコントローラ21が命令に基づく動作の実行に要する時間と、NCドライバ12が命令を書き込むために要する時間とに基づいて定められた数の命令格納領域を有している。例えば、NCドライバ12が、命令格納領域に命令を書き込むために要する時間が最大で200msであり、NCコントローラ21に基づく動作の実行に要する時間が平均10msである場合、記憶部には、20個以上の命令格納領域が設けられていることが好ましい。このようにすることで、制御装置1は、命令の書き込み遅延が発生した場合であっても、遅延なく動作が実行される可能性を高めることができる。   Subsequently, the NC driver 12 is used for the machine tool generated in S3 in any of a plurality of command storage areas of a storage unit (for example, a storage unit provided in the NC controller 21) that can be referred to by the measuring device 2. An instruction is written (S4). Here, the storage unit provided in the NC controller 21 has the number of times determined based on the time required for the NC controller 21 to execute the operation based on the command and the time required for the NC driver 12 to write the command. It has an instruction storage area. For example, when the time required for the NC driver 12 to write a command in the command storage area is 200 ms at the maximum, and the time required for executing the operation based on the NC controller 21 is an average of 10 ms, the memory unit includes 20 The above instruction storage area is preferably provided. In this way, the control device 1 can increase the possibility that the operation will be executed without delay even when a command write delay occurs.

具体的には、NCドライバ12は、測定装置2に第1動作を実行させるための工作機械用命令である第1命令を、命令格納領域内の第1領域に書き込み、測定装置2が第1動作を完了する前に、測定装置2に、第1動作の次に実行される第2動作を実行させるための工作機械用命令である第2命令を、命令格納領域内の第2領域に書き込む。   Specifically, the NC driver 12 writes a first command, which is a machine tool command for causing the measuring apparatus 2 to execute the first operation, to the first area in the instruction storage area, and the measuring apparatus 2 performs the first operation. Before the operation is completed, the second instruction, which is a machine tool instruction for causing the measuring device 2 to execute the second operation executed after the first operation, is written in the second area in the instruction storage area. .

NCコントローラ21は、NCプログラムを実行することにより、命令格納領域に書き込まれた工作機械用命令に基づいてNC工作機械22の動作を制御する(S5)。NCコントローラ21は、当該動作が完了すると、当該動作が完了したことを示す動作完了情報を、NCコントローラ21の記憶部に設けられている命令格納領域に書き込む。これにより、動作が完了したことがNCドライバ12に通知される。また、NCコントローラ21は、NC工作機械22の動作が測定動作である場合、測定結果を示す測定結果情報を、NCコントローラ21の記憶部に設けられている命令格納領域に書き込む。   The NC controller 21 controls the operation of the NC machine tool 22 based on the machine tool command written in the command storage area by executing the NC program (S5). When the operation is completed, the NC controller 21 writes operation completion information indicating that the operation is completed in a command storage area provided in the storage unit of the NC controller 21. Thereby, the NC driver 12 is notified that the operation is completed. Further, when the operation of the NC machine tool 22 is a measurement operation, the NC controller 21 writes measurement result information indicating the measurement result in a command storage area provided in the storage unit of the NC controller 21.

例えば、NCコントローラ21は、以下の手順で複数の動作を連続してNC工作機械22に実行させる。まず、NCコントローラ21は、命令格納領域を参照して第1命令に基づく第1動作をNC工作機械22に実行させる。NCコントローラ21は、NC工作機械22が第1命令に基づく第1動作を完了すると、第1動作に対応する測定結果情報と、第1動作が完了したことを示す動作完了情報とを、第1命令が格納されている命令格納領域に書き込み、その後、第2命令に基づく第2動作をNC工作機械22に実行させる。NCコントローラ21は、NC工作機械22が第2命令に基づく第2動作を完了すると、第2動作に対応する測定結果情報と、第2動作が完了したことを示す動作完了情報とを、第2命令が格納されている命令格納領域に書き込む。このように、NCコントローラ21が、命令を実行した後に命令格納領域に測定結果情報を書き込むことで、限られたメモリ領域を有効に活用することができる。   For example, the NC controller 21 causes the NC machine tool 22 to continuously execute a plurality of operations in the following procedure. First, the NC controller 21 causes the NC machine tool 22 to execute a first operation based on the first command with reference to the command storage area. When the NC machine tool 22 completes the first operation based on the first command, the NC controller 21 receives the measurement result information corresponding to the first operation and the operation completion information indicating that the first operation is completed. The instruction is stored in the instruction storage area where the instruction is stored, and then the NC machine tool 22 is caused to execute the second operation based on the second instruction. When the NC machine tool 22 completes the second operation based on the second command, the NC controller 21 receives the measurement result information corresponding to the second operation and the operation completion information indicating that the second operation is completed. Write to the instruction storage area where instructions are stored. In this way, the NC controller 21 can effectively use the limited memory area by writing the measurement result information in the instruction storage area after executing the instruction.

NCドライバ12は、NC工作機械22の動作が測定動作である場合において、命令格納領域に動作完了情報が書き込まれると、命令格納領域に書き込まれた測定結果情報を取得し(S6)、当該測定結果情報を制御装置用の測定結果データに変換する(S7)。   When the operation of the NC machine tool 22 is a measurement operation and the operation completion information is written in the command storage area, the NC driver 12 acquires the measurement result information written in the command storage area (S6), and performs the measurement. The result information is converted into measurement result data for the control device (S7).

続いて、データ処理部11は、NCドライバ12が変換した制御装置用の測定結果データを取得して、記憶媒体に記憶させたりディスプレイに表示させたりする(S8)。データ処理部11が測定結果データを取得するタイミングは任意であり、全ての三次元測定用命令に基づく測定が終了してから測定結果データを取得してもよく、全ての測定が終了する前に、測定結果データを取得し、取得したデータに基づいて、測定結果を順次表示させてもよい。   Subsequently, the data processing unit 11 acquires the measurement result data for the control device converted by the NC driver 12, and stores it in the storage medium or displays it on the display (S8). The timing at which the data processing unit 11 acquires the measurement result data is arbitrary, and the measurement result data may be acquired after the measurement based on all the three-dimensional measurement commands is completed, and before all the measurements are completed. The measurement result data may be acquired, and the measurement results may be sequentially displayed based on the acquired data.

上記のS4において、NCドライバ12は、NCコントローラ21に実行させる複数の工作機械用命令のうち、命令格納領域に書き込まれていない工作機械用命令が存在する場合には、測定結果情報を取得した後に、当該測定結果情報が格納されている命令格納領域に新たに工作機械用命令を書き込むことができる。このようにすることで、測定システムSは、命令格納領域を、測定結果情報及び工作機械用命令を書き込む領域として共有することができるので、命令格納領域を有効利用することができる。   In S4 described above, the NC driver 12 acquires the measurement result information when there is a machine tool command not written in the command storage area among the plurality of machine tool commands to be executed by the NC controller 21. Later, a new machine tool command can be written in the command storage area in which the measurement result information is stored. By doing so, the measurement system S can share the instruction storage area as an area for writing the measurement result information and the machine tool instruction, so that the instruction storage area can be used effectively.

また、NCドライバ12は、測定装置2のNC工作機械22が第1動作を完了すると、測定装置2のNC工作機械22に、第2動作の後に実行される第3動作を実行させるための第3命令を、第1動作に対応する第1命令が格納されていた命令格納領域である第1領域に書き込むことにより、複数の命令格納領域をリングバッファとして利用することもできる。   In addition, when the NC machine tool 22 of the measuring device 2 completes the first operation, the NC driver 12 causes the NC machine tool 22 of the measuring device 2 to execute a third operation executed after the second operation. A plurality of instruction storage areas can be used as a ring buffer by writing three instructions to a first area that is an instruction storage area in which the first instruction corresponding to the first operation is stored.

図3は、NCドライバ12が、複数の命令格納領域をリングバッファとして用いる例を示す図である。図3に示す例では、命令格納領域として、第1領域、第2領域、第3領域、・・・、第(n−1)領域、第n領域が設けられているものとする。ただし、nは5以上の整数であるものとする。   FIG. 3 is a diagram illustrating an example in which the NC driver 12 uses a plurality of instruction storage areas as a ring buffer. In the example shown in FIG. 3, it is assumed that a first area, a second area, a third area,..., An (n−1) th area, and an nth area are provided as instruction storage areas. However, n shall be an integer greater than or equal to 5.

まず、NCドライバ12は、第1領域に、第1動作を実行させるための第1命令を書き込む。同様に、NCドライバ12は、第2領域に第2動作を実行させるための第2命令、第3領域に第3動作を実行させるための第3命令、・・・、第n領域に第n動作を実行させるための第n命令を順番に書き込む。NCドライバ12は、第1領域に書き込まれた第1命令に対応する動作が行われた後、第1領域に、(n+1)番目の動作を実行させるための第(n+1)命令を書き込むことにより、第1領域を再利用する。このように、測定システムSは、一の命令格納領域を、複数の命令を格納する領域として繰り返し使用できるようにすることにより、複数の命令で使用される変数の数が、測定装置2で使用可能な変数の最大数を超える場合であっても、当該複数の命令を連続して測定装置2に実行させることができる。   First, the NC driver 12 writes a first command for executing the first operation in the first area. Similarly, the NC driver 12 has a second command for causing the second region to execute the second operation, a third command for causing the third region to execute the third operation,. The nth instruction for executing the operation is sequentially written. After the operation corresponding to the first instruction written in the first area is performed, the NC driver 12 writes the (n + 1) th instruction for executing the (n + 1) th operation in the first area. The first area is reused. As described above, the measurement system S can repeatedly use one instruction storage area as an area for storing a plurality of instructions, so that the number of variables used in the plurality of instructions can be used in the measurement apparatus 2. Even when the maximum number of possible variables is exceeded, the plurality of instructions can be continuously executed by the measuring apparatus 2.

[命令格納領域に格納される変数]
続いて、命令格納領域に格納される工作機械用命令について説明する。
本実施形態において、NCドライバ12は、工作機械用命令として、NC工作機械22が実行可能な動作に対応する動作フラグの値や、当該動作の制御に用いる制御値(例えば、プローブの移動先の座標値や、プローブの移動速度)等の変数の値を含む命令を生成する。命令格納領域には、工作機械用命令に対応する変数の値を格納する領域が定められており、NCドライバ12は、生成した複数の値を、複数の変数のそれぞれに対応する領域に書き込む。以下の説明において、変数に対応する領域を特定するための情報をアドレスと称する。アドレスは、例えば、変数に割り当てられている変数番号に対応している。
[Variables stored in the instruction storage area]
Next, machine tool instructions stored in the instruction storage area will be described.
In the present embodiment, the NC driver 12 uses a value of an operation flag corresponding to an operation that can be executed by the NC machine tool 22 or a control value used for controlling the operation (for example, a probe destination) as a machine tool command. A command including a variable value such as a coordinate value or a probe moving speed is generated. In the instruction storage area, an area for storing the value of the variable corresponding to the machine tool instruction is determined, and the NC driver 12 writes the generated plurality of values in the area corresponding to each of the plurality of variables. In the following description, information for specifying an area corresponding to a variable is referred to as an address. The address corresponds to, for example, a variable number assigned to the variable.

図4は、本実施形態に係る命令格納領域に書き込まれる変数の種類と、各変数が格納される領域に割り当てられているアドレスとの関係の一例を示す図である。
図4(a)に示されるように、命令格納領域には、複数の工作機械用命令を一度に格納するための領域が複数設けられている。図4(a)においては、複数の領域のうち第1領域及び第2領域が示されている。第1領域は、アドレス#900から#917に対応しており、第2領域は、アドレス#950から#967に対応している。
FIG. 4 is a diagram showing an example of the relationship between the types of variables written in the instruction storage area according to the present embodiment and the addresses assigned to the areas in which the variables are stored.
As shown in FIG. 4A, the instruction storage area is provided with a plurality of areas for storing a plurality of machine tool instructions at a time. In FIG. 4A, the first region and the second region are shown among the plurality of regions. The first area corresponds to addresses # 900 to # 917, and the second area corresponds to addresses # 950 to # 967.

複数の領域のそれぞれには、測定装置2を制御するための情報、及び測定装置2の状態を示す情報が格納される。例えば、アドレス#903及び#953には、NC工作機械22に実行させる動作の種別やNC工作機械22の状態を示す動作フラグ変数の値を格納する動作フラグ領域が設けられている。   Information for controlling the measuring device 2 and information indicating the state of the measuring device 2 are stored in each of the plurality of regions. For example, addresses # 903 and # 953 are provided with an operation flag area for storing the value of an operation flag variable indicating the type of operation to be executed by the NC machine tool 22 and the state of the NC machine tool 22.

図4(b)は、動作フラグ変数の値と動作内容との関係を示すテーブルである。例えば、動作フラグの値「1」は、測定装置2におけるプローブの位置決め処理に対応している。また、動作フラグの値「2」は、測定装置2におけるワークの測定処理に対応している。また、動作フラグの値「5」は、測定装置2が動作終了状態であることを示す値である。   FIG. 4B is a table showing the relationship between the value of the operation flag variable and the operation content. For example, the value “1” of the operation flag corresponds to the probe positioning process in the measurement apparatus 2. The value “2” of the operation flag corresponds to the workpiece measurement process in the measurement apparatus 2. Further, the value “5” of the operation flag is a value indicating that the measuring device 2 is in the operation end state.

また、図4(a)に示すように、変数には、プローブの移動先の座標値に対応する変数(例えば、アドレス#900〜#902の領域に格納される変数)や、測定装置2に次に行わせる命令が格納されている命令格納領域のアドレスを示す次命令指定変数(例えば、アドレス#914の領域に格納される変数)等が設けられている。   Further, as shown in FIG. 4A, the variables include variables corresponding to the coordinate values of the movement destination of the probe (for example, variables stored in the area of addresses # 900 to # 902), and the measurement apparatus 2. A next instruction designation variable (for example, a variable stored in the area of address # 914) indicating the address of the instruction storage area where the instruction to be executed next is stored is provided.

本実施形態において、NCドライバ12は、工作機械用命令に対応する情報を命令格納領域に書き込む場合に、当該命令格納領域における次命令指定変数を格納する領域に、書き込まれる命令の次に測定装置2に実行させる命令が格納される命令格納領域のアドレスを書き込む。NCドライバ12は、例えば、次に実行させる命令を記憶している命令格納領域に対応する複数のアドレスのうち、最小のアドレスを書き込む。NCコントローラ21は、一の工作機械用命令に基づく動作が完了すると、次命令指定変数に対応するアドレスを参照し、動作が完了した命令の次の命令を特定する。このようにすることで、NCドライバ12は、次に実行させる命令が、複数の命令格納領域のうち、どの命令格納領域に格納されているかを、NCコントローラ21に通知することができる。   In the present embodiment, when writing information corresponding to a machine tool instruction in the instruction storage area, the NC driver 12 measures the measuring device next to the instruction to be written in the area for storing the next instruction designation variable in the instruction storage area. 2 writes the address of the instruction storage area where the instruction to be executed is stored. For example, the NC driver 12 writes a minimum address among a plurality of addresses corresponding to an instruction storage area storing an instruction to be executed next. When the operation based on one machine tool command is completed, the NC controller 21 refers to the address corresponding to the next command designation variable, and identifies the command next to the command for which the operation has been completed. In this way, the NC driver 12 can notify the NC controller 21 of which instruction storage area among the plurality of instruction storage areas the instruction to be executed next is stored.

なお、命令格納領域に格納される動作フラグ変数や、次命令指定変数、各種動作に対応する制御値を格納する変数のアドレスは、NC工作機械22のメーカが用意するNCプログラムの仕様によって異なる。したがって、NCドライバ12は、それぞれのメーカに対応するアドレスを示す情報を記憶し、各メーカのNCプログラムの仕様に基づいて、命令格納領域に記憶されているアドレスを特定したり、当該アドレスの変数を生成したりして、当該変数に工作機械用命令を書き込む。これにより、NCドライバ12は、各メーカのNC工作機械22に対応して、工作機械用命令を書き込むことができる。   The address of the operation flag variable stored in the instruction storage area, the next instruction designation variable, and the variable storing the control value corresponding to various operations differs depending on the specification of the NC program prepared by the manufacturer of the NC machine tool 22. Therefore, the NC driver 12 stores information indicating the address corresponding to each manufacturer, specifies the address stored in the instruction storage area based on the specifications of each manufacturer's NC program, Or write a machine tool command to the variable. Thereby, the NC driver 12 can write the command for machine tools corresponding to the NC machine tool 22 of each manufacturer.

[測定システムSの詳細な動作]
続いて、測定システムSの詳細な動作について説明する。図5は、図4に示す変数を用いた場合の測定システムSの動作例を示す図である。
上述したように、データ処理部11が、三次元測定用命令をNCドライバ12に通知すると(S2)、NCドライバ12は、当該三次元測定用命令を解析し、一以上の工作機械用命令に変換する(S3)。NCドライバ12は、NCコントローラ21に設けられている記憶部が有する複数の命令格納領域のいずれかの領域に、S2で生成された工作機械用命令に対応する動作フラグの値や、動作の制御に用いる制御値を書き込む(S4)。
[Detailed operation of measurement system S]
Subsequently, the detailed operation of the measurement system S will be described. FIG. 5 is a diagram illustrating an operation example of the measurement system S when the variables illustrated in FIG. 4 are used.
As described above, when the data processing unit 11 notifies the NC driver 12 of the three-dimensional measurement command (S2), the NC driver 12 analyzes the three-dimensional measurement command and converts it into one or more machine tool commands. Conversion is performed (S3). The NC driver 12 controls the operation flag value corresponding to the machine tool instruction generated in S2 and the operation control in any one of the plurality of instruction storage areas of the storage unit provided in the NC controller 21. The control value used for is written (S4).

ここで、測定装置2の制御を開始する時点では、複数の命令格納領域のすべてに、命令を書き込める状態であることを示す情報として、例えば、命令格納領域の状態が初期状態であることを示す情報が格納されている。NCドライバ12は、初期状態であることを示す情報が格納されている命令格納領域に、工作機械用命令を書き込む。   Here, as the information indicating that the instruction can be written in all of the plurality of instruction storage areas when the control of the measuring device 2 is started, for example, the instruction storage area is in an initial state. Information is stored. The NC driver 12 writes a machine tool command in a command storage area in which information indicating the initial state is stored.

例えば、NCドライバ12は、S2で生成された工作機械用命令のうち、測定装置2に最初に実行させる命令を第1領域に書き込むものとする。NCドライバ12は、動作フラグ変数に対応するアドレス#903の領域に、動作フラグの値として「2」を記憶させるとともに、移動先のX座標の値、Y座標の値、Z座標の値を、それぞれ、アドレス#900、#901、#902の領域に記憶させる。   For example, it is assumed that the NC driver 12 writes, in the first area, a command that is first executed by the measuring device 2 among the machine tool commands generated in S2. The NC driver 12 stores “2” as the value of the operation flag in the area of the address # 903 corresponding to the operation flag variable, and sets the X coordinate value, the Y coordinate value, and the Z coordinate value of the movement destination. These are stored in the areas of addresses # 900, # 901, and # 902, respectively.

また、NCドライバ12は、複数の工作機械用命令を、複数の命令格納領域のそれぞれに格納する。具体的には、命令格納領域がn個設けられている場合、NCドライバ12は、第2領域に第2動作を実行させるための第2命令、第3領域に第3動作を実行させるための第3命令、・・・、第n領域に第n動作を実行させるための第n命令を順番に書き込む。第n動作以降の動作に対応する命令は、第1領域に格納された命令に対応する動作が実行された後に書き込まれる。   Further, the NC driver 12 stores a plurality of machine tool instructions in each of a plurality of instruction storage areas. Specifically, when n instruction storage areas are provided, the NC driver 12 uses the second area for executing the second operation in the second area and the third area for executing the third operation. The nth instruction for executing the nth operation is sequentially written in the third instruction,..., The nth area. The instruction corresponding to the operation after the nth operation is written after the operation corresponding to the instruction stored in the first area is executed.

NCコントローラ21は、NCプログラムを実行することにより、第1領域に格納されている動作フラグ変数の値をループして監視する監視処理を行う(S51)。NCコントローラ21は、動作フラグ変数の値が1〜4、又は7のいずれかである場合、図4(b)に示す情報に基づいて、NC工作機械22に実行させる動作を特定する。NCコントローラ21は、動作フラグ変数の値が1の場合には、プローブの位置決め動作を実行させ(S52a)、動作フラグ変数の値が2の場合には、ワークの測定動作を実行させ(S52b)、動作フラグ変数の値が3の場合には、A/C軸回転動作を実行させ(S52c)、動作フラグ変数の値が4の場合には、B軸回転動作を実行させる(S52d)。   The NC controller 21 executes a monitoring process for looping and monitoring the value of the operation flag variable stored in the first area by executing the NC program (S51). When the value of the operation flag variable is any of 1 to 4 or 7, the NC controller 21 specifies an operation to be executed by the NC machine tool 22 based on the information shown in FIG. When the value of the operation flag variable is 1, the NC controller 21 executes the probe positioning operation (S52a), and when the value of the operation flag variable is 2, the NC controller 21 executes the workpiece measurement operation (S52b). When the value of the operation flag variable is 3, the A / C axis rotation operation is executed (S52c). When the value of the operation flag variable is 4, the B axis rotation operation is executed (S52d).

ここで、NC工作機械22は、ワークを測定する場合には、NC工作機械22が予め備えているブロックスキップ機能を利用して測定する。ブロックスキップ機能は、プローブを第1位置から第2位置まで移動させる途中で、プローブが物体等に接触すると、プローブのその後の移動を中止し、次の処理に移す機能である。NC工作機械22は、プローブに物体等に接触すると、スキップ信号を出力する。NCコントローラ21は、スキップ信号を検出したことに応じて、プローブの現在位置を格納している状態データ記憶領域(アドレス#5061〜#5063の領域)を参照し、当該状態データ記憶領域に記憶されている当該位置を示すX座標の値、Y座標の値、Z座標の値を、測定結果を格納するアドレス#904〜#906の領域に記憶させる(S53)。   Here, when measuring the workpiece, the NC machine tool 22 performs measurement using a block skip function provided in advance in the NC machine tool 22. The block skip function is a function for stopping the subsequent movement of the probe and moving to the next process when the probe contacts an object or the like while moving the probe from the first position to the second position. When the NC machine tool 22 contacts an object or the like with the probe, it outputs a skip signal. The NC controller 21 refers to the state data storage area (address # 5061 to # 5063) that stores the current position of the probe in response to the detection of the skip signal, and is stored in the state data storage area. The X-coordinate value, the Y-coordinate value, and the Z-coordinate value indicating the corresponding position are stored in the area of addresses # 904 to # 906 where the measurement results are stored (S53).

NC工作機械22において、動作フラグ変数の値に基づく、S52a、S52b、S52c、S52dのいずれかの動作が完了すると、NCコントローラ21は、第1領域内の動作フラグ変数に対応するアドレス#903の領域に、動作が完了したことを示す動作完了情報として、「5」を書き込む(S54)。   When the operation of any of S52a, S52b, S52c, and S52d based on the value of the operation flag variable is completed in the NC machine tool 22, the NC controller 21 sets the address # 903 corresponding to the operation flag variable in the first area. “5” is written in the area as operation completion information indicating that the operation has been completed (S54).

NCコントローラ21は、一の工作機械用命令に基づく動作が完了すると、当該命令が格納されている命令格納領域内の次命令指定変数が格納される領域に書き込まれているアドレスが示す命令格納領域を参照し、次の命令を特定する。例えば、NCコントローラ21は、第1領域におけるアドレス#914の領域に格納されているアドレスに基づいて、次に実行する工作機械用命令が第2領域に格納されていることを特定する。そして、NCコントローラ21は、S41の処理を再実行する。NCコントローラ21は、S41の処理を再実行する場合、第2領域のアドレス#953の領域に格納されている動作フラグ変数を監視し、以降の処理を実行する。   When the operation based on one machine tool instruction is completed, the NC controller 21 stores an instruction storage area indicated by an address written in an area in which an instruction storage variable in the instruction storage area in which the instruction is stored is stored. To identify the next instruction. For example, the NC controller 21 specifies that the machine tool command to be executed next is stored in the second area based on the address stored in the area of the address # 914 in the first area. Then, the NC controller 21 re-executes the process of S41. When re-executing the process of S41, the NC controller 21 monitors the operation flag variable stored in the area of address # 953 in the second area, and executes the subsequent processes.

NCドライバ12は、測定結果を格納する領域に測定結果を示す値が格納されたことに応じて、当該値を測定結果情報として取得し(S6)、当該測定結果情報を制御装置用の測定結果データに変換する(S7)。   The NC driver 12 acquires the value as measurement result information in response to the value indicating the measurement result being stored in the area for storing the measurement result (S6), and uses the measurement result information as the measurement result for the control device. Data is converted (S7).

なお、NCドライバ12は、命令格納領域に書き込まれておらず、制御装置1の記憶部に一時的に記憶されている命令を、動作完了情報が格納されている命令格納領域に書き込む。NCドライバ12は、例えば、制御装置1の記憶部に一時的に記憶されている一以上の工作機械用命令のうち、最初に実行される命令である第(n+1)命令を、動作フラグ変数に動作完了情報である「5」が書き込まれた第1領域に書き込む。   The NC driver 12 writes an instruction temporarily stored in the storage unit of the control device 1 into an instruction storage area in which operation completion information is stored. For example, the NC driver 12 uses, as an operation flag variable, an (n + 1) th instruction that is an instruction executed first among one or more machine tool instructions temporarily stored in the storage unit of the control device 1. The operation completion information “5” is written in the first area.

また、NCドライバ12は、測定結果情報を取得した場合において、当該測定結果情報が格納されている命令格納領域への書き込み対象となる工作機械用命令が存在しないとき、当該命令格納領域に工作機械用命令を書き込める状態であることを示す情報を当該命令格納領域に書き込む。例えば、NCドライバ12は、命令格納領域の状態が初期状態であることを示す情報を、当該命令格納領域に書き込む。このようにすることで、新たにワークの測定等を行う場合に、命令格納領域の状態を初期状態にすることなく、速やかに測定作業を進めることができる。   Further, when the NC driver 12 acquires the measurement result information, when there is no machine tool instruction to be written to the instruction storage area in which the measurement result information is stored, the NC driver 12 has a machine tool in the instruction storage area. The information indicating that the instruction can be written is written in the instruction storage area. For example, the NC driver 12 writes information indicating that the instruction storage area is in the initial state in the instruction storage area. In this way, when a new workpiece measurement or the like is performed, the measurement operation can be promptly advanced without setting the state of the instruction storage area to the initial state.

また、NCドライバ12は、測定装置2による測定結果に基づいて命令が分岐する場合、分岐後の複数の命令のそれぞれを複数の命令格納領域のそれぞれに予め書き込み、当該測定結果を取得した後に、分岐先の命令に対応するアドレスを、分岐する直前の命令が格納されている命令格納領域に書き込むようにしてもよい。このようにすることで、制御装置1は、測定装置2に分岐後の命令を速やかに実行させることができる。   Further, when the instruction branches based on the measurement result by the measuring device 2, the NC driver 12 writes each of the plurality of instructions after branching in each of the plurality of instruction storage areas in advance, and acquires the measurement result. The address corresponding to the branch destination instruction may be written in the instruction storage area in which the instruction immediately before branching is stored. By doing in this way, the control apparatus 1 can make the measuring apparatus 2 execute the command after a branch rapidly.

また、NCドライバ12は、測定装置2による測定結果に基づいて命令が分岐する場合、当該測定結果を取得した後に、分岐先の命令を、分岐する直前の命令が格納されている命令格納領域に格納されているアドレスに対応する命令格納領域に書き込むようにしてもよい。このようにすることで、制御装置1は、複数の分岐に対応する全ての命令を命令格納領域に書き込む必要がないので、命令格納領域の容量に制約がある場合であっても、分岐命令を使用することができる。   In addition, when an instruction branches based on the measurement result by the measuring device 2, the NC driver 12 obtains the measurement result and then places the branch destination instruction in the instruction storage area in which the instruction immediately before branching is stored. You may make it write in the instruction storage area corresponding to the stored address. In this way, the control device 1 does not need to write all instructions corresponding to a plurality of branches to the instruction storage area, so even if the capacity of the instruction storage area is limited, Can be used.

[動作例1]
続いて、実際の動作例について説明する。図6は、測定装置2のNC工作機械22に装着されているプローブを、四角形の頂点の位置P1〜P4に順次移動させる動作を説明するための図である。ここでは、プローブを位置P1から位置P2に移動させる第1命令、位置P2から位置P3に移動させる第2命令、位置P3から位置P4に移動させる第3命令、位置P4から位置P1の順に移動させる第4命令を順番に実行する例について説明する。
[Operation Example 1]
Next, an actual operation example will be described. FIG. 6 is a diagram for explaining the operation of sequentially moving the probe mounted on the NC machine tool 22 of the measuring apparatus 2 to the positions P1 to P4 of the square apexes. Here, the first command to move the probe from position P1 to position P2, the second command to move from position P2 to position P3, the third command to move from position P3 to position P4, and the position P4 to position P1 are moved in this order. An example in which the fourth instruction is executed in order will be described.

図6に示す例では、NCコントローラ21は、4つの工作機械用命令を一度に格納できるように、第1命令が格納される第1領域(アドレス#500〜#504)、第2命令が格納される第2領域(アドレス#505〜#509)、第3命令が格納される第3領域(アドレス#510〜#514)、及び第4命令が格納される第4領域(アドレス#515〜#519)の4つの命令格納領域を備えている。アドレス#504、#509、#514及び#519の領域には、次命令指定変数が書き込まれる。NCコントローラ21は、例えばアドレス#504の領域に格納されている値が505であることから、第1命令をNC工作機械22に実行させた後に、アドレス#505から#509までの第2命令を実行できる。   In the example shown in FIG. 6, the NC controller 21 stores a first area (address # 500 to # 504) in which the first instruction is stored and a second instruction so that four machine tool instructions can be stored at a time. Second area (addresses # 505 to # 509), a third area (address # 510 to # 514) in which the third instruction is stored, and a fourth area (address # 515 to # 514) in which the fourth instruction is stored. 519) of four instruction storage areas. The next instruction designation variable is written in the areas of the addresses # 504, # 509, # 514, and # 519. For example, since the value stored in the area of the address # 504 is 505, the NC controller 21 causes the NC machine tool 22 to execute the first instruction, and then executes the second instructions from the addresses # 505 to # 509. Can be executed.

アドレス#500には、動作フラグ変数が格納されている。アドレス#501〜#503には、それぞれ、移動先のX座標、Y座標、Z座標の値が格納されている。アドレス#504には、次命令指定変数が格納されている。第2領域から第4領域にも、第1領域に格納されている変数と同様の順番で、動作フラグ変数、移動先の三次元座標の値を格納する変数、次命令指定変数が格納されている。   At the address # 500, an operation flag variable is stored. Addresses # 501 to # 503 store the X coordinate, Y coordinate, and Z coordinate values of the movement destination, respectively. The address # 504 stores a next instruction designation variable. In the second area to the fourth area, the operation flag variable, the variable for storing the value of the three-dimensional coordinates of the movement destination, and the next instruction designation variable are stored in the same order as the variables stored in the first area. Yes.

図6に示す例では、測定装置2の動作フラグ変数として、プローブを移動させる「1」、三次元座標を測定させる「2」、測定装置2の動作完了情報に対応する「5」のいずれかが格納される。また、次命令指定変数として、次に実行する工作機械用命令が格納されている命令格納領域に記憶されている先頭の変数のアドレスが格納される。   In the example illustrated in FIG. 6, any one of “1” for moving the probe, “2” for measuring the three-dimensional coordinates, and “5” corresponding to the operation completion information of the measuring device 2 as the operation flag variable of the measuring device 2. Is stored. In addition, as the next instruction designation variable, the address of the first variable stored in the instruction storage area in which the machine tool instruction to be executed next is stored is stored.

まず、NCドライバ12は、4つの工作機械用命令に対応する動作フラグの値、三次元座標の値、次命令指定変数の値を、第1領域、第2領域、第3領域及び第4領域に書き込む。
NCコントローラ21は、第1領域に記憶されている変数の値に基づいて、NC工作機械22を制御し、プローブを位置P1から位置P2に移動させる。NCコントローラ21は、プローブを位置P2に移動させる動作が完了すると、第1領域に格納されている動作フラグ変数の値を「5」に書き換えるとともに、第1領域に格納されている次命令指定変数の値を参照し、次に実行する工作機械用命令が格納されている領域の先頭アドレスを「#505」と特定する。これにより、NCコントローラ21は、第2領域に記憶されている第2命令を実行することが可能になる。NCドライバ12は、第1領域への書き込み対象となる工作機械用命令が存在しないことから、初期状態であることを示す情報を第1領域に書き込む。例えば、NCドライバ12は、第1領域の全ての領域に「0」を書き込む初期化処理を実行する。
First, the NC driver 12 sets the value of the operation flag, the value of the three-dimensional coordinate, and the value of the next command designation variable corresponding to the four machine tool commands in the first region, the second region, the third region, and the fourth region. Write to.
The NC controller 21 controls the NC machine tool 22 based on the value of the variable stored in the first area, and moves the probe from the position P1 to the position P2. When the operation of moving the probe to the position P2 is completed, the NC controller 21 rewrites the value of the operation flag variable stored in the first area to “5” and also sets the next command designation variable stored in the first area. The head address of the area where the machine tool instruction to be executed next is stored is specified as “# 505”. As a result, the NC controller 21 can execute the second command stored in the second area. The NC driver 12 writes information indicating the initial state in the first area because there is no machine tool command to be written to the first area. For example, the NC driver 12 executes an initialization process in which “0” is written in all areas of the first area.

NCコントローラ21は、同様の手順で、第2領域に格納されている情報に基づいて、プローブを位置P2から位置P3に移動させ、第3領域に格納されている情報に基づいて、プローブを位置P3から位置P4に移動させ、その後、第4領域に格納されている情報に基づいて、プローブを位置P4から位置P1に移動させる。   The NC controller 21 moves the probe from the position P2 to the position P3 based on the information stored in the second area in the same procedure, and positions the probe based on the information stored in the third area. The probe is moved from P3 to position P4, and then the probe is moved from position P4 to position P1 based on the information stored in the fourth area.

[動作例2]
続いて、リング状のワークの三次元座標を測定する動作例について説明する。図7は、ワークの三次元座標を測定する場合の動作を説明するための図である。図7に示す例において、データ処理部11は、ワーク上の4点の三次元座標を自動的に測定するための設定をユーザから受け付ける。なお、図7に示す例では、図6に示す4つの命令格納領域(第1領域〜第4領域)を利用して測定を行うものとする。
[Operation example 2]
Next, an operation example for measuring the three-dimensional coordinates of the ring-shaped workpiece will be described. FIG. 7 is a diagram for explaining the operation when measuring the three-dimensional coordinates of the workpiece. In the example illustrated in FIG. 7, the data processing unit 11 receives a setting for automatically measuring three-dimensional coordinates of four points on the workpiece from the user. In the example shown in FIG. 7, the measurement is performed using the four instruction storage areas (first area to fourth area) shown in FIG.

NCドライバ12は、データ処理部11から取得した三次元測定用命令を工作機械用命令に変換する。NCドライバ12は、図7の(1)から(8)に示すように、8個の工作機械用命令(第1命令〜第8命令)に変換する。   The NC driver 12 converts the three-dimensional measurement command acquired from the data processing unit 11 into a machine tool command. As shown in (1) to (8) of FIG. 7, the NC driver 12 converts the command into eight machine tool commands (first command to eighth command).

第1命令は、プローブをワークの内側の位置P1に移動させる動作を実行させる命令である。第2命令は、プローブを位置P1からワークの外側の位置P2に移動させて、プローブをワークに接触させることにより、ワーク上の位置C1の座標を測定する動作を実行させる命令である。
第3命令は、プローブを位置P3に移動する動作を実行させる命令である。第4命令は、プローブを位置P3から位置P4に移動させることにより、ワーク上の位置C2の座標を測定する動作を実行させる命令である。
The first command is a command for executing an operation of moving the probe to the position P1 inside the workpiece. The second command is a command for executing an operation of measuring the coordinates of the position C1 on the workpiece by moving the probe from the position P1 to the position P2 outside the workpiece and bringing the probe into contact with the workpiece.
The third command is a command for executing an operation of moving the probe to the position P3. The fourth command is a command for executing an operation of measuring the coordinates of the position C2 on the workpiece by moving the probe from the position P3 to the position P4.

第5命令は、プローブを位置P5に移動させる動作を実行させる命令である。第6命令は、プローブを位置P5から位置P6に移動させることにより、ワーク上の位置C3の座標を測定する動作を実行させる命令である。
第7命令は、プローブを位置P7に移動させる動作を実行させる命令である。第8命令は、プローブを位置P7から位置P8に移動させることにより、ワーク上の位置C4の座標を測定する動作を実行させる命令である。
The fifth command is a command for executing an operation of moving the probe to the position P5. The sixth command is a command for executing an operation of measuring the coordinates of the position C3 on the workpiece by moving the probe from the position P5 to the position P6.
The seventh command is a command for executing an operation of moving the probe to the position P7. The eighth command is a command for executing an operation of measuring the coordinates of the position C4 on the workpiece by moving the probe from the position P7 to the position P8.

以下に、測定動作を行うときのNCドライバ12及びNCコントローラ21の動作について、4つの命令格納領域に記憶されている変数の状態を図示しながら説明する。図8A〜図8Cは、4つの命令格納領域に記憶されている変数の状態を示す図である。なお、前の状態から変化した部分を、前の状態から変化していない部分とは異なる色(灰色)で示すものとする。   Hereinafter, the operations of the NC driver 12 and the NC controller 21 when performing the measurement operation will be described with reference to the states of variables stored in the four instruction storage areas. 8A to 8C are diagrams showing the states of variables stored in the four instruction storage areas. In addition, the part changed from the previous state shall be shown by a color (gray) different from the part which has not changed from the previous state.

4つの命令格納領域に記憶されている各変数の値は、測定前において、図8Aの(a)に示す状態であるものとする。
まず、NCドライバ12は、第1命令から第4命令に対応する動作フラグの値、三次元座標の値、次命令指定変数の値を、第1領域から第4領域に書き込む。これにより、各アドレスに格納されている値は、図8Aの(b)に示す状態となる。
It is assumed that the values of the variables stored in the four instruction storage areas are in the state shown in FIG. 8A (a) before measurement.
First, the NC driver 12 writes the value of the operation flag corresponding to the first command to the fourth command, the value of the three-dimensional coordinate, and the value of the next command designation variable from the first region to the fourth region. As a result, the value stored in each address is in the state shown in FIG. 8A (b).

NCコントローラ21は、まず、第1領域に記憶されている変数を参照して第1命令を実行し、プローブを位置P1に移動させる。NCコントローラ21は、位置P1に移動させる動作が完了すると、第1領域に記憶されている動作フラグ変数の値を「5」に書き換える。これにより、各変数の値は、図8Aの(c)に示す状態となる。   First, the NC controller 21 refers to the variable stored in the first area, executes the first command, and moves the probe to the position P1. When the operation of moving to the position P1 is completed, the NC controller 21 rewrites the value of the operation flag variable stored in the first area to “5”. Thereby, the value of each variable will be in the state shown to (c) of FIG. 8A.

NCドライバ12は、命令格納領域に記憶されていない第5命令が存在することから、第1領域に記憶されている動作フラグ変数の値が「5」に変化した後に、第5命令に対応する値を第1領域に書き込む。なお、NCドライバ12は、NCコントローラ21が、第1領域に記憶されている次命令指定変数の値を参照することから、NCコントローラ21が次の第2命令を実行した後に、第5命令に対応する値を第1領域に書き込む。以下の説明においても、NCコントローラ21が各領域の次命令指定変数の値を参照してから、NCドライバ12が、当該領域の変数の値を書き換えるものとする。   Since there is a fifth instruction that is not stored in the instruction storage area, the NC driver 12 corresponds to the fifth instruction after the value of the operation flag variable stored in the first area changes to “5”. Write the value to the first area. Since the NC controller 21 refers to the value of the next command designation variable stored in the first area, the NC driver 12 changes the fifth command after the NC controller 21 executes the next second command. The corresponding value is written in the first area. Also in the following description, after the NC controller 21 refers to the value of the next command designation variable in each area, the NC driver 12 rewrites the value of the variable in the area.

NCコントローラ21は、第1領域に記憶されている次命令指定変数の値を参照し、次に実行する第2命令に対応する先頭のアドレスを「#505」と特定する。これにより、NCコントローラ21は、第2領域に記憶されている変数を参照して第2命令を実行する。NCコントローラ21は、プローブが位置P2に移動する途中に、位置C1においてワークに接触すると、接触した時点のプローブの位置を示す三次元座標の値を、測定結果を格納する領域に格納させる。ここでは、NCコントローラ21は、移動先の位置P2の三次元座標の値を格納するアドレス#506、#507、#508の領域に、プローブの位置を示す三次元座標の値を書き込む。これにより、各変数の値は、図8Aの(d)に示す状態となる。   The NC controller 21 refers to the value of the next instruction designation variable stored in the first area, and identifies the head address corresponding to the second instruction to be executed next as “# 505”. Thereby, the NC controller 21 executes the second command with reference to the variable stored in the second area. When the probe contacts the workpiece at the position C1 while the probe moves to the position P2, the NC controller 21 stores the value of the three-dimensional coordinates indicating the position of the probe at the time of contact in the area for storing the measurement result. Here, the NC controller 21 writes the value of the three-dimensional coordinate indicating the position of the probe in the area of the addresses # 506, # 507, and # 508 for storing the value of the three-dimensional coordinate of the destination position P2. Thereby, the value of each variable will be in the state shown to (d) of FIG. 8A.

NCドライバ12は、第2領域に記憶されている動作フラグ変数の値が「5」に変化したことに応じて、測定結果が格納されるアドレス#506、#507、#508の領域を参照して、測定結果情報を取得する。
NCドライバ12は、命令格納領域に記憶されていない第6命令が存在することから、第2領域に記憶されている動作フラグ変数の値が「5」に変化した後に、第6命令に対応する値を第2領域に書き込む。
The NC driver 12 refers to the areas of the addresses # 506, # 507, and # 508 where the measurement results are stored in response to the value of the operation flag variable stored in the second area being changed to “5”. To obtain measurement result information.
Since there is a sixth instruction that is not stored in the instruction storage area, the NC driver 12 corresponds to the sixth instruction after the value of the operation flag variable stored in the second area changes to “5”. Write the value to the second area.

以下、同様の手順で、NCコントローラ21が第3命令〜第5命令を実行するとともに、NCドライバ12が第7命令及び第8命令に対応する値を第3領域及び第4領域に書き込むことにより、図8B(e)〜(g)のように各領域の値が遷移する。
NCコントローラ21は、図8B(g)に示す状態において、第1領域に記憶されている次命令指定変数の値を参照し、次に実行する第6命令に対応する先頭の変数のアドレスを「#505」と特定する。これにより、NCコントローラ21は、第2領域に記憶されている変数を参照して第6命令を実行する。NCコントローラ21は、プローブが位置P6に移動する途中に、位置C3においてワークに接触すると、接触した時点のプローブの位置を示す三次元座標の値を、測定結果を格納するアドレス#506、#507、#508の領域に格納する。これにより、各変数の値は、図8Bの(h)に示す状態となる。
Thereafter, in the same procedure, the NC controller 21 executes the third to fifth instructions, and the NC driver 12 writes values corresponding to the seventh and eighth instructions in the third and fourth areas. 8B (e) to (g), the value of each region transitions.
In the state shown in FIG. 8B (g), the NC controller 21 refers to the value of the next instruction designation variable stored in the first area, and sets the address of the first variable corresponding to the sixth instruction to be executed next to “ # 505 ". As a result, the NC controller 21 executes the sixth instruction with reference to the variable stored in the second area. If the NC controller 21 touches the workpiece at the position C3 while the probe is moving to the position P6, the NC controller 21 stores the three-dimensional coordinate values indicating the position of the probe at the time of contact, and addresses # 506 and # 507 for storing the measurement results. , # 508. Thereby, the value of each variable will be in the state shown to (h) of FIG. 8B.

なお、図8Bの(g)に示す状態において、命令格納領域に記憶されていない工作機械用命令が存在しないことから、NCドライバ12は、第1領域に記憶されている動作フラグ変数の値が「5」に変化してから所定時間が経過すると、第1領域に「0」を書き込み、第1領域に記憶されている変数を初期化する。したがって、図8Bの(h)においては、アドレス#500〜#504の領域の値が0になっている。   In the state shown in FIG. 8B (g), since there are no machine tool instructions that are not stored in the instruction storage area, the NC driver 12 determines that the value of the operation flag variable stored in the first area is When a predetermined time elapses after changing to “5”, “0” is written in the first area, and the variables stored in the first area are initialized. Therefore, in (h) of FIG. 8B, the values of the areas of the addresses # 500 to # 504 are 0.

以下、NCコントローラ21は、第7命令、第8命令も同様の手順で実行し、図8C(i)〜図8C(k)のように各領域の値が遷移する。NCコントローラ21は、第2領域、第3領域、第4領域に順次0を書き込んで、命令格納領域を初期化する。以上の手順により、4つの命令格納領域を用いて、8つの命令を連続して実行することができる。   Thereafter, the NC controller 21 executes the seventh instruction and the eighth instruction in the same procedure, and the values of the respective regions transition as shown in FIGS. 8C (i) to 8C (k). The NC controller 21 initializes the instruction storage area by sequentially writing 0 in the second area, the third area, and the fourth area. With the above procedure, eight instructions can be executed in succession using the four instruction storage areas.

[本実施形態における効果]
以上説明したように、本実施形態に係る測定システムSにおいて、制御装置1のNCドライバ12は、測定装置2に第1動作を実行させるための第1命令を、測定装置2が参照可能な記憶部が有する命令格納領域としての第1領域に書き込み、測定装置2が第1動作を完了する前に、測定装置2に、第1動作の次に実行される第2動作を実行させるための第2命令を、命令格納領域としての第2領域に書き込み、測定装置2のNCコントローラ21は、記憶部を参照して第1命令に基づく第1動作を実行し、第1動作が完了した後に第2命令に基づく第2動作を実行する。
[Effect in this embodiment]
As described above, in the measurement system S according to the present embodiment, the NC driver 12 of the control device 1 stores the first command for causing the measurement device 2 to execute the first operation. The first operation area is stored in the first area as the instruction storage area, and before the measurement apparatus 2 completes the first operation, the measurement apparatus 2 executes a second operation to be executed next to the first operation. Two commands are written in the second area as the instruction storage area, and the NC controller 21 of the measuring apparatus 2 executes the first operation based on the first instruction with reference to the storage unit, and the first operation is completed after the first operation is completed. A second operation based on two instructions is executed.

このようにすることで、測定システムSは、測定装置2が一の命令に対応する動作を完了してから、次の命令に対応する動作を実行するまでの時間を短縮し、測定装置2における測定動作を高速化することができる。   By doing in this way, the measurement system S shortens the time from when the measurement apparatus 2 completes the operation corresponding to one command to the execution of the operation corresponding to the next command. Measurement operation can be speeded up.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。そのような変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

1 制御装置
11 データ処理部
12 NCドライバ
2 測定装置
21 NCコントローラ
22 NC工作機械
S 測定システム
DESCRIPTION OF SYMBOLS 1 Control apparatus 11 Data processing part 12 NC driver 2 Measuring apparatus 21 NC controller 22 NC machine tool S Measuring system

Claims (13)

三次元測定機を制御するための三次元測定用命令に基づく命令を生成する制御装置と、前記命令に基づいて三次元測定動作を実行する、前記三次元測定機と異なる測定装置と、を備える測定システムであって、
前記制御装置は、
前記測定装置に第1動作を実行させるための第1命令を、前記測定装置が参照可能な記憶部が有する命令格納領域としての第1領域に書き込み、前記測定装置が前記第1動作を完了する前に、前記測定装置に、前記第1動作の次に実行される第2動作を実行させるための第2命令を、前記命令格納領域としての第2領域に書き込む動作制御部を有し、
前記測定装置は、
前記記憶部を参照して前記第1命令に基づく前記第1動作を実行し、前記第1動作が完了した後に前記第2命令に基づく前記第2動作を実行する動作実行部を有する、
ことを特徴とする測定システム。
A control device that generates a command based on a three-dimensional measurement command for controlling the three-dimensional measurement device, and a measurement device that performs a three-dimensional measurement operation based on the command and is different from the three-dimensional measurement device. A measuring system,
The controller is
A first instruction for causing the measurement apparatus to execute the first operation is written in a first area as an instruction storage area of a storage unit that can be referred to by the measurement apparatus, and the measurement apparatus completes the first operation. Before, having an operation control unit that writes a second command for causing the measurement apparatus to execute a second operation executed next to the first operation in the second region as the command storage region,
The measuring device is
An operation execution unit configured to execute the first operation based on the first instruction with reference to the storage unit and to execute the second operation based on the second instruction after the first operation is completed;
A measurement system characterized by that.
前記動作実行部は、命令に基づく動作が完了すると、当該動作に対応する測定結果を示す測定結果情報と、当該動作が完了したことを示す動作完了情報とを、前記記憶部に書き込み、
前記動作制御部は、前記動作完了情報が書き込まれると、前記測定結果情報を取得する、
ことを特徴とする請求項1に記載の測定システム。
When the operation based on the command is completed, the operation execution unit writes measurement result information indicating a measurement result corresponding to the operation and operation completion information indicating that the operation is completed in the storage unit,
The operation control unit acquires the measurement result information when the operation completion information is written.
The measurement system according to claim 1.
前記動作実行部は、命令に基づく動作が完了すると、当該命令が格納されている前記命令格納領域に、当該動作に対応する測定結果を示す測定結果情報と、当該動作が完了したことを示す動作完了情報とを書き込む、
ことを特徴とする請求項1又は2に記載の測定システム。
When the operation based on the instruction is completed, the operation execution unit, in the instruction storage area in which the instruction is stored, the measurement result information indicating the measurement result corresponding to the operation, and the operation indicating that the operation is completed Write completion information and
The measurement system according to claim 1 or 2, wherein
前記動作制御部は、前記測定結果情報を取得した後に、当該測定結果情報が格納されている前記命令格納領域に新たに命令を書き込む、
ことを特徴とする請求項3に記載の測定システム。
The operation control unit writes a new command in the command storage area in which the measurement result information is stored after acquiring the measurement result information.
The measurement system according to claim 3.
前記動作制御部は、前記測定結果情報を取得した場合において、当該測定結果情報が格納されている前記命令格納領域への書き込み対象となる命令が存在しないとき、当該命令格納領域に命令を書き込める状態であることを示す情報を当該命令格納領域に書き込む、
ことを特徴とする請求項4に記載の測定システム。
When the operation control unit acquires the measurement result information, and there is no instruction to be written to the instruction storage area in which the measurement result information is stored, a state in which the instruction can be written to the instruction storage area Write the information indicating that it is in the instruction storage area,
The measurement system according to claim 4.
前記動作制御部は、命令を書き込める状態であることを示す情報、又は前記動作完了情報が格納されている前記命令格納領域に命令を書き込む、
ことを特徴とする請求項3から5のいずれか1項に記載の測定システム。
The operation control unit writes information in the instruction storage area in which the information indicating that the instruction can be written or the operation completion information is stored.
The measurement system according to any one of claims 3 to 5, wherein:
前記動作制御部は、前記測定装置が前記第1動作を完了すると、前記測定装置に、前記第2動作の後に実行される第3動作を実行させるための第3命令を前記第1領域に書き込む、
ことを特徴とする請求項1から6のいずれか1項に記載の測定システム。
When the measurement device completes the first operation, the operation control unit writes a third instruction for causing the measurement device to execute a third operation executed after the second operation in the first area. ,
The measurement system according to any one of claims 1 to 6, wherein:
前記動作制御部は、命令を前記命令格納領域に書き込む場合に、当該命令格納領域に、当該命令の次の命令が格納される前記命令格納領域のアドレスを示すアドレス情報を書き込み、
前記動作実行部は、命令に基づく動作が完了すると、当該命令が格納されている命令格納領域に書き込まれている前記アドレス情報が示す前記命令格納領域を参照し、当該命令の次の命令を特定する、
ことを特徴とする請求項1から7のいずれか1項に記載の測定システム。
When the operation control unit writes an instruction to the instruction storage area, the operation control unit writes address information indicating an address of the instruction storage area in which the instruction next to the instruction is stored in the instruction storage area,
When the operation based on the instruction is completed, the operation execution unit refers to the instruction storage area indicated by the address information written in the instruction storage area in which the instruction is stored, and specifies the instruction next to the instruction To
The measurement system according to claim 1, wherein:
前記動作制御部は、前記測定装置による測定結果に基づいて命令が分岐する場合、分岐後の複数の命令のそれぞれを複数の前記命令格納領域のそれぞれに予め書き込み、当該測定結果を取得した後に、分岐先の命令に対応する前記アドレス情報を、分岐する直前の命令が格納されている前記命令格納領域に書き込む、
ことを特徴とする請求項8に記載の測定システム。
When the instruction branches based on the measurement result by the measurement device, the operation control unit pre-writes each of the plurality of instructions after branching into each of the plurality of instruction storage areas, and obtains the measurement result. Write the address information corresponding to the branch destination instruction to the instruction storage area in which the instruction immediately before branching is stored.
The measurement system according to claim 8.
前記動作制御部は、前記測定装置による測定結果に基づいて命令が分岐する場合、当該測定結果を取得した後に、分岐先の命令を、分岐する直前の命令が格納されている前記命令格納領域に格納されているアドレス情報に対応する前記命令格納領域に書き込む、
ことを特徴とする請求項8に記載の測定システム。
When the instruction branches based on the measurement result by the measurement device, the operation control unit obtains the measurement result, and then the branch destination instruction is stored in the instruction storage area in which the instruction immediately before branching is stored. Write to the instruction storage area corresponding to the stored address information,
The measurement system according to claim 8.
前記記憶部は、前記動作実行部が命令に基づく動作の実行に要する時間と、前記動作制御部が前記命令格納領域に命令を書き込むために要する時間とに基づいて定められた数の命令格納領域を有する、
ことを特徴とする請求項1から10のいずれか1項に記載の測定システム。
The storage unit has a number of instruction storage areas determined based on a time required for the operation execution unit to execute an operation based on an instruction and a time required for the operation control unit to write an instruction in the instruction storage area. Having
The measurement system according to any one of claims 1 to 10, wherein:
三次元測定機を制御するための三次元測定用命令に基づく命令を生成し、当該命令に基づいて前記三次元測定機と異なる測定装置を制御するコンピュータを、
前記測定装置に第1動作を実行させるための第1命令を、前記測定装置が参照可能な記憶部が有する命令格納領域としての第1領域に書き込み、前記測定装置が前記第1動作を完了する前に、前記測定装置に、前記第1動作の次に実行される第2動作を実行させるための第2命令を、前記命令格納領域としての第2領域に書き込む動作制御部、
として機能させることを特徴とする測定プログラム。
A computer that generates a command based on a three-dimensional measurement command for controlling the three-dimensional measuring machine, and controls a measuring device different from the three-dimensional measuring device based on the command,
A first instruction for causing the measurement apparatus to execute the first operation is written in a first area as an instruction storage area of a storage unit that can be referred to by the measurement apparatus, and the measurement apparatus completes the first operation. An operation control unit that writes a second command for causing the measurement apparatus to execute a second operation to be executed next to the first operation in a second area as the instruction storage area;
Measurement program characterized by functioning as
三次元測定機を制御するための三次元測定用命令に基づく命令を生成する制御装置が、前記三次元測定機と異なる測定装置を制御する制御方法であって、
前記測定装置に第1動作を実行させるための第1命令を、前記測定装置が参照可能な記憶部が有する第1領域に書き込む第1書込ステップと、
前記測定装置が前記第1動作を完了する前に、前記測定装置に、前記第1動作の次に実行される第2動作を実行させるための第2命令を、前記記憶部が有する第2領域に書き込む第2書込ステップと、
を有することを特徴とする制御方法。
A control device that generates a command based on a three-dimensional measurement command for controlling a three-dimensional measuring machine is a control method for controlling a measuring device different from the three-dimensional measuring device,
A first writing step of writing a first instruction for causing the measurement apparatus to execute a first operation in a first area of a storage unit that can be referred to by the measurement apparatus;
Before the measurement device completes the first operation, the storage unit has a second area for causing the measurement device to execute a second operation to be executed after the first operation. A second writing step for writing to
A control method characterized by comprising:
JP2016018617A 2016-02-03 2016-02-03 Measurement system, measurement program and control method Pending JP2017138756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016018617A JP2017138756A (en) 2016-02-03 2016-02-03 Measurement system, measurement program and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016018617A JP2017138756A (en) 2016-02-03 2016-02-03 Measurement system, measurement program and control method

Publications (1)

Publication Number Publication Date
JP2017138756A true JP2017138756A (en) 2017-08-10

Family

ID=59566804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016018617A Pending JP2017138756A (en) 2016-02-03 2016-02-03 Measurement system, measurement program and control method

Country Status (1)

Country Link
JP (1) JP2017138756A (en)

Similar Documents

Publication Publication Date Title
US10166673B2 (en) Portable apparatus for controlling robot and method thereof
JP2019053459A (en) Control apparatus and control method
US9952586B2 (en) Inspection program editing environment with simulation status and control continually responsive to selection operations
JP5911933B2 (en) Robot system for setting the robot motion monitoring area
US10603788B2 (en) Robot simulation apparatus
US20180232139A1 (en) Window control method, information processing apparatus, and control method and control program of information processing apparatus
US10761513B2 (en) Information processing device, information processing method, and non-transitory computer-readable recording medium
WO2016157395A1 (en) Numerical control device
JP2018173883A (en) Control device, control program, control system, and control method
US20040181305A1 (en) Programming platform for generating parts programs for machine tools or production machines
US20160298958A1 (en) Inspection program editing environment including real-time feedback related to throughput
US10437229B2 (en) Numerical controller
US20190047146A1 (en) Information processing device, information processing method, and non-transitory computer-readable recording medium
JP2014002654A (en) Nc machine tool control method, control program, and control device
JP6240117B2 (en) Numerical control device having automatic change function of character display width
JP2013206062A (en) Device, method, and program for simulation
JP2020107315A (en) Synchronization control device, synchronization control system, synchronization control method, and simulation device
JP6840585B2 (en) Measurement system, measurement program and control method
JP6915288B2 (en) Image processing system, image processing device, circuit reconstruction method in FPGA (Field Programmable Gate Array), and circuit reconstruction program in FPGA
JP2017138756A (en) Measurement system, measurement program and control method
US10474132B2 (en) Information processing device, information processing method, and recording medium
JP2008052738A (en) Automation system and method for clock time, process and/or machine optimization
JP2020197835A (en) Data collection and setting device for industrial machine
US20190235473A1 (en) Machining simulation display apparatus and machining simulation display method
JP2016091142A (en) System enabling self-control of peripheral equipment of machine tool