Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4558675B2 - Numerical controller - Google Patents
[go: Go Back, main page]

JP4558675B2 - Numerical controller - Google Patents

Numerical controller Download PDF

Info

Publication number
JP4558675B2
JP4558675B2 JP2006136941A JP2006136941A JP4558675B2 JP 4558675 B2 JP4558675 B2 JP 4558675B2 JP 2006136941 A JP2006136941 A JP 2006136941A JP 2006136941 A JP2006136941 A JP 2006136941A JP 4558675 B2 JP4558675 B2 JP 4558675B2
Authority
JP
Japan
Prior art keywords
processing
code
machining program
ladder
processing means
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.)
Expired - Fee Related
Application number
JP2006136941A
Other languages
Japanese (ja)
Other versions
JP2007310499A (en
Inventor
信 坂上
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 JP2006136941A priority Critical patent/JP4558675B2/en
Publication of JP2007310499A publication Critical patent/JP2007310499A/en
Application granted granted Critical
Publication of JP4558675B2 publication Critical patent/JP4558675B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

この発明は、数値制御装置に関するものである。   The present invention relates to a numerical control device.

数値制御装置とは、予めメモリに登録または外部から入力された加工プログラムに基づいて数値制御処理を実行し、その処理結果によって数値制御装置に接続された工作機械などを駆動して加工物(ワーク)の加工を行うものである。   The numerical control device executes numerical control processing based on a machining program registered in a memory in advance or input from the outside, and drives a machine tool or the like connected to the numerical control device according to the processing result to process a workpiece (workpiece). ).

図10は、従来の数値制御装置の構成を模式的に示す図である。この数値制御装置501は、表示装置、キーボードなどのマンマシンインタフェース(MMI)部531との間のデータの入出力処理を行い、マンマシンインタフェース部531から入力された加工プログラムやパラメータなどのデータをそれぞれ加工プログラムや設定データとして記憶部513に格納する入出力データ処理部511と、外部入出力機器532から回線経由で入力された加工プログラムやパラメータなどのデータをそれぞれ加工プログラムや設定データとして記憶部513に格納する通信処理部512と、入出力データ処理部511または通信処理部512で処理された加工プログラムや設定データを記憶する記憶部513と、記憶部513に記憶された加工プログラムを読み出してプログラム解析する加工プログラム解析処理部514と、加工プログラムの制御命令に基づいてラダーシーケンスを実行させるラダー処理部515と、加工プログラム解析処理部514とラダー処理部515との間に設けられるPLC(Programmable Logic Controller)インタフェース部516と、ラダー処理部515の処理結果に基づいて工作機械540を制御する機械制御処理部517と、機械制御処理部517からの制御データをベクトル処理して方向成分ごとの制御データを生成させる補間処理部518と、補間処理部518で生成された制御データに基づいて工作機械540を制御する軸制御処理部519と、機械制御処理部517からの制御データに基づいて工作機械540を制御するデジタル信号I/O制御部520と、を備える。   FIG. 10 is a diagram schematically illustrating a configuration of a conventional numerical control device. The numerical controller 501 performs data input / output processing with a man-machine interface (MMI) unit 531 such as a display device and a keyboard, and processes data such as machining programs and parameters input from the man-machine interface unit 531. The input / output data processing unit 511 stores the processing program and setting data in the storage unit 513, and the processing program and parameter data input from the external input / output device 532 via the line as the processing program and setting data, respectively. The communication processing unit 512 stored in 513, the storage unit 513 that stores the processing program and setting data processed by the input / output data processing unit 511 or the communication processing unit 512, and the processing program stored in the storage unit 513 are read out. Machining program analysis for program analysis A processing unit 514 that executes a ladder sequence based on a control command of the machining program, and a PLC (Programmable Logic Controller) interface unit 516 provided between the machining program analysis processing unit 514 and the ladder processing unit 515. A machine control processing unit 517 for controlling the machine tool 540 based on the processing result of the ladder processing unit 515, and an interpolation process for generating control data for each direction component by vector processing of the control data from the machine control processing unit 517 518, an axis control processing unit 519 for controlling the machine tool 540 based on the control data generated by the interpolation processing unit 518, and a digital signal for controlling the machine tool 540 based on the control data from the machine control processing unit 517 And an I / O control unit 520.

なお、工作機械540は、サーボアンプ541を介して軸制御処理部519の制御によって駆動するサーボモータ542と、主軸アンプ543を介して軸制御処理部519の制御によって主軸(スピンドル)を移動させるスピンドルモータ544と、デジタル信号I/O制御部520の制御によって主軸に取り付けられた工具を交換する工具交換器545と、を備えている。   The machine tool 540 includes a servo motor 542 that is driven by the control of the axis control processing unit 519 via the servo amplifier 541 and a spindle that moves the spindle (spindle) by the control of the axis control processing unit 519 via the main shaft amplifier 543. A motor 544 and a tool changer 545 for changing a tool attached to the spindle under the control of the digital signal I / O control unit 520 are provided.

このような数値制御装置501における動作について簡単に説明すると、加工プログラム解析処理部514は、記憶部513内の加工プログラムを読出し、加工プログラムに記述された制御命令をPLCインタフェース部516を介してラダー処理部515に渡し、ラダー処理部515は、その制御命令に対応するラダーシーケンスを実行する。加工プログラム解析処理部514は、ラダー処理部515に対して出された制御命令に対応する動作が完了したことを示す完了信号であるFINをラダー処理部515から受信すると、加工プログラム中のつぎの制御命令を順に実行していく。   The operation in the numerical control apparatus 501 will be briefly described. The machining program analysis processing unit 514 reads the machining program in the storage unit 513 and outputs a control command described in the machining program via the PLC interface unit 516. The data is passed to the processing unit 515, and the ladder processing unit 515 executes a ladder sequence corresponding to the control instruction. When the machining program analysis processing unit 514 receives a FIN, which is a completion signal indicating that the operation corresponding to the control command issued to the ladder processing unit 515 has been completed, from the ladder processing unit 515, the machining program analysis processing unit 514 Control instructions are executed in order.

数値制御装置501の本来の仕事は、ワークに対する切削や研削などの加工であるが、この加工を行うための補助的な仕事も数多く存在する。たとえば、加工物の着脱、主軸モータの起動/停止、切削油のオン/オフなどである。これらの補助的な仕事を実行するための制御指令として、加工プログラムにはMコードという指令が設けられている。   The original work of the numerical control device 501 is a process such as cutting or grinding of the work, but there are many auxiliary works for performing this process. For example, attachment / detachment of a workpiece, start / stop of a spindle motor, on / off of cutting oil, and the like. As a control command for executing these auxiliary tasks, the machining program is provided with a command called M code.

