JP2006079561A - Numerical controller, numerical control method, control program, and recording medium - Google Patents

Numerical controller, numerical control method, control program, and recording medium Download PDF

Info

Publication number
JP2006079561A
JP2006079561A JP2004266027A JP2004266027A JP2006079561A JP 2006079561 A JP2006079561 A JP 2006079561A JP 2004266027 A JP2004266027 A JP 2004266027A JP 2004266027 A JP2004266027 A JP 2004266027A JP 2006079561 A JP2006079561 A JP 2006079561A
Authority
JP
Japan
Prior art keywords
executed
sequential
program
sequential process
numerical control
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
JP2004266027A
Other languages
Japanese (ja)
Inventor
Koichi Yasumoto
孝一 安本
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 JP2004266027A priority Critical patent/JP2006079561A/en
Publication of JP2006079561A publication Critical patent/JP2006079561A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a numerical controller, a numerical control method, a control program and a recording medium by which it is possible to grasp which sequential process among a plurality of sequential processes is being executed even when a command including more than one sequential processes like a fixed cycle command is executed. <P>SOLUTION: In the numerical controller for gaining numerical value control of equipment operation according to a program organized by a plurality of commands, the plurality of commands organizing the program include the plurality of sequential processes and, every time the sequential process is executed, contents of a sequential process to be executed next are analyzed. As a result of analysis, information or the like to show a position of a structural apparatus of the equipment when a sequential process to be executed next is executed is outputted for display. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、旋盤、マシニングセンタ等の工作機械を制御するための数値制御(Numerical Control)装置、数値制御方法、制御プログラム及び記録媒体に関し、特に固定サイクル命令に従った運転時の作業進捗を容易に把握することができる数値制御装置、数値制御方法、制御プログラム及び記録媒体に関する。   The present invention relates to a numerical control device, a numerical control method, a control program, and a recording medium for controlling a machine tool such as a lathe or a machining center, and in particular, facilitates the progress of operation during operation according to a fixed cycle command. The present invention relates to a numerical control device, a numerical control method, a control program, and a recording medium that can be grasped.

例えば旋盤、マシニングセンタ等の工作機械を制御するための数値制御(Numerical Control)装置は、NC加工プログラムに従って工作機械の動作を制御し、工作物に対して加工を行う。NC加工プログラムは、準備機能(G機能、Gコード)、補助機能(M機能、Mコード)、主軸機能(Sコード)、送り機能(Fコード)、工具機能(T機能)等により、座標系の設定、工具又は工作物の移動指令、主軸の回転等を制御し、工作物に対して加工を行うためのプログラムであり、コンピュータで実行することにより、工作機械の動作を制御する。   For example, a numerical control device for controlling a machine tool such as a lathe or a machining center controls the operation of the machine tool according to the NC machining program and performs machining on the workpiece. NC machining program is coordinate system by preparation function (G function, G code), auxiliary function (M function, M code), spindle function (S code), feed function (F code), tool function (T function), etc. Is a program for controlling the setting of the tool, the movement command of the tool or the workpiece, the rotation of the spindle, etc., and machining the workpiece, and the operation of the machine tool is controlled by being executed by a computer.

また、中ぐり、穴あけ、タップ立て、及びこれらの組み合わせ等を行うために、あらかじめ定められた一連の作業シーケンスを一つにまとめた固定サイクル命令と呼ばれるNC加工プログラムがある。固定サイクル命令が実行された場合、中ぐり、穴あけ、タップ立て等の加工のための移動指令、主軸回転指令等を含む一連のNC加工プロセスが順次実行される。   In addition, there is an NC machining program called a fixed cycle instruction in which a series of predetermined work sequences are combined into one for performing boring, drilling, tapping, and combinations thereof. When the fixed cycle command is executed, a series of NC machining processes including a movement command for machining such as boring, drilling and tapping, a spindle rotation command, and the like are sequentially executed.

従来、工作機械の運転時には、表示装置の画面上にNC加工プログラムを識別する情報、例えばプログラム名、プログラムID等が表示されており、実行中の命令を示す位置にカーソルが表示されていた。ユーザは、NC加工プログラムに従った作業がどこまで進行したか、画面上に表示されているカーソルの位置によって目視確認することができ、工作物に対する加工の進捗を把握することが可能となっていた(特許文献1参照)。
特公平6−85132号公報
Conventionally, during operation of a machine tool, information for identifying an NC machining program, such as a program name and a program ID, is displayed on the screen of a display device, and a cursor is displayed at a position indicating a command being executed. The user can visually check the progress of the work according to the NC machining program by the position of the cursor displayed on the screen, and can grasp the progress of machining on the workpiece. (See Patent Document 1).
Japanese Patent Publication No. 6-85132

しかし、上述した固定サイクル命令のように、一命令の実行中に複数の順次プロセスを実行する命令を実行する場合、起動された命令が実行中であるか否かを把握することはできるが、起動された命令が含む複数の順次プロセスのうち、どの順次プロセスが実行中であるのか把握することができないという問題点があった。すなわち、画面には、稼動中の命令を示す位置にカーソルが表示されているにすぎず、起動された命令が含む複数の順次プロセス毎の進捗については表示することができなかった。   However, when executing an instruction that executes a plurality of sequential processes during execution of one instruction, such as the fixed cycle instruction described above, it is possible to grasp whether the activated instruction is being executed, There is a problem that it is impossible to grasp which sequential process is being executed among a plurality of sequential processes included in the activated instruction. That is, the cursor is only displayed on the screen at the position indicating the active command, and the progress for each of the sequential processes included in the started command cannot be displayed.

