JP2009076019A - Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program - Google Patents

Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program Download PDF

Info

Publication number
JP2009076019A
JP2009076019A JP2007246935A JP2007246935A JP2009076019A JP 2009076019 A JP2009076019 A JP 2009076019A JP 2007246935 A JP2007246935 A JP 2007246935A JP 2007246935 A JP2007246935 A JP 2007246935A JP 2009076019 A JP2009076019 A JP 2009076019A
Authority
JP
Japan
Prior art keywords
numerical control
axis
pulse generator
acquired
handle
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
JP2007246935A
Other languages
Japanese (ja)
Inventor
Takashi Otaka
崇 大高
Yoshimasa Iwakoshi
義正 岩越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2007246935A priority Critical patent/JP2009076019A/en
Publication of JP2009076019A publication Critical patent/JP2009076019A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

<P>PROBLEM TO BE SOLVED: To attain the magnification change and displacement of a plotting object in display using equipment usually equipped at an numerical control device. <P>SOLUTION: When a manual pulse generator is operated, the rotating direction (S1) and rotating amount (S3) of a handle and magnification information (S5) are acquired. If it is not a manual mode (S10: No), mode selection is acquired from an axis selection switch (S25). In order to displace and enlarge/reduce an image in display according to the mode, present coordinates are acquired (S35, S55, S70, S80), and coordinates after displacement and enlargement/reduction are computed (S40, S60, S75, S85). Plotting is output to the computed coordinate position (S90). <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、数値制御装置、数値制御プログラム及びこれを記録したコンピュータ読取可能な記録媒体に関し、詳細には、表示中の画像の移動や倍率変更を簡便に可能とする数値制御装置及びプログラムに関するものである。   The present invention relates to a numerical control device, a numerical control program, and a computer-readable recording medium on which the numerical control program is recorded. Specifically, the present invention relates to a numerical control device and a program that can easily move an image being displayed and change the magnification. It is.

一般に、数値制御装置で制御される工作機械においては、表示装置を備え、プログラムされた工具経路等をグラフィックで表示する機能を有しているものがある。このような描画機能においては、拡大縮小や座標位置の変更を簡単に行いたいという要望がある。   In general, a machine tool controlled by a numerical control device includes a display device that has a function of displaying a programmed tool path and the like graphically. In such a drawing function, there is a desire to easily perform enlargement / reduction and change of coordinate position.

一方、プログラマブル表示器においては、描画領域の一部をマウスで選択し、別ウインドウで開いたり、選択された描画範囲の倍率を任意に指定できるような提案もなされている(例えば、特許文献1参照)。
特開2007−65914号公報
On the other hand, in the programmable display, a proposal has been made that a part of a drawing area can be selected with a mouse and opened in a separate window, or the magnification of a selected drawing range can be arbitrarily designated (for example, Patent Document 1). reference).
JP 2007-65914 A

しかしながら、上記従来の技術を工作機械の数値制御装置に適用するためにはマウスを備える必要があったり、倍率の指定画面を開いての設定には作業時間がかかるといった問題点があった。   However, in order to apply the above conventional technique to a numerical control device of a machine tool, it is necessary to provide a mouse, and there is a problem that it takes a work time to set the magnification designation screen.

本発明は上記問題を解決するためになされたものであり、数値制御装置に標準で装備されている機器を利用して表示中の描画対象の倍率変更や移動を可能とすることを目的とする。   The present invention has been made to solve the above-described problem, and an object of the present invention is to make it possible to change or move the magnification of a drawing target being displayed by using a standard equipment of a numerical control device. .

上記目的を達成するため、本発明の請求項1に記載の数値制御装置は、加工プログラムに従って工具を動作させワークを加工する工作機械の数値制御装置において、文字又は画像を表示する表示装置と、ハンドルによって操作される手動パルス発生器と、前記手動パルス発生器の操作を、前記工作機械の軸送り装置の制御に用いるか、又は、前記表示装置への描画制御に用いるかを指定する指定手段と、前記表示装置へ描画する対象座標を取得する座標取得手段と、前記手動パルス発生器のハンドル操作量を取得する操作量取得手段と、前記指定手段により描画制御が指定された場合に、前記座標取得手段により取得された座標と前記操作量取得手段により取得された操作量とに基づき、前記表示装置に描画される描画対象を移動又は拡大縮小する描画制御手段とを備えたことを特徴とする。   In order to achieve the above object, a numerical control device according to claim 1 of the present invention is a numerical control device for a machine tool that processes a work by operating a tool according to a processing program, and a display device that displays characters or images; Manual pulse generator operated by a handle, and designation means for designating whether the operation of the manual pulse generator is used for controlling the axial feed device of the machine tool or for drawing control on the display device A coordinate acquisition unit that acquires target coordinates to be drawn on the display device, an operation amount acquisition unit that acquires a handle operation amount of the manual pulse generator, and when the drawing control is specified by the specification unit, Based on the coordinates acquired by the coordinate acquisition means and the operation amount acquired by the operation amount acquisition means, the drawing target drawn on the display device is moved or scaled. Characterized in that a drawing control means for.

