JP2007213314A - Encoder apparatus, servo motor and servo system - Google Patents
Encoder apparatus, servo motor and servo system Download PDFInfo
- Publication number
- JP2007213314A JP2007213314A JP2006032427A JP2006032427A JP2007213314A JP 2007213314 A JP2007213314 A JP 2007213314A JP 2006032427 A JP2006032427 A JP 2006032427A JP 2006032427 A JP2006032427 A JP 2006032427A JP 2007213314 A JP2007213314 A JP 2007213314A
- Authority
- JP
- Japan
- Prior art keywords
- command
- servo amplifier
- encoder
- servo
- encoder device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Safety Devices In Control Systems (AREA)
Abstract
Description
本発明は、サーボアンプのコマンドを受けるとそのコマンドに対応した動作をするとともに動作した結果のレスポンスをサーボアンプに返すエンコーダ装置とこのエンコーダ装置を備えたサーボモータ、サーボシステムに関する。 The present invention relates to an encoder device that receives a command of a servo amplifier and performs an operation corresponding to the command and returns a response of the operation result to the servo amplifier, and a servo motor and a servo system provided with the encoder device.
モータを高精度で制御するためモータにエンコーダ装置が取付けられ、エンコーダ装置が取得したモータの回転情報を元にしてサーボアンプによってモータが駆動されることがある(例えば特許文献1参照)。図1は、その接続状況の1例を示すサーボシステムの接続図である。図において1は上位装置であり、サーボアンプ2に指令を与えてモータ4の動作を制御するコントローラとなっている。モータ4にはエンコーダ装置3が取付けられており、それぞれサーボアンプ2と接続されている。サーボアンプ2とエンコーダ装置3の間は通信によって情報が送受信される。サーボアンプ2がエンコーダ装置3の検出信号を入力すると、その検出信号と上位装置1の指令を元に働いてモータ4に電流を供給し、モータの動作を制御して指令に応じたモータの回転を制御することができる。
図2は、エンコーダ装置3の内部構成を示すブロック図である。10はエンコーダであり、モータ4の回転軸の回転を検出する。5は増幅器であり、エンコーダ10が検出したアナログ信号を増幅する。6は波形整形部であり、増幅器5で増幅されたアナログ信号をA/D変換などの処理をして整形し、位置データを生成する。7は演算器(CPU)であり、エンコーダ10の位置のチェックや、エンコーダ10が動作するためのパラメータの書き込みや読出し等を行う。9はEEPROMなどのメモリ(記憶装置)であり、この内部にエンコーダ10が動作するための情報や、モータ情報などが記録される。8は入出力部であり、サーボアンプ2から送られたコマンドを入力し、そのコマンドに対応した処理をしてその結果のレスポンスを出力したり、エンコーダ10によって検出された位置情報を出力する。
エンコーダ装置3は、工場で作られて製品出荷する前に試運転するときや、出荷後に実稼動するときなど、どのようなときでも、サーボアンプが送信するコマンドを受信すればそのコマンドに対応する処理をしてその結果のレスポンスをサーボアンプへ出力している。
その状況を、エンコーダ装置の動作を示す図5のフローチャートを用いて説明する。ますエンコーダ装置が起動するとサーボアンプのコマンドを受信できる状態になり、
(S1)サーボアンプのコマンドを受信したかどうかを判断する。
(S2)受信していればコマンドを解釈してコマンドが正しいかどうかを判断する。
(S3)コマンドが正しいと判断されれば、解釈したコマンドに基づいて処理をし、
(S4)処理結果のレスポンスをサーボアンプ2に出力してからS1に戻る。
(S5)コマンドが正しいと判断されなければ、コマンドエラー処理をする。この処理とは、特に何もしないという処理であり、
(S6)何もしないというレスポンスをサーボアンプに出力してからS1に戻る。
(S7)S1でコマンドが受信したと判断されなければ、エンコーダ内部の動作チェックをしてからS1に戻る。
このように、従来のエンコーダ装置は、サーボアンプのコマンドを受信するとどのような場合であってもそのコマンドに基づいた処理が実行されて、その結果のレスポンスがサーボアンプへ送信されているのである。
FIG. 2 is a block diagram showing an internal configuration of the encoder device 3.
The encoder device 3 receives a command transmitted by the servo amplifier at any time, such as when it is made in a factory and trial run before shipping the product, or when it is actually operated after shipment. The response of the result is output to the servo amplifier.
The situation will be described with reference to the flowchart of FIG. 5 showing the operation of the encoder device. When the encoder device starts up, the servo amplifier command can be received.
(S1) It is determined whether a servo amplifier command has been received.
(S2) If received, the command is interpreted to determine whether the command is correct.
(S3) If it is determined that the command is correct, processing is performed based on the interpreted command,
(S4) After outputting the response of the processing result to the
(S5) If it is not determined that the command is correct, command error processing is performed. This is a process that does nothing in particular.
(S6) After outputting a response indicating that nothing is performed to the servo amplifier, the process returns to S1.
(S7) If it is not determined in S1 that the command has been received, the operation inside the encoder is checked and then the process returns to S1.
In this way, when a conventional encoder device receives a servo amplifier command, the process based on the command is executed in any case, and the resulting response is transmitted to the servo amplifier. .
ところが従来のエンコーダ装置は、どのような運転状態にあってもサーボアンプのコマンドを受信するとすぐにそのコマンドに基づいた処理をして、結果のレスポンスをサーボアンプへ返しているので、伝送中の電気的、磁気的外乱によって乱れてしまったコマンドを受信したときは、エンコーダ装置にコマンドの真偽を判断する機能が備わっていないので正しい処理をすることができずに誤った処理をすることになり、場合によっては機能を停止してしまうということがあった。
また、伝送中のコマンドが外乱によって変化すると、公知となっている誤り訂正方式などの手順によってエンコーダ装置がコマンドを無効にして誤動作を防止することができるものの、伝送開始段階のコマンドが変化すると、その変化したコマンドを用いて誤り訂正コードが生成されて伝送路上は正しいコマンドとなってしまう場合があり、エンコーダ装置がそのコマンドの真偽を判断できなくなって正しいコマンドに基づく処理ができなかった。
更にデータ伝送中に不具合が発生すれば、サーボアンプとエンコーダ装置が1対又は多対接続による方式で通信されているため、サーボアンプが誤ったコマンドを送信しているのかエンコーダ装置が受信後のデータを変化させたのかの判断が難しく、故障解析に時間を要するという問題もあった。
本発明はこのような問題点に鑑みてなされたものであり、サーボアンプからエンコーダ装置に送られるコマンドが変化してエンコーダ装置の動作に影響を及ぼすようなコマンドとなったとしても、エンコーダ装置が誤った処理をすることを防止し、機能停止も防止し、誤ったコマンドを記録して故障解析に要する時間を短縮することができるエンコーダ装置を提供することを目的とする。
However, the conventional encoder device performs processing based on the command immediately after receiving the command of the servo amplifier in any operating state, and returns the response of the result to the servo amplifier. When a command that has been disturbed by an electrical or magnetic disturbance is received, the encoder device does not have a function to judge the authenticity of the command, so it cannot perform the correct process and performs an incorrect process. In some cases, the function was stopped.
Also, if the command during transmission changes due to disturbance, the encoder device can invalidate the command by a known error correction method or the like to prevent malfunction, but if the command at the transmission start stage changes, An error correction code may be generated using the changed command, resulting in a correct command on the transmission path, and the encoder apparatus cannot determine the authenticity of the command, and processing based on the correct command cannot be performed.
In addition, if a problem occurs during data transmission, the servo amplifier and the encoder device communicate with each other using a one-pair or multi-pair connection method, so whether the servo amplifier is sending an incorrect command There was also a problem that it was difficult to judge whether the data was changed and time was required for failure analysis.
The present invention has been made in view of such problems, and even if the command sent from the servo amplifier to the encoder device changes to affect the operation of the encoder device, the encoder device It is an object of the present invention to provide an encoder device that prevents erroneous processing, prevents function stoppage, and records a wrong command to shorten the time required for failure analysis.
そこで本発明は、サーボアンプのコマンドを受けてそのコマンドに対応した処理をするとともに当該処理の結果のレスポンスを前記サーボアンプへ送信するエンコーダ装置において、前記コマンドが前記サーボアンプの機能に影響を及ぼすかどうかを判断し、影響を及ぼすと判断したときは当該コマンドに対応した処理をせずにその処理をしないというレスポンスを前記サーボアンプへ送信し、影響を及ぼさないと判断したときは当該コマンドに対応した処理をしてその処理の結果のレスポンスを前記サーボアンプへ送信することを特徴とし、影響を及ぼすと判断された情報はメモリに格納され、外部から参照することができるようになっていることを特徴としている。またサーボモータまたはサーボシステムがそのようなエンコーダ装置を備えたことを特徴としている。 Therefore, the present invention provides an encoder apparatus that receives a command of a servo amplifier and performs a process corresponding to the command and transmits a response of the result of the process to the servo amplifier. The command affects the function of the servo amplifier. If it is determined that the command will affect the command, a response indicating that the command is not processed is sent to the servo amplifier. It is characterized in that a corresponding process is performed and a response as a result of the process is transmitted to the servo amplifier. Information determined to have an influence is stored in a memory and can be referred to from the outside. It is characterized by that. In addition, the servo motor or the servo system is provided with such an encoder device.
本発明によると、エンコーダ装置が受信したコマンドをエンコーダ装置に影響を及ぼすかどうかを判断し、影響を及ぼすと判断したときは当該コマンドに対応した処理をせずにその処理をしないというレスポンスをサーボアンプへ送信し、影響を及ぼさないと判断したときは当該コマンドに対応した処理をしてその処理の結果のレスポンスをサーボアンプへ送信するので、外乱を受けて変化したコマンドによる誤った処理を回避することができ、エンコーダ装置の機能を停止することもなく、正常な動作を継続させることができるという効果がある。また、影響を及ぼすと判断された情報はメモリに格納され、外部から参照することができるようになっているので、故障解析のための時間を短縮することができるという効果もある。従って前記エンコーダ装置を備えたサーボモータまたはサーボシステムの信頼性が向上するという効果がある。 According to the present invention, it is determined whether or not the command received by the encoder device affects the encoder device. When it is determined that the command is affected, the response corresponding to the command is not performed without performing the processing corresponding to the command. If it is sent to the amplifier and it is determined that there will be no effect, processing corresponding to the command is performed and the response of the processing result is sent to the servo amplifier. Thus, there is an effect that normal operation can be continued without stopping the function of the encoder device. In addition, since the information determined to have an influence is stored in the memory and can be referred to from the outside, the time for failure analysis can be shortened. Therefore, there is an effect that the reliability of the servo motor or servo system provided with the encoder device is improved.
以下、本発明の方法の具体的実施例について、図に基づいて説明する。 Hereinafter, specific examples of the method of the present invention will be described with reference to the drawings.
本発明のエンコーダ装置の接続状況と構成は、背景技術で説明した図1、図2と同じであり、これらの説明を省略する。ただし、演算部7の処理手順が異なっており、その動作について説明する。
The connection status and configuration of the encoder apparatus according to the present invention are the same as those shown in FIGS. However, the processing procedure of the
図3は、図2のエンコーダ装置3が動作するときの処理手順を示すフローチャートであり、順を追って説明する。まずサーボアンプ2とエンコーダ装置3が起動すると、それぞれ通信授受を開始するためのイニシャル処理が実行される。その後、
(S1)エンコーダ装置3がサーボアンプ2から送信されたコマンドを受信したかどうかを判断し、
(S7)受信していなければエンコーダ装置3の内部の動作をチェックしてS1へ戻る。
(S8)受信しているときは、受信したコマンドがどの処理であるかを解釈し、特殊コマンド以外のコマンドであるかどうかを判断する。
特殊コマンドとは「実稼動モード」にするためのコマンドのことであり、特殊コマンド以外の通常動作に用いるコマンドとは、通信テストに用いるエコーバックチェックコマンドや、メモリ9の内容を読み出したり書き込んだりするコマンド、エンコーダ装置3の自己診断を行うためのコマンドなど、エンコーダ装置3の機能として準備されていて通常使用するコマンドのことである。
電源投入時の最初の1回だけサーボアンプから送信されるように特殊コマンドを準備しておけば、フィールドなど実使用環境で使用される組み合わせとなった場合に実稼動モードとすることができ、メモリ9への不用意な書き換えコマンドの実行を防止することができる。エンコーダ装置を製造し、調整し、出荷するような工程では調整と試験設備との組み合わせとなるため、実使用環境と異なる組み合わせからは送信できないようなコマンドとしておくことにより、出荷前にエンコーダ情報やモータ情報等をメモリ9に書き込むことができるようになる。
(S9)特殊コマンド以外のコマンドを受信したときは、すなわち、通常動作に用いるコマンドを受信したときは、そのコマンドがメモリ9を書き換えるメモリ書換コマンドであるかどうかを判断する。
(S11)コマンドがメモリ書換コマンドであるときは、実稼動モードであるかどうかを判断する。
(S12)実稼動モードであるときはメモリ9への書き換えが制限されている状態となっており、サーボアンプ2へレスポンスを出力し、メモリ9を書き換えること無くコマンドエラー処理をしてS1に戻る。
(S3)S9でコマンドがメモリ書換コマンドでないときと、S11で実稼動モードでないときは、コマンドに応じてメモリ9を書き換える処理をする。
この処理はエンコーダ装置が製造段階や調整段階、出荷前段階にあるときにエンコーダ情報とモータ情報の書き込み作業が必要な場合にのみ実行される。
(S4)そして、その処理の結果としてのレスポンスを出力しサーボアンプ2に送信してからS1に戻る。
(S10)特殊コマンド以外のコマンドを受信していないときは、すなわち、特殊コマンドを受信しているときは、実稼動モードであることを示すフラグをセットして、エンコーダ3のシステムを変更するコマンドを実行しないようにしてメモリ9を書き換えないようにする。
(S6)そして実稼動モードへ移行した旨のレスポンスを出力してからS1に戻る。
このような処理手順をとっているので、サーボアンプ2とエンコーダ装置3が実稼動状態のときにエンコーダ装置3がサーボアンプ2の運転に影響を及ぼすコマンドを受信したときは、そのコマンドを実行せず、実行できないというレスポンスをサーボアンプへ送信し、実稼動モード以外の時のみサーボアンプ2のコマンドが受け付けられる。そして運転状態時等に電気的外乱等の影響でサーボアンプが誤動作して伝送開始段階や伝送途中で本来送信されるべきコマンドが変化し、サーボアンプ2の動作に影響を及ぼすコマンドとなったときは、正しくないコマンドとして処理されてサーボアンプ2を停止させることなく継続して動作させることができる。
以上述べたように本発明のエンコーダ装置は、サーボアンプ2からコマンドを受信したときに実稼動モードか否かを判別する処理をしている点が特長となっている。その判断をしてから状態に応じたコマンド処理をしてソフトウェア的にメモリ9への書き換えを禁止しているので、伝送途中でデータが変化してエンコーダが誤ったコマンドを受信しても、エンコーダが誤動作してサーボシステムが停止してしまうような事態を防止することができるのである。したがってそのようなエンコーダ装置を備えたサーボモータとサーボシステムは信頼性が向上するのである。
FIG. 3 is a flowchart showing a processing procedure when the encoder device 3 of FIG. 2 operates, and will be described in order. First, when the
(S1) Determine whether the encoder device 3 has received the command transmitted from the
(S7) If it is not received, the internal operation of the encoder device 3 is checked, and the process returns to S1.
(S8) When it is received, it interprets what process the received command is and determines whether it is a command other than a special command.
The special command is a command for setting the “actual operation mode”, and the command used for the normal operation other than the special command is an echo back check command used for the communication test, or reading / writing the contents of the
If a special command is prepared so that it is transmitted from the servo amplifier only once at the first power-on, the actual operation mode can be set when the combination is used in an actual usage environment such as a field. An inadvertent execution of a rewrite command to the
(S9) When a command other than a special command is received, that is, when a command used for normal operation is received, it is determined whether or not the command is a memory rewrite command for rewriting the
(S11) When the command is a memory rewrite command, it is determined whether or not the actual operation mode is set.
(S12) When the actual operation mode is set, rewriting to the
(S3) When the command is not a memory rewrite command at S9 and when the command is not an actual operation mode at S11, a process of rewriting the
This processing is executed only when writing of encoder information and motor information is necessary when the encoder device is in the manufacturing stage, the adjustment stage, or the pre-shipment stage.
(S4) Then, a response as a result of the processing is output and transmitted to the
(S10) When a command other than a special command has not been received, that is, when a special command has been received, a command for changing the system of the encoder 3 by setting a flag indicating the actual operation mode is set. So that the
(S6) After outputting a response indicating that the operation mode has been changed, the process returns to S1.
Since such a processing procedure is taken, when the
As described above, the encoder device according to the present invention is characterized in that when it receives a command from the
図4は第2実施例の処理手順を示すフローチャートであり、図3のフローチャートのS12の後にS13を追加したものである。S13では、「実稼動モード中にエンコーダがメモリ9を書き換えるコマンドを受信し、処理しようとした」という情報が演算器7の内部に記録される。この記録があるため、サーボアンプ2とエンコーダ装置3の間の伝送に関連する通信誤動作等の不具合が発生したときはこの記録が確認され、記録が残っていれば伝送路上における不具合が予測され、記録が残っていなければ何らかの原因によってエンコーダ装置単体で誤動作したという判別が可能となる。したがって通信関連不具合のトラブルシュート時間の短縮できるのである。なお、演算器7の内部に記録せずにメモリ9に記録してもよく、同様の効果を得ることができる。
FIG. 4 is a flowchart showing the processing procedure of the second embodiment, in which S13 is added after S12 in the flowchart of FIG. In S <b> 13, information that “the encoder has received a command to rewrite the
1 上位装置 2 サーボアンプ 3 エンコーダ装置
4 モータ 5 増幅器 6 波形整形部
7 演算器 8 入出力回路 9 メモリ
10 エンコーダ
DESCRIPTION OF SYMBOLS 1 High-
Claims (4)
前記コマンドが前記サーボアンプの機能に影響を及ぼすかどうかを判断し、
影響を及ぼすと判断したときは当該コマンドに対応した処理をせずにその処理をしないというレスポンスを前記サーボアンプへ送信し、
影響を及ぼさないと判断したときは当該コマンドに対応した処理をしてその処理の結果のレスポンスを前記サーボアンプへ送信することを特徴とするエンコーダ装置。 In the encoder device that receives a command of the servo amplifier and performs a process corresponding to the command and transmits a response of the result of the process to the servo amplifier.
Determining whether the command affects the function of the servo amplifier;
When it is determined that it has an effect, it sends a response to the servo amplifier that the process is not performed without performing the process corresponding to the command,
An encoder apparatus, characterized in that when it is determined that there is no influence, a process corresponding to the command is performed and a response as a result of the process is transmitted to the servo amplifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006032427A JP2007213314A (en) | 2006-02-09 | 2006-02-09 | Encoder apparatus, servo motor and servo system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006032427A JP2007213314A (en) | 2006-02-09 | 2006-02-09 | Encoder apparatus, servo motor and servo system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007213314A true JP2007213314A (en) | 2007-08-23 |
Family
ID=38491691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006032427A Pending JP2007213314A (en) | 2006-02-09 | 2006-02-09 | Encoder apparatus, servo motor and servo system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007213314A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012070275A1 (en) * | 2010-11-26 | 2012-05-31 | 株式会社日立産機システム | Drive control system for motor and method of drive control |
-
2006
- 2006-02-09 JP JP2006032427A patent/JP2007213314A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012070275A1 (en) * | 2010-11-26 | 2012-05-31 | 株式会社日立産機システム | Drive control system for motor and method of drive control |
JP2012113601A (en) * | 2010-11-26 | 2012-06-14 | Hitachi Industrial Equipment Systems Co Ltd | Drive control system for motor and drive control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4011846B2 (en) | Method for reconfiguring a programmable field mounted device and method for programming a field mounted device to perform a calculation process and programmable field mounted device | |
US20140032972A1 (en) | Method of engineering and diagnosing a field device and a system thereof | |
CN107463516B (en) | Control device | |
WO2015079725A1 (en) | Programmable controller | |
JP4917604B2 (en) | Storage device configuration and driving method thereof | |
US6915453B2 (en) | Method for controlling starting operation of unit and executing self-checking test | |
JP2006268176A (en) | Data validity/invalidity deciding method for flash eeprom | |
JP2009538114A (en) | Electronic control device for electric drive system, electronic drive unit for electric drive system, and electric drive system | |
JP5973430B2 (en) | How to monitor changes in the settings of an automatic machine controller | |
JP2007213314A (en) | Encoder apparatus, servo motor and servo system | |
JP6611877B1 (en) | Semiconductor integrated circuit and rotation detection device | |
US11988503B2 (en) | Failure diagnostic system and failure diagnostic method of motor encoder | |
JP2013072529A (en) | Linear solenoid module | |
US11022948B2 (en) | Safety control device and method for changing a range of functions of a safety control device | |
JP5187638B2 (en) | Online maintenance device | |
JP2008230563A (en) | Platform door operation monitoring control system | |
JP2009003557A (en) | Device start time diagnostic method, diagnostic program, and start time diagnostic device | |
JP5278267B2 (en) | END COVER, PROGRAMMABLE LOGIC CONTROLLER DEVICE EQUIPPED WITH THE SAME, END COVER INSTALLATION CHECK METHOD, AND PROGRAMMABLE LOGIC CONTROLLER FAILURE DIAGNOSIS METHOD | |
JP2009063371A (en) | Encoder device and its starting method | |
JP2008140010A (en) | Electronic-mechanism composite device | |
JP2003100099A (en) | Semiconductor circuit system | |
JP2007273399A (en) | Switch operating state determining device, switch operating state determining method, and switch device including control device | |
JP2002189571A (en) | Magnetic disk device and self diagnostic method therefor | |
JP5743737B2 (en) | Inspection method for control unit mounted on ice making machine and control unit capable of executing the inspection method | |
JP4174731B2 (en) | Control system and control method |