JP2014235466A - Machine tool - Google Patents

Machine tool Download PDF

Info

Publication number
JP2014235466A
JP2014235466A JP2013114870A JP2013114870A JP2014235466A JP 2014235466 A JP2014235466 A JP 2014235466A JP 2013114870 A JP2013114870 A JP 2013114870A JP 2013114870 A JP2013114870 A JP 2013114870A JP 2014235466 A JP2014235466 A JP 2014235466A
Authority
JP
Japan
Prior art keywords
machining program
power consumption
control system
machine tool
control device
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
JP2013114870A
Other languages
Japanese (ja)
Inventor
肇 松丸
Hajime Matsumaru
肇 松丸
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.)
Citizen Holdings Co Ltd
Citizen Machinery Miyano Co Ltd
Original Assignee
Citizen Holdings Co Ltd
Citizen Machinery Miyano Co 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 Citizen Holdings Co Ltd, Citizen Machinery Miyano Co Ltd filed Critical Citizen Holdings Co Ltd
Priority to JP2013114870A priority Critical patent/JP2014235466A/en
Publication of JP2014235466A publication Critical patent/JP2014235466A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a machine tool capable of efficiently suppressing a peak power in power consumption.SOLUTION: To a machine tool control device 12 for controlling a drive shaft of a moving body that moves along the shaft, mode setting means 18 is provided for selectively setting: a simultaneous execution mode for simultaneously executing respective processing programs in parallel so that power consumption during manufacturing a product does not exceed a predetermined allowable power consumption on the basis of information of power detection means 17 for detecting the power consumption caused by execution of the processing programs; and a series execution mode for sequentially executing each of the processing programs in series.

Description

本発明は、工作機械に関する。   The present invention relates to a machine tool.

従来軸移動する移動体に相当する主軸や刃物台と、前記移動体の駆動軸を制御する制御装置とを備え、前記制御装置が、所定の前記駆動軸が割り当てられる制御系統を複数備え、各制御系統に対応する加工プログラムからなる多系統プログラムに基づいて移動体の制御を行い、各加工プログラムを並列的に同時に実行する同時実行モードと、各加工プログラムを順次直列的に実行する直列実行モードとを有する工作機械が知られている(例えば特許文献1及び特許文献2参照)。   A spindle or a tool rest corresponding to a moving body that moves on a conventional axis, and a control device that controls a drive shaft of the moving body, and the control device includes a plurality of control systems to which the predetermined drive shaft is assigned, A simultaneous execution mode that controls a moving body based on a multi-system program consisting of machining programs corresponding to the control system, and executes each machining program simultaneously in parallel, and a serial execution mode that executes each machining program in series sequentially Are known (see, for example, Patent Document 1 and Patent Document 2).

また前記制御装置による前記加工プログラム実行によって生じる消費電力を検出する電力検出手段を備えた工作機械が知られている(例えば特許文献3参照)。   A machine tool provided with power detection means for detecting power consumption generated by execution of the machining program by the control device is known (see, for example, Patent Document 3).

特開2012ー208845号公報(「0011」〜「0017」、図1〜図3)JP 2012-208845 A ("0011" to "0017", FIGS. 1 to 3) 特開2013ー025727号公報(「0011」〜「0026」、図1〜図6)JP 2013-025727 A ("0011" to "0026", FIGS. 1 to 6) 特許第3088403号公報(全頁、全図)Japanese Patent No. 3088403 (all pages, all figures)

上記制御装置による前記加工プログラム実行によって、前記移動体を移動させるモータの駆動等により電力消費が伴う。特に制御装置を同時実行モードで作動させた場合に、電力消費のピーク電力が発生することが考えられる。ピーク電力の発生は通常一時的であるが、前記工作機械が設置されている工場の契約電力を越えると、停電等で工作機械が停止する等の不都合が発生する場合がある。   When the machining program is executed by the control device, power is consumed by driving a motor that moves the moving body. In particular, when the control device is operated in the simultaneous execution mode, peak power consumption may occur. Although the generation of peak power is usually temporary, if the contract power of the factory where the machine tool is installed is exceeded, there may be a problem that the machine tool stops due to a power failure or the like.

このため、工場の契約電力はピーク電力に応じて設定する必要がある。しかし一時的に発生するピーク電力に応じた契約電力とすると、契約電力が増大し、コストの増大等を引き起こす場合がある等の問題があった。   For this reason, the contract power of the factory needs to be set according to the peak power. However, if the contract power corresponding to the temporarily generated peak power is used, there is a problem that the contract power increases and the cost may increase.

上記課題を解決するための本発明の工作機械は、軸移動する移動体と、前記移動体の駆動軸を制御する制御装置12とを備え、前記制御装置12が、所定の前記駆動軸が割り当てられる制御系統を複数備え、各制御系統$1,$2に対応する加工プログラムSa,Sbからなる多系統プログラム13に基づいて移動体の制御を行い、各加工プログラムを並列的に同時に実行する同時実行モードと、各加工プログラムを順次直列的に実行する直列実行モードとを有し、前記制御装置12による前記加工プログラムの実行によって生じる消費電力を検出する電力検出手段17を備えた工作機械において、前記電力検出手段17の情報に基づき、前記加工プログラム実行中の消費電力が、予め定められた許容消費電力を越えないように、前記制御装置12に対して、前記同時実行モードと前記順次実行モードとを切り換えて設定するモード設定手段18を設けたことを第1の特徴とする。   A machine tool according to the present invention for solving the above-described problems includes a moving body that moves in a shaft and a control device 12 that controls a drive shaft of the moving body, and the control device 12 is assigned a predetermined drive shaft. Simultaneously executing a plurality of control systems in parallel and controlling a moving body based on a multi-system program 13 consisting of machining programs Sa and Sb corresponding to the control systems $ 1 and $ 2, respectively. In a machine tool having an execution mode and a serial execution mode in which each machining program is sequentially executed in series, and provided with power detection means 17 for detecting power consumption generated by the execution of the machining program by the control device 12, Based on the information of the power detection means 17, the control device is configured so that the power consumption during execution of the machining program does not exceed a predetermined allowable power consumption. Against 12, a first feature in that a mode setting means 18 for setting by switching between the concurrent mode and the sequential execution mode.

第2に、前記各加工プログラムSa,Sbが、各制御系統$1,$2間で待ち合わせを
行う待ち合わせ指令を備え、前記順次実行モードが、各加工プログラムの未実行のプログラムを前記待ち合わせ指令まで予め定められた制御系統の順序で実行し、実行順の最初の制御系統から最後の制御系統まで順次加工プログラムを実行するように構成されたことを特徴とする。
Secondly, each machining program Sa, Sb includes a waiting command for waiting between the control systems $ 1, $ 2, and the sequential execution mode determines that an unexecuted program of each machining program is up to the waiting command. The machining program is executed in the order of a predetermined control system, and the machining program is sequentially executed from the first control system to the last control system in the execution order.

第3に、前記電力検出手段18が、前記工作機械に材料を供給する供給手段8の消費電力を含めた消費電力を検出するように構成されたことを特徴とする。   Third, the power detection means 18 is configured to detect power consumption including power consumption of the supply means 8 for supplying material to the machine tool.

第4に、前記移動体が、主軸2,3と刃物台4,6であることを特徴とする。   4thly, the said mobile body is the main shafts 2 and 3 and the tool rests 4 and 6.

以上のように構成される本発明の構造によると、工作機械の稼働を停止させることなく、加工プログラムの実行に伴う電力消費のピーク電力を許容消費電力を越えないように効率的に抑制することができるという効果がある。これにより、例えば前記工作機械が設置されている工場の契約電力を小さくし、工作機械の動作に係るコストを低下させることが可能となる。   According to the structure of the present invention configured as described above, the peak power of the power consumption accompanying the execution of the machining program is efficiently suppressed so as not to exceed the allowable power consumption without stopping the operation of the machine tool. There is an effect that can be. Thereby, for example, the contract power of the factory where the machine tool is installed can be reduced, and the cost related to the operation of the machine tool can be reduced.

なお前記各加工プログラムが、各制御系統間で待ち合わせを行う待ち合わせ指令を備える場合は、前記順次実行モードを、各加工プログラムの未実行のプログラムを前記待ち合わせ指令まで予め定められた制御系統の順序で実行し、実行順の最初の制御系統から最後の制御系統まで順次加工プログラムを実行するように構成することができる。   In addition, when each said machining program is provided with the waiting instruction | command which waits between each control system, the said sequential execution mode is set in the order of the control system predetermined until the said waiting instruction for the program which has not been executed for each machining program. It is possible to execute the machining program sequentially from the first control system to the last control system in the execution order.

また前記電力検出手段を、前記工作機械に材料を供給する供給手段の消費電力を含めた消費電力を検出するように構成することによって、供給手段を含めた製品の製造システム全体のピーク電力を管理して抑制することが可能となる。なお移動体は、主軸や刃物台とすることができる。   Further, the power detection means is configured to detect power consumption including the power consumption of the supply means for supplying the material to the machine tool, thereby managing the peak power of the entire product manufacturing system including the supply means. And can be suppressed. The moving body can be a spindle or a tool post.

自動旋盤の概略図である。It is the schematic of an automatic lathe. 制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of a control apparatus. 同時実行モード時における加工プログラムブロックの実行状態を概念的に示すタイミングチャート図である。It is a timing chart which shows notionally the execution state of the machining program block in the simultaneous execution mode. 順次実行モード時における加工プログラムブロックの実行状態を概念的に示すタイミングチャート図である。It is a timing chart which shows notionally the execution state of the machining program block at the time of sequential execution mode. モード設定手段の動作を示すフローチャート図である。It is a flowchart figure which shows operation | movement of a mode setting means. 他の実施形態の制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the control apparatus of other embodiment. 他の実施形態の同時実行モード時における加工プログラムブロックの実行状態を概念的に示すタイミングチャート図である。It is a timing chart which shows notionally the execution state of the machining program block at the time of simultaneous execution mode of other embodiments. 他の実施形態のモード設定手段の動作を示すフローチャート図である。It is a flowchart figure which shows the operation | movement of the mode setting means of other embodiment. 他の実施形態の制御装置の動作状態を示すフローチャート図である。It is a flowchart figure which shows the operation state of the control apparatus of other embodiment. 他の実施形態の制御装置の動作状態を示すフローチャート図である。It is a flowchart figure which shows the operation state of the control apparatus of other embodiment. 他の実施形態の順次実行モード時における加工プログラムブロックの実行状態を概念的に示すタイミングチャート図である。It is a timing chart which shows notionally the execution state of the machining program block at the time of sequential execution mode of other embodiments.

図1は、本発明に係る工作機械である自動旋盤1の概略図である。自動旋盤1は、対向する2つの主軸2,3と各主軸2,3に対応する刃物台4,6が設けられている。自動旋盤1には、材料である長尺の棒材(ワーク)7を供給する材料供給装置8が併設されている。両主軸2,3は、各々主軸台14,16に、回転駆動自在に搭載され、且つ各々軸線方向(Z軸方向)又は軸線方向に直交するX軸方向に移動駆動自在に支持されている。   FIG. 1 is a schematic view of an automatic lathe 1 which is a machine tool according to the present invention. The automatic lathe 1 is provided with two opposing spindles 2 and 3 and tool posts 4 and 6 corresponding to the spindles 2 and 3. The automatic lathe 1 is provided with a material supply device 8 for supplying a long bar (work) 7 as a material. Both spindles 2 and 3 are mounted on spindle stocks 14 and 16, respectively, so as to be rotatable and supported so as to be movable in the axial direction (Z-axis direction) or in the X-axis direction orthogonal to the axial direction.

両主軸2,3は、開閉自在なチャックによってワーク7を開閉自在に把持することができる。両刃物台4,6はZ軸方向又はX軸方向又はY軸方向に移動駆動自在に支持されている。Y軸方向は、Z軸方向及びX軸方向に直交する方向である。両刃物台4,6には、ワーク7を加工する工具9,11が設けられている。両主軸2,3及び両刃物台4,6が、軸移動する移動体を構成している。なお前記軸移動は、主軸2,3の回転移動を含む。   Both the main shafts 2 and 3 can grip the work 7 so as to be freely opened and closed by an openable and closable chuck. Both tool rests 4 and 6 are supported so as to be movable and movable in the Z-axis direction, the X-axis direction or the Y-axis direction. The Y-axis direction is a direction orthogonal to the Z-axis direction and the X-axis direction. The tool rests 4 and 6 are provided with tools 9 and 11 for processing the workpiece 7. Both the main shafts 2 and 3 and the two tool rests 4 and 6 constitute a moving body that moves in an axial direction. The axial movement includes rotational movement of the main shafts 2 and 3.

自動旋盤1側又は材料供給装置8側には、両主軸2,3や各刃物台4,6の移動駆動や回転駆動、チャックの開閉駆動、自動旋盤1にワーク7を送り込む材料送り機構や材料送り機構にワーク7を供給する材料供給機構の駆動、図示しない切粉排出手段や製品搬出手段の駆動を行うモータやアクチュエータ、モータアンプの他、切削液の供給のためのポンプ、安全扉開閉手段、加工室内の照明手段等が設けられている。   On the automatic lathe 1 side or the material supply apparatus 8 side, the movement drive and rotation drive of both spindles 2 and 3 and the respective tool rests 4 and 6, the opening and closing drive of the chuck, the material feeding mechanism and material for feeding the workpiece 7 to the automatic lathe 1 In addition to motors, actuators, and motor amplifiers that drive the material supply mechanism that feeds the workpiece 7 to the feed mechanism, chip discharge means and product carry-out means (not shown), a pump for supplying cutting fluid, and safety door opening and closing means Illumination means and the like in the processing chamber are provided.

前記モータ、アクチュエータ、モータアンプ、ポンプ、安全扉開閉手段、照明手段等は、自動旋盤1に設けられるNC装置からなる制御装置12によって駆動等が総合的に制御される。前記モータ、アクチュエータ、モータアンプ、ポンプ、安全扉開閉手段、照明手段、制御装置12等は、電力によって作動を行う電力作動機器である。   The motors, actuators, motor amplifiers, pumps, safety door opening / closing means, illumination means, and the like are comprehensively controlled by a control device 12 including an NC device provided in the automatic lathe 1. The motor, the actuator, the motor amplifier, the pump, the safety door opening / closing means, the lighting means, the control device 12 and the like are power operating devices that are operated by electric power.

図2に示されるように、本実施形態において制御装置12は、2つの制御系統$1,$2を備える。自動旋盤1の各駆動軸は、いずれかの制御系統に所属される。制御装置12は、2つの制御系統$1,$2の各々に対応する加工プログラムSa、Sbからなる多系統プログラム13に基づいて、各制御系統$1,$2に割り当てられた所属軸を、制御系統$1,$2毎に独立して制御する。   As shown in FIG. 2, in the present embodiment, the control device 12 includes two control systems $ 1 and $ 2. Each drive shaft of the automatic lathe 1 belongs to one of the control systems. Based on the multi-system program 13 including the machining programs Sa and Sb corresponding to the two control systems $ 1 and $ 2, the control device 12 determines the assigned axes assigned to the control systems $ 1 and $ 2 respectively. Control is independently performed for each of the control systems $ 1 and $ 2.

本実施形態において、第1制御系統$1は、一方の主軸(正面主軸)2の回転駆動軸(C1軸)と、正面主軸2を支持する正面主軸台14のZ軸方向の移動駆動軸(Z1軸)と、正面主軸2に対応する刃物台(正面刃物台)4のX軸方向の移動駆動軸(X1軸)とが所属している。   In the present embodiment, the first control system $ 1 includes a rotation drive shaft (C1 axis) of one main shaft (front main shaft) 2 and a movement drive shaft in the Z-axis direction of the front main shaft base 14 that supports the front main shaft 2 ( Z1 axis) and the movement drive axis (X1 axis) in the X-axis direction of the tool post (front tool post) 4 corresponding to the front main spindle 2 belong.

第2制御系統$2は、他方の主軸(背面主軸)3の回転駆動軸(C2軸)と、背面主軸3を支持する背面主軸台16のZ軸方向及びX軸方向の移動駆動軸(Z2軸、X2軸)とが所属している。   The second control system $ 2 includes a rotational drive shaft (C2 axis) of the other main shaft (rear main shaft) 3, and a movement drive shaft (Z2) in the Z-axis direction and the X-axis direction of the rear main shaft 16 that supports the rear main shaft 3. Axis, X2 axis).

制御装置12は、加工プログラムSaに基づいて、C1軸、X1軸、Z1軸のモータを駆動制御することによって、正面主軸2、正面主軸台14及び正面刃物台4の作動を制御し、加工プログラムSbに基づいて、C2軸、X2軸、Z2軸のモータを駆動制御することによって、背面主軸3、背面主軸台16の作動を制御して、ワーク7を加工し、製品の製造を行うことができる。   The control device 12 controls the operations of the front spindle 2, the front spindle stock 14 and the front tool post 4 by driving and controlling the motors of the C1, X1, and Z1 axes based on the machining program Sa. Based on Sb, by driving and controlling the motors of the C2, X2, and Z2 axes, the operations of the rear spindle 3 and the rear spindle 16 can be controlled to process the workpiece 7 and manufacture the product. it can.

例えば、材料供給装置8から正面主軸2にワーク7を順次供給し、正面主軸2の回転や正面刃物台4の移動等によって正面主軸2に供給されたワーク7の加工を行い、加工されたワーク7を突っ切り、背面主軸3に受け渡し、背面主軸3の回転や背面主軸台16の移動等によってワーク7の2次加工を行うことで製品を製造することができる。   For example, the workpiece 7 is sequentially supplied from the material supply device 8 to the front spindle 2, and the workpiece 7 supplied to the front spindle 2 is processed by rotating the front spindle 2 or moving the front tool post 4. 7 can be cut off, transferred to the back spindle 3, and the workpiece 7 can be subjected to secondary machining by rotating the back spindle 3 or moving the back spindle 16.

ワーク7の加工に際して、材料送り機構や材料供給機構等の駆動、切削液の供給や、切粉排出手段や製品搬出手段の駆動、安全扉の開閉、加工室内の照明の点灯等の制御が必要に応じて行われる。   When processing the workpiece 7, it is necessary to control the drive of the material feed mechanism and the material supply mechanism, the supply of the cutting fluid, the drive of the chip discharge means and the product carry-out means, the opening and closing of the safety door, the lighting of the lighting in the processing chamber, etc. Is done according to.

図3に示すように、加工プログラムSaは、制御系統$1に所属する駆動軸を所定動作させるように直列に記載された加工プログラムブロックSa1、Sa2…を備えている。
加工プログラムSbは、制御系統$2に所属する駆動軸を所定動作させるように直列に記載された加工プログラムブロックSb1、Sb2…を備えている。なお「加工プログラムブロック」は、加工プログラムを構成する行単位の指令を動作単位毎に一纏めにした集合を意味する。
As shown in FIG. 3, the machining program Sa includes machining program blocks Sa1, Sa2,... Described in series so that the drive shafts belonging to the control system $ 1 are operated in a predetermined manner.
Machining program Sb is provided with machining program blocks Sb1, Sb2,... Described in series so that the drive shaft belonging to control system $ 2 operates in a predetermined manner. The “machining program block” means a set in which commands in units of lines constituting the machining program are grouped for each operation unit.

加工プログラムブロックSa2,Sb2が、加工プログラムブロックSa1,Sb1の終了を待って実行されるように、加工プログラムブロックSa1と、加工プログラムブロックSa2との間に待ち合わせ指令dSa1が設けられ、加工プログラムブロックSb1と、加工プログラムブロックSb2との間に待ち合わせ指令dSb1が設けられている。   A waiting command dSa1 is provided between the machining program block Sa1 and the machining program block Sa2 so that the machining program blocks Sa2 and Sb2 are executed after the machining program blocks Sa1 and Sb1 are finished, and the machining program block Sb1. And a waiting command dSb1 is provided between the machining program block Sb2.

加工プログラムブロックSa2以降の図示しない加工プログラムブロックと、加工プログラムブロックSb2以降の図示しない加工プログラムブロックとが、加工プログラムブロックSa2,Sb2の終了を待って実行されるように、加工プログラムブロックSa2と、加工プログラムブロックSb2の直後に、待ち合わせ指令dSa2と待ち合わせ指令dSb2が設けられている。   Machining program block Sa2 so that a machining program block (not shown) after machining program block Sa2 and a machining program block (not shown) after machining program block Sb2 are executed after completion of machining program blocks Sa2 and Sb2, Immediately after the machining program block Sb2, a waiting command dSa2 and a waiting command dSb2 are provided.

制御装置12は、多系統プログラム13を実行するモードとして、同時実行モードと順次実行モードとを備えている。制御装置12は、同時実行モードで作動すると、各加工プログラムSa,Sbを各々並列的に同時に実行する。   The control device 12 includes a simultaneous execution mode and a sequential execution mode as modes for executing the multi-system program 13. When operating in the simultaneous execution mode, the control device 12 executes the machining programs Sa and Sb simultaneously in parallel.

同時実行モードが継続される場合、加工プログラムブロックSa1,Sb1を待ち合わせ指令dSa1,dSb1まで同時に実行した後は、待ち合わせ指令dSa1,dSb1に基づき、加工プログラムブロックSa1,Sb1の実行完了を待って、加工プログラムブロックSa2,Sb2を相互に並行して実行する。   When the simultaneous execution mode is continued, after the machining program blocks Sa1 and Sb1 are simultaneously executed up to the waiting instructions dSa1 and dSb1, the machining program blocks Sa1 and Sb1 are waited for completion of the machining based on the waiting instructions dSa1 and dSb1. Program blocks Sa2 and Sb2 are executed in parallel with each other.

以降待ち合わせ指令毎に加工プログラムSa、Sbの各加工プログラムブロックを、加工プログラムブロックの完了を待ち合わせながら実行する。これにより制御装置12は、制御系統$1、$2の所属軸のそれぞれを互いに独立して並列に同時作動させて、効率良くワークを加工することができる。   Thereafter, each machining program block of the machining programs Sa and Sb is executed for each waiting command while waiting for completion of the machining program block. As a result, the control device 12 can work the workpieces efficiently by operating each of the belonging axes of the control systems $ 1 and $ 2 in parallel independently of each other.

一方制御装置12は、順次実行モードで作動すると、図4に示すように、各加工プログラムブロックSa,Sbを所定の順に直列的に順次実行する。順次実行モードでは、系統番号の小さい制御系統$1で未実行の加工プログラムブロックSa1を待ち合わせ指令dSa1まで実行し、次に系統番号の大きい制御系統$2で未実行の加工プログラムブロックSb1を待ち合わせ指令dSb1まで実行する。   On the other hand, when operating in the sequential execution mode, the control device 12 sequentially executes the machining program blocks Sa and Sb in series in a predetermined order as shown in FIG. In the sequential execution mode, an unexecuted machining program block Sa1 is executed up to the wait command dSa1 in the control system $ 1 with the smaller system number, and an unexecuted machining program block Sb1 is waited on the control system $ 2 with the next system number. Execute up to dSb1.

つまり各制御系統に対応する加工プログラムSa、Sbの未実行の加工プログラムブロックが、予め定められた制御系統の順に順次直列に実行される。本実施形態においては、系統番号の小さい順に順次直列に実行され、加工プログラムSaから加工プログラムSbまで、系統番号の小さい順に順次加工プログラムが実行され、順次実行1サイクルが完了する。   That is, machining program blocks that have not been executed for the machining programs Sa and Sb corresponding to each control system are sequentially executed in series in the order of the predetermined control system. In the present embodiment, the processing programs are sequentially executed in order from the smallest system number, and the machining programs are sequentially executed from the machining program Sa to the machining program Sb in the order from the smallest system number, and one sequential execution cycle is completed.

なお制御系統の実行順序は、系統番号が小さい順だけでなく、大きい順や作業者が任意に入力して設定する等、予めどのように定めてもよい。これにより制御装置は、制御系統$1、$2の所属軸を、互いに直列的に順次作動させワークを加工することができる。順次実行モードが継続される場合は、図4に示されるように、順次実行1サイクルを再帰的に繰り返して行う。   Note the order of execution of the control system is not only the order system number is small, like the descending order or the operator to set arbitrarily input may be determined how advance. As a result, the control apparatus can process the workpiece by sequentially operating the belonging axes of the control systems $ 1 and $ 2 in series with each other. When the sequential execution mode is continued, one sequential execution cycle is recursively repeated as shown in FIG.

従って系統番号の小さい制御系統$1に戻り、制御系統$1の未実行の加工プログラムブロックSa2を待ち合わせ指令dSa2まで実行し、次に制御系統$2で未実行の加工
プログラムブロックSb2を待ち合わせ指令dSb2まで実行する。これにより加工プログラムブロックSa1、Sa2、Sb1、Sb2が待ち合わせ指令dSa1、dSa2、dSb1、dSb2まで順次直列に実行される。
Therefore, returning to the control system $ 1 with the smaller system number, the unexecuted machining program block Sa2 of the control system $ 1 is executed up to the wait command dSa2, and then the unexecuted machining program block Sb2 is waited on the control system $ 2 to the wait command dSb2. Run until. As a result, the machining program blocks Sa1, Sa2, Sb1, and Sb2 are sequentially executed in series up to the waiting commands dSa1, dSa2, dSb1, and dSb2.

制御装置12による加工プログラムSa,Sbの実行に基づく、自動旋盤1によるワーク7の加工等に際して、自動旋盤1側や材料供給装置8側等に設けられる前記電力作動機器の動作により電力消費が伴う。制御装置12は、各電力作動機器の消費電力情報を検出することができるように構成されている。例えば、負荷の変動が多い主軸2,3を回転駆動するモータやアクチュエータの場合、リアルタイムに検出される電流値を消費電力情報とすることができる。   When processing the workpiece 7 by the automatic lathe 1 based on the execution of the processing programs Sa and Sb by the control device 12, power consumption is accompanied by the operation of the power operating device provided on the automatic lathe 1 side, the material supply device 8 side, or the like. . The control device 12 is configured to be able to detect power consumption information of each power operating device. For example, in the case of a motor or actuator that rotationally drives the spindles 2 and 3 with a large load fluctuation, a current value detected in real time can be used as power consumption information.

電圧、電流ともに変動する電力作動機器の場合、リアルタイムに検出される電圧値、電流値や、その電圧値と電流値の積を消費電力情報とすることができる。切削油ポンプや、冷却ファン等の時間当たりの消費電力がほぼ一定の機器の場合は、その定格消費電力の情報を消費電力情報とすることができる。   In the case of a power operating device that fluctuates both in voltage and current, the voltage value and current value detected in real time, and the product of the voltage value and current value can be used as power consumption information. In the case of a device with substantially constant power consumption per hour such as a cutting oil pump or a cooling fan, information on the rated power consumption can be used as power consumption information.

特に時間当たりの消費電力がほぼ一定で予めその値が既知の電力作動機器の消費電力情報は、予め制御装置12内にデータベースとして記憶しておくことができる。なお全ての電力作動機器の電力情報を、予め定められた、あるいは予め測定された定格消費電力としてデータベースに記憶させておいてもよい。   In particular, power consumption information of a power operating device whose power consumption per hour is almost constant and whose value is known in advance can be stored in advance in the control device 12 as a database. In addition, you may memorize | store the electric power information of all the electric power operating apparatuses in the database as the rated power consumption determined beforehand or measured beforehand.

制御装置12には、電力検出手段17が接続されている。電力検出手段17は、制御装置12から、各電力作動機器の消費電力情報を受け、各電力作動機器を合わせた全体の消費電力や、自動旋盤1の必要な部分の消費電力等を算出するように構成されている。電力検出手段17は、実際に自動旋盤1がワーク7の加工動作している際の消費電力を算出する他、多系統プログラム13を予め読み込み、自動旋盤1の動作をシミュレーションして消費電力を算出することができる。   A power detection means 17 is connected to the control device 12. The power detection means 17 receives the power consumption information of each power operating device from the control device 12, and calculates the total power consumption of each power operating device, the power consumption of a necessary part of the automatic lathe 1, etc. It is configured. In addition to calculating the power consumption when the automatic lathe 1 is actually performing the machining operation of the workpiece 7, the power detection means 17 reads the multi-system program 13 in advance and simulates the operation of the automatic lathe 1 to calculate the power consumption. can do.

前記同時実行モードの際に同時実行の対象となる加工プログラムブロックは、制御装置12が同時実行モードで作動されると、並列的に同時実行され、制御装置12が順次実行モードで作動されると、直列的に順次実行される。制御装置12には、前記同時実行の対象となる加工プログラムブロック毎に、制御装置12の実行モードを、前記同時実行モードと前記順次実行モードとを切り換えて設定するモード設定手段18が設けられている。   When the control device 12 is operated in the simultaneous execution mode, the machining program blocks to be simultaneously executed in the simultaneous execution mode are simultaneously executed in parallel, and when the control device 12 is sequentially operated in the execution mode. , Executed sequentially in series. The control device 12 is provided with mode setting means 18 for setting the execution mode of the control device 12 by switching between the simultaneous execution mode and the sequential execution mode for each machining program block to be simultaneously executed. Yes.

モード設定手段18は、図5のフローチャートに示されるように、ステップS1で、前記同時実行の対象となる加工プログラムブロックが有る場合、ステップS2で待ち合わせ記号まで並列的に同時実行した場合の消費電力を電力検出手段によって算出し、ステップS3に進む。   As shown in the flowchart of FIG. 5, when there is a machining program block to be simultaneously executed in step S1, the mode setting means 18 consumes power when executed in parallel up to the waiting symbol in step S2. Is calculated by the power detection means, and the process proceeds to step S3.

ステップS3において、算出された消費電力が、予め定められた許容消費電力を越えない場合はステップS4に進み、同時実行モードで前記対象となる加工プログラムブロックを実行するように制御装置12を設定する。ステップS3において、算出された消費電力が、前記許容消費電力を越える場合はステップS5に進み、順次実行モードで前記対象となる加工プログラムブロックを実行するように制御装置12を設定する。   In step S3, when the calculated power consumption does not exceed the predetermined allowable power consumption, the process proceeds to step S4, and the control device 12 is set to execute the target machining program block in the simultaneous execution mode. . In step S3, if the calculated power consumption exceeds the allowable power consumption, the process proceeds to step S5, and the control device 12 is set to execute the target machining program block in the sequential execution mode.

なお制御装置12は、デフォルトで同時実行モードが設定されるように構成されており、 ステップS1で、前記同時実行の対象となる加工プログラムブロックがない場合は、ステップS4に進み、制御装置を同時実行モード(デフォルト)に設定する。ステップS4又はステップS5で制御装置の実行モードをセットした後は、ステップS6で加工プログラムブロックが終了するまで繰り返す。   The control device 12 is configured so that the simultaneous execution mode is set by default, and if there is no machining program block to be simultaneously executed in step S1, the process proceeds to step S4, and the control device is simultaneously set. Set the execution mode (default). After the execution mode of the control device is set in step S4 or step S5, the process is repeated until the machining program block ends in step S6.

以上のように、モード設定手段18は、制御装置12に対して、消費電力が前記許容消費電力を越えると、同時実行モードから順次実行モードに切り換え、前記対象となる加工プログラムブロック毎に、消費電力に基づき、同時実行モード又は順次実行モードを設定する。なおモード設定手段18による制御装置12のモード設定は、いったん同時実行モードでワーク7の加工を行い、この際に実行することができる他、多系統プログラム13を予め読み込み、自動旋盤1の動作をシミュレーションして実行することもできる。   As described above, when the power consumption exceeds the allowable power consumption, the mode setting unit 18 switches from the simultaneous execution mode to the sequential execution mode and consumes each target machining program block. A simultaneous execution mode or a sequential execution mode is set based on the power. Note that the mode setting of the control device 12 by the mode setting means 18 can be performed once by machining the workpiece 7 in the simultaneous execution mode. In addition, the multi-system program 13 is read in advance and the operation of the automatic lathe 1 is performed. It can also be executed by simulation.

例えば、加工プログラムブロックSa1と加工プログラムブロックSb1とを同時に実行すると消費電力が許容消費電力を越え、 加工プログラムブロックSa2と加工プログラムブロックSb2とを同時に実行すると消費電力は許容消費電力を越えないものとする。   For example, if the machining program block Sa1 and the machining program block Sb1 are executed simultaneously, the power consumption exceeds the allowable power consumption. If the machining program block Sa2 and the machining program block Sb2 are executed simultaneously, the power consumption does not exceed the allowable power consumption. To do.

この場合制御装置12は、加工プログラムブロックSa1と加工プログラムブロックSb1の実行の際は、順次実行モードに切り換えられ、加工プログラムブロックSa1と加工プログラムブロックSb1とを直列的に順次実行させてワークを加工し、加工プログラムブロックSa2と加工プログラムブロックSb2の実行の際は、同時実行モードに切り換えられ、加工プログラムブロックSa2と加工プログラムブロックSb2とを並列的に同時実行させてワークを加工する。   In this case, when the machining program block Sa1 and machining program block Sb1 are executed, the control device 12 is switched to the sequential execution mode, and the machining program block Sa1 and machining program block Sb1 are sequentially executed in series to machine the workpiece. When executing the machining program block Sa2 and the machining program block Sb2, the mode is switched to the simultaneous execution mode, and the machining program block Sa2 and the machining program block Sb2 are simultaneously executed in parallel to machine the workpiece.

これにより自動旋盤1による製品の製造を停止させることなく、制御装置12による加工プログラムSa,Sbの実行に基づく、自動旋盤1によるワーク7の加工等に伴う電力消費のピーク電力を許容消費電力を越えないように抑制することができ、省電力での自動旋盤1の作動を容易に実現することができる。例えば自動旋盤1が設置されている工場等の契約電力を小さくすることによって、自動旋盤1の動作に係るコストを低下させることが可能となる。   As a result, the peak power consumption associated with the machining of the workpiece 7 by the automatic lathe 1 based on the execution of the machining programs Sa and Sb by the control device 12 can be reduced without stopping the production of the product by the automatic lathe 1. Therefore, the operation of the automatic lathe 1 can be easily realized with power saving. For example, by reducing the contract power in a factory or the like where the automatic lathe 1 is installed, it is possible to reduce the cost related to the operation of the automatic lathe 1.

なお前記ピーク電力の管理を、自動旋盤1のみで行えばよい場合は、電力検出手段17を、自動旋盤1に係る消費電力のみを算出するように構成してもよい。電力検出手段17は、管理するピーク電力の対象となる部分の消費電力を算出するように構成することができる。   In the case where the peak power may be managed only by the automatic lathe 1, the power detection unit 17 may be configured to calculate only the power consumption related to the automatic lathe 1. The power detection means 17 can be configured to calculate the power consumption of the portion that is the target of the peak power to be managed.

制御装置として、図6に示されるように、3つの制御系統$1,$2,$3を有する制御装置22を使用することもできる。例えば、対向する2つの主軸2,3と各主軸2,3に対応する工具9,11の他、Z軸方向、X軸方向、Y軸方向に移動駆動自在に支持されたタレット刃物台19を有する自動旋盤の制御は、制御装置22によって、容易に行うことができる。   As the control device, as shown in FIG. 6, a control device 22 having three control systems $ 1, $ 2, and $ 3 can be used. For example, in addition to the two main spindles 2 and 3 facing each other and the tools 9 and 11 corresponding to the main spindles 2 and 3, a turret tool post 19 supported so as to be movable and movable in the Z-axis direction, the X-axis direction, and the Y-axis direction. The automatic lathe can be easily controlled by the control device 22.

制御装置22は、3つの制御系統$1,$2,$3の各々に対応する加工プログラムSa、Sb,Scからなる多系統プログラム24に基づいて、各制御系統$1,$2,$3に割り当てられた所属軸を、制御系統$1,$2,$3毎に独立して制御する。本実施形態において、第1制御系統$1は、正面主軸2の回転駆動軸(C1軸)と、正面主軸2を搭載した正面主軸台のZ軸方向の移動駆動軸(Z1軸)と、正面主軸2に対応する工具9が装着された正面刃物台のX軸方向の移動駆動軸(X1軸)とが所属している。   The control device 22 is configured to control each of the control systems $ 1, $ 2, and $ 3 based on a multi-system program 24 including machining programs Sa, Sb, and Sc corresponding to each of the three control systems $ 1, $ 2, and $ 3. Is independently controlled for each of the control systems $ 1, $ 2, and $ 3. In the present embodiment, the first control system $ 1 includes a rotation drive shaft (C1 axis) of the front main shaft 2, a movement drive shaft (Z1 axis) in the Z-axis direction of the front headstock on which the front main shaft 2 is mounted, and a front surface. The movement drive shaft (X1 axis) in the X-axis direction of the front tool post on which the tool 9 corresponding to the main shaft 2 is mounted belongs.

第2制御系統$2は、タレット刃物台19のX軸方向及びY軸方向及びZ軸方向の移動駆動軸( X2軸、Y2軸、Z2軸)が所属している。第3制御系統$3は、背面主軸3の回転駆動軸(C3軸)と、背面主軸3を搭載した背面主軸台のX軸方向及びZ軸方向の移動駆動軸(X3軸、Z3軸)とが所属している。   The second control system $ 2 belongs to the turret tool post 19 in the X-axis direction, the Y-axis direction, and the Z-axis direction of the moving drive axes (X2, Y2, and Z2 axes). The third control system $ 3 includes a rotational drive shaft (C3 axis) of the back main shaft 3, a movement drive shaft (X3 axis, Z3 axis) in the X-axis direction and the Z-axis direction of the back main shaft mounting the back main shaft 3. Belongs to.

制御装置22は、加工プログラムSaに基づいて、C1軸、X1軸、Z1軸のモータを駆動制御することによって、正面主軸、正面主軸台及び正面刃物台の作動を制御し、加工プログラムSbに基づいて、X2軸、Y2軸、Z2軸のモータを駆動制御することによって、タレット刃物台19の作動を制御し、加工プログラムScに基づいて、C3軸、X3軸、Z3軸のモータを駆動制御することによって、背面主軸、背面主軸台の作動を制御して、ワーク7を加工し、製品の製造を行うことができる。   Based on the machining program Sa, the control device 22 controls the operations of the front spindle, the front spindle stock, and the front tool post by drivingly controlling the motors of the C1, X1, and Z1 axes, and based on the machining program Sb. Then, the operation of the turret tool post 19 is controlled by driving and controlling the X2-axis, Y2-axis, and Z2-axis motors, and the C3-axis, X3-axis, and Z3-axis motors are driven and controlled based on the machining program Sc. Accordingly, it is possible to manufacture the product by processing the workpiece 7 by controlling the operations of the back spindle and the back spindle.

なおワーク7の加工に際して、材料送り機構や材料供給機構等の駆動、切削液の供給や、切粉排出手段や製品搬出手段の駆動、安全扉の開閉、加工室内の照明の点灯等の制御が必要に応じて行われる。   When machining the workpiece 7, it is possible to control the driving of the material feeding mechanism, the material feeding mechanism, etc., the supply of the cutting fluid, the driving of the chip discharging means and the product carrying means, the opening and closing of the safety door, and the lighting of the lighting in the processing chamber. It is done as needed.

図7に示すように、加工プログラムSaは、制御系統$1に所属する駆動軸を所定動作させるように直列に記載された加工プログラムブロックSa1、Sa2、Sa3、Sa4…を備えている。加工プログラムSbは、制御系統$2に所属する駆動軸を所定動作させるように直列に記載された加工プログラムブロックSb1、Sb2、Sb3…を備えている。   As shown in FIG. 7, the machining program Sa includes machining program blocks Sa1, Sa2, Sa3, Sa4,... Described in series so that the drive shaft belonging to the control system $ 1 operates in a predetermined manner. The machining program Sb includes machining program blocks Sb1, Sb2, Sb3,... Described in series so as to cause the drive shaft belonging to the control system $ 2 to perform a predetermined operation.

加工プログラムScは、制御系統$3に所属する駆動軸を所定動作させるように直列に記載された加工プログラムブロックSc1、Sc2、Sc3…を備えている。待ち合わせ指令DSa1、DSa2、DSa3、DSa4が、加工プログラムブロックSa1、Sa2、Sa3、Sa4の直後に設定されている。   The machining program Sc includes machining program blocks Sc1, Sc2, Sc3,... Written in series so as to cause the drive shaft belonging to the control system $ 3 to perform a predetermined operation. The waiting instructions DSa1, DSa2, DSa3, DSa4 are set immediately after the machining program blocks Sa1, Sa2, Sa3, Sa4.

待ち合わせ指令DSb2、DSb3、DSb4が、加工プログラムブロックSb1、Sb2、Sb3の直後に設定されている。待ち合わせ指令DSc1、DSc3、DSc4が、加工プログラムブロックSc1、Sc2、Sc3の直後に設定されている。各待ち合わせ指令は、待ち合わせの対象となる制御系統に互いに対応するように設けられている。   Waiting commands DSb2, DSb3, DSb4 are set immediately after the machining program blocks Sb1, Sb2, Sb3. Waiting commands DSc1, DSc3, DSc4 are set immediately after the machining program blocks Sc1, Sc2, Sc3. Each waiting command is provided so as to correspond to the control system to be waited for.

待ち合わせ指令DSa1とDSc1とが互いに対応して設けられている。待ち合わせ指令DSa2とDSb2とが互いに対応して設けられている。待ち合わせ指令DSa3とDSb3とDSc3とが互いに対応して設けられている。待ち合わせ指令DSa4とDSb4とDSc4とが互いに対応して設けられている。   Waiting commands DSa1 and DSc1 are provided corresponding to each other. Waiting commands DSa2 and DSb2 are provided corresponding to each other. Waiting commands DSa3, DSb3, and DSc3 are provided corresponding to each other. Waiting commands DSa4, DSb4, and DSc4 are provided corresponding to each other.

なお加工動作には、複数の制御系統の所属軸を同時に作動させなければ成立しないものがある。このため前記待ち合わせ指令には、複数の制御系統の所属軸を同時に作動させるために、複数の制御系統を同時に並行して実行する際の待ち合わせ指令があり、以下「同時実行待ち合わせ指令」と称する。   Note that some machining operations cannot be established unless the belonging axes of a plurality of control systems are simultaneously operated. For this reason, the waiting command includes a waiting command for simultaneously executing a plurality of control systems in parallel in order to simultaneously operate the belonging axes of the plurality of control systems, and is hereinafter referred to as a “simultaneous execution waiting command”.

例えば第1制御系統$1の所属軸の動作に、第2制御系統$2の所属軸の動作を重畳させて加工を行う際に、第1制御系統$1と第2制御系統$2との待ち合わせを行う場合の「重畳加工パターン指令」が「同時実行待ち合わせ指令」に該当する。本実施例では、加工プログラムブロックSa4、Sb3、Sc3を並行して実行するための待ち合わせ指令DSa3,DSb3,DSc3が、「同時実行待ち合わせ指令」に相当する。   For example, when machining is performed by superimposing the operation of the belonging axis of the second control system $ 2 on the operation of the belonging axis of the first control system $ 1, the first control system $ 1 and the second control system $ 2 The “superimposed machining pattern command” when performing waiting corresponds to the “simultaneous execution waiting command”. In this embodiment, the waiting instructions DSa3, DSb3, DSc3 for executing the machining program blocks Sa4, Sb3, Sc3 in parallel correspond to “simultaneous execution waiting instructions”.

制御装置22は、前記制御装置12と同様に、同時実行モードと順次実行モードとモード設定手段23とを備える。同時実行モードは、前記同様であるため、詳細な説明は割愛する。制御装置22は同時実行モードで作動することによって、加工プログラムブロックSa1,Sb1,Sc1を待ち合わせ指令DSa1,DSb2,DSc1まで並行して実行する。   Similar to the control device 12, the control device 22 includes a simultaneous execution mode, a sequential execution mode, and mode setting means 23. Since the simultaneous execution mode is the same as described above, a detailed description is omitted. By operating in the simultaneous execution mode, the control device 22 executes the machining program blocks Sa1, Sb1, and Sc1 in parallel up to the waiting commands DSa1, DSb2, and DSc1.

なお同時実行モードが継続される場合は、対応する待ち合わせ指令DSa1、DSc1
に基づき、加工プログラムブロックSa1とSc1の実行完了を待ち合わせ、加工プログラムブロックSa1,Sc1の実行完了後、加工プログラムブロックSa2,Sc2を各々待ち合わせ指令DSa2,DSc3まで並行して実行する。
If the simultaneous execution mode is continued, the corresponding waiting instructions DSa1, DSc1
Based on the above, the execution of the machining program blocks Sa1 and Sc1 is waited for, and after the execution of the machining program blocks Sa1 and Sc1, the machining program blocks Sa2 and Sc2 are executed in parallel to the waiting commands DSa2 and DSc3, respectively.

加工プログラムブロックSb1の実行完了後は、待ち合わせ指令DSb2が、待ち合わせ指令DSa2と対応しているため,加工プログラムSa2の実行完了を待ち合わせ、加工プログラムブロックSa2,Sb1の実行完了後、加工プログラムブロックSa3,Sb2を各々待ち合わせ指令DSa3,DSb3まで並行して実行する。   After the completion of the execution of the machining program block Sb1, since the waiting command DSb2 corresponds to the waiting command DSa2, the execution of the machining program Sa2 is waited for, and after the execution of the machining program blocks Sa2 and Sb1, the machining program block Sa3 is completed. Sb2 is executed in parallel up to the waiting commands DSa3 and DSb3, respectively.

待ち合わせ指令DSa3,DSb3は、待ち合わせ指令DSc3と対応しているため、加工プログラムブロックSc2の実行完了を待ち合わせ、加工プログラムブロックSa3,Sb2,Sc2の実行完了後、加工プログラムブロックSa4,Sb3、Sc3を、各々待ち合わせ指令DSa4,DSb4,DSc4まで並行して実行し、以下プログラムエンドまで同様に実行する。   Since the waiting commands DSa3 and DSb3 correspond to the waiting command DSc3, the waiting for the completion of the execution of the machining program block Sc2 is completed, and after the execution of the machining program blocks Sa3, Sb2 and Sc2, the machining program blocks Sa4, Sb3 and Sc3 are changed. Each waiting command DSa4, DSb4, DSc4 is executed in parallel, and thereafter the same is executed until the program end.

モード設定手段23は、前記モード設定手段18と概ね同様であるため、同一の動作については説明を割愛するが、図8のフローチャートに示されるように、ステップS5で、順次実行モードで前記対象となる加工プログラムブロックを実行するように制御装置22を設定する際に、ステップS5−1で、待ち合わせが揃う系統を動作可能系統としてセットするように構成されている。   Since the mode setting unit 23 is substantially the same as the mode setting unit 18, the description of the same operation is omitted, but as shown in the flowchart of FIG. When the control device 22 is set so as to execute the machining program block, the system that is ready for waiting is set as an operable system in step S5-1.

制御装置22の順次実行モードは、図9及び図10のフローチャートに示されるように、ステップS1で、待ち合わせ指令が同時実行待ち合わせ指令であるか否かを判定する。待ち合わせ指令が同時実行待ち合わせ指令でなかった場合、ステップS2で制御系統$1が動作可能系統にセットされているか否かを判定する。   As shown in the flowcharts of FIGS. 9 and 10, the sequential execution mode of the control device 22 determines in step S1 whether or not the waiting command is a simultaneous execution waiting command. If the waiting command is not a simultaneous execution waiting command, it is determined in step S2 whether or not the control system $ 1 is set to an operable system.

ステップS2で、動作可能系統にセットされていた場合、ステップS3で第1制御系統$1に対して加工プログラムSaの加工プログラムブロックを実行し、ステップS4で次の待ち合わせ指令まで加工プログラムブロックを実行する。待ち合わせ指令まで実行されると、ステップS5で第1制御系統$1に対する動作可能系統のセットをリセットし、ステップS6に進む。   If it is set in the operable system in step S2, the machining program block of the machining program Sa is executed for the first control system $ 1 in step S3, and the machining program block is executed until the next waiting command in step S4. To do. When the waiting command is executed, the set of operable systems for the first control system $ 1 is reset in step S5, and the process proceeds to step S6.

なおステップS2で動作可能系統にセットされていなかった場合、ステップS2からステップS6に進む。ステップS6では、第2制御系統$2が動作可能系統にセットされているか否かを判定する。ステップS6で、動作可能系統にセットされていた場合、ステップS7で第2制御系統$2に対して加工プログラムSbの加工プログラムブロックを実行し、ステップS8で次の待ち合わせ指令まで加工プログラムブロックを実行する。   If it is not set in the operable system in step S2, the process proceeds from step S2 to step S6. In step S6, it is determined whether the second control system $ 2 is set to an operable system. If the operation system is set in step S6, the machining program block of the machining program Sb is executed for the second control system $ 2 in step S7, and the machining program block is executed until the next waiting command in step S8. To do.

待ち合わせ指令まで実行されると、ステップS9で第2制御系統$2に対する動作可能系統のセットをリセットし、ステップS10に進む。なおステップS6で動作可能系統にセットされていなかった場合、ステップS6からステップS10に進む。ステップS10では、第3制御系統$3が動作可能系統にセットされているか否かを判定する。   When the waiting command is executed, the set of operable systems for the second control system $ 2 is reset in step S9, and the process proceeds to step S10. If it is not set in the operable system in step S6, the process proceeds from step S6 to step S10. In step S10, it is determined whether the third control system $ 3 is set to an operable system.

ステップS10で、動作可能系統にセットされていた場合、ステップS11で第3制御系統$3に対して加工プログラムScの加工プログラムブロックを実行し、ステップS12で次の待ち合わせ指令まで加工プログラムブロックを実行する。待ち合わせ指令まで実行されると、ステップS13で第3制御系統$3に対する動作可能系統のセットをリセットし、終了する。   If it is set in the operable system in step S10, the machining program block of the machining program Sc is executed for the third control system $ 3 in step S11, and the machining program block is executed until the next waiting command in step S12. To do. When the waiting command is executed, the set of operable systems for the third control system $ 3 is reset in step S13, and the process ends.

なおステップS10で動作可能系統にセットされていなかった場合、ステップS10か
ら終了に進む。ステップS2において、待ち合わせ指令が、同時実行待ち合わせ指令である場合は、ステップS14で同時実行の対象となる制御系統の加工プログラムブロックを各々次の待ち合わせ指令まで同時に実行し、ステップS15で各制御系統に対する動作可能系統のセットをリセットする。
If it is not set in the operable system in step S10, the process proceeds from step S10 to the end. In step S2, when the waiting command is a simultaneous execution waiting command, the machining program blocks of the control system to be simultaneously executed are simultaneously executed in step S14 until the next waiting command. Reset the set of operable systems.

制御装置22は、モード設定手段23によって順次実行モードに設定され、順次実行モードで作動されると、前記制御装置12と同様に、各制御系統$1,$2,$3に対応する加工プログラムSa、Sb、Scの未実行の加工プログラムブロックが、予め定められた制御系統の順に順次直列に実行され、順次実行1サイクルが完了する。本実施形態においては、系統番号の小さい順に順次直列に実行される。   When the control device 22 is set to the sequential execution mode by the mode setting means 23 and is operated in the sequential execution mode, the machining program corresponding to each of the control systems $ 1, $ 2, and $ 3, as with the control device 12. Unexecuted machining program blocks of Sa, Sb, and Sc are sequentially executed in series in the order of a predetermined control system, and one execution cycle is completed. In the present embodiment, the processing is sequentially performed in order from the smallest system number.

順次加工プログラムを実行する際、他の制御系統との待ち合わせが完了する制御系統がモード設定手段のステップS5−1によって動作可能系統にセットされ、前記順次実行手段は、動作可能系統にセットされた制御系統の加工プログラムを、ステップS5、ステップS9、ステップS13、ステップS15によってリセット処理しながら実行する。なお制御系統の実行順序は、系統番号が小さい順だけでなく、大きい順や作業者が任意に入力して設定する等、予めどのように定めてもよい。   When the sequential machining program is executed, the control system that completes waiting with another control system is set as an operable system by step S5-1 of the mode setting means, and the sequential execution means is set as an operable system. The control system machining program is executed while being reset in steps S5, S9, S13, and S15. Note the order of execution of the control system is not only the order system number is small, like the descending order or the operator to set arbitrarily input may be determined how advance.

順次実行モードで、例えば図7の多系統プログラムを実行する場合、加工プログラムブロックSa1,Sb1,Sc1は、加工プログラムSa又は加工プログラムSb又は加工プログラムScの最初であるため、全て待ち合わせが揃っており、モード設定手段23によって第1制御系統$1、第2制御系統$2、第3制御系統$3が動作可能系統にセットされる。   In the sequential execution mode, for example, when the multi-system program of FIG. 7 is executed, the machining program blocks Sa1, Sb1, and Sc1 are all the waiting because they are the first of the machining program Sa, the machining program Sb, or the machining program Sc. The mode setting means 23 sets the first control system $ 1, the second control system $ 2, and the third control system $ 3 as operable systems.

これにより図11に示されるように、まず加工プログラムブロックSa1、加工プログラムブロックSb1、加工プログラムブロックSc1が順に実行され、実行順の最初の制御系統$1から最後の制御系統$3まで順次加工プログラムが実行され、順次実行1サイクルを完了する。なお順次実行モードが継続される場合は、順次実行1サイクルが再帰的に繰り返して行われる。   Thus, as shown in FIG. 11, first, the machining program block Sa1, machining program block Sb1, and machining program block Sc1 are executed in order, and the machining program is sequentially executed from the first control system $ 1 to the last control system $ 3 in the execution order. Are executed, and one sequential execution cycle is completed. When the sequential execution mode is continued, one sequential execution cycle is recursively repeated.

再度順次実行1サイクルを実行する際は、待ち合わせが揃う第1制御系統$1と第3制御系統$3が動作可能系統にセットされるため、第1制御系統$1及び第3制御系統$3の加工プログラムSa,Scのみが実行の対象となり、加工プログラムブロックSa2、加工プログラムブロックSc2が順に実行され、第2制御系統$2をスキップして、実行順の最初の制御系統$1から最後の制御系統$3まで順次加工プログラムを実行し、順次実行1サイクルを完了する。   When one sequential execution cycle is executed again, the first control system $ 1 and the third control system $ 3, which are all in line, are set as operable systems, so the first control system $ 1 and the third control system $ 3. Only the machining programs Sa and Sc are executed, the machining program block Sa2 and the machining program block Sc2 are executed in order, the second control system $ 2 is skipped, and the first control system $ 1 from the first control system $ 1 in the execution order to the last The machining program is sequentially executed up to the control system $ 3, and one sequential execution cycle is completed.

同様に再度順次実行1サイクルを実行する際は、待ち合わせが揃う第1制御系統$1と第2制御系統$2が動作可能系統にセットされるため、第1制御系統$1及び第2制御系統$2の加工プログラムSa,Sbのみが実行の対象となり、加工プログラムブロックSa3、加工プログラムブロックSb2が順に実行され、第3制御系統$3をスキップして、実行順の最初の制御系統$1から最後の制御系統$3まで順次加工プログラムを実行し、順次実行1サイクルを完了する。   Similarly, when one sequential execution cycle is executed again, the first control system $ 1 and the second control system $ 1 and the second control system are set in the operable system because the first control system $ 1 and the second control system $ 2 that are ready for waiting are set. Only the machining program Sa, Sb of $ 2 is to be executed, the machining program block Sa3, the machining program block Sb2 are executed in order, the third control system $ 3 is skipped, and the first control system $ 1 in the execution order starts. The machining program is sequentially executed up to the last control system $ 3, and the sequential execution cycle is completed.

次に再度順次実行1サイクルを実行する際は、待ち合わせ指令DSa3,DSb3,DSc3が同時実行待ち合わせ指令であるため、同時実行の対象となっている第1から第3制御系統$1,$2,$3の加工プログラムブロックSa,Sb,Scが同時に実行される。   Next, when executing one sequential execution cycle again, since the waiting instructions DSa3, DSb3, DSc3 are simultaneous execution waiting instructions, the first to third control systems $ 1, $ 2, $ 2, $ 2, which are the targets of simultaneous execution. The machining program blocks Sa, Sb and Sc of $ 3 are executed simultaneously.

制御装置22を適用した場合でも、自動旋盤による製品の製造を停止させることなく、
自動旋盤によるワークの加工等に伴う電力消費のピーク電力を許容消費電力を越えないように抑制することができ、省電力でのワークの加工を容易に実現することができる。ただし制御装置22は順次実行モードで作動しても、待ち合わせ指令が同時実行待ち合わせ指令の場合は、ステップS14によって同時実行の対象となっている制御系統の加工プログラムブロックを同時に実行する。
Even when the control device 22 is applied, without stopping the production of the product by the automatic lathe,
It is possible to suppress the peak power consumption associated with machining of a workpiece by an automatic lathe so as not to exceed the allowable power consumption, and it is possible to easily realize workpiece machining with power saving. However, even if the control device 22 operates in the sequential execution mode, if the waiting command is a simultaneous execution waiting command, the machining program block of the control system that is the target of simultaneous execution is simultaneously executed in step S14.