したがって、例えば固定サイクル命令を実行する前に、固定サイクル命令実行前の工具の位置及び固定サイクル命令実行後の工具の位置を確認することはできるものの、固定サイクル命令実行中に次に移動する工具の位置を知ることはできず、タップ立て等の加工のための移動指令による工具の移動中に工具が他の物品に衝突する等の障害が発生するおそれも残されていた。   Therefore, for example, before executing the fixed cycle command, the tool position before execution of the fixed cycle command and the position of the tool after execution of the fixed cycle command can be confirmed, but the tool that moves next during execution of the fixed cycle command. The position of the tool cannot be known, and there is a possibility that a failure such as the collision of the tool with another article occurs during the movement of the tool according to the movement command for processing such as tapping.

本発明は、斯かる事情に鑑みてなされたものであり、固定サイクル命令のように、一命令に複数の順次プロセスを含む命令を実行する場合であっても、複数の順次プロセスのうち、どの順次プロセスが実行中であるのか把握することができる数値制御装置、数値制御方法、制御プログラム及び記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and even when executing an instruction including a plurality of sequential processes in one instruction, such as a fixed cycle instruction, which of the plurality of sequential processes is selected. It is an object of the present invention to provide a numerical control device, a numerical control method, a control program, and a recording medium that can grasp whether a sequential process is being executed.

また本発明は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置に関する情報を表示することにより、例えば工具が他の物品に衝突する等の障害の発生を未然に防止することができる数値制御装置、数値制御方法、制御プログラム及び記録媒体を提供することを目的とする。   In addition, the present invention prevents the occurrence of a failure such as a tool colliding with another article, for example, by displaying information on the position of the component device when the sequential process to be executed next is executed. An object of the present invention is to provide a numerical control device, a numerical control method, a control program, and a recording medium that can be used.

上記目的を達成するために第1発明に係る数値制御装置は、複数の命令で構成されたプログラムに従って、機器の運転を数値制御する数値制御装置において、前記プログラムを構成する複数の命令は複数の順次プロセスを含み、順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析する手段と、該手段で解析した結果を外部へ表示出力する手段とを備えることを特徴とする。   In order to achieve the above object, a numerical control device according to a first aspect of the present invention is a numerical control device that numerically controls the operation of a device in accordance with a program configured by a plurality of instructions. It includes a sequential process, and includes means for analyzing the contents of the sequential process to be executed next each time the sequential process is executed, and means for displaying and outputting the result analyzed by the means to the outside.

また、第2発明に係る数値制御装置は、第1発明において、前記解析した結果は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を示す情報であることを特徴とする。   Further, in the numerical control device according to the second invention, in the first invention, the result of the analysis is information indicating a position of a component device of a device when a sequential process to be executed next is executed. And

また、第3発明に係る数値制御方法は、複数の命令で構成されたプログラムに従って、コンピュータが機器の運転を数値制御する数値制御方法において、前記プログラムを構成する複数の命令が複数の順次プロセスを含み、前記コンピュータは、順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析し、解析した結果を外部へ表示出力することを特徴とする。   The numerical control method according to the third aspect of the present invention is the numerical control method in which the computer numerically controls the operation of the device according to the program composed of a plurality of instructions, wherein the plurality of instructions constituting the program perform a plurality of sequential processes. In addition, each time the sequential process is executed, the computer analyzes the contents of the sequential process to be executed next, and outputs the analysis result to the outside.

また、第4発明に係る数値制御方法は、第3発明において、前記解析した結果は、次に実行する順次プロセスが実行された場合の機器の構成装置の位置を示す情報であることを特徴とする。   A numerical control method according to a fourth invention is characterized in that, in the third invention, the analyzed result is information indicating a position of a component device of a device when a sequential process to be executed next is executed. To do.

また、第5発明に係る制御プログラムは、複数の命令で構成されたプログラムに従って、機器の運転を数値制御する数値制御装置で実行することが可能な制御プログラムにおいて、前記プログラムを構成する複数の命令が複数の順次プロセスを含み、前記数値制御装置を、順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析する手段、及び該手段で解析した結果を外部へ表示出力する手段として機能させることを特徴とする。   The control program according to the fifth aspect of the present invention is a control program that can be executed by a numerical control device that numerically controls the operation of a device in accordance with a program configured by a plurality of instructions. Includes a plurality of sequential processes, and each time the sequential control process is executed, the numerical control device is a means for analyzing the contents of the sequential process to be executed next, and a means for displaying and outputting the result analyzed by the means to the outside It is made to function.

また、第6発明に係る制御プログラムは、第5発明において、前記解析した結果は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を示す情報であることを特徴とする。   The control program according to a sixth aspect of the present invention is the control program according to the fifth aspect, wherein the analyzed result is information indicating a position of a component device of a device when a sequential process to be executed next is executed. To do.

また、第7発明に係る記録媒体は、複数の命令で構成されたプログラムに従って、機器の運転を数値制御する数値制御装置で実行することが可能な制御プログラムを記録した記録媒体において、前記プログラムを構成する複数の命令が複数の順次プロセスを含み、前記数値制御装置を、順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析する手段、及び該手段で解析した結果を外部へ表示出力する手段として機能させる制御プログラムを記録したことを特徴とする。   According to a seventh aspect of the present invention, there is provided a recording medium that records a control program that can be executed by a numerical control device that numerically controls the operation of a device in accordance with a program composed of a plurality of instructions. A plurality of instructions comprising a plurality of sequential processes, each time the numerical control device executes the sequential processes, means for analyzing the contents of the sequential processes to be executed next, and the results analyzed by the means to the outside A control program that functions as a means for display output is recorded.

また、第8発明に係る記録媒体は、第7発明において、前記解析した結果は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を示す情報である制御プログラムを記録したことを特徴とする。   According to an eighth aspect of the present invention, there is provided a recording medium according to the seventh aspect, wherein the analysis result records a control program that is information indicating a position of a component device of a device when a sequential process to be executed next is executed. It is characterized by that.