また、本発明の請求項2に記載の数値制御装置は、請求項1に記載の発明の構成に加え、前記手動パルス発生器の前記ハンドルの操作方向を取得する操作方向取得手段と、前記操作方向取得手段により取得した操作方向に基づき拡大するか縮小するかを決定する決定手段とを備えたことを特徴とする。   According to a second aspect of the present invention, in addition to the configuration of the first aspect, the numerical control device includes an operation direction acquisition means for acquiring an operation direction of the handle of the manual pulse generator, and the operation And determining means for determining whether to enlarge or reduce based on the operation direction acquired by the direction acquiring means.

また、本発明の請求項3に記載の数値制御装置は、請求項1又は2に記載の発明の構成に加え、前記手動パルス発生器が、X軸、Y軸、及びZ軸の中から所望の軸を選択する選択スイッチを有し、前記描画制御手段は、前記選択スイッチにより選択された軸に従って前記描画対象を前記表示装置に描画することを特徴とする。   According to a third aspect of the present invention, in addition to the configuration of the first or second aspect, the manual pulse generator is desired from among the X axis, the Y axis, and the Z axis. The drawing control means draws the drawing target on the display device according to the axis selected by the selection switch.

また、本発明の請求項4に記載の数値制御プログラムは、請求項1乃至3のいずれかに記載の発明の各種処理手段としてコンピュータを機能させる。   A numerical control program according to a fourth aspect of the present invention causes a computer to function as various processing means according to the first aspect of the present invention.

また、本発明の請求項5に記載の記録媒体は、請求項4に記載の発明の数値制御プログラムをコンピュータ読み取り可能に記録している。   A recording medium according to a fifth aspect of the present invention records the numerical control program according to the fourth aspect of the present invention in a computer-readable manner.

本発明の請求項1に記載の数値制御装置は、手動パルス発生器の操作を、軸送り装置の制御と表示装置への描画制御とのどちらに用いるかを指定し、描画制御が指定された場合には、ハンドル操作量に従って、描画対象の現在座標から移動又は拡大縮小させる。従って、平素は軸送り装置の制御に用いられる手動パルス発生器を用い、そのハンドルを操作することにより、表示装置の描画の制御を簡単に行うことができる。   The numerical controller according to claim 1 of the present invention designates whether the operation of the manual pulse generator is used for the control of the axis feeding device or the drawing control to the display device, and the drawing control is designated. In this case, the drawing object is moved or enlarged or reduced according to the handle operation amount. Therefore, the plane can be easily controlled by using a manual pulse generator used for controlling the axis feeding device and operating the handle thereof.

また、本発明の請求項2に記載の数値制御装置は、請求項1に記載の発明の効果に加え、手動パルス発生器のハンドルの操作方向により、描画制御の拡大縮小の際の拡大か縮小かの別を決定することができる。従って、特別の指定をすることなく、ハンドル操作一つで拡大も縮小も行うことができる。   In addition to the effect of the invention described in claim 1, the numerical control device according to claim 2 of the present invention is an enlargement or reduction at the time of enlargement / reduction of drawing control depending on the operation direction of the handle of the manual pulse generator. You can decide whether or not. Therefore, enlargement and reduction can be performed with a single handle operation without any special designation.

また、本発明の請求項3に記載の数値制御装置は、請求項1又は2に記載の発明の効果に加え、手動パルス発生器に備えられている軸選択スイッチにより、描画対象を二次元のどの軸を用いて表示させるかを選択することができる。   In addition to the effect of the invention described in claim 1 or 2, the numerical control device according to claim 3 of the present invention is configured such that a drawing target is two-dimensionally displayed by an axis selection switch provided in the manual pulse generator. It is possible to select which axis is used for display.

