JPH0519824A - Numerical controller and work attitude detection device - Google Patents

Numerical controller and work attitude detection device

Info

Publication number
JPH0519824A
JPH0519824A JP16832691A JP16832691A JPH0519824A JP H0519824 A JPH0519824 A JP H0519824A JP 16832691 A JP16832691 A JP 16832691A JP 16832691 A JP16832691 A JP 16832691A JP H0519824 A JPH0519824 A JP H0519824A
Authority
JP
Japan
Prior art keywords
axis
movement amount
work
inclination
data
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
JP16832691A
Other languages
Japanese (ja)
Inventor
Akinobu Niwa
章暢 丹羽
Mitsutaka Sumita
光隆 住田
Masahiro Hirasawa
雅弘 平沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP16832691A priority Critical patent/JPH0519824A/en
Publication of JPH0519824A publication Critical patent/JPH0519824A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To eliminate the need to strictly adjust the attitude of a work mounted on the table of a machine tool. CONSTITUTION:A horizontal inclination correcting means 13a which corrects the horizontal inclination of the work mounted on the table of the machine tool and a vertical inclination correcting means 13b which corrects the vertical inclination of the work are provided. Movement quantity data of an X axis, a Y axis, and a Z axis which are calculated by a movement quantity calculating means 11 are corrected by the horizontal inclination correcting means 13a and vertical inclination correcting means 13b. A axis control means 14 corrects a servomotor for the X axis, Y, axis, and Z axis according to the corrected movement quantity data. Consequently, the need to strictly adjust the attitude of the work mounted on the table of the machine tool is eliminated. Further, the work can be machined with high precision by a machining program which does not consider the inclination of the work.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、数値制御装置および
ワーク姿勢検出装置に関し、さらに詳しく言えば、工作
機械のテーブルに載置したワークの水平方向および垂直
方向の傾斜を補正して各制御軸を駆動する数値制御装置
と、工作機械のテーブルに載置したワークの姿勢を検知
してそれを図形表示するワーク姿勢検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical control device and a work posture detecting device, and more specifically, to the control axes by correcting horizontal and vertical inclinations of a work placed on a table of a machine tool. The present invention relates to a numerical control device for driving a workpiece and a work posture detecting device for detecting the posture of a work placed on a table of a machine tool and displaying it graphically.

【0002】[0002]

【従来の技術】図10は、従来の数値制御放電加工機
(以下、NC放電加工機という)の一例のハードウェア
構成図である。従来のNC放電加工機に備えられた数値
制御装置(以下、NC装置という)(60)は、中央処
理装置(以下、CPUという)(60a)と、加工プロ
グラムや加工状況データなどを格納するメモリ(60
b)と、各制御軸(X軸、Y軸、Z軸)の作動を制御す
る軸制御装置(60c)と、データ入力・修正キーおよ
びメニュー選択・画面切換キーを持つキーボード(60
d)と、加工経路、電極座標などの各種情報を表示する
表示装置(60e)と、CPU(60a)、メモリ(6
0b)、軸制御装置(60c)、キーボード(60d)
および表示装置(60e)を相互に接続するバス(60
f)とを備えている。
2. Description of the Related Art FIG. 10 is a hardware configuration diagram of an example of a conventional numerically controlled electric discharge machine (hereinafter referred to as NC electric discharge machine). A numerical control device (hereinafter referred to as NC device) (60) provided in a conventional NC electric discharge machine includes a central processing unit (hereinafter referred to as CPU) (60a) and a memory for storing a machining program, machining status data, and the like. (60
b), an axis control device (60c) for controlling the operation of each control axis (X axis, Y axis, Z axis), and a keyboard (60 having a data input / correction key and a menu selection / screen switching key).
d), a display device (60e) for displaying various information such as a machining path and electrode coordinates, a CPU (60a), a memory (6)
0b), axis control device (60c), keyboard (60d)
And a bus (60) for connecting the display device (60e) to each other.
f) and.

【0003】CPU(60a)は、加工プログラムにし
たがって軸制御装置(60c)に制御信号を送出する。
軸制御装置(60c)は、その制御信号を受けて各制御
軸を駆動するサーボモータ(71)にそれぞれ制御信号
を送出する。各制御軸用のサーボモータ(71)は、そ
の制御信号に応じて作動し、テーブル(72)をX軸お
よびY軸方向に移動させ、また電極(73)をZ軸方向
に移動させる。テーブル(72)および電極(73)の
位置は、位置検出器(74)によって検出され、軸制御
装置(60c)にフィードバックされる。
The CPU (60a) sends a control signal to the axis control device (60c) according to a machining program.
The axis control device (60c) receives the control signal and sends the control signal to the servo motor (71) that drives each control axis. The servo motor (71) for each control axis operates according to the control signal, moves the table (72) in the X-axis and Y-axis directions, and moves the electrode (73) in the Z-axis direction. The positions of the table (72) and the electrode (73) are detected by the position detector (74) and fed back to the axis controller (60c).

【0004】なお、X軸、Y軸、Z軸は直交座標系をな
しており、X軸およびY軸は水平方向に設定され、テー
ブル(72)を水平方向に移動させる。Z軸は、垂直方
向に設定され、電極(73)を垂直方向に移動させる。
The X-axis, Y-axis and Z-axis form an orthogonal coordinate system, the X-axis and the Y-axis are set in the horizontal direction, and the table (72) is moved in the horizontal direction. The Z axis is set in the vertical direction and moves the electrode (73) in the vertical direction.

【0005】図11は、上記従来のNC放電加工機の機
能ブロック図である。NC装置(60)は、移動量算出
手段(61)と、傾斜角度入力手段(62)と、傾斜補
正手段(63)と、軸制御手段(64)と、移動量検出
手段(65)と、座標値演算手段(66)と、表示手段
(67)と、移動指令入力手段(68)とを備えてい
る。
FIG. 11 is a functional block diagram of the conventional NC electric discharge machine. The NC device (60) includes a movement amount calculation means (61), an inclination angle input means (62), an inclination correction means (63), an axis control means (64), a movement amount detection means (65). Coordinate value calculation means (66), display means (67), and movement command input means (68) are provided.

【0006】移動量算出手段(61)は、加工プログラ
ムPから読み取った移動指令あるいは移動指令入力手段
(68)から入力された移動指令に基づいてX軸、Y
軸、Z軸の移動量を算出し、得られた移動量データを傾
斜補正手段(63)および座標値演算手段(66)に送
出する。この移動量データの算出および送出は、CPU
(60a)がメモリ(60b)に格納された制御プログ
ラムにしたがって行なう。
The movement amount calculation means (61) is based on the movement command read from the machining program P or the movement command input from the movement command input means (68), and the X-axis and Y-axis.
The amount of movement of the axes and the Z-axis is calculated, and the obtained amount of movement data is sent to the inclination correction means (63) and the coordinate value calculation means (66). This movement amount data is calculated and sent by the CPU.
(60a) is performed according to the control program stored in the memory (60b).

【0007】傾斜角度入力手段(62)は、テーブル
(72)上に載置したワークの傾斜角度データを傾斜補
正手段(63)に入力する。ここで「ワークの傾斜角
度」は、ワークの所定の基準面がX−Y平面(水平面)
内でX軸またはY軸に対してなす角度を意味する。この
傾斜角度データは、後述するように、オペレータがダイ
ヤル式の計測器を用いて基準面の位置を計測し、得られ
た位置データから傾斜角度を算出してキーボード(60
d)から入力する。入力された傾斜角度データは、メモ
リ(60b)に格納され、CPU(60a)が制御プロ
グラムにしたがって傾斜補正を行なう際に読み出され
る。
The inclination angle input means (62) inputs the inclination angle data of the work placed on the table (72) to the inclination correction means (63). Here, in the "workpiece inclination angle", the predetermined reference plane of the work is the XY plane (horizontal plane).
It means the angle formed with respect to the X-axis or the Y-axis. As will be described later, this tilt angle data is obtained by the operator measuring the position of the reference plane using a dial type measuring instrument, calculating the tilt angle from the obtained position data, and using the keyboard (60
Input from d). The input tilt angle data is stored in the memory (60b) and read when the CPU (60a) performs tilt correction according to the control program.

【0008】傾斜補正手段(63)は、テーブル(7
2)上に載置したワークのX−Y平面内での傾斜に応じ
てX軸、Y軸の移動量データを補正し、補正したX軸、
Y軸の移動量データおよび補正していないZ軸の移動量
データを軸制御手段(64)に送出する。移動量データ
の補正は、予め設定されたX−Y−Z座標系を原点の周
りにワークの傾斜角度だけX−Y平面内で回転すること
によって行なう。この補正は、制御プログラムにしたが
ってCPU(60a)が行なう。
The inclination correcting means (63) is provided with a table (7
2) The movement amount data of the X axis and the Y axis are corrected according to the inclination of the workpiece placed on the XY plane, and the corrected X axis,
The Y-axis movement amount data and the uncorrected Z-axis movement amount data are sent to the axis control means (64). The movement amount data is corrected by rotating a preset X-Y-Z coordinate system around the origin in the X-Y plane by the inclination angle of the work. This correction is performed by the CPU (60a) according to the control program.

【0009】軸制御手段(64)は、傾斜補正手段(6
3)から送出されたX軸、Y軸、Z軸の移動量データに
基づいて、X軸、Y軸、Z軸を駆動するサーボモータ
(71)にそれぞれ制御信号を送出する。各軸用のサー
ボモータ(71)は、その制御信号に応じて作動し、テ
ーブル(72)および電極(73)を移動させる。軸制
御手段(64)は、軸制御装置(60c)により構成さ
れる。
The axis control means (64) is a tilt correction means (6).
Based on the X-axis, Y-axis, and Z-axis movement amount data sent from 3), control signals are sent to the servo motors (71) that drive the X-axis, Y-axis, and Z-axis, respectively. The servo motor (71) for each axis operates according to the control signal to move the table (72) and the electrode (73). The axis control means (64) is composed of an axis control device (60c).