図11−1は、Mコード処理の従来例を示す図である。この図11−1に示されるように、加工プログラム中でMコードが指令されると、Mコード情報をラダー処理部515で取得し、ラダー処理部515で該当するMコード処理を実行する。たとえば、加工プログラム解析処理部514が加工プログラムから「M25」というMコードを読み出すと、このMコード「M25」はPLCインタフェース部516を介してラダー処理部515に渡される。このとき、加工プログラム解析処理部514では、Mコード「M25」に対するFINがラダー処理部515から返されるまでは、つぎのブロックへ進まずに、待ち状態となる。ラダー処理部515は、「M25」というMコードを実行してその処理が完了すると、FINを加工プログラム解析処理部514に返す。加工プログラム解析処理部514は、このFINを受取ることで、つぎのブロックへ進むことができる。   FIG. 11A is a diagram of a conventional example of M code processing. As shown in FIG. 11A, when an M code is commanded in the machining program, the M code information is acquired by the ladder processing unit 515, and the corresponding M code processing is executed by the ladder processing unit 515. For example, when the machining program analysis processing unit 514 reads an M code “M25” from the machining program, the M code “M25” is passed to the ladder processing unit 515 via the PLC interface unit 516. At this time, the machining program analysis processing unit 514 waits without proceeding to the next block until the FIN for the M code “M25” is returned from the ladder processing unit 515. When the ladder processing unit 515 executes the M code “M25” and completes the processing, the ladder processing unit 515 returns FIN to the machining program analysis processing unit 514. By receiving this FIN, the machining program analysis processing unit 514 can proceed to the next block.

ところで、Mコードには、その完了を待つ必要がないものも存在する。そのようなMコードの処理を行う際には、図11−1に示されるMコードの処理方法では、加工プログラム解析処理部514は読込んだブロックに含まれるMコードのFINが返るまでつぎのブロックへ進めず待ち状態となってしまっていた。   Incidentally, some M codes do not need to wait for completion. When performing such M code processing, in the M code processing method shown in FIG. 11A, the machining program analysis processing unit 514 continues until the M code FIN included in the read block is returned. I was in a waiting state without going to the block.

このような問題点を解決するために、従来から、種々の提案がなされている。その中の一つに、工作機械540の作動が他の工程と並行して実施可能である場合には、インタロック状態を記憶して工作機械540からの完了信号を待つことなくつぎの工程へと進むが、インタロック状態の場合は、続く工程が並行して実施できない処理であるか判断し、並行して実施可能な工程であれば実施し、並行して実施不可能な加工工程であればFINを待って実施するようにしている(たとえば、特許文献1参照)。   In order to solve such problems, various proposals have conventionally been made. For example, when the operation of the machine tool 540 can be performed in parallel with other processes, the interlock state is stored, and the next process is performed without waiting for a completion signal from the machine tool 540. However, in the interlock state, it is determined whether the subsequent process is a process that cannot be performed in parallel. For example, the method is implemented after waiting for FIN (see, for example, Patent Document 1).

図11−2は、特許文献1に記載されている場合のMコード処理の従来例を示す図である。この図11−2に示されるように、加工プログラム中でMコードが指定されると、Mコード情報をラダー処理部515で取得する。ラダー処理部515では、Mコードを終了していないにもかかわらず、このMコードに対するFINを返した後(特許文献1では、即FIN信号という)、該当するMコード処理を実行する。たとえば、加工プログラム解析処理部514で「M25」というMコードが加工プログラムから指定されると、このMコード「M25」はラダー処理部515に渡される。ラダー処理部515で加工プログラムから指令されたMコードの情報を取得すると、そのMコード「M25」の処理が完了する前に、すぐにFIN(即FIN信号)を返す。その後に、ラダー処理部515で「M25」の処理を行う。一方、加工プログラム解析処理部514では、Mコード「M25」の処理結果が必要ないつぎのブロックの処理を実行する。このように、加工プログラムはMコードの指令後にすぐにFINが返るため、つぎのブロックへ進こむことができる。しかし、この場合には、Mコード処理が完了していない状態で加工プログラムを実行することとなる。   FIG. 11B is a diagram of a conventional example of M code processing in the case described in Patent Document 1. As shown in FIG. 11-2, when an M code is specified in the machining program, the ladder processing unit 515 acquires M code information. The ladder processing unit 515 executes the corresponding M code processing after returning the FIN for this M code (referred to as the FIN signal immediately in Patent Document 1) even though the M code has not been terminated. For example, when an M code “M25” is designated by the machining program analysis processing unit 514 from the machining program, the M code “M25” is passed to the ladder processing unit 515. When the ladder processing unit 515 acquires information on the M code instructed from the machining program, the FIN (immediate FIN signal) is immediately returned before the processing of the M code “M25” is completed. Thereafter, the ladder processing unit 515 performs “M25” processing. On the other hand, the machining program analysis processing unit 514 executes processing of the next block that does not require the processing result of the M code “M25”. Thus, since the FIN is returned immediately after the M code command, the machining program can proceed to the next block. However, in this case, the machining program is executed in a state where the M code processing is not completed.

特開平7−40187号公報Japanese Patent Laid-Open No. 7-40187

図11−1で説明したように、従来の数値制御装置501は加工プログラムからのMコードの指令により、ラダー処理部515でMコード情報を取得し、該当するMコード処理を実行し、その完了後にFINを加工プログラム解析処理部514側へ返す。加工プログラム解析処理部514はFINを受取ることでMコード処理が完了したと解釈し加工プログラムのつぎのブロックへ進む。しかし、Mコードの中にはすぐつぎのブロックで完了待ちしなくても、暫く先のブロックまでに完了していればよいものもある。このような場合はつぎのブロックで完了待ちしていると無駄な待ち時間となってしまうという問題点があった。   As described with reference to FIG. 11A, the conventional numerical control device 501 acquires M code information in the ladder processing unit 515 in response to an M code command from the machining program, executes the corresponding M code processing, and completes the processing. Later, FIN is returned to the machining program analysis processing unit 514 side. The machining program analysis processing unit 514 receives the FIN, interprets that the M code processing has been completed, and proceeds to the next block of the machining program. However, some M codes do not have to wait for completion in the next block, but need only be completed before the next block. In such a case, there is a problem that a waiting time is wasted if waiting for completion in the next block.

また、図11−2で説明したように、時間短縮のために、ラダー処理部515でMコードを取得するとすぐにFINを返す場合には、加工プログラム解析処理部514は加工プログラムのつぎのブロックへと進むが、ラダー処理部515でMコード処理が完了したかを加工プログラム解析処理部514では確認することができない。そのため、タイミングによってはMコード処理と加工プログラム解析処理が干渉してしまう可能性があるという問題点があった。   Further, as described with reference to FIG. 11B, in order to shorten the time, when the FIN processing is returned as soon as the M code is acquired by the ladder processing unit 515, the processing program analysis processing unit 514 displays the next block of the processing program. However, the machining program analysis processing unit 514 cannot confirm whether the M code processing is completed in the ladder processing unit 515. Therefore, there is a problem that the M code processing and the machining program analysis processing may interfere depending on the timing.

この発明は、上記に鑑みてなされたもので、数値制御装置の加工プログラムのブロック中にMコードが存在し、そのMコードが、暫く先のブロックまでにその処理を完了していればよいMコードで、ラダー処理部でMコードを取得するとすぐにFINを返す場合に、加工プログラム解析処理部でラダー処理部でのMコード処理が完了したかを確認することができる数値制御装置を得ることを目的とする。   The present invention has been made in view of the above, and it is sufficient that an M code exists in a machining program block of the numerical control apparatus, and the M code has completed the process for a while before the block. To obtain a numerical control device capable of confirming whether or not the M code processing in the ladder processing unit is completed in the machining program analysis processing unit when the FIN is returned as soon as the M code is acquired in the ladder processing unit With the goal.