第1発明、第3発明、第5発明又は第7発明では、プログラムを構成する複数の命令に含まれる複数の順次プロセスを一プロセスずつ実行する都度、次に実行すべき順次プロセスの内容を解析し、解析した結果を外部へ表示出力する。これにより、複数の順次プロセスで構成された命令の全ての順次プロセスの実行が完了する前に、該命令を構成する順次プロセス毎の進捗を外部へ表示出力することができ、例えば工具の移動先等を一の順次プロセスを実行する毎に確認することにより、加工のための移動指令による工具の移動中に工具が他の物品に衝突する等の障害の発生を未然に防止することが可能となる。   In the first invention, the third invention, the fifth invention, or the seventh invention, each time a plurality of sequential processes included in a plurality of instructions constituting a program are executed one by one, the contents of the sequential process to be executed next are analyzed. And display the analysis result to the outside. As a result, before the execution of all the sequential processes of the instructions composed of a plurality of sequential processes is completed, the progress of each sequential process constituting the instruction can be displayed and output to the outside, for example, the movement destination of the tool Etc. every time one sequential process is executed, it is possible to prevent the occurrence of troubles such as the tool colliding with another article during the movement of the tool by the movement command for machining. Become.

第2発明、第4発明、第6発明又は第8発明では、解析した結果として、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を外部へ表示出力する。これにより、複数の順次プロセスで構成された命令の全ての順次プロセスの実行が完了する前に、一の順次プロセスの実行が完了する都度、機器の構成装置、例えば切削工具等の移動位置を確認することができ、加工のための移動指令による工具の移動中に工具が他の物品に衝突する等の障害の発生を未然に防止することが可能となる。   In the second invention, the fourth invention, the sixth invention, or the eighth invention, as a result of the analysis, the position of the component device of the device when the sequential process to be executed next is executed is output to the outside. As a result, before the execution of all the sequential processes of the instructions composed of a plurality of sequential processes is completed, the movement position of the equipment component device, such as a cutting tool, is confirmed each time the execution of one sequential process is completed. Therefore, it is possible to prevent the occurrence of troubles such as the collision of the tool with another article during the movement of the tool by the movement command for machining.

本発明によれば、一命令が複数の順次プロセスを含む、いわゆる固定サイクル命令のような複数の順次プロセスで構成された命令が起動された場合であっても、命令を構成する全ての順次プロセスの実行が完了する前に、該命令が含む複数の順次プロセス毎の進捗を表示出力することができ、例えば加工のための移動指令による工具の移動中に工具が他の物品に衝突する等の障害の発生を未然に防止することが可能となる。   According to the present invention, even when an instruction composed of a plurality of sequential processes such as a so-called fixed cycle instruction is activated, where one instruction includes a plurality of sequential processes, all the sequential processes constituting the instruction The progress of each sequential process included in the command can be displayed and output before the execution of the tool is completed. For example, the tool collides with another article during the movement of the tool by the movement command for machining. It becomes possible to prevent the occurrence of a failure.