【0010】移動量検出手段(65)は、テーブル(7
2)および電極(73)の移動量を検出し、検出した移
動量データを軸制御手段(64)にフィードバックす
る。また、その移動量データを座標値演算手段(66)
に送出する。移動量検出手段(65)は、位置検出器
(74)によって構成され、具体的にはエンコーダやレ
ゾルバなどから構成される。
The movement amount detecting means (65) is provided with a table (7
2) and the movement amount of the electrode (73) are detected, and the detected movement amount data is fed back to the axis control means (64). Further, the movement amount data is used as coordinate value calculation means (66).
Send to. The movement amount detecting means (65) is composed of a position detector (74), and specifically, an encoder, a resolver and the like.

【0011】座標値演算手段(66)は、移動量検出手
段(65)から送出されるX軸、Y軸、Z軸の移動量デ
ータ(実際の移動量を示す)に基づいて、各時刻におけ
るX軸、Y軸、Z軸の座標値を演算する。この演算によ
り得られるX軸、Y軸、Z軸の座標値データは、ワーク
傾斜補正を行なった後のものである。座標値演算手段
(66)はまた、移動量算出手段(61)から送出され
るX軸、Y軸、Z軸の移動量データ(制御信号の移動量
を示す)に基づいて、各時刻におけるX軸、Y軸、Z軸
の座標値を演算する。この演算により得られるX軸、Y
軸、Z軸の座標値データは、ワーク傾斜補正を行なう前
のものである。したがって、座標値演算手段(66)で
は、補正処理前の座標値データおよび補正処理後の座標
値データの双方が得られる。こうして得られた各軸の座
標値データは、表示手段(67)に送出される。なお、
座標値データの演算および送出は、制御プログラムにし
たがってCPU(60a)が行なう。
The coordinate value calculating means (66) at each time is based on the X-axis, Y-axis, and Z-axis movement amount data (indicating the actual movement amount) sent from the movement amount detecting means (65). The coordinate values of the X axis, Y axis, and Z axis are calculated. The X-axis, Y-axis, and Z-axis coordinate value data obtained by this calculation is after the work inclination correction. The coordinate value calculation means (66) also calculates the X at each time based on the X-axis, Y-axis, and Z-axis movement amount data (indicating the movement amount of the control signal) sent from the movement amount calculation means (61). The coordinate values of the axes, Y-axis and Z-axis are calculated. X axis, Y obtained by this calculation
The coordinate value data of the axes and Z-axis is before the work inclination correction. Therefore, the coordinate value calculation means (66) can obtain both the coordinate value data before the correction process and the coordinate value data after the correction process. The coordinate value data of each axis thus obtained is sent to the display means (67). In addition,
The CPU (60a) performs the calculation and transmission of the coordinate value data according to the control program.

【0012】表示手段(67)は、座標値演算手段(6
6)から送出されるX軸、Y軸、Z軸の座標値データに
基づいて、ワーク傾斜補正の処理前または処理後の各軸
の座標値を表示する。表示手段(67)は、CRTなど
の表示装置(60e)から構成される。
The display means (67) is a coordinate value calculation means (6
Based on the X-axis, Y-axis, and Z-axis coordinate value data sent from 6), the coordinate values of each axis before or after the work inclination correction process are displayed. The display means (67) is composed of a display device (60e) such as a CRT.

【0013】移動指令入力手段(68)は、オペレータ
が手動で移動指令を入力する際に使用する。入力された
移動指令は、移動量算出手段(61)に送出される。移
動指令入力手段(68)は、キーボード(60d)から
構成される。
The movement command input means (68) is used when the operator manually inputs a movement command. The input movement command is sent to the movement amount calculation means (61). The movement command input means (68) is composed of a keyboard (60d).

【0014】上記従来のNC装置(60)の傾斜補正手
段(63)は、次のように動作する。傾斜補正手段(6
3)は、移動量算出手段(61)から受け取ったX軸、
Y軸、Z軸の移動量データを補正する際に、まずメモリ
(60b)を読み出しに行き、ワークの水平方向の傾斜
角度が0に設定されているか否かを判定する。そして、
傾斜角度が0である場合は、補正処理をせずに、受け取
ったX軸、Y軸、Z軸の移動量データをそのまま軸制御
手段(64)に出力する。傾斜角度が0でない場合は、
その傾斜角度に応じてX軸、Y軸の移動量データの補正
を行なう。そして、補正したX軸およびY軸の移動量デ
ータと補正していないZ軸の移動量データを軸制御手段
(64)に出力する。
The inclination correcting means (63) of the conventional NC device (60) operates as follows. Inclination correction means (6
3) is the X-axis received from the movement amount calculation means (61),
When correcting the movement amount data of the Y axis and the Z axis, first, the memory (60b) is read, and it is determined whether or not the inclination angle of the workpiece in the horizontal direction is set to zero. And
When the tilt angle is 0, the received movement amount data of the X-axis, Y-axis, and Z-axis is directly output to the axis control means (64) without performing the correction process. If the tilt angle is not 0,
The X-axis and Y-axis movement amount data is corrected according to the inclination angle. Then, the corrected X-axis and Y-axis movement amount data and the uncorrected Z-axis movement amount data are output to the axis control means (64).

【0015】次に、図12に基づいて、従来のNC放電
加工機においてテーブルに載置したワークの姿勢を検出
する方法を説明する。図12の従来のNC放電加工機の
NC装置(80)は、CPU(80a)、メモリ(80
b)、軸制御装置(80c)、キーボード(80d)、
表示装置(80e)、バス(80f)を備えている。こ
れらの要素の機能は、図10のNC装置(60)の各要
素の機能と同じである。
Next, with reference to FIG. 12, a method of detecting the posture of the work placed on the table in the conventional NC electric discharge machine will be described. The NC device (80) of the conventional NC electric discharge machine shown in FIG. 12 includes a CPU (80a) and a memory (80).
b), axis control device (80c), keyboard (80d),
The display device (80e) and the bus (80f) are provided. The functions of these elements are the same as the functions of each element of the NC device (60) in FIG. 10.

【0016】X軸駆動用のサーボモータ(91a)は、
軸制御装置(80c)から送出されるX軸制御信号に応
じて、X軸駆動回路(95a)を介して駆動される。Y
軸駆動用のサーボモータ(91b)は、軸制御装置(8
0c)から送出されるY軸制御信号に応じて、Y軸駆動
回路(95b)を介して駆動される。両サーボモータ
(91a)(91b)により、テーブル(92)は水平
方向に移動する。図示していない電極は、図示していな
いZ軸駆動用のサーボモータにより垂直方向に移動され
る。なお、X軸、Y軸、Z軸は、図10のNC放電加工
機の各軸と同じように設定してある。
The servo motor (91a) for driving the X axis is
It is driven via the X-axis drive circuit (95a) according to the X-axis control signal sent from the axis control device (80c). Y
The servo motor (91b) for driving the axis is used for the axis control device (8
0c), the Y-axis drive circuit (95b) drives the Y-axis control signal. The table (92) is moved in the horizontal direction by both the servo motors (91a) (91b). Electrodes (not shown) are moved in the vertical direction by a servo motor (not shown) for driving the Z-axis. The X axis, the Y axis, and the Z axis are set in the same manner as the axes of the NC electric discharge machine shown in FIG.

【0017】図12のNC放電加工機において、テーブ
ル(92)上に載置されたワーク(W)の基準面(S)
の傾斜状況を検出する場合、まず基準面(S)の一端の
近傍にA点を設定し、基準面(S)の他端の近傍にB点
を設定する。次に、ダイヤル式の計測器(100)をテ
ーブル(92)の近傍に固定し、その接触子を基準面
(S)のA点に接触させてダイヤルの目盛を読み取る。
In the NC electric discharge machine of FIG. 12, the reference plane (S) of the work (W) placed on the table (92).
When detecting the inclination state of No. 1, first, a point A is set near one end of the reference surface (S), and a point B is set near the other end of the reference surface (S). Next, the dial type measuring instrument (100) is fixed near the table (92), and its contact is brought into contact with the point A of the reference surface (S) to read the dial scale.

【0018】続いて、キーボード(80d)を操作して
移動指令をNC装置(80)に入力し、テーブル(9
2)をX軸方向に少し移動させる。こうして、計測器
(100)の接触子がA点の隣の点で基準面(S)に接
触するようにし、その点で再びダイヤルの目盛を読み取
る。以後、同じ動作を繰り返し、A点からB点までの複
数の点で計測器(100)と基準面(S)との距離を計
測することによって、基準面(S)がX軸に対してどの
程度傾斜しているかを検出する。
Then, the keyboard (80d) is operated to input a movement command to the NC device (80), and the table (9
2) Move a little in the X-axis direction. In this way, the contact of the measuring instrument (100) is brought into contact with the reference surface (S) at a point next to the point A, and the dial scale is read again at that point. After that, the same operation is repeated, and by measuring the distance between the measuring instrument (100) and the reference plane (S) at a plurality of points from the A point to the B point, the reference plane (S) can be measured with respect to the X axis. Detects whether or not it is inclined.

【0019】以上のようにして基準面(S)の傾斜状況
が判明すると、計測器(100)の接触子をいったん基
準面(S)から離し、その傾斜状況に応じてワーク
(W)の向きを変更する。そして、再度、上記と同様の
動作を行ない、基準面(S)の傾斜状況を検出する。そ
の後、必要に応じて同様の動作を繰り返し、基準面
(S)が最適な傾斜状況となるようにする。
When the inclination of the reference surface (S) is determined as described above, the contact of the measuring instrument (100) is once separated from the reference surface (S), and the orientation of the workpiece (W) is changed according to the inclination. To change. Then, the same operation as described above is performed again to detect the inclination state of the reference surface (S). After that, the same operation is repeated as necessary so that the reference surface (S) is in the optimum tilt state.

【0020】[0020]

【発明が解決しようとする課題】図10および図11に
示した従来のNC装置(60)では、水平方向の(二次
元的な)傾斜の補正のみが可能であり、テーブル(7
2)と治具とによって生ずるワーク(W)の垂直方向の
傾斜については対処することができない。このため、ワ
ーク(W)に垂直方向の傾斜が生じないように手作業で
ワーク(W)の位置決めを行なう必要があり、その結
果、ワーク位置決め作業に熟練を要するだけでなく長時
間を要する問題点がある。また、垂直方向の傾斜に起因
する誤差を許容して加工を行なうので、高い加工精度が
得られない問題点もある。これらの問題点を解消するに
は、ワーク(W)の垂直方向の傾斜を加工プログラムに
よって補正することが考えられる。しかし、そうすると
加工プログラムが複雑になる問題点が生じる。
In the conventional NC device (60) shown in FIGS. 10 and 11, only the horizontal (two-dimensional) tilt correction is possible, and the table (7
The vertical inclination of the work (W) caused by 2) and the jig cannot be dealt with. Therefore, it is necessary to manually position the work (W) so that the work (W) is not tilted in the vertical direction, and as a result, not only skill but also a long time is required for the work positioning work. There is a point. Further, since the processing is performed while allowing an error due to the inclination in the vertical direction, there is a problem that high processing accuracy cannot be obtained. In order to solve these problems, it is conceivable to correct the vertical inclination of the work (W) by a machining program. However, this causes a problem that the machining program becomes complicated.