また、本発明の請求項4に記載の数値制御プログラムは、コンピュータに実行させることにより、請求項1乃至3のいずれかに記載の発明の各種処理手段としての作用効果を奏することができる。   Moreover, the numerical control program according to claim 4 of the present invention can exhibit the operational effects as the various processing means of the invention according to any of claims 1 to 3 by being executed by a computer.

また、本発明の請求項5に記載の記録媒体は、コンピュータに読み取らせ、実行させることにより、請求項4に記載の発明の数値制御プログラムの作用効果を奏することができる。   In addition, the recording medium according to claim 5 of the present invention can achieve the operational effects of the numerical control program according to the invention of claim 4 by causing the computer to read and execute the recording medium.

以下、本発明を具体化した実施の形態について、図面を参照して説明する。本実施形態の数値制御装置1は、工作機械に設けられ、制御コマンドを有する指示ブロックの配列からなる加工プログラムを実行することで、工作機械によるワーク加工動作を制御するものである。また、本実施形態の数値制御装置1は、手動パルス発生器23を備え、工作機械の可動軸(X軸、Y軸、Z軸、付加軸)を手動で送ることができるとともに、表示装置への描画を操作することができる。   DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments embodying the present invention will be described below with reference to the drawings. The numerical control device 1 of the present embodiment is provided in a machine tool, and controls a workpiece machining operation by the machine tool by executing a machining program including an array of instruction blocks having control commands. Further, the numerical control apparatus 1 of the present embodiment includes a manual pulse generator 23, and can manually send the movable axes (X axis, Y axis, Z axis, additional axis) of the machine tool to the display device. You can manipulate the drawing.

まず、図1を参照して、数値制御装置1の電気的構成について説明する。図1は、工作機械の数値制御装置1の電気的構成を示すブロック図である。図1に示すように、数値制御装置1は、制御を司るCPU10と、制御プログラムを記憶したROM11と、データや使用中の加工プログラムの一時的記憶領域であるRAM12と、入力インタフェイス14と、出力インタフェイス15とがバス16を介して接続されて構成されている。   First, the electrical configuration of the numerical controller 1 will be described with reference to FIG. FIG. 1 is a block diagram showing an electrical configuration of a numerical control device 1 of a machine tool. As shown in FIG. 1, a numerical control device 1 includes a CPU 10 that performs control, a ROM 11 that stores a control program, a RAM 12 that is a temporary storage area for data and machining programs in use, an input interface 14, An output interface 15 is connected via a bus 16.

入力インタフェイス14には、操作装置21,入力装置22,手動パルス発生器23が接続されている。操作装置21は、手動モード・自動モードの切り替えスイッチ、複数の指令キー、加工プログラムの入力キー及び編集キーを備えている。入力装置22は、外部から加工プログラムを読み込むための装置である。   An operation device 21, an input device 22, and a manual pulse generator 23 are connected to the input interface 14. The operation device 21 includes a manual mode / automatic mode changeover switch, a plurality of command keys, a machining program input key, and an editing key. The input device 22 is a device for reading a machining program from the outside.

出力インタフェイス15には、X軸モータ41を駆動させるX軸駆動回路31と、Y軸モータ42を駆動させるY軸駆動回路32と、Z軸モータ43を駆動させるZ軸駆動回路33と、主軸モータ44を駆動させる主軸駆動回路34と、付加軸モータ45を駆動させる付加軸駆動回路35と、プログラムの表示や加工物の描画表示を行うための表示装置50を制御する制御回路36とが接続されている。   The output interface 15 includes an X-axis drive circuit 31 for driving the X-axis motor 41, a Y-axis drive circuit 32 for driving the Y-axis motor 42, a Z-axis drive circuit 33 for driving the Z-axis motor 43, and a main shaft. A main shaft driving circuit 34 for driving the motor 44, an additional shaft driving circuit 35 for driving the additional shaft motor 45, and a control circuit 36 for controlling the display device 50 for displaying a program and drawing a workpiece are connected. Has been.