以下に、本発明をその実施の形態を示す図面に基づいて説明する。図1は、本発明の実施の形態に係る数値制御装置の構成を示すブロック図である。本発明の実施の形態に係る数値制御装置は、少なくともCPU(中央制御装置)10を中心として、CPU10に内部バス18を介して接続したROM11、RAM12、RAM13、表示装置14、キーボード15、モータ(駆動装置)21等の外部装置と通信可能に接続してある外部インタフェース16、補助記憶装置17等で構成されている。   Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments thereof. FIG. 1 is a block diagram showing a configuration of a numerical controller according to an embodiment of the present invention. The numerical control device according to the embodiment of the present invention includes at least a CPU (central control device) 10 as a center, and a ROM 11, RAM 12, RAM 13, display device 14, keyboard 15, motor (connected to the CPU 10 via an internal bus 18. The external interface 16 and the auxiliary storage device 17 are connected to be communicable with an external device such as a drive device 21.

CPU10は、内部バス18を介して数値制御装置の上述したようなハードウェア各部と接続されており、上述したハードウェア各部を制御するとともに、ROM11に記憶されている処理プログラム、例えば機器のNC加工プログラムを実行する。   The CPU 10 is connected to the above-described hardware units of the numerical control device via the internal bus 18 and controls the above-described hardware units, and also stores a processing program stored in the ROM 11, for example, NC processing of the device Run the program.

ROM11は、不揮発性の記録媒体であり、数値制御装置を制御するプログラムを記録している。RAM12は、フラッシュメモリ等の不揮発性の記録媒体であり、機器の数値制御に用いるプログラムであって、作業者が編集可能なNC加工プログラムを記録している。RAM12は、複数のNC加工プログラムを記録することができ、運転時に選択して用いることができる。NC加工プログラムは、通信手段(図示せず)を介して外部のコンピュータから、又はDVD、CD−ROM等の可搬型記録媒体から補助記憶装置17を介して取得することが可能である。   The ROM 11 is a non-volatile recording medium, and stores a program for controlling the numerical control device. The RAM 12 is a nonvolatile recording medium such as a flash memory, and is a program used for numerical control of the device, and records an NC machining program that can be edited by an operator. The RAM 12 can record a plurality of NC machining programs and can be selected and used during operation. The NC machining program can be acquired from an external computer via communication means (not shown) or from a portable recording medium such as a DVD or CD-ROM via the auxiliary storage device 17.

RAM13は、フラッシュメモリ等の不揮発性の記録媒体であり、運転に用いるNC加工プログラムのプログラム番号、その時点で実行している命令及び順次プロセスを識別する識別情報、例えば命令番号、プロセス番号等を記録する。   The RAM 13 is a non-volatile recording medium such as a flash memory, and stores the program number of the NC machining program used for operation, the instruction being executed at that time, and identification information for identifying the sequential process, such as the instruction number and the process number. Record.

表示装置14は、ユーザへ画像を表示出力する液晶表示装置(LCD)、表示ディスプレイ(CRT)等の表示装置であり、運転中のNC加工プログラムの内容及び実行しているプロセスの内容を表示する。   The display device 14 is a display device such as a liquid crystal display device (LCD) or a display device (CRT) that displays and outputs an image to the user, and displays the contents of the NC machining program being operated and the contents of the process being executed. .

キーボード15は、NC加工プログラムの実行に必要な条件等の情報を、テキストデータを打鍵することにより入力する。外部インタフェース16は、機器を移動、回転等する駆動源等へ、実行するNC加工プログラムに沿った指示信号を送出する。モータ21は、NC加工プログラムに従って作動し、研削装置等の工具の回転、移動等の駆動源となる。   The keyboard 15 inputs information such as conditions necessary for executing the NC machining program by typing text data. The external interface 16 sends an instruction signal in accordance with the NC machining program to be executed to a drive source that moves and rotates the device. The motor 21 operates in accordance with the NC machining program and serves as a driving source for rotating and moving a tool such as a grinding device.

補助記憶装置17は、CD、DVD等の可搬型記録媒体4を用い、RAM12へ、CPU10が処理するNC加工プログラム、データ等をダウンロードする。また、CPU10が処理したデータをバックアップすべく書き込むことも可能である。   The auxiliary storage device 17 uses the portable recording medium 4 such as a CD or DVD, and downloads the NC processing program, data, and the like processed by the CPU 10 to the RAM 12. It is also possible to write the data processed by the CPU 10 for backup.

以下、上述した構成の数値制御装置に用いるNC加工プログラムのうち、固定サイクル命令の構造について説明する。図2は、固定サイクル命令の1つであるドリルサイクルG81が含む順次プロセスの例示図である。固定サイクル命令は、図2に示すように複数の順次プロセスを含む。   Hereinafter, the structure of the fixed cycle command in the NC machining program used in the numerical control apparatus having the above-described configuration will be described. FIG. 2 is an illustration of a sequential process included in a drill cycle G81, which is one of the fixed cycle instructions. The fixed cycle instruction includes a plurality of sequential processes as shown in FIG.

図2の例では、固定サイクル命令であるドリルサイクルG81は、(1)位置決めプロセス1、(2)位置決めプロセス2、(3)切削送りプロセス、(4)ドウエルプロセス、(5)位置決めプロセス3の5つの順次プロセスを含み、各プロセスを順次実行する。   In the example of FIG. 2, the drill cycle G81 which is a fixed cycle instruction includes (1) positioning process 1, (2) positioning process 2, (3) cutting feed process, (4) dwell process, and (5) positioning process 3. It includes five sequential processes and executes each process sequentially.

図3は、図2のドリルサイクルG81による切削工具のZ軸方向の動きの模式図である。位置決めプロセス1でX軸方向‘10’及びY軸方向‘20’のドリル対象位置へ切削工具(ドリル)31を移動して位置決めし、位置決めプロセス2でZ軸方向の移動開始位置‘50’へ移動して位置決めする。次に切削送りプロセスによって、Z軸方向の位置を‘30’まで早送りした後、送り速度3000mm/分で切削を開始する。そして、ドウエルプロセスで、Z軸方向の位置が‘0’になった時点で1秒間ドウエルし、位置決めプロセス3でZ軸方向の終了位置‘50’へ早送り復帰する。   FIG. 3 is a schematic diagram of the movement of the cutting tool in the Z-axis direction according to the drill cycle G81 of FIG. In the positioning process 1, the cutting tool (drill) 31 is moved and positioned to the drill target position in the X-axis direction “10” and the Y-axis direction “20”, and in the positioning process 2 to the movement start position “50” in the Z-axis direction. Move and position. Next, the Z-axis direction position is rapidly fed to ‘30’ by a cutting feed process, and then cutting is started at a feed speed of 3000 mm / min. In the dwell process, when the position in the Z-axis direction becomes ‘0’, the dwell is performed for 1 second, and in the positioning process 3, the fast-forward return to the end position ‘50’ in the Z-axis direction is performed.

従来の数値制御装置では、上述したドリルサイクルのような固定サイクル命令を実行する場合、命令の実行前及び命令の実行完了後の工具の状態(工具の移動位置、回転数等)を表示装置14の表示画面に表示する。Z軸方向の位置に着目した場合、ドリルサイクル実行前の位置は、ドリルサイクル実行前に完了した命令の実行完了時の位置であり、ドリルサイクル実行完了後は、切削工具31が早送り復帰したZ軸方向の終了位置‘50’のみを表示する。   In the conventional numerical control device, when a fixed cycle command such as the above-described drill cycle is executed, the state of the tool (tool movement position, rotation speed, etc.) before execution of the command and after execution of the command is displayed on the display device 14. On the display screen. When focusing on the position in the Z-axis direction, the position before execution of the drill cycle is the position at the completion of execution of the instruction that was completed before execution of the drill cycle. Only the end position '50' in the axial direction is displayed.

したがって、複数のプロセスからなるドリルサイクル実行の中途で、現在実行中の順次プロセスの次の順次プロセスの動作が完了した状態での切削工具31のZ軸方向の位置を把握することができず、他のNC加工プログラムにより制御される、切削対象となる素材を移動する台座の位置と、切削時の切削工具31のZ点との間で干渉が生じているか否かを、ドリルサイクル実行中に確認することができない。   Therefore, the position of the cutting tool 31 in the Z-axis direction in the state in which the operation of the sequential process next to the sequential process currently being executed is completed in the middle of the drill cycle consisting of a plurality of processes cannot be grasped. Whether or not there is an interference between the position of the pedestal that moves the material to be cut and the Z point of the cutting tool 31 during cutting, controlled by another NC machining program, during the drill cycle execution I can't confirm.

そこで、本実施の形態に係る数値制御装置では、NC加工プログラムが含む複数の順次プロセス毎に、工具の状態(工具の移動位置、回転数等)を表示装置14の表示画面に表示する。図4及び図5は、本発明の実施の形態に係る数値制御装置のCPU10の処理手順を示すフローチャートである。   Therefore, in the numerical control device according to the present embodiment, the state of the tool (tool movement position, rotation speed, etc.) is displayed on the display screen of the display device 14 for each of a plurality of sequential processes included in the NC machining program. 4 and 5 are flowcharts showing the processing procedure of the CPU 10 of the numerical controller according to the embodiment of the present invention.

数値制御装置のCPU10は、キーボード15からの起動信号の入力の有無を確認する(ステップS401)。CPU10が、キーボード15からの起動信号の入力を受け付けた場合(ステップS401:YES)、CPU10は、受け付けた入力が指示するNC加工プログラム(以後、実行されるNC加工プログラムを実行プログラムという。)の最初の命令を実行する(ステップS402)。CPU10は、ROM11に記憶してあるプロセス数テーブル111を照会して(ステップS403)、NC加工プログラムが含む命令のうち、実行する命令が複数の順次プロセスを含んでいるか否かを判断する(ステップS404)。   The CPU 10 of the numerical controller confirms whether or not an activation signal is input from the keyboard 15 (step S401). When the CPU 10 receives an input of an activation signal from the keyboard 15 (step S401: YES), the CPU 10 is an NC machining program indicated by the received input (hereinafter, the NC machining program to be executed is referred to as an execution program). The first instruction is executed (step S402). The CPU 10 inquires the process number table 111 stored in the ROM 11 (step S403), and determines whether or not the instruction to be executed includes a plurality of sequential processes among the instructions included in the NC machining program (step S403). S404).