上記目的を達成するため、この発明にかかる数値制御装置は、加工プログラムを解析し、加工プログラム中の所定の指令についてラダー処理手段に実行させる加工プログラム解析処理手段と、前記加工プログラム解析処理手段からの指令に対応するラダーシーケンスを実行するラダー処理手段と、前記加工プログラム解析処理手段による前記加工プログラムの解析結果と前記ラダー処理手段のラダーシーケンスの実行結果に基づいて、当該装置に接続される制御対象に対して所定の制御を行う機械制御処理手段と、を備える数値制御装置において、前記ラダー処理手段は、前記加工プログラム解析処理手段からの加工を行うための補助的な処理を指令するMコードを受信すると、すぐに受信したMコードの処理が擬似的に終了したことを示す暫定処理終了信号を送信する暫定処理終了信号出力機能と、受信した前記Mコードの処理が実際に終了したことを示す本処理終了信号を送信する本処理終了信号出力機能と、を備え、前記加工プログラム解析処理手段は、前記暫定処理終了信号を受信すると、前記加工プログラム中の前記Mコードに対する本処理終了信号の受信処理を行うMコード処理完了待ち指令を読込むまで、つぎのブロックに処理を進め、前記Mコード処理完了待ち指令を読込むまでに前記本処理終了信号を受信しない場合に、前記本処理終了信号を受信するまでつぎのブロックの処理を実行させない機能を有することを特徴とする。   In order to achieve the above object, a numerical control device according to the present invention includes a machining program analysis processing unit that analyzes a machining program and causes a ladder processing unit to execute a predetermined command in the machining program, and the machining program analysis processing unit. Ladder processing means for executing a ladder sequence corresponding to the command of the control, and control connected to the apparatus based on the analysis result of the machining program by the machining program analysis processing means and the execution result of the ladder sequence of the ladder processing means And a machine control processing unit that performs predetermined control on the target, wherein the ladder processing unit instructs the auxiliary processing for performing the processing from the processing program analysis processing unit. Indicates that the processing of the received M code has been pseudo-finished immediately A provisional processing end signal output function for transmitting a constant processing end signal, and a main processing end signal output function for transmitting a main processing end signal indicating that the processing of the received M code has actually ended. Upon receiving the provisional processing end signal, the program analysis processing means performs processing on the next block until an M code processing completion waiting instruction for receiving the processing end signal for the M code in the machining program is read. Proceeding, when the main processing end signal is not received until the M code processing completion waiting instruction is read, the processing of the next block is not executed until the main processing end signal is received. .

この発明によれば、Mコードに対する処理結果を用いて処理を行う場合に、そのMコードに対するMコード処理完了待ち指令を読込むまでに本処理終了信号を受信しない場合には、加工プログラム中の以下のブロックの処理を実行させないようにしたので、加工プログラム解析処理部でラダー処理部によるMコード処理の実行結果を知ることができ、Mコード処理と加工プログラムの処理とが干渉することを防ぐことができるという効果を有する。また、簡単にMコード処理完了待ちによる無駄時間を省き、サイクルタイムの短縮を実現することができるという効果を有する。   According to the present invention, when processing is performed using the processing result for the M code, if the processing end signal is not received until the M code processing completion waiting instruction for the M code is read, Since the processing of the following blocks is not executed, the processing program analysis processing unit can know the execution result of the M code processing by the ladder processing unit and prevent the M code processing and the processing of the processing program from interfering with each other. It has the effect of being able to. In addition, there is an effect that it is possible to easily reduce the cycle time by omitting the dead time due to completion of the M code processing.

以下に添付図面を参照して、この発明にかかる数値制御装置の好適な実施の形態を詳細に説明する。なお、これらの実施の形態によりこの発明が限定されるものではない。   Exemplary embodiments of a numerical controller according to the present invention will be explained below in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.

実施の形態1.
図1は、この発明にかかる数値制御装置の実施の形態1の構成の一例を示す図である。この数値制御装置1は、表示装置、キーボードなどのマンマシンインタフェース部31との間のデータの入出力処理を行い、マンマシンインタフェース部31から入力された加工プログラムやパラメータなどのデータをそれぞれ加工プログラムや設定データとして記憶部13に格納する入出力データ処理部11と、外部入出力機器32から回線経由で入力された加工プログラムやパラメータなどのデータをそれぞれ加工プログラムや設定データとして記憶部13に格納する通信処理部12と、入出力データ処理部11または通信処理部12で処理された加工プログラムや設定データを記憶する記憶部13と、記憶部13に記憶された加工プログラムを読み出してプログラム解析する加工プログラム解析処理部14と、加工プログラムの制御命令に基づいてラダーシーケンスを実行させるラダー処理部15と、加工プログラム解析処理部14とラダー処理部15との間に設けられるPLCインタフェース部16と、ラダー処理部15の処理結果に基づいて工作機械40を制御する機械制御処理部17と、機械制御処理部17からの制御データをベクトル処理して方向成分ごとの制御データを生成させる補間処理部18と、補間処理部18で生成された制御データに基づいて工作機械40を制御する軸制御処理部19と、機械制御処理部17からの制御データに基づいて工作機械40を制御するデジタル信号I/O制御部20と、を備える。ここで加工プログラム解析処理部14は、特許請求の範囲における加工プログラム解析処理手段に対応し、ラダー処理部15は、同じくラダー処理手段に対応し、機械制御処理部17は、同じく機械制御処理手段に対応している。
Embodiment 1 FIG.
FIG. 1 is a diagram showing an example of the configuration of the first embodiment of the numerical controller according to the present invention. The numerical control device 1 performs input / output processing of data with respect to a man-machine interface unit 31 such as a display device and a keyboard, and each of the processing programs and parameters input from the man-machine interface unit 31 is a processing program. And the input / output data processing unit 11 stored in the storage unit 13 as setting data, and data such as machining programs and parameters input from the external input / output device 32 via the line are stored in the storage unit 13 as machining programs and setting data, respectively. The communication processing unit 12, the storage unit 13 that stores the processing program and setting data processed by the input / output data processing unit 11 or the communication processing unit 12, and the processing program stored in the storage unit 13 is read and analyzed. Machining program analysis processing unit 14 and control instruction of machining program Based on the ladder processing unit 15 for executing the ladder sequence, the PLC interface unit 16 provided between the machining program analysis processing unit 14 and the ladder processing unit 15, and the machine tool 40 based on the processing result of the ladder processing unit 15. A machine control processing unit 17 that controls the control data, an interpolation processing unit 18 that vectorizes the control data from the machine control processing unit 17 to generate control data for each direction component, and control data generated by the interpolation processing unit 18 An axis control processing unit 19 that controls the machine tool 40 based on this, and a digital signal I / O control unit 20 that controls the machine tool 40 based on the control data from the machine control processing unit 17 are provided. Here, the machining program analysis processor 14 corresponds to the machining program analysis processor in the claims, the ladder processor 15 corresponds to the ladder processor, and the machine control processor 17 also corresponds to the machine control processor. It corresponds to.

なお、工作機械40は、サーボアンプ41を介して軸制御処理部19の制御によって駆動するサーボモータ42と、主軸アンプ43を介して軸制御処理部19の制御によって主軸(スピンドル)を移動させるスピンドルモータ44と、デジタル信号I/O制御部20の制御によって主軸に取り付けられた工具を交換する工具交換器45と、を備えている。   The machine tool 40 includes a servo motor 42 that is driven by the control of the axis control processing unit 19 via the servo amplifier 41 and a spindle that moves the spindle (spindle) by the control of the axis control processing unit 19 via the main shaft amplifier 43. A motor 44 and a tool changer 45 that changes a tool attached to the main shaft under the control of the digital signal I / O control unit 20 are provided.