【0021】また、図12に示した方法でワーク(W)
の基準面(S)の傾斜状況を検出する場合、オペレータ
が、テーブル(92)の移動・停止を繰り返しながら計
測器(100)のダイヤルの目盛を読み取って基準面
(S)の傾斜状況を判断しなければならないため、作業
が煩雑であるだけでなく判断が不正確となる問題点があ
る。
Further, the work (W) is manufactured by the method shown in FIG.
When detecting the inclination state of the reference surface (S), the operator determines the inclination state of the reference surface (S) by reading the scale of the dial of the measuring instrument (100) while repeatedly moving and stopping the table (92). Therefore, not only the work is complicated but also the judgment is inaccurate.

【0022】そこで、この発明の目的は、工作機械のテ
ーブルに載置したワークに水平方向および垂直方向の傾
斜が生じないようにワークの厳密な姿勢調整を行なう必
要がなく、しかも、ワークの傾斜を考慮していない加工
プログラムによって高精度の加工を行なうことができる
NC装置を提供することにある。この発明の他の目的
は、工作機械のテーブルに載置したワークの姿勢を容易
かつ正確に検出することができるワーク姿勢検出装置を
提供することにある。
Therefore, an object of the present invention is that it is not necessary to strictly adjust the posture of the work so that the work placed on the table of the machine tool is not tilted in the horizontal direction and the vertical direction. An object of the present invention is to provide an NC device that can perform high-precision machining with a machining program that does not take into consideration. Another object of the present invention is to provide a work posture detecting device capable of easily and accurately detecting the posture of a work placed on a table of a machine tool.

【0023】[0023]

【課題を解決するための手段】この発明のNC装置は、
移動指令に応じて各制御軸の移動量を算出する移動量算
出手段と、前記移動量算出手段により算出された各制御
軸の移動量データを、工作機械のテーブルに載置したワ
ークの水平方向の傾斜に応じて補正する水平傾斜補正手
段と、前記移動量算出手段により算出された各制御軸の
移動量データを、工作機械のテーブルに載置したワーク
の垂直方向の傾斜に応じて補正する垂直傾斜補正手段
と、前記水平傾斜補正手段および垂直傾斜補正手段によ
り補正された移動量データに基づいて前記各制御軸を制
御する軸制御手段とを具備することを特徴とする。
The NC device of the present invention comprises:
A movement amount calculation means for calculating the movement amount of each control axis in accordance with the movement command, and the movement amount data of each control axis calculated by the movement amount calculation means, in the horizontal direction of the workpiece placed on the table of the machine tool. Horizontal inclination correcting means for correcting the inclination of the workpiece and the movement amount data of each control axis calculated by the movement amount calculating means are corrected according to the vertical inclination of the workpiece placed on the table of the machine tool. It is characterized by comprising vertical tilt correction means and axis control means for controlling each of the control axes based on the movement amount data corrected by the horizontal tilt correction means and the vertical tilt correction means.

【0024】この発明のNC装置は、さらに、ワークの
水平方向および垂直方向の傾斜に応じて補正された各制
御軸の移動量データを表示する表示手段を設けるのが好
ましい。
It is preferable that the NC device of the present invention further comprises display means for displaying the movement amount data of each control axis which is corrected according to the inclination of the workpiece in the horizontal and vertical directions.

【0025】この発明のワーク姿勢検出装置は、工作機
械のテーブルに載置したワークの基準面の位置の検知方
法を指示する検知情報を入力する検知情報入力手段と、
前記検知情報入力手段により入力された検知情報にした
がって工作機械の各制御軸を制御して前記ワークの基準
面の位置を複数点で検知する検知手段と、前記検知手段
により得られた複数点の位置データに基づいて図形デー
タを演算する演算手段と、前記演算手段により得られた
図形データに基づいて前記ワークの基準面の姿勢を図形
表示する表示手段とを具備することを特徴とする。
The work posture detecting apparatus of the present invention comprises detection information input means for inputting detection information for instructing a method of detecting the position of the reference plane of the work placed on the table of the machine tool.
According to the detection information input by the detection information input means, each control axis of the machine tool is controlled to detect the position of the reference plane of the workpiece at a plurality of points, and a plurality of points obtained by the detection means. It is characterized by further comprising: a calculating means for calculating the graphic data based on the position data; and a display means for displaying the posture of the reference plane of the work as a graphic based on the graphic data obtained by the calculating means.

【0026】[0026]

【作用】この発明のNC装置は、工作機械のテーブルに
載置したワークの水平方向の傾斜に応じて移動量データ
を補正する水平傾斜補正手段の他に、そのワークの垂直
方向の傾斜に応じて移動量データを補正する垂直傾斜補
正手段を有しているので、そのワークに水平方向のみな
らず垂直方向の傾斜があっても、それらの傾斜を補正し
た移動量データを得ることができる。したがって、前記
ワークに水平方向や垂直方向の傾斜が生じないように厳
密な姿勢調整を行なう必要がない。また、ワークの傾斜
を考慮していない加工プログラムによって高精度の加工
を行なうことができる。
According to the NC device of the present invention, in addition to the horizontal inclination correcting means for correcting the movement amount data in accordance with the horizontal inclination of the workpiece placed on the table of the machine tool, the NC apparatus also responds to the vertical inclination of the workpiece. Since the vertical inclination correcting means for correcting the movement amount data is provided, even if the workpiece has an inclination not only in the horizontal direction but also in the vertical direction, the movement amount data in which those inclinations are corrected can be obtained. Therefore, it is not necessary to perform strict posture adjustment so that the work is not inclined in the horizontal direction or the vertical direction. Further, it is possible to perform high-precision machining by a machining program that does not consider the inclination of the work.

【0027】この発明のワーク姿勢検出装置は、工作機
械の各制御軸を制御することにより、工作機械のテーブ
ルに載置したワークの基準面の位置を複数点で検知し、
得られた複数点の位置データに基づいてワークの基準面
の姿勢を図形表示する。このため、ワークの姿勢を容易
かつ正確に検出することができる。
The work posture detecting device of the present invention detects the position of the reference plane of the work placed on the table of the machine tool at a plurality of points by controlling each control axis of the machine tool.
The posture of the reference plane of the work is graphically displayed based on the obtained position data of a plurality of points. Therefore, the posture of the work can be detected easily and accurately.

【0028】[0028]

【実施例】【Example】

(NC装置の構成)以下、この発明のNC装置の一実施
例を添付図面に基づいて説明する。図1は、この発明の
NC装置の一実施例を備えたNC放電加工機の機能ブロ
ック図である。
(Structure of NC device) An embodiment of the NC device of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a functional block diagram of an NC electric discharge machine equipped with an embodiment of the NC device of the present invention.

【0029】この発明のNC装置(10)は、移動量算
出手段(11)と、傾斜角度入力手段(12)と、水平
傾斜補正手段(13a)および垂直傾斜補正手段(13
b)からなる傾斜補正手段(13)と、軸制御手段(1
4)と、移動量検出手段(15)と、座標値演算手段
(16)と、表示手段(17)と、移動指令入力手段
(18)と、移動量評価手段(19)とを備えている。
The NC device (10) of the present invention comprises a movement amount calculating means (11), a tilt angle input means (12), a horizontal tilt correcting means (13a) and a vertical tilt correcting means (13).
b) the inclination correction means (13) and the axis control means (1
4), a movement amount detection means (15), a coordinate value calculation means (16), a display means (17), a movement command input means (18), and a movement amount evaluation means (19). .

【0030】この発明のNC装置(10)のハードウェ
ア構成は、図10に示した従来のNC装置(60)のそ
れと同じである。また、テーブル(72)および電極
(73)に設定されたX−Y−Z座標系も、図10に示
した従来のNC装置(60)のそれと同じである。
The hardware configuration of the NC device (10) of the present invention is the same as that of the conventional NC device (60) shown in FIG. The XYZ coordinate system set on the table (72) and the electrode (73) is also the same as that of the conventional NC device (60) shown in FIG.

【0031】移動量算出手段(11)は、加工プログラ
ムPから読み取った移動指令あるいは移動指令入力手段
(18)から入力された移動指令に基づいてX軸、Y
軸、Z軸の移動量を算出し、得られた移動量データを水
平傾斜補正手段(13a)に送出する。
The movement amount calculation means (11) uses the movement command read from the machining program P or the movement command input from the movement command input means (18) to determine the X-axis and Y-axis.
The amount of movement of the axes and the Z-axis is calculated, and the obtained amount of movement data is sent to the horizontal inclination correcting means (13a).

【0032】傾斜角度入力手段(12)は、テーブル
(72)上に載置したワークの水平方向の傾斜角度デー
タを水平傾斜補正手段(13a)に入力し、また、その
ワークの垂直方向の傾斜角度データを垂直傾斜補正手段
(13b)に入力する。入力された水平方向および垂直
方向の傾斜角度データは、図示しないメモリに格納され
る。
The tilt angle input means (12) inputs the horizontal tilt angle data of the work placed on the table (72) to the horizontal tilt correction means (13a), and the work tilts in the vertical direction. The angle data is input to the vertical inclination correction means (13b). The input inclination angle data in the horizontal and vertical directions is stored in a memory (not shown).