次に、図2を参照して、手動パルス発生器23について説明する。図2は、手動パルス発生器23の外観図である。図2に示すように、手動パルス発生器23は、正逆回転可能なハンドル231、倍率選択スイッチ232、軸選択スイッチ233を備えている。ハンドル231の回転角度に応じてパルス信号が出力される。倍率選択スイッチ232は、一般に整数の倍率が選択可能となっており、本実施形態では、1倍、10倍、100倍となっている。軸選択スイッチ233は、電源スイッチを兼ねており、電源OFF、X軸、Y軸、Z軸、付加軸(「4」で表示)が選択可能である。   Next, the manual pulse generator 23 will be described with reference to FIG. FIG. 2 is an external view of the manual pulse generator 23. As shown in FIG. 2, the manual pulse generator 23 includes a handle 231 that can rotate forward and backward, a magnification selection switch 232, and an axis selection switch 233. A pulse signal is output according to the rotation angle of the handle 231. In general, the magnification selection switch 232 can select an integer magnification, and in the present embodiment, the magnification selection switch 232 is 1 ×, 10 ×, or 100 ×. The axis selection switch 233 also serves as a power switch, and can select power OFF, X axis, Y axis, Z axis, and additional axis (indicated by “4”).

本実施形態において、手動パルス発生器23は、手動モードと描画モードの2つのモードで使用される。手動モードにおいては、倍率選択スイッチ232で指定された倍率とハンドル231の回転角度により指定される換算比率で、軸選択スイッチ233により選択された可動軸の移動が行われる。描画モードにおいては、軸選択スイッチ233により選択された軸における二次元表示での表示移動及び拡大縮小が実行される(詳細は後述)。   In the present embodiment, the manual pulse generator 23 is used in two modes, a manual mode and a drawing mode. In the manual mode, the movable axis selected by the axis selection switch 233 is moved at a conversion ratio specified by the magnification specified by the magnification selection switch 232 and the rotation angle of the handle 231. In the drawing mode, display movement and enlargement / reduction in two-dimensional display on the axis selected by the axis selection switch 233 are executed (details will be described later).

次に、図3〜図8を参照して、上記の構成の数値制御装置において手動パルス発生器23が操作された場合の処理について説明する。図3は、手動パルス発生器23が操作された場合の処理のフローチャートである。図4は、描画対象物の例を示す説明図である。図5は、X軸表示移動モードにおける遷移を示す説明図である。図6は、Y軸表示移動モードにおける遷移を示す説明図である。図7は、Z軸表示移動モードにおける遷移を示す説明図である。図8は、拡大縮小モードにおける遷移を示す説明図である。   Next, processing when the manual pulse generator 23 is operated in the numerical controller having the above-described configuration will be described with reference to FIGS. FIG. 3 is a flowchart of processing when the manual pulse generator 23 is operated. FIG. 4 is an explanatory diagram illustrating an example of a drawing target. FIG. 5 is an explanatory diagram showing transition in the X-axis display movement mode. FIG. 6 is an explanatory diagram showing transition in the Y-axis display movement mode. FIG. 7 is an explanatory diagram showing transition in the Z-axis display movement mode. FIG. 8 is an explanatory diagram showing transition in the enlargement / reduction mode.

手動パルス発生器23からの入力が検出されると、図3に示すように、まず、ハンドル231の回転方向(S1)及びハンドルの回転量(S3)を取得する。次いで、倍率選択スイッチ232の位置から倍率情報を取得する(S5)。   When the input from the manual pulse generator 23 is detected, the rotation direction (S1) of the handle 231 and the rotation amount (S3) of the handle 231 are first acquired as shown in FIG. Next, magnification information is acquired from the position of the magnification selection switch 232 (S5).

次にモードの切り替えスイッチ(図示外)から、モード情報を取得して、現在手動モードになっているかどうかを判断する(S10)。手動モードであれば(S10:YES)、S5で取得した倍率情報、S3で取得したハンドル231の回転量、及び軸選択スイッチ233から得られる軸指定に従って、指定された可動軸を換算比率に従って移動させる送り移動処理を実行する(S15)。   Next, mode information is acquired from a mode changeover switch (not shown), and it is determined whether the current mode is the manual mode (S10). If it is the manual mode (S10: YES), the designated movable axis is moved according to the conversion ratio in accordance with the magnification information obtained in S5, the rotation amount of the handle 231 obtained in S3, and the axis designation obtained from the axis selection switch 233. The feed movement process is executed (S15).

手動モードでない場合には(S10:NO)、表示装置50に描画表示中であるかどうかを判断する(S20)。描画表示中でない場合には(S20:NO)、手動パルス発生器23での操作を無効とし、そのまま処理を終了する。   If it is not the manual mode (S10: NO), it is determined whether or not drawing is being displayed on the display device 50 (S20). If the drawing is not being displayed (S20: NO), the operation of the manual pulse generator 23 is invalidated and the process is terminated as it is.

