JP2002032220A - Method for displaying measurement part program - Google Patents
Method for displaying measurement part programInfo
- Publication number
- JP2002032220A JP2002032220A JP2000213756A JP2000213756A JP2002032220A JP 2002032220 A JP2002032220 A JP 2002032220A JP 2000213756 A JP2000213756 A JP 2000213756A JP 2000213756 A JP2000213756 A JP 2000213756A JP 2002032220 A JP2002032220 A JP 2002032220A
- Authority
- JP
- Japan
- Prior art keywords
- part program
- measurement part
- displaying
- instruction
- display
- 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
Links
- 238000005259 measurement Methods 0.000 title claims abstract description 143
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000007373 indentation Methods 0.000 claims description 34
- 238000006243 chemical reaction Methods 0.000 claims description 21
- 238000011161 development Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 description 11
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 102100035115 Testin Human genes 0.000 description 1
- 101710070533 Testin Proteins 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、被測定物の粗さ、
うねり、真円度、寸法、二次元形状、三次元形状等の表
面性状を測定するための測定パートプログラムの表示方
法に関する。The present invention relates to a method for measuring the roughness of an object to be measured,
The present invention relates to a method for displaying a measurement part program for measuring surface properties such as undulation, roundness, dimensions, two-dimensional shapes, and three-dimensional shapes.
【0002】[0002]
【背景技術】被測定物の表面性状を測定する測定機に
は、手動で測定を行うための手動測定機や、自動で測定
を行える自動測定機が用いられているが、これらの測定
機の測定データ処理や自動測定処理においては、あらか
じめ作成された測定パートプログラムが使用される。2. Description of the Related Art As a measuring device for measuring the surface properties of an object to be measured, a manual measuring device for performing a manual measurement and an automatic measuring device for performing an automatic measurement are used. In the measurement data processing and the automatic measurement processing, a measurement part program created in advance is used.
【0003】この測定パートプログラムの作成方法には
大別して2通りがある。その1つはいわゆるプレイバッ
ク方式と呼ばれるもので、例えば、三次元測定機に実際
に被測定物を載置し、これをジョイスティックを操作し
ながら測定を行うことによって、それらの測定手順を記
憶して測定パートプログラムに変換する。他の方法は、
CAT(Computer Aided Testin
g)システムによって測定パートプログラムを自動生成
する方法である。これは、CAD(Computer
Aided Design)データから被測定物の三次
元モデルを作成し、このモデルに対して自動、あるいは
手動によって測定パートプログラムを生成する。[0003] There are roughly two methods for creating the measurement part program. One of them is a so-called playback method. For example, an object to be measured is actually placed on a three-dimensional measuring machine, and measurement is performed while operating a joystick to store those measurement procedures. To convert to a measurement part program. Another way is
CAT (Computer Aided Testin
g) A method of automatically generating a measurement part program by the system. This is CAD (Computer)
A three-dimensional model of the device under test is created from the Aided Design data, and a measurement part program is automatically or manually generated for the model.
【0004】このようにして作成された測定パートプロ
グラムの編集を行う場合は、この測定パートプログラム
からソリッドモデラによって仮想空間上にモデルを生成
し、このモデルによって、測定パートプログラムを編集
する方法が知られている(特開平10−300457参
照)。In order to edit the measurement part program created in this way, a method is known in which a model is generated in virtual space from the measurement part program by a solid modeler, and the measurement part program is edited using the model. (See JP-A-10-300457).
【0005】[0005]
【発明が解決しようとする課題】ところが、図6に示す
ような測定パートプログラムには記号言語が使用されて
いるため、実際の測定に当たって、このプログラムの内
容を確認したい場合には、測定パートプログラムの記号
の意味や命令の文法を知る必要がある。更に、測定機の
種類毎にこの記号や文法が異なる場合もあり、それらの
学習には多大の労力を必要とした。従って、自動測定機
であっても、その測定パートプログラムを学習して、こ
れに習熟するまでは、その自動測定機を使いこなすのは
難しいという問題点があった。また、測定パートプログ
ラムの内容がわかりにくいことに起因して、被測定物の
測定間違いが生じることがあった。However, since a symbol language is used in the measurement part program as shown in FIG. 6, if it is desired to confirm the contents of this program during actual measurement, the measurement part program You need to know the meaning of the symbol and the grammar of the command. Furthermore, the symbols and grammar may be different for each type of measuring machine, and learning them requires a great deal of labor. Therefore, even with an automatic measuring machine, there is a problem that it is difficult to master the automatic measuring machine until the user learns the measurement part program and masters it. In addition, it is difficult to understand the contents of the measurement part program, which may cause a measurement error of the measured object.
【0006】本発明はこのような問題点を解決するため
になされたもので、測定パートプログラムの記号や文法
に慣れていない場合であってもこの内容を分かり易く表
示する方法を提供することを目的とする。The present invention has been made in order to solve such a problem, and it is an object of the present invention to provide a method of displaying the contents of a measurement part program in a manner that is easy to understand even if the user is not accustomed to the symbols and grammar. Aim.
【0007】[0007]
【課題を解決するための手段】本発明は、前記目的を達
成するために、被測定物の表面性状を測定するための測
定パートプログラムの表示方法において、測定パートプ
ログラムを入力する入力ステップと、前記測定パートプ
ログラムの構文を解析する解析ステップと、前記測定パ
ートプログラムの個々の命令を自然言語の命令に変換す
る変換ステップと、前記解析ステップにおける解析結果
に基づいて、前記自然言語の命令に変換された前記測定
パートプログラムを表示する表示ステップと、を備えた
ことを特徴とする。これによって、測定パートプログラ
ムの内容が自然言語で表示されるので、測定パートプロ
グラムの記号や文法に慣れていなくとも容易に理解でき
るようになる。In order to achieve the above object, the present invention provides a method for displaying a measurement part program for measuring a surface property of an object to be measured, comprising: an input step of inputting a measurement part program; An analysis step of analyzing the syntax of the measurement part program; a conversion step of converting individual instructions of the measurement part program into natural language instructions; and converting the instructions into the natural language instructions based on the analysis result in the analysis step. A display step of displaying the measured part program. As a result, the contents of the measurement part program are displayed in a natural language, so that the user can easily understand the symbols and grammar of the measurement part program even if they are not familiar with them.
【0008】又、この測定パートプログラムの表示方法
において、前記解析ステップは、前記測定パートプログ
ラム内容を展開する展開ステップと、前記展開ステップ
における展開結果においてサブルーチン部分を字下げす
るサブルーチン字下げステップと、を備えることを特徴
とする。これによって、サブルーチンが字下げされて表
示されるので、サブルーチンの入れ子関係が容易に理解
できるようになる。In the method for displaying a measurement part program, the analysis step includes a development step for developing the contents of the measurement part program, a subroutine indentation step for indenting a subroutine part in a development result in the development step, It is characterized by having. As a result, the subroutine is displayed indented, so that the nesting relationship of the subroutines can be easily understood.
【0009】更に、この測定パートプログラムの表示方
法において、前記サブルーチン字下げステップは、2回
目以降に呼び出されたサブルーチン内容を、前記展開結
果から削除する、ことを特徴とする。これによって、同
一サブルーチンが異なる個所で呼び出された場合に、1
回目の呼び出し個所では、サブルーチン内容が展開して
表示され、2回目以降はサブルーチン名称のみの表示と
なるので、自然言語による命令展開を行っても、表示上
での冗長性を排除できる。Further, in this method of displaying a measurement part program, the subroutine indentation step is characterized in that contents of a subroutine called after the second time are deleted from the expansion result. Thus, when the same subroutine is called at a different location, 1
The subroutine contents are expanded and displayed at the call location for the first time, and only the subroutine name is displayed for the second and subsequent times. Therefore, even if the instruction is expanded in a natural language, the redundancy on the display can be eliminated.
【0010】又、この測定パートプログラムの表示方法
において、前記解析ステップは、更に、前記展開結果の
個々の命令が主測定命令か補助命令かを判断し、前記補
助命令と判断された命令は、直前の前記主命令に対して
字下げする補助命令字下げステップを、備えることを特
徴とする。これによって、測定等を中心とした主測定命
令に対して、移動制御や照明制御等の補助命令が区別さ
れ、補助命令は主測定命令に対して字下げして表示され
るので、測定の流れが更に分かり易くなる。In the method of displaying a measurement part program, the analyzing step further determines whether each command of the expanded result is a main measurement command or an auxiliary command, and the command determined as the auxiliary command is: An auxiliary instruction indentation step for indenting the immediately preceding main instruction is provided. As a result, auxiliary commands such as movement control and lighting control are distinguished from the main measurement commands mainly for measurement and the like, and the auxiliary commands are displayed indented with respect to the main measurement commands. Becomes even easier to understand.
【0011】更に、この測定パートプログラムの表示方
法において、前記変換ステップは、前記測定パートプロ
グラムの個々の命令を対応する象徴図形に変換する図形
変換ステップと、前記測定パートプログラムの個々の命
令を対応する文字列に変換する文字列変換ステップと、
を備えることを特徴とする。これによって、測定パート
プログラムの各々の命令は、アイコン等の象徴図形と母
国語による文字列による自然言語による命令に変換して
表示されるため、視認性が更に向上する。Further, in the method of displaying a measurement part program, the conversion step corresponds to a figure conversion step of converting individual instructions of the measurement part program into corresponding symbolic figures, and corresponds to individual instructions of the measurement part program. A character string conversion step of converting the character string to
It is characterized by having. Thereby, since each command of the measurement part program is converted into a command in a natural language including a symbolic figure such as an icon and a character string in a native language and displayed, the visibility is further improved.
【0012】又、この測定パートプログラムの表示方法
において、前記表示ステップは、前記字下げに応じて、
字下げ階層を表示する字下げ階層表示ステップと、前記
図形変換ステップにおいて変換された図形を前記字下げ
階層に応じて表示する図形表示ステップと、前記文字列
変換ステップにおいて変換された文字列を前記字下げ階
層に応じて表示する文字列表示ステップと、を備えるこ
とを特徴とする。これによって、自然言語の命令表示
が、その入れ子構造に従って、字下げ表示されるので、
視認間違いが起こりにくく、更に、多階層の入れ子状態
にあっても目視上の混乱が生じにくい。In the method for displaying a measurement part program, the display step may be performed according to the indentation.
An indentation hierarchy displaying step of displaying an indentation hierarchy, a graphic display step of displaying a graphic converted in the graphic conversion step in accordance with the indentation hierarchy, and a character string converted in the character string conversion step. And displaying a character string in accordance with the indentation hierarchy. This causes the natural language instruction display to be indented according to its nested structure,
Incorrect viewing is unlikely to occur, and visual confusion hardly occurs even in a multi-layer nested state.
【0013】更に、この測定パートプログラムの表示方
法において、前記表示ステップは更に、前記入力ステッ
プに入力された前記測定パートプログラムと、前記自然
言語の命令に変換された前記測定パートプログラムとを
同時に表示する測定パートプログラム表示ステップ、を
備えることを特徴とする。これによって、測定パートプ
ログラムと自然言語の命令に変換された測定パートプロ
グラムが同時に表示されるため、両者の対応付けが容易
になる。Further, in the method of displaying a measurement part program, the display step further includes simultaneously displaying the measurement part program input to the input step and the measurement part program converted into the natural language instruction. And displaying a measurement part program. Thereby, the measurement part program and the measurement part program converted into the instruction of the natural language are displayed at the same time, so that the correspondence between the two is facilitated.
【0014】又、この測定パートプログラムの表示方法
において、前記表示ステップは更に、前記自然言語の命
令に変換されて表示された前記測定パートプログラムの
図形あるいは文字列の表示選択を行う表示選択ステップ
と、前記測定パートプログラム表示ステップで表示され
た前記測定パートプログラムの前記表示選択に対応する
命令を強調表示する選択対応命令表示ステップと、を備
えることを特徴とする。これによって、自然言語の命令
と測定パートプログラムの命令の個々の対応付けが容易
に行える。In the method of displaying a measurement part program, the display step may further include a display selection step of selecting display of a graphic or character string of the measurement part program which is converted into the instruction of the natural language and displayed. And a selection corresponding instruction display step of highlighting an instruction corresponding to the display selection of the measurement part program displayed in the measurement part program display step. This makes it possible to easily associate the instruction of the natural language with the instruction of the measurement part program.
【0015】更に、この測定パートプログラムの表示方
法において、前記表示ステップは更に、前記自然言語の
命令に変換されて表示された前記測定パートプログラム
の図形あるいは文字列の編集選択を行う編集選択ステッ
プと、前記編集選択された自然言語の命令に対応する前
記測定パートプログラムの命令を表示して編集を行う編
集ステップと、を備えることを特徴とする。これによっ
て、自然言語の命令を指定して、これに対応する測定パ
ートプログラムの命令の編集が容易に行えるようにな
る。Further, in the method of displaying a measurement part program, the display step further includes an edit selection step of editing and selecting a graphic or character string of the measurement part program which is converted into the natural language command and displayed. An editing step of displaying and editing an instruction of the measurement part program corresponding to the edited and selected natural language instruction. This makes it easy to specify a natural language command and easily edit the corresponding measurement part program command.
【0016】[0016]
【発明の実施の形態】以下、本発明を用いた好適な実施
の形態について図面を用いて説明する。図1は、本発明
の実施形態にかかる測定パートプログラムの表示方法を
説明するフローチャートである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a flowchart illustrating a method for displaying a measurement part program according to an embodiment of the present invention.
【0017】この図1において、S10において処理を
開始する。S20の入力ステップにおいて、CADシス
テム等で作成された測定パートプログラムを入力する。
入力された測定パートプログラムの各命令行には、S3
0の一連番号付与ステップにおいて、一連の行番号が付
与され、更に、自然言語プログラムを格納する領域が確
保される。この状態では、この自然言語プログラムの格
納領域は空の状態である。In FIG. 1, the process starts at S10. In the input step of S20, a measurement part program created by a CAD system or the like is input.
Each instruction line of the input measurement part program includes S3
In the serial number assigning step of 0, a series of line numbers are assigned, and an area for storing the natural language program is secured. In this state, the storage area of the natural language program is empty.
【0018】次に、S40の展開ステップにおいて、測
定パートプログラム内のメインルーチン(サブルーチン
を呼び出す側の主プログラム)を各命令毎に命令解析
し、その命令を行番号と共に自然言語プログラム領域へ
展開コピーする。図2にその詳細を示したフローチャー
トを示す。まずS40で展開処理を開始し、S41の命
令解析ステップで、解析対象の命令が行番号と共に自然
言語プログラム領域へ、前回コピーされた命令格納領域
の次の領域にコピー(展開コピー)された後に解析され
る。次にS42において、その命令がサブルーチン呼び
出し命令やジャンプ命令などの分岐命令であったか否か
を判断し、分岐命令であった場合は、S43の分岐先探
索ステップにおいて、測定パートプログラム内を探索し
て、呼び出し先やジャンプ先を検出し、この検出先の命
令を対象として、S41の命令解析ステップにおいて命
令解析を継続する。Next, in a development step of S40, a main routine (a main program for calling a subroutine) in the measurement part program is analyzed for each instruction, and the instruction is expanded and copied to a natural language program area together with a line number. I do. FIG. 2 is a flowchart showing the details. First, expansion processing is started in S40, and in the instruction analysis step of S41, after the instruction to be analyzed is copied (expanded copy) to the natural language program area together with the line number in the area next to the instruction storage area copied last time. Is parsed. Next, in S42, it is determined whether or not the instruction is a branch instruction such as a subroutine call instruction or a jump instruction. If the instruction is a branch instruction, a search is made in the measurement part program in a branch destination search step in S43. , The call destination and the jump destination are detected, and the instruction analysis is continued in the instruction analysis step of S41 for the instruction of the detected destination.
【0019】S42において、分岐命令ではなかったと
判断された場合は、次にサブルーチンからの戻り命令か
否かをS44において判断する。ここで、戻り命令であ
ると判断されると、S45の戻り先探索ステップにおい
て、戻り先が探索され、検出される。具体的には、自然
言語プログラム領域にコピーされた各命令をサブルーチ
ン呼び出し命令までさかのぼってその一連番号Nを取得
する。次に一連番号がN+1である測定パートプログラ
ムの命令を探索すれば、その命令が次に解析すべき対象
である。図2においては、このようにして戻り先が探索
された後、S41の命令解析ステップへ戻って、命令解
析を継続する。If it is determined in S42 that the instruction is not a branch instruction, it is determined in S44 whether the instruction is a return instruction from a subroutine. If it is determined that the instruction is a return instruction, a return destination is searched for and detected in a return destination search step of S45. Specifically, the sequence number N is acquired by tracing each instruction copied to the natural language program area to the subroutine call instruction. Next, if an instruction of the measurement part program whose serial number is N + 1 is searched, the instruction is a target to be analyzed next. In FIG. 2, after the return destination is searched in this way, the process returns to the instruction analysis step of S41, and the instruction analysis is continued.
【0020】S44において、戻り命令ではないと判断
された場合は、次に、メインルーチンを終了する終了命
令であるか否かをS46において判断する。終了命令で
ない場合は、S41の命令解析ステップへ戻って、以下
同様に命令解析を継続する。終了命令であった場合は、
S47において、展開処理を終了する。この様にして、
自然言語プログラム領域には、呼び出しやジャンプの結
果、展開された一連の測定パートプログラムの命令列が
作成される。If it is determined in S44 that the received instruction is not a return instruction, it is determined in S46 whether the received instruction is an end instruction for ending the main routine. If the instruction is not the end instruction, the process returns to the instruction analysis step of S41, and the instruction analysis is continued in the same manner. If it is an end instruction,
In S47, the expansion processing ends. In this way,
In the natural language program area, as a result of a call or a jump, an expanded sequence of measurement part program instructions is created.
【0021】次に、S50のサブルーチン字下げステッ
プにおいて、自然言語プログラム領域の測定パートプロ
グラムの命令列について先頭から入れ子構造が分析され
る。この分析の結果、サブルーチン内の命令は、メイン
ルーチンの命令に対して、1段階の字下げ処理が行われ
る。但し、同一のサブルーチンが2回目以降において呼
び出されている個所のサブルーチン内容は、自然言語プ
ログラム領域の測定パートプログラムの命令列から削除
されて、サブルーチン名称を含むサブルーチン呼び出し
命令のみが残される。サブルーチン内で更にサブルーチ
ンを呼び出している場合にも同様に、字下げを行うが、
この場合には、メインルーチンに対して、2段階の字下
げが行われる。但し、ジャンプ命令のジャンプ先以降の
命令に対しては、字下げ処理は行わない。Next, in the subroutine indentation step of S50, the nested structure of the instruction sequence of the measurement part program in the natural language program area is analyzed from the top. As a result of this analysis, the instructions in the subroutine are subjected to one-step indentation with respect to the instructions in the main routine. However, the contents of the subroutine where the same subroutine is called the second and subsequent times are deleted from the instruction sequence of the measurement part program in the natural language program area, and only the subroutine call instruction including the subroutine name is left. Indentation is similarly performed when a subroutine is further called within the subroutine.
In this case, two-step indentation is performed for the main routine. However, indentation processing is not performed on instructions following the jump destination of the jump instruction.
【0022】次に、S60の補助命令字下げステップに
おいて、自然言語プログラム領域に展開された測定パー
トプログラムの個々の命令が点測定や線測定などの主測
定命令か、あるいは移動制御や照明制御などの補助命令
かを判断し、その結果、補助命令であると判断された命
令は直前の主測定命令に対して更に字下げが行われる。
このようにして、S40の展開ステップからS60の補
助命令字下げステップまでの各ステップによって解析ス
テップが構成される。Next, in the auxiliary command indentation step of S60, individual instructions of the measurement part program developed in the natural language program area are main measurement instructions such as point measurement and line measurement, or movement control and lighting control. The command determined to be the auxiliary command is further indented from the immediately preceding main measurement command.
In this way, the analysis step is constituted by the steps from the expansion step of S40 to the indentation step of the auxiliary command of S60.
【0023】次に、S70の図形変換ステップでは、自
然言語プログラム領域に展開された測定パートプログラ
ムの個々の命令を、対応する象徴図形(いわゆるアイコ
ン)に変換する。更に、S80の文字列変換ステップに
おいては、前記の個々の命令を、対応する文字列に変換
する。これらのアイコンと文字列は、展開された測定パ
ートプログラムの個々の命令行に追加して格納される。
このようにして、自然言語プログラム領域に展開された
測定パートプログラムの命令列は、S90からS110
のステップにおいて、図3の自然言語プログラム表示ウ
インドウ1に示すようにCRT画面へ表示される。Next, in the figure conversion step of S70, each instruction of the measurement part program developed in the natural language program area is converted into a corresponding symbol figure (so-called icon). Further, in the character string conversion step of S80, the individual commands are converted into corresponding character strings. These icons and character strings are stored in addition to individual instruction lines of the expanded measurement part program.
In this way, the instruction sequence of the measurement part program developed in the natural language program area is from S90 to S110.
Is displayed on the CRT screen as shown in the natural language program display window 1 in FIG.
【0024】まず、S90の字下げ階層表示ステップに
おいては、プログラム表示の骨格である字下げの入れ子
構造が複数の縦線で表示される。図3の右側ウインドウ
においては、この字下げの構造は3本の縦線で表示され
ており、一番左側の縦線は、第1段階のレベルであり、
メインルーチンの命令は、この一番左側の線に結合して
表示する。その右側の真ん中の縦線は、第2段階のレベ
ルであり、サブルーチンを構成する命令の内、主測定命
令は、この真ん中の縦線に結合して表示する。一番右側
の縦線には、更にもう1段階字下げされる命令を結合
し、一例としては、サブルーチン中の補助命令がここに
結合される。First, in the indentation hierarchy display step of S90, a nested structure of indentation, which is a skeleton of program display, is displayed by a plurality of vertical lines. In the right window of FIG. 3, this indentation structure is indicated by three vertical lines, and the leftmost vertical line is the first level,
The instructions of the main routine are displayed by being connected to the leftmost line. The middle vertical line on the right side is the level of the second stage, and among the instructions constituting the subroutine, the main measurement instruction is displayed in combination with the middle vertical line. The rightmost vertical line is connected to an instruction to be indented one more step. For example, an auxiliary instruction in a subroutine is connected here.
【0025】次に、S100の図形表示ステップでは、
S70の図形変換ステップにおいて変換されたアイコン
が、その字下げレベルに応じて前記の縦線に結合するよ
うに表示される。更に、S110の文字列表示ステップ
において、S80の文字列変換ステップにおいて変換さ
れた文字列が、前記アイコンに従う形で表示される。こ
のようにして、測定パートプログラムは、自然言語の形
で表示される。Next, in the graphic display step of S100,
The icon converted in the graphic conversion step of S70 is displayed so as to be connected to the vertical line according to the indentation level. Further, in the character string display step of S110, the character string converted in the character string conversion step of S80 is displayed in a form according to the icon. In this way, the measurement part program is displayed in the form of a natural language.
【0026】これに対して、S120の測定パートプロ
グラム表示ステップでは、S20の入力ステップで入力
されたプログラム(自然言語に変換する前のプログラ
ム)を、図3の測定パートプログラム表示ウインドウ2
に表示する。但し、必要がない場合は、測定パートプロ
グラムを表示せず、測定パートプログラム表示ウインド
ウ2も表示させない選択が可能である。On the other hand, in the measurement part program display step of S120, the program (program before being converted into natural language) input in the input step of S20 is converted into the measurement part program display window 2 of FIG.
To be displayed. However, when it is not necessary, it is possible to select not to display the measurement part program and not to display the measurement part program display window 2.
【0027】S130の表示選択ステップは、自然言語
プログラム(図3右側ウインドウ)に対して、いずれか
1つ、あるいは複数の命令の選択を行う。具体的には、
マウス等により選択したい命令をクリックして選択す
る。この結果、選択された自然言語プログラムの命令
は、強調表示される。この時、測定パートプログラムと
自然言語プログラムの両者が同時に表示されている場合
には、S140の選択対応命令表示ステップにおいて、
選択された自然言語プログラムに対応する測定パートプ
ログラムが強調表示される。具体的には、自然言語プロ
グラム表示ウインドウ1において表示選択された命令の
一連番号と一致する一連番号を持つ測定パートプログラ
ムを検索し、その結果、検索された命令を、測定パート
プログラム表示ウインドウ2中において、強調表示を行
う。図3あるいは図4はこのようにして強調表示された
状態を示している。In the display selection step of S130, one or a plurality of instructions are selected for the natural language program (right window in FIG. 3). In particular,
Click and select the instruction you want to select with the mouse or the like. As a result, the selected natural language program instruction is highlighted. At this time, if both the measurement part program and the natural language program are displayed at the same time, in the selection corresponding instruction display step of S140,
The measurement part program corresponding to the selected natural language program is highlighted. Specifically, a search is made for a measurement part program having a serial number that matches the serial number of the instruction selected for display in the natural language program display window 1, and as a result, the searched instruction is displayed in the measurement part program display window 2. , Highlighting is performed. FIG. 3 or FIG. 4 shows the state highlighted in this manner.
【0028】S150の編集選択ステップにおいては、
編集を行いたい自然言語プログラムの命令をS130の
表示選択ステップと同様に選択する。この時、S130
とS150の選択方法の相違は、S130の表示選択ス
テップにおいては、マウスのワンクリックによって選択
するが、S150の編集選択ステップにおいては、マウ
スのダブルクリックによって選択する。これによる選択
結果は、図5の右側ウインドウに示すように強調表示さ
れる。In the edit selection step of S150,
The command of the natural language program to be edited is selected in the same manner as in the display selection step of S130. At this time, S130
The difference between the selection methods of S150 and S150 is that the selection is made by a single click of the mouse in the display selection step of S130, but the selection is made by a double click of the mouse in the edit selection step of S150. The result of the selection is highlighted as shown in the right window of FIG.
【0029】S150の編集選択ステップにおいて自然
言語プログラムの命令が選択されると、S160の編集
ステップにおいて、編集ウインドウ3が表示される。
(図5参照)この編集ウインドウ3には、編集選択され
た命令の各種引数(命令の実行条件)が表示されるの
で、この編集ウインドウ3内において必要な引数の編集
を行い、「了解」ボタンをマウスでクリックすることに
よって、測定パートプログラムの各種引数の編集を行う
ことができる。When an instruction of the natural language program is selected in the edit selection step of S150, the edit window 3 is displayed in the edit step of S160.
(See FIG. 5) In the editing window 3, various arguments (instruction execution conditions) of the instruction selected and edited are displayed. Therefore, necessary arguments are edited in the editing window 3, and an "OK" button is clicked. By clicking on with a mouse, various arguments of the measurement part program can be edited.
【0030】具体的には、自然言語プログラム表示ウイ
ンドウ1において編集選択された命令の一連番号と一致
する一連番号を持つ測定パートプログラムを検索し、そ
の結果、検索された命令の引数を編集ウインドウ3に表
示する。編集ウインドウ3は、引数の種類に応じて、各
種の表示形式で表示され、それらは選択タグで選択可能
である。図5の編集ウインドウ3中においては、「位
置」、「エッジ」、「走査」、「検出方法」、「フィル
タ」によって選択可能となっている。この編集ウインド
ウ3中において、引数が修正された場合は、対応する測
定パートプログラムの命令の引数が書き換えられる。More specifically, a search is made for a measurement part program having a serial number that matches the serial number of the instruction selected and edited in the natural language program display window 1. As a result, the arguments of the searched instruction are edited in the edit window 3. To be displayed. The edit window 3 is displayed in various display formats according to the type of the argument, and these can be selected by a selection tag. In the editing window 3 in FIG. 5, selection is possible by "position", "edge", "scanning", "detection method", and "filter". When the argument is corrected in the editing window 3, the argument of the instruction of the corresponding measurement part program is rewritten.
【0031】S150における編集選択の結果、対応す
る測定パートプログラムウインドウ中の命令も、S14
0の選択対応命令表示ステップと同様に強調表示され
る。尚、この実施例においては、測定パートプログラム
に付随する各種の引数は、自然言語プログラム表示にお
いては表示していないが、必要に応じて自然言語プログ
ラム中に引数を表示させる選択も可能である。As a result of the editing selection in S150, the instruction in the corresponding measurement part program window is also changed in S14.
Highlighting is performed in the same manner as in the selection corresponding instruction display step of 0. In this embodiment, various arguments accompanying the measurement part program are not displayed in the display of the natural language program, but it is also possible to select to display the arguments in the natural language program as needed.
【0032】S170において、これらの一連の自然言
語プログラム表示の処理を終了するか否かの判断を行
い、処理を終了しない場合は、S120からS160の
各ステップの処理を繰り返す。処理を終了する場合は、
自然言語プログラム表示ウインドウ1と測定パートプロ
グラム表示ウインドウ2を消去し、更に、S160の編
集ステップにおいて引数が書き換えられている場合は、
更新された測定パートプログラムから、S30において
付与された一連番号を削除し、記憶領域へ格納されて記
憶される。その後、S180において全ての処理を終了
する。In S170, it is determined whether or not to end the series of processes for displaying a natural language program. If the process is not to be ended, the processes in steps S120 to S160 are repeated. To end the process,
When the natural language program display window 1 and the measurement part program display window 2 are deleted, and the arguments are rewritten in the editing step of S160,
The serial number assigned in S30 is deleted from the updated measurement part program, and stored and stored in the storage area. After that, in S180, all the processing ends.
【0033】以上、本発明について好適な実施例を挙げ
て説明したが、本発明は、この実施例に限られるもので
はなく、本発明の要旨を逸脱しない範囲での変更が可能
である。たとえば、S40の展開ステップは、測定パー
トプログラムを実行順序に応じて全て展開し、その後
で、S50のサブルーチン字下げ処理からS110の文
字列表示処理までを行っているが、これに代えて、測定
パートプログラムを展開しつつ、1命令毎にこれらのサ
ブルーチン字下げ処理から文字列表示処理までを実行す
ることもできる。このようにすれば、自然言語変換に応
じて結果が逐一表示されるため、オペレータにとって変
換状況の把握が容易になる。Although the present invention has been described with reference to the preferred embodiments, the present invention is not limited to these embodiments, and can be modified without departing from the spirit of the present invention. For example, in the expansion step of S40, all the measurement part programs are expanded according to the execution order, and thereafter, from the subroutine indentation processing of S50 to the character string display processing of S110, the measurement is executed instead. From the subroutine indentation processing to the character string display processing can be executed for each instruction while developing the part program. By doing so, the results are displayed one by one according to the natural language conversion, so that the operator can easily grasp the conversion status.
【0034】又、S70の図形変換ステップにおいて、
各種図形(アイコン)を別途記憶しておき、オペレータ
がこの記憶されたアイコンを別途、自由に編集できるよ
うにしても良い。更に、この図形変換においては、図形
自体を自然言語プログラムに埋め込むことに代えて、別
途登録したアイコン番号を埋め込み、S100の図形表
示ステップにおいては、アイコン番号から、実際のアイ
コンイメージを検索して、これによって自然言語プログ
ラム表示を行っても良い。このようにすれば、測定機等
の機種に依存しない統一的な形のアイコン表示が行える
ので、オペレータにとって、測定パートプログラムの内
容が更に分かり易くなる。In the graphic conversion step of S70,
Various figures (icons) may be stored separately, and the stored icons may be separately and freely edited by the operator. Further, in this graphic conversion, instead of embedding the graphic itself in the natural language program, an icon number registered separately is embedded, and in the graphic display step of S100, an actual icon image is searched from the icon number, Thereby, a natural language program display may be performed. In this way, a uniform icon display independent of the model of the measuring instrument or the like can be displayed, so that the operator can more easily understand the contents of the measurement part program.
【0035】又、S80の文字列変換ステップにおい
て、各種文字列を別途記憶しておき、オペレータがこの
記憶された文字列を別途、自由に編集できるようにして
も良い。更に、この文字列変換においては、文字列自体
を自然言語プログラムに埋め込むことに代えて、別途登
録した文字列番号を埋め込み、S110の文字列表示ス
テップにおいては、文字列番号から、実際の文字列を検
索して、これによって自然言語プログラム表示を行って
も良い。このようにすれば、母国語などの任意言語によ
る自然言語表示が行えるので、オペレータにとって、測
定パートプログラムの内容が更に分かり易くなる。Further, in the character string conversion step of S80, various character strings may be separately stored, and the stored character strings may be separately and freely edited by the operator. Further, in this character string conversion, instead of embedding the character string itself in the natural language program, a character string number registered separately is embedded, and in the character string display step of S110, the actual character string May be searched, and thereby a natural language program display may be performed. In this way, natural language display in an arbitrary language such as the native language can be performed, so that the operator can more easily understand the contents of the measurement part program.
【0036】又、S50のサブルーチン字下げステップ
において、同一のサブルーチンが2回目以降において呼
び出されている個所のサブルーチン内容を、自然言語プ
ログラム領域の測定パートプログラムの命令列から削除
しないこととしても良い。In the subroutine indentation step of S50, the contents of the subroutine where the same subroutine is called from the second time onward may not be deleted from the instruction sequence of the measurement part program in the natural language program area.
【0037】更に、自然言語プログラム表示において、
字下げされる命令を従える命令の先頭行に、圧縮/伸張
マークを設け、このマークのマウスクリックによって、
圧縮表示と伸張表示が交互に切替えて表示されるように
しても良い。例えば、図3の自然言語プログラム表示に
おいて、字下げ構造を示す縦線を分断する形で四角形に
囲まれた負号が表示されているが、これは伸張表示が選
択されており、以下に従属する字下げ命令が画面上に展
開して表示されていることを示す。この四角形に囲まれ
た負号をマウスクリックすると、四角形に囲まれた正号
表示となり、以下に従属する字下げ命令は画面上では表
示が省略され、全体の表示量が圧縮される。このように
すれば、例えばサブルーチンの内容について、伸張/圧
縮表示が自由に切換えられるので、オペレータにとっ
て、プログラム全体の理解が容易となる。Further, in displaying a natural language program,
A compression / expansion mark is provided at the first line of the instruction that follows the instruction to be indented.
The compression display and the expansion display may be alternately displayed. For example, in the display of the natural language program of FIG. 3, a negative sign surrounded by a square is displayed so as to divide a vertical line indicating an indentation structure. Indicates that the indentation command to be displayed is expanded and displayed on the screen. When the negative sign surrounded by the square is clicked with the mouse, a sign is displayed surrounded by the square, and the indentation instruction depending on the following is omitted on the screen, and the entire display amount is compressed. In this way, for example, the contents of the subroutine can be freely switched between expanded / compressed display, so that the operator can easily understand the entire program.
【0038】又、S40の展開ステップにおいて、測定
パートプログラム構造のエラーチェックを行っても良
い。例えば、メインルーチン展開中に戻り命令が検出さ
れたり、サブルーチン展開中に終了命令が検出されたり
した場合には、エラー表示を行って、処理を中止、ある
いは中断するようにしても良い。更に、プログラムの入
れ子構造を、字下げによって区別し、それを縦線によっ
て表示を行うようにしているが、これに代えて、色別表
示しても良い。例えば、第1段階の命令は黒色で表示
し、第2段階(最初のサブルーチンの内容)の命令は青
色で表示するなどとしても良い。このようにすれば、更
に識別が容易になる他、入れ子構造が多段階となった場
合に、字下げ量が大きくなって、大きな表示領域が必要
になることを防止できる。In the developing step of S40, an error check of the measurement part program structure may be performed. For example, when a return instruction is detected during main routine development or an end instruction is detected during subroutine development, an error message may be displayed and the processing may be stopped or interrupted. Further, the nested structure of the program is distinguished by indentation and is displayed by a vertical line. Alternatively, the nested structure may be displayed by color. For example, the first stage instruction may be displayed in black, and the second stage (contents of the first subroutine) may be displayed in blue. This makes it easier to discriminate, and prevents the need for a large display area due to a large indentation when the nested structure has multiple stages.
【0039】又、自然言語プログラム表示ウインドウ1
と測定パートプログラム表示ウインドウ2は必ずしも同
一の表示装置に表示する必要はなく、異なる表示装置に
個別に表示しても良い。更に、測定パートプログラムの
各命令を、対応する自然言語プログラムの末尾、あるい
は先頭に併せて表示することで、測定パートプログラム
表示ウインドウ2の表示を省略してもよい。これらは、
使用する表示装置の大きさによって、適宜、最適な表示
形態を選択すればよい。A natural language program display window 1
And the measurement part program display window 2 need not necessarily be displayed on the same display device, but may be displayed individually on different display devices. Further, the display of the measurement part program display window 2 may be omitted by displaying each instruction of the measurement part program together with the end or the head of the corresponding natural language program. They are,
An optimum display mode may be appropriately selected depending on the size of the display device to be used.
【0040】[0040]
【発明の効果】本発明によれば、測定パートプログラム
の記号や文法に慣れていない場合であっても、アイコン
と自然言語による表示が行えるので、測定パートプログ
ラムの内容が容易に理解できるようになり、被測定物の
測定間違いを防止することができる。According to the present invention, icons and natural language can be displayed even if the user is not familiar with the symbols and grammar of the measurement part program, so that the contents of the measurement part program can be easily understood. In other words, it is possible to prevent a measurement error of the object to be measured.
【図1】本発明の実施形態に係るフローチャートであ
る。FIG. 1 is a flowchart according to an embodiment of the present invention.
【図2】本発明の実施形態に係る部分フローチャートで
ある。FIG. 2 is a partial flowchart according to the embodiment of the present invention.
【図3】本発明の実施形態に係る測定パートプログラム
の表示画面である。FIG. 3 is a display screen of a measurement part program according to the embodiment of the present invention.
【図4】本発明の実施形態に係る測定パートプログラム
の他の表示画面である。FIG. 4 is another display screen of the measurement part program according to the embodiment of the present invention.
【図5】本発明の実施形態に係る測定パートプログラム
の更に他の表示画面である。FIG. 5 is still another display screen of the measurement part program according to the embodiment of the present invention.
【図6】従来技術に係る測定パートプログラムの表示画
面である。FIG. 6 is a display screen of a measurement part program according to the related art.
1 自然言語プログラム表示ウインドウ 2 測定パートプログラム表示ウインドウ 3 編集ウインドウ 1 Natural language program display window 2 Measurement part program display window 3 Edit window
Claims (9)
定パートプログラムの表示方法において、測定パートプ
ログラムを入力する入力ステップと、前記測定パートプ
ログラムの構文を解析する解析ステップと、前記測定パ
ートプログラムの個々の命令を自然言語の命令に変換す
る変換ステップと、前記解析ステップにおける解析結果
に基づいて、前記自然言語の命令に変換された前記測定
パートプログラムを表示する表示ステップと、を備えた
ことを特徴とする測定パートプログラムの表示方法。1. A method for displaying a measurement part program for measuring a surface property of an object to be measured, comprising: an input step of inputting a measurement part program; an analysis step of analyzing syntax of the measurement part program; A conversion step of converting individual instructions of the program into natural language instructions, and a display step of displaying the measurement part program converted into the natural language instructions based on the analysis result in the analysis step. A method for displaying a measurement part program, characterized in that:
の表示方法において、前記解析ステップは、前記測定パ
ートプログラム内容を展開する展開ステップと、前記展
開ステップにおける展開結果においてサブルーチン部分
を字下げするサブルーチン字下げステップと、を備える
ことを特徴とする測定パートプログラムの表示方法。2. The method for displaying a measurement part program according to claim 1, wherein the analysis step is a development step for developing the contents of the measurement part program, and a subroutine for indenting a subroutine part in a development result in the development step. A method for displaying a measurement part program, comprising: an indentation step.
の表示方法において、前記サブルーチン字下げステップ
は、2回目以降に呼び出されたサブルーチン内容を、前
記展開結果から削除する、ことを特徴とする測定パート
プログラムの表示方法。3. The method for displaying a measurement part program according to claim 2, wherein the subroutine indentation step deletes the contents of a subroutine called after the first time from the expansion result. How to display the part program.
の測定パートプログラムの表示方法において、前記解析
ステップは、更に、前記展開結果の個々の命令が主測定
命令か補助命令かを判断し、前記補助命令と判断された
命令は、直前の前記主命令に対して字下げする補助命令
字下げステップを、備えることを特徴とする測定パート
プログラムの表示方法。4. The method for displaying a measurement part program according to claim 1, wherein the analyzing step further determines whether each instruction of the expansion result is a main measurement instruction or an auxiliary instruction. A method for displaying a measurement part program, further comprising an auxiliary command indentation step of indenting the instruction determined as the auxiliary instruction with respect to the immediately preceding main instruction.
の測定パートプログラムの表示方法において、前記変換
ステップは、前記測定パートプログラムの個々の命令を
対応する象徴図形に変換する図形変換ステップと、前記
測定パートプログラムの個々の命令を対応する文字列に
変換する文字列変換ステップと、を備えることを特徴と
する測定パートプログラムの表示方法。5. The method for displaying a measurement part program according to claim 1, wherein the conversion step converts the individual instructions of the measurement part program into corresponding symbolic figures. And a character string conversion step of converting individual instructions of the measurement part program into corresponding character strings.
の測定パートプログラムの表示方法において、前記表示
ステップは、前記字下げに応じて、字下げ階層を表示す
る字下げ階層表示ステップと、前記図形変換ステップに
おいて変換された図形を前記字下げ階層に応じて表示す
る図形表示ステップと、前記文字列変換ステップにおい
て変換された文字列を前記字下げ階層に応じて表示する
文字列表示ステップと、を備えることを特徴とする測定
パートプログラムの表示方法。6. The method for displaying a measurement part program according to claim 1, wherein said displaying step includes displaying an indentation hierarchy according to said indentation. A graphic display step of displaying the graphic converted in the graphic conversion step according to the indentation hierarchy; and a character string display step of displaying the character string converted in the character string conversion step in accordance with the indentation hierarchy And a display method for a measurement part program.
の測定パートプログラムの表示方法において、前記表示
ステップは更に、前記入力ステップに入力された前記測
定パートプログラムと、前記自然言語の命令に変換され
た前記測定パートプログラムとを同時に表示する測定パ
ートプログラム表示ステップ、を備えることを特徴とす
る測定パートプログラムの表示方法。7. The method for displaying a measurement part program according to claim 1, wherein the display step further comprises: the measurement part program input to the input step; and a command in the natural language. Displaying the measurement part program converted into the measurement part program at the same time.
の表示方法において、前記表示ステップは更に、前記自
然言語の命令に変換されて表示された前記測定パートプ
ログラムの図形あるいは文字列の表示選択を行う表示選
択ステップと、前記測定パートプログラム表示ステップ
で表示された前記測定パートプログラムの前記表示選択
に対応する命令を強調表示する選択対応命令表示ステッ
プと、を備えることを特徴とする測定パートプログラム
の表示方法。8. The method for displaying a measurement part program according to claim 7, wherein the display step further includes a step of selecting display of a graphic or character string of the measurement part program, which is displayed after being converted into the instruction of the natural language. Performing a display selection step, and a selection corresponding instruction display step of highlighting an instruction corresponding to the display selection of the measurement part program displayed in the measurement part program display step. Display method.
の測定パートプログラムの表示方法において、前記表示
ステップは更に、前記自然言語の命令に変換されて表示
された前記測定パートプログラムの図形あるいは文字列
の編集選択を行う編集選択ステップと、前記編集選択さ
れた自然言語の命令に対応する前記測定パートプログラ
ムの命令を表示して編集を行う編集ステップと、を備え
ることを特徴とする測定パートプログラムの表示方法。9. The method for displaying a measurement part program according to claim 1, wherein the display step further comprises the step of converting the graphic of the measurement part program into a natural language instruction and displaying the instruction. Alternatively, the measurement comprises an edit selection step of performing an edit selection of a character string, and an edit step of displaying and editing an instruction of the measurement part program corresponding to the instruction of the edited and selected natural language. How to display the part program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000213756A JP2002032220A (en) | 2000-07-14 | 2000-07-14 | Method for displaying measurement part program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000213756A JP2002032220A (en) | 2000-07-14 | 2000-07-14 | Method for displaying measurement part program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2002032220A true JP2002032220A (en) | 2002-01-31 |
Family
ID=18709456
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000213756A Pending JP2002032220A (en) | 2000-07-14 | 2000-07-14 | Method for displaying measurement part program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2002032220A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013117953A (en) * | 2011-11-15 | 2013-06-13 | Mitsutoyo Corp | Machine vision system program editing environment including synchronized user interface features |
| JP2014219415A (en) * | 2013-05-09 | 2014-11-20 | 株式会社ミツトヨ | System, gui and method for editing step and repeat operation instruction in machine vision inspection system |
-
2000
- 2000-07-14 JP JP2000213756A patent/JP2002032220A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013117953A (en) * | 2011-11-15 | 2013-06-13 | Mitsutoyo Corp | Machine vision system program editing environment including synchronized user interface features |
| JP2014219415A (en) * | 2013-05-09 | 2014-11-20 | 株式会社ミツトヨ | System, gui and method for editing step and repeat operation instruction in machine vision inspection system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4885717A (en) | System for graphically representing operation of object-oriented programs | |
| US5297241A (en) | Automated re-layout with dimensional associativity | |
| US7054793B2 (en) | Device and method for generating a virtual model of an installation | |
| EP0785510A1 (en) | Program debugging system for debugging a program having a graphical user interface | |
| US20010012409A1 (en) | Method of displaying magnified and reduced areas and apparatus thereof | |
| US5721959A (en) | Information processing apparatus for pattern editing using logic relationship representative patterns | |
| US20020109734A1 (en) | GUI processing system for performing an operation of an application which controls testing equipment | |
| EP1341081A1 (en) | Sequence analysis method and sequence analysis apparatus | |
| EP1650619A1 (en) | Sequence program editing apparatus | |
| JP2002182914A (en) | Screen transition display device, screen transition display method, and storage medium | |
| US6243858B1 (en) | Program construction assisting system | |
| US5907851A (en) | Editing nested documents by appointing a portion for insertion with an alternative substitute | |
| TWI844033B (en) | Computer system, dimension measurement method, and storage medium | |
| JP2002032220A (en) | Method for displaying measurement part program | |
| JP2011170697A (en) | Software structure analyzing device | |
| JP3967885B2 (en) | Image processing device | |
| JP2001202402A (en) | Drawing creation device and drawing change display method | |
| JPH1125149A (en) | Recording medium, drawing creation method, and drawing creation device | |
| JP2009087144A (en) | Development support device and development support program | |
| JP2006209179A (en) | Model difference detection tool | |
| JP2001051771A (en) | System and method for processing picture | |
| JPH07141137A (en) | Menu selection method | |
| JP4180099B2 (en) | Recording medium recording sequence analysis program, sequence analysis apparatus, and sequence analysis method | |
| JP2006268764A (en) | Model edit system, model edit apparatus, model edit method and model edit program | |
| JP2008003722A (en) | Analytical result data processor, processing method, program, and recording medium |