図6は、ROM11に記憶してあるプロセス数テーブル111のデータ構成の例示図である。図6に示すように、NC加工プログラムに用いられる命令毎に順次プロセス数が記憶してある。したがって、例えば固定サイクル命令の1つであるドリルサイクル‘G81’は順次プロセス数が‘5’であることを確認することができる。   FIG. 6 is a view showing an example of the data structure of the process number table 111 stored in the ROM 11. As shown in FIG. 6, the number of processes is sequentially stored for each instruction used in the NC machining program. Therefore, for example, it is possible to confirm that the number of processes in the drill cycle 'G81' which is one of the fixed cycle instructions is '5' sequentially.

CPU10が、実行プログラムが含む命令のうち、実行する命令が複数の順次プロセスを含んでいると判断した場合(ステップS404:YES)、照会した順次プロセス数をRAM13に記憶し(ステップS405)、図5の処理へと移行する。   When the CPU 10 determines that the instruction to be executed includes a plurality of sequential processes among the instructions included in the execution program (step S404: YES), the CPU 13 stores the inquired sequential process number in the RAM 13 (step S405). The process proceeds to 5.

CPU10は、RAM13に記憶してあるカウンタを‘1’へ初期化し(ステップS501)、カウンタ値に対応する順次プロセスの内容を解析する(ステップS502)。ここでは、実行する命令の1番目の順次プロセスの内容を解析する。   The CPU 10 initializes the counter stored in the RAM 13 to “1” (step S501), and analyzes the contents of the sequential process corresponding to the counter value (step S502). Here, the contents of the first sequential process of the instruction to be executed are analyzed.

CPU10は、カウンタ値に対応する順次プロセスの内容の解析結果に基づいて、該順次プロセスの実行完了後の工具の状態、例えば工具の位置、回転数等を、表示装置14に表示する(ステップS503)。   Based on the analysis result of the contents of the sequential process corresponding to the counter value, the CPU 10 displays the state of the tool after execution of the sequential process, for example, the position of the tool, the number of rotations, and the like on the display device 14 (step S503). ).

CPU10は、カウンタに記憶されているカウンタ値に対応する順次プロセスを実行する(ステップS504)。例えばカウンタが初期化された直後のカウンタ値は‘1’であるので、CPU10は、実行している命令の1番目の順次プロセスを実行する。以下、カウンタ値が‘n’(nは自然数)である場合、CPU10は実行している命令のn番目の順次プロセスを実行する。   The CPU 10 executes a sequential process corresponding to the counter value stored in the counter (step S504). For example, since the counter value immediately after the counter is initialized is “1”, the CPU 10 executes the first sequential process of the instruction being executed. Hereinafter, when the counter value is 'n' (n is a natural number), the CPU 10 executes the nth sequential process of the instruction being executed.

CPU10は、カウンタ値を‘1’インクリメントし(ステップS505)、カウンタ値に対応する順次プロセスの内容を解析する(ステップS506)。例えば、実行している命令の1番目の順次プロセスの実行中に、2番目の順次プロセスの内容を解析する。以下、実行している命令のn番目の順次プロセスの実行中に、(n+1)番目の順次プロセスの内容を解析する。   The CPU 10 increments the counter value by “1” (step S505), and analyzes the contents of the sequential process corresponding to the counter value (step S506). For example, the contents of the second sequential process are analyzed during the execution of the first sequential process of the instruction being executed. Hereinafter, during the execution of the nth sequential process of the instruction being executed, the contents of the (n + 1) th sequential process are analyzed.

CPU10は、カウンタ値に対応する順次プロセスの内容の解析結果に基づいて、該順次プロセスの実行完了後の工具の状態、例えば工具の位置、回転数等を、表示装置14に表示する(ステップS507)。したがって、所定の順次プロセスの実行中に、次に実行予定の順次プロセスの実行が完了した場合の工具の状態を表示画面14で確認することができる。   Based on the analysis result of the contents of the sequential process corresponding to the counter value, the CPU 10 displays the state of the tool after execution of the sequential process, for example, the position of the tool, the number of rotations, and the like on the display device 14 (step S507). ). Therefore, during the execution of the predetermined sequential process, the state of the tool when the execution of the next sequential process scheduled to be executed is completed can be confirmed on the display screen 14.

