JP2004239824A - Data writing device - Google Patents

Data writing device Download PDF

Info

Publication number
JP2004239824A
JP2004239824A JP2003030869A JP2003030869A JP2004239824A JP 2004239824 A JP2004239824 A JP 2004239824A JP 2003030869 A JP2003030869 A JP 2003030869A JP 2003030869 A JP2003030869 A JP 2003030869A JP 2004239824 A JP2004239824 A JP 2004239824A
Authority
JP
Japan
Prior art keywords
data
writing
written
optimum value
warning
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.)
Abandoned
Application number
JP2003030869A
Other languages
Japanese (ja)
Inventor
Takuya Okawa
拓也 大川
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2003030869A priority Critical patent/JP2004239824A/en
Publication of JP2004239824A publication Critical patent/JP2004239824A/en
Abandoned legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data writing device that can write normal data, even when writing errors are generated. <P>SOLUTION: This data writing device provided with a data storage circuit for writing the dada from its outside has a means for comparing the data written in the data writing with the optimum preset value of the data, for determining whether the data are the optimum value for the data in an equipment to be written in therewith or not, when the data are not consistent, and for outputting an alarm when coming out of an optimum data value range, when writing the storage data. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、予め記憶装置などに記憶されたデータを用いて動作する機器に対して、記憶データを書き込む為のデータ書き込み装置に関する。特に、エンコーダへのデータ書き込みに関する。
【0002】
【従来の技術】
従来、予め記憶装置などに記憶されたデータを用いて動作する機器に対して記憶データを書き込む際や、既に記憶装置に記憶されたデータを書き換える場合、例えば、書き込んだり書き換えたりするべきデータ群を、機器別で大別して書き込むデータのファイルを人間の手によって作成し、書き込み時には人間の目によって作成されたファイルを選択して書き換え装置に読みこませ、データを機器に書き込んでいた。
又、書き込まれる機器側では、例えば記憶されているデータが16進数のデータ群であった場合には、データ書き込み後や書き換え後に、全てのデータを加算しその結果が0となる様な方法を用いることで記憶されているデータが間違っているか否かの検出を行い、データが正しいかどうかの判別を行っていた。
また、下記の特許文献1では、特定の処理が2回くることで誤差操作か否かを判別し、特許文献2では入力に対する誤操作に対する割合から注意を促し、入力情報を使用していた。
【0003】
【特許文献1】
特開2000−18969号公報
【特許文献2】
特開平10−124220号公
【0004】
【発明が解決しようとする課題】
ところが、従来の方法では、まず、書きこむデータのファイルを作成する際に、人的に作成することからファイル自体で書き込むデータが間違える可能性があった。
又、データを書き込まれる機器側においても、書きこんだデータ自体の誤書き込みを検出することは可能であるが、書き込まれたデータがその機器を動作するに当たって妥当なデータであるかどうかは、データを書きこんだり書きかえる前に、人間の目によって確認する手段しかなく、データの妥当性までを検出することはできず、たとえデータが正しく書き込まれたり書き換えられたとしても、そのデータ自身がその機器に対して妥当性が無かった場合には、動作不能や誤動作の原因となり、最悪の場合にはシステムあるいは装置の暴走を引き起こして人的危害を加える恐れもあった。
本発明は上記問題点に鑑みてなされたものであり、その目的とするところは、誤書き込みが発生した場合にも正常なデータを書きこむことが可能なデータ書き込み装置を提供することを目的とする。
【0005】
【課題を解決するための手段】
上記問題を解決する為、請求項1記載の発明は、外部からデータを書き込むことができるデータ記憶回路を備えたデータ書き込み装置において、記憶データを書き込む際に、前記データのあらかじめ設定した最適値とデータ書き込みの際に書き込もうとするデータとを比較して、データが不一致な場合にはそのデータが書き込まれる機器のデータ最適値であるかどうかを判別し、データ最適値範囲から外れている場合には、警告を出力する手段を有するものである。
また、請求項2記載の発明は、データ最適値範囲から大きく外れている場合に、警告が出力され、その警告を無視した場合にはそのデータの最適値を暫定的に書き込み、暫定的に書き込んだ旨の履歴データも同様にセットする手段を有するものである。
また、請求項3記載の発明は、前記データ記憶回路がエンコーダのデータ記憶回路としたデータ書き込み装置である。
【0006】
【発明の実施の形態】
以下、本発明の実施例を図に基づいて説明する。図1は本発明のデータ書き込み装置におけるデータ書き込み手順のフローチャートを示す図である。図において1は書き込みデータ選択手段、2は接続機器情報入力手段、3は最適データ読み出し手段、4は最適データ比較手段、5は警告出力手段、6は警告後の処理判別手段、7は最適データセット手段、8はデータと履歴データ書き込み手段である。接続機器情報入力手段2は例えばエンコーダの記憶回路に記録されるパラメータであるデータを書き換えるための入力手段である。サーボドライブシステムでサーボモータを運転する為、サーボモータに関する情報として定格容量、磁極数、電機子巻線抵抗値等がエンコーダ記憶回路に記録されている。この記録されるデータ最適値は本来記録されるモータ特性に合致する正しいデータである。データ最適値範囲は、サーボモータを運転する際、データ最適値と完全に一致しないとサーボモータを駆動できないという訳ではなく、多少データが異なっていたとしてもとりあえず駆動することができる。ただしモータ特性が真の値と異なるので特性値の限界までその性能を発揮できないだけである。したがって、データ最適値の近傍でサーボモータ特性は完全には一致しないが、とりあえずサーボモータを駆動することができるデータの許容範囲をデータ最適値範囲として事前に設定している。
まず、STEP▲1▼においてこれから書き込むデータを選択する。この処理は、外部より作業者などによってファイルを選択するなどの手段で行われ、これによって機器へ書き込むデータを選択する。
次にSTEP▲2▼において、STEP▲1▼で選択されたこれから書きこむデータを元に、これから書きこむ機器の機器情報を入手する。
機器情報を入手後、STEP▲3▼において、接続された機器の情報より、データ書き込み装置に予め記憶されている各データの最適値をデータ書き込み装置から読み出す。
STEP▲4▼において、STEP▲1▼で選択されたこれから書きこむデータと、STEP▲3▼で読み出されたその機器の最適値データを比較する。
比較データが一致した場合には、次データの比較を実施する。
一致しなかった場合には、STEP▲5▼に移り、データが違うことを外部に知らせる為の警告を出力する。警告の出力は、作業者に対して書きこむデータが異なっていることが確実に伝わる手段を用いれば良い。
STEP▲5▼にて警告を出力した後、警告発生後の処理をどうするかを作業者に求める為、STEP▲6▼にて警告後の処理判別を行う。
ここで、警告に従う場合はデータ書き込みを中断し、データ書き込み処理を終了する。
警告を無視する場合にはSTEP▲7▼に移り、これから書きこむデータをSTEP▲3▼で読み出した書きこまれる機器の最適値データを書き込みデータとしてセットする。その際、この処理を実行したことが分かる様に、履歴データとして、最適値データがセットされていることを記録する。
このSTEP▲4▼の処理を、書きこむデータ全てに対して実施し、全てのデータの比較が完了したら、
STEP▲8▼へ移り、書きこむデータと履歴データをデータ書き込み装置に接続された機器へ書き込む。
尚、データ書き込み後の書き込み自体の失敗については、従来開示の方法を用いて行えば良い。
これらの動作によって、機器が記憶するデータは、データ書き込み処理時において、書きこむデータ1つ1つがその機器に対して妥当性のあるものかをチェックし、妥当性が無いデータであることを検出した時点でその機器に最適なデータをセットすることによって、従来の問題点であったデータの妥当性を検出することが可能となり、機器の動作不能や誤動作、暴走などをデータ書き込みの時点で防ぐことができる。
又、書きこむデータに妥当性が無く、機器に記憶されているデータの最適値をセットしたことを履歴データとして記憶しておけば、次回の書き換え時に前回書きこんだ際に妥当性の無いデータを書きこもうとしたということを判別でき、この履歴データより、間違っているデータがあることを判別し、正しいデータを書きかえることも容易になる。
【0007】
【発明の効果】
以上述べた様にこの発明によれば、記憶データが書き込まれる機器全てのデータ最適値範囲をデータ書き込み装置自身で具備し、書き込むべきデータとその機器の最適値を比較することによりデータの妥当性を判別することが可能となり、妥当性が無い場合においては警告を出力することによってデータの誤書き込みを防ぐことができ、かつ前記警告を無視した場合にはそのデータの最適値を暫定的に書き込み、暫定的に書き込んだ旨の履歴データも同様にセットすることにより、誤書き込みが発生した場合にも正常なデータを書きこむことが可能となり、かつ、履歴データを書きこむことによって、間違ったデータが存在していることを検出することも可能となる。
【図面の簡単な説明】
【図1】本発明のデータ書き込み装置におけるデータ書き込み手順を示すフローチャート。
【符号の説明】
1 書き込みデータ選択手段
2 接続機器情報入力手段
3 最適データ読み出し手段
4 最適データ比較手段
5 警告出力手段
6 警告後の処理判別手段
7 最適データセット手段
8 データと履歴データ書き込み手段
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data writing device for writing storage data to a device that operates using data stored in a storage device or the like in advance. In particular, it relates to writing data to an encoder.
[0002]
[Prior art]
Conventionally, when writing storage data to a device that operates using data stored in advance in a storage device or when rewriting data already stored in a storage device, for example, a data group to be written or rewritten In general, a file of data to be written is roughly classified by device and manually created. At the time of writing, a file created by human eyes is selected and read by a rewriting device, and data is written to the device.
On the device side where data is written, for example, if the stored data is a hexadecimal data group, a method is used in which all data is added after data writing or rewriting and the result becomes 0. By using this, it is detected whether or not the stored data is incorrect, and it is determined whether or not the data is correct.
Further, in Japanese Patent Application Laid-Open No. H11-157300, if a specific process is performed twice, it is determined whether or not an error operation has occurred.
[0003]
[Patent Document 1]
Japanese Patent Application Laid-Open No. 2000-18969 [Patent Document 2]
JP-A-10-124220
[Problems to be solved by the invention]
However, in the conventional method, first, when creating a file of data to be written, there is a possibility that the data to be written in the file itself may be wrong because the file is created manually.
Also, the device to which data is written can detect erroneous writing of the written data itself, but it is determined whether the written data is valid data for operating the device. Before rewriting or rewriting the data, there is only a means to confirm it with human eyes, it can not detect the validity of the data, and even if the data is correctly written or rewritten, the data itself is If the device is not valid, it may cause inoperability or malfunction, and in the worst case, it may cause runaway of the system or device and cause human harm.
The present invention has been made in view of the above problems, and has as its object to provide a data writing device capable of writing normal data even when an erroneous write occurs. I do.
[0005]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, the invention according to claim 1 is a data writing device having a data storage circuit capable of writing data from the outside. When writing data, compare it with the data to be written.If the data does not match, determine whether the data is the optimum value for the device to which the data is written. Has means for outputting a warning.
According to the second aspect of the present invention, a warning is output when the value is significantly out of the data optimum value range, and when the warning is ignored, the optimum value of the data is temporarily written and temporarily written. The history data to that effect has means for setting the same.
The invention according to claim 3 is a data writing device in which the data storage circuit is a data storage circuit of an encoder.
[0006]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing a flowchart of a data writing procedure in the data writing device of the present invention. In the figure, 1 is a write data selection means, 2 is a connected device information input means, 3 is an optimum data read means, 4 is an optimum data comparison means, 5 is a warning output means, 6 is a processing determination means after a warning, 7 is an optimum data Set means 8 is data and history data writing means. The connected device information input means 2 is an input means for rewriting data which is a parameter recorded in a storage circuit of the encoder, for example. In order to operate the servo motor in the servo drive system, the rated capacity, the number of magnetic poles, the armature winding resistance value, and the like are recorded as information on the servo motor in the encoder storage circuit. The recorded data optimum value is correct data that matches the originally recorded motor characteristics. When operating the servo motor, the data optimum value range does not mean that the servo motor cannot be driven unless it completely matches the data optimum value. Even if the data is slightly different, the servo motor can be driven for the time being. However, since the motor characteristic is different from the true value, the performance cannot be exhibited to the limit of the characteristic value. Therefore, although the servo motor characteristics do not completely match in the vicinity of the data optimum value, the allowable range of data in which the servo motor can be driven is set in advance as the data optimum value range.
First, data to be written is selected in STEP (1). This processing is performed by means such as selecting a file from outside by an operator or the like, thereby selecting data to be written to the device.
Next, in STEP (2), the device information of the device to be written is obtained based on the data to be written selected in STEP (1).
After obtaining the device information, in STEP (3), the optimum value of each data stored in advance in the data writing device is read from the data writing device from the information of the connected device.
In STEP (4), the data to be written selected in STEP (1) is compared with the optimum value data of the device read in STEP (3).
If the comparison data matches, the next data is compared.
If they do not match, the process proceeds to STEP (5) to output a warning to notify the outside that the data is different. The warning may be output by using a means for reliably transmitting to the operator that the data to be written is different.
After the warning is output in STEP (5), the process after the warning is determined in STEP (6) in order to ask the operator what to do with the processing after the warning is generated.
Here, when following the warning, the data writing is interrupted, and the data writing process ends.
If the warning is to be ignored, the operation proceeds to STEP {circle around (7)}, and the optimum value data of the device to be written which has been read out in step {circle around (3)} is set as the write data. At this time, the fact that the optimum value data is set is recorded as history data so that it can be seen that this process has been executed.
The processing in STEP (4) is performed on all the data to be written, and when all the data have been compared,
The process proceeds to STEP (8), where the data to be written and the history data are written to the device connected to the data writing device.
Note that the failure of the writing itself after the data writing may be performed using the method disclosed in the related art.
By these operations, the data stored in the device is checked at the time of data write processing to determine whether each data to be written is valid for the device, and is detected as invalid data. By setting the most appropriate data for the device at the point of time, it is possible to detect the validity of the data, which was a problem in the past, and prevent inoperability, malfunction, runaway, etc. of the device at the time of data writing be able to.
Also, if the data to be written has no validity and the fact that the optimal value of the data stored in the device has been set is stored as history data, the data that was not valid at the previous Can be determined, and it is easy to determine that there is incorrect data from the history data, and to rewrite the correct data.
[0007]
【The invention's effect】
As described above, according to the present invention, the data writing device itself has a data optimum value range for all devices to which storage data is written, and compares the data to be written with the optimum value of the device, thereby validating the data. Can be determined, and when invalid, a warning can be output to prevent erroneous writing of data, and when the warning is ignored, the optimum value of the data is temporarily written. By setting the tentatively written history data in the same way, it is possible to write normal data even if an erroneous write occurs, and by writing the history data, Can also be detected.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a data writing procedure in a data writing device of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Write data selection means 2 Connected equipment information input means 3 Optimal data read means 4 Optimal data comparison means 5 Warning output means 6 Processing determination means after warning 7 Optimal data setting means 8 Data and history data writing means