【0033】ここで、「ワークの水平方向の傾斜角度」
は、ワークの垂直方向の基準面がX−Y平面内でX軸ま
たはY軸に対してなす角度を意味する。「ワークの垂直
方向の傾斜角度」は、ワークの水平方向の基準面がX−
Z平面内でX軸あるいはZ軸に対してなす角度、または
Y−Z平面内でY軸あるいはZ軸に対してなす角度を意
味する。
Here, "the inclination angle of the work in the horizontal direction"
Means the angle formed by the vertical reference plane of the workpiece with respect to the X axis or the Y axis in the XY plane. "The vertical angle of inclination of the work" means that the reference plane in the horizontal direction of the work is X-
It means an angle formed with respect to the X axis or the Z axis in the Z plane, or an angle formed with respect to the Y axis or the Z axis in the YZ plane.

【0034】水平傾斜補正手段(13a)は、テーブル
(72)上に載置したワークの水平方向の傾斜に応じて
X軸、Y軸の移動量データを補正し、補正したX軸、Y
軸の移動量データおよび補正していないZ軸の移動量デ
ータを垂直傾斜補正手段(13b)に送出する。この補
正は、NC装置(10)において予め設定されたX−Y
−Z座標系を原点の周りに水平方向の傾斜角度だけX−
Y平面内で回転することによって行なう。
The horizontal inclination correcting means (13a) corrects the X-axis and Y-axis movement amount data in accordance with the horizontal inclination of the workpiece placed on the table (72), and the corrected X-axis and Y-axis are corrected.
The axis movement amount data and the uncorrected Z axis movement amount data are sent to the vertical inclination correction means (13b). This correction is based on the XY preset in the NC device (10).
-Z axis system around the origin by horizontal tilt angle X-
It is performed by rotating in the Y plane.

【0035】垂直傾斜補正手段(13b)は、テーブル
(72)上に載置したワークの垂直方向の傾斜に応じ
て、水平傾斜補正手段(13a)から送出されたX軸、
Y軸、Z軸の移動量データを補正し、補正したX軸、Y
軸、Z軸の移動量データを軸制御手段(14)、座標値
演算手段(16)および移動量評価手段(19)に送出
する。この補正は、NC装置(10)において予め設定
されたX−Y−Z座標系を原点の周りに垂直方向の傾斜
角度だけX−Z平面内あるいはY−Z平面内で回転する
ことによって行なう。
The vertical inclination correcting means (13b) is an X-axis sent from the horizontal inclination correcting means (13a) according to the vertical inclination of the workpiece placed on the table (72).
Corrected movement data of Y-axis and Z-axis, corrected X-axis, Y
The movement amount data of the axes and the Z-axis are sent to the axis control means (14), the coordinate value calculation means (16) and the movement amount evaluation means (19). This correction is performed by rotating a preset XYZ coordinate system in the NC device (10) around the origin in the XZ plane or the YZ plane by an inclination angle in the vertical direction.

【0036】軸制御手段(14)は、垂直傾斜補正手段
(13b)から送出されるX軸、Y軸、Z軸の移動量デ
ータに基づいてX軸、Y軸、Z軸用のサーボモータ(7
1)にそれぞれ制御信号を送出する。各軸用のサーボモ
ータ(71)は、その制御信号に応じて作動し、X軸ま
たはY軸方向にテーブル(72)を移動させ、Z軸方向
に電極(73)を移動させる。
The axis control means (14) uses X-axis, Y-axis, and Z-axis servomotors (based on the X-axis, Y-axis, and Z-axis movement amount data sent from the vertical inclination correction means (13b). 7
Control signals are sent to 1). The servo motor (71) for each axis operates according to the control signal, moves the table (72) in the X-axis or Y-axis direction, and moves the electrode (73) in the Z-axis direction.

【0037】移動量検出手段(15)は、テーブル(7
2)および電極(73)の移動量を検出し、検出した移
動量データを軸制御手段(14)にフィードバックす
る。また、その移動量データを座標値演算手段(16)
に送出する。
The moving amount detecting means (15) is provided with a table (7
2) and the movement amount of the electrode (73) are detected, and the detected movement amount data is fed back to the axis control means (14). Also, the movement amount data is used as coordinate value calculation means (16).
Send to.

【0038】座標値演算手段(16)は、移動量検出手
段(15)から送出されるX軸、Y軸、Z軸の移動量デ
ータに基づいて、各時刻におけるX軸、Y軸、Z軸の座
標値を演算する。この演算により得られるX軸、Y軸、
Z軸の座標値データは、ワーク傾斜補正を行なった後の
ものである。座標値演算手段(16)はまた、垂直傾斜
補正手段(13b)から送出されるX軸、Y軸、Z軸の
移動量データに基づいて、各時刻におけるX軸、Y軸、
Z軸の座標値を演算する。この演算により得られるX
軸、Y軸、Z軸の座標値データは、ワーク傾斜補正を行
なった後のものであるが、座標値演算手段(16)は、
これらの補正後のX軸、Y軸、Z軸の座標値データにつ
いて水平傾斜補正および垂直傾斜補正を解除し、補正前
の移動量データを算出する。
The coordinate value calculation means (16) is based on the movement amount data of the X-axis, Y-axis, and Z-axis sent from the movement amount detection means (15), and the X-axis, Y-axis, and Z-axis at each time. Calculate the coordinate value of. X-axis, Y-axis obtained by this calculation,
The Z-axis coordinate value data is after the work inclination correction. The coordinate value calculation means (16) also uses the X-axis, Y-axis, and Z-axis movement amount data sent from the vertical inclination correction means (13b) to determine the X-axis, Y-axis, and
Calculate the Z-axis coordinate value. X obtained by this calculation
The coordinate value data of the axes, the Y-axis, and the Z-axis are those after the work inclination correction, but the coordinate value calculation means (16)
The horizontal tilt correction and the vertical tilt correction are canceled for the corrected X-axis, Y-axis, and Z-axis coordinate value data, and the movement amount data before correction is calculated.

【0039】したがって、座標値演算手段(16)で
は、補正処理前の座標値データおよび補正処理後の座標
値データの双方を得ることができる。こうして得られた
各軸の座標値データは、表示手段(17)および移動量
評価手段(19)に送出される。
Therefore, the coordinate value calculation means (16) can obtain both the coordinate value data before the correction process and the coordinate value data after the correction process. The coordinate value data of each axis thus obtained is sent to the display means (17) and the movement amount evaluation means (19).

【0040】表示手段(17)は、座標値演算手段(1
6)から送出される補正処理前および補正処理後のX
軸、Y軸、Z軸の座標値データに基づいて、各時刻にお
ける座標値を表示する。また、移動量評価手段(19)
から送出されるデータに基づき、テーブル(72)およ
び電極(73)の実際の移動量と移動指令により指令さ
れた移動量との差が所定範囲にあるか否かを表示する。
The display means (17) is a coordinate value calculation means (1
X before and after correction processing sent from 6)
The coordinate value at each time is displayed based on the coordinate value data of the axis, the Y axis, and the Z axis. Also, a movement amount evaluation means (19)
On the basis of the data sent from the device, whether or not the difference between the actual movement amount of the table (72) and the electrode (73) and the movement amount instructed by the movement command is within a predetermined range is displayed.

【0041】移動指令入力手段(18)は、オペレータ
が手動で移動指令を入力する際に使用する。入力された
移動指令は、移動量算出手段(11)に送出される。
The movement command input means (18) is used when the operator manually inputs a movement command. The input movement command is sent to the movement amount calculation means (11).

【0042】移動量評価手段(19)は、座標値演算手
段(16)で得られる補正前の移動量データ(移動指令
の移動量)に基づいて、移動量検出手段(15)から送
出される移動量データ(実際の移動量)を評価し、両者
の差が所定範囲内にない場合はエラー情報を表示手段
(17)に送出する。このエラー情報を受けて、表示手
段(17)は「エラー」を表示し、オペレータにその旨
を告知する。
The movement amount evaluation means (19) is sent from the movement amount detection means (15) based on the movement amount data before correction (movement amount of movement command) obtained by the coordinate value calculation means (16). The movement amount data (actual movement amount) is evaluated, and if the difference between the two is not within the predetermined range, error information is sent to the display means (17). In response to this error information, the display means (17) displays "error" and notifies the operator to that effect.

【0043】(NC装置の動作)次に、以上の構成を持
つNC装置(10)の動作を図2〜図4に基づいて説明
する。テーブル(72)に載置されたワーク(W)は、
図5および図6に示すように、「水平方向傾斜角度」す
なわち垂直方向の基準面(S1)がX−Y平面内でX軸
に対してなす角度をθ、「垂直方向傾斜角度」すなわち
水平方向の基準面(S2)がX−Z平面内でX軸に対し
てなす角度をφとする。
(Operation of NC Device) Next, the operation of the NC device (10) having the above configuration will be described with reference to FIGS. The work (W) placed on the table (72) is
As shown in FIGS. 5 and 6, the “horizontal tilt angle”, that is, the angle formed by the vertical reference plane (S1) with respect to the X axis in the XY plane is θ, and the “vertical tilt angle”, that is, the horizontal direction. The angle formed by the reference plane (S2) in the direction with respect to the X axis in the XZ plane is φ.

【0044】水平方向傾斜角度θおよび垂直方向傾斜角
度φは、オペレータが予め計測し、例えばキーボードよ
り入力する。入力された傾斜角度データは、メモリに格
納される。
The horizontal tilt angle θ and the vertical tilt angle φ are preliminarily measured by an operator and input from, for example, a keyboard. The input tilt angle data is stored in the memory.

【0045】(水平傾斜補正手段の動作)NC装置(1
0)の水平傾斜補正手段(13a)の動作は、図2のフ
ローチャートの通りである。ステップS1では、加工プ
ログラムPの1ブロックから読み取った移動指令または
移動指令入力手段(18)により入力された1ブロック
分の移動指令に基づいて、移動量算出手段(11)が算
出したX軸、Y軸、Z軸の移動量データを受け取る。
(Operation of Horizontal Inclination Correction Means) NC Device (1
The operation of the horizontal inclination correcting means (13a) of 0) is as shown in the flowchart of FIG. In step S1, the X-axis calculated by the movement amount calculation means (11) based on the movement command read from one block of the machining program P or the movement command for one block input by the movement command input means (18), Receives Y-axis and Z-axis movement amount data.

【0046】ステップS2では、メモリを読み出しに行
き、水平方向傾斜角度θが0に設定されているか否かを
判定する。θが0でない場合は、ステップS3に進み、
X軸およびY軸の移動量データを補正する。Z軸の移動
量データの補正は行なわない。
In step S2, the memory is read and it is determined whether or not the horizontal tilt angle θ is set to zero. If θ is not 0, the process proceeds to step S3,
Correct the X-axis and Y-axis movement amount data. The Z-axis movement amount data is not corrected.