ここで、加工プログラム解析処理部14は、記憶部13に記憶された加工プログラムを読み出してプログラム解析を行い、ラダー処理部15に対して処理の指示を行うプログラム解析処理機能141と、ラダー処理部15からMコードの処理指令に対する暫定FINを受信する暫定FIN受信機能142と、ラダー処理部15からMコードの処理指令に対する本FINを受信する本FIN受信機能143と、を備える。なお、暫定FINは、特許請求の範囲における暫定処理終了信号に対応し、本FINは、同じく本処理終了信号に対応している。   Here, the machining program analysis processing unit 14 reads out the machining program stored in the storage unit 13, performs program analysis, and instructs the ladder processing unit 15 to instruct processing, and a ladder processing unit. 15 includes a provisional FIN reception function 142 for receiving a provisional FIN for an M code processing instruction from 15 and a main FIN reception function 143 for receiving a main FIN for an M code processing instruction from the ladder processing unit 15. The provisional FIN corresponds to the provisional processing end signal in the claims, and the FIN similarly corresponds to the processing end signal.

この実施の形態1では、加工プログラムとして、Mコードの実行結果を得るための新たな指令が定義される。つまり、Mコードを実行した後、加工プログラム中の任意の位置でそのMコードの実行結果を得るための指令(Mコード完了待ち指令)として、“MF”という指令を定義する。より具体的には、Mコードを実行し、そのMコードを使用して処理を行う加工プログラム中のブロックの直前に、「MF」を実行することで、そのMコードの実行結果を得ることができる。Mコードでは、「M」の後に予め定められた2桁の数値を付して、所定の処理を実行させるようにしているが、この「MF」では、前に実行されたMコードの値を得るために、前に実行されたMコードの2桁の数値を、「MF」の後に付すようにしている。これにより、加工プログラム解析処理部14のプログラム解析処理機能141が要求するMコードの処理結果を指定することができる。   In the first embodiment, a new command for obtaining the execution result of the M code is defined as the machining program. That is, after executing the M code, a command “MF” is defined as a command (M code completion waiting command) for obtaining the execution result of the M code at an arbitrary position in the machining program. More specifically, the execution result of the M code can be obtained by executing “MF” immediately before the block in the machining program that executes the M code and performs processing using the M code. it can. In the M code, a predetermined two-digit numerical value is added after “M” to execute a predetermined process. In this “MF”, the value of the previously executed M code is set. In order to obtain this, a 2-digit numerical value of the previously executed M code is added after “MF”. Thereby, the processing result of the M code requested by the program analysis processing function 141 of the machining program analysis processing unit 14 can be designated.

また、プログラム解析処理機能141は、Mコードを実行するようにラダー処理部15に指令を出した後暫定FIN受信機能142で暫定FINを受信すると、加工プログラムに記述されるつぎのブロックの処理に進む機能を有する。   Further, when the program analysis processing function 141 receives a provisional FIN by the provisional FIN reception function 142 after issuing an instruction to the ladder processing unit 15 to execute the M code, the program analysis processing function 141 proceeds to processing of the next block described in the machining program. Has a function to advance.

さらに、ラダー処理部15として、通常のPLC処理を実行するPLC処理実行機能151と、加工プログラム解析処理部14からの指令がMコードである場合に、そのMコードに対して暫定的に処理が終了したことを示す信号である暫定FINを出力する暫定FIN出力機能152と、加工プログラム解析処理部14から受けたMコードで暫定FIN信号を出力したMコードを実際に実行して終了したことを示す信号である本FINを出力する本FIN出力機能153と、を備える。なお、暫定FIN出力機能152は、特許請求の範囲の暫定処理終了信号出力機能に対応し、本FIN出力機能153は、同じく本処理終了信号出力機能に対応している。   Furthermore, when the instruction from the PLC processing execution function 151 that executes normal PLC processing and the machining program analysis processing unit 14 is M code, the ladder processing unit 15 performs provisional processing on the M code. The provisional FIN output function 152 that outputs a provisional FIN that is a signal indicating the completion, and the M code that has output the provisional FIN signal using the M code received from the machining program analysis processing unit 14 are actually executed and terminated. A final FIN output function 153 that outputs the final FIN, which is a signal to be displayed. The provisional FIN output function 152 corresponds to the provisional process end signal output function of the claims, and the FIN output function 153 similarly corresponds to the process end signal output function.

ここで、このような構成を有する数値制御装置のMコードの処理について、具体例を挙げながら説明する。図2は、加工プログラム解析処理部におけるMコード指令処理の手順の一例を示すフローチャートであり、図3は、ラダー処理部におけるMコード実行処理の手順の一例を示すフローチャートであり、図4は、加工プログラム解析処理部におけるMF指令処理の手順の一例を示すフローチャートである。また、図5は、数値制御装置のMコードの処理を説明するための加工プログラムとその加工プログラムに対応するラダーシーケンスの一例を示す図である。   Here, the M code processing of the numerical control apparatus having such a configuration will be described with a specific example. FIG. 2 is a flowchart showing an example of a procedure of M code command processing in the machining program analysis processing unit, FIG. 3 is a flowchart showing an example of a procedure of M code execution processing in the ladder processing unit, and FIG. It is a flowchart which shows an example of the procedure of MF command processing in a process program analysis process part. FIG. 5 is a diagram showing an example of a machining program and a ladder sequence corresponding to the machining program for explaining the processing of the M code of the numerical controller.

最初に、図2を参照しながらMコード実行処理について説明する。数値制御装置1の加工プログラム解析処理部14のプログラム解析処理機能141は、記憶部13に格納されている加工プログラムを解析し、そのブロックを順に実行する。図5の加工プログラムに示されるように、プログラム解析処理機能141は、上のブロックから順に処理を実行していく。ここで、図5の加工プログラムの行101に示されるようにMコードを含むブロックを読込むと(ステップS11)、Mコードの実行を、PLCインタフェース部16を介してラダー処理部15に指示する(ステップS12)。その後、暫定FIN受信機能142でラダー処理部15からステップS12で指示したMコードに対応する暫定FINを受信したか否かを判定する(ステップS13)。暫定FINを受信しない場合(ステップS13でNoの場合)には、暫定FINを受信するまで待ち状態となる。一方、図5に示されるようにラダー処理部15から暫定FINを受信した場合(ステップS13でYesの場合)には、暫定FIN受信機能142は暫定FINを受信したことをプログラム解析処理機能141に通知し、プログラム解析処理機能141は加工プログラム中のつぎのブロックに進む(ステップS14)。図5の場合では、プログラム解析処理機能141は、暫定FINを受信すると、行102のブロックの処理に進む。以上により、Mコード指令処理が終了する。   First, the M code execution process will be described with reference to FIG. The program analysis processing function 141 of the machining program analysis processing unit 14 of the numerical control apparatus 1 analyzes the machining program stored in the storage unit 13 and sequentially executes the blocks. As shown in the machining program of FIG. 5, the program analysis processing function 141 executes processing in order from the upper block. Here, when a block including M code is read as shown in line 101 of the machining program in FIG. 5 (step S11), execution of the M code is instructed to the ladder processing unit 15 via the PLC interface unit 16 (step S11). Step S12). Thereafter, the provisional FIN receiving function 142 determines whether or not a provisional FIN corresponding to the M code instructed in step S12 is received from the ladder processing unit 15 (step S13). If the provisional FIN is not received (No in step S13), the process waits until the provisional FIN is received. On the other hand, when the provisional FIN is received from the ladder processing unit 15 as shown in FIG. 5 (Yes in step S13), the provisional FIN reception function 142 notifies the program analysis processing function 141 that the provisional FIN has been received. The program analysis processing function 141 proceeds to the next block in the machining program (step S14). In the case of FIG. 5, when the program analysis processing function 141 receives the provisional FIN, the program analysis processing function 141 proceeds to the processing of the block in the row 102. Thus, the M code command process is completed.