描画表示中の場合には(S20:YES)、次に、軸選択スイッチ233からモードの選択情報を取得する(S25)。軸選択スイッチ233が「X」であればX軸表示移動モード、「Y」であればY軸表示移動モード、「Z」であればZ軸表示移動モード、「4」であれば拡大縮小モードとなる。   If the drawing is being displayed (S20: YES), then mode selection information is acquired from the axis selection switch 233 (S25). If the axis selection switch 233 is “X”, the X-axis display movement mode is “Y”, the Y-axis display movement mode is “Y”, the Z-axis display movement mode is “Z”, and the enlargement / reduction mode is “4”. It becomes.

次に、取得したモードがX軸表示移動モードであるかを判断する(S30)。X軸表示移動モードであれば(S30:YES)、現在描画中の座標を取得し(S35)、移動後の座標位置を計算する(S40)。このとき、S1で取得したハンドル231の回転方向が右回りであれば正方向(右方向)への移動とし、左回りであれば負方向(左方向)への移動とする。さらに、S5で取得した倍率情報が1倍であれば、0.001mm単位での移動とし、10倍であれば0.010mm単位での移動とし、100倍であれば、0.100mm単位での移動とする。そして、算出された座標に従って表示装置50に描画出力して(S90)処理を終了する。   Next, it is determined whether the acquired mode is the X-axis display movement mode (S30). If it is the X-axis display movement mode (S30: YES), the coordinate currently being drawn is acquired (S35), and the coordinate position after the movement is calculated (S40). At this time, if the rotation direction of the handle 231 acquired in S1 is clockwise, it is moved in the positive direction (right direction), and if it is counterclockwise, it is moved in the negative direction (left direction). Furthermore, if the magnification information acquired in S5 is 1, it is moved in units of 0.001 mm, if it is 10 times, it is moved in units of 0.010 mm, and if it is 100 times, it is moved in units of 0.100 mm. Let's move. Then, drawing is output to the display device 50 in accordance with the calculated coordinates (S90), and the process is terminated.

例えば、図4に示すような円柱形の加工対象物を表示装置50に描画している場合、X軸表示移動モードにおいては、図5の画面200のような状態で描画される。ここで、右回りにハンドル231を回転させると、画面230に示すように対象物が右方向に移動して表示される。また、左回りにハンドル231を回転させると、画面240に示すように対象物が左方向に移動して表示される。   For example, when a cylindrical workpiece as shown in FIG. 4 is drawn on the display device 50, the drawing is performed in a state like the screen 200 of FIG. 5 in the X-axis display movement mode. Here, when the handle 231 is rotated clockwise, the object is moved and displayed in the right direction as shown on the screen 230. Further, when the handle 231 is rotated counterclockwise, the object is moved in the left direction and displayed as shown on the screen 240.

取得したモードがX軸表示移動モードでなかった場合には(S30:NO)、次に、Y軸表示移動モードであるかを判断する(S50)。Y軸表示移動モードであれば(S50:YES)、現在描画中の座標を取得し(S55)、移動後の座標位置を計算する(S60)。このとき、S1で取得したハンドル231の回転方向が右回りであれば正方向(上方向)への移動とし、左回りであれば負方向(下方向)への移動とする。さらに、S5で取得した倍率情報が1倍であれば、0.001mm単位での移動とし、10倍であれば0.010mm単位での移動とし、100倍であれば、0.100mm単位での移動とする。そして、算出された座標に従って表示装置50に描画出力して(S90)処理を終了する。   If the acquired mode is not the X-axis display movement mode (S30: NO), it is next determined whether or not it is the Y-axis display movement mode (S50). If it is the Y-axis display movement mode (S50: YES), the coordinate currently being drawn is acquired (S55), and the coordinate position after the movement is calculated (S60). At this time, if the rotation direction of the handle 231 acquired in S1 is clockwise, it is moved in the positive direction (upward), and if it is counterclockwise, it is moved in the negative direction (downward). Furthermore, if the magnification information acquired in S5 is 1, it is moved in units of 0.001 mm, if it is 10 times, it is moved in units of 0.010 mm, and if it is 100 times, it is moved in units of 0.100 mm. Let's move. Then, drawing is output to the display device 50 in accordance with the calculated coordinates (S90), and the process is terminated.