CPU10は、実行中の順次プロセスが完了したか否かを判断し(ステップS508)、CPU10が実行中の順次プロセスが完了したと判断した場合(ステップS508:YES)、カウンタのカウンタ値が、記憶してある実行している命令が含む順次プロセス数を超えたか否かを判断する(ステップS509)。   The CPU 10 determines whether or not the sequential process being executed is completed (step S508). If the CPU 10 determines that the sequential process being executed is complete (step S508: YES), the counter value of the counter is stored. It is then determined whether or not the number of sequential processes included in the executed instruction has been exceeded (step S509).

CPU10が、カウンタのカウンタ値が、記憶してある実行している命令が含む順次プロセス数を超えたと判断した場合(ステップS509:YES)、すべての順次プロセスを実行していることから、図4のステップS406へと処理を移行する。CPU10が、カウンタのカウンタ値が、記憶してある実行している命令が含む順次プロセス数を超えていないと判断した場合(ステップS509:NO)、ステップS504へ戻って、上述した処理を繰り返し実行する。   When the CPU 10 determines that the counter value of the counter exceeds the number of sequential processes included in the stored instruction to be executed (step S509: YES), all the sequential processes are executed. The process proceeds to step S406. When the CPU 10 determines that the counter value of the counter does not exceed the number of sequential processes included in the stored instruction being executed (step S509: NO), the process returns to step S504 and the above-described processing is repeatedly executed. To do.

CPU10が、実行プログラムが含む命令のうち、実行する命令が複数の順次プロセスを含まないと判断した場合(ステップS404:NO)、CPU10は、従来と同様に命令を実行し、実行した命令が実行プログラムが含む最後の命令であるか否かを判断する(ステップS406)。   When the CPU 10 determines that the instruction to be executed among the instructions included in the execution program does not include a plurality of sequential processes (step S404: NO), the CPU 10 executes the instruction as in the conventional case, and the executed instruction is executed. It is determined whether or not it is the last instruction included in the program (step S406).

CPU10が、実行した命令が実行プログラムが含む最後の命令でないと判断した場合(ステップS406:NO)、CPU10は、次の命令を実行し(ステップS407)、以下ステップS403以下の処理を繰り返し実行する。CPU10が、実行した命令が実行プログラムが含む最後の命令であると判断した場合(ステップS406:YES)、実行プログラムの実行が完了する。   When the CPU 10 determines that the executed instruction is not the last instruction included in the execution program (step S406: NO), the CPU 10 executes the next instruction (step S407), and repeatedly executes the processes after step S403. . When the CPU 10 determines that the executed instruction is the last instruction included in the execution program (step S406: YES), execution of the execution program is completed.

図7は、本発明の実施の形態に係る数値制御装置の表示装置14での画面表示の例示図である。本発明の実施の形態に係る数値制御装置は、工具「01 DRRILL」につき、例えば、従来表示していない「次移動位置」を表示する領域を有している。「次移動位置」は、所定の順次プロセスの実行中に、該順次プロセスの次の順次プロセスの実行完了時に工具が移動している座標に関する情報を示している。   FIG. 7 is a view showing an example of screen display on the display device 14 of the numerical controller according to the embodiment of the present invention. The numerical control device according to the embodiment of the present invention has an area for displaying, for example, a “next movement position” that is not conventionally displayed for the tool “01 DRRILL”. The “next movement position” indicates information related to coordinates at which the tool is moved when execution of the next sequential process following the sequential process is completed during execution of the predetermined sequential process.

図8は、本発明の実施の形態に係る数値制御装置の「次移動位置」領域の表示の変遷を示す図である。図8では、図2で例示したドリルサイクルに対応した「次移動位置」領域の表示の変遷を示している。   FIG. 8 is a diagram showing the transition of the display of the “next movement position” area of the numerical control apparatus according to the embodiment of the present invention. FIG. 8 shows the transition of the display of the “next movement position” area corresponding to the drill cycle illustrated in FIG.

図8に示すように、ドリルサイクルが実行する命令として選択された時点では、最初の順次プロセス完了時、すなわち位置決めプロセス1により移動した時点での工具のX座標及びY座標が表示される。次に、位置決めプロセス1の実行中に位置決めプロセス2の内容を解析し、位置決めプロセス2により移動した時点での工具のZ座標が表示される。   As shown in FIG. 8, when the drill cycle is selected as an instruction to be executed, the X coordinate and Y coordinate of the tool when the first sequential process is completed, that is, when moved by the positioning process 1 are displayed. Next, the contents of the positioning process 2 are analyzed during the execution of the positioning process 1, and the Z coordinate of the tool when moved by the positioning process 2 is displayed.

以下、位置決めプロセス2の実行中には、切削送りプロセスの内容を解析し、切削送りプロセスにより移動した時点での工具のZ座標が、切削送りプロセスの実行中には、ドウエルプロセスの内容を解析し、ドウエルプロセスにより移動しない旨を示す情報が、ドウエルプロセスの実行中には、位置決めプロセス3の内容を解析し、位置決めプロセス3により移動した時点での工具のZ座標が、それぞれ表示される。   Hereinafter, the contents of the cutting feed process are analyzed during the execution of the positioning process 2, and the Z coordinate of the tool when moved by the cutting feed process is analyzed, while the contents of the dwell process are analyzed during the execution of the cutting feed process. When the dwell process is executed, the information indicating that the tool does not move by the dwell process is analyzed. The contents of the positioning process 3 are analyzed, and the Z coordinate of the tool when the tool is moved by the positioning process 3 is displayed.

これにより、実行する命令に含まれる各順次プロセス毎に、次の順次プロセスの実行完了時の工具の状態を確認することができ、例えばドリルプロセスの場合、切削素材を載置してある台座と、切削する工具との干渉が生じるか否かを、逐次確認することができ、干渉による工具の損傷等を未然に防止することが可能となる。   As a result, for each sequential process included in the command to be executed, the state of the tool at the completion of the execution of the next sequential process can be confirmed. For example, in the case of a drill process, the base on which the cutting material is placed and Whether or not interference with the tool to be cut occurs can be sequentially confirmed, and it is possible to prevent damage to the tool due to interference.