つぎに、図3を参照しながらMコード実行処理について説明する。ラダー処理部15のPLC処理実行機能151は、加工プログラム解析処理部14からPLCインタフェース部16を介してMコードを受取ると(ステップS31)、暫定FIN出力機能152は、受取ったMコードの処理は実際には終了していないが、加工プログラム解析処理部14でつぎのブロックの処理を実行可能とするための信号である暫定FINを、PLCインタフェース部16を介して加工プログラム解析処理部14に送る(ステップS32)。その後、PLC処理実行機能151は、ステップS31で受取ったMコードを実行する(ステップS33)。PLC処理実行機能151によるMコードの実行が終了すると、本FIN出力機能153は、ステップS31で受取ったMコードの処理が実際に終了したことを示す本FINを、PLCインタフェース部16を介して加工プログラム解析処理部14に送る(ステップS34)。以上により、Mコード実行処理が終了する。   Next, the M code execution process will be described with reference to FIG. When the PLC processing execution function 151 of the ladder processing unit 15 receives the M code from the machining program analysis processing unit 14 via the PLC interface unit 16 (step S31), the provisional FIN output function 152 performs processing of the received M code. Although not actually finished, a provisional FIN, which is a signal for enabling the machining program analysis processing unit 14 to execute processing of the next block, is sent to the machining program analysis processing unit 14 via the PLC interface unit 16. (Step S32). Thereafter, the PLC process execution function 151 executes the M code received in step S31 (step S33). When the execution of the M code by the PLC processing execution function 151 is completed, the FIN output function 153 processes the FIN, which indicates that the processing of the M code received in step S31 has actually ended, via the PLC interface unit 16. The program is sent to the program analysis processing unit 14 (step S34). Thus, the M code execution process ends.

最後に、図4を参照しながらMF指令処理について説明する。加工プログラム解析処理部14のプログラム解析処理機能141は、図5の加工プログラムの行103に示されるようにMF指令を含むブロックを読込むと(ステップS51)、本FIN受信機能143は、MF指令に対応するMコードの本FINを受信したかを確認する(ステップS52)。本FINを受信していない場合(ステップS52でNoの場合)には、本FINを受信するまで待ち状態となる。図5のように、Mコード「M25」に対するMF指令が加工プログラム解析処理部14で実行される前に既に本FINが受信されている場合には、本FIN受信機能143は、本FINを受信したことをプログラム解析処理機能141に通知する。これにより、プログラム解析処理機能141は、加工プログラム中のつぎのブロックに進み処理を行うことができる。たとえば、図5の場合、プログラム解析処理機能141は、行103のMF指令を読込んだ後、Mコード「M25」の処理結果が必要な行104のブロックの処理に進むことができる。以上により、MF指令処理が終了する。   Finally, the MF command process will be described with reference to FIG. When the program analysis processing function 141 of the machining program analysis processing unit 14 reads a block including the MF command as shown in the line 103 of the machining program in FIG. 5 (step S51), the FIN reception function 143 receives the MF command. It is confirmed whether the corresponding FIN of the M code has been received (step S52). If the final FIN has not been received (No in step S52), the process waits until the final FIN is received. As shown in FIG. 5, when the FIN is already received before the MF command for the M code “M25” is executed by the machining program analysis processing unit 14, the FIN receiving function 143 receives the FIN. This is notified to the program analysis processing function 141. Thereby, the program analysis processing function 141 can proceed to the next block in the machining program and perform processing. For example, in the case of FIG. 5, the program analysis processing function 141 can proceed to the processing of the block in the row 104 that requires the processing result of the M code “M25” after reading the MF command in the row 103. Thus, the MF command process ends.

この実施の形態1によれば、ラダー処理部15では、Mコードを受信するとすぐに暫定FINを加工プログラム解析処理部14に返し、また、Mコードの処理が終了すると本FINを加工プログラム解析処理部14に返し、さらに、加工プログラム解析処理部14では、先のブロックで指令したMコードの結果が欲しいブロックの前に、Mコード処理完了待ち指令を実行して、本FINを受信してから、加工プログラム中のつぎのブロックに処理を進めるようにしたので、加工プログラム解析処理部14でラダー処理部15によるMコード処理の実行結果を知ることができ、Mコード処理と加工プログラムの処理とが干渉することを防ぐことができるという効果を有する。また、簡単にMコード処理完了待ちによる無駄時間を省き、サイクルタイムの短縮を実現することができるという効果を有する。   According to the first embodiment, the ladder processing unit 15 returns the temporary FIN to the machining program analysis processing unit 14 as soon as the M code is received, and the final FIN is processed by the machining program analysis processing when the M code processing is completed. Then, the machining program analysis processing unit 14 executes the M code processing completion waiting command before receiving the final FIN before the block for which the result of the M code commanded in the previous block is desired. Since the processing proceeds to the next block in the machining program, the machining program analysis processing unit 14 can know the execution result of the M code processing by the ladder processing unit 15, and the M code processing and the processing program processing Has the effect of preventing interference. In addition, there is an effect that it is possible to easily reduce the cycle time by omitting the dead time due to completion of the M code processing.

実施の形態2.
実施の形態1では、ラダー処理部15では、Mコードを受信するとすぐに暫定FINを加工プログラム解析処理部14に渡し、加工プログラム解析処理部14では、暫定FINを受信した後に加工プログラム中のつぎのブロックに処理を進める構成としていたが、この実施の形態2では、ラダー処理部15が暫定FINを加工プログラム解析処理部14に返さない場合について説明する。
Embodiment 2. FIG.
In the first embodiment, the ladder processing unit 15 passes the provisional FIN to the machining program analysis processing unit 14 as soon as the M code is received, and the machining program analysis processing unit 14 receives the provisional FIN and receives the next in the machining program. In the second embodiment, the case where the ladder processing unit 15 does not return the provisional FIN to the machining program analysis processing unit 14 will be described.