例えば、図4に示すような円柱形の加工対象物を表示装置50に描画している場合、Y軸表示移動モードにおいては、図6の画面200のような状態で描画される。ここで、右回りにハンドル231を回転させると、画面250に示すように対象物が上方向に移動して表示される。また、左回りにハンドル231を回転させると、画面260に示すように対象物が下方向に移動して表示される。   For example, when a cylindrical processing object as shown in FIG. 4 is drawn on the display device 50, in the Y-axis display movement mode, drawing is performed in a state as shown in the screen 200 of FIG. Here, when the handle 231 is rotated clockwise, the object is moved upward and displayed as shown on the screen 250. Further, when the handle 231 is rotated counterclockwise, the object is moved downward and displayed as shown on the screen 260.

取得したモードがY軸表示移動モードでもなかった場合には(S50:NO)、次に、Z軸表示移動モードであるかを判断する(S65)。Z軸表示移動モードであれば(S65:YES)、現在描画中の座標を取得し(S70)、移動後の座標位置を計算する(S75)。このとき、S1で取得したハンドル231の回転方向が右回りであれば正方向(上方向)への移動とし、左回りであれば負方向(下方向)への移動とする。さらに、S5で取得した倍率情報が1倍であれば、0.001mm単位での移動とし、10倍であれば0.010mm単位での移動とし、100倍であれば、0.100mm単位での移動とする。そして、算出された座標に従って表示装置50に描画出力して(S90)処理を終了する。   If the acquired mode is not the Y-axis display movement mode (S50: NO), it is next determined whether it is the Z-axis display movement mode (S65). If it is the Z-axis display movement mode (S65: YES), the coordinate currently being drawn is acquired (S70), and the coordinate position after the movement is calculated (S75). At this time, if the rotation direction of the handle 231 acquired in S1 is clockwise, it is moved in the positive direction (upward), and if it is counterclockwise, it is moved in the negative direction (downward). Furthermore, if the magnification information acquired in S5 is 1, it is moved in units of 0.001 mm, if it is 10 times, it is moved in units of 0.010 mm, and if it is 100 times, it is moved in units of 0.100 mm. Let's move. Then, drawing is output to the display device 50 in accordance with the calculated coordinates (S90), and the process is terminated.

例えば、図4に示すような円柱形の加工対象物を表示装置50に描画している場合、Z軸表示移動モードにおいては、図7の画面300のような状態で描画される。ここで、右回りにハンドル231を回転させると、画面310に示すように対象物が上方向に移動して表示される。また、左回りにハンドル231を回転させると、画面320に示すように対象物が下方向に移動して表示される。   For example, when a cylindrical workpiece as shown in FIG. 4 is drawn on the display device 50, the drawing is performed in a state as shown in the screen 300 of FIG. 7 in the Z-axis display movement mode. Here, when the handle 231 is rotated clockwise, the object is moved upward and displayed as shown on the screen 310. Further, when the handle 231 is rotated counterclockwise, the object is moved downward and displayed as shown on the screen 320.

取得したモードがZ軸表示移動モードでもなかった場合には(S65:NO)、拡大縮小モードである。そこで、現在描画中の座標を取得し(S80)、拡大又は縮小後の座標位置を計算する(S85)。このとき、S1で取得したハンドル231の回転方向が右回りであれば拡大とし、左回りであれば縮小とする。さらに、S5で取得した倍率情報が1倍であれば、1%単位での拡大縮小とし、10倍であれば10%単位での拡大縮小とし、100倍であれば、100%単位での拡大縮小とする。そして、算出された座標に従って表示装置50に描画出力して(S90)処理を終了する。   When the acquired mode is not the Z-axis display movement mode (S65: NO), it is an enlargement / reduction mode. Therefore, the coordinates currently being drawn are acquired (S80), and the coordinate position after enlargement or reduction is calculated (S85). At this time, if the rotation direction of the handle 231 acquired in S1 is clockwise, it is enlarged, and if it is counterclockwise, it is reduced. Furthermore, if the magnification information acquired in S5 is 1, enlargement / reduction in units of 1%, if 10x, enlargement / reduction in units of 10%, if 100 times, enlargement in units of 100%. Let it be reduced. Then, drawing is output to the display device 50 in accordance with the calculated coordinates (S90), and the process is terminated.