以上、工具の移動位置を表示する場合について説明しているが、工具の状態を示す情報はこれに限定されるものではなく、例えば工具の主軸の回転数、送り速度、動作を識別するMコード等を表示するものであっても良い。   Although the case where the moving position of the tool is displayed has been described above, the information indicating the state of the tool is not limited to this. For example, the M code for identifying the rotation speed, feed speed, and operation of the tool spindle Etc. may be displayed.

また、実行する命令を表示装置14の画面に表示し、順次プロセスの実行毎に次に実行すべき順次プロセスを反転表示しても良い。図9は、本発明の実施の形態に係る数値制御装置の表示装置での反転表示を用いる場合の画面表示の例示図である。   In addition, an instruction to be executed may be displayed on the screen of the display device 14, and a sequential process to be executed next may be displayed in reverse every time the sequential process is executed. FIG. 9 is a view showing an example of the screen display when the reverse display is used in the display device of the numerical control device according to the embodiment of the present invention.

図9の例は、実行プログラムを識別するプログラム番号が‘0001’である実行プログラムが選択された場合の画面表示の例である。図9において、横向き矢印は、現在実行されている命令を、下向き矢印は解析された命令を、それぞれ示している。   The example of FIG. 9 is an example of a screen display when an execution program whose program number for identifying an execution program is “0001” is selected. In FIG. 9, the horizontal arrow indicates the currently executed instruction, and the downward arrow indicates the analyzed instruction.

実行中である命令‘G81’は図2に示す複数の順次プロセスを有している。したがって、図2の(1)に示す順次プロセスの解析後は、図9(1)のように反転表示し、図2の(2)に示す順次プロセスの解析後は、図9(2)のように反転表示する。以下、図2の(3)に示す準じプロセスの解析後は、図9(3)のように反転表示し、図2の(4)に示す順次プロセスの解析後は、図9(4)のように反転表示し、図2の(5)に示す順次プロセスの解析後は、図9(5)のように反転表示する。   The instruction “G81” being executed has a plurality of sequential processes shown in FIG. Therefore, after the analysis of the sequential process shown in (1) of FIG. 2, the display is reversed as shown in FIG. 9 (1), and after the analysis of the sequential process shown in (2) of FIG. Is displayed in reverse. Hereinafter, after the analysis of the conforming process shown in FIG. 2 (3), the display is reversed as shown in FIG. 9 (3), and after the sequential process shown in FIG. 2 (4), the analysis of FIG. 9 (4) is performed. After the analysis of the sequential process shown in FIG. 2 (5), the display is highlighted as shown in FIG. 9 (5).

このように、表示された実行する命令が含む順次プロセスのうち、実行中の順次プロセスの次に実行する順次プロセスの該当部分を反転表示することにより、次に実行する順次プロセスによる工具の移動位置等を事前に把握することが容易となり、工具の干渉等を未然に防止することが可能となる。   In this way, among the sequential processes included in the displayed instruction to be executed, the corresponding part of the sequential process to be executed next to the sequential process being executed is highlighted so that the tool movement position by the next sequential process to be executed is displayed. And the like can be easily grasped in advance, and it is possible to prevent tool interference and the like.

なお、本実施の形態では、実行する命令が含む順次プロセスの該当部分を反転表示した例につき説明しているが、反転表示に限定されるものではなく、他の表示方法、例えば点滅表示、大きさ、輝度、色彩等を変更した強調表示等であっても良い。   In this embodiment, an example in which a corresponding part of a sequential process included in an instruction to be executed is displayed in reverse video is described. However, the present invention is not limited to reverse display, and other display methods such as flashing display, In addition, highlighting with brightness, color, etc. changed may be used.

また、本発明は上述した実施の形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の形態で実施することができる。   The present invention is not limited to the above-described embodiments, and can be implemented in various forms without departing from the gist of the present invention.

本発明の実施の形態に係る数値制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the numerical control apparatus which concerns on embodiment of this invention. 固定サイクル命令の1つであるドリルサイクルG81が含む順次プロセスの例示図である。It is an illustration figure of the sequential process which the drill cycle G81 which is one of the fixed cycle instructions includes. ドリルサイクルG81による切削工具のZ軸方向の動きの模式図である。It is a schematic diagram of the movement of the cutting tool in the Z-axis direction by the drill cycle G81. 本発明の実施の形態に係る数値制御装置のCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU of the numerical control apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る数値制御装置のCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU of the numerical control apparatus which concerns on embodiment of this invention. ROMに記憶してあるプロセス数テーブルのデータ構成の例示図である。It is an illustration figure of the data structure of the process number table memorize | stored in ROM. 本発明の実施の形態に係る数値制御装置の表示装置での画面表示の例示図である。It is an illustration figure of the screen display with the display apparatus of the numerical control apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る数値制御装置の「次移動位置」領域の表示の変遷を示す図である。It is a figure which shows the transition of a display of the "next movement position" area | region of the numerical control apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る数値制御装置の表示装置での反転表示を用いる場合の画面表示の例示図である。It is an illustration figure of the screen display in the case of using the reverse display in the display apparatus of the numerical control apparatus which concerns on embodiment of this invention.

符号の説明Explanation of symbols

4 可搬型記録媒体
10 CPU
11 ROM
12、13 RAM
14 表示装置
15 キーボード
16 外部インタフェース
17 補助記憶装置
21 モータ
31 切削工具
4 Portable recording medium 10 CPU
11 ROM
12, 13 RAM
14 Display device 15 Keyboard 16 External interface 17 Auxiliary storage device 21 Motor 31 Cutting tool

Claims (8)