図6は、この発明にかかる数値制御装置の実施の形態2の構成の一例を示す図である。この数値制御装置1aは、実施の形態1の数値制御装置において、加工プログラム解析処理部14の暫定FIN受信機能142と、ラダー処理部15の暫定FIN出力機能152を取り除いた構成を有している。つまり、加工プログラム解析処理部14aのプログラム解析処理機能141は、加工プログラム中のMコードを含むブロックを読込んだ場合に、Mコードを実行する指令をラダー処理部15aに出した後すぐに加工プログラム中のつぎのブロックの処理に進む。また、ラダー処理部15aのPLC処理実行機能151は、加工プログラム解析処理部14aからMコードを実行する指令を受けると、すぐにMコードに対応する処理をラダーシーケンスにしたがって実行する。この実施の形態2では、ラダー処理部15aは暫定FINを出力しないので、実施の形態1における「本FIN」を「FIN」として表記する。そのため、「本FIN出力機能」は「FIN出力機能」という名称に変わっているが、その処理動作は同じものである。なお、実施の形態1と同一の構成要素には同一の符号を付して、その説明を省略している。また、加工プログラム解析処理部14aは、特許請求の範囲における加工プログラム解析処理手段に対応し、ラダー処理部15aは、同じくラダー処理手段に対応し、機械制御処理部17は、同じく機械制御処理手段に対応し、FIN出力機能153aは、同じく本処理終了信号出力機能に対応し、FINは、本処理終了信号に対応している。   FIG. 6 is a diagram showing an example of the configuration of the second embodiment of the numerical controller according to the present invention. This numerical control device 1a has a configuration in which the provisional FIN reception function 142 of the machining program analysis processing unit 14 and the provisional FIN output function 152 of the ladder processing unit 15 are removed from the numerical control device of the first embodiment. . In other words, the program analysis processing function 141 of the machining program analysis processing unit 14a performs machining immediately after issuing a command to execute the M code to the ladder processing unit 15a when a block including the M code in the machining program is read. Proceed to the next block in the program. Further, upon receiving a command to execute the M code from the machining program analysis processing unit 14a, the PLC processing execution function 151 of the ladder processing unit 15a immediately executes a process corresponding to the M code according to the ladder sequence. In the second embodiment, since the ladder processing unit 15a does not output a provisional FIN, the “final FIN” in the first embodiment is expressed as “FIN”. Therefore, the “final FIN output function” has been changed to the name “FIN output function”, but the processing operation is the same. In addition, the same code | symbol is attached | subjected to the component same as Embodiment 1, and the description is abbreviate | omitted. Further, the machining program analysis processing unit 14a corresponds to the machining program analysis processing means in the claims, the ladder processing unit 15a corresponds to the ladder processing means, and the machine control processing unit 17 also corresponds to the machine control processing means. The FIN output function 153a similarly corresponds to the main processing end signal output function, and the FIN corresponds to the main processing end signal.

ここで、このような構成を有する数値制御装置1aのMコードの処理について、具体例を挙げながら説明する。図7は、加工プログラム解析処理部におけるMコード指令処理の手順の一例を示すフローチャートであり、図8は、ラダー処理部におけるMコード実行処理の手順の一例を示すフローチャートであり、図9は、加工プログラム解析処理部におけるMF指令処理の手順の一例を示すフローチャートである。また、図9は、数値制御装置のMコードの処理を説明するための加工プログラムとその加工プログラムに対応するラダーシーケンスの一例を示す図である。   Here, the processing of the M code of the numerical controller 1a having such a configuration will be described with a specific example. FIG. 7 is a flowchart showing an example of the procedure of the M code command processing in the machining program analysis processing unit, FIG. 8 is a flowchart showing an example of the procedure of the M code execution processing in the ladder processing unit, and FIG. It is a flowchart which shows an example of the procedure of MF command processing in a process program analysis process part. FIG. 9 is a diagram showing an example of a machining program and a ladder sequence corresponding to the machining program for explaining the processing of the M code of the numerical controller.

最初に、図7を参照しながらMコード実行処理について説明する。数値制御装置1aの加工プログラム解析処理部14aのプログラム解析処理機能141は、記憶部13に格納されている加工プログラムを解析し、そのブロックを順に実行する。図9の加工プログラムに示されるように、プログラム解析処理機能141は、上のブロックから順に処理を実行していく。ここで、図9の加工プログラムの行111に示されるようにMコードを含むブロックを読込むと(ステップS71)、Mコードの実行を、PLCインタフェース部16を介してラダー処理部15aに指示する(ステップS72)。その後、プログラム解析処理機能141は加工プログラム中のつぎのブロックに進む(ステップS73)。図9の場合では、プログラム解析処理機能141は、行111のMコードを含む処理をラダー処理部15に指示した後すぐに行112のブロックの処理に進む。以上により、Mコード指令処理が終了する。   First, the M code execution process will be described with reference to FIG. The program analysis processing function 141 of the machining program analysis processing unit 14a of the numerical control device 1a analyzes the machining program stored in the storage unit 13 and sequentially executes the blocks. As shown in the machining program of FIG. 9, the program analysis processing function 141 executes processing in order from the upper block. Here, when a block including M code is read as shown in line 111 of the machining program of FIG. 9 (step S71), execution of the M code is instructed to the ladder processing unit 15a via the PLC interface unit 16 (step S71). Step S72). Thereafter, the program analysis processing function 141 proceeds to the next block in the machining program (step S73). In the case of FIG. 9, the program analysis processing function 141 proceeds to the processing of the block of the line 112 immediately after instructing the ladder processing unit 15 to perform the process including the M code of the line 111. Thus, the M code command process is completed.

つぎに、図8を参照しながらMコード実行処理について説明する。ラダー処理部15aのPLC処理実行機能151は、加工プログラム解析処理部14aからPLCインタフェース部16を介してMコードを受取ると(ステップS91)、受取ったMコードを実行する(ステップS92)。そして、PLC処理実行機能151によるMコードの実行が終了すると、FIN出力機能153aは、ステップS31で受取ったMコードの処理が終了したことを示すFINを、PLCインタフェース部16を介して加工プログラム解析処理部14aに送る(ステップS93)。以上により、Mコード実行処理が終了する。   Next, the M code execution process will be described with reference to FIG. When receiving the M code from the machining program analysis processing unit 14a via the PLC interface unit 16 (step S91), the PLC processing execution function 151 of the ladder processing unit 15a executes the received M code (step S92). When the execution of the M code by the PLC process execution function 151 is finished, the FIN output function 153a analyzes the processing program analysis via the PLC interface unit 16 through the FIN indicating that the process of the M code received in step S31 is finished. The data is sent to the processing unit 14a (step S93). Thus, the M code execution process ends.

図9に示される例の場合、行111には2つのMコード「M25」、「M26」が含まれている。このような場合、ラダー処理部15aでは、記述された順でMコードを実行する。すなわち、「M25」を最初に実行し、ついで「M26」を実行する。そして、2つのMコードの処理が終了した後に、それぞれのMコードの処理が終了したことを示すFINを加工プログラム解析処理部14aに通知する。   In the example shown in FIG. 9, the row 111 includes two M codes “M25” and “M26”. In such a case, the ladder processing unit 15a executes the M code in the order described. That is, “M25” is executed first, and then “M26” is executed. Then, after the processing of the two M codes is completed, the processing program analysis processing unit 14a is notified of FIN indicating that the processing of each M code is completed.

なお、MF指令処理は、実施の形態1の図5の本FINがFINに変わるだけで、その実質的内容は同じあるので、その説明を省略する。   Note that the MF command processing is the same as that of the first embodiment shown in FIG.