例えば、図4に示すような円柱形の加工対象物を表示装置50に描画している場合、拡大縮小モードにおいては、図8の画面200のような状態で描画される。ここで、右回りにハンドル231を回転させると、画面220に示すように対象物が拡大して表示される。また、左回りにハンドル231を回転させると、画面210に示すように対象物が縮小して表示される。   For example, when a cylindrical workpiece as shown in FIG. 4 is drawn on the display device 50, in the enlargement / reduction mode, the drawing is performed in a state like the screen 200 of FIG. Here, when the handle 231 is rotated clockwise, the object is enlarged and displayed as shown on the screen 220. Further, when the handle 231 is rotated counterclockwise, the object is reduced and displayed as shown on the screen 210.

以上説明したように、本実施形態の数値制御装置1によれば、表示装置50に描画を行っている際に、標準で装備されている周知の手動パルス発生器23を用いて、ハンドル231の回転方向及び回転量に応じて、二次元での表示における描画対象を移動させたり拡大縮小したりすることができる。   As described above, according to the numerical control device 1 of the present embodiment, when drawing is performed on the display device 50, the handle 231 is used by using the well-known manual pulse generator 23 provided as a standard. Depending on the rotation direction and the rotation amount, the drawing target in the two-dimensional display can be moved or enlarged / reduced.

尚、上記実施形態において、図3のS35,S55,S70及びS80で描画対象の座標を取得するCPU10が本発明の座標取得手段に相当する。また、図3のS3でハンドル231の回転量を取得するCPU10が本発明の操作量取得手段に相当する。また、図3のS40,S60,S75,S85で座標を算出しS90で描画出力するCPU10が本発明の描画制御手段に相当する。また、図3のS1でハンドル231の回転方向を取得するCPU10が本発明の操作方向取得手段に相当する。また、図3のS85で座標算出するCPU10が本発明の決定手段に相当する。   In the above embodiment, the CPU 10 that acquires the coordinates of the drawing target in S35, S55, S70, and S80 in FIG. 3 corresponds to the coordinate acquisition means of the present invention. Further, the CPU 10 that acquires the rotation amount of the handle 231 in S3 of FIG. 3 corresponds to the operation amount acquisition means of the present invention. Further, the CPU 10 that calculates the coordinates in S40, S60, S75, and S85 in FIG. 3 and outputs the drawing in S90 corresponds to the drawing control means of the present invention. Further, the CPU 10 that acquires the rotation direction of the handle 231 in S1 of FIG. 3 corresponds to the operation direction acquisition means of the present invention. Further, the CPU 10 that calculates the coordinates in S85 of FIG. 3 corresponds to the determining means of the present invention.

工作機械の数値制御装置1の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the numerical control apparatus 1 of a machine tool. 手動パルス発生器23の外観図である。3 is an external view of a manual pulse generator 23. FIG. 手動パルス発生器23が操作された場合の処理のフローチャートである。It is a flowchart of a process when the manual pulse generator 23 is operated. 描画対象物の例を示す説明図である。It is explanatory drawing which shows the example of a drawing target object. X軸表示移動モードにおける遷移を示す説明図である。It is explanatory drawing which shows the transition in X-axis display movement mode. Y軸表示移動モードにおける遷移を示す説明図である。It is explanatory drawing which shows the transition in a Y-axis display movement mode. Z軸表示移動モードにおける遷移を示す説明図である。It is explanatory drawing which shows the transition in Z-axis display movement mode. 拡大縮小モードにおける遷移を示す説明図である。It is explanatory drawing which shows the transition in expansion / contraction mode.

符号の説明Explanation of symbols

1 数値制御装置
10 CPU
11 ROM
12 RAM
23 手動パルス発生器
50 表示装置
231 ハンドル
232 倍率選択スイッチ
233 軸選択スイッチ
1 Numerical control device 10 CPU
11 ROM
12 RAM
23 Manual pulse generator 50 Display device 231 Handle 232 Magnification selection switch 233 Axis selection switch

Claims (5)