複数の命令で構成されたプログラムに従って、機器の運転を数値制御する数値制御装置において、
前記プログラムを構成する複数の命令は複数の順次プロセスを含み、
順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析する手段と、
該手段で解析した結果を外部へ表示出力する手段と
を備えることを特徴とする数値制御装置。
In a numerical control device that numerically controls the operation of a device according to a program composed of a plurality of instructions,
The plurality of instructions constituting the program includes a plurality of sequential processes,
Means for analyzing the contents of the sequential process to be executed next each time the sequential process is executed;
And a means for displaying and outputting the result of analysis by the means to the outside.
前記解析した結果は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を示す情報であることを特徴とする請求項1記載の数値制御装置。   The numerical control apparatus according to claim 1, wherein the analysis result is information indicating a position of a component device of a device when a sequential process to be executed next is executed. 複数の命令で構成されたプログラムに従って、コンピュータが機器の運転を数値制御する数値制御方法において、
前記プログラムを構成する複数の命令が複数の順次プロセスを含み、
前記コンピュータは、
順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析し、
解析した結果を外部へ表示出力することを特徴とする数値制御方法。
In a numerical control method in which a computer numerically controls the operation of a device according to a program composed of a plurality of instructions,
The plurality of instructions constituting the program includes a plurality of sequential processes,
The computer
Each time a sequential process is executed, the contents of the sequential process to be executed next are analyzed.
A numerical control method characterized in that the analysis result is displayed and output to the outside.
前記解析した結果は、次に実行する順次プロセスが実行された場合の機器の構成装置の位置を示す情報であることを特徴とする請求項3記載の数値制御方法。   4. The numerical control method according to claim 3, wherein the analyzed result is information indicating a position of a component device of a device when a sequential process to be executed next is executed. 複数の命令で構成されたプログラムに従って、機器の運転を数値制御する数値制御装置で実行することが可能な制御プログラムにおいて、
前記プログラムを構成する複数の命令が複数の順次プロセスを含み、
前記数値制御装置を、
順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析する手段、及び
該手段で解析した結果を外部へ表示出力する手段
として機能させることを特徴とする制御プログラム。
In a control program that can be executed by a numerical control device that numerically controls the operation of a device according to a program composed of a plurality of instructions,
The plurality of instructions constituting the program includes a plurality of sequential processes,
The numerical control device,
A control program which functions as means for analyzing the contents of a sequential process to be executed next each time a sequential process is executed, and means for displaying and outputting the result analyzed by the means to the outside.
前記解析した結果は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を示す情報であることを特徴とする請求項5記載の制御プログラム。   6. The control program according to claim 5, wherein the result of the analysis is information indicating a position of a component device of a device when a sequential process to be executed next is executed. 複数の命令で構成されたプログラムに従って、機器の運転を数値制御する数値制御装置で実行することが可能な制御プログラムを記録した記録媒体において、
前記プログラムを構成する複数の命令が複数の順次プロセスを含み、
前記数値制御装置を、
順次プロセスを実行する都度、次に実行すべき順次プロセスの内容を解析する手段、及び
該手段で解析した結果を外部へ表示出力する手段
として機能させる制御プログラムを記録したことを特徴とする記録媒体。
In a recording medium that records a control program that can be executed by a numerical control device that numerically controls the operation of a device according to a program configured by a plurality of instructions.
The plurality of instructions constituting the program includes a plurality of sequential processes,
The numerical control device,
A recording medium having recorded therein a means for analyzing the contents of a sequential process to be executed next each time a sequential process is executed, and a control program for functioning as a means for displaying and outputting the result analyzed by the means to the outside .
前記解析した結果は、次に実行すべき順次プロセスが実行された場合の機器の構成装置の位置を示す情報である制御プログラムを記録したことを特徴とする請求項7記載の記録媒体。
8. The recording medium according to claim 7, wherein the analysis result records a control program that is information indicating a position of a component device of a device when a sequential process to be executed next is executed.
JP2004266027A 2004-09-13 2004-09-13 Numerical controller, numerical control method, control program, and recording medium Pending JP2006079561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004266027A JP2006079561A (en) 2004-09-13 2004-09-13 Numerical controller, numerical control method, control program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004266027A JP2006079561A (en) 2004-09-13 2004-09-13 Numerical controller, numerical control method, control program, and recording medium

Publications (1)

Publication Number Publication Date
JP2006079561A true JP2006079561A (en) 2006-03-23

Family

ID=36158929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004266027A Pending JP2006079561A (en) 2004-09-13 2004-09-13 Numerical controller, numerical control method, control program, and recording medium

Country Status (1)

Country Link
JP (1) JP2006079561A (en)

Similar Documents

Publication Publication Date Title
EP2541355A1 (en) Machine control program creating device
CN101109947A (en) Numerical controller having interference check function
JP2011145825A (en) Machine tool
US20100114359A1 (en) Programming apparatus
JP4247264B2 (en) Machine tool controller
JP6638979B2 (en) Numerical control device with machining process management function and machining process management program
JP2762788B2 (en) Moving body operation display device and display method thereof
JP5702833B2 (en) Numerical control device with screen display switching function following NC program
JPH0416307B2 (en)
EP1394642B1 (en) Multi-system numerical control device
JP4859467B2 (en) How to restart a 2-spindle facing lathe
JP2006079561A (en) Numerical controller, numerical control method, control program, and recording medium
JP4654937B2 (en) Numerical control apparatus, numerical control method, and computer program
JPH0242510A (en) Display system for working information
WO2024090371A1 (en) Nc program creation
JP4261708B2 (en) NC machining equipment
WO2022014476A1 (en) Machine tool system
WO2024090373A1 (en) Nc program creation
JP7130157B1 (en) Numerical controller
WO2021015064A1 (en) Tool information setting device and machine tool
US20240131600A1 (en) Vibration-cutting condition setting device for machine tool
WO2022244070A1 (en) Operation status display device and computer-readable storage medium
JP2004009085A (en) Machining method for laser beam machine and its device
KR100221564B1 (en) Method and device to determine an optimal making condition
JP2813079B2 (en) Numerical control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070208

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090403

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090407

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090528

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090908