Claims (3)

外部からデータを書き込むことができるデータ記憶回路を備えたデータ書き込み装置において、記憶データを書き込む際に、前記データのあらかじめ設定した最適値とデータ書き込みの際に書き込もうとするデータとを比較して、データが不一致な場合にはそのデータが書き込まれる機器のデータ最適値であるかどうかを判別し、データ最適値範囲から外れている場合には、警告を出力する手段を有することを特徴とするデータ書き込み装置。In a data writing device having a data storage circuit capable of writing data from the outside, when writing storage data, comparing the data to be written at the time of data writing with a preset optimum value of the data, If the data does not match, it is determined whether or not the data is the data optimum value of the device to which the data is written, and if the data is out of the data optimum value range, a warning is output. Writing device. データ最適値範囲から大きく外れている場合に、警告が出力され、その警告を無視した場合にはそのデータの最適値を暫定的に書き込み、その履歴データも同様にセットする手段を有することを特徴とする請求項1記載のデータ書き込み装置。A warning is output when the value is significantly out of the data optimum value range. If the warning is ignored, the optimum value of the data is tentatively written and the history data is similarly set. 2. The data writing device according to claim 1, wherein: 前記データ記憶回路がエンコーダのデータ記憶回路である請求項1または2記載のデータ書き込み装置。3. The data writing device according to claim 1, wherein the data storage circuit is a data storage circuit of an encoder.
JP2003030869A 2003-02-07 2003-02-07 Data writing device Abandoned JP2004239824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003030869A JP2004239824A (en) 2003-02-07 2003-02-07 Data writing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003030869A JP2004239824A (en) 2003-02-07 2003-02-07 Data writing device