加工プログラムに従って工具を動作させワークを加工する工作機械の数値制御装置において、
文字又は画像を表示する表示装置と、
ハンドルによって操作される手動パルス発生器と、
前記手動パルス発生器の操作を、前記工作機械の軸送り装置の制御に用いるか、又は、前記表示装置への描画制御に用いるかを指定する指定手段と、
前記表示装置へ描画する対象座標を取得する座標取得手段と、
前記手動パルス発生器のハンドル操作量を取得する操作量取得手段と、
前記指定手段により描画制御が指定された場合に、前記座標取得手段により取得された座標と前記操作量取得手段により取得された操作量とに基づき、前記表示装置に描画される描画対象を移動又は拡大縮小する描画制御手段とを備えたことを特徴とする数値制御装置。
In a numerical control device of a machine tool that operates a tool according to a machining program to machine a workpiece,
A display device for displaying characters or images;
A manual pulse generator operated by a handle;
A designation means for designating whether the operation of the manual pulse generator is used for controlling the axial feed device of the machine tool or for drawing control on the display device;
Coordinate acquisition means for acquiring target coordinates to be drawn on the display device;
An operation amount obtaining means for obtaining a handle operation amount of the manual pulse generator;
When drawing control is specified by the specifying unit, the drawing target to be drawn on the display device is moved or moved based on the coordinates acquired by the coordinate acquiring unit and the operation amount acquired by the operation amount acquiring unit. A numerical control apparatus comprising: a drawing control means for enlarging / reducing.
前記手動パルス発生器の前記ハンドルの操作方向を取得する操作方向取得手段と
前記操作方向取得手段により取得した操作方向に基づき拡大するか縮小するかを決定する決定手段とを備えたことを特徴とする請求項1に記載の数値制御装置。
An operation direction acquisition unit that acquires an operation direction of the handle of the manual pulse generator, and a determination unit that determines whether to enlarge or reduce based on the operation direction acquired by the operation direction acquisition unit. The numerical control device according to claim 1.
前記手動パルス発生器は、X軸、Y軸、及びZ軸の中から所望の軸を選択する選択スイッチを有し、
前記描画制御手段は、前記選択スイッチにより選択された軸に従って前記描画対象を前記表示装置に描画することを特徴とする請求項1又は2に記載の数値制御装置。
The manual pulse generator has a selection switch for selecting a desired axis from among the X axis, the Y axis, and the Z axis,
The numerical control device according to claim 1, wherein the drawing control unit draws the drawing target on the display device according to an axis selected by the selection switch.
請求項1乃至3のいずれかに記載の数値制御装置の各種処理手段としてコンピュータを機能させるための数値制御プログラム。   A numerical control program for causing a computer to function as various processing means of the numerical control device according to claim 1. 請求項4に記載の数値制御プログラムを記録したコンピュータ読取可能な記録媒体。   The computer-readable recording medium which recorded the numerical control program of Claim 4.
JP2007246935A 2007-09-25 2007-09-25 Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program Pending JP2009076019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007246935A JP2009076019A (en) 2007-09-25 2007-09-25 Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007246935A JP2009076019A (en) 2007-09-25 2007-09-25 Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program

Publications (1)

Publication Number Publication Date
JP2009076019A true JP2009076019A (en) 2009-04-09

Family

ID=40610894

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007246935A Pending JP2009076019A (en) 2007-09-25 2007-09-25 Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program

Country Status (1)

Country Link
JP (1) JP2009076019A (en)

Similar Documents

Publication Publication Date Title
JP2007219830A (en) Numerical controller
JP4256353B2 (en) Servo control device and servo system adjustment method
US8332067B2 (en) Device and method for processing a robot control program
CN106462141B (en) Control device for machine tool
EP2985664B1 (en) Offset number setting device
JP6144596B2 (en) Display device
JP2006224279A (en) Robot imaging device
JP2007183724A (en) Monitor system in machine tool
JP6081981B2 (en) Numerical control device having automatic display means of teaching program
US10315305B2 (en) Robot control apparatus which displays operation program including state of additional axis
JP2016070720A (en) Image measurement device and guidance display method of image measurement device
JP5702833B2 (en) Numerical control device with screen display switching function following NC program
JP2009076019A (en) Numerical control device, numerical control program, and computer-readable recording medium recording numerical control program
JP6591941B2 (en) Numerical control device with manual handle feed function that can easily set the magnification of the axis movement amount
JP2016004337A (en) Machine tool
JP5307917B1 (en) Control device for index table
JP3981670B2 (en) Machining shape drawing device
JP2010179388A (en) Robot teaching system
JP2011067895A (en) Fine adjustment method of robot tool position, and robot control system
JP5972027B2 (en) Robot controller
JP2006301733A (en) Machine tool, machine tool system, and control method thereof
JP2010231518A (en) Robot teaching system
JP5110021B2 (en) Numerical control device for machine tools
JPH03121092A (en) Manual shift device for embroidery frame
JP2019159808A (en) Control unit, control method, and control program