JP2021047774A - Numerical control device for industrial machine - Google Patents
Numerical control device for industrial machine Download PDFInfo
- Publication number
- JP2021047774A JP2021047774A JP2019171228A JP2019171228A JP2021047774A JP 2021047774 A JP2021047774 A JP 2021047774A JP 2019171228 A JP2019171228 A JP 2019171228A JP 2019171228 A JP2019171228 A JP 2019171228A JP 2021047774 A JP2021047774 A JP 2021047774A
- Authority
- JP
- Japan
- Prior art keywords
- error
- data
- unit
- code
- numerical control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims abstract description 36
- 238000000034 method Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000004044 response Effects 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000001746 injection moulding Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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
- G05B19/406—Numerical 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 characterised by monitoring or safety
- G05B19/4063—Monitoring general control system
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
Abstract
Description
本発明は、産業機械の数値制御装置に関する。 The present invention relates to a numerical control device for an industrial machine.
従来、数値制御装置のプログラムの多くはPC(パーソナルコンピュータ)上で作成されている。PC上で作成したプログラムは、数値制御装置のメモリに展開される。数値制御装置は、メモリに展開したプログラムを解析し、産業機械を稼働する。例えば、特許文献1参照。
Conventionally, most programs of numerical control devices are created on a PC (personal computer). The program created on the PC is expanded in the memory of the numerical control device. The numerical control device analyzes the program expanded in the memory and operates the industrial machine. See, for example,
可搬記憶媒体としてUSB(Universal Sirial Bus)メモリが広く普及している。USBメモリは、軽量で、専用の読み取り装置が不要であり、ネットワークの影響も受けないため、汎用性が非常に高い。 USB (Universal Sirial Bus) memory is widely used as a portable storage medium. USB memory is extremely versatile because it is lightweight, does not require a dedicated reading device, and is not affected by the network.
しかしながら、数値制御装置用の可搬記憶媒体としてUSBメモリよりもCFカードが推奨されている。CFカードは、フラッシュメモリと、フラッシュメモリに記憶した内容を入出力する端子とを備えたカード型の可搬記憶媒体である。CFカードに記録されたデータを利用するためには、CFカードの種類に適合した専用のスロットが必要である。適合したスロットがPCに存在しない場合には、外付けのカードリーダが必要となる。 However, a CF card is recommended over a USB memory as a portable storage medium for a numerical control device. The CF card is a card-type portable storage medium including a flash memory and terminals for inputting / outputting the contents stored in the flash memory. In order to use the data recorded on the CF card, a dedicated slot suitable for the type of CF card is required. If the matching slot does not exist on the PC, an external card reader will be required.
上述したように、USBは汎用性の高い可搬記憶媒体である。そのため、PCで作成したプログラムをUSBに記憶し、USBに記憶したプログラムを数値制御装置で読み出して産業機械の運転に利用できれば利便性がよい。 As described above, USB is a highly versatile portable storage medium. Therefore, it is convenient if the program created by the PC can be stored in the USB and the program stored in the USB can be read out by the numerical control device and used for the operation of the industrial machine.
USBメモリの端子を差込口に挿入した際、USBメモリの端子はコネクタに固定されるが、USBメモリの本体は外部に露出しているため、数値制御装置や産業機械などの機械振動の影響を受け易い。USBメモリに記憶されたデータを読み書きしている最中に、機械振動が原因でUSBメモリがコネクタから脱落してデータ欠損が発生することもある。発生振動によるデータ欠損を防止するため、USBメモリに記憶したプログラムを直接産業機械の運転に利用することは制限されている。 When the USB memory terminal is inserted into the outlet, the USB memory terminal is fixed to the connector, but since the main body of the USB memory is exposed to the outside, it is affected by mechanical vibrations of numerical control devices and industrial machines. Easy to receive. While reading and writing the data stored in the USB memory, the USB memory may drop out from the connector due to mechanical vibration, resulting in data loss. In order to prevent data loss due to generated vibration, it is restricted to directly use the program stored in the USB memory for the operation of the industrial machine.
また、工場などの環境では、振動などの外乱が発生するため、USBメモリ以外の可搬記憶媒体であっても、データの破損や損失が生じる恐れがある。万が一、破損や損失が生じたとしても、事前に対策を講じればフェールセーフを確保することができる。 Further, in an environment such as a factory, disturbances such as vibration occur, so that even a portable storage medium other than a USB memory may cause data corruption or loss. Even if damage or loss occurs, fail-safe can be ensured by taking measures in advance.
数値制御装置の分野では、安全にデータを利用する技術が望まれている。 In the field of numerical control devices, a technique for safely using data is desired.
本開示の一態様の数値制御装置は、産業機械を制御する数値制御装置であって、前記産業機械の制御に関するデータを取得するデータ取得部と、前記産業機械の制御に関するデータに対して、誤り検出符号または誤り訂正符号の少なくとも一方を含む誤り符号を作成する符号作成部と、前記誤り符号を記憶する記憶部と、前記誤り符号を用いて前記データの誤りを検出する誤り検出部と、前記誤り検出部が前記データの誤りを検出した場合、前記誤りに対処する処理を行う誤り対応処理部と、を有する。 The numerical control device of one aspect of the present disclosure is a numerical control device that controls an industrial machine, and has an error with respect to a data acquisition unit that acquires data related to the control of the industrial machine and data related to the control of the industrial machine. A code creation unit that creates an error code including at least one of a detection code or an error correction code, a storage unit that stores the error code, an error detection unit that detects an error in the data using the error code, and the above. When the error detection unit detects an error in the data, it has an error handling processing unit that performs a process for dealing with the error.
本開示の一態様の数値制御システムは、産業機械を制御する制御システムであって、前記産業機械の制御に関するデータを取得するデータ取得部と、前記産業機械の制御に関するデータに対して、誤り検出符号または誤り訂正符号の少なくとも一方を含む誤り符号を作成する符号作成部と、前記誤り符号を記憶する記憶部と、前記誤り符号を用いて前記データの誤りを検出する検出部と、前記誤り検出部が誤りを検出した場合、前記誤りに対処する処理を行う誤り対応処理部と、を有する。 The numerical control system of one aspect of the present disclosure is a control system that controls an industrial machine, and is an error detection for a data acquisition unit that acquires data related to the control of the industrial machine and data related to the control of the industrial machine. A code creation unit that creates an error code including at least one of a code or an error correction code, a storage unit that stores the error code, a detection unit that detects an error in the data using the error code, and the error detection unit. When the unit detects an error, it has an error handling processing unit that performs processing for dealing with the error.
本発明の一態様によれば、USBメモリ上のプログラムを安全に利用することができる。 According to one aspect of the present invention, the program on the USB memory can be safely used.
以下、本開示の制御装置を数値制御装置100に実装した一実施形態を示す。なお、以下に示す各実施形態では数値制御装置100が制御する産業機械として工作機械を例として説明するが、ロボットや射出成形機等の他の産業機械を制御する制御装置に対して本明細書で説明する技術を適用することも可能である。
Hereinafter, an embodiment in which the control device of the present disclosure is mounted on the
図1は一実施形態による数値制御装置100のハードウェア構成図である。
本実施形態による数値制御装置100が備えるCPU111は、数値制御装置100を全体的に制御するプロセッサである。CPU111は、バス120を介してROM112に格納されたシステム・プログラムを読み出し、該システム・プログラムに従って数値制御装置100の全体を制御する。RAM113には一時的な計算データや表示データ、図示しない入力部を介してオペレータが入力した各種データ等が一時的に格納される。
FIG. 1 is a hardware configuration diagram of a
The
不揮発性メモリ114は、例えば図示しないバッテリでバックアップされるなどして、数値制御装置100の電源がオフされても記憶状態が保持されるメモリとして構成される。不揮発性メモリ114には、インタフェース115を介して外部機器72から読み込まれたプログラムや入力部30を介して入力されたプログラム、数値制御装置100の各部や工作機械等から取得された各種データ(例えば、工作機械から取得した設定パラメータ等)が記憶される。不揮発性メモリ114に記憶されたプログラムや各種データは、実行時/利用時にはRAM113に展開されても良い。また、ROM112には、公知の解析プログラムなどの各種のシステム・プログラムがあらかじめ書き込まれている。
The
インタフェース115は、数値制御装置100とアダプタ等の外部機器72と接続するためのインタフェースである。外部機器72側からはプログラムや各種パラメータ等が読み込まれる。また、数値制御装置100内で編集したプログラムや各種パラメータ等は、外部機器72を介して外部記憶手段に記憶させることができる。PMC(プログラマブル・マシン・コントローラ)116は、数値制御装置100に内蔵されたシーケンス・プログラムで工作機械やロボット、該工作機械や該ロボットに取り付けられたセンサ等のような装置との間でI/Oユニット117を介して信号の入出力を行い制御する。
The
表示部70には、メモリ上に読み込まれた各データ、プログラム等が実行された結果として得られたデータ等がインタフェース118を介して出力されて表示される。また、MDIや操作盤、タッチパネル等から構成される入力部30は、インタフェース119を介して、作業者による操作に基づく指令,データ等をCPU111に渡す。
The data read into the memory, the data obtained as a result of executing the program, etc. are output to the
工作機械の各軸を制御するための軸制御回路130はCPU111からの軸の移動指令量を受けて、軸の指令をサーボアンプ140に出力する。サーボアンプ140はこの指令を受けて、工作機械が備える軸を移動させるサーボモータ150を駆動する。軸のサーボモータ150は位置・速度検出器を内蔵し、この位置・速度検出器からの位置・速度フィードバック信号を軸制御回路130にフィードバックし、位置・速度のフィードバック制御を行う。
The
スピンドル制御回路160は、工作機械の主軸への主軸回転指令を受け、スピンドルアンプ161にスピンドル速度信号を出力する。スピンドルアンプ161はこのスピンドル速度信号を受けて、主軸のスピンドルモータ162を指令された回転速度で回転させ、工具を駆動する。スピンドルモータ162にはポジションコーダ163が結合され、ポジションコーダ163が主軸の回転に同期して帰還パルスを出力し、その帰還パルスはCPU111によって読み取られる。
The spindle control circuit 160 receives a spindle rotation command to the spindle of the machine tool and outputs a spindle speed signal to the
なお、本実施の形態では、数値制御装置の制御対象としてサーボモータとスピンドルモータとを備えた工作機械を例示しているが、放電加工機やロボットなど他の工作機械も含む。 In the present embodiment, a machine tool provided with a servomotor and a spindle motor is illustrated as a control target of the numerical control device, but other machine tools such as an electric discharge machine and a robot are also included.
図2は、本開示の一実施形態である数値制御装置100の要部ブロック図である。数値制御装置100は、ユーザからの運転開始指示入力を検知する開始指示検知部11と、可搬記憶媒体としてのUSBメモリを挿入するコネクタ12と、USBメモリに記憶したデータを読み取るUSBデータ取得部13と、所定のデータに対応する誤り検出符号(または誤り訂正符号)を作成する誤り符号作成部14と、USBメモリから読み取ったデータのコピーを作成するコピー作成部15と、USBメモリから読みだしたデータのコピーとそのデータの誤り符号とを記憶する記憶部16と、USBメモリから読み取ったプログラムに従い工作機械の運転を制御する運転制御部17と、記憶部16に記憶したプログラムの誤りに対処する誤り対応処理部20と、を備える。なお、本開示の説明では、データを工作機械のプログラムとして説明するが、データの種類はプログラムに限定されるわけでない。また、可搬記憶媒体の種類もUSBに限定するわけではなく、フラッシュメモリや外付けハードディスクなど、他の可搬記憶媒体でもよい。USBメモリ以外の可搬記憶媒体を使用する場合には、各可搬記憶媒体に対応するコネクタとデータ取得部を備える。
FIG. 2 is a block diagram of a main part of the
開始指示検知部11は、入力ユニットやユーザインターフェースなどであり、ユーザからの指示入力を受け付ける。ユーザがUSBメモリに記憶したプログラムの運転開始を指示すると、開始指示検知部11は、誤り対応処理部20及びデータ取得部(USBデータ取得部13)に通知する。
The start
USBデータ取得部13は、USBメモリのデバイスドライバなどであり、USBメモリ本体との通信を行う。USBデータ取得部13は、コネクタ12を介してUSBメモリと通信し、指定されたデータを取得する。対象となるデータは、工作機械のプログラムや工作機械の運転や設定に関するパラメータなど、工作機械の制御に関するデータである。
The USB
誤り符号作成部14は、USBデータ取得部13が取得したデータに対し、誤り検出符号、または誤り訂正符号を作成する。ここで、誤り検出符号とは誤りを検出するための符号であり、誤り訂正符号とはデータの誤りを検出して訂正するための符号である。誤り検出符号には、ブロック符号、パリティ符号、チェックサム、巡回符号があるが、これに限定しない。誤り訂正符号には、ブロック符号、畳み込み符号などがあるがこれに限定しない。
The error
コピー作成部15は、USBメモリから取得したデータのコピーを作成する。コピー作成部15が作成したデータのコピーと、誤り符号作成部14が作成した誤り符号とは、記憶部16に記憶される。記憶部16は、安全なメモリであり、工場の振動などの外乱の影響を受けない。記憶部16に記憶されたデータと誤り符号とは安全に保持される。
The
運転制御部17は、記憶部16に記憶したプログラムを読み取り、読み取ったプログラムに従い工作機械を制御する。図1に示す数値制御装置100は、サーボモータやスピンドルモータを備えた工作機械だが、制御対象となる工作機械はこれに限定されない。例えば、放電加工機やロボットなどの他の工作機械も含む。
The
誤り対応処理部20は、記憶部16に記憶したデータを読み取る記憶済みデータ読み取り部21と、記憶部16に記憶した誤り符号を読み取る記憶済み符号読み取り部22と、誤り符号を用いてデータの誤りを検出する誤り検出部23と、誤りが存在したことを運転制御部17に通知する誤り通知部24とを備える。
The error
誤り対応処理部20は、記憶部16に記憶したデータの誤り検出を行い、誤りを検出した場合には、誤りに対応した処理を行う。本実施の形態の誤り対応処理部20は、誤りの存在を運転制御部17に通知する。運転制御部17は、工作機械を安全に停止させる。安全に停止させることで、フェールセーフを確保する。
The error
次いで、図3を参照して図2の数値制御装置100の動作について説明する。前提として、この例では、データとしてUSBメモリに記憶した工作機械のプログラムを取得する。
Next, the operation of the
最初に、ユーザは、プログラムが格納されたUSBメモリを数値制御装置100のコネクタ12に挿入する(ステップS1)。
First, the user inserts the USB memory in which the program is stored into the
ユーザがUSBメモリに記憶したプログラムの運転を指示すると(ステップS2)、USBデータ取得部13は、指定されたプログラムをUSBメモリから取得する(ステップS3)。誤り符号作成部14は、USBメモリから取得したプログラムの誤り符号を作成する(ステップS4)。コピー作成部15は、ステップS3で読み取ったプログラムのコピーを作成し記憶部16に記憶する(ステップS5)。また、ステップS4で作成された誤り符号も記憶部16に記憶する(ステップS6)。
When the user instructs the operation of the program stored in the USB memory (step S2), the USB
記憶済みデータ読み取り部21は、ユーザに指定されたプログラムを記憶部16から読み取る(ステップS7)。記憶済み符号読み取り部22は、ユーザに指定されたプログラムの誤り符号を記憶部16から読み取る(ステップS8)。誤り対応処理部20は、ステップS8で読み取った誤り符号を用いてステップS7で読み取ったプログラムの誤り検出を行う(ステップS9)。プログラムに誤りが存在しない場合(ステップS10;NO)、運転制御部17は読み取ったプログラムに従い工作機械の運転を制御する(ステップS11)。プログラムの誤りを検出した場合(ステップS10;YES)、誤り対応処理部20が運転制御部17に誤りの存在を通知する(ステップS12)。運転制御部17は、誤り対応処理部20からの通知を受けると、工作機械を安全に停止させる(ステップS13)。
The stored
このように、図2の数値制御装置100は、可搬記憶媒体であるUSBメモリからデータを取得すると、取得したデータの誤り符号を作成し、取得したデータと一緒に、安全な記憶領域である記憶部16に記憶する。工作機械の運転時には、記憶部16に記憶したデータの誤りを検出しながら工作機械を制御する。データに誤りが存在する場合は、工作機械を安全に停止することが可能であり、フェールセーフが確保できる。
As described above, when the
次いで、他の実施形態の数値制御装置100aについて説明する。図4の数値制御装置100aにおいて、誤り符号作成部14は工作機械の運転の開始前に誤り符号を作成する。記憶部16は、運転開始前に作成された誤り符号を記憶する。誤り対応処理部20aは、記憶部16に記憶していた誤り符号を用いて、USBメモリから取得したデータの誤り検出を行う。誤りが検出された場合、運転制御部17は、工作機械を安全に停止させる。図4の数値制御装置100aは、データを記憶部16に記憶しないので、図2のコピー作成部15や記憶済みデータ読み取り部21は含まない。数値制御装置100aは、USBデータ取得部13が取得したデータを記憶部16に記憶することなく直接処理する。数値制御装置100aは、プログラムを記憶部16に記憶させない。数値制御装置100aは、安全な記憶領域である記憶部16の空き容量がUSB上のプログラム容量より小さい場合でも安全に工作機械の制御が可能である。さらに、プログラムのコピーにかかる時間を削減することもできる。
Next, the
図5を参照して、図4に示す数値制御装置100aの動作を説明する。この例も、図3の場合と同様、USBメモリからプログラムを取得する。
The operation of the
最初に、ユーザは、USBメモリを数値制御装置100aのコネクタに挿入する(ステップS21)。USBメモリの挿入を検出すると、USBデータ取得部13は、USBメモリからプログラムを取得する(ステップS22)。誤り符号作成部14は、USBメモリから取得したプログラムの誤り符号を作成する(ステップS23)。ステップS23で作成した誤り符号は、記憶部16に記憶する(ステップS24)。
First, the user inserts the USB memory into the connector of the
ユーザがUSBメモリに記憶したプログラムの運転を指示すると(ステップS25)、USBデータ取得部13は、指定されたプログラムをUSBメモリから取得する(ステップS26)。
When the user instructs the operation of the program stored in the USB memory (step S25), the USB
誤り対応処理部20は、ステップS24で記憶部に記憶した誤り符号を用いて、ステップS26でUSBメモリから取得したプログラムの誤り検出を行う(ステップS27)。プログラムに誤りが存在しない場合(ステップS28;NO)、運転制御部17は、取得したプログラムに従い工作機械の運転を行う(ステップS29)。プログラムの誤りを検出した場合(ステップS28;YES)、誤り対応処理部20aが運転制御部17に誤りの存在を通知する(ステップS30)。運転制御部17は、誤り対応処理部20aからの通知を受けると工作機械を安全に停止させる(ステップS31)。
The error
次いで、図6を参照して他の実施形態を説明する。図6の数値制御装置100bにおいて、誤り対応処理部20bは、記憶部16に記憶したデータを読み取る記憶済みデータ読み取り部21と、記憶部16に記憶した誤り符号を読み取る記憶済み符号読み取り部22と、誤り符号を用いてデータの誤りを検出する誤り検出部23と、誤りが存在した場合に該当箇所の再読み込みをUSBデータ取得部13に指示するリトライ部25と、再読み込みを行ったデータに誤りがなければ運転制御部17に運転の再開を指示する再開処理部26と、再読み込みしたデータに誤りが存在する場合、誤りの存在を運転制御部17に通知する誤り通知部24と、を備える。
Next, another embodiment will be described with reference to FIG. In the numerical control device 100b of FIG. 6, the error handling processing unit 20b includes a stored
図7を参照して、図6に示す数値制御装置100bの誤り対応処理を説明する。この処理の前提として、USBメモリから取得したプログラムとそのプログラムの誤り符号は記憶部に記憶しているものとする。 The error handling process of the numerical control device 100b shown in FIG. 6 will be described with reference to FIG. 7. As a premise of this processing, it is assumed that the program acquired from the USB memory and the error code of the program are stored in the storage unit.
最初に、記憶済みデータ読み取り部21は指定されたプログラムを記憶部16から読み取り(ステップS41)、記憶済み符号読み取り部22は誤り符号を読み取る(ステップS42)。誤り検出部23は、ステップS42で読み取った誤り符号を用いて、ステップS41で読み取ったプログラムの誤り検出を行う(ステップS43)。
First, the stored
ステップS43においてプログラムに誤りが存在しない場合(ステップS44;NO)、運転制御部17は読み取ったプログラムに従い工作機械の運転を行う(ステップS45)。プログラムの誤りを検出した場合(ステップS44;YES)、リトライ部25は、USBデータ取得部13にプログラムの再読み込みを指示する(ステップS46)。誤り検出部23は、ステップS46で再読み込みしたプログラムの誤り検出を行う(ステップS47)。ここで、誤りが検出されない場合(ステップS48;NO)、再開処理部26が運転制御部17に運転の再開を指示する(ステップS49)。誤りが検出された場合(ステップS48;YES)、誤り通知部24は運転制御部17に誤りの存在を通知する(ステップS50)。運転制御部17は、誤り対応処理部20bからの通知を受けると、工作機械を安全に停止させる(ステップS51)。
If there is no error in the program in step S43 (step S44; NO), the
上述したように、図6の数値制御装置100bによれば、USBメモリから読み取ったプログラムに誤りが存在する場合、プログラムの再読み込みを行い、このプログラムに誤りがなければ工作機械の運転を継続する。再読み込みしたプログラムに誤りがなければ、工作機械を停止させることなく継続して作動することができる。なお、図7のフローチャートでは、再読み込みの回数を1回としたが、ステップS46からステップS48の処理を複数回繰り返してもよい。また、再読み込みを行う制限時間を設定してもよい。また、図6の数値制御装置100bは、図2の数値制御装置100と同様、誤り符号とプログラムとの両方を記憶部16に記憶する構成としたが、図4の数値制御装置100aのように誤り符号のみを記憶部16に記憶する構成としてもよい。
As described above, according to the numerical control device 100b of FIG. 6, if there is an error in the program read from the USB memory, the program is reloaded, and if there is no error in this program, the operation of the machine tool is continued. .. If the reloaded program is correct, the machine tool can continue to operate without stopping. In the flowchart of FIG. 7, the number of reloads is set to 1, but the processes of steps S46 to S48 may be repeated a plurality of times. In addition, a time limit for reloading may be set. Further, the numerical control device 100b of FIG. 6 has a configuration in which both the error code and the program are stored in the
次いで、図8を参照して他の実施形態を説明する。図8の数値制御装置100cにおいて、誤り対応処理部20cは、記憶部16に記憶したデータを読み取る記憶済みデータ読み取り部21と、記憶部16に記憶した誤り符号を読み取る記憶済み符号読み取り部22と、誤り符号を用いてデータの誤りを検出する誤り検出部23と、誤りが存在した場合に誤りの訂正を行う誤り訂正部27と、誤りを訂正すると運転制御部17に運転の再開を指示する再開処理部26と、を備える。
Next, another embodiment will be described with reference to FIG. In the numerical control device 100c of FIG. 8, the error handling processing unit 20c includes a stored
図9を参照して、図8に示す数値制御装置100cの誤り対応処理を説明する。この処理の前提としてUSBメモリから取得したプログラムとそのプログラムの誤り符号は記憶部16に記憶しているものとする。また、この処理の誤り符号は、誤り検出のみを行う誤り検出符号ではなく、誤りの検出と訂正を行う誤り訂正符号である。
The error handling process of the numerical control device 100c shown in FIG. 8 will be described with reference to FIG. As a premise of this processing, it is assumed that the program acquired from the USB memory and the error code of the program are stored in the
最初に、記憶済みデータ読み取り部21は指定されたプログラムを記憶部16から読み取り(ステップS61)、記憶済み符号読み取り部22はプログラムの誤り符号を記憶部16から読み取る(ステップS62)。誤り検出部23は、ステップS62で読み取った誤り符号を用いて、ステップS61で読み取ったプログラムの誤り検出を行う(ステップS63)。
First, the stored
ステップS63においてプログラムに誤りが存在しない場合(ステップS64;NO)、運転制御部17は読み取ったプログラムに従い工作機械の運転を行う(ステップS65)。プログラムの誤りを検出した場合(ステップS64;YES)、誤り訂正部27はステップS62で読み取った誤り符号を用いて、プログラムの誤りを訂正する(ステップS66)。次いで、運転制御部17は、ステップS65に移行し、ステップS66で訂正したプログラムに従い工作機器の運転を行う。数値制御装置100cは、プログラムに記載された処理を全て完了するまでS63〜S66の処理を繰り返す。
If there is no error in the program in step S63 (step S64; NO), the
最後に、図10を参照して数値制御装置100dの他の構成を説明する。図10の数値制御装置100dは、USB入出力装置40を介して可搬記憶媒体のデータを取得する。USB入出力装置40は、数値制御装置100dに接続される。USB入出力装置40は、USBのコネクタ41を備え、USBメモリを挿入することができる。外部機器データ取得部28は、USB入出力装置40を介して、USBメモリに記憶したデータを読み取る。なお、他の実施形態と同様、USB入出力装置40は、外付けハードディスクなどUSBメモリ以外の可搬記憶媒体のデータを読み取ることができる。
Finally, another configuration of the
以上説明したように、本実施の形態の数値制御装置は、可搬記憶媒体に記憶したデータを利用する際、機械の稼働前にデータの誤り検出符号を作成し、数値制御装置内の安全なメモリに記憶することにより、工場などで発生しうるデータの破損や損失などを事前に検知し、安全にデータを利用することができる。 As described above, when using the data stored in the portable storage medium, the numerical control device of the present embodiment creates an error detection code of the data before the operation of the machine, and is safe in the numerical control device. By storing the data in the memory, it is possible to detect in advance data corruption or loss that may occur in a factory or the like, and use the data safely.
本実施の形態では、工作機械の制御に関するデータを、工作機械のプログラムとして説明したが、工作機械の制御に関するデータはこれに限定されず、例えば、パラメータや設定情報なども含む。 In the present embodiment, the data related to the control of the machine tool has been described as a program of the machine tool, but the data related to the control of the machine tool is not limited to this, and includes, for example, parameters and setting information.
100,100a〜100d 数値制御装置
11 開始指示検知部
12 コネクタ
13 USBデータ取得部
14 誤り符号作成部
15 コピー作成部
16 記憶部
17 運転制御部
20,20a〜20d 誤り対応処理部
21 記憶済みデータ読み取り部
22 記憶済み符号読み取り部
23 誤り検出部
24 誤り通知部
25 リトライ部
26 再開処理部
27 誤り訂正部
28 外部機器データ取得部
100, 100a to 100d
Claims (10)
前記産業機械の制御に関するデータを取得するデータ取得部と、
前記産業機械の制御に関するデータに対して、誤り検出符号または誤り訂正符号の少なくとも一方を含む誤り符号を作成する符号作成部と、
前記誤り符号を記憶する記憶部と、
前記誤り符号を用いて前記データの誤りを検出する誤り検出部と、
前記誤り検出部が前記データの誤りを検出した場合、前記誤りに対処する処理を行う誤り対応処理部と、
を備える数値制御装置。 A numerical control device that controls industrial machinery
A data acquisition unit that acquires data related to the control of the industrial machine, and
A code creation unit that creates an error code including at least one of an error detection code and an error correction code for the data related to the control of the industrial machine.
A storage unit that stores the error code and
An error detection unit that detects errors in the data using the error code, and
When the error detection unit detects an error in the data, an error handling processing unit that performs a process for dealing with the error and an error handling processing unit.
Numerical control device.
前記データ取得部は、前記コネクタを介して前記可搬記憶媒体に記憶したデータを取得する請求項1記載の数値制御装置。 Equipped with a connector to join with a portable storage medium
The numerical control device according to claim 1, wherein the data acquisition unit acquires data stored in the portable storage medium via the connector.
前記産業機械の制御に関するデータを取得するデータ取得部と、
前記産業機械の制御に関するデータに対して、誤り検出符号または誤り訂正符号の少なくとも一方を含む誤り符号を作成する符号作成部と、
前記誤り符号を記憶する記憶部と、
前記誤り符号を用いて前記データの誤りを検出する検出部と、
前記誤り検出部が誤りを検出した場合、前記誤りに対処する処理を行う誤り対応処理部と、
を備える数値制御システム。 A control system that controls industrial machinery
A data acquisition unit that acquires data related to the control of the industrial machine, and
A code creation unit that creates an error code including at least one of an error detection code and an error correction code for the data related to the control of the industrial machine.
A storage unit that stores the error code and
A detection unit that detects an error in the data using the error code,
When the error detection unit detects an error, the error handling processing unit that performs processing to deal with the error and the error handling processing unit
Numerical control system with.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019171228A JP2021047774A (en) | 2019-09-20 | 2019-09-20 | Numerical control device for industrial machine |
CN202010988749.7A CN112540568A (en) | 2019-09-20 | 2020-09-18 | Numerical controller for industrial machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019171228A JP2021047774A (en) | 2019-09-20 | 2019-09-20 | Numerical control device for industrial machine |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2021047774A true JP2021047774A (en) | 2021-03-25 |
Family
ID=74876405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019171228A Pending JP2021047774A (en) | 2019-09-20 | 2019-09-20 | Numerical control device for industrial machine |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2021047774A (en) |
CN (1) | CN112540568A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59151204A (en) * | 1983-02-17 | 1984-08-29 | Toyota Motor Corp | Memory operating system of numerical control equipment |
JPS63288305A (en) * | 1987-05-20 | 1988-11-25 | Fanuc Ltd | Working program storage system |
JPH1125005A (en) * | 1997-07-07 | 1999-01-29 | Fanuc Ltd | Method for controlling memory |
JPH11231923A (en) * | 1998-02-16 | 1999-08-27 | Fanuc Ltd | Numerical controller |
JP2018015883A (en) * | 2016-07-29 | 2018-02-01 | オークマ株式会社 | Machine tool and breakage inspection method |
JP2019070953A (en) * | 2017-10-10 | 2019-05-09 | Dmg森精機株式会社 | Machining program processing device and multiple-spindle machine equipped with the same |
-
2019
- 2019-09-20 JP JP2019171228A patent/JP2021047774A/en active Pending
-
2020
- 2020-09-18 CN CN202010988749.7A patent/CN112540568A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59151204A (en) * | 1983-02-17 | 1984-08-29 | Toyota Motor Corp | Memory operating system of numerical control equipment |
JPS63288305A (en) * | 1987-05-20 | 1988-11-25 | Fanuc Ltd | Working program storage system |
JPH1125005A (en) * | 1997-07-07 | 1999-01-29 | Fanuc Ltd | Method for controlling memory |
JPH11231923A (en) * | 1998-02-16 | 1999-08-27 | Fanuc Ltd | Numerical controller |
JP2018015883A (en) * | 2016-07-29 | 2018-02-01 | オークマ株式会社 | Machine tool and breakage inspection method |
JP2019070953A (en) * | 2017-10-10 | 2019-05-09 | Dmg森精機株式会社 | Machining program processing device and multiple-spindle machine equipped with the same |
Also Published As
Publication number | Publication date |
---|---|
CN112540568A (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6378264B2 (en) | Automatic backup device, automatic backup method and program | |
JP4280241B2 (en) | Numerical control device having learning control function | |
CN102621930A (en) | Numerical controller having workpiece mounting error compensation unit for three-axis machine tool | |
CN109278063B (en) | Robot apparatus, control method, assembly method, and recording medium | |
US10016894B2 (en) | Method and apparatus for controlling a robot | |
KR101630104B1 (en) | Positioning device, and plc system | |
JP2013048526A (en) | Motor system and motor controller | |
WO1988003083A1 (en) | Injection molding machine capable of remote start and stop | |
US20170343989A1 (en) | Numerical controller having program correction assistance function for alarm solution | |
KR20200051485A (en) | Decelerator system, correction method of command value to drive unit, correction data generation method and method for manufacturing decelerator system | |
JP2021047774A (en) | Numerical control device for industrial machine | |
JP5800869B2 (en) | Numerical control device with program restart function | |
JPWO2020161880A1 (en) | Motion model calculation device, control device, joint mechanism, motion model calculation method, program | |
JP7359543B2 (en) | Machine control device | |
CN114365048B (en) | Numerical control device | |
WO1997028493A1 (en) | Parameter setting method for cnc machine | |
JP4261320B2 (en) | Servo control system | |
JP3010107B2 (en) | Encoder system | |
JP6748146B2 (en) | Control device, control method, and control program | |
US20230185272A1 (en) | Program analyzer and control system | |
WO2023058085A1 (en) | Numerical control device | |
US8504207B2 (en) | Electronic device and method for controlling motions of mechanical arm using the electronic device | |
WO2023181314A1 (en) | State control program, state control device, and state control method | |
JP2006187088A (en) | Apparatus and method of controlling motor | |
JP2021082174A (en) | Control apparatus, industrial machine and program writing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220616 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230412 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230509 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230706 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20231003 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231219 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20231228 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20240119 |