JP6656320B2 - Machine tool control device - Google Patents

Machine tool control device Download PDF

Info

Publication number
JP6656320B2
JP6656320B2 JP2018141331A JP2018141331A JP6656320B2 JP 6656320 B2 JP6656320 B2 JP 6656320B2 JP 2018141331 A JP2018141331 A JP 2018141331A JP 2018141331 A JP2018141331 A JP 2018141331A JP 6656320 B2 JP6656320 B2 JP 6656320B2
Authority
JP
Japan
Prior art keywords
control device
data
machine tool
backup
storage 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.)
Active
Application number
JP2018141331A
Other languages
Japanese (ja)
Other versions
JP2020017192A (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.)
Makino Milling Machine Co Ltd
Original Assignee
Makino Milling Machine 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 Makino Milling Machine Co Ltd filed Critical Makino Milling Machine Co Ltd
Priority to JP2018141331A priority Critical patent/JP6656320B2/en
Publication of JP2020017192A publication Critical patent/JP2020017192A/en
Application granted granted Critical
Publication of JP6656320B2 publication Critical patent/JP6656320B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本願は、工作機械の制御装置に関する。   The present application relates to a control device for a machine tool.

従来、工作機械に用いられるデータをバックアップするための様々な構成が知られている(例えば、特許文献1参照)。特許文献1は、メモリカード等の可搬の記憶媒体に、データをバックアップすることが可能な工作機械制御装置を開示している。この制御装置では、作業者が記憶媒体を記憶媒体ドライブ手段に装着すると、チェック手段が、特定ファイルが記憶媒体に存在するか否かをチェックする。この制御装置では、特定ファイルが記憶媒体に存在することが、バックアップ開始条件である。特定ファイルが記憶媒体に存在する場合、バックアップ動作が開始される。このような構成によって、特定ファイルを含んでいない記憶媒体が装着された場合に、バックアップ動作が開始されることが防止される。   2. Description of the Related Art Conventionally, various configurations for backing up data used in machine tools have been known (for example, see Patent Document 1). Patent Literature 1 discloses a machine tool control device capable of backing up data to a portable storage medium such as a memory card. In this control device, when the operator mounts the storage medium on the storage medium drive, the checker checks whether the specific file exists on the storage medium. In this control device, the existence of the specific file on the storage medium is a backup start condition. If the specific file exists on the storage medium, a backup operation is started. Such a configuration prevents a backup operation from starting when a storage medium that does not include a specific file is mounted.

特開2006−260128号公報JP 2006-260128 A

特許文献1の制御装置では、作業者が記憶媒体を記憶媒体ドライブ手段に装着したときにデータがバックアップされるため、例えば作業者がバックアップ作業を失念した場合には、データがバックアップされない。   In the control device disclosed in Patent Literature 1, data is backed up when an operator mounts a storage medium on the storage medium drive. Therefore, for example, if the operator forgets to perform the backup operation, the data is not backed up.

本発明は、上記のような課題を解決しつつ、制御装置内のデータを自動的に高いセキュリティでバックアップでき、かつ、データの復元時には高いセキュリティでデータをリストアできる、工作機械の制御装置を提供することを目的とする。   The present invention provides a machine tool control device that can automatically back up data in a control device with high security and can restore data with high security when restoring data, while solving the problems described above. The purpose is to do.

本開示の一態様は、NCプログラムによって工作機械の動作を制御する、工作機械の制御装置において、NCプログラムを読み取り、工作機械の送り装置をサーボ制御する、NC装置と、表示部及び操作部を有する操作盤であって、工作機械を運転させるための指令を受け付けて、指令に基づいた運転信号を送信するように構成された、操作盤と、NCプログラム又は操作盤からの運転信号に応じて、工作機械のシーケンス制御を実行する、機械制御装置と、NC装置に入力されるNCプログラム及びNCパラメータのデータ、並びに、機械制御装置が使用するシーケンス制御プログラム及び機械パラメータのデータを記憶する、データ記憶装置と、機械制御装置との通信を接続及び切離し可能なスイッチを介して機械制御装置に接続される、外部記憶装置と、を備え、機械制御装置は、予め設定されたタイミングでスイッチを接続し、データ記憶装置のデータを外部記憶装置にバックアップし、且つ、バックアップ後にスイッチを切離しする、バックアップ処理部と、操作盤からデータのリストアが指令されたときにスイッチを接続し、外部記憶装置からデータ記憶装置へデータをリストアし、且つ、リストア後にスイッチを切離しする、リストア処理部と、を有する、工作機械の制御装置である。   One aspect of the present disclosure is a control device for a machine tool, which controls an operation of a machine tool by an NC program, reads the NC program, and servo-controls a feed device of the machine tool, including an NC device, a display unit, and an operation unit. An operation panel having an operation panel configured to receive a command for operating the machine tool and transmit an operation signal based on the command, according to an NC program or an operation signal from the operation panel. A machine control device that executes sequence control of a machine tool, data of an NC program and NC parameters input to the NC device, and data of a sequence control program and machine parameter data used by the machine control device. Connected to the machine control device via a switch that can connect and disconnect the communication between the storage device and the machine control device An external storage device, the machine control device connects a switch at a preset timing, backs up data in the data storage device to the external storage device, and disconnects the switch after the backup, and a backup processing unit. And a restore processing unit for connecting a switch when data restoration is instructed from the operation panel, restoring data from the external storage device to the data storage device, and disconnecting the switch after the restoration. Control device.

本開示の一態様による工作機械の制御装置は、データ記憶装置に加えて、外部記憶装置を備えており、この外部記憶装置は、スイッチを介して機械制御装置に接続されている。そして、予め設定されたタイミングでスイッチが接続され、ひとたびデータが外部記憶装置にバックアップされるとスイッチは切離される。このような構成によれば、予め設定されたタイミングでデータが自動的にバックアップされ、かつ、バックアップ時以外にはスイッチは切り離されている。したがって、制御装置内のデータを自動的に高いセキュリティでバックアップできる。同様に、上記の制御装置では、データのリストアが指令されたときにスイッチが接続され、ひとたび外部記憶装置からデータがリストアされるとスイッチは切離される。このような構成によれば、リストア時以外には、スイッチは切り離されている。したがって、データの復元時には高いセキュリティでデータをリストアできる。   A control device for a machine tool according to an aspect of the present disclosure includes an external storage device in addition to a data storage device, and the external storage device is connected to the machine control device via a switch. The switch is connected at a preset timing, and once the data is backed up in the external storage device, the switch is disconnected. According to such a configuration, data is automatically backed up at a preset timing, and the switch is disconnected except at the time of backup. Therefore, data in the control device can be automatically backed up with high security. Similarly, in the above control device, the switch is connected when data restoration is instructed, and the switch is disconnected once data is restored from the external storage device. According to such a configuration, the switch is disconnected except at the time of restoration. Therefore, when restoring data, the data can be restored with high security.

リストア処理部は、操作盤からリストアを指令した人の権限に応じて、予め決められたデータをリストアしてもよい。例えば、リストアを指令した人が工作機械の作業者である場合、いくつかの情報は必要でない可能性がある。このような必要でない情報が表示部に表示された場合、作業者は困惑する可能性がある。上記の構成によれば、リストアを指令した人の権限に応じて予め決められたデータがリストアされるので、適切なデータのみをリストアすることができる。   The restore processing unit may restore predetermined data according to the authority of the person who issued the restore command from the operation panel. For example, if the person who issued the restoration is a machine tool operator, some information may not be necessary. When such unnecessary information is displayed on the display unit, the operator may be confused. According to the above configuration, since predetermined data is restored according to the authority of the person who instructed the restoration, only appropriate data can be restored.

予め設定されたタイミングは、指定された時刻、工作機械の電源オン時、及び、工作機械の電源オフ時の少なくとも1つを含んでもよい。これらのタイミングの1つ又は複数でバックアップを行うことで、バックアップデータを新しいものに維持することができる。   The preset timing may include at least one of a designated time, when the power of the machine tool is turned on, and when the power of the machine tool is turned off. By performing backup at one or more of these timings, the backup data can be kept new.