Publications (1)

Publication Number Publication Date
JP2004239824A true JP2004239824A (en) 2004-08-26

Family

ID=32957637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003030869A Abandoned JP2004239824A (en) 2003-02-07 2003-02-07 Data writing device

Country Status (1)

Country Link
JP (1) JP2004239824A (en)

Similar Documents

Publication Publication Date Title
US11469704B2 (en) Methods and systems for recording operating information of an electronically commutated motor
CN110442473B (en) Nonvolatile data storage method and device, electronic equipment and medium
KR101533813B1 (en) Apparatus and method for controlling power relay assembly
CN106201640A (en) A kind of method and device of BootLoader program of upgrading
JP2009506445A (en) Storage device configuration and driving method thereof
JP2004152194A (en) Memory data protection method
US10877837B2 (en) Method for recovering EEPROM of slave device by PLC communication module
JP2004239824A (en) Data writing device
US7979736B2 (en) Method for updating nonvolatile memory
US20060107133A1 (en) Tampering-protected microprocessor system and operating procedure for same
EP3649553B1 (en) Data protection
US6377493B1 (en) Semiconductor apparatus
KR101346809B1 (en) Method and appratus for protecting integrity of log file
JP3867667B2 (en) Data storage / playback device
WO2007029135A2 (en) Controlling an optical disc drive
US6438644B1 (en) Method to prevent a flash memory from being miswritten
JP2002189571A (en) Magnetic disk device and self diagnostic method therefor
JP4108462B2 (en) Memory check circuit
US7913076B2 (en) Method for changing the configuration of a media drive apparatus, computer readable medium, and media drive apparatus
JP2007213314A (en) Encoder apparatus, servo motor and servo system
JP2002073375A (en) Software operation monitoring method in system that contains microcomputer
CN116094531A (en) SENT signal receiving system and chip
JP2005070936A (en) Transmitter having operation history storage function
JP2001135000A (en) Library device
JP2004295452A (en) Method for preventing erroneous data transfer in microcomputer controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060113

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20070219