図9に示される例の場合、加工プログラムにおいて、先のブロックで実行したMコードの実行結果を用いて処理を行う場合には、その処理の前にそのMコードに対応するMコード完了待ち指令(MF)を実行する。これにより、そのMコードに対応するFIN出力を得て、つぎの処理に進むことができる。たとえば、図9の場合には、行114のブロックではMコード「M25」の処理結果が必要であるので、その直前の行113にMコード「M25」の実行結果を得るための「MF25」が実行される。そして、その結果である「M25」のFINに基づいてつぎの行114の処理が実行される。ここで、「MF25」中の「25」は、Mコード「M25」の「25」と対応付けるために付される識別情報である。同様に、行115のブロックではMコード「M26」の実行結果を得るための「MF26」が実行される。ここで、「MF26」中の「26」は、Mコード「M26」の「26」と対応付けるために付される識別情報である。このように、先のブロックで実行したMコードにMコード完了待ち指令(MF)を対応させているので、個々のMコードに対して完了待ちの設定をすることができ、複数のMコードの処理結果が錯綜することもない。   In the case of the example shown in FIG. 9, when processing is performed using the execution result of the M code executed in the previous block in the machining program, an M code completion waiting command corresponding to the M code is executed before the processing. (MF) is executed. As a result, a FIN output corresponding to the M code is obtained, and the process can proceed to the next process. For example, in the case of FIG. 9, since the processing result of the M code “M25” is required in the block of the row 114, “MF25” for obtaining the execution result of the M code “M25” is displayed in the previous row 113. Executed. Then, the processing of the next row 114 is executed based on the FIN of “M25” as the result. Here, “25” in “MF25” is identification information assigned to be associated with “25” of the M code “M25”. Similarly, in the block in the row 115, “MF26” for obtaining the execution result of the M code “M26” is executed. Here, “26” in “MF26” is identification information assigned to be associated with “26” of the M code “M26”. In this way, since the M code completion wait command (MF) is associated with the M code executed in the previous block, it is possible to set completion wait for each M code, and to The processing result is not complicated.

この実施の形態2によれば、ラダー処理部15aでは、Mコードを受信し、その処理が終了するとFINを加工プログラム解析処理部14aに返し、また、加工プログラム解析処理部14aでは、Mコードの実行をラダー処理部15aに指令するとすぐに加工プログラム中のつぎのブロックに処理を進ませ、先のブロックで指令したMコードの結果が欲しいブロックの前に、Mコード処理完了待ち指令を実行して、FINを受信してから、加工プログラム中のつぎのブロックに処理を進めるようにしたので、加工プログラム解析処理部14aでラダー処理部15aによるMコード処理の実行結果を知ることができ、Mコード処理と加工プログラムの処理とが干渉することを防ぐことができるという効果を有する。また、簡単にMコード処理完了待ちによる無駄時間を省き、サイクルタイムの短縮を実現することができるという効果を有する。さらに、複数のMコードに対し、それぞれ必要なFINを指定することで、無駄な待ち時間を排除し、サイクルタイムの短縮を実現することができるという効果を有する。   According to the second embodiment, the ladder processing unit 15a receives the M code, and when the processing is completed, returns the FIN to the machining program analysis processing unit 14a, and the machining program analysis processing unit 14a receives the M code. As soon as execution is instructed to the ladder processing unit 15a, the processing proceeds to the next block in the machining program, and an M code processing completion waiting instruction is executed before the block for which the result of the M code instructed in the previous block is desired. Since the processing is advanced to the next block in the machining program after receiving the FIN, the machining program analysis processing unit 14a can know the execution result of the M code processing by the ladder processing unit 15a. There is an effect that interference between the code processing and the processing of the machining program can be prevented. In addition, there is an effect that it is possible to easily reduce the cycle time by omitting the dead time due to completion of the M code processing. Furthermore, by designating necessary FINs for each of a plurality of M codes, it is possible to eliminate a wasteful waiting time and to realize a reduction in cycle time.

以上のように、本発明にかかる数値制御装置は、Mコードを有する加工プログラムを実行する際に適している。   As described above, the numerical control device according to the present invention is suitable for executing a machining program having an M code.

この発明による数値制御装置の実施の形態1の構成の一例を示す図である。It is a figure which shows an example of a structure of Embodiment 1 of the numerical control apparatus by this invention. 加工プログラム解析処理部におけるMコード指令処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the M code instruction | command process in a process program analysis process part. ラダー処理部におけるMコード実行処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the M code execution process in a ladder process part. 加工プログラム解析処理部におけるMF指令処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of MF command processing in a process program analysis process part. 数値制御装置のMコードの処理を説明するための加工プログラムとその加工プログラムに対応するラダーシーケンスの一例を示す図である。It is a figure which shows an example of the processing sequence for demonstrating the process of the M code | cord | chord of a numerical control apparatus, and the ladder sequence corresponding to the processing program. この発明による数値制御装置の実施の形態2の構成の一例を示す図である。It is a figure which shows an example of a structure of Embodiment 2 of the numerical control apparatus by this invention. 加工プログラム解析処理部におけるMコード指令処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the M code instruction | command process in a process program analysis process part. ラダー処理部におけるMコード実行処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the M code execution process in a ladder process part. 加工プログラム解析処理部におけるMF指令処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of MF command processing in a process program analysis process part. 従来の数値制御装置の構成を模式的に示す図である。It is a figure which shows typically the structure of the conventional numerical control apparatus. Mコード処理の従来例を示す図である。It is a figure which shows the prior art example of M code processing. Mコード処理の従来例を示す図である。It is a figure which shows the prior art example of M code processing.

符号の説明Explanation of symbols

1,1a 数値制御装置
11 入出力データ処理部
12 通信処理部
13 記憶部
14,14a 加工プログラム解析処理部
15,15a ラダー処理部
16 PLCインタフェース部
17 機械制御処理部
18 補間処理部
19 軸制御処理部
20 デジタル信号I/O制御部
21 ラダーシーケンス
31 マンマシンインタフェース部
32 外部入出力機器
40 工作機械
141 プログラム解析処理機能
142 暫定FIN受信機能
143 本FIN受信機能
151 PLC処理実行機能
152 暫定FIN出力機能
153 本FIN出力機能
153a FIN出力機能
1, 1a Numerical control device 11 Input / output data processing unit 12 Communication processing unit 13 Storage unit 14, 14a Machining program analysis processing unit 15, 15a Ladder processing unit 16 PLC interface unit 17 Machine control processing unit 18 Interpolation processing unit 19 Axis control processing Unit 20 Digital signal I / O control unit 21 Ladder sequence 31 Man-machine interface unit 32 External input / output device 40 Machine tool 141 Program analysis processing function 142 Provisional FIN reception function 143 FIN reception function 151 PLC processing execution function 152 Provisional FIN output function 153 FIN output function 153a FIN output function

Claims (3)