本開示の一態様によれば、制御装置内のデータを自動的に高いセキュリティでバックアップでき、データの復元時には高いセキュリティでデータをリストアできる、工作機械の制御装置を提供することが可能である。   According to an embodiment of the present disclosure, it is possible to provide a machine tool control device that can automatically back up data in the control device with high security and can restore data with high security when restoring data.

実施形態に係る工作機械の制御装置を含むシステムを示す概略ブロック図である。FIG. 1 is a schematic block diagram illustrating a system including a machine tool control device according to an embodiment. 操作盤に表示される画像の一例である。It is an example of the image displayed on an operation panel. 操作盤に表示されるバックアップの設定に関する画像の一例である。It is an example of the image regarding the backup setting displayed on the operation panel. 操作盤に表示される権限の選択に関する画像の一例である。It is an example of the image regarding the selection of the authority displayed on the operation panel. 操作盤に表示されるリストアの設定に関する画像の一例である。It is an example of the image regarding the restore setting displayed on the operation panel. 制御装置のバックアップの動作を示すフローチャートである。6 is a flowchart illustrating a backup operation of the control device. 制御装置のリストアの動作を示すフローチャートである。9 is a flowchart illustrating a restore operation of the control device.

以下、添付図面を参照して、実施形態に係る工作機械の制御装置を説明する。同様な又は対応する要素には同一の符号を付し、重複する説明は省略する。理解を容易にするために、図の縮尺は変更されている場合がある。   Hereinafter, a control device for a machine tool according to an embodiment will be described with reference to the accompanying drawings. Similar or corresponding elements are denoted by the same reference numerals, and redundant description will be omitted. The figures may be scaled differently for ease of understanding.

図1は、実施形態に係る工作機械の制御装置を含むシステムを示す概略ブロック図である。システム100は、工作機械1と、制御装置2と、を具備している。工作機械1は、様々な種類のNC工作機械(例えば、マシニングセンタ、放電加工機又はレーザ加工機等)であることができ、NCプログラムに基づいてその動作が制御される。   FIG. 1 is a schematic block diagram illustrating a system including a machine tool control device according to the embodiment. The system 100 includes a machine tool 1 and a control device 2. The machine tool 1 can be various types of NC machine tools (for example, a machining center, an electric discharge machine or a laser machine), and the operation thereof is controlled based on the NC program.

制御装置2は、NCプログラムを含む様々な種類のデータに基づいて、工作機械1の動作を制御する。制御装置2は、工作機械1の任意の構成要素(例えば、カバー又はベッド等)に取り付けられてもよく、又は、その周辺に配置されてもよい。制御装置2は、NC装置3と、操作盤4と、機械制御装置5と、データ記憶装置6と、外部記憶装置7と、を備えており、これらの構成要素は、例えばバス等によって接続されている。また、機械制御装置5及び外部記憶装置7は、セキュリティスイッチ8を介して接続されている。   The control device 2 controls the operation of the machine tool 1 based on various types of data including the NC program. The control device 2 may be attached to any component (for example, a cover or a bed) of the machine tool 1, or may be arranged around the component. The control device 2 includes an NC device 3, an operation panel 4, a machine control device 5, a data storage device 6, and an external storage device 7, and these components are connected by, for example, a bus or the like. ing. The machine control device 5 and the external storage device 7 are connected via a security switch 8.

NC装置3は、外部から又は機械制御装置5から入力されたNCプログラムを読み取って、工作機械1の送り装置をサーボ制御する。NC装置3には、NCプログラムと、NCプログラム中で使用されるNCパラメータとが入力される。NC装置3は、CPU(Central Processing Unit)等のプロセッサ、ROM(read only memory)及びRAM(random access memory)等の構成要素を含むことができる。   The NC device 3 reads an NC program input from outside or from the machine control device 5 and servo-controls the feed device of the machine tool 1. The NC program 3 receives an NC program and NC parameters used in the NC program. The NC device 3 can include components such as a processor such as a CPU (Central Processing Unit), a ROM (read only memory), and a RAM (random access memory).

操作盤4は、ユーザに対して情報を示すように構成された表示部41と、ユーザからの指令を受け付けるように構成された操作部42と、を含むことができる。操作盤4は、例えば、タッチパネルを含むことができる。また、操作盤4は、液晶ディスプレイ等の表示装置、並びに、キーボード、マウス及び/又はボタン等の入力装置を含んでもよい。操作盤4は、例えば、工作機械1の電源をオン及びオフするためのボタン、及び、工作機械1のサイクル動作をスタートさせるためのボタン等、様々なボタンを含んでいてもよい。ユーザは、操作部42を通して、工作機械1の運転及び制御装置2の動作に関する様々な指令を制御装置2に入力することができる。操作盤4は、入力された指令に基づいて、工作機械1の運転信号及び制御装置2の動作信号を機械制御装置5に送信する。   The operation panel 4 can include a display unit 41 configured to show information to a user, and an operation unit 42 configured to receive a command from the user. The operation panel 4 can include, for example, a touch panel. The operation panel 4 may include a display device such as a liquid crystal display and an input device such as a keyboard, a mouse, and / or buttons. The operation panel 4 may include various buttons such as a button for turning on and off the power of the machine tool 1 and a button for starting a cycle operation of the machine tool 1. The user can input various commands related to the operation of the machine tool 1 and the operation of the control device 2 to the control device 2 through the operation unit 42. The operation panel 4 transmits an operation signal of the machine tool 1 and an operation signal of the control device 2 to the machine control device 5 based on the input command.

機械制御装置5は、工作機械1のシーケンス制御を含む処理を実行する。機械制御装置5は、例えば、CPU等のプロセッサ、ROM及びRAM等の構成要素を含むことができる。機械制御装置5は、汎用処理部51と、PLC(Programmable Logic Control)処理部52と、バックアップ処理部53と、リストア処理部54と、を有しており、これらの処理部は、例えば、データ記憶装置6に記憶されているプログラムをプロセッサによって実行することで実現されることができる。   The machine control device 5 executes processing including sequence control of the machine tool 1. The machine control device 5 can include, for example, components such as a processor such as a CPU and ROM and RAM. The machine control device 5 includes a general-purpose processing unit 51, a PLC (Programmable Logic Control) processing unit 52, a backup processing unit 53, and a restore processing unit 54. These processing units include, for example, data This can be realized by executing a program stored in the storage device 6 by a processor.

汎用処理部51は、例えば、データの入力及び出力に関する制御、表示部41に示される画像に関する制御、並びに、データ記憶装置6に対するデータの書き込み及び読み出しに関する制御を実行する。汎用処理部51は、これら以外の制御を実行してもよい。   The general-purpose processing unit 51 executes, for example, control on data input and output, control on an image shown on the display unit 41, and control on writing and reading of data to and from the data storage device 6. The general-purpose processing unit 51 may execute other control.

PLC処理部52は、NCプログラム又は操作盤4からの運転信号に応じて、工作機械1のシーケンス制御を実行する。このようなシーケンス制御は、例えば、自動工具交換装置の動作に関する制御、及び/又は、自動パレット交換装置の動作に関する制御等を含む。PLC処理部52は、これら以外の制御を実行してもよい。PLC処理部52が使用するシーケンス制御プログラム(本開示において、PLCラダーとも称され得る)は、データ記憶装置6に記憶されることができる。   The PLC processing unit 52 executes sequence control of the machine tool 1 according to an NC program or an operation signal from the operation panel 4. Such sequence control includes, for example, control related to the operation of the automatic tool changer and / or control related to the operation of the automatic pallet changer. The PLC processing unit 52 may execute other control. A sequence control program (also referred to as a PLC ladder in the present disclosure) used by the PLC processing unit 52 can be stored in the data storage device 6.

バックアップ処理部53は、予め設定されたタイミングでセキュリティスイッチ8を接続し、データ記憶装置6のデータを外部記憶装置7にバックアップし、且つ、バックアップ後にセキュリティスイッチ8を切離しする(バックアップ処理部53の詳しい動作は、後述)。「予め設定されたタイミング」は、指定された時刻、工作機械の電源オン時、及び、工作機械の電源オフ時の少なくとも1つを含むことができ、操作盤4を通じてユーザによって設定されることができる(詳しくは、後述)。   The backup processing unit 53 connects the security switch 8 at a preset timing, backs up the data in the data storage device 6 to the external storage device 7, and disconnects the security switch 8 after the backup (the backup processing unit 53). Detailed operation will be described later). The “preset timing” may include at least one of a designated time, a power-on of a machine tool, and a power-off of a machine tool, and may be set by a user through the operation panel 4. Yes (more on that later).

リストア処理部54は、操作盤4からデータのリストアが指令されたときに、セキュリティスイッチ8を接続し、外部記憶装置7からデータ記憶装置6へデータをリストアし、且つ、リストア後にセキュリティスイッチ8を切離しする(リストア処理部54の詳しい動作は、後述)。   The restore processing unit 54 connects the security switch 8 when the restoration of data is instructed from the operation panel 4, restores the data from the external storage device 7 to the data storage device 6, and switches the security switch 8 after the restoration. Disconnect (detailed operation of the restore processing unit 54 will be described later).

データ記憶装置(本開示において、「第1の記憶装置」とも称され得る)6は、工作機械1及び制御装置2に関する様々な種類のデータを記憶する。データ記憶装置6は、例えば、1つ又は複数のハードディスク等の補助記憶装置を含むことができる。データ記憶装置6は、例えば、NC装置3に入力されるNCプログラム及びNCパラメータ、機械制御装置5が使用するシーケンス制御プログラム及び機械パラメータ、機械制御装置5が有する処理部を実現するためのプログラム、NC装置3及び機械制御装置5をウィルス感染から保護するためのプログラム(例えば、ホワイトリスト方式又はブラックリスト方式のプログラム)、並びに、工作機械1及び制御装置2に関する他のデータ等を記憶することができる。   A data storage device (also referred to as a “first storage device”) 6 in the present disclosure stores various types of data relating to the machine tool 1 and the control device 2. The data storage device 6 can include, for example, an auxiliary storage device such as one or more hard disks. The data storage device 6 includes, for example, an NC program and NC parameters input to the NC device 3, a sequence control program and machine parameters used by the machine control device 5, a program for realizing a processing unit of the machine control device 5, A program (for example, a whitelist or blacklist program) for protecting the NC device 3 and the machine control device 5 from virus infection, and other data related to the machine tool 1 and the control device 2 can be stored. it can.

外部記憶装置7は、データ記憶装置6に記憶されているデータをバックアップする。また、外部記憶装置7にバックアップされたデータは、必要な時に(例えば、データ記憶装置6内のデータが消失した時に)データ記憶装置6にリストアされることができる。外部記憶装置7は、例えば、ハードディスクドライブ、並びに、USBフラッシュメモリ及びCFカード等の補助記憶装置を含むことができる。   The external storage device 7 backs up data stored in the data storage device 6. The data backed up in the external storage device 7 can be restored to the data storage device 6 when necessary (for example, when data in the data storage device 6 is lost). The external storage device 7 can include, for example, a hard disk drive and an auxiliary storage device such as a USB flash memory and a CF card.

セキュリティスイッチ8は、機械制御装置5と外部記憶装置7との間の通信を接続及び切離し可能に構成されている。セキュリティスイッチ8は、例えば、機械制御装置5から接続信号を受信するまでは、常時切り離されていることができる。セキュリティスイッチ8は、例えば、接続時には機械制御装置5が外部記憶装置7を認識できるように構成されており、且つ、切離し時には外部記憶装置7が物理的に機械制御装置5と接続されていても機械制御装置5が外部記憶装置7を認識できないように構成された、プログラムによるソフトウェアベースのスイッチであることができる。代替的に、セキュリティスイッチ8は、機械制御装置5と外部記憶装置7との間の回路に設けられた電子部品としての任意のスイッチであってもよく、機械制御装置5からの信号にしたがって接続及び切離しを切り換えることができる。また、代替的に、セキュリティスイッチ8は、機械制御装置5から接続信号を受信するまでは、外部記憶装置7を物理的にハードウェアインタフェースから切離し、機械制御装置5から接続信号を受信したときに、外部記憶装置7をハードウェアインタフェースに挿入する、例えばシリンダ等を含む機械的な直動機構であってもよい。   The security switch 8 is configured to connect and disconnect communication between the machine control device 5 and the external storage device 7. The security switch 8 can be always disconnected until a connection signal is received from the machine control device 5, for example. The security switch 8 is configured, for example, so that the machine control device 5 can recognize the external storage device 7 when connected, and even when the external storage device 7 is physically connected to the machine control device 5 when disconnected. It can be a program-based software-based switch configured such that the machine control device 5 cannot recognize the external storage device 7. Alternatively, the security switch 8 may be any switch as an electronic component provided in a circuit between the machine control device 5 and the external storage device 7, and is connected according to a signal from the machine control device 5. And disconnection can be switched. Alternatively, the security switch 8 physically disconnects the external storage device 7 from the hardware interface until the connection signal is received from the machine control device 5 and receives the connection signal from the machine control device 5. Alternatively, the external storage device 7 may be a mechanical linear motion mechanism including a cylinder or the like inserted into a hardware interface.

本実施形態に係るシステム100では、機械制御装置5は、ユーザLANサーバ101、クラウドサーバ102及び工作機械保守会社のサーバ103とそれぞれネットワークN1,N2及びN3によって接続されている。ユーザLANサーバ101は、例えば、工作機械1を使用する会社のサーバであることができ、ネットワークN1は、社内ネットワークであることができる。ネットワークN2及びN3は、例えば、インターネットであることができる。ユーザLANサーバ101、クラウドサーバ102及び工作機械保守会社のサーバ103は、セキュリティスイッチ8を介して機械制御装置5と接続されており、機械制御装置5は、外部記憶装置7に加えて、これらのサーバにデータ記憶装置6に記憶されているデータをバックアップすることができる。本開示において、外部記憶装置7、ユーザLANサーバ101、クラウドサーバ102及び工作機械保守会社のサーバ103のうちの任意の1つ又は任意の組合せが、「第2の記憶装置」と称され得る。   In the system 100 according to the present embodiment, the machine control device 5 is connected to the user LAN server 101, the cloud server 102, and the server 103 of the machine tool maintenance company via networks N1, N2, and N3, respectively. The user LAN server 101 can be, for example, a server of a company that uses the machine tool 1, and the network N1 can be an in-house network. The networks N2 and N3 can be, for example, the Internet. The user LAN server 101, the cloud server 102, and the server 103 of the machine tool maintenance company are connected to the machine control device 5 via the security switch 8, and the machine control device 5 includes these in addition to the external storage device 7. The server can back up data stored in the data storage device 6. In the present disclosure, any one or any combination of the external storage device 7, the user LAN server 101, the cloud server 102, and the server 103 of the machine tool maintenance company may be referred to as a “second storage device”.

上記のような機械制御装置5は、NC装置3又は機械制御装置5がウィルスに感染した場合に、セキュリティスイッチ8の接続を禁止することができる。例えば、制御装置2がウィルス感染から保護するためのプログラムを有している場合、制御装置2は、NC装置3又は機械制御装置5がウィルスに感染したか否かを判定することができる。また、例えば、作業者が異常に気付いたときに、ウィルス感染が発見され得る。ウィルス感染が見つかった場合、機械制御装置5は、例えば、接続禁止指令のフラグをオンにすることによって、セキュリティスイッチ8に接続信号が送信されることを禁止することができる。このような構成によって、NC装置3又は機械制御装置5がウィルスに感染した場合、セキュリティスイッチ8の接続が禁止され、外部記憶装置7(又は、第2の記憶装置)の安全が保たれる。この場合、データ記憶装置6は初期化されてデータ記憶装置6内の全てのデータは消去され、OS(Operating System)は再インストールされる。そして、外部記憶装置7に記憶されているバックアップデータがデータ記憶装置6にリストアされ、NC装置3及び機械制御装置5を再び使用することができる。以上のような構成によって、セキュリティスイッチ8は、外部記憶装置7(又は、第2の記憶装置)がウィルス感染するリスクを低減することができる。   The machine control device 5 as described above can prohibit the connection of the security switch 8 when the NC device 3 or the machine control device 5 is infected with a virus. For example, when the control device 2 has a program for protecting from virus infection, the control device 2 can determine whether the NC device 3 or the machine control device 5 has been infected with a virus. Also, for example, a virus infection may be found when an operator notices an abnormality. If a virus infection is found, the machine control device 5 can prohibit the connection signal from being transmitted to the security switch 8 by turning on a connection prohibition command flag, for example. With this configuration, when the NC device 3 or the machine control device 5 is infected with a virus, the connection of the security switch 8 is prohibited, and the safety of the external storage device 7 (or the second storage device) is maintained. In this case, the data storage device 6 is initialized, all data in the data storage device 6 is erased, and the OS (Operating System) is reinstalled. Then, the backup data stored in the external storage device 7 is restored to the data storage device 6, and the NC device 3 and the machine control device 5 can be used again. With the above configuration, the security switch 8 can reduce the risk of virus infection of the external storage device 7 (or the second storage device).

次に、操作盤4の表示部41に表示される画面の例について説明する。   Next, an example of a screen displayed on the display unit 41 of the operation panel 4 will be described.

図2は、操作盤に表示される画像の一例であり、バックアップ・リストアが選択されたときの初期画面であることができる。画像は、左側の領域DLと右側の領域DRとを含んでいる。左側の領域DLには、様々なボタンが含まれている。例えば、左側の領域DLの上部にある「設定」ボタンを押すと、左側の領域DLに、「バックアップ・リストア」を含む、設定に関する様々なボタンが表示される。「バックアップ・リストア」ボタンを押すと、右側の領域DRに「バックアップ」ボタン及び「リストア」ボタンが表示され、ユーザは「バックアップ」ボタン及び「リストア」ボタンのいずれかを押すことができる。   FIG. 2 is an example of an image displayed on the operation panel, and can be an initial screen when backup / restore is selected. The image includes a left area DL and a right area DR. The left area DL includes various buttons. For example, when a “setting” button at the top of the left area DL is pressed, various buttons related to settings including “backup / restore” are displayed in the left area DL. When the "Backup / Restore" button is pressed, a "Backup" button and a "Restore" button are displayed in the right area DR, and the user can press either the "Backup" button or the "Restore" button.

続いて、バックアップの設定に関する画像について説明する。図3は、操作盤に表示されるバックアップの設定に関する画像の一例である。図2において右側の領域DRの「バックアップ」ボタンが押されると、図3に示される画像が表示される。   Next, an image related to backup setting will be described. FIG. 3 is an example of an image related to backup settings displayed on the operation panel. When the “backup” button in the right area DR in FIG. 2 is pressed, the image shown in FIG. 3 is displayed.

左側の領域DLには、既に外部記憶装置7(又は、第2の記憶装置)にバックアップされているデータが格納されたフォルダが表示されている。後述されるように、フォルダ名はバックアップが実行される年月日及び時刻であってもよく、図3の例では、左側の領域DLに示されるように、2018年7月2日〜6日の各日の12時にデータがバックアップされている(計5回)。   In the left area DL, a folder in which data that has already been backed up in the external storage device 7 (or the second storage device) is displayed. As will be described later, the folder name may be the date and time when the backup is executed. In the example of FIG. 3, as shown in the left area DL, the folder name is from July 2 to 6, 2018. The data is backed up at 12:00 on each day (5 times in total).

各タイミングのバックアップは、差分バックアップであってもよく、又は、フルバックアップであってもよい。差分バックアップが実行される場合、例えば、図3の例では、初回の2018年7月2日のフォルダは、このバックアップ時に選択された全てのデータ項目の全てのデータを含んでもよい。2回目の2018年7月3日のフォルダは、初回のデータに対する追加、更新及び変更のみを含んでもよい。同様に、3,4,5回目の2018年7月4,5,6日のフォルダは、それぞれ、2,3,4回目のデータに対する追加、更新及び変更のみを含んでもよい。   The backup at each timing may be a differential backup or a full backup. When the differential backup is performed, for example, in the example of FIG. 3, the first folder on July 2, 2018 may include all data of all data items selected at the time of the backup. The second July 3, 2018 folder may contain only additions, updates, and changes to the first data. Similarly, the third, fourth, and fifth folders on July 4, 5, and 6, 2018 may include only additions, updates, and changes to the second, third, and fourth data, respectively.

右側の領域DRの上部には、バックアップを実行するタイミングを予め設定するためのボックスB1が表示されている。ボックスB1を使用することによって、ユーザは、「指定された時刻」、「工作機械の電源オン時」、及び、「工作機械の電源オフ時」の少なくとも1つを選択することができる。「指定された時刻」が選択された場合には、ユーザは、例えば、毎日の決まった時刻、又は、毎週の決まった曜日の決まった時刻等を指定することができる。   A box B1 for setting a backup execution timing in advance is displayed above the right area DR. By using the box B1, the user can select at least one of “designated time”, “when the machine tool is turned on”, and “when the machine tool is turned off”. When “specified time” is selected, the user can specify, for example, a fixed time every day, a fixed time on a fixed day of every week, and the like.

右側の領域DRにおいてボックスB1の下方には、バックアップされるデータの名前(例えば、バックアップされるデータが格納されるフォルダ名)を指定するためのボックスB2が表示されている。例えば、ボックスB2に何も指定しない場合には、バックアップが実行される年月日及び時刻がフォルダ名に指定されてもよい。また、例えば、既に外部記憶装置7(又は、第2の記憶装置)に存在するフォルダ名がボックスB2に指定されてもよい。   Below the box B1 in the right area DR, a box B2 for designating the name of the data to be backed up (for example, the name of the folder in which the data to be backed up is stored) is displayed. For example, when nothing is specified in the box B2, the date and time when the backup is executed may be specified in the folder name. Further, for example, a folder name already existing in the external storage device 7 (or the second storage device) may be designated in the box B2.

右側の領域DRにおいてボックスB2の下方には、バックアップされるデータのパスを指定するためのボックスB3が表示されている。ボックスB3を使用することによって、ユーザは、外部記憶装置7(又は、第2の記憶装置)内でバックアップされるデータの保存場所を指定することができる。   Below the box B2 in the area DR on the right side, a box B3 for designating a path of data to be backed up is displayed. By using the box B3, the user can specify the storage location of the data to be backed up in the external storage device 7 (or the second storage device).

右側の領域DRにおいてボックスB3の下方には、バックアップ項目の複数のボタンBDが列挙されている。例えば、ユーザは、各項目のボタンBDを押すことによって、バックアップされる項目を選択することができる。また、例えば、ユーザは、全選択ボタンBT1を押すことによって、全ての項目を選択してもよい。代替的に、図3の画像が表示されたときに、全ての項目が予め選択されていてもよい。この場合、ユーザは、各項目のボタンを押すことによって、バックアップしない項目を選択解除することができ、また、全選択ボタンBT1を押すことによって、全ての項目を選択解除することができる。   Below the box B3 in the right area DR, a plurality of buttons BD of backup items are listed. For example, the user can select an item to be backed up by pressing a button BD of each item. Further, for example, the user may select all the items by pressing the all selection button BT1. Alternatively, when the image of FIG. 3 is displayed, all the items may be selected in advance. In this case, the user can deselect items not to be backed up by pressing the button of each item, and can deselect all items by pressing the select all button BT1.

図3に示されるように、バックアップ項目は、例えば、NCプログラム、加工条件グループ、ワークオフセット、マクロ変数、マクロプログラム、機械パラメータ、NCパラメータ、PLCラダー、機能操作、カスタムビュー、及び、外部処理呼び出し等を含むことができる。バックアップされるデータには、他の項目が含まれてもよい。   As shown in FIG. 3, the backup items include, for example, NC programs, machining condition groups, work offsets, macro variables, macro programs, machine parameters, NC parameters, PLC ladders, function operations, custom views, and external processing calls. Etc. can be included. The data to be backed up may include other items.

加工条件グループは、加工条件に関する値であり、例えば、工作機械1が放電加工機である場合、加工条件グループは、電流、電圧、オンタイム、オフタイム等を含むことができ、工作機械1がレーザ加工機である場合、加工条件グループは、レーザ出力値及びパルス周波数等を含むことができ、工作機械1がマシニングセンタ、NCフライス盤、NC旋盤、NC研削盤等の機械加工機である場合、加工条件グループは、工具のタイプ及びオフセット量等を含むことができる。ワークオフセットは、加工されるワークに固有の座標系であり、例えばCAD(Computer Aided Designing)又はCAM(Computer Aided Manufacturing)等で設定可能である。機械パラメータは、機械に固有な固定パラメータであり、例えば、工作機械1におけるソフトリミット等を含むことができる。NCパラメータは、NCプログラムで使用されるパラメータである。PLCラダーは、シーケンス制御を実行するために使用されるプログラムである。機能操作は、表示部41に表示される機能操作ボタンを使用するために必要なプログラムを含むことができる。カスタムビューは、工作機械1におけるモニタリングのためのプログラムを含むことができる。外部処理呼び出しは、外部機器と通信するために必要なプログラムを含むことができる。以上で説明されていないデータ項目を含め、これらのデータ項目は、当業者にはよく知られていることに留意されたい。   The machining condition group is a value related to the machining condition. For example, when the machine tool 1 is an electric discharge machine, the machining condition group can include current, voltage, on time, off time, and the like. In the case of a laser processing machine, the processing condition group can include a laser output value, a pulse frequency, and the like. If the machine tool 1 is a machine processing machine such as a machining center, an NC milling machine, an NC lathe, and an NC grinding machine, the processing is performed. The condition group can include a type of the tool, an offset amount, and the like. The work offset is a coordinate system unique to the work to be processed, and can be set by, for example, CAD (Computer Aided Designing) or CAM (Computer Aided Manufacturing). The machine parameter is a fixed parameter unique to the machine, and can include, for example, a soft limit or the like in the machine tool 1. The NC parameter is a parameter used in the NC program. The PLC ladder is a program used to execute sequence control. The function operation can include a program necessary for using the function operation buttons displayed on the display unit 41. The custom view can include a program for monitoring in the machine tool 1. The external processing call can include a program necessary for communicating with the external device. It should be noted that these data items, including those not described above, are well known to those skilled in the art.

右側の領域DRにおいてボタンBDの下方には、上記の設定にしたがってバックアップを開始するための開始ボタンBT2が表示されている。開始ボタンBT2が押されることによって、ボックスB1で設定されたタイミングにバックアップが開始される。   A start button BT2 for starting backup in accordance with the above setting is displayed below the button BD in the right area DR. When the start button BT2 is pressed, the backup is started at the timing set in the box B1.

続いて、リストアの設定に関する画像について説明する。図4は、操作盤に表示される権限の選択に関する画像の一例であり、図5は、操作盤に表示されるリストアの設定に関する画像の一例である。例えば、図2において右側の領域DRの「リストア」ボタンが押されると、図4に示される画面が表示される。   Next, an image related to restore settings will be described. FIG. 4 is an example of an image related to selection of authority displayed on the operation panel, and FIG. 5 is an example of an image related to restore settings displayed on the operation panel. For example, when the “Restore” button in the right area DR in FIG. 2 is pressed, the screen shown in FIG. 4 is displayed.

ユーザは、ユーザの権限に応じて、ボタンBT3,BT4,BT5のいずれかを押す。ボタンBT3は、リストアできるデータ項目が最も制限されている権限を示し、例えば工作機械1の作業者によって押され得る。ボタンBT4は、リストアできるデータ項目のいくつが制限されている権限を示し、例えば工作機械1の保守者(例えば、工作機械保守会社からの保守者)によって押され得る。ボタンBT5は、全てのデータをリストアすることができる権限を示し、例えば工作機械1の管理者(例えば、工作機械1を使用する会社の工作機械1の管理に関する責任者)によって押され得る。   The user presses one of the buttons BT3, BT4, BT5 according to the authority of the user. The button BT3 indicates the authority with which the data items that can be restored are most restricted, and can be pressed, for example, by the operator of the machine tool 1. The button BT4 indicates the authority for restricting how many of the data items that can be restored, and can be pressed, for example, by a maintainer of the machine tool 1 (for example, a maintainer from a machine tool maintenance company). The button BT5 indicates the authority to restore all data, and can be pressed, for example, by an administrator of the machine tool 1 (for example, a person responsible for managing the machine tool 1 of a company that uses the machine tool 1).

ボタンBT3,BT4,BT5のいずれかが押されると、機械制御装置5は、パスワードを入力するための画面(不図示)を操作盤4の表示部41(図1参照)に表示することができる。各権限に対応するパスワードが、例えばデータ記憶装置6に記憶されていることができる。操作部42を通じてユーザから入力されたパスワードが、記憶されているパスワードに対応する場合、機械制御装置5は、図5に示される画像を表示することができる。   When any one of the buttons BT3, BT4, and BT5 is pressed, the machine control device 5 can display a screen (not shown) for inputting a password on the display unit 41 (see FIG. 1) of the operation panel 4. . A password corresponding to each authority can be stored in the data storage device 6, for example. When the password input by the user through the operation unit 42 corresponds to the stored password, the machine control device 5 can display the image shown in FIG.

左側の領域DLには、既に外部記憶装置7(又は、第2の記憶装置)にバックアップされているデータが格納されたフォルダが表示されている。ユーザは、チェックボックスにチェックを入れることによって、表示されているフォルダの中から、ユーザがリストアしたいデータが格納されているフォルダを選択することができる。   In the left area DL, a folder in which data that has already been backed up in the external storage device 7 (or the second storage device) is displayed. By checking the check box, the user can select a folder storing data that the user wants to restore from the displayed folders.

右側の領域DRの上部には、ユーザがリストアしたい外部記憶装置7(又は、第2の記憶装置)内のバックアップデータ名(又は、バックアップデータが格納されたフォルダ名)を指定するためのボックスB4が表示されている。ユーザは、上記のように、左側の領域DLに表示されているフォルダのチェックボックスにチェックを入れることによってフォルダ名を指定してもよく、又は、ボックスB4に直接的にフォルダ名を入力してもよい。   A box B4 for designating a backup data name (or a folder name in which the backup data is stored) in the external storage device 7 (or the second storage device) that the user wants to restore is provided above the right region DR. Is displayed. The user may specify the folder name by checking the check box of the folder displayed in the left area DL as described above, or may input the folder name directly into the box B4. Is also good.

右側の領域DRにおいてボックスB4の下方には、リストア項目の複数のボタンRDが列挙されている。ボタンRDは、操作部42を通じて入力されたパスワードに対応する権限に応じて、表示されている。例えば、図5の例は、ボタンBT4(保守者用のボタン)(図4参照)が押されて、対応するパスワードが入力されたときの画像を示している。図5のリストア項目のボタンRDと、図3のバックアップ項目のボタンBDと、を比較すると、図5では、「マクロ変数」が表示されていない。「マクロ変数」は、管理者には必要であり得るが保守者には必要でないため、保守者がリストアできるデータ項目からは除外されている。   Below the box B4 in the right area DR, a plurality of buttons RD for restore items are listed. The button RD is displayed according to the authority corresponding to the password input through the operation unit 42. For example, the example in FIG. 5 shows an image when the button BT4 (button for maintenance person) (see FIG. 4) is pressed and the corresponding password is input. Comparing the restore item button RD in FIG. 5 with the backup item button BD in FIG. 3, “macro variable” is not displayed in FIG. "Macro variables" are excluded from data items that can be restored by the maintainer because they may be necessary for the administrator but not required for the maintainer.

例えば、ユーザは、各項目のボタンRDを押すことによって、表示されているデータ項目の中から、リストアされる項目を選択することができる。また、例えば、ユーザは、全選択ボタンBT6を押すことによって、全ての項目を選択してもよい。代替的に、図5の画像が表示されたときに、全ての項目が予め選択されていてもよい。この場合、ユーザは、各項目のボタンを押すことによって、リストアしない項目を選択解除することができ、また、全選択ボタンBT6を押すことによって、全ての項目を選択解除することができる。
For example, by pressing the button RD of each item, the user can select an item to be restored from the displayed data items. Further, for example, the user may select all items by pressing the all select button BT6. Alternatively, when the image of FIG. 5 is displayed, all the items may be selected in advance. In this case, the user can deselect items not to be restored by pressing the button of each item, and can deselect all items by pressing the select all button BT6.

右側の領域DRの下部には、上記の設定にしたがってリストアを開始するための開始ボタンBT7が表示されている。開始ボタンBT7が押されることによって、リストアが開始される。   A start button BT7 for starting restoration according to the above settings is displayed below the right area DR. When the start button BT7 is pressed, the restoration is started.

リストアは、初回のバックアップ時のバックアップデータと、2回目以降のバックアップ時の差分データとを用い、これによって、指定されたバックアップデータ名のバックアップ時にデータ記憶装置6内に保存されていたデータを復元することができる。   The restoration uses the backup data at the time of the first backup and the differential data at the time of the second and subsequent backups, thereby restoring the data stored in the data storage device 6 at the time of the backup with the specified backup data name. can do.

次に、制御装置2の動作について説明する。先ず、バックアップの動作について説明する。図6は、制御装置のバックアップの動作を示すフローチャートである。   Next, the operation of the control device 2 will be described. First, the backup operation will be described. FIG. 6 is a flowchart illustrating the backup operation of the control device.

バックアップ処理部53は、上記のバックアップの開始ボタンBT2(図3参照)が押されることによって、図6に示されるように、バックアップ実施タイミングを読み込む(ステップS100)。続いて、バックアップ処理部53は、現在の時刻がバックアップ開始時刻になったか否かを判定する(ステップS102)。ステップS102において現在の時刻がバックアップ開始時刻になっていないと判定された場合、バックアップ処理部53は、ステップS102を例えば所定の時間後に再び実行する。   When the backup start button BT2 (see FIG. 3) is pressed, the backup processing unit 53 reads the backup execution timing as shown in FIG. 6 (step S100). Subsequently, the backup processing unit 53 determines whether the current time has reached the backup start time (Step S102). If it is determined in step S102 that the current time is not the backup start time, the backup processing unit 53 executes step S102 again after a predetermined time, for example.

ステップS102において現在の時刻がバックアップ開始時刻になったと判定された場合、バックアップ処理部53は、セキュリティスイッチ8の接続禁止指令が出ているか否かを判定する(ステップS104)。ステップS104においてセキュリティスイッチ8の接続禁止指令が出ていると判定された場合、バックアップ処理部53は、バックアップを実行せずに一連の動作を終了する。   If it is determined in step S102 that the current time has reached the backup start time, the backup processing unit 53 determines whether a connection prohibition command for the security switch 8 has been issued (step S104). If it is determined in step S104 that the connection prohibition command for the security switch 8 has been issued, the backup processing unit 53 terminates a series of operations without executing backup.

ステップS104においてセキュリティスイッチ8の接続禁止指令が出ていないと判定された場合、バックアップ処理部53は、セキュリティスイッチ8を接続する(ステップS106)。続いて、バックアップ処理部53は、今回が初回のバックアップであるか否かを判定する(ステップS108)。ステップS108において今回が初回のバックアップであると判定された場合、バックアップ処理部53は、フルバックアップを実行する(ステップS110)。続いて、バックアップ処理部53は、セキュリティスイッチ8を切り離し(ステップS112)、一連の動作を終了する。   When it is determined in step S104 that the connection prohibition command for the security switch 8 has not been issued, the backup processing unit 53 connects the security switch 8 (step S106). Next, the backup processing unit 53 determines whether or not this time is the first backup (Step S108). If it is determined in step S108 that this time is the first backup, the backup processing unit 53 executes a full backup (step S110). Subsequently, the backup processing unit 53 disconnects the security switch 8 (Step S112), and ends a series of operations.

ステップS108において今回が初回のバックアップではないと判定された場合、バックアップ処理部53は、差分バックアップを実行する(ステップS114)。続いて、バックアップ処理部53は、セキュリティスイッチ8を切り離し(ステップS112)、一連の動作を終了する。   If it is determined in step S108 that this time is not the first backup, the backup processing unit 53 executes a differential backup (step S114). Subsequently, the backup processing unit 53 disconnects the security switch 8 (Step S112), and ends a series of operations.

続いて、リストアの動作について説明する。図7は、制御装置のリストアの動作を示すフローチャートである。   Next, the restore operation will be described. FIG. 7 is a flowchart illustrating a restore operation of the control device.

リストア処理部54は、上記のボタンBT3,BT4,BT5(図4参照)のいずれかが押されることによって、図7に示されるように、リストアの権限を読み込む(ステップS200)。続いて、リストア処理部54は、操作部42を通じて入力されたパスワードが正しいか否かを判定する(ステップS202)。ステップS202においてパスワードが正しくないと判定された場合、リストア処理部54は、ステップS200〜ステップS202を再び実行する。   When any of the buttons BT3, BT4, and BT5 (see FIG. 4) is pressed, the restore processing unit 54 reads the authority of the restore as shown in FIG. 7 (step S200). Next, the restore processing unit 54 determines whether the password input through the operation unit 42 is correct (Step S202). If it is determined in step S202 that the password is incorrect, the restore processing unit 54 executes steps S200 to S202 again.

ステップS202においてパスワードが正しいと判定された場合、リストア処理部54は、権限に応じたリストア項目を表示する(ステップS204)。続いて、リストア処理部54は、指定されたリストア項目及びバックアップデータのファイル名を認識する(ステップS206)。続いて、リストア処理部54は、セキュリティスイッチ8の接続禁止指令が出ているか否かを判定する(ステップS208)。ステップS208においてセキュリティスイッチ8の接続禁止指令が出ていると判定された場合、リストア処理部54は、リストアを実行せずに一連の動作を終了する。   When it is determined in step S202 that the password is correct, the restore processing unit 54 displays a restore item according to the authority (step S204). Next, the restore processing unit 54 recognizes the designated restore item and the file name of the backup data (Step S206). Subsequently, the restore processing unit 54 determines whether a connection prohibition command for the security switch 8 has been issued (step S208). When it is determined in step S208 that the connection prohibition command for the security switch 8 has been issued, the restore processing unit 54 ends the series of operations without executing the restore.

ステップS208においてセキュリティスイッチ8の接続禁止指令が出ていないと判定された場合、リストア処理部54は、セキュリティスイッチ8を接続する(ステップS210)。続いて、リストア処理部54は、外部記憶装置7内のバックアップデータをデータ記憶装置6にリストアする(ステップS212)。続いて、リストア処理部54は、セキュリティスイッチ8を切離し(ステップS214)、一連の動作を終了する。   When it is determined in step S208 that the connection prohibition command for the security switch 8 has not been issued, the restore processing unit 54 connects the security switch 8 (step S210). Subsequently, the restore processing unit 54 restores the backup data in the external storage device 7 to the data storage device 6 (Step S212). Subsequently, the restore processing unit 54 disconnects the security switch 8 (Step S214), and ends a series of operations.

以上のような本実施形態に係る工作機械1の制御装置2は、データ記憶装置6に加えて、外部記憶装置7を備えており、この外部記憶装置7は、セキュリティスイッチ8を介して機械制御装置5に接続されている。そして、予め設定されたタイミングでセキュリティスイッチ8が接続され、ひとたびデータが外部記憶装置7にバックアップされるとセキュリティスイッチ8は切離される。このような構成によれば、予め設定されたタイミングでデータが自動的にバックアップされ、かつ、バックアップ時以外にはセキュリティスイッチ8は切り離されている。したがって、データ記憶装置6内のデータを自動的に高いセキュリティでバックアップできる。同様に、制御装置2では、データのリストアが指令されたときにセキュリティスイッチ8が接続され、ひとたび外部記憶装置7からデータがリストアされるとセキュリティスイッチ8は切離される。このような構成によれば、リストア時以外には、セキュリティスイッチ8は切り離されている。したがって、データの復元時には高いセキュリティでデータをリストアできる。   The control device 2 of the machine tool 1 according to the present embodiment as described above includes an external storage device 7 in addition to the data storage device 6, and the external storage device 7 controls the machine via a security switch 8. It is connected to the device 5. Then, the security switch 8 is connected at a preset timing, and once the data is backed up to the external storage device 7, the security switch 8 is disconnected. According to such a configuration, data is automatically backed up at a preset timing, and the security switch 8 is disconnected except at the time of backup. Therefore, data in the data storage device 6 can be automatically backed up with high security. Similarly, in the control device 2, the security switch 8 is connected when data restoration is instructed, and once the data is restored from the external storage device 7, the security switch 8 is disconnected. According to such a configuration, the security switch 8 is disconnected except during restoration. Therefore, when restoring data, the data can be restored with high security.

また、本実施形態に係る制御装置2では、リストア処理部54は、操作盤4からリストアを指令した人の権限に応じて、予め決められたデータをリストアする。例えば、リストアを指令した人が工作機械1の作業者である場合、いくつかの情報は必要でない可能性がある。このような必要でない情報が表示部41に表示された場合、作業者は困惑する可能性がある。本実施形態の構成によれば、リストアを指令した人の権限に応じて予め決められたデータがリストアされるので、適切なデータのみをリストアすることができる。   In the control device 2 according to the present embodiment, the restore processing unit 54 restores predetermined data in accordance with the authority of the person who issued the restore command from the operation panel 4. For example, when the person who instructed the restoration is the operator of the machine tool 1, some information may not be necessary. When such unnecessary information is displayed on the display unit 41, the operator may be confused. According to the configuration of the present embodiment, since predetermined data is restored according to the authority of the person who instructed restoration, only appropriate data can be restored.

また、本実施形態に係る制御装置2では、予め設定されたタイミングは、指定された時刻、工作機械の電源オン時、及び、工作機械の電源オフ時の少なくとも1つを含んでいる。これらのタイミングの1つ又は複数でバックアップを行うことで、バックアップデータを新しいものに維持することができる。   In the control device 2 according to the present embodiment, the preset timing includes at least one of a designated time, a time when the power of the machine tool is turned on, and a time when the power of the machine tool is turned off. By performing backup at one or more of these timings, the backup data can be kept new.

また、本実施形態に係るシステム100は、工作機械1と、制御装置2であって、NC装置3と、操作盤4と、機械制御装置5と、第1の記憶装置6と、を有する、制御装置2と、を備え、当該システム100は、制御装置2内の外部記憶装置7及び制御装置2外の外部サーバ(ユーザLANサーバ101、クラウドサーバ102、工作機械保守会社のサーバ103)の少なくとも1つを含む、第2の記憶装置を更に備えており、機械制御装置5は、接続及び切離し可能なセキュリティスイッチ8を介して第2の記憶装置に接続されており、機械制御装置5は、予め設定されたタイミングでセキュリティスイッチ8を接続し、第1の記憶装置6のデータを第2の記憶装置にバックアップし、且つ、バックアップ後にセキュリティスイッチ8を切離しする、バックアップ処理部53と、操作盤4からデータのリストアが指令されたときにセキュリティスイッチ8を接続し、第2の記憶装置から第1の記憶装置6へデータをリストアし、且つ、リストア後にセキュリティスイッチ8を切離しする、リストア処理部54と、を有している。システム100では、データ記憶装置6内のデータを自動的に高いセキュリティで制御装置2内の外部記憶装置7及び制御装置2外の外部サーバの少なくとも1つにバックアップでき、かつ、データの復元時には高いセキュリティでデータをリストアできる。   Further, the system 100 according to the present embodiment is a machine tool 1 and a control device 2, which includes an NC device 3, an operation panel 4, a machine control device 5, and a first storage device 6. The system 100 includes at least an external storage device 7 in the control device 2 and an external server (user LAN server 101, cloud server 102, machine tool maintenance company server 103) outside the control device 2. Further comprising a second storage device, including one, wherein the machine control device 5 is connected to the second storage device via a connectable and disconnectable security switch 8; The security switch 8 is connected at a preset timing, the data in the first storage device 6 is backed up to the second storage device, and the security switch 8 is turned on after the backup. The backup processing unit 53 and the security switch 8 are connected when data restoration is instructed from the operation panel 4, and the data is restored from the second storage device to the first storage device 6 and restored. And a restore processing unit 54 that disconnects the security switch 8 later. In the system 100, the data in the data storage device 6 can be automatically backed up to at least one of the external storage device 7 in the control device 2 and the external server outside the control device 2 with high security, and the data is high when data is restored. Data can be restored with security.

工作機械1の設置された工場現場において、決められたタイミングでオペレータの介入がなくても、自動的に、確実にデータのバックアップが行われ、機械の不具合や故障などのまさかの時に備えることができる。例えば、制御装置2や周辺装置のどこかに不具合、故障が発生し、機器を交換後、リストア作業を行うことで、工作機械1を設置した加工現場において、短時間で不具合、故障発生前の状態に戻すことができる。   At the factory site where the machine tool 1 is installed, the data is automatically and reliably backed up at a predetermined timing without the intervention of an operator, and it is possible to prepare for an emergency such as a malfunction or failure of the machine. . For example, a defect or failure occurs somewhere in the control device 2 or a peripheral device, and after performing a device replacement, a restore operation is performed. You can return to the state.

また、過去に実施した加工のNCプログラムや加工条件がデータ記憶装置6に存在しない場合、操作盤4の表示部41の指示に従ってリストア作業を行うことで、過去に実施した加工と同じ形状、精度の加工を容易に再現することができる。   When the NC program and the processing conditions of the processing performed in the past do not exist in the data storage device 6, the restore operation is performed according to the instruction of the display unit 41 of the operation panel 4, thereby obtaining the same shape and accuracy as the processing performed in the past. Can be easily reproduced.

ユーザLANサーバ101を介して工作機械1を設置している工場の生産管理システムで、各工作機械1のデータのバックアップ、リストアの管理を行うことができる。また、クラウドサーバ102を介して社外の外部記憶装置にデータのバックアップができ、火災などの災害に強いデータの保護が行える。更に、工作機械保守会社のサーバ103を介して遠隔操作による工作機械データのバックアップ、リストアを行うことにより、専門家により最短、最小限の工数で機械を復旧させることが可能になる。   With the production management system of the factory where the machine tool 1 is installed via the user LAN server 101, it is possible to manage the backup and restoration of the data of each machine tool 1. In addition, data can be backed up to an external storage device outside the company via the cloud server 102, and data resistant to disasters such as fire can be protected. Further, by backing up and restoring machine tool data by remote control via the server 103 of the machine tool maintenance company, it becomes possible for an expert to restore the machine with the shortest and minimum man-hours.

工作機械の制御装置の実施形態について説明したが、本発明は上記の実施形態に限定されない。当業者であれば、上記の実施形態の様々な変形が可能であることを理解するだろう。また、当業者であれば、1つの実施形態に含まれる特徴は、矛盾が生じない限り、他の実施形態に組み込むことができる、又は、他の実施形態に含まれる特徴と交換可能であることを理解するだろう。   Although the embodiment of the control device of the machine tool has been described, the present invention is not limited to the above embodiment. One skilled in the art will appreciate that various modifications of the above-described embodiments are possible. In addition, those skilled in the art should be able to incorporate features included in one embodiment into another embodiment or replace features included in another embodiment, as long as no inconsistency arises. Will understand.

1 工作機械
2 制御装置
3 NC装置
4 操作盤
5 機械制御装置
6 データ記憶装置
7 外部記憶装置
8 セキュリティスイッチ
41 表示部
42 操作部
53 バックアップ処理部
54 リストア処理部
REFERENCE SIGNS LIST 1 machine tool 2 control device 3 NC device 4 operation panel 5 machine control device 6 data storage device 7 external storage device 8 security switch 41 display unit 42 operation unit 53 backup processing unit 54 restore processing unit

Claims (3)

NCプログラムによって工作機械の動作を制御する、工作機械の制御装置において、
前記NCプログラムを読み取り、前記工作機械の送り装置をサーボ制御する、NC装置と、
表示部及び操作部を有する操作盤であって、前記工作機械を運転させるための指令を受け付けて、前記指令に基づいた運転信号を送信するように構成された、操作盤と、
前記NCプログラム又は前記操作盤からの前記運転信号に応じて、前記工作機械のシーケンス制御を実行する、機械制御装置と、
前記NC装置に入力される前記NCプログラム及びNCパラメータのデータ、並びに、前記機械制御装置が使用するシーケンス制御プログラム及び機械パラメータのデータを記憶する、データ記憶装置と、
前記機械制御装置との通信を接続及び切離し可能なスイッチを介して、前記機械制御装置に接続される、外部記憶装置と、
を備え、
前記操作盤は、任意のバックアップ項目を予め選択するための複数のバックアップ項目ボタンと、バックアップのタイミングを予め設定するためのボックスと、前記ボックスで設定されたタイミングにバックアップを開始させるための開始ボタンと、を表示するように構成されており、
前記機械制御装置は、
前記操作盤の前記ボックスにおいて予め設定されたタイミングで前記スイッチを接続し、前記データ記憶装置のデータのなかから前記操作盤の前記バックアップ項目ボタンにおいて予め選択されたバックアップ項目を前記外部記憶装置にバックアップし、且つ、バックアップ後に前記スイッチを切離しする、バックアップ処理部と、
前記操作盤からデータのリストアが指令されたときに前記スイッチを接続し、前記外部記憶装置から前記データ記憶装置へデータをリストアし、且つ、リストア後に前記スイッチを切離しする、リストア処理部と、
を有することを特徴とした工作機械の制御装置。
In a machine tool control device that controls the operation of a machine tool by an NC program,
An NC device that reads the NC program and servo-controls a feed device of the machine tool;
An operation panel having a display unit and an operation unit, configured to receive a command for operating the machine tool and to transmit an operation signal based on the command,
A machine control device that executes sequence control of the machine tool according to the NC program or the operation signal from the operation panel;
A data storage device that stores the NC program and NC parameter data input to the NC device, and a sequence control program and machine parameter data used by the machine control device;
Via a switch capable of connecting and disconnecting communication with the machine control device, connected to the machine control device, an external storage device,
With
The operation panel includes a plurality of backup item buttons for selecting an arbitrary backup item in advance, a box for setting backup timing in advance, and a start button for starting backup at the timing set in the box. And is configured to display
The machine control device includes:
The switch is connected at a preset timing in the box of the operation panel, and a backup item selected in advance in the backup item button of the operation panel is backed up from the data of the data storage device to the external storage device. And a backup processing unit that disconnects the switch after the backup,
A restore processing unit that connects the switch when data restoration is instructed from the operation panel, restores data from the external storage device to the data storage device, and disconnects the switch after the restoration,
A control device for a machine tool, comprising:
前記リストア処理部は、前記操作盤からリストアを指令した人の権限に応じて、予め決められたデータをリストアする、請求項1に記載の工作機械の制御装置。   The control device for a machine tool according to claim 1, wherein the restore processing unit restores predetermined data according to the authority of a person who instructed the restore from the operation panel. 前記予め設定されたタイミングは、指定された時刻、工作機械の電源オン時、及び、工作機械の電源オフ時の少なくとも1つを含む、請求項1に記載の工作機械の制御装置。   The control device for a machine tool according to claim 1, wherein the preset timing includes at least one of a designated time, a time when a machine tool is turned on, and a time when a machine tool is turned off.
JP2018141331A 2018-07-27 2018-07-27 Machine tool control device Active JP6656320B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018141331A JP6656320B2 (en) 2018-07-27 2018-07-27 Machine tool control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018141331A JP6656320B2 (en) 2018-07-27 2018-07-27 Machine tool control device

Publications (2)

Publication Number Publication Date
JP2020017192A JP2020017192A (en) 2020-01-30
JP6656320B2 true JP6656320B2 (en) 2020-03-04

Family

ID=69581555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018141331A Active JP6656320B2 (en) 2018-07-27 2018-07-27 Machine tool control device

Country Status (1)

Country Link
JP (1) JP6656320B2 (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003288277A (en) * 2001-08-03 2003-10-10 Matsushita Electric Ind Co Ltd Backup/restoration system and right management server
JP3994090B2 (en) * 2004-01-29 2007-10-17 ファナック株式会社 Numerical controller
JP4028857B2 (en) * 2004-05-17 2007-12-26 ファナック株式会社 Numerical controller
JP4097649B2 (en) * 2004-12-09 2008-06-11 ファナック株式会社 Numerical controller
JP2006260128A (en) * 2005-03-17 2006-09-28 Murata Mach Ltd Machine tool control device
JP2008235951A (en) * 2005-06-28 2008-10-02 Movell Software:Kk Backup of mobile user data using difference method
JP2007018465A (en) * 2005-07-04 2007-01-25 Hiromochi Tsuji Information processing apparatus for internet communication
JP2009020748A (en) * 2007-07-12 2009-01-29 Hitachi Ltd Equipment management apparatus, equipment management method and equipment management program
JP4564044B2 (en) * 2007-12-27 2010-10-20 株式会社日立製作所 Electronic equipment service system
JP2010015316A (en) * 2008-07-02 2010-01-21 Okuma Corp Numerical control apparatus
US8489210B2 (en) * 2009-03-24 2013-07-16 Rockwell Automation Technologies, Inc. Electronic operator interface based controller and device automatic downloads
JP2011090550A (en) * 2009-10-23 2011-05-06 Hitachi Ltd Computer system and program recording medium
JP6310914B2 (en) * 2013-07-16 2018-04-11 Mame・Design株式会社 Backup control apparatus and backup control method
JP2016195300A (en) * 2015-03-31 2016-11-17 三菱重工メカトロシステムズ株式会社 Remote monitoring system of disaster prevention infrastructure and remote monitoring method of disaster prevention infrastructure

Also Published As

Publication number Publication date
JP2020017192A (en) 2020-01-30

Similar Documents

Publication Publication Date Title
TWI475402B (en) Remote backup system and remote backup method thereof
US7480779B2 (en) Storage system, data restoring method, and data access method
EP3709149B1 (en) Off-board flash memory
EP3493090B1 (en) Control method and unit of mobile storage devices, and storage medium
KR101107446B1 (en) Information processing system and method for starting/recovering the system
CN100367225C (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image and software failure
JP6139386B2 (en) Programmable controller
JP6656320B2 (en) Machine tool control device
US10824517B2 (en) Backup and recovery of configuration files in management device
TWI590012B (en) Control machine for distributed control system and distributed control basic module
CN110968456B (en) Method and device for processing fault disk in distributed storage system
GB2375198A (en) System for making automatic backup copies of computer files when a personal computer is switched off
JP7026089B2 (en) Security system and computer programs
JP6310914B2 (en) Backup control apparatus and backup control method
WO2020003299A1 (en) Data backup system and method
WO2022004544A1 (en) Control device
US11564323B2 (en) Case opening recording apparatus and case opening recording system that record whether or not case is removed from circuit board
JP6344377B2 (en) Information processing system and information processing method
WO2011055409A1 (en) Storage system and its file management method
JP2013258511A (en) Image forming apparatus, and back-up/restore method and program
JP3971754B2 (en) Numerical controller
JP2017117284A (en) Information processing system and information processing method
JP5812942B2 (en) Disaster recovery management system and disaster recovery management method
JP6376119B2 (en) Information processing apparatus and information processing method
JPH032957A (en) Starting process system for composite computer system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180727

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190816

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190827

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191016

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200204

R150 Certificate of patent or registration of utility model

Ref document number: 6656320

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150