これにより、複数の制御系統の所属軸を同時に作動させなければ成立しない加工動作は複数の制御系統が同時実行される。この際の消費電力は許容する必要があるため、前記許容消費電力は、複数の制御系統の所属軸を同時に作動させなければ成立しない加工動作時の消費電力を考慮して設定する必要がある。   Thereby, a plurality of control systems are simultaneously executed for machining operations that cannot be established unless the belonging axes of the plurality of control systems are operated simultaneously. Since it is necessary to allow the power consumption at this time, the allowable power consumption needs to be set in consideration of the power consumption at the time of a machining operation that cannot be established unless the affiliated axes of a plurality of control systems are operated simultaneously.

なお前記モード設定手段18,23は、図5又は図8のフローチャートに基づいて、制御装置12,22に対して同時実行モードと順次実行モードを自動的に設定するように構成されているが、例えば制御装置12,22のモニター画面等に、加工プログラム実行時の消費電力を表示し、表示される消費電力に応じて、オペレータ等が前記許容消費電力に基づいて、手動で同時実行モードと順次実行モードを切り換えて設定することができるようにしてもよい。   The mode setting means 18 and 23 are configured to automatically set the simultaneous execution mode and the sequential execution mode for the control devices 12 and 22 based on the flowchart of FIG. 5 or FIG. For example, the power consumption during execution of the machining program is displayed on the monitor screens of the control devices 12 and 22, and according to the displayed power consumption, an operator or the like manually and sequentially executes the simultaneous execution mode based on the allowable power consumption. The execution mode may be switched and set.

以上に記載した実施形態は、実際の工作機械を例に説明したが、パーソナルコンピュータ等で多系統プログラムを実行して仮想的に工作機械の動作や電力消費をシミュレーションするもの(エミュレータ)も本発明の工作機械に含むものとし、この場合の効果は、エミュレータによるシミュレーションの結果を実際の工作機械に適用することによって奏することとなる。   Although the embodiment described above has been described by taking an actual machine tool as an example, an apparatus (emulator) that virtually simulates the operation and power consumption of a machine tool by executing a multi-system program on a personal computer or the like is also included in the present invention. The effect in this case is achieved by applying the result of the simulation by the emulator to the actual machine tool.

2 主軸
3 主軸
7 ワーク
8 材料供給装置(供給手段)
4 刃物台
6 刃物台
12 制御装置
13 多系統プログラム
17 電力検出手段
18 モード設定手段
Sa 加工プログラム
Sb 加工プログラム
2 Spindle 3 Spindle 7 Workpiece 8 Material supply device (supply means)
4 Tool post 6 Tool post 12 Control device 13 Multi-system program 17 Power detection means 18 Mode setting means Sa machining program Sb machining program

Claims (4)

軸移動する移動体と、前記移動体の駆動軸を制御する制御装置(12)とを備え、前記制御装置(12)が、所定の前記駆動軸が割り当てられる制御系統を複数備え、各制御系統($1,$2)に対応する加工プログラム(Sa,Sb)からなる多系統プログラム(13)に基づいて移動体の制御を行い、各加工プログラムを並列的に同時に実行する同時実行モードと、各加工プログラムを順次直列的に実行する直列実行モードとを有し、前記制御装置(12)による前記加工プログラムの実行によって生じる消費電力を検出する電力検出手段(17)を備えた工作機械において、前記電力検出手段(17)の情報に基づき、前記加工プログラム実行中の消費電力が、予め定められた許容消費電力を越えないように、前記制御装置(12)に対して、前記同時実行モードと前記順次実行モードとを切り換えて設定するモード設定手段(18)を設けた工作機械。   A moving body that moves the axis, and a control device (12) that controls a drive shaft of the moving body, and the control device (12) includes a plurality of control systems to which the predetermined drive shaft is assigned, and each control system A simultaneous execution mode in which the moving body is controlled based on a multi-system program (13) including machining programs (Sa, Sb) corresponding to ($ 1, $ 2), and each machining program is simultaneously executed in parallel; A machine tool having a power detection means (17) for detecting power consumption generated by execution of the machining program by the control device (12). Based on the information of the power detection means (17), the control device (12) is controlled so that the power consumption during execution of the machining program does not exceed a predetermined allowable power consumption. To the machine tool in which a concurrent mode and the mode setting means for setting by switching between sequential execution mode (18). 前記各加工プログラム(Sa,Sb)が、各制御系統($1,$2)間で待ち合わせを行う待ち合わせ指令を備え、前記順次実行モードが、各加工プログラムの未実行のプログラムを前記待ち合わせ指令まで予め定められた制御系統の順序で実行し、実行順の最初の制御系統から最後の制御系統まで順次加工プログラムを実行するように構成された請求項1の工作機械。   Each machining program (Sa, Sb) is provided with a waiting command for waiting between the control systems ($ 1, $ 2), and the sequential execution mode is set for an unexecuted program of each machining program up to the waiting command. The machine tool according to claim 1, wherein the machine tool is configured to execute in a predetermined control system order and sequentially execute the machining program from the first control system to the last control system in the execution order. 前記電力検出手段(18)が、前記工作機械に材料を供給する供給手段(8)の消費電力を含めた消費電力を検出するように構成された請求項1又は請求項2に記載の工作機械。   The machine tool according to claim 1 or 2, wherein the power detection means (18) is configured to detect power consumption including power consumption of a supply means (8) for supplying material to the machine tool. . 前記移動体が、主軸(2,3)と刃物台(4,6)である請求項1乃至3のいずれか1項に記載の工作機械。   The machine tool according to any one of claims 1 to 3, wherein the movable body is a main spindle (2, 3) and a tool post (4, 6).
JP2013114870A 2013-05-31 2013-05-31 Machine tool Pending JP2014235466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013114870A JP2014235466A (en) 2013-05-31 2013-05-31 Machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013114870A JP2014235466A (en) 2013-05-31 2013-05-31 Machine tool

Publications (1)

Publication Number Publication Date
JP2014235466A true JP2014235466A (en) 2014-12-15

Family

ID=52138163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013114870A Pending JP2014235466A (en) 2013-05-31 2013-05-31 Machine tool

Country Status (1)

Country Link
JP (1) JP2014235466A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019065138A1 (en) * 2017-09-28 2019-04-04 シチズン時計株式会社 Machine tool

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019065138A1 (en) * 2017-09-28 2019-04-04 シチズン時計株式会社 Machine tool
CN111095142A (en) * 2017-09-28 2020-05-01 西铁城时计株式会社 Machine tool
JPWO2019065138A1 (en) * 2017-09-28 2020-10-15 シチズン時計株式会社 Machine Tools
JP7154218B2 (en) 2017-09-28 2022-10-17 シチズン時計株式会社 Machine Tools
US11491548B2 (en) 2017-09-28 2022-11-08 Citizen Watch Co., Ltd. Machine tool system that restricts parallel execution of predetermined operations by different tools
TWI791606B (en) * 2017-09-28 2023-02-11 日商西鐵城時計股份有限公司 machine tool
CN111095142B (en) * 2017-09-28 2023-05-30 西铁城时计株式会社 Machine tool

Similar Documents

Publication Publication Date Title
US9310799B2 (en) Numerical controller having function of operation based on table format data
US8630732B2 (en) Method for avoiding an unwanted collision between a tool and a workpiece in a machine tool
JP6376440B2 (en) Machine Tools
JP6677835B2 (en) Machine tool control device
WO2013118241A1 (en) Numeric control device
Zhilevski et al. Control Device for a Type of Machine Tools
JP2004220384A (en) Control device for automated machine
JP2014235466A (en) Machine tool
JP2016062175A (en) Drive control device of machine tool
WO2016194748A1 (en) Machine tool
JP2009142915A (en) Machine tool and machining method using the same
JP6770018B2 (en) Setting device and setting program
JP6444969B2 (en) Numerical controller
JP7464386B2 (en) Control device and control method
JP2004216504A (en) Loader control device
JP2004086306A (en) Multiple system numerical controller
JP2019042865A (en) Transport device and machine tool comprising the same
JP2008126371A (en) Machine tool
US9964940B2 (en) Numerical controller for performing axis control of two parallel axes
JP2007326182A (en) Lathe with supplying means of bar workpiece
WO2024084710A1 (en) Machine tool
US10481591B2 (en) Numerical controller
WO2023053349A9 (en) Numerical control device
JP2006072909A (en) Numeric controller
JP2017191359A (en) Machine tool