加工プログラムを解析し、加工プログラム中の所定の指令についてラダー処理手段に実行させる加工プログラム解析処理手段と、
前記加工プログラム解析処理手段からの指令に対応するラダーシーケンスを実行するラダー処理手段と、
前記加工プログラム解析処理手段による前記加工プログラムの解析結果と前記ラダー処理手段のラダーシーケンスの実行結果に基づいて、当該装置に接続される制御対象に対して所定の制御を行う機械制御処理手段と、
を備える数値制御装置において、
前記ラダー処理手段は、
前記加工プログラム解析処理手段からの加工を行うための補助的な処理を指令するMコードを受信すると、すぐに受信したMコードの処理が擬似的に終了したことを示す暫定処理終了信号を送信する暫定処理終了信号出力機能と、
受信した前記Mコードの処理が実際に終了したことを示す本処理終了信号を送信する本処理終了信号出力機能と、
を備え、
前記加工プログラム解析処理手段は、前記暫定処理終了信号を受信すると、前記加工プログラム中の前記Mコードに対する本処理終了信号の受信処理を行うMコード処理完了待ち指令を読込むまで、つぎのブロックに処理を進め、前記Mコード処理完了待ち指令を読込むまでに前記本処理終了信号を受信しない場合に、前記本処理終了信号を受信するまでつぎのブロックの処理を実行させない機能を有することを特徴とする数値制御装置。
Machining program analysis processing means for analyzing the machining program and causing the ladder processing means to execute a predetermined command in the machining program;
Ladder processing means for executing a ladder sequence corresponding to a command from the machining program analysis processing means;
Machine control processing means for performing predetermined control on a control target connected to the apparatus, based on an analysis result of the machining program by the machining program analysis processing means and an execution result of a ladder sequence of the ladder processing means;
In a numerical control device comprising:
The ladder processing means is
Upon receipt of an M code for instructing auxiliary processing for performing processing from the processing program analysis processing means, a temporary processing end signal indicating that the processing of the received M code has been pseudo-finished is transmitted. Provisional processing end signal output function,
A main processing end signal output function for transmitting a main processing end signal indicating that the processing of the received M code has actually ended;
With
When the processing program analysis processing means receives the provisional processing end signal, it continues to the next block until it reads an M code processing completion wait command for receiving the main processing end signal for the M code in the processing program. In the case where the main processing end signal is not received until the processing is advanced and the M code processing completion waiting instruction is read, the processing of the next block is not executed until the main processing end signal is received. Numerical control device.
加工プログラムを解析し、加工プログラム中の所定の指令についてラダー処理手段に実行させる加工プログラム解析処理手段と、
前記加工プログラム解析処理手段からの指令に対応するラダーシーケンスを実行するラダー処理手段と、
前記加工プログラム解析処理手段による前記加工プログラムの解析結果と前記ラダー処理手段のラダーシーケンスの実行結果に基づいて、当該装置に接続される制御対象に対して所定の制御を行う機械制御処理手段と、
を備える数値制御装置において、
前記ラダー処理手段は、
前記加工プログラム解析処理手段から受信した加工を行うための補助的な処理を指令するMコードの処理が終了したことを示す本処理終了信号を送信する本処理終了信号出力機能を備え、
前記加工プログラム解析処理手段は、前記加工プログラムからMコードを含むブロックを読込むと、前記Mコードを実行させる指令を前記ラダー処理手段に送信した後すぐに、前記加工プログラム中のつぎのブロックに処理を進め、前記加工プログラム中の前記Mコードに対する本処理終了信号の受信処理を行うMコード処理完了待ち指令を読込むまでに前記本処理終了信号を受信しない場合に、前記本処理終了信号を受信するまでつぎのブロックの処理を実行させない機能を有することを特徴とする数値制御装置。
Machining program analysis processing means for analyzing the machining program and causing the ladder processing means to execute a predetermined command in the machining program;
Ladder processing means for executing a ladder sequence corresponding to a command from the machining program analysis processing means;
Machine control processing means for performing predetermined control on a control target connected to the apparatus, based on an analysis result of the machining program by the machining program analysis processing means and an execution result of a ladder sequence of the ladder processing means;
In a numerical control device comprising:
The ladder processing means is
A processing end signal output function for transmitting a main processing end signal indicating that the processing of the M code for instructing an auxiliary processing for performing processing received from the processing program analysis processing means is completed;
When the machining program analysis processing means reads a block containing M code from the machining program, the machining program analysis processing means processes the next block in the machining program immediately after transmitting a command to execute the M code to the ladder processing means. The process end signal is received when the process end signal is not received until the M code process completion wait command for reading the process end signal for the M code in the machining program is read. A numerical control device characterized by having a function of not executing the processing of the next block until it is done.
前記Mコード処理完了待ち指令は、前記加工プログラム中の任意の位置に設置可能なことを特徴とする請求項1または2に記載の数値制御装置。   The numerical control device according to claim 1, wherein the M code processing completion waiting instruction can be set at an arbitrary position in the machining program.
JP2006136941A 2006-05-16 2006-05-16 Numerical controller Expired - Fee Related JP4558675B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006136941A JP4558675B2 (en) 2006-05-16 2006-05-16 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006136941A JP4558675B2 (en) 2006-05-16 2006-05-16 Numerical controller

Publications (2)

Publication Number Publication Date
JP2007310499A JP2007310499A (en) 2007-11-29
JP4558675B2 true JP4558675B2 (en) 2010-10-06

Family

ID=38843315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006136941A Expired - Fee Related JP4558675B2 (en) 2006-05-16 2006-05-16 Numerical controller

Country Status (1)

Country Link
JP (1) JP4558675B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207588A (en) * 2012-01-11 2013-07-17 发那科株式会社 Numerical Controller With Auxiliary Command Execution Function
US10317876B2 (en) 2016-10-21 2019-06-11 Fanuc Corporation Numerical control device and control method for numerical control device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5555422B2 (en) * 2008-12-26 2014-07-23 株式会社アマダ Numerical control apparatus and numerical control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62189506A (en) * 1986-02-15 1987-08-19 Mitsubishi Heavy Ind Ltd M-function output device for numerical controller
JPH03144803A (en) * 1989-10-31 1991-06-20 Fanuc Ltd Queuing control system for cnc
JPH0451301A (en) * 1990-06-19 1992-02-19 Mitsubishi Electric Corp Numerical controller
JPH0740187A (en) * 1993-07-29 1995-02-10 Star Micronics Co Ltd Controller for NC processing machine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207588A (en) * 2012-01-11 2013-07-17 发那科株式会社 Numerical Controller With Auxiliary Command Execution Function
JP2013143022A (en) * 2012-01-11 2013-07-22 Fanuc Ltd Numerical control device having execution function of auxiliary command
CN103207588B (en) * 2012-01-11 2015-06-17 发那科株式会社 Numerical Controller With Auxiliary Command Execution Function
US9335757B2 (en) 2012-01-11 2016-05-10 Fanuc Corporation Numerical controller with auxiliary command execution function
US10317876B2 (en) 2016-10-21 2019-06-11 Fanuc Corporation Numerical control device and control method for numerical control device

Also Published As

Publication number Publication date
JP2007310499A (en) 2007-11-29

Similar Documents

Publication Publication Date Title
US9639080B2 (en) Controller for controlling machine tool and robot
JP5414948B1 (en) Numerical controller
CN107024902B (en) Production system for driving multiple production devices by program of common language specification
JP4266893B2 (en) Robot control apparatus and robot system
CN116075400B (en) Numerical control system and robot control method
JP5210070B2 (en) Numerically controlled machine tool
JP4558675B2 (en) Numerical controller
WO1997017638A1 (en) Execution control system of sequence program
JP6638979B2 (en) Numerical control device with machining process management function and machining process management program
JP2011070539A (en) Programmable controller
JP6485950B2 (en) Numerical control system
JP5702833B2 (en) Numerical control device with screen display switching function following NC program
CN112051804B (en) Numerical controller
JP4549051B2 (en) Machine tool axis control device, machine tool axis control program
JP7174014B2 (en) Operating system, processing system, operating method, and program
JP6560996B2 (en) Numerical control device of machine tool, machine tool
JP3660038B2 (en) Numerical controller
US9904277B2 (en) Numerical controller configured for operation based on tabular data
JPH06282318A (en) Mumerically controlled machine tool
JP3198256B2 (en) Numerical control unit
JP2006072909A (en) Numeric controller
JP3072918B2 (en) Schedule operation method
JP6444729B2 (en) Numerical control device with high-speed sequence control by NC program
JP2005085095A (en) Numerical control device, numerical control device parameter setting method, and numerical control program
JPH08286717A (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: 20081204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100715

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100720

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100721

R150 Certificate of patent or registration of utility model

Ref document number: 4558675

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees