JP6881362B2 - Numerical control device - Google Patents

Numerical control device Download PDF

Info

Publication number
JP6881362B2
JP6881362B2 JP2018048730A JP2018048730A JP6881362B2 JP 6881362 B2 JP6881362 B2 JP 6881362B2 JP 2018048730 A JP2018048730 A JP 2018048730A JP 2018048730 A JP2018048730 A JP 2018048730A JP 6881362 B2 JP6881362 B2 JP 6881362B2
Authority
JP
Japan
Prior art keywords
time
display
tool
cpu
execution
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.)
Active
Application number
JP2018048730A
Other languages
Japanese (ja)
Other versions
JP2019160104A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018048730A priority Critical patent/JP6881362B2/en
Priority to CN201910024565.6A priority patent/CN110275483B/en
Publication of JP2019160104A publication Critical patent/JP2019160104A/en
Application granted granted Critical
Publication of JP6881362B2 publication Critical patent/JP6881362B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form

Description

本発明は、ワークの加工にかかる時間を計測する数値制御装置に関する。 The present invention relates to a numerical control device that measures the time required for machining a workpiece.

数値制御装置は、NCプログラムに基づき工作機械の動作を制御する。特許文献1に記載の数値制御装置は、NCプログラムの実行時間を計測し、ワークの加工に要するサイクルタイムとして提示する。管理者は、サイクルタイム時間を考慮して、工作機械を用いた生産の管理を行うことができる。 The numerical control device controls the operation of the machine tool based on the NC program. The numerical control device described in Patent Document 1 measures the execution time of the NC program and presents it as the cycle time required for machining the workpiece. The manager can manage the production using the machine tool in consideration of the cycle time.

特許第4312047号公報Japanese Patent No. 4312047

しかしながら、工作機械が自動で開閉する扉を搭載する場合、数値制御装置は工作機械の制御を開始すると扉を閉鎖してからNCプログラムを実行し、ワークを加工する。加工後、数値制御装置は扉を開放し、工作機械の制御を終了する。特許文献1では、実行時間が扉の開閉時間を含まないので、生産にかかる実時間が実行時間に基づく想定時間と異なるという問題があった。 However, when the machine tool is equipped with a door that opens and closes automatically, the numerical control device closes the door when the control of the machine tool is started, and then executes the NC program to process the workpiece. After machining, the numerical control device opens the door and ends the control of the machine tool. In Patent Document 1, since the execution time does not include the opening / closing time of the door, there is a problem that the actual time required for production is different from the estimated time based on the execution time.

本発明の目的は、工作機械の動作時間を考慮した実行時間を提示することができる数値制御装置を提供することである。 An object of the present invention is to provide a numerical control device capable of presenting an execution time in consideration of an operating time of a machine tool.

本発明の一態様によれば、NCプログラムに基づいてワークに加工する工作機械の動作を制御する数値制御装置において、前記ワークの加工にかかる時間として、前記NCプログラムの実行時間を計測する実行時間計測手段と、前記工作機械の駆動にかかる時間として、前記工作機械の動作を制御する間の時間のうち、前記NCプログラムの非実行中の時間である動作時間を計測する動作時間計測手段と、記憶部に前記実行時間と前記動作時間を記憶する記憶手段と、表示部に前記実行時間を表示する表示手段とを備え、前記記憶部は、予め、前記表示部に前記実行時間を表示する場合の表示設定を記憶し、前記表示手段は、前記表示設定が、前記実行時間に前記動作時間を含めて表示する設定である場合、前記実行時間と前記動作時間とを合計した合計時間を前記実行時間として前記表示部に表示し、前記表示設定が、前記実行時間に前記動作時間を含めずに表示する設定である場合、前記表示部に前記実行時間のみを表示することを特徴とする数値制御装置が提供される。 According to one aspect of the present invention, in a numerical control device that controls the operation of a machine tool that processes a work based on an NC program, the execution time for measuring the execution time of the NC program as the time required for processing the work. The measuring means, the operating time measuring means for measuring the operating time, which is the non-execution time of the NC program, among the time between controlling the operation of the machine tool as the time required for driving the machine tool, and the operating time measuring means. When the storage unit includes a storage unit for storing the execution time and the operation time, and a display unit for displaying the execution time on the display unit, and the storage unit displays the execution time on the display unit in advance. When the display setting is set to include the operation time in the execution time, the display means calculates the total time obtained by totaling the execution time and the operation time. Numerical control characterized in that only the execution time is displayed on the display unit when the time is displayed on the display unit and the display setting is a setting for displaying the operation time without including the operation time in the execution time. Equipment is provided.

工作機械を用いた生産にかかる時間は、NCプログラムに従ってワークを加工する間の実行時間だけでなく、NCプログラムが非実行中でありながらも工作機械の駆動を制御している間の動作時間もかかる。動作時間は、例えば、工作機械の扉を開閉する間の時間や、工作機械を製造ラインに組み込んだ場合に、加工前のワークを搬入し、加工後のワークを搬出する間の時間等である。数値制御装置は、表示設定に基づいて、実行時間と動作時間の合計時間を表示部に表示することができる。故に管理者は、工作機械を用いた生産にかかる時間をより正確に把握でき、生産管理を行うことができる。 The time required for production using a machine tool is not only the execution time while machining the workpiece according to the NC program, but also the operation time while the NC program is not executing but controls the drive of the machine tool. It takes. The operating time is, for example, the time between opening and closing the door of the machine tool, the time between carrying in the work before machining and carrying out the workpiece after machining when the machine tool is incorporated into the production line, and the like. .. The numerical control device can display the total time of the execution time and the operation time on the display unit based on the display setting. Therefore, the manager can more accurately grasp the time required for production using the machine tool and can perform production control.

本態様において、前記NCプログラムの実行が一時的に停止した状態にある場合、前記実行時間計測手段は、前記実行時間を非計測の状態にしてもよい。NCプログラムに従うワークの加工中に、例えば手動データ入力(MDI)モードに移行する場合や、手動操作を受け付ける場合など、数値制御装置は、NCプログラムの実行を一時的に停止する場合がある。この場合、数値制御装置は、実行時間の計測を非計測の状態にすることができる。すなわち数値制御装置は、NCプログラムの実行に従ってワークを加工しているときのみ、実行時間を計測する。故に管理者は、工作機械を用いた生産にかかる時間をより正確に把握することができる。 In the present embodiment, when the execution of the NC program is temporarily stopped, the execution time measuring means may set the execution time to a non-measured state. During machining of a workpiece according to an NC program, the numerical control device may temporarily stop the execution of the NC program, for example, when shifting to a manual data input (MDI) mode or when accepting a manual operation. In this case, the numerical control device can put the measurement of the execution time into a non-measurement state. That is, the numerical control device measures the execution time only when the workpiece is machined according to the execution of the NC program. Therefore, the manager can more accurately grasp the time required for production using the machine tool.

本態様において、前記NCプログラムの実行が中断した場合、前記表示手段は、前記実行時間とともに、前記ワークに対する加工が中断した旨を示す識別子を前記表示部に表示してもよい。ワークの加工を途中で中止する場合、数値制御装置はNCプログラムの実行を中断する。この場合、数値制御装置は、工作機械の制御を途中で終了するので、実行時間の計測だけでなく、動作時間の計測も途中で終了する。よって実行時間と動作時間は、生産にかかる時間を正確に表すものではない。この場合、数値制御装置は、表示部に実行時間とともに識別子を表示することで、ワークの加工が途中で終了したことを報せることができる。 In the present embodiment, when the execution of the NC program is interrupted, the display means may display an identifier indicating that the machining on the work is interrupted on the display unit together with the execution time. When the machining of the workpiece is stopped in the middle, the numerical control device interrupts the execution of the NC program. In this case, since the numerical control device ends the control of the machine tool in the middle, not only the measurement of the execution time but also the measurement of the operation time ends in the middle. Therefore, the execution time and the operation time do not accurately represent the time required for production. In this case, the numerical control device can notify that the machining of the work is completed in the middle by displaying the identifier on the display unit together with the execution time.

本態様において、前記記憶手段は、計測が完了した前記実行時間及び前記動作時間を複数件、前記記憶部に記憶し、前記表示手段は、複数件の前記実行時間を前記表示部に一覧表示してもよい。数値制御装置は、ワークの加工にかかる時間の履歴を記憶部に記憶し、一覧表示することができる。故に管理者は、工作機械を用いた生産にかかる時間の履歴を確認することができる。 In the present embodiment, the storage means stores a plurality of the execution time and the operation time for which measurement is completed in the storage unit, and the display means displays a list of the plurality of execution times in the display unit. You may. The numerical control device can store the history of the time required for machining the work in the storage unit and display it in a list. Therefore, the manager can check the history of the time required for production using the machine tool.

本態様において、前記記憶手段は、計測が完了した前記実行時間及び前記動作時間とともに、前記NCプログラムの実行の中断によって計測が完了しなかった前記実行時間及び前記動作時間を前記記憶部に記憶してもよい。数値制御装置は、ワークの加工にかかる時間の履歴だけでなく、ワークの加工が途中で中止した場合の時間も履歴として記憶部に記憶することができる。故に管理者は、ワークの加工が正常に終了した場合の履歴と、ワークの加工を途中で中止した場合の履歴を比較することができる。 In the present embodiment, the storage means stores in the storage unit the execution time and the operation time for which the measurement is completed, and the execution time and the operation time for which the measurement is not completed due to the interruption of the execution of the NC program. You may. The numerical control device can store not only the history of the time required for machining the work but also the time when the machining of the work is stopped in the middle as a history in the storage unit. Therefore, the administrator can compare the history when the machining of the work is completed normally and the history when the machining of the work is stopped in the middle.

本態様は、前記実行時間の計測中に、前記工作機械が主軸に装着した工具を操作する操作時間を計測する操作時間計測手段を備え、前記表示手段は、前記実行時間とともに、前記操作時間を前記表示部に表示してもよい。数値制御装置は、ワークの加工にかかる時間のうち、工具によって実際にワークを加工する時間を操作時間として、実行時間とともに表示することができる。故に管理者は、工具によるワークの加工にかかる操作時間を実行時間と比較することができ、生産管理を行うことができる。 The present embodiment includes an operation time measuring means for measuring the operation time for operating the tool mounted on the spindle by the machine tool during the measurement of the execution time, and the display means displays the operation time together with the execution time. It may be displayed on the display unit. The numerical control device can display the time actually machined by the tool among the time required for machining the work as the operation time together with the execution time. Therefore, the manager can compare the operation time required for machining the workpiece with the tool with the execution time, and can perform production control.

本態様において、前記工作機械は、複数の前記工具を交換可能であり、前記操作時間計測手段は、前記工作機械が前記工具を交換するごとに、交換後の前記工具に対応する前記操作時間を計測してもよい。数値制御装置は、工具ごとの操作時間を取得することができる。故に管理者は、各工具の使用状況を把握することができる。 In this embodiment, the machine tool can replace a plurality of the tools, and the operation time measuring means sets the operation time corresponding to the replaced tool each time the machine tool replaces the tool. You may measure. The numerical control device can acquire the operation time for each tool. Therefore, the manager can grasp the usage status of each tool.

数値制御装置20と工作機械10の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of a numerical control device 20 and a machine tool 10. 主処理のフローチャートである。It is a flowchart of a main process. 加工中カウント処理のフローチャート(1/2)である。It is a flowchart (1/2) of the counting process during processing. 加工中カウント処理のフローチャート(2/2)である。It is a flowchart (2/2) of the counting process during processing. 画面表示処理のフローチャートである。It is a flowchart of screen display processing. 時間表示処理のフローチャートである。It is a flowchart of time display processing. 工具履歴表示処理のフローチャートである。It is a flowchart of a tool history display process. 個別履歴表示画面110である。The individual history display screen 110. 工具履歴表示画面140である。The tool history display screen 140. 履歴一覧表示画面170である。The history list display screen 170.

本発明の実施形態を説明する。図1に示す数値制御装置20は、工作機械10の動作を制御することで、テーブル(図示略)上面に保持したワーク(被削材)の切削加工を行う。工作機械10の左右方向、前後方向、上下方向は夫々、X軸方向、Y軸方向、Z軸方向である。 An embodiment of the present invention will be described. The numerical control device 20 shown in FIG. 1 controls the operation of the machine tool 10 to cut a work (work material) held on the upper surface of a table (not shown). The horizontal direction, the front-rear direction, and the vertical direction of the machine tool 10 are the X-axis direction, the Y-axis direction, and the Z-axis direction, respectively.

工作機械10は、例えばテーブル上面に保持したワークに対し、Z軸方向に延びる主軸に装着した工具をX軸方向、Y軸方向、Z軸方向に移動して加工(例えばドリル加工、タップ加工、側面加工等)を行う立型工作機械である。工作機械10は図示しない主軸機構、主軸移動機構、工具交換装置等を備える。主軸機構は主軸モータ12を備え、工具を装着した主軸を回転する。主軸移動機構は、Z軸モータ11、X軸モータ13、Y軸モータ14を更に備え、テーブル上面に保持したワークに対し相対的に、主軸をX、Y、Zの各送り軸の方向に夫々移動する。工具交換装置はマガジンモータ15を備え、複数の工具を収納する工具マガジン(図示略)を駆動し、主軸に装着した工具を他の工具と交換する。Z軸モータ11、主軸モータ12、X軸モータ13、Y軸モータ14、マガジンモータ15、扉モータ16(後述)は、サーボモータである。本実施形態は、Z軸モータ11、主軸モータ12、X軸モータ13、Y軸モータ14、マガジンモータ15、扉モータ16を総称する場合、モータ11〜16と呼ぶ。 For example, the machine tool 10 moves a tool mounted on a spindle extending in the Z-axis direction in the X-axis direction, the Y-axis direction, and the Z-axis direction with respect to a workpiece held on the upper surface of the table to perform machining (for example, drilling, tapping, etc.). It is a vertical machine tool that performs side machining, etc.). The machine tool 10 includes a spindle mechanism (not shown), a spindle moving mechanism, a tool changing device, and the like. The spindle mechanism includes a spindle motor 12 and rotates a spindle equipped with a tool. The spindle moving mechanism further includes a Z-axis motor 11, an X-axis motor 13, and a Y-axis motor 14, and the spindle is moved in the direction of each of the X, Y, and Z feed axes relative to the workpiece held on the upper surface of the table. Moving. The tool changing device includes a magazine motor 15 and drives a tool magazine (not shown) that stores a plurality of tools, and replaces a tool mounted on the spindle with another tool. The Z-axis motor 11, the spindle motor 12, the X-axis motor 13, the Y-axis motor 14, the magazine motor 15, and the door motor 16 (described later) are servo motors. In this embodiment, the Z-axis motor 11, the spindle motor 12, the X-axis motor 13, the Y-axis motor 14, the magazine motor 15, and the door motor 16 are collectively referred to as motors 11 to 16.

保護カバー(図示略)は工作機械10本体の周囲を取り囲む。保護カバーは各種加工時に切粉と切削液が外部に飛散するのを防止する。保護カバーは前面に扉(図示略)と操作盤19を備える。扉は、扉モータ16、開スイッチ32、閉スイッチ33を備える。扉モータ16は、扉を左右方向に滑動して開閉する。扉を開くことで、作業者は、保護カバー内のテーブル上に固定するワークの交換等ができる。扉を閉めると加工領域と外部が遮断するので、作業者は、ワークの切削加工を安全に行うことができる。開スイッチ32、閉スイッチ33は、数値制御装置20の入出力部25に接続する。開スイッチ32は、扉が開放位置にあるとONになる。閉スイッチ33は、扉が閉鎖位置にあるとONになる。操作盤19は保護カバーの外壁に設ける。操作盤19は数値制御装置20の入出力部25に接続する。操作盤19は入力部17と表示部18を備える。入力部17は各種情報、操作指示等の入力を受け付け、数値制御装置20に出力する。表示部18は数値制御装置20からの指令に基づき、各種画面を表示する。 The protective cover (not shown) surrounds the machine tool 10 main body. The protective cover prevents chips and cutting fluid from scattering to the outside during various processes. The protective cover is provided with a door (not shown) and an operation panel 19 on the front surface. The door includes a door motor 16, an open switch 32, and a close switch 33. The door motor 16 slides the door in the left-right direction to open and close. By opening the door, the operator can replace the work fixed on the table in the protective cover. When the door is closed, the machining area and the outside are blocked, so that the operator can safely cut the workpiece. The open switch 32 and the close switch 33 are connected to the input / output unit 25 of the numerical control device 20. The open switch 32 is turned on when the door is in the open position. The close switch 33 is turned on when the door is in the closed position. The operation panel 19 is provided on the outer wall of the protective cover. The operation panel 19 is connected to the input / output unit 25 of the numerical control device 20. The operation panel 19 includes an input unit 17 and a display unit 18. The input unit 17 receives inputs such as various information and operation instructions and outputs them to the numerical control device 20. The display unit 18 displays various screens based on a command from the numerical control device 20.

Z軸モータ11はエンコーダ11Aを備える。主軸モータ12はエンコーダ12Aを備える。X軸モータ13はエンコーダ13Aを備える。Y軸モータ14はエンコーダ14Aを備える。マガジンモータ15はエンコーダ15Aを備える。扉モータ16はエンコーダ16Aを備える。エンコーダ11A〜16Aの夫々は、数値制御装置20の駆動回路26〜31に接続する。 The Z-axis motor 11 includes an encoder 11A. The spindle motor 12 includes an encoder 12A. The X-axis motor 13 includes an encoder 13A. The Y-axis motor 14 includes an encoder 14A. The magazine motor 15 includes an encoder 15A. The door motor 16 includes an encoder 16A. Each of the encoders 11A to 16A is connected to the drive circuits 26 to 31 of the numerical control device 20.

数値制御装置20は、CPU21、ROM22、RAM23、記憶装置24、入出力部25、駆動回路26〜31等を備える。CPU21は数値制御装置20を統括制御する。ROM22は、後述する主処理(図2参照)、画面表示処理(図5参照)等を実行する為のプログラムを含む、各種プログラムを記憶する。RAM23は各種処理実行中の各種データを記憶する。記憶装置24は不揮発性メモリである。記憶装置24は、例えばワークを加工する為のNCプログラム、各種パラメータ等を記憶する。入出力部25は操作盤19に接続する。駆動回路26〜31はサーボアンプである。駆動回路26はZ軸モータ11とエンコーダ11Aに接続する。駆動回路27は主軸モータ12とエンコーダ12Aに接続する。駆動回路28はX軸モータ13とエンコーダ13Aに接続する。駆動回路29はY軸モータ14とエンコーダ14Aに接続する。駆動回路30はマガジンモータ15とエンコーダ15Aに接続する。駆動回路31は扉モータ16とエンコーダ16Aに接続する。 The numerical control device 20 includes a CPU 21, a ROM 22, a RAM 23, a storage device 24, an input / output unit 25, drive circuits 26 to 31, and the like. The CPU 21 controls the numerical control device 20 in an integrated manner. The ROM 22 stores various programs including a program for executing a main process (see FIG. 2), a screen display process (see FIG. 5), and the like, which will be described later. The RAM 23 stores various data during execution of various processes. The storage device 24 is a non-volatile memory. The storage device 24 stores, for example, an NC program for processing a work, various parameters, and the like. The input / output unit 25 is connected to the operation panel 19. The drive circuits 26 to 31 are servo amplifiers. The drive circuit 26 is connected to the Z-axis motor 11 and the encoder 11A. The drive circuit 27 is connected to the spindle motor 12 and the encoder 12A. The drive circuit 28 is connected to the X-axis motor 13 and the encoder 13A. The drive circuit 29 is connected to the Y-axis motor 14 and the encoder 14A. The drive circuit 30 is connected to the magazine motor 15 and the encoder 15A. The drive circuit 31 is connected to the door motor 16 and the encoder 16A.

CPU21は、ワークを加工する為のNCプログラムを解釈し、送り軸(X軸、Y軸、Z軸)、主軸、マガジン軸等の各駆動軸を目標位置に移動する為の制御指令を駆動回路26〜30に送信する。駆動回路26〜30は、CPU21から受信した制御指令(駆動信号)に応じて対応する各モータ11〜15に駆動電流(パルス)を夫々出力する。駆動回路26〜30はエンコーダ11A〜15Aからフィードバック信号(位置と速度の信号)を受け、モータ11〜15の位置と速度の制御を行う。駆動回路26〜30はサーボモータを駆動するサーボアンプであり、例えばFPGA回路で構成してもよい。 The CPU 21 interprets an NC program for machining a workpiece, and drives a control command for moving each drive axis such as a feed axis (X axis, Y axis, Z axis), a spindle axis, and a magazine axis to a target position. Send to 26-30. The drive circuits 26 to 30 output drive currents (pulses) to the corresponding motors 11 to 15 in response to control commands (drive signals) received from the CPU 21. The drive circuits 26 to 30 receive feedback signals (position and speed signals) from the encoders 11A to 15A and control the position and speed of the motors 11 to 15. The drive circuits 26 to 30 are servo amplifiers that drive the servo motor, and may be configured by, for example, an FPGA circuit.

図2〜図4を参照し、主処理を説明する。主処理は、工作機械10を駆動してワークを加工しつつ、ワークの加工に要する時間(サイクルタイム等)を計測し、履歴として保存する一連の処理である。作業者は、テーブルにワークを固定すると、操作盤19の入力部17を操作して記憶装置24に記憶する複数のNCプログラムの中から一のNCプログラムを選択し、選択したNCプログラムに基づくワークの加工開始を指示する。CPU21は入力部17から加工開始指示を受け付けると、ROM22から主処理のプログラムを読込み実行する。 The main processing will be described with reference to FIGS. 2 to 4. The main process is a series of processes in which the machine tool 10 is driven to process the work, the time required for processing the work (cycle time, etc.) is measured, and the work is stored as a history. When the work is fixed to the table, the operator operates the input unit 17 of the operation panel 19 to select one NC program from a plurality of NC programs stored in the storage device 24, and the work based on the selected NC program. Instruct the start of processing. When the CPU 21 receives the machining start instruction from the input unit 17, the CPU 21 reads and executes the main processing program from the ROM 22.

図2に示すように、CPU21は主処理で使用する各種カウンタ、変数等の初期設定を行う(S1)。CPU21は、開閉カウンタ、サイクルタイムカウンタ、切削時間カウンタ、非切削時間カウンタ、変数j、変数k、変数m、変数nの夫々に0を設定する。開閉カウンタは、扉の開閉時間を計測するカウンタである。サイクルタイムカウンタは、NCプログラムに従いワークに対する加工を行う加工時間(サイクルタイム)を計測するカウンタである。サイクルタイムカウンタは、具体的に、NCプログラムの実行時間を計測する。切削時間カウンタは、サイクルタイム内で、工作機械10がワークを工具で切削する動作を行う切削時間を計測するカウンタである。非切削時間カウンタは、サイクルタイム内で、工作機械10がワークを工具で切削する動作以外の動作を行う非切削時間を計測するカウンタである。 As shown in FIG. 2, the CPU 21 performs initial settings of various counters, variables, and the like used in the main process (S1). The CPU 21 sets 0 for each of the open / close counter, the cycle time counter, the cutting time counter, the non-cutting time counter, the variable j, the variable k, the variable m, and the variable n. The open / close counter is a counter that measures the open / close time of the door. The cycle time counter is a counter that measures the machining time (cycle time) for machining a workpiece according to an NC program. Specifically, the cycle time counter measures the execution time of the NC program. The cutting time counter is a counter that measures the cutting time during which the machine tool 10 performs an operation of cutting a workpiece with a tool within the cycle time. The non-cutting time counter is a counter that measures the non-cutting time in which the machine tool 10 performs an operation other than the operation of cutting the workpiece with a tool within the cycle time.

記憶装置24は、主処理で計測するサイクルタイム等のデータを履歴として、例えば20件記憶する。履歴が含むデータは、日時、プログラム名、前記開閉時間、サイクルタイム、切削時間、非切削時間、工具番号である工具ID、工具交換回数、正常終了フラグを含む。記憶装置24は、最新履歴の履歴番号を1とし、各履歴の記憶エリアを、記憶順に履歴番号で管理する。説明の便宜上、各履歴及び個々のデータの記憶エリアは、[履歴番号]を付加して示す。例えば、履歴番号が5の履歴の記憶エリアは、履歴[5]と表す。履歴[5]に含む日時のデータの記憶エリアは、日時[5]と表す。工具ID、切削時間、非切削時間の記憶エリアは、工具を交換する度に設け、[履歴番号,工具履歴番号]を付加して示す。なお、工具履歴番号は1以上に設定する。切削時間[履歴番号,0]は、全ての工具の切削時間を合計した時間を記憶する記憶エリアである。非切削時間[履歴番号,0]は、全ての工具の非切削時間を合計した時間を記憶する記憶エリアである。CPU21は、各履歴の履歴番号を1加算して更新し(S2)、履歴番号が21になった履歴[21]を削除して、履歴[1]を確保する(S3)。 The storage device 24 stores, for example, 20 cases of data such as cycle time measured in the main process as a history. The data included in the history includes the date and time, the program name, the opening / closing time, the cycle time, the cutting time, the non-cutting time, the tool ID which is the tool number, the number of tool changes, and the normal end flag. The storage device 24 sets the history number of the latest history to 1, and manages the storage area of each history by the history number in the order of storage. For convenience of explanation, each history and the storage area of individual data are indicated by adding a [history number]. For example, a history storage area having a history number of 5 is represented as history [5]. The date and time data storage area included in the history [5] is represented by the date and time [5]. A storage area for the tool ID, cutting time, and non-cutting time is provided every time the tool is replaced, and [history number, tool history number] is added and shown. The tool history number is set to 1 or more. The cutting time [history number, 0] is a storage area for storing the total time of cutting times of all tools. The non-cutting time [history number, 0] is a storage area for storing the total time of the non-cutting times of all tools. The CPU 21 adds 1 to the history number of each history and updates it (S2), deletes the history [21] whose history number becomes 21, and secures the history [1] (S3).

CPU21は扉モータ16を駆動し、扉を閉鎖位置へ向けて移動する(S11)。CPU21は、タイマ(図示略)からのクロック信号に基づいて開閉時間カウンタをカウントアップする(S12)。CPU21は、閉スイッチ33がOFFである間、扉の移動と開閉時間の計測を継続する(S13:NO)。閉スイッチ33がONになり、扉の閉鎖が完了すると(S13:YES)、CPU21は扉モータ16を停止し、NCプログラムを実行する(S16)。 The CPU 21 drives the door motor 16 and moves the door toward the closed position (S11). The CPU 21 counts up the open / close time counter based on the clock signal from the timer (not shown) (S12). The CPU 21 continues to move the door and measure the opening / closing time while the closing switch 33 is OFF (S13: NO). When the closing switch 33 is turned on and the closing of the door is completed (S13: YES), the CPU 21 stops the door motor 16 and executes the NC program (S16).

CPU21は入力部17で選択したNCプログラムを読込み、一行解釈する。CPU21は解釈した一行中の制御指令に基づき、工作機械10の動作を制御する。解釈した指令が軸移動指令の場合、CPU21は送り軸のモータ11、13、14を駆動し、テーブルに対する主軸の位置を相対的に移動する。軸移動とは、主軸の位置を移動する動作を意味する。軸移動によって、工具はワークに対して相対的に移動する。軸移動は、早送り軸移動と切削送り軸移動(切削移動)を含む。早送り軸移動は、ワークに工具を接近又は離間する為、切削移動よりも速い速度で主軸を移動する動作である。切削移動は、例えばタップ、ドリル等による穴空け、フライス、エンドミル等による側面加工を行う軸移動である。解釈した指令が工具交換指令の場合、CPU21は、マガジンモータ15を駆動し、エンコーダ15Aのフィードバック信号に基づき、指定の工具を交換位置に移動して工具を交換する。CPU21は、NCプログラムの実行が終了するまで、加工中カウント処理を繰り返し実行する(S16、S17、S18:NO)。 The CPU 21 reads the NC program selected by the input unit 17 and interprets one line. The CPU 21 controls the operation of the machine tool 10 based on the interpreted control command in one line. When the interpreted command is an axis movement command, the CPU 21 drives the motors 11, 13 and 14 of the feed shaft to move the position of the main shaft relative to the table. Axis movement means an operation of moving the position of the main shaft. Due to the axial movement, the tool moves relative to the work. Axle movement includes fast-forward shaft movement and cutting feed shaft movement (cutting movement). The fast-forward shaft movement is an operation of moving the spindle at a speed faster than the cutting movement in order to approach or separate the tool from the work. The cutting movement is, for example, an axial movement for making a hole with a tap, a drill, or the like, and performing side surface machining with a milling cutter, an end mill, or the like. When the interpreted command is a tool change command, the CPU 21 drives the magazine motor 15 and moves the designated tool to the change position based on the feedback signal of the encoder 15A to change the tool. The CPU 21 repeatedly executes the counting process during machining until the execution of the NC program is completed (S16, S17, S18: NO).

図3、図4に示すように、加工中カウント処理において、CPU21は、軸移動中であるか否かを判断する(S51)。軸移動中でない場合(S51:NO)、CPU21は、工具の交換中であるか否かを判断する(S52)。工具の交換中でない場合(S52:NO)、CPU21は、切削中フラグをOFFにして(S61)、解釈した制御指令が軸移動指令であるか否かを判断する(S62)。切削中フラグは切削移動中にONになるフラグである。制御指令が軸移動指令でない場合(S62:NO)、CPU21は、解釈した制御指令が工具交換指令であるか否かを判断する(S71)。 As shown in FIGS. 3 and 4, in the machining counting process, the CPU 21 determines whether or not the axis is moving (S51). When the axis is not moving (S51: NO), the CPU 21 determines whether or not the tool is being replaced (S52). When the tool is not being replaced (S52: NO), the CPU 21 turns off the cutting flag (S61) and determines whether or not the interpreted control command is an axis movement command (S62). The cutting flag is a flag that turns ON during cutting movement. When the control command is not an axis movement command (S62: NO), the CPU 21 determines whether or not the interpreted control command is a tool change command (S71).

工具交換指令は、初回の工具指定も含む。制御指令が工具交換指令である場合(S71:YES)、CPU21は変数jに1を加算する(S72)。CPU21は、記憶装置24の履歴[1]に対応する工具ID[1,j]に、工具交換指令で指定する工具のID番号を記憶する(S73)。工具交換指令が初回の工具指定の場合、CPU21は、履歴[1]の工具ID[1,1]にID番号を記憶する。変数jが1の場合(S74:YES)、工具の切削時間を計測する前であるので、CPU21は処理をS81に移行する。 The tool change command also includes the initial tool designation. When the control command is a tool change command (S71: YES), the CPU 21 adds 1 to the variable j (S72). The CPU 21 stores the ID number of the tool specified by the tool change command in the tool ID [1, j] corresponding to the history [1] of the storage device 24 (S73). When the tool change command is the first tool designation, the CPU 21 stores the ID number in the tool ID [1,1] of the history [1]. When the variable j is 1 (S74: YES), the CPU 21 shifts the process to S81 because it is before the cutting time of the tool is measured.

CPU21は、NCプログラムが実行中であるか否かを判断する(S81)。NCプログラムの実行中(S81:YES)、CPU21はサイクルタイムを計測する為、タイマのクロック信号に基づいてサイクルタイムカウンタをカウントアップする(S82)。CPU21は切削中フラグがONであるか否かを判断する(S83)。切削中フラグがOFFの場合(S83:NO)、工具ごとの非切削時間を計測する為、タイマのクロック信号に基づいて非切削時間カウンタをカウントアップする(S85)。処理は主処理に戻る。 The CPU 21 determines whether or not the NC program is being executed (S81). During execution of the NC program (S81: YES), the CPU 21 counts up the cycle time counter based on the clock signal of the timer in order to measure the cycle time (S82). The CPU 21 determines whether or not the cutting flag is ON (S83). When the cutting flag is OFF (S83: NO), the non-cutting time counter is counted up based on the clock signal of the timer in order to measure the non-cutting time for each tool (S85). The process returns to the main process.

工具交換指令に基づく工具の交換を行う間(S51:NO、S52:YES)、CPU21はサイクルタイムと非切削時間をカウントアップする(S81〜S85)。工具交換が終了すると、CPU21はNCプログラムの次の行を解釈する(S17)。解釈した指令が軸移動指令でなく(S62:NO)、工具交換指令でもなければ(S71:NO)、CPU21は、上記同様、サイクルタイムと非切削時間をカウントアップして主処理に戻る(S81〜S85)。 While the tool is changed based on the tool change command (S51: NO, S52: YES), the CPU 21 counts up the cycle time and the non-cutting time (S81 to S85). When the tool change is completed, the CPU 21 interprets the next line of the NC program (S17). If the interpreted command is not an axis movement command (S62: NO) and is not a tool change command (S71: NO), the CPU 21 counts up the cycle time and non-cutting time and returns to the main process (S81). ~ S85).

解釈した指令が軸移動指令である場合(S62:YES)、CPU21は、当該指令が切削移動に係る軸移動の指令であるか否かを判断する(S63)。軸移動指令が切削移動でない場合(S63:NO)、切削中フラグがOFFであるので、CPU21は処理をS81に移行し、サイクルタイムと非切削時間をカウントアップし、主処理に戻る。軸移動指令が切削移動である場合(S63:YES)、CPU21は切削中フラグをONにし(S64)、処理をS81に移行する。CPU21は、サイクルタイムをカウントアップした後(S81:YES、S82)、切削中フラグがONの場合(S83:YES)、切削時間カウンタをカウントアップする(S84)。処理は主処理に戻る。 When the interpreted command is an axis movement command (S62: YES), the CPU 21 determines whether or not the command is an axis movement command related to cutting movement (S63). When the axis movement command is not a cutting movement (S63: NO), the cutting flag is OFF, so the CPU 21 shifts the processing to S81, counts up the cycle time and the non-cutting time, and returns to the main processing. When the axis movement command is cutting movement (S63: YES), the CPU 21 turns on the cutting flag (S64) and shifts the process to S81. After counting up the cycle time (S81: YES, S82), the CPU 21 counts up the cutting time counter (S84) when the cutting flag is ON (S83: YES). The process returns to the main process.

軸移動指令に基づく主軸の移動を行う間(S51:YES)、CPU21はサイクルタイムをカウントアップし(S81、S82)、切削フラグに応じて切削時間又は非切削時間をカウントアップする(S83〜S85)。軸移動が終了すると、CPU21はNCプログラムの次の行を解釈する(S16)。解釈した指令が工具交換指令である場合(S62:NO、S71:YES)、CPU21は、変数jに1を加算する(S72)。変数jは2となる。CPU21は、履歴[1]の工具ID[1,j]に、工具交換指令で指定する工具のID番号を記憶する(S73)。変数jが1ではないので(S74:NO)、CPU21は、履歴[1]の切削時間[1,j−1]に切削時間を記憶し、非切削時間[1,j−1]に非切削時間を記憶する(S75)。具体的に、工具交換指令が2つ目の工具指定の場合、CPU21は、工具ID[1,2]に2つ目の工具のID番号を記憶し、切削時間[1,1]に1つ目の工具による切削時間を記憶し、非切削時間[1,1]に1つ目の工具による非切削時間を記憶する。CPU21は、切削時間カウンタと非切削時間カウンタに0を設定し(S76)、処理をS81に移行する。CPU21はサイクルタイムと、2つめの工具に対応する非切削時間をカウントアップし(S81〜S85)、主処理に戻る。 While the spindle is moved based on the shaft movement command (S51: YES), the CPU 21 counts up the cycle time (S81, S82), and counts up the cutting time or the non-cutting time according to the cutting flag (S83 to S85). ). When the axis movement is completed, the CPU 21 interprets the next line of the NC program (S16). When the interpreted command is a tool change command (S62: NO, S71: YES), the CPU 21 adds 1 to the variable j (S72). The variable j is 2. The CPU 21 stores the ID number of the tool specified by the tool change command in the tool ID [1, j] of the history [1] (S73). Since the variable j is not 1 (S74: NO), the CPU 21 stores the cutting time in the cutting time [1, j-1] in the history [1] and does not cut in the non-cutting time [1, j-1]. Memorize the time (S75). Specifically, when the tool change command specifies the second tool, the CPU 21 stores the ID number of the second tool in the tool ID [1, 2], and one in the cutting time [1, 1]. The cutting time by the eye tool is memorized, and the non-cutting time by the first tool is memorized in the non-cutting time [1,1]. The CPU 21 sets 0 in the cutting time counter and the non-cutting time counter (S76), and shifts the processing to S81. The CPU 21 counts up the cycle time and the non-cutting time corresponding to the second tool (S81 to S85), and returns to the main process.

NCプログラムの実行中に、数値制御装置20は、例えばMDIモードに移行する場合や、手動操作を受け付ける場合がある。この場合、CPU21は、NCプログラムの実行を一時停止状態にする。S81の判断において、NCプログラムが実行中でない場合(S81:NO)、CPU21は、NCプログラムの実行が一時停止状態であるか否かを判断する(S91)。NCプログラムの実行が一時停止状態であれば(S91:YES)、CPU21は処理を主処理に戻し、サイクルタイムを計測せず、切削時間又は非切削時間も計測しない。 During execution of the NC program, the numerical control device 20 may shift to the MDI mode, for example, or may accept a manual operation. In this case, the CPU 21 suspends the execution of the NC program. In the determination of S81, when the NC program is not being executed (S81: NO), the CPU 21 determines whether or not the execution of the NC program is in the paused state (S91). If the execution of the NC program is in the paused state (S91: YES), the CPU 21 returns the process to the main process, does not measure the cycle time, and does not measure the cutting time or the non-cutting time.

図2に示すように、解釈した指令が終了指令の場合(S18:YES)、CPU21は、履歴[1]の切削時間[1,j]に切削時間を記憶し、非切削時間[1,j]に非切削時間を記憶する(S21)。具体的に、2つ目の工具を用いた切削後にNCプログラムが終了した場合、CPU21は、切削時間[1,2]に2つ目の工具による切削時間を記憶し、非切削時間[1,2]に2つ目の工具による非切削時間を記憶する。 As shown in FIG. 2, when the interpreted command is the end command (S18: YES), the CPU 21 stores the cutting time in the cutting time [1, j] of the history [1], and the non-cutting time [1, j]. ] Stores the non-cutting time (S21). Specifically, when the NC program ends after cutting with the second tool, the CPU 21 stores the cutting time with the second tool in the cutting time [1, 2], and the non-cutting time [1, 2] stores the non-cutting time by the second tool.

CPU21は扉モータ16を駆動し、扉を開放位置へ向けて移動する(S22)。CPU21は、タイマ(図示略)からのクロック信号に基づいて開閉時間カウンタをカウントアップする(S23)。CPU21は、開スイッチ32がOFFである間、扉の移動と開閉時間の計測を継続する(S24:NO)。開スイッチ32がONになり、扉の開放が完了すると(S24:YES)、CPU21は扉モータ16を停止する。CPU21は、正常終了フラグ[1]に1を記憶する(S25)。 The CPU 21 drives the door motor 16 and moves the door toward the open position (S22). The CPU 21 counts up the open / close time counter based on the clock signal from the timer (not shown) (S23). The CPU 21 continues to move the door and measure the opening / closing time while the open switch 32 is OFF (S24: NO). When the open switch 32 is turned on and the door opening is completed (S24: YES), the CPU 21 stops the door motor 16. The CPU 21 stores 1 in the normal end flag [1] (S25).

CPU21は、記憶装置24の履歴[1]に、各時間の計測結果と各種データを記憶する(S31)。CPU21は、日時[1]に日時を記憶し、プログラム名[1]にNCプログラムのファイル名を記憶する。CPU21は、サイクルタイム[1]に、計測したサイクルタイムカウンタの値を記憶する。CPU21は、工具交換回数[1]に、変数jを記憶する。CPU21は、開閉時間[1]に、計測した開閉時間カウンタの値を記憶する。 The CPU 21 stores the measurement results of each time and various data in the history [1] of the storage device 24 (S31). The CPU 21 stores the date and time in the date and time [1], and stores the file name of the NC program in the program name [1]. The CPU 21 stores the measured value of the cycle time counter in the cycle time [1]. The CPU 21 stores the variable j in the number of tool changes [1]. The CPU 21 stores the measured value of the opening / closing time counter in the opening / closing time [1].

CPU21は、変数kに1を加算し(S32)、変数mに、切削時間[1,k]に記憶するk番目の工具の切削時間を加算し(S33)、且つ、変数nに、非切削時間[1,k]に記憶するk番目の工具の非切削時間を加算する(S34)。CPU21は、変数kが工具交換回数[1]に記憶する値と同値でなければ処理をS32に戻し(S35:NO)、次の工具の切削時間と非切削時間を夫々、変数mと変数nに加算する。変数kが工具交換回数[1]と同値であれば(S35:YES)、CPU21は、切削時間[1,0]に変数mの値を記憶し、非切削時間[1,0]に変数nの値を記憶し(S36)、主処理を終了する。 The CPU 21 adds 1 to the variable k (S32), adds the cutting time of the kth tool stored in the cutting time [1, k] to the variable m (S33), and does not cut the variable n. The non-cutting time of the k-th tool stored in the time [1, k] is added (S34). If the variable k is not the same value as the value stored in the tool change count [1], the CPU 21 returns the process to S32 (S35: NO), and sets the cutting time and non-cutting time of the next tool to the variable m and the variable n, respectively. Add to. If the variable k has the same value as the number of tool changes [1] (S35: YES), the CPU 21 stores the value of the variable m in the cutting time [1,0] and the variable n in the non-cutting time [1,0]. The value of (S36) is stored, and the main process is terminated.

なお、数値制御装置20は、諸事情によりNCプログラムの実行を中止する指示を受け付ける場合がある。S91の判断において、NCプログラムの実行が中止状態である場合(S91:NO)、CPU21は、正常終了フラグ[1]に0を記憶し(S92)、主処理のS31に移行する。CPU21は、履歴[1]に、NCプログラムの実行を中止するまでに計測した各時間と各種データを記憶し(S31〜S36)、主処理を終了する。 The numerical control device 20 may receive an instruction to stop the execution of the NC program due to various circumstances. In the determination of S91, when the execution of the NC program is in the stopped state (S91: NO), the CPU 21 stores 0 in the normal end flag [1] (S92), and shifts to S31 of the main process. The CPU 21 stores each time and various data measured until the execution of the NC program is stopped in the history [1] (S31 to S36), and ends the main process.

図5〜図10を参照し、画面表示処理を説明する。画面表示処理は、表示部18の表示画面に、サイクルタイム等を表示する処理である。作業者は、操作盤19の入力部17を操作し、表示画面にサイクルタイム等を表示する指示を行う。CPU21は指示を受け付けると、ROM22から画面表示処理のプログラムを読込み実行する。画面表示処理は、表示部18に、個別履歴表示画面110(図8参照)、工具履歴表示画面140(図9参照)、履歴一覧表示画面170(図10参照)を表示することができる。個別履歴表示画面110は、サイクルタイム等の詳細を表示する画面である。工具履歴表示画面140は、個別履歴表示画面110に追加して、工具ごとの切削時間及び非切削時間を表示する画面である。履歴一覧表示画面170は、記憶装置24に記憶する20件までのサイクルタイム等の履歴を一覧で表示する画面である。 The screen display process will be described with reference to FIGS. 5 to 10. The screen display process is a process of displaying the cycle time and the like on the display screen of the display unit 18. The operator operates the input unit 17 of the operation panel 19 and gives an instruction to display the cycle time or the like on the display screen. When the CPU 21 receives the instruction, the CPU 21 reads and executes the screen display processing program from the ROM 22. In the screen display process, the individual history display screen 110 (see FIG. 8), the tool history display screen 140 (see FIG. 9), and the history list display screen 170 (see FIG. 10) can be displayed on the display unit 18. The individual history display screen 110 is a screen for displaying details such as cycle time. The tool history display screen 140 is a screen added to the individual history display screen 110 to display the cutting time and the non-cutting time for each tool. The history list display screen 170 is a screen for displaying a list of histories such as cycle times of up to 20 items stored in the storage device 24.

図5に示すように、CPU21は初期設定を行い、画面表示処理で使用する変数iに1を設定する(S101)。CPU21は、表示部18の表示画面に、個別履歴表示画面110を表示する(S102)。図8に示すように、個別履歴表示画面110は、各種データを表示する表示欄111〜117を有する。表示欄111〜114、117は夫々、プログラム名、サイクルタイム、切削時間、非切削時間、日付と時間の表示欄である。表示欄116は時間稼働率の表示欄である。時間稼働率は、切削時間/サイクルタイムの演算結果を百分率で表したものである。個別履歴表示画面110は、下段に、履歴表示終了ボタン121、工具履歴表示ボタン122、履歴一覧表示ボタン123、履歴削除ボタン129を備える。 As shown in FIG. 5, the CPU 21 makes initial settings and sets 1 to the variable i used in the screen display process (S101). The CPU 21 displays the individual history display screen 110 on the display screen of the display unit 18 (S102). As shown in FIG. 8, the individual history display screen 110 has display fields 111 to 117 for displaying various data. The display columns 111 to 114 and 117 are display columns for the program name, cycle time, cutting time, non-cutting time, date and time, respectively. The display column 116 is a display column for the hourly operation rate. The hourly operation rate is the calculation result of cutting time / cycle time expressed as a percentage. The individual history display screen 110 includes a history display end button 121, a tool history display button 122, a history list display button 123, and a history deletion button 129 at the bottom.

図5に示すように、CPU21は、全時間表示設定がONであるか否かを判断する(S103)。全時間表示設定は、サイクルタイムをNCプログラムの実行時間とするか、扉の開閉時間を含む工作機械10の全駆動時間とするかを設定するパラメータである。数値制御装置20は初期設定として予め全時間表示設定を記憶装置24に記憶する。全時間表示設定がOFFの場合(S103:NO)、CPU21は処理をS105に進める。全時間表示設定がONの場合(S103:YES)、CPU21は、サイクルタイムの表示欄112に「扉の開閉時間を含む」旨の記述(図8、矢印A参照)を表示し(S104)、処理をS105に進める。 As shown in FIG. 5, the CPU 21 determines whether or not the all-time display setting is ON (S103). The full time display setting is a parameter for setting whether the cycle time is the execution time of the NC program or the total drive time of the machine tool 10 including the opening / closing time of the door. The numerical control device 20 stores the full-time display setting in the storage device 24 in advance as an initial setting. When the all-time display setting is OFF (S103: NO), the CPU 21 advances the process to S105. When the all-time display setting is ON (S103: YES), the CPU 21 displays a description (see FIG. 8, arrow A) that “including the door opening / closing time” in the cycle time display field 112 (S104). The process proceeds to S105.

CPU21は、時間表示処理を実行する(S105)。図6に示すように、CPU21は、記憶装置24から履歴[i]に記憶する各データを読込む(S151)。CPU21は、表示欄111、113、114、117の夫々に、プログラム名[i]、切削時間[i,0]、非切削時間[i,0]、日時[i]に記憶する各データを表示する(S152)。全時間表示設定がOFFの場合(S153:NO)、CPU21は、表示欄112にサイクルタイム[i]に記憶するサイクルタイムを表示する(S154)。全時間表示設定がONの場合(S153:YES)、CPU21は、サイクルタイム[i]に記憶するサイクルタイムと、開閉時間[i]に記憶する開閉時間とを合算し、表示欄112に表示する(S155)。 The CPU 21 executes the time display process (S105). As shown in FIG. 6, the CPU 21 reads each data stored in the history [i] from the storage device 24 (S151). The CPU 21 displays each data stored in the program name [i], the cutting time [i, 0], the non-cutting time [i, 0], and the date and time [i] in the display fields 111, 113, 114, and 117, respectively. (S152). When the all-time display setting is OFF (S153: NO), the CPU 21 displays the cycle time stored in the cycle time [i] in the display field 112 (S154). When the all-time display setting is ON (S153: YES), the CPU 21 adds up the cycle time stored in the cycle time [i] and the opening / closing time stored in the opening / closing time [i] and displays them in the display field 112. (S155).

CPU21は、表示部18に表示中の画面が個別履歴表示画面110であるか否かを判断し(S161)、個別履歴表示画面110でない場合(S161:NO)、処理をS171に進める。個別履歴表示画面110である場合(S161:YES)、CPU21は、全時間表示設定がONであるか否かを判断する(S162)。全時間表示設定がOFFの場合(S162:NO)、CPU21は、切削時間[i、0]の値をサイクルタイム[i]の値で割った百分率を時間稼働率として求め、表示欄116に表示する(S163)。全時間表示設定がONの場合(S162:YES)、CPU21は、切削時間[i、0]の値をサイクルタイム[i]に開閉時間[i]を加算した値で割った百分率を時間稼働率として求め、表示欄116に表示する(S164)。 The CPU 21 determines whether or not the screen displayed on the display unit 18 is the individual history display screen 110 (S161), and if it is not the individual history display screen 110 (S161: NO), the process proceeds to S171. When the individual history display screen 110 is displayed (S161: YES), the CPU 21 determines whether or not the all-time display setting is ON (S162). When the all-time display setting is OFF (S162: NO), the CPU 21 obtains the percentage obtained by dividing the value of the cutting time [i, 0] by the value of the cycle time [i] as the hourly operation rate, and displays it in the display column 116. (S163). When the all-time display setting is ON (S162: YES), the CPU 21 divides the value of the cutting time [i, 0] by the value obtained by adding the opening / closing time [i] to the cycle time [i], and divides the percentage by the hourly operating rate. And display it in the display field 116 (S164).

CPU21は、正常終了フラグ[i]が1か否かを判断する(S171)。正常終了フラグ[i]が1の場合(S171:YES)、CPU21は、開閉時間の表示欄115に、開閉時間[i]に記憶する開閉時間を表示し(S172)、画面表示処理に戻る。正常終了フラグ[i]が0の場合(S171:NO)、CPU21は、サイクルタイムの表示欄112においてサイクルタイムの側方に「*」印(図8、矢印B参照)を表示する(S173)。作業者は、個別履歴表示画面110に表示するデータが、諸事情によりNCプログラムの実行を中止したときのデータであることを認識することができる。また、NCプログラムの実行を中止したことで、CPU21は、扉の開閉時間を正確に計測していない。故にCPU21は、開閉時間の表示欄115に開閉時間として「−」(図8、矢印C参照)を表示し(S174)、画面表示処理に戻る。 The CPU 21 determines whether or not the normal end flag [i] is 1 (S171). When the normal end flag [i] is 1 (S171: YES), the CPU 21 displays the opening / closing time stored in the opening / closing time [i] in the opening / closing time display field 115 (S172), and returns to the screen display process. When the normal end flag [i] is 0 (S171: NO), the CPU 21 displays an “*” mark (see FIG. 8, arrow B) on the side of the cycle time in the cycle time display field 112 (S173). .. The operator can recognize that the data displayed on the individual history display screen 110 is the data when the execution of the NC program is stopped due to various reasons. Further, the CPU 21 does not accurately measure the opening / closing time of the door because the execution of the NC program is stopped. Therefore, the CPU 21 displays “−” (see FIG. 8, arrow C) as the opening / closing time in the opening / closing time display field 115 (S174), and returns to the screen display process.

CPU21は、個別履歴表示画面110の各ボタンに対する操作の入力を待機する(S111:NO、S112:NO、S114:NO、S116:NO)。履歴削除ボタン129の操作を受け付けた場合(S114:YES)、CPU21は履歴[i]を削除する(S115)。工具履歴表示ボタン122の操作を受け付けた場合(S112:YES)、CPU21は工具履歴表示処理を実行する(S113)。 The CPU 21 waits for input of an operation for each button of the individual history display screen 110 (S111: NO, S112: NO, S114: NO, S116: NO). When the operation of the history deletion button 129 is accepted (S114: YES), the CPU 21 deletes the history [i] (S115). When the operation of the tool history display button 122 is accepted (S112: YES), the CPU 21 executes the tool history display process (S113).

図7に示すように、CPU21は、表示部18の表示画面に工具履歴表示画面140を表示する(S181)。図9に示すように、工具履歴表示画面140は、個別履歴表示画面110の空きスペースに工具履歴一覧表150を追加表示した画面である。工具履歴一覧表150は、表示列151〜153を有する。表示列151〜153は夫々、工具ID、切削時間、非切削時間の表示列である。工具履歴一覧表150の各行は工具の履歴ごとに設け、表示列151〜153に対応する夫々の表示位置に、工具ID、切削時間、非切削時間を表示する。工具履歴表示画面140は、下段に、戻るボタン161、使用工具順ボタン162、工具番号順ボタン163を備える。 As shown in FIG. 7, the CPU 21 displays the tool history display screen 140 on the display screen of the display unit 18 (S181). As shown in FIG. 9, the tool history display screen 140 is a screen in which the tool history list 150 is additionally displayed in the empty space of the individual history display screen 110. The tool history list 150 has display columns 151 to 153. The display columns 151 to 153 are display columns for the tool ID, the cutting time, and the non-cutting time, respectively. Each row of the tool history list 150 is provided for each tool history, and the tool ID, cutting time, and non-cutting time are displayed at the respective display positions corresponding to the display columns 151 to 153. The tool history display screen 140 includes a back button 161, a tool order button 162 used, and a tool number order button 163 at the bottom.

図7に示すように、CPU21は、変数kに0を設定し(S182)、変数kに1を加算する(S183)。CPU21は、記憶装置24から履歴[i]に記憶する工具ID[i,k]、切削時間[i,k]、非切削時間[i,k]の各データを読込む(S184)。CPU21は、工具履歴一覧表150のk行目の表示列151〜153の夫々に、工具ID[i,k]、切削時間[i,k]、非切削時間[i,k]の各データを表示する(S185)。CPU21は、変数kが工具交換回数[i]に記憶する値と同値でなければ処理をS183に戻し(S186:NO)、次の工具の各データを読込んで次行に表示する。 As shown in FIG. 7, the CPU 21 sets the variable k to 0 (S182) and adds 1 to the variable k (S183). The CPU 21 reads each data of the tool ID [i, k], the cutting time [i, k], and the non-cutting time [i, k] stored in the history [i] from the storage device 24 (S184). The CPU 21 inputs each data of the tool ID [i, k], the cutting time [i, k], and the non-cutting time [i, k] to each of the display columns 151 to 153 in the kth row of the tool history list 150. Display (S185). If the variable k is not the same value as the value stored in the tool change count [i], the CPU 21 returns the process to S183 (S186: NO), reads each data of the next tool, and displays it on the next line.

変数kが工具交換回数[i]と同値であれば(S186:YES)、CPU21は、工具履歴表示画面140の各ボタンに対する操作の入力を待機する(S191:NO、S193:NO)。使用工具順ボタン162又は工具番号順ボタン163の操作を受け付けた場合(S191:YES)、CPU21は、工具履歴一覧表150の表示を並べ替える処理を行う(S192)。使用工具順ボタン162の操作を受け付けた場合、CPU21はS183〜S186と同様の処理を行い、工具ID[i,k]、切削時間[i,k]、非切削時間[i,k]の各データを履歴順に表示する。工具番号順ボタン163の操作を受け付けた場合、CPU21は、各行を工具IDの昇順又は降順に並べ替えて表示する。このとき、同じ工具IDのデータがある場合、CPU21は、切削時間及び非切削時間の夫々の合計値を算出して表示してもよい。戻るボタン161の操作を受け付けた場合(S193:YES)、CPU21は、工具履歴一覧表150の表示を消去し(S194)、表示部18の表示画面に個別履歴表示画面110を表示した状態に戻して画面表示処理に戻る。 If the variable k has the same value as the number of tool changes [i] (S186: YES), the CPU 21 waits for input of an operation for each button on the tool history display screen 140 (S191: NO, S193: NO). When the operation of the tool order button 162 or the tool number order button 163 is accepted (S191: YES), the CPU 21 performs a process of rearranging the display of the tool history list 150 (S192). When the operation of the tool order button 162 is accepted, the CPU 21 performs the same processing as in S183 to S186, and each of the tool ID [i, k], the cutting time [i, k], and the non-cutting time [i, k]. Display data in historical order. When the operation of the tool number order button 163 is accepted, the CPU 21 sorts and displays each line in ascending or descending order of the tool ID. At this time, if there is data of the same tool ID, the CPU 21 may calculate and display the total value of each of the cutting time and the non-cutting time. When the operation of the back button 161 is accepted (S193: YES), the CPU 21 erases the display of the tool history list 150 (S194) and returns to the state where the individual history display screen 110 is displayed on the display screen of the display unit 18. Return to the screen display process.

図5に示すように、CPU21は、個別履歴表示画面110の各ボタンに対する操作の入力を待機する(S111〜S116)。履歴一覧表示ボタン123の操作を受け付けた場合(S111:YES)、CPU21は、表示部18の表示画面に履歴一覧表示画面170を表示する(S121)。図10に示すように、履歴一覧表示画面170は、履歴一覧表180を表示した画面である。履歴一覧表180は、表示列181〜186を有する。表示列181〜186は夫々、日時、プログラム名、サイクルタイム、切削時間、非切削時間、開閉時間の表示列である。履歴一覧表180の各行は、表示列181〜186に対応する夫々の表示位置に、記憶装置24の履歴[1]〜履歴[20]に記憶する各データを表示する。履歴一覧表示画面170は、下段に、履歴表示終了ボタン191、選択履歴表示ボタン192、選択履歴削除ボタン198、全履歴削除ボタン199を備える。 As shown in FIG. 5, the CPU 21 waits for input of an operation for each button of the individual history display screen 110 (S111 to S116). When the operation of the history list display button 123 is accepted (S111: YES), the CPU 21 displays the history list display screen 170 on the display screen of the display unit 18 (S121). As shown in FIG. 10, the history list display screen 170 is a screen displaying the history list 180. The history list 180 has display columns 181-186. The display columns 181 to 186 are display columns for the date and time, the program name, the cycle time, the cutting time, the non-cutting time, and the opening / closing time, respectively. Each row of the history list 180 displays each data stored in the history [1] to the history [20] of the storage device 24 at each display position corresponding to the display columns 181 to 186. The history list display screen 170 includes a history display end button 191, a selection history display button 192, a selection history deletion button 198, and a total history deletion button 199 at the bottom.

図5に示すように、CPU21は、全時間表示設定がONであるか否かを判断する(S122)。全時間表示設定がOFFの場合(S122:NO)、CPU21は処理をS124に進める。全時間表示設定がONの場合(S122:YES)、CPU21は、サイクルタイムの表示列183に「扉の開閉時間を含む」旨の記述(図10、矢印D参照)を表示し(S123)、処理をS124に進める。 As shown in FIG. 5, the CPU 21 determines whether or not the all-time display setting is ON (S122). When the all-time display setting is OFF (S122: NO), the CPU 21 advances the process to S124. When the all-time display setting is ON (S122: YES), the CPU 21 displays a description (see FIG. 10, arrow D) that “including the door opening / closing time” in the cycle time display column 183 (S123). The process proceeds to S124.

CPU21は、変数iに1を設定する(S124)。CPU21は、記憶装置24が履歴[i]にデータを記憶していれば(S125:YES)、時間表示処理を実行する(S126)。図6に示すように、CPU21は、履歴一覧表180におけるi行目の表示列182、184、185、181の夫々に、プログラム名[i]、切削時間[i,0]、非切削時間[i,0]、日時[i]の各データを表示する(S152)。CPU21は、全時間表示設定に従い、表示列183に、サイクルタイム[i](S154)、又はサイクルタイム[i]と開閉時間[i]の合計値(S155)を表示する。時間稼働率は、履歴一覧表180には表示しない(S161:NO)。CPU21は、正常終了フラグ[i]が1であれば、表示列186に開閉時間[i]を表示し(S172)、画面表示処理に戻る。正常終了フラグ[i]が0であれば、CPU21は、表示列183に「*」印(図10、矢印E参照)を表示し(S173)、表示列186に「−」(図10、矢印F参照)を表示して(S174)、画面表示処理に戻る。 The CPU 21 sets the variable i to 1 (S124). If the storage device 24 stores data in the history [i] (S125: YES), the CPU 21 executes the time display process (S126). As shown in FIG. 6, the CPU 21 has a program name [i], a cutting time [i, 0], and a non-cutting time [i], respectively, in the display columns 182, 184, 185, and 181 of the i-th row in the history list 180. Each data of i, 0] and the date and time [i] is displayed (S152). The CPU 21 displays the cycle time [i] (S154) or the total value (S155) of the cycle time [i] and the opening / closing time [i] in the display column 183 according to the all-time display setting. The hourly operation rate is not displayed in the history list 180 (S161: NO). If the normal end flag [i] is 1, the CPU 21 displays the opening / closing time [i] in the display column 186 (S172), and returns to the screen display process. If the normal end flag [i] is 0, the CPU 21 displays an “*” mark (see FIG. 10, arrow E) in the display column 183 (S173), and “-” (FIG. 10, arrow E) in the display column 186. (Refer to F) is displayed (S174), and the process returns to the screen display process.

図5に示すように、CPU21は変数iに1を加算し(S127)、変数iが21でなければ(S128:NO)、処理をS125に戻し、次の履歴[i]の各データを読込んで次行に表示する。履歴[i]が削除してある場合(S125:NO)、CPU21は時間表示処理を実行せず、更に次の履歴[i]の各データを読込んで次行に表示する。履歴一覧表180に履歴[1]〜履歴[20]の各データを表示し終え、変数iが21になった場合(S128:YES)、CPU21は、履歴一覧表示画面170の各ボタンに対する操作の入力を待機する(S131:NO、S133:NO、S135:NO)。 As shown in FIG. 5, the CPU 21 adds 1 to the variable i (S127), returns the process to S125 if the variable i is not 21 (S128: NO), and reads each data of the next history [i]. Then display it on the next line. When the history [i] is deleted (S125: NO), the CPU 21 does not execute the time display process, and further reads each data of the next history [i] and displays it on the next line. When each data of the history [1] to [20] is displayed in the history list table 180 and the variable i becomes 21 (S128: YES), the CPU 21 operates the operation for each button of the history list display screen 170. Wait for input (S131: NO, S133: NO, S135: NO).

選択履歴削除ボタン198又は全履歴削除ボタン199の操作を受け付けた場合(S133:YES)、CPU21は、履歴の記憶エリアを削除する処理を行う(S134)。CPU21は、入力部17の操作に基づき、履歴一覧表180に表示する全20件の履歴のうち、1つの履歴の選択を受け付けることができる。選択履歴削除ボタン198の操作を受け付けた場合、CPU21は、選択を受け付けた履歴の履歴番号に対応する記憶エリアを削除する。全履歴削除ボタン199の操作を受け付けた場合、CPU21は、履歴[1]〜履歴[20]の全てを削除する。 When the operation of the selection history deletion button 198 or the all history deletion button 199 is accepted (S133: YES), the CPU 21 performs a process of deleting the history storage area (S134). Based on the operation of the input unit 17, the CPU 21 can accept the selection of one of the 20 histories displayed in the history list 180. When the operation of the selection history deletion button 198 is accepted, the CPU 21 deletes the storage area corresponding to the history number of the history for which the selection has been accepted. When the operation of the all history deletion button 199 is accepted, the CPU 21 deletes all of the history [1] to the history [20].

選択履歴表示ボタン192の操作を受け付けた場合(S131:YES)、CPU21は、選択を受け付けた履歴の履歴番号を変数iに設定し(S132)、処理をS102に移行する。CPU21は、表示部18の表示画面に、個別履歴表示画面110と、選択を受け付けた履歴のデータを表示し(S102〜S105)、各ボタンに対する操作の入力を待機する(S111〜S116)。履歴表示終了ボタン121の操作を受け付けた場合(S116:YES)、CPU21は画面表示処理を終了する。また、履歴一覧表示画面170で履歴一覧表180を表示するときに、履歴表示終了ボタン191の操作を受け付けた場合も(S135:YES)、CPU21は画面表示処理を終了する。 When the operation of the selection history display button 192 is accepted (S131: YES), the CPU 21 sets the history number of the history for which the selection has been accepted in the variable i (S132), and shifts the process to S102. The CPU 21 displays the individual history display screen 110 and the history data for which the selection has been accepted on the display screen of the display unit 18 (S102 to S105), and waits for the input of the operation for each button (S111 to S116). When the operation of the history display end button 121 is accepted (S116: YES), the CPU 21 ends the screen display process. Further, when the history list display 180 is displayed on the history list display screen 170, the CPU 21 also ends the screen display process when the operation of the history display end button 191 is accepted (S135: YES).

以上説明したように、工作機械10を用いた生産にかかる時間は、NCプログラムに従ってワークを加工する間のサイクルタイムだけでなく、NCプログラムが非実行中でありながらも工作機械10の駆動を制御している間の動作時間もかかる。動作時間は、例えば、工作機械10の扉を開閉する開閉時間や、工作機械10を製造ラインに組み込んだ場合に、加工前のワークを搬入し、加工後のワークを搬出する間の時間等である。数値制御装置20は、全時間表示設定に基づいて、サイクルタイムと動作時間の合計時間を表示部18の表示画面に表示することができる。故に管理者は、工作機械10を用いた生産にかかる時間をより正確に把握でき、生産管理を行うことができる。 As described above, the time required for production using the machine tool 10 controls not only the cycle time during machining of the workpiece according to the NC program, but also the drive of the machine tool 10 even though the NC program is not being executed. It also takes time to operate while doing so. The operating time is, for example, the opening / closing time for opening / closing the door of the machine tool 10, the time between carrying in the work before machining and carrying out the work after machining when the machine tool 10 is incorporated in the production line, and the like. is there. The numerical control device 20 can display the total time of the cycle time and the operation time on the display screen of the display unit 18 based on the all-time display setting. Therefore, the manager can more accurately grasp the time required for production using the machine tool 10 and can perform production control.

NCプログラムに従うワークの加工中に、例えばMDIモードに移行する場合や、手動操作を受け付ける場合など、数値制御装置20は、NCプログラムの実行を一時的に停止する場合がある。この場合、数値制御装置20は、サイクルタイムカウンタを更新せず、サイクルタイムの計測を一時停止した状態にすることができる。すなわち数値制御装置20は、NCプログラムの実行に従ってワークを加工しているときのみ、サイクルタイムを計測する。故に管理者は、工作機械10を用いた生産にかかる時間をより正確に把握することができる。 During machining of a workpiece according to the NC program, for example, when shifting to the MDI mode or when accepting a manual operation, the numerical control device 20 may temporarily stop the execution of the NC program. In this case, the numerical control device 20 can put the cycle time measurement in a paused state without updating the cycle time counter. That is, the numerical control device 20 measures the cycle time only when the workpiece is machined according to the execution of the NC program. Therefore, the manager can more accurately grasp the time required for production using the machine tool 10.

ワークの加工を途中で中止する場合、数値制御装置20はNCプログラムの実行を中断する。この場合、数値制御装置20は、工作機械10の制御を途中で終了するので、サイクルタイムの計測だけでなく、動作時間の計測も途中で終了する。よってサイクルタイムと動作時間は、生産にかかる時間を正確に表すものではない。この場合、数値制御装置20は、表示部18の表示画面にサイクルタイムとともに「*」印を表示することで、ワークの加工が途中で終了したことを報せることができる。 When the machining of the work is stopped in the middle, the numerical control device 20 interrupts the execution of the NC program. In this case, since the numerical control device 20 ends the control of the machine tool 10 in the middle, not only the measurement of the cycle time but also the measurement of the operation time ends in the middle. Therefore, the cycle time and the operating time do not accurately represent the time required for production. In this case, the numerical control device 20 can notify that the machining of the work is completed in the middle by displaying the “*” mark together with the cycle time on the display screen of the display unit 18.

数値制御装置20は、ワークの加工にかかる時間の履歴を記憶装置24に記憶し、履歴一覧表示画面170にて一覧表示することができる。故に管理者は、工作機械10を用いた生産にかかる時間の履歴を確認することができる。 The numerical control device 20 stores the history of the time required for machining the work in the storage device 24, and can display the list on the history list display screen 170. Therefore, the manager can confirm the history of the time required for production using the machine tool 10.

数値制御装置20は、ワークの加工にかかる時間の履歴だけでなく、ワークの加工が途中で中止した場合の時間も履歴として記憶装置24に記憶することができる。故に管理者は、ワークの加工が正常に終了した場合の履歴と、ワークの加工を途中で中止した場合の履歴を比較することができる。 The numerical control device 20 can store not only the history of the time required for machining the work but also the time when the machining of the work is stopped in the middle as a history in the storage device 24. Therefore, the administrator can compare the history when the machining of the work is completed normally and the history when the machining of the work is stopped in the middle.

数値制御装置20は、ワークの加工にかかる時間のうち、工具によって実際にワークを加工する時間を切削時間として、サイクルタイムとともに表示することができる。故に管理者は、工具によるワークの加工にかかる切削時間をサイクルタイムと比較することができ、生産管理を行うことができる。 The numerical control device 20 can display the time actually machined by the tool among the time required for machining the work as the cutting time together with the cycle time. Therefore, the manager can compare the cutting time required for machining the workpiece with the tool with the cycle time, and can perform production control.

数値制御装置20は、工具ごとの切削時間を取得することができるので、故に管理者は、各工具の使用状況を把握することができる。 Since the numerical control device 20 can acquire the cutting time for each tool, the manager can grasp the usage status of each tool.

上記説明で、サイクルタイムは本発明の「実行時間」に相当する。S82を実行するCPU21は本発明の「実行時間計測手段」に相当する。開閉時間は本発明の「動作時間」に相当する。S12及びS23を実行するCPU21は本発明の「動作時間計測手段」に相当する。記憶装置24は本発明の「記憶部」に相当する。S31を実行するCPU21は本発明の「記憶手段」に相当する。S105を実行するCPU21は本発明の「表示手段」に相当する。全時間表示設定は本発明の「表示設定」に相当する。*印は本発明の「識別子」に相当する。切削時間は本発明の「操作時間」に相当する。S84を実行するCPU21は本発明の「操作時間計測手段」に相当する。 In the above description, the cycle time corresponds to the "execution time" of the present invention. The CPU 21 that executes S82 corresponds to the "execution time measuring means" of the present invention. The opening / closing time corresponds to the "operating time" of the present invention. The CPU 21 that executes S12 and S23 corresponds to the "operating time measuring means" of the present invention. The storage device 24 corresponds to the "storage unit" of the present invention. The CPU 21 that executes S31 corresponds to the "storage means" of the present invention. The CPU 21 that executes S105 corresponds to the "display means" of the present invention. The full-time display setting corresponds to the "display setting" of the present invention. The * mark corresponds to the "identifier" of the present invention. The cutting time corresponds to the "operation time" of the present invention. The CPU 21 that executes S84 corresponds to the "operation time measuring means" of the present invention.

本発明は上記実施形態に限らず各種変形が可能なことはいうまでもない。上記実施形態の工作機械10は、主軸がZ軸方向に延びる立型工作機械であるが、水平方向に延びる横型工作機械であってもよい。本実施形態はCPU21の代わりに、マイクロコンピュータ、ASIC(Application Specific Integrated Circuits)、FPGA(Field Programmable Gate Array)等を、プロセッサとして用いてもよい。プログラムを記憶するROM22と記憶装置24は、例えばHDD等、他の非一時的な記憶媒体で構成してもよい。非一時的な記憶媒体は、情報を記憶する期間に関わらず、情報を留めておくことが可能な記憶媒体であればよい。非一時的な記憶媒体は、一時的な記憶媒体(例えば伝送される信号)を含まなくてもよい。NCプログラム等の各種プログラム、パラメータは、例えば、図示外のネットワークに接続するサーバからダウンロードし、フラッシュメモリ等の記憶装置等に記憶してもよい。この場合、プログラムは、サーバが備えるHDDなどの非一時的な記憶媒体に保存していればよい。 Needless to say, the present invention is not limited to the above embodiment and can be modified in various ways. The machine tool 10 of the above embodiment is a vertical machine tool whose spindle extends in the Z-axis direction, but may be a horizontal machine tool whose spindle extends in the horizontal direction. In this embodiment, instead of the CPU 21, a microcomputer, an ASIC (Application Specific Integrated Circuits), an FPGA (Field Programmable Gate Array), or the like may be used as a processor. The ROM 22 and the storage device 24 for storing the program may be composed of other non-temporary storage media such as an HDD. The non-temporary storage medium may be any storage medium capable of storing information regardless of the period for storing the information. The non-temporary storage medium may not include a temporary storage medium (eg, a signal to be transmitted). Various programs and parameters such as NC programs may be downloaded from a server connected to a network (not shown) and stored in a storage device such as a flash memory. In this case, the program may be stored in a non-temporary storage medium such as an HDD provided in the server.

時間表示処理で、CPU21は、全時間表示設定(パラメータ)に従い、サイクルタイムの表示位置に、サイクルタイム[i]と開閉時間[i]の合計値、又はサイクルタイム[i]を表示した。これに限らず、個別履歴表示画面110は、例えば表示切替ボタンを設けてもよい。この場合、CPU21は、表示切替ボタンの操作に応じ、サイクルタイムの表示位置に、サイクルタイム[i]と開閉時間[i]の合計値、又はサイクルタイム[i]を表示してもよい。 In the time display process, the CPU 21 displays the total value of the cycle time [i] and the opening / closing time [i] or the cycle time [i] at the cycle time display position according to the all-time display setting (parameter). Not limited to this, the individual history display screen 110 may be provided with, for example, a display switching button. In this case, the CPU 21 may display the total value of the cycle time [i] and the opening / closing time [i] or the cycle time [i] at the display position of the cycle time according to the operation of the display switching button.

サイクルタイムに含めて表示可能とする時間は、扉の開閉時間に限らない。例えば、工作機械10に搬送装置を接続し、ワークの加工の前後に搬入と搬出を行う構成である場合、CPU21は、ワークの搬送時間を計測し、サイクルタイムに搬送時間を含めて表示可能としてもよい。 The time that can be displayed by including it in the cycle time is not limited to the opening / closing time of the door. For example, in the case where a transfer device is connected to the machine tool 10 to carry in and out before and after machining the work, the CPU 21 can measure the transfer time of the work and display the cycle time including the transfer time. May be good.

扉の開閉を行う扉モータ16は、一定速度で駆動するので、扉の開閉にかかる時間は夫々一定である。故に数値制御装置20は、主処理において、予め扉の開放にかかる時間と閉鎖にかかる時間を計測した所定値を用い、開閉時間の計測を行わない構成としてもよい。また、数値制御装置20は、例えば電源投入後の初回開閉時に、次回以降よりも低速で扉を開閉する制御を行ってもよい。この場合、数値制御装置20は、扉の開閉を低速で行う場合にかかる時間と高速で行う場合にかかる時間を予め測定した所定値を夫々用意し、主処理において用いてもよい。 Since the door motor 16 for opening and closing the door is driven at a constant speed, the time required for opening and closing the door is constant. Therefore, the numerical control device 20 may have a configuration in which the opening / closing time is not measured by using a predetermined value in which the time required for opening the door and the time required for closing the door are measured in advance in the main process. Further, the numerical control device 20 may control the opening and closing of the door at a lower speed than the next time and thereafter at the first opening and closing after the power is turned on. In this case, the numerical control device 20 may prepare predetermined values obtained by previously measuring the time required for opening and closing the door at a low speed and the time required for opening and closing the door at a high speed, and use them in the main process.

数値制御装置20は初期設定として予め全時間表示設定を記憶装置24に記憶したが、これに限らない。数値制御装置20は、例えば、NCプログラムのファイル名に特定の付加文字(例えばファイル名末尾に「D」を付加したもの、「_PRODUCT」を付加したものなど)がある場合を、「扉の開閉時間を含む」設定としてもよい。 The numerical control device 20 stores the full-time display setting in the storage device 24 in advance as an initial setting, but the present invention is not limited to this. The numerical control device 20 "opens and closes the door" when, for example, a specific additional character (for example, "D" is added to the end of the file name, "_PRODUCT" is added, etc.) is added to the file name of the NC program. It may be set to "include time".

時間表示処理において、正常終了フラグ[i]が1であっても、全時間表示設定がOFFである場合、CPU21は、開閉時間[i]を表示しなくてもよい。工作機械10がローダやパレットチェンジャなどの搬送装置を備える場合、数値制御装置20は、搬送装置の識別番号等を履歴[i]に含めて記憶してもよい。履歴の記憶可能な件数は20件に限らず、適宜変更可能である。工具履歴の記憶可能な件数は適宜設定してもよい。 In the time display process, even if the normal end flag [i] is 1, if the all-time display setting is OFF, the CPU 21 does not have to display the open / close time [i]. When the machine tool 10 is provided with a transfer device such as a loader or a pallet changer, the numerical control device 20 may store the identification number of the transfer device and the like in the history [i]. The number of records that can be stored in the history is not limited to 20, and can be changed as appropriate. The number of items that can be stored in the tool history may be set as appropriate.

10 工作機械
18 表示部
20 数値制御装置
21 CPU
24 記憶装置
10 Machine tool 18 Display 20 Numerical control device 21 CPU
24 storage device

Claims (7)

NCプログラムに基づいてワークに加工する工作機械の動作を制御する数値制御装置において、
前記ワークの加工にかかる時間として、前記NCプログラムの実行時間を計測する実行時間計測手段と、
前記工作機械の駆動にかかる時間として、前記工作機械の動作を制御する間の時間のうち、前記NCプログラムの非実行中の時間である動作時間を計測する動作時間計測手段と、
記憶部に前記実行時間と前記動作時間を記憶する記憶手段と、
表示部に前記実行時間を表示する表示手段と
を備え、
前記記憶部は、予め、前記表示部に前記実行時間を表示する場合の表示設定を記憶し、
前記表示手段は、
前記表示設定が、前記実行時間に前記動作時間を含めて表示する設定である場合、前記実行時間と前記動作時間とを合計した合計時間を前記実行時間として前記表示部に表示し、
前記表示設定が、前記実行時間に前記動作時間を含めずに表示する設定である場合、前記表示部に前記実行時間のみを表示すること
を特徴とする数値制御装置。
In a numerical control device that controls the operation of a machine tool that processes a workpiece based on an NC program
As the time required to process the work, an execution time measuring means for measuring the execution time of the NC program and an execution time measuring means.
As the time required to drive the machine tool, the operation time measuring means for measuring the operation time, which is the non-execution time of the NC program, among the time during controlling the operation of the machine tool, and the operation time measuring means.
A storage means for storing the execution time and the operation time in a storage unit,
The display unit is provided with a display means for displaying the execution time.
The storage unit stores in advance display settings for displaying the execution time on the display unit.
The display means
When the display setting is a setting for displaying the execution time including the operation time, the total time obtained by adding the execution time and the operation time is displayed on the display unit as the execution time.
When the display setting is a setting for displaying the execution time without including the operation time, the numerical control device is characterized in that only the execution time is displayed on the display unit.
前記NCプログラムの実行が一時的に停止した状態にある場合、前記実行時間計測手段は、前記実行時間を非計測の状態にすることを特徴とする請求項1に記載の数値制御装置。 The numerical control device according to claim 1, wherein when the execution of the NC program is temporarily stopped, the execution time measuring means puts the execution time into a non-measured state. 前記NCプログラムの実行が中断した場合、前記表示手段は、前記実行時間とともに、前記ワークに対する加工が中断した旨を示す識別子を前記表示部に表示することを特徴とする請求項1又は2に記載の数値制御装置。 The first or second aspect of the present invention, wherein when the execution of the NC program is interrupted, the display means displays an identifier indicating that the machining on the work is interrupted on the display unit together with the execution time. Numerical control device. 前記記憶手段は、計測が完了した前記実行時間及び前記動作時間を複数件、前記記憶部に記憶し、
前記表示手段は、複数件の前記実行時間を前記表示部に一覧表示すること
を特徴とする請求項1から3のいずれかに記載の数値制御装置。
The storage means stores a plurality of the execution time and the operation time for which the measurement is completed in the storage unit.
The numerical control device according to any one of claims 1 to 3, wherein the display means displays a plurality of execution times in a list on the display unit.
前記記憶手段は、計測が完了した前記実行時間及び前記動作時間とともに、前記NCプログラムの実行の中断によって計測が完了しなかった前記実行時間及び前記動作時間を前記記憶部に記憶することを特徴とする請求項4に記載の数値制御装置。 The storage means is characterized in that, together with the execution time and the operation time for which the measurement is completed, the execution time and the operation time for which the measurement is not completed due to the interruption of the execution of the NC program are stored in the storage unit. The numerical control device according to claim 4. 前記実行時間の計測中に、前記工作機械が主軸に装着した工具を操作する操作時間を計測する操作時間計測手段を備え、
前記表示手段は、前記実行時間とともに、前記操作時間を前記表示部に表示すること
を特徴とする請求項1から5のいずれかに記載の数値制御装置。
An operation time measuring means for measuring the operation time for operating the tool mounted on the spindle by the machine tool during the measurement of the execution time is provided.
The numerical control device according to any one of claims 1 to 5, wherein the display means displays the operation time on the display unit together with the execution time.
前記工作機械は、複数の前記工具を交換可能であり、
前記操作時間計測手段は、前記工作機械が前記工具を交換するごとに、交換後の前記工具に対応する前記操作時間を計測すること
を特徴とする請求項6に記載の数値制御装置。
The machine tool is capable of exchanging a plurality of the tools.
The numerical control device according to claim 6, wherein the operation time measuring means measures the operation time corresponding to the tool after the replacement each time the machine tool replaces the tool.
JP2018048730A 2018-03-16 2018-03-16 Numerical control device Active JP6881362B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018048730A JP6881362B2 (en) 2018-03-16 2018-03-16 Numerical control device
CN201910024565.6A CN110275483B (en) 2018-03-16 2019-01-10 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018048730A JP6881362B2 (en) 2018-03-16 2018-03-16 Numerical control device

Publications (2)

Publication Number Publication Date
JP2019160104A JP2019160104A (en) 2019-09-19
JP6881362B2 true JP6881362B2 (en) 2021-06-02

Family

ID=67958814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018048730A Active JP6881362B2 (en) 2018-03-16 2018-03-16 Numerical control device

Country Status (2)

Country Link
JP (1) JP6881362B2 (en)
CN (1) CN110275483B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10328976A (en) * 1997-05-27 1998-12-15 Hitachi Seiki Co Ltd Machine tool operating information recording method, nc device with machine tool operating information recording function, and recording medium with machine tool operating information recording program recorded therein
JPH11320336A (en) * 1998-05-13 1999-11-24 Howa Mach Ltd Method and device for measuring and displaying operation time in work machining equipment
JP4312047B2 (en) * 2003-12-26 2009-08-12 ホーコス株式会社 Machine tool controller
JP5473665B2 (en) * 2010-02-17 2014-04-16 Dmg森精機株式会社 Workpiece measuring apparatus and method for machine tool
WO2012043786A1 (en) * 2010-10-01 2012-04-05 シチズンホールディングス株式会社 Power-supply management device and machine tool provided with power-supply management device
CN103481120A (en) * 2013-08-23 2014-01-01 上海师范大学 Intelligent detection system for Duty parameters of machine tool
CN104289974B (en) * 2014-06-27 2017-01-04 中北大学 The ultrasonic automatic detection accessory of numerical control of machine tools and the time synchronization control method completed thereof
JP6299527B2 (en) * 2014-08-29 2018-03-28 ブラザー工業株式会社 Numerical control device and control method
CN105629879A (en) * 2014-10-31 2016-06-01 西安扩力机电科技有限公司 Self-diagnosis method for product machining state for numerical control machine tool
JP6435872B2 (en) * 2015-01-20 2018-12-12 ブラザー工業株式会社 Numerical control device and control method
JP6485950B2 (en) * 2015-02-26 2019-03-20 Dmg森精機株式会社 Numerical control system

Also Published As

Publication number Publication date
CN110275483B (en) 2022-02-25
JP2019160104A (en) 2019-09-19
CN110275483A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US10416650B2 (en) Waveform display device having function of acquiring data related to driving axis of machine tool
US9665085B2 (en) Cutting condition and tool life display device for a numerical controller
WO2016051544A1 (en) Control device for machine tool
CN1312547C (en) Numerical controller
CN101109947A (en) Numerical controller having interference check function
CN101620430B (en) Numerical controller with tabular data for operating arbitrary axes
JP6854607B2 (en) Processing information collection system
CN104570929A (en) Machine Tool
CN103294002A (en) Numerical controller with data management function
CN101224562B (en) Method for controlling a moveable tool, apparatus and mechanical tool
US11919163B2 (en) Method for validating programmed execution sequences or teaching programs for a robot in a working cell, and a robot and/or robot controller for said method
CN111610754B (en) Picture making device and picture making system
JP6881362B2 (en) Numerical control device
CA2954312C (en) Electronically controlled substrate working apparatus
KR20220092865A (en) Dental machining systems for predicting wear conditions on dental tools
CN105938411B (en) Control panel
US7089531B2 (en) Method and device for generating or editing NC programs
JP2016194843A (en) Numerical control device having program display function using plural images
US20180292807A1 (en) Information processing device
CN104423328A (en) Controller for machine tool
KR102336216B1 (en) Apparatus for displaying manufacturing time of machine tool
KR20190068858A (en) Tool path changing device of cycle processing of machine tool and method thereof
JP7119858B2 (en) Tool life management device, machine tool, display processing method and computer program
KR101078800B1 (en) External device for generating the part programs
JP2559273B2 (en) Numerical control device and screen display method of numerical control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210305

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: 20210406

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210419

R150 Certificate of patent or registration of utility model

Ref document number: 6881362

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150