【0047】補正前のX−Y−Z座標系におけるX軸、
Y軸、Z軸の移動量データをそれぞれX0、Y0、Z0
し、水平傾斜補正後のX’−Y’−Z’座標系における
X軸、Y軸、Z軸の移動量データをそれぞれX1、Y1
1とすると、ステップS3の補正は下記の式(1)に
したがって行なわれる。
The X axis in the XYZ coordinate system before correction,
Y-axis, and each X 0, Y 0, Z 0 the movement amount data of the Z-axis, X-axis in the X'-Y'-Z 'coordinate system after horizontal tilt correction, Y-axis, the movement amount data of the Z axis X 1 , Y 1 , respectively
If Z 1 is set, the correction in step S3 is performed according to the following equation (1).

【0048】[0048]

【数1】 [Equation 1]

【0049】式(1)は、図5に示すように、補正前の
座標系であるX−Y−Z座標系をX−Y平面内で原点O
の周りに角度θだけ回転することを意味する。この回転
により得られるX’−Y’−Z’座標系では、水平方向
傾斜角度θは0となり、基準面(S1)の水平方向傾斜
が存在しなくなる。なお、式(1)にはZ0が含まれて
いないので、Z0とZ1は常に等しい。
In the equation (1), as shown in FIG. 5, the XYZ coordinate system, which is the coordinate system before correction, is used as the origin O in the XY plane.
Means to rotate about the angle θ. In the X′-Y′-Z ′ coordinate system obtained by this rotation, the horizontal tilt angle θ becomes 0, and the horizontal tilt of the reference plane (S1) does not exist. Since Z 0 is not included in the equation (1), Z 0 and Z 1 are always equal.

【0050】ステップS4では、ステップS3の補正に
より得られたX軸、Y軸、Z軸の移動量データX1
1、Z1を出力にセットする。
In step S4, X-axis, Y-axis, and Z-axis movement amount data X 1 obtained by the correction in step S3,
Set Y 1 and Z 1 to the output.

【0051】ステップS2でθが0である場合は、ステ
ップS5に進み、ステップS1で受け取ったX軸、Y
軸、Z軸の移動量データX0、Y0、Z0をそのまま補正
後の移動量データX1、Y1、Z1として出力にセットす
る。
When θ is 0 in step S2, the process proceeds to step S5, and the X axis and Y received in step S1.
The movement amount data X 0 , Y 0 , Z 0 of the axis and the Z axis are directly set to the output as the corrected movement amount data X 1 , Y 1 , Z 1 .

【0052】ステップS6では、ステップS4またはス
テップS5で出力にセットされた移動量データX1
1、Z1を垂直傾斜補正手段(13b)に送出する。以
後、各ブロックについて同じ動作を繰り返す。
At step S6, the movement amount data X 1 set at the output at step S4 or step S5,
Y 1 and Z 1 are sent to the vertical inclination correction means (13b). After that, the same operation is repeated for each block.

【0053】(垂直傾斜補正手段の動作)次に、図3の
フローチャートに基づいて垂直傾斜補正手段(13b)
の動作を説明する。ステップS11では、水平傾斜補正
手段(13a)から送出されたX軸、Y軸、Z軸の移動
量データX1、Y1、Z1を受け取る。
(Operation of Vertical Tilt Correcting Means) Next, the vertical tilt correcting means (13b) will be described with reference to the flowchart of FIG.
The operation of will be described. In step S11, the X-axis, Y-axis, and Z-axis movement amount data X 1 , Y 1 , and Z 1 sent from the horizontal inclination correction means (13a) are received.

【0054】ステップS12では、メモリを読み出しに
行き、垂直方向傾斜角度φが0に設定されているか否か
を判定する。φが0でない場合は、ステップS13に進
み、X軸、Y軸、Z軸の移動量データX1、Y1、Z1
補正する。垂直傾斜補正後のX”−Y”−Z”座標系に
おけるX軸、Y軸、Z軸の移動量データをそれぞれ
2、Y2、Z2とすると、ステップS13の補正は下記
の式(2)にしたがって行なわれる。
In step S12, the memory is read and it is determined whether or not the vertical tilt angle φ is set to zero. If φ is not 0, the process proceeds to step S13, and the X-axis, Y-axis, and Z-axis movement amount data X 1 , Y 1 , and Z 1 are corrected. X-axis in X "-Y" -Z "coordinate system after the vertical tilt correction, Y-axis, the respective movement amount data of the Z axis X 2, Y 2, and Z 2, the correction of the step S13 following formula ( Follow 2).

【0055】[0055]

【数2】 [Equation 2]

【0056】式(2)は、図6に示すように、補正前の
座標系であるX−Y−Z座標系をX−Z平面内で原点O
の周りに角度φだけ回転することを意味する。この回転
により得られるX”−Y”−Z”座標系では、垂直方向
傾斜角度φは0となり、基準面S2の垂直方向傾斜が存
在しなくなる。
In the equation (2), as shown in FIG. 6, the XYZ coordinate system, which is the coordinate system before correction, is used as the origin O in the XZ plane.
Means to rotate about by an angle φ. In the X "-Y" -Z "coordinate system obtained by this rotation, the vertical tilt angle φ becomes 0, and the vertical tilt of the reference plane S2 does not exist.

【0057】ステップS14では、ステップS13の補
正により得られたX軸、Y軸、Z軸の移動量データ
2、Y2、Z2を出力にセットする。
In step S14, the X-axis, Y-axis, and Z-axis movement amount data X 2 , Y 2 , and Z 2 obtained by the correction in step S13 are set as outputs.

【0058】ステップS12でφが0である場合は、ス
テップS15に進み、ステップS11で受け取ったX
軸、Y軸、Z軸の移動量データX1、Y1、Z1をそのま
ま補正後の移動量データX2、Y2、Z2として出力にセ
ットする。
If φ is 0 in step S12, the process proceeds to step S15, and the X received in step S11 is received.
The movement amount data X 1 , Y 1 and Z 1 of the axis, Y axis and Z axis are directly set to the output as the corrected movement amount data X 2 , Y 2 and Z 2 .

【0059】ステップS16では、ステップS14また
はステップS15でセットされた移動量データX2
2、Z2を軸制御手段(14)に送出する。以後、各ブ
ロックについて同じ動作を繰り返す。
In step S16, the movement amount data X 2 set in step S14 or step S15,
Y 2 and Z 2 are sent to the axis control means (14). After that, the same operation is repeated for each block.

【0060】(座標値演算手段の動作)続いて、図4の
フローチャートに基づいて座標値演算手段(16)の動
作を説明する。ステップS21では、垂直傾斜補正手段
(13b)から送出されるX軸、Y軸、Z軸の移動量デ
ータX2、Y2、Z2を受け取る。また、移動量検出手段
(15)から送出されるX軸、Y軸、Z軸の移動量デー
タを受け取る。
(Operation of Coordinate Value Calculating Means) Next, the operation of the coordinate value calculating means (16) will be described with reference to the flowchart of FIG. In step S21, the X-axis, Y-axis, and Z-axis movement amount data X 2 , Y 2 , and Z 2 sent from the vertical inclination correction means (13b) are received. It also receives the movement amount data of the X-axis, Y-axis, and Z-axis sent from the movement amount detecting means (15).

【0061】ステップS22では、メモリを読み出しに
行き、垂直方向傾斜角度φが0に設定されているか否か
を判定する。φが0でない場合は、ステップS23に進
み、X軸、Y軸、Z軸の移動量データX2、Y2、Z2
垂直傾斜補正を解除する。この補正解除は下記の式
(3)にしたがって行なわれる。
In step S22, the memory is read out and it is determined whether or not the vertical tilt angle φ is set to zero. If φ is not 0, the process proceeds to step S23, and the vertical inclination correction of the X-axis, Y-axis, and Z-axis movement amount data X 2 , Y 2 , and Z 2 is canceled. This cancellation of correction is performed according to the following equation (3).

【0062】[0062]

【数3】 [Equation 3]

【0063】式(3)は、式(2)にしたがって行なっ
た補正を解除するもので、X”−Y”−Z”座標系を
X”−Z”平面内で原点Oの周りに角度φだけ逆方向に
回転することを意味する。この回転により、X”−Y”
−Z”座標系におけるX軸、Y軸、Z軸の移動量データ
2、Y2、Z2が、X’−Y’−Z’座標系における移
動量データX1、Y1、Z1に復帰する。
The equation (3) cancels the correction performed according to the equation (2), and the X "-Y" -Z "coordinate system has an angle φ around the origin O in the X" -Z "plane. It means that it rotates in the opposite direction only.
X-axis in the -Z "coordinate system, Y-axis, the movement amount data X 2 in the Z-axis, Y 2, Z 2 is, movement amount data X 1 in X'-Y'-Z 'coordinate system, Y 1, Z 1 Return to.

【0064】ステップS22で垂直方向傾斜角度φが0
である場合は、移動量データX2、Y2、Z2の補正解除
をせずに、X軸、Y軸、Z軸の移動量データX2、Y2
2をそのまま移動量データX1、Y1、Z1としてステッ
プS24に飛ぶ。
In step S22, the vertical tilt angle φ is 0.
If it is, the movement amount data X 2, Y 2, without correction cancellation of Z 2, X-axis, Y-axis, the movement amount data X 2, Y 2 and Z-axis,
As movement amount data X 1 and Z 2, Y 1, fly as Z 1 in step S24.

【0065】ステップS24では、メモリを読み出しに
行き、水平方向傾斜角度θが0に設定されているか否か
を判定する。θが0でない場合は、ステップS25に進
み、X軸、Y軸、Z軸の移動量データX1、Y1、Z1
水平傾斜補正を解除してからステップS26に進む。こ
の補正解除は下記の式(4)にしたがって行なわれる。
In step S24, the memory is read and it is determined whether or not the horizontal tilt angle θ is set to zero. If θ is not 0, the process proceeds to step S25, the horizontal tilt correction of the X-axis, Y-axis, and Z-axis movement amount data X 1 , Y 1 , Z 1 is canceled, and then the process proceeds to step S26. This cancellation of correction is performed according to the following equation (4).

【0066】[0066]

【数4】 [Equation 4]

【0067】式(4)は、式(1)にしたがって行なっ
た補正を解除するもので、X’−Y’−Z’座標系を
X’−Y’平面内で原点Oの周りに角度θだけ逆方向に
回転することを意味する。この回転により、X’−Y’
−Z’座標系における移動量データX1、Y1、Z1が、
X−Y−Z座標系における移動量データX0、Y0、Z0
に復帰する。
The equation (4) cancels the correction performed according to the equation (1), and the X'-Y'-Z 'coordinate system has an angle θ around the origin O in the X'-Y' plane. It only means rotating in the opposite direction. By this rotation, X'-Y '
Movement amount data X 1 in -Z 'coordinate system, Y 1, Z 1 is
Movement amount data X 0 , Y 0 , Z 0 in the XYZ coordinate system
Return to.

【0068】ステップS24で水平方向傾斜角度θが0
である場合は、移動量データX1、Y1、Z1の補正解除
をせずに、X軸、Y軸、Z軸の移動量データX1、Y1
1をそのまま移動量データX0、Y0、Z0としてステッ
プS26に飛ぶ。
In step S24, the horizontal tilt angle θ is 0.
If it is, without correction cancellation of the movement amount data X 1, Y 1, Z 1, X-axis, Y-axis, the movement amount data X 1 in the Z-axis, Y 1,
Z 1 is used as it is as movement amount data X 0 , Y 0 , Z 0 , and the process jumps to step S26.

【0069】ステップS26では、補正を解除して得た
移動量データX0、Y0、Z0を移動量評価手段(19)
に送出する。また、これらの移動量データX0、Y0、Z
0に基づいて補正前のX軸、Y軸、Z軸の座標値を演算
し、得られた座標値データを表示手段(17)に送出す
る。以後、各ブロックについて同じ動作を繰り返す。
In step S26, the movement amount data X 0 , Y 0 , Z 0 obtained by canceling the correction is used as the movement amount evaluation means (19).
Send to. Further, these movement amount data X 0 , Y 0 , Z
The X-axis, Y-axis, and Z-axis coordinate values before correction are calculated based on 0 , and the obtained coordinate value data is sent to the display means (17). After that, the same operation is repeated for each block.

【0070】傾斜角度の補正の有無により、加工軌跡は
図5および図6に示すように変化する。図5では、ワー
ク(W)が水平方向に角度θだけ傾斜しているため、補
正をしない場合は、ワーク(W)の基準面(S1)に直
交する(Y軸に平行な)はずの加工軌跡が角度θだけ傾
斜するが、補正をした場合は、その加工軌跡はY’軸に
平行となり、ワーク(W)の基準面(S1)に直交す
る。したがって、傾斜角度θが0として作成された加工
プログラムPを用いて高精度に加工を行なうことができ
る。
The processing locus changes as shown in FIGS. 5 and 6 depending on whether or not the inclination angle is corrected. In FIG. 5, since the work (W) is inclined by the angle θ in the horizontal direction, the machining which should be orthogonal to the reference plane (S1) of the work (W) (parallel to the Y axis) when not corrected. Although the locus is inclined by the angle θ, when it is corrected, the machining locus becomes parallel to the Y ′ axis and orthogonal to the reference plane (S1) of the work (W). Therefore, the machining program P created with the inclination angle θ of 0 can be used to perform machining with high accuracy.

【0071】図6では、ワーク(W)が垂直方向に角度
φだけ傾斜しているため、補正をしない場合は、ワーク
(W)の基準面(S2)に平行(X軸に平行)なはずの
加工軌跡が角度φだけ傾斜するが、補正をした場合は、
その加工軌跡はX’軸に平行となり、ワーク(W)の基
準面(S2)に平行になる。したがって、垂直方向に傾
斜がある場合も、傾斜角度φが0として作成された加工
プログラム(P)を用いて高精度に加工を行なうことが
できる。
In FIG. 6, since the work (W) is inclined in the vertical direction by the angle φ, it should be parallel to the reference plane (S2) of the work (W) (parallel to the X axis) without correction. The machining locus of tilts by the angle φ, but if corrected,
The machining locus is parallel to the X ′ axis and parallel to the reference plane (S2) of the work (W). Therefore, even if there is an inclination in the vertical direction, it is possible to perform machining with high accuracy using the machining program (P) created with the inclination angle φ set to 0.

【0072】以上のように、この発明のNC装置(1
0)は、ワーク(W)の水平方向および垂直方向の傾斜
を補正して加工を行なうので、高精度の加工ができる。
また、厳密に平行出しを行ないながらワーク(W)をテ
ーブル(72)に載置する必要がなくなるため、段取り
時間が大幅に短縮され、作業効率が著しく向上する。さ
らに、ワーク(W)の傾斜を補正した座標値と補正しな
い座標値とが表示されるため、加工作業の進行状況を正
確に知ることができる、などの利点がある。
As described above, the NC device (1
0) corrects the inclination of the work (W) in the horizontal direction and the vertical direction, so that the work can be performed with high accuracy.
Further, since it is not necessary to place the work (W) on the table (72) while performing the parallel alignment strictly, the setup time is greatly shortened and the working efficiency is remarkably improved. Further, since the coordinate value in which the inclination of the workpiece (W) is corrected and the coordinate value in which the inclination is not corrected are displayed, there is an advantage that the progress of the machining operation can be accurately known.

【0073】上記実施例では、傾斜角度入力手段(1
9)としてキーボード(54)を用い、オペレータがキ
ーボード(54)から傾斜角度データを入力して設定す
るとして説明したが、次に述べるワーク姿勢検出装置を
用いて傾斜角度を検出し、得られた傾斜角度データを自
動的に入力するようにしてもよい。また、垂直方向傾斜
角度としてX−Z平面内でのX軸に対する傾斜角度φを
用い、水平方向傾斜角度としてX−Y平面内でのX軸に
対する傾斜角度θを用いて説明したが、垂直方向傾斜角
度としてY−Z平面内でのY軸に対する傾斜角度を用い
てもよいし、水平方向傾斜角度としてY軸に対する傾斜
角度を用いてもよい。
In the above embodiment, the inclination angle input means (1
It was described that the operator inputs the tilt angle data from the keyboard (54) and sets it by using the keyboard (54) as 9), but the tilt angle was detected and obtained by using the work posture detecting device described below. The inclination angle data may be automatically input. Further, the vertical tilt angle is the tilt angle φ with respect to the X axis in the XZ plane, and the horizontal tilt angle is the tilt angle θ with respect to the X axis in the XY plane. An inclination angle with respect to the Y axis in the YZ plane may be used as the inclination angle, or an inclination angle with respect to the Y axis may be used as the horizontal inclination angle.

【0074】(ワーク姿勢検出装置の構成)次に、この
発明のワーク姿勢検出装置の一実施例を添付図面に基づ
いて説明する。このワーク姿勢検出装置は、上記NC装
置(10)の傾斜角度入力手段(19)として好適なも
のである。
(Structure of Work Posture Detecting Device) Next, one embodiment of the work posture detecting device of the present invention will be described with reference to the accompanying drawings. This work posture detecting device is suitable as the inclination angle input means (19) of the NC device (10).

【0075】図8は、この発明のワーク姿勢検出装置の
機能ブロック図である。この発明のワーク姿勢検出装置
(30)は、検知情報入力手段(31)と、検知手段
(32)と、演算手段(33)と、表示手段(34)と
を備えている。
FIG. 8 is a functional block diagram of the work posture detecting device according to the present invention. The work posture detecting device (30) of the present invention comprises a detection information input means (31), a detection means (32), a calculation means (33), and a display means (34).

【0076】検知情報入力手段(31)は、工作機械の
テーブルに載置したワークの基準面の位置の検知方法を
指示する検知情報を検知手段(32)に入力する。検知
情報の入力は、ワークの姿勢検出の際にオペレータが行
なう。
The detection information input means (31) inputs, to the detection means (32), detection information indicating a method for detecting the position of the reference plane of the work placed on the table of the machine tool. The operator inputs the detection information when detecting the posture of the work.

【0077】検知手段(32)は、検知情報入力手段
(31)により入力された検知情報にしたがって工作機
械の制御軸(例えばX軸、Y軸、Z軸)を制御すること
により、ワークの基準面の位置を複数点で検知する。
The detection means (32) controls the control axes (for example, X axis, Y axis, Z axis) of the machine tool in accordance with the detection information input by the detection information input means (31), and thus the workpiece reference. The position of the surface is detected at multiple points.

【0078】演算手段(33)は、検知手段(32)に
よって得た複数点における位置データに基づいて図形デ
ータを演算する。
The calculating means (33) calculates graphic data based on the position data at a plurality of points obtained by the detecting means (32).

【0079】表示手段(34)は、演算手段(33)に
より得られた図形データに基づいてワークの基準面の姿
勢(例えば傾斜状況)を図形表示する。
The display means (34) graphically displays the posture (for example, the inclination state) of the reference plane of the work based on the graphic data obtained by the computing means (33).

【0080】図7は、この発明のワーク姿勢検出装置を
NC放電加工機に適用した一実施例を示すハードウェア
構成図である。図7において、図12に示したNC放電
加工機の要素と対応する要素には、対応する符号が付し
てある。Z軸駆動用のサーボモータ(51c)は、軸制
御装置(40c)から送出されるZ軸制御信号に応じ
て、Z軸駆動回路(55c)を介して駆動される。サー
ボモータ(51c)により、電極(53)は垂直方向に
移動する。テーブル(52)は、X軸駆動用のサーボモ
ータ(51a)とY軸駆動用のサーボモータ(51b)
の作動により、水平方向に移動する。
FIG. 7 is a hardware configuration diagram showing an embodiment in which the work posture detecting device of the present invention is applied to an NC electric discharge machine. In FIG. 7, elements corresponding to those of the NC electric discharge machine shown in FIG. 12 are designated by corresponding reference numerals. The Z-axis driving servomotor (51c) is driven via the Z-axis drive circuit (55c) in response to the Z-axis control signal sent from the axis control device (40c). The electrode (53) is moved in the vertical direction by the servo motor (51c). The table (52) includes a servo motor (51a) for driving the X axis and a servo motor (51b) for driving the Y axis.
The movement of moves horizontally.

【0081】電極(53)は、ワーク(W)と接触する
ことによりその位置を検知するもので、ここでは位置検
出専用としている。しかし、通常の加工用電極も使用可
能である。接触感知回路(56)は、電極(53)のワ
ーク(W)との接触を感知すると、感知信号をNC装置
(40)に送出する。NC装置(40)は、この感知信
号を受けてその接触点の位置を検知し、得られた位置デ
ータに基づいて図形データを演算する。演算により得ら
れた図形データは、表示装置(40e)に送出され、図
形として表示される。
The electrode (53) detects the position of the work (W) by coming into contact with the work (W), and is dedicated to position detection here. However, normal processing electrodes can also be used. When the contact sensing circuit (56) senses the contact of the electrode (53) with the work (W), it sends a sensing signal to the NC device (40). The NC device (40) receives the detection signal, detects the position of the contact point, and calculates graphic data based on the obtained position data. The graphic data obtained by the calculation is sent to the display device (40e) and displayed as a graphic.

【0082】検知情報入力手段(31)は、キーボード
(40d)から構成される。検知手段(32)は、NC
装置(40)、X軸、Y軸、Z軸用の駆動回路(55
a)(55b)(55c)、X軸、Y軸、Z軸用のサー
ボモータ(51a)(51b)(51c)、電極(5
3)および接触感知回路(56)から構成される。演算
手段(33)は、NC装置(40)から構成される。表
示手段(34)は、表示装置(40e)から構成され
る。
The detection information input means (31) comprises a keyboard (40d). The detection means (32) is NC
Device (40), X-axis, Y-axis, Z-axis drive circuit (55
a) (55b) (55c), X-axis, Y-axis, Z-axis servomotors (51a) (51b) (51c), electrodes (5)
3) and a touch sensing circuit (56). The computing means (33) is composed of an NC device (40). The display means (34) is composed of a display device (40e).

【0083】(ワーク傾斜表示装置の動作)次に、以上
の構成を持つこの発明のワーク姿勢検出装置(30)の
動作を説明する。ここでは、図7に示すワーク(W)の
垂直方向の基準面(S1)の姿勢を検出する場合につい
て述べる。
(Operation of Work Inclination Display Device) Next, the operation of the work posture detecting device (30) of the present invention having the above configuration will be described. Here, a case will be described in which the attitude of the reference plane (S1) in the vertical direction of the work (W) shown in FIG. 7 is detected.

【0084】まず最初に、オペレータは、キーボード
(40d)を操作して、姿勢を検出しようとするワーク
(W)の垂直方向の基準面(S1)の計測範囲を設定す
る。この設定は、計測範囲の両側の端点であるA点およ
びB点の位置座標を設定することにより行なう。設定さ
れたA点およびB点の位置座標データは、メモリ(40
b)に格納される。
First, the operator operates the keyboard (40d) to set the measurement range of the vertical reference plane (S1) of the workpiece (W) whose posture is to be detected. This setting is performed by setting the position coordinates of points A and B, which are end points on both sides of the measurement range. The position coordinate data of the set points A and B is stored in the memory (40
It is stored in b).

【0085】次に、NC装置(40)を運転状態にし、
X軸、Y軸、Z軸駆動用のサーボモータ(51a)(5
1b)(51c)を作動させて電極(53)の先端をA
点の近傍に停止させる。そこで、スタートボタンを押
す。すると、制御プログラムにより、テーブル(52)
が自動的に移動して電極(53)の先端をA点において
基準面(S1)に接触させる。すると、接触感知回路
(56)が感知信号をNC装置(40)に送出する。N
C装置(40)は、この感知信号によりA点の位置を検
知し、その位置座標をメモリ(40b)に格納する。
Next, the NC device (40) is put into an operating state,
X-axis, Y-axis, and Z-axis drive servo motors (51a) (5
1b) (51c) is activated to move the tip of the electrode (53) to A
Stop near the point. Then press the start button. Then, by the control program, the table (52)
Automatically moves to bring the tip of the electrode (53) into contact with the reference surface (S1) at point A. Then, the touch sensing circuit (56) sends a sensing signal to the NC device (40). N
The C device (40) detects the position of the point A by this detection signal and stores the position coordinates in the memory (40b).

【0086】次に、NC装置(40)は、先に設定され
た基準面(S1)の計測範囲データと、予めパラメータ
により設定された検知回数とに基づき、A点の隣の第2
接触点の位置座標を算出する。そして、X軸、Y軸駆動
用サーボモータ(51a)(51b)を作動させ、第2
接触点において電極(53)の先端を基準面(S1)に
接触させて、第2接触点の位置座標をメモリ(40b)
に格納する。以後、同じ操作を繰り返し、A点からB点
までの複数の接触点の位置座標をメモリ(40b)に格
納する。
Next, the NC device (40), based on the previously set measurement range data of the reference surface (S1) and the number of times of detection set in advance by the parameter, sets the second position next to the point A.
The position coordinates of the contact point are calculated. Then, the X-axis and Y-axis driving servomotors (51a) (51b) are operated to move the second
The tip of the electrode (53) is brought into contact with the reference surface (S1) at the contact point, and the position coordinates of the second contact point are stored in the memory (40b).
To store. After that, the same operation is repeated, and the position coordinates of the plurality of contact points from point A to point B are stored in the memory (40b).

【0087】次に、NC装置(40)は、得られたA点
からB点までの複数の接触点の位置座標データをメモリ
(40b)から読み出し、それらの位置座標データに基
づき、図形データを演算する。その際に、A点およびB
点の位置座標データにより、表示装置(40e)の画面
に図形が適当な配置および大きさで描かれるように、原
点位置およびスケールを設定する。
Next, the NC device (40) reads out the obtained position coordinate data of a plurality of contact points from the point A to the point B from the memory (40b), and based on the position coordinate data, the graphic data is obtained. Calculate At that time, point A and B
The origin position and scale are set so that the graphic is drawn on the screen of the display device (40e) with an appropriate arrangement and size based on the position coordinate data of the point.

【0088】次に、演算により得られた図形データと原
点位置およびスケールのデータとは、表示装置(40
e)に送出され、そこで図形として表示される。表示す
る図形としては、例えば図9に示すように、各接触点の
位置を点で示すとともにそれらの点を直線で結んだ図形
がある。このように、基準面(S1)の複数の接触点の
位置を図形として表示すると、この図形とX軸およびY
軸との関係を見ることにより、直ちにしかも正確に基準
面(S1)の姿勢すなわち傾斜状況を知ることができ
る。
Next, the graphic data and the origin position and scale data obtained by the calculation are displayed by the display device (40
e), where it is displayed as a graphic. As the figure to be displayed, for example, as shown in FIG. 9, there is a figure in which the position of each contact point is indicated by a point and the points are connected by a straight line. In this way, when the positions of the plurality of contact points on the reference plane (S1) are displayed as a figure, this figure and the X-axis and Y
By looking at the relationship with the axis, it is possible to immediately and accurately know the posture of the reference surface (S1), that is, the tilted state.

【0089】図7に示すワーク(W)の水平方向の基準
面(S2)の姿勢を検出する場合も、基準面(S2)上
に適当に計測範囲を設定することにより、上記とまった
く同様にして行なうことができる。したがって、この発
明のワーク姿勢検出装置(30)を使用することによ
り、ワーク(W)の水平方向の傾斜状況だけでなく垂直
方向の傾斜状況など、ワーク(W)の任意の姿勢(例え
ば、基準面の撓み)も検出することができる。
Even when detecting the attitude of the horizontal reference plane (S2) of the work (W) shown in FIG. 7, the measurement range is set appropriately on the reference plane (S2), in the same manner as above. Can be done. Therefore, by using the work posture detecting device (30) of the present invention, not only the horizontal tilt condition of the work (W) but also the vertical tilt condition of the work (W) can be used. Deflection of the surface) can also be detected.

【0090】なお、A点からB点までの複数の接触点の
位置座標データに基づき、基準面(S1)の傾斜角度を
容易に算出することができるので、NC装置(40)で
基準面(S1)(S2)の傾斜角度を算出し、メモリ
(40b)に格納するようにしておけば、必要に応じて
メモリ(40b)から読み出して傾斜角度を送出するこ
とが可能となる。こうすると、この発明のワーク姿勢検
出装置(30)は、上記NC装置(10)の傾斜角度入
力手段(19)として好適なものとなる。
Since the tilt angle of the reference plane (S1) can be easily calculated based on the position coordinate data of a plurality of contact points from point A to point B, the NC device (40) can use the reference plane ( If the tilt angles of S1 and S2 are calculated and stored in the memory (40b), the tilt angle can be read out from the memory (40b) and sent out as necessary. By doing so, the work posture detecting device (30) of the present invention becomes suitable as the inclination angle input means (19) of the NC device (10).

【0091】この実施例では、電極(53)とワーク
(W)との接触を感知してワーク(W)の位置を検知す
るようにしているが、ワーク(W)の位置を検知できれ
ば他の方法でもよい。また、複数点でワーク(W)の位
置を検知する方法は、図示したような直線に沿って検知
する方法の他に、曲線に沿って検知する方法や二次元的
により広い範囲で検知する方法などでもよい。
In this embodiment, the position of the work (W) is detected by detecting the contact between the electrode (53) and the work (W). However, if the position of the work (W) can be detected, the other position is detected. It may be a method. Further, the method of detecting the position of the work (W) at a plurality of points is not limited to the method of detecting along the straight line as shown, but also the method of detecting along the curve or the method of detecting in a two-dimensionally wider range. And so on.

【0092】以上の説明では、この発明のNC装置およ
びワーク姿勢検出装置をNC放電加工機に適用した例を
説明したが、NC放電加工機以外の他の工作機械にも適
用することができる。
In the above description, an example in which the NC device and the work posture detecting device of the present invention are applied to an NC electric discharge machine has been described, but the present invention can also be applied to other machine tools other than the NC electric discharge machine.

【0093】[0093]

【発明の効果】この発明のNC装置は、工作機械のテー
ブルに載置したワークに水平方向や垂直方向の傾斜が生
じないようにワークの厳密な姿勢調整を行なう必要がな
く、しかも、ワークの傾斜を考慮していない加工プログ
ラムによって高精度の加工を行なうことができる。ま
た、ワークの水平方向および垂直方向の傾斜に応じて補
正された各制御軸の移動量データを表示する表示手段を
設けた場合は、上記効果に加え、加工中にオペレータが
実際の加工状況を知ることができる効果がある。この発
明のワーク姿勢検出装置は、工作機械のテーブルに載置
したワークの姿勢を容易かつ正確に検出することができ
る。
The NC device of the present invention does not require strict posture adjustment of the work so that the work placed on the table of the machine tool is not inclined in the horizontal direction or the vertical direction. High-precision machining can be performed by a machining program that does not consider inclination. Further, when the display means for displaying the movement amount data of each control axis corrected according to the inclination of the workpiece in the horizontal direction and the vertical direction is provided, in addition to the above effects, the operator can display the actual machining status during machining. There is an effect that can be known. The work posture detecting apparatus of the present invention can easily and accurately detect the posture of the work placed on the table of the machine tool.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明のNC装置を備えたNC放電加工機の
機能ブロック図である。
FIG. 1 is a functional block diagram of an NC electric discharge machine equipped with the NC device of the present invention.

【図2】図1のNC装置の水平傾斜補正動作を示すフロ
ーチャートである。
FIG. 2 is a flowchart showing a horizontal tilt correction operation of the NC device of FIG.

【図3】図1のNC装置の垂直傾斜補正動作を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing a vertical tilt correction operation of the NC device of FIG.

【図4】図1のNC装置の座標値演算動作を示すフロー
チャートである。
FIG. 4 is a flowchart showing a coordinate value calculation operation of the NC device of FIG.

【図5】NC放電加工機のテーブルに載置されたワーク
の水平傾斜補正動作を示す説明図である。
FIG. 5 is an explanatory diagram showing a horizontal inclination correction operation of a work placed on the table of the NC electric discharge machine.

【図6】NC放電加工機のテーブルに載置されたワーク
の垂直傾斜補正動作を示す説明図である。
FIG. 6 is an explanatory diagram showing a vertical inclination correction operation of a work placed on a table of an NC electric discharge machine.

【図7】この発明のワーク姿勢検出装置をNC放電加工
機に適用した一実施例のハードウェア構成図である。
FIG. 7 is a hardware configuration diagram of an embodiment in which the work posture detecting device of the present invention is applied to an NC electric discharge machine.

【図8】この発明のワーク姿勢検出装置の機能ブロック
図である。
FIG. 8 is a functional block diagram of the work posture detecting device according to the present invention.

【図9】ワーク基準面の状況を表示した画面の説明図で
ある。
FIG. 9 is an explanatory diagram of a screen displaying a situation of a work reference plane.

【図10】従来のNC放電加工機の一例のハードウェア
構成図である。
FIG. 10 is a hardware configuration diagram of an example of a conventional NC electric discharge machine.

【図11】図10のNC放電加工機の機能ブロック図で
ある。
11 is a functional block diagram of the NC electric discharge machine of FIG.

【図12】従来のNC放電加工機におけるワーク姿勢の
検出方法を示す、NC放電加工機のハードウェア構成図
である。
FIG. 12 is a hardware configuration diagram of an NC electric discharge machine showing a method for detecting a work posture in a conventional NC electric discharge machine.

【符号の説明】[Explanation of symbols]

10 NC装置 11 移動量算出手段 12 傾斜角度入力手段 13 傾斜補正手段 13a 水平傾斜補正手段 13b 垂直傾斜補正手段 14 軸制御手段 15 移動量検出手段 16 座標値演算手段 17 表示手段 18 移動指令入力手段 19 位置量評価手段 30 ワーク姿勢検出装置 31 検知情報入力手段 32 検知手段 33 演算手段 34 表示手段 40 NC装置 40a CPU 40b メモリ 40c 軸制御装置 40d キーボード 40e 表示装置 40f バス 51a X軸用サーボモータ 51b Y軸用サーボモータ 51c Z軸用サーボモータ 52 テーブル 53 電極 55a X軸駆動回路 55b Y軸駆動回路 55c Z軸駆動回路 56 接触感知回路 W ワーク S1、S2 基準面 P 加工プログラム 10 NC device 11 Moving amount calculation means 12 Tilt angle input means 13 Tilt correction means 13a Horizontal inclination correcting means 13b Vertical tilt correction means 14 axis control means 15 Moving amount detecting means 16 Coordinate value calculation means 17 Display means 18 Movement command input means 19 Position quantity evaluation means 30 Work posture detector 31 Detection information input means 32 detection means 33 computing means 34 display means 40 NC device 40a CPU 40b memory 40c axis control device 40d keyboard 40e display device 40f bus 51a X-axis servo motor 51b Y-axis servo motor 51c Z-axis servo motor 52 tables 53 electrodes 55a X-axis drive circuit 55b Y-axis drive circuit 55c Z-axis drive circuit 56 Touch sensing circuit W work S1, S2 reference plane P machining program

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 移動指令に応じて各制御軸の移動量を算
出する移動量算出手段と、前記移動量算出手段により算
出された各制御軸の移動量データを、工作機械のテーブ
ルに載置したワークの水平方向の傾斜に応じて補正する
水平傾斜補正手段と、前記移動量算出手段により算出さ
れた各制御軸の移動量データを、工作機械のテーブルに
載置したワークの垂直方向の傾斜に応じて補正する垂直
傾斜補正手段と、前記水平傾斜補正手段および垂直傾斜
補正手段により補正された移動量データに基づいて前記
各制御軸を制御する軸制御手段とを具備することを特徴
とする数値制御装置。
1. A movement amount calculation means for calculating a movement amount of each control axis according to a movement command, and movement amount data of each control axis calculated by the movement amount calculation means are placed on a table of a machine tool. The horizontal inclination correcting means for correcting the inclination of the work in the horizontal direction, and the movement amount data of each control axis calculated by the movement amount calculating means, the inclination of the work placed on the table of the machine tool in the vertical direction. Vertical tilt correcting means for correcting the control axes according to the movement amount data corrected by the horizontal tilt correcting means and the vertical tilt correcting means. Numerical control device.
【請求項2】 ワークの水平方向および垂直方向の傾斜
に応じて補正された各制御軸の移動量データを表示する
表示手段を具備する請求項1に記載の数値制御装置。
2. The numerical controller according to claim 1, further comprising display means for displaying the movement amount data of each control axis which is corrected according to the inclination of the work in the horizontal direction and the vertical direction.
【請求項3】 工作機械のテーブルに載置したワークの
基準面の位置の検知方法を指示する検知情報を入力する
検知情報入力手段と、前記検知情報入力手段により入力
された検知情報にしたがって工作機械の各制御軸を制御
して前記ワークの基準面の位置を複数点で検知する検知
手段と、前記検知手段により得られた複数点の位置デー
タに基づいて図形データを演算する演算手段と、前記演
算手段により得られた図形データに基づいて前記ワーク
の基準面の姿勢を図形表示する表示手段とを具備するこ
とを特徴とするワーク姿勢検出装置。
3. A detection information input means for inputting detection information for instructing a detection method of a position of a reference surface of a work placed on a table of a machine tool, and machining according to the detection information input by the detection information input means. Detecting means for controlling each control axis of the machine to detect the position of the reference surface of the work at a plurality of points, and calculating means for calculating graphic data based on the position data of the plurality of points obtained by the detecting means, A work posture detecting apparatus comprising: a display unit that graphically displays the posture of the reference plane of the work based on the graphic data obtained by the calculation unit.
JP16832691A 1991-07-09 1991-07-09 Numerical controller and work attitude detection device Pending JPH0519824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16832691A JPH0519824A (en) 1991-07-09 1991-07-09 Numerical controller and work attitude detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16832691A JPH0519824A (en) 1991-07-09 1991-07-09 Numerical controller and work attitude detection device

Publications (1)

Publication Number Publication Date
JPH0519824A true JPH0519824A (en) 1993-01-29

Family

ID=15865968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16832691A Pending JPH0519824A (en) 1991-07-09 1991-07-09 Numerical controller and work attitude detection device

Country Status (1)

Country Link
JP (1) JPH0519824A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016133870A (en) * 2015-01-16 2016-07-25 Dmg森精機株式会社 Method for machining workpiece using machine tool and machine tool
JP2017135297A (en) * 2016-01-29 2017-08-03 ローランドディー.ジー.株式会社 Processing device and processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016133870A (en) * 2015-01-16 2016-07-25 Dmg森精機株式会社 Method for machining workpiece using machine tool and machine tool
JP2017135297A (en) * 2016-01-29 2017-08-03 ローランドディー.ジー.株式会社 Processing device and processing method

Similar Documents

Publication Publication Date Title
CN101866163B (en) Numerical control machine tool and numerical control device
KR101158772B1 (en) Numerically controlled machine tool and numerically control device
WO2012057280A1 (en) Method for measuring tool dimension, measurement device, and machine tool
JP2002257535A (en) Position measuring device
JPS61254792A (en) Positioning device for boom of rock drill
CN111624940B (en) Information processing apparatus and information processing method
KR100437964B1 (en) Position control device
JPH0519824A (en) Numerical controller and work attitude detection device
JP2012079358A (en) Error map creation method, device, and numerical control machine tool with an error map creation function
JP6582814B2 (en) Numerical controller and lost motion compensation method for numerical controller
JP2787872B2 (en) Numerical control unit
JP2015222196A (en) Three dimensional measuring machine and method for measuring shape using the same
JPH08210837A (en) Probe position vector computing device in correction of rotary angle error of three dimensional coordinate measuring apparatus
JP4652011B2 (en) Three-dimensional coordinate measurement system and part program used therefor
JPH05318278A (en) X-y table drive control device of machine tool
JP2758810B2 (en) Shape measurement method
JP2868343B2 (en) Off-line teaching method of 3D laser beam machine
JPH04148307A (en) Detecting method for working force for force control robot
US11654562B2 (en) Apparatus, robot control device, robot system, and method of setting robot coordinate system
JPH0542446A (en) Numerical control unit and cad/cam device
JP3520631B2 (en) Laser processing machine
JPH07112664B2 (en) Origin correction method for spindle head indexing
JP2021156861A (en) Three-dimensional measuring machine, and three-dimensional measuring machine measurement method
JPH07110470B2 (en) Workpiece mounting error correction device in machining center
JP2572660B2 (en) Automatically driven comparison measuring machine