JP5409111B2 - Recording device - Google Patents

Recording device Download PDF

Info

Publication number
JP5409111B2
JP5409111B2 JP2009123405A JP2009123405A JP5409111B2 JP 5409111 B2 JP5409111 B2 JP 5409111B2 JP 2009123405 A JP2009123405 A JP 2009123405A JP 2009123405 A JP2009123405 A JP 2009123405A JP 5409111 B2 JP5409111 B2 JP 5409111B2
Authority
JP
Japan
Prior art keywords
recording
average value
data
ring buffer
recording data
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
JP2009123405A
Other languages
Japanese (ja)
Other versions
JP2010271190A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009123405A priority Critical patent/JP5409111B2/en
Publication of JP2010271190A publication Critical patent/JP2010271190A/en
Application granted granted Critical
Publication of JP5409111B2 publication Critical patent/JP5409111B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Recording Measured Values (AREA)

Description

本発明は、産業用ロボット、実装機、射出成形機、工作機械、印刷機、半導体製造装置、包装機、エレベータ、空調機、車載機器などの機械装置に搭載される記録装置に関する。   The present invention relates to a recording apparatus mounted on a mechanical device such as an industrial robot, a mounting machine, an injection molding machine, a machine tool, a printing machine, a semiconductor manufacturing apparatus, a packaging machine, an elevator, an air conditioner, or an in-vehicle device.

特許文献1に、最初に収集した2のn乗個の運転データで1つのグループを形成して保存し、その後2のn乗個の運転データが溜まるごとに1つのグループとして保存するとともに、それ以前に形成したグループ内の各データに関して隣り合う2個のデータを基に1つの代表値を求めて保存する技術が開示されている。この技術によれば、最近のデータを詳細に記録しつつ、長期間のデータを記録することができる。   In Patent Document 1, a group is formed and stored with the 2 n power data collected first, and then every time 2 n power data is collected, the data is stored as one group. A technique for obtaining and storing one representative value based on two adjacent data for each data in a previously formed group is disclosed. According to this technique, it is possible to record long-term data while recording recent data in detail.

特開平4−348226号公報JP-A-4-348226

上述の機械装置の予防保全に有用なデータを記録する記録装置には、限られた記憶領域に可能な限り長い期間の運転にかかるデータを記録させたいという要望がある。しかしながら、上記従来の技術によれば前記要望に充分に答えたものではなかった。   There is a demand for a recording apparatus that records data useful for preventive maintenance of the above-described mechanical device to record data related to operation for as long a period as possible in a limited storage area. However, according to the above-described conventional technology, the above-mentioned demand has not been sufficiently answered.

本発明は、上記に鑑みてなされたものであって、可及的に長期間のデータを効率的に記憶する記憶装置を得ることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to obtain a storage device that efficiently stores data for as long a period as possible.

上述した課題を解決し、目的を達成するために、本発明は、夫々所定数の記録データを格納する複数段のリングバッファと、前記夫々の段のリングバッファが格納する複数の記録データの平均値を夫々算出する複数の平均値算出手段と、を備え、前記夫々の平均値算出手段は、前記リングバッファに前記所定数の記録データが書き込まれる毎に平均値を算出し、前記算出した平均値を次段のリングバッファに書き込み、最下段のリングバッファに書き込まれる記録データは、モータ位置誤差、位置決め時間、摩擦同定値、電流指令、オーバーシュート量、モータ速度、モータ加速度、推定外乱に関する情報のうちの少なくとも1つを含む、ことを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention provides a plurality of ring buffers each storing a predetermined number of recording data, and an average of a plurality of recording data stored in the respective ring buffers. A plurality of average value calculating means each for calculating a value, and each of the average value calculating means calculates an average value each time the predetermined number of recording data is written to the ring buffer, and calculates the average writes the value to the next stage of the ring buffer, the recording data to be written at the bottom of the ring buffer, the motor position error, positioning time, friction identification value, the current command, an overshoot amount, motor speed, motor acceleration, estimated disturbance Including at least one of the information on the.

本発明によれば、最近のデータは細かく記録し、古いデータは粗く記録することが可能になるとともに、従来技術に比べてより長期間相当のデータを記録することができるので、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができるという効果を奏する。   According to the present invention, recent data can be recorded finely, old data can be recorded coarsely, and data equivalent to a longer period of time can be recorded as compared with the prior art. There is an effect that a storage device that efficiently stores long-term data can be obtained.

図1は、実施の形態1の記録装置を備える機械装置の構成を説明する図である。FIG. 1 is a diagram illustrating a configuration of a mechanical device including the recording device according to the first embodiment. 図2は、実施の形態1の記録装置の構成を説明する図である。FIG. 2 is a diagram illustrating the configuration of the recording apparatus according to the first embodiment. 図3は、実施の形態2の記録装置を備える機械装置の構成を説明する図である。FIG. 3 is a diagram for explaining the configuration of a mechanical apparatus including the recording apparatus according to the second embodiment. 図4は、実施の形態3の記録装置を備える機械装置の構成を説明する図である。FIG. 4 is a diagram illustrating a configuration of a mechanical device including the recording device according to the third embodiment. 図5は、実施の形態4の記録装置の構成を示す図である。FIG. 5 is a diagram illustrating the configuration of the recording apparatus according to the fourth embodiment. 図6は、実施の形態5の記録装置の構成を示す図である。FIG. 6 is a diagram illustrating the configuration of the recording apparatus according to the fifth embodiment. 図7は、実施の形態6の記録装置の構成を示す図である。FIG. 7 is a diagram illustrating the configuration of the recording apparatus according to the sixth embodiment. 図8は、実施の形態8の記録装置の構成を示す図である。FIG. 8 is a diagram illustrating the configuration of the recording apparatus according to the eighth embodiment. 図9は、実施の形態10の記録装置の構成を示す図である。FIG. 9 is a diagram illustrating the configuration of the recording apparatus according to the tenth embodiment. 図10は、実施の形態14の記録装置の構成を示す図である。FIG. 10 is a diagram illustrating a configuration of a recording apparatus according to the fourteenth embodiment. 図11は、実施の形態15の機械装置の構成を示す図である。FIG. 11 is a diagram illustrating the configuration of the mechanical device according to the fifteenth embodiment. 図12は、実施の形態15の記録装置の構成を示す図である。FIG. 12 is a diagram illustrating the configuration of the recording apparatus according to the fifteenth embodiment.

以下に、本発明にかかる記録装置の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of a recording apparatus according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態1.
本発明にかかる実施の形態1の記録装置は、例えば産業用ロボット、実装機、射出成形機、工作機械、印刷機、半導体製造装置、包装機、エレベータ、空調機、車載機器などの機械装置に搭載される。図1は、機械装置の構成を説明する図である。
Embodiment 1 FIG.
The recording apparatus according to the first embodiment of the present invention is, for example, a machine device such as an industrial robot, a mounting machine, an injection molding machine, a machine tool, a printing machine, a semiconductor manufacturing apparatus, a packaging machine, an elevator, an air conditioner, and an in-vehicle device. Installed. FIG. 1 is a diagram illustrating a configuration of a mechanical device.

図示するように、機械装置1000は、機械装置1000の駆動部を駆動するモータ100、モータ100を制御するモータ制御装置200、モータ制御装置200への指令を生成し、生成した指令をモータ制御装置200に送信する指令生成装置300、および指令生成装置300を動作させるプログラムの生成・装置内部状態のモニタなどを行う上位制御装置400を備えている。   As illustrated, the mechanical device 1000 generates a motor 100 that drives a drive unit of the mechanical device 1000, a motor control device 200 that controls the motor 100, and a command to the motor control device 200, and the generated command is transmitted to the motor control device. 200 includes a command generation device 300 that transmits to 200, and a host control device 400 that performs generation of a program for operating the command generation device 300, monitoring of an internal state of the device, and the like.

モータ制御装置200は、モータ制御装置200で制御するモータ100のモータ制御状態量から機械装置1000の予防保全に使用するためのデータを算出して記録するための記録装置500を備えている。モータ制御状態量は、どのような値であってもよいが、例えばモータ電流指令、モータ電流、モータ位置、モータ速度、モータ加速度、モータ位置指令、モータ速度指令、モータ加速度指令、モータ位置誤差、モータ速度誤差などがある。ここでは、モータ制御状態量としてモータ電流指令を取り上げることとする。   The motor control device 200 includes a recording device 500 for calculating and recording data used for preventive maintenance of the mechanical device 1000 from the motor control state quantity of the motor 100 controlled by the motor control device 200. The motor control state quantity may be any value, for example, motor current command, motor current, motor position, motor speed, motor acceleration, motor position command, motor speed command, motor acceleration command, motor position error, There is a motor speed error. Here, the motor current command is taken up as the motor control state quantity.

図2は、記録装置500の構成を説明する図である。記録装置500は、モータ制御状態量であるモータ電流指令から記録データを計算する記録データ演算手段501と、記録データ演算手段501が計算した記録データを記録する記録手段502と、記録手段502が記録している記録データのうちの最も過去の期間のデータである累積データを記録する累積データ記録手段503と、を備えている。   FIG. 2 is a diagram for explaining the configuration of the recording apparatus 500. The recording apparatus 500 includes a recording data calculation unit 501 that calculates recording data from a motor current command that is a motor control state quantity, a recording unit 502 that records recording data calculated by the recording data calculation unit 501, and a recording unit 502 that records data. And cumulative data recording means 503 for recording cumulative data which is data of the past period among the recorded data.

記録手段502は、データをリング状に記録するリングバッファを複数段備えている。リングバッファの段数は2段であってもよいが、3段以上であることが好ましい。本実施の形態1では、リングバッファを5段備えているとし、各段のリングバッファにはそれぞれ10回分のデータを記録できる(各段のリングバッファのバッファ数を10)とする。記録データ演算手段501により計算された記録データは第1リングバッファ504の第1バッファに、記録データ演算手段501から出力されるたびに、書き込まれる。第1リングバッファ504は、第1リングバッファ504の第1バッファにデータが書き込まれるたびに、第1リングバッファ504が備える各バッファに記録されているデータを1つずつシフトする。すなわち、第1バッファに記録されているデータは第2バッファ、第2バッファに記録されているデータは第3バッファ、第9バッファに記録されているデータは第10バッファに記録される。また、第10バッファ(最終バッファ)に記録されているデータは消去される。   The recording unit 502 includes a plurality of stages of ring buffers that record data in a ring shape. The number of stages of the ring buffer may be two, but is preferably three or more. In the first embodiment, it is assumed that five stages of ring buffers are provided, and 10 times of data can be recorded in each stage of the ring buffer (the number of ring buffers in each stage is 10). The recording data calculated by the recording data calculation unit 501 is written into the first buffer of the first ring buffer 504 every time it is output from the recording data calculation unit 501. Each time data is written to the first buffer of the first ring buffer 504, the first ring buffer 504 shifts data recorded in each buffer included in the first ring buffer 504 one by one. That is, data recorded in the first buffer is recorded in the second buffer, data recorded in the second buffer is recorded in the third buffer, and data recorded in the ninth buffer is recorded in the tenth buffer. Also, the data recorded in the tenth buffer (final buffer) is erased.

第1平均値演算手段505は、第1リングバッファ504の第1バッファにバッファの数(本実施の形態1の場合は10)回だけ記録データが書き込まれる毎に第1リングバッファ504に記録されている記録データの平均値を算出し、算出した平均値を第2リングバッファ506に出力する。第1平均値演算手段505は、平均値をy、第iバッファに記録されているデータをx[i]として、
y=(x[1]+x[2]+・・・+x[10])/10 ・・・(式1)
の式を利用して平均値を算出する。なお、式1により求まる平均値の代わりに、以下の式により求まる移動平均値を用いるようにしてもよい。すなわち、第1リングバッファ504に10回分の記録データが出力されることを1周期と表現することとして、第k周期の時点での移動平均値y[k]は、
y[k]=y[k−1]+(x[k]−x[k−10])/10 ・・・(式2)
となる。
The first average value calculation means 505 is recorded in the first ring buffer 504 every time the recording data is written to the first buffer of the first ring buffer 504 by the number of buffers (10 in the case of the first embodiment). The average value of the recorded data is calculated, and the calculated average value is output to the second ring buffer 506. The first average value calculation means 505 sets the average value as y and the data recorded in the i-th buffer as x [i].
y = (x [1] + x [2] +... + x [10]) / 10 (Expression 1)
The average value is calculated using the following formula. In place of the average value obtained from Equation 1, a moving average value obtained from the following equation may be used. That is, expressing the output of the recording data for 10 times to the first ring buffer 504 as one cycle, the moving average value y [k] at the time of the k-th cycle is
y [k] = y [k-1] + (x [k] -x [k-10]) / 10 (Expression 2)
It becomes.

第1平均値演算手段505から値が出力されるたびに、第2リングバッファ506の第1バッファに、第1平均値演算手段505での算出結果が記録される。第2リングバッファ506も、第1リングバッファ504と同様、第1バッファにデータが記録されるたびに各バッファに記録されているデータを1つずつシフトする。第1平均値演算手段505からは10回ごとにデータが入力されるので、第2リングバッファ506の値は10回(モータ制御周期の10倍)ごとにデータがシフトされる。   Each time a value is output from the first average value calculation means 505, the calculation result of the first average value calculation means 505 is recorded in the first buffer of the second ring buffer 506. Similarly to the first ring buffer 504, the second ring buffer 506 shifts the data recorded in each buffer one by one each time data is recorded in the first buffer. Since data is input from the first average value calculation means 505 every 10 times, the value of the second ring buffer 506 is shifted every 10 times (10 times the motor control period).

第2平均値演算手段507は第2リングバッファ506に第2リングバッファ506のバッファ数(この場合10)だけデータが書き込まれるたびに、第2リングバッファ506が備える各バッファに記録されているデータの平均値を算出し、算出した平均値を第3リングバッファ(図示せず)に出力する。第2平均値演算手段507の平均値の算出方法は第1平均値演算手段505と同一である。第2平均値演算手段507は、モータ制御周期の100倍の周期毎に第2リングバッファ506の平均値を出力することとなる。   The second average value calculation means 507 stores the data recorded in each buffer included in the second ring buffer 506 every time data is written into the second ring buffer 506 by the number of buffers of the second ring buffer 506 (in this case, 10). The average value is calculated, and the calculated average value is output to a third ring buffer (not shown). The calculation method of the average value of the second average value calculation means 507 is the same as that of the first average value calculation means 505. The second average value calculation means 507 outputs the average value of the second ring buffer 506 every 100 times the motor control period.

上記と同様の操作を(図示していない)第3リングバッファ、第3平均値演算手段、第4リングバッファ、第4平均値演算手段においても実施する。記録手段502の最上位リングバッファである第5リングバッファ508では、第4平均値演算手段からデータが出力されるたびに第5リングバッファ508の第1バッファに、第4平均値演算手段での算出結果を記録する。第1バッファにデータが記録されるたびに第5リングバッファ508のデータは1つずつシフトされ、最終の第10バッファのデータはローパスフィルタ手段509に出力される。ローパスフィルタ手段509では、第5リングバッファ508からデータが入力されるたびにローパスフィルタの演算を行い、演算結果を記録手段502に記録されているデータの累積データとして累積データ記録手段503に記録されているデータを書き換える。   The same operation as described above is also performed in the third ring buffer, third average value calculation means, fourth ring buffer, and fourth average value calculation means (not shown). In the fifth ring buffer 508, which is the uppermost ring buffer of the recording means 502, every time data is output from the fourth average value calculating means, the first buffer of the fifth ring buffer 508 is transferred to the first average value calculating means. Record the calculation results. Each time data is recorded in the first buffer, the data in the fifth ring buffer 508 is shifted one by one, and the final data in the tenth buffer is output to the low-pass filter means 509. The low-pass filter unit 509 performs low-pass filter calculation each time data is input from the fifth ring buffer 508, and the calculation result is recorded in the accumulated data recording unit 503 as accumulated data of data recorded in the recording unit 502. Rewrite the data.

以上のように構成される本実施の形態1では、同じ記憶容量であれば従来技術よりも長期間のデータを保存できることを説明する。本実施の形態1は、従来技術と同様に、最近のデータを詳細に記録し、古いデータを代表値(平均値)という形で粗く記録することにより、限られた記憶領域にできるだけ長期間相当のデータを記録する。しかしながら、例えば、合計31個のデータを記録できる容量を有する記憶領域を使用する場合、従来技術によれば16+8+4+2+1の記憶領域を取ることができ、16*5=80周期に相当するデータしか保存できない。これに対して、本実施の形態1によれば、1段のバッファを10とし、リングバッファの段数を3段とすれば、30個のデータを記録できる記憶領域で10=1000周期に相当するデータを保存することができる。すなわち、本実施の形態1は、同一の記憶容量の記憶領域に、従来技術よりもさらに長期間のデータを記録することができる。 In the first embodiment configured as described above, it will be described that long-term data can be stored as compared with the conventional technology if the storage capacity is the same. In the first embodiment, as in the prior art, recent data is recorded in detail, and old data is roughly recorded in the form of a representative value (average value), thereby corresponding to a limited storage area as long as possible. Record the data. However, for example, when a storage area having a capacity capable of recording a total of 31 data is used, according to the prior art, a storage area of 16 + 8 + 4 + 2 + 1 can be taken, and only data corresponding to 16 * 5 = 80 cycles can be stored. . On the other hand, according to the first embodiment, if one buffer is set to 10 and the number of stages of the ring buffer is set to 3, the storage area capable of recording 30 data corresponds to 10 3 = 1000 cycles. You can save data. That is, Embodiment 1 can record data for a longer period of time than in the conventional technique in a storage area having the same storage capacity.

このように、本実施の形態1では、夫々所定数の記録データを格納する複数段のリングバッファと、前記夫々の段のリングバッファが格納する複数の記録データの平均値を夫々算出する複数の平均値算出手段と、を備え、夫々の平均値算出手段は、リングバッファに所定数の記録データが書き込まれる毎に平均値を算出し、算出した平均値を次段のリングバッファに書き込むように構成したので、最近のデータは細かく記録し、古いデータは粗く記録することが可能になるとともに、従来技術に比べてより長期間相当のデータを記録することができる。すなわち、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。また、最後段のリングバッファに書き込まれた記録データに対してローパスフィルタ演算を行うローパスフィルタ手段と、ローパスフィルタ手段による演算結果を記録する累積データ記録手段と、をさらに備えるように構成したので、古いデータをさらに効率的に記録できる効果が得られる。   Thus, in the first embodiment, a plurality of ring buffers each storing a predetermined number of recording data, and a plurality of average values of the plurality of recording data stored in the respective ring buffers are calculated. Average value calculating means, and each average value calculating means calculates an average value every time a predetermined number of recording data is written to the ring buffer, and writes the calculated average value to the next-stage ring buffer. Since it is configured, recent data can be recorded finely, old data can be recorded coarsely, and data corresponding to a longer period can be recorded as compared with the prior art. That is, it is possible to obtain a storage device that efficiently stores data as long as possible. In addition, since it is configured to further comprise a low-pass filter means for performing a low-pass filter operation on the recording data written in the last-stage ring buffer, and a cumulative data recording means for recording a calculation result by the low-pass filter means, It is possible to record old data more efficiently.

なお、バッファ数は10以外であってもかまわないが、バッファ数を10に設定することにより、容易に記録データの対数グラフを描画することのできる効果を得ることができる。   The number of buffers may be other than 10. However, by setting the number of buffers to 10, an effect of easily drawing a logarithmic graph of recording data can be obtained.

実施の形態2.
実施の形態1の記録装置は、機械装置が備えるモータ制御装置に備えられるようにしたが、モータ制御装置ではなく指令生成装置に備えられるようにしてもよい。図3は、本発明にかかる実施の形態2の記録装置を備える機械装置の構成を示す図である。
Embodiment 2. FIG.
The recording apparatus according to the first embodiment is provided in the motor control device provided in the mechanical device, but may be provided in the command generation device instead of the motor control device. FIG. 3 is a diagram illustrating a configuration of a mechanical apparatus including the recording apparatus according to the second embodiment of the present invention.

実施の形態2の機械装置1001は、機械を駆動するモータ100、モータ100を制御するモータ制御装置201、モータ制御装置201への指令を生成し、生成した指令をモータ制御装置201に送信するとともにモータ制御装置201からモータ制御状態量を受信し、受信したモータ制御状態量を記録する指令生成装置301、および指令生成装置301のプログラム生成・装置内部状態のモニタなどを行う上位制御装置400を備えている。   The mechanical device 1001 according to the second embodiment generates a command to the motor 100 that drives the machine, a motor control device 201 that controls the motor 100, and the motor control device 201, and transmits the generated command to the motor control device 201. A command generation device 301 that receives a motor control state amount from the motor control device 201 and records the received motor control state amount, and a host control device 400 that performs program generation of the command generation device 301, monitoring of the internal state of the device, and the like. ing.

指令生成装置301は、モータ制御装置201から受信するモータ制御状態量を記録する記録装置500を備えている。記録装置500の構成および動作は実施の形態1と同等であるので、詳細な説明を省略する。   The command generation device 301 includes a recording device 500 that records a motor control state quantity received from the motor control device 201. Since the configuration and operation of the recording apparatus 500 are the same as those in the first embodiment, detailed description thereof is omitted.

このように、実施の形態2によれば、実施の形態1と同様に、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the second embodiment, as in the first embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態3.
機械装置に備えられる上位制御装置に記録装置を設けるようにしてもよい。図4は、実施の形態3の記録装置を備える機械装置の構成を説明する図である。
Embodiment 3 FIG.
A recording device may be provided in a host control device provided in the mechanical device. FIG. 4 is a diagram illustrating a configuration of a mechanical device including the recording device according to the third embodiment.

図示するように、機械装置1002は、機械を駆動するモータ100、モータ100を制御するモータ制御装置201、モータ制御装置201への指令を生成し、生成した指令をモータ制御装置201に送信するとともにモータ制御装置201からモータ制御状態量を受信する指令生成装置302、指令生成装置302のプログラム生成・装置内部状態のモニタなどを行うとともに指令生成装置302からモータ制御状態量を受信し、受信したモータ制御状態量を記録する上位制御装置401を備えている。ここで、指令生成装置302はモータ制御装置201から受信したモータ制御状態量をモータ制御装置201から受信する周期よりも粗い周期で上位制御装置401に送信する。   As illustrated, the mechanical device 1002 generates a command to the motor 100 that drives the machine, a motor control device 201 that controls the motor 100, and the motor control device 201, and transmits the generated command to the motor control device 201. The command generation device 302 that receives the motor control state quantity from the motor control device 201, the program generation of the command generation device 302, the monitoring of the internal state of the device, and the like, the motor control state quantity received from the command generation device 302, and the received motor A host control device 401 for recording the control state quantity is provided. Here, the command generation device 302 transmits the motor control state quantity received from the motor control device 201 to the host control device 401 at a coarser cycle than the cycle received from the motor control device 201.

上位制御装置401は、モータ制御状態量を記録する記録装置500を備えている。記録装置500は実施の形態1と同等の構成を有しているので、詳細な説明を省略する。   The host control device 401 includes a recording device 500 that records motor control state quantities. Since the recording apparatus 500 has the same configuration as that of the first embodiment, detailed description thereof is omitted.

このように、実施の形態3によれば、実施の形態1と同様に、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the third embodiment, as in the first embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態4.
次に、実施の形態4の記録装置について説明する。実施の形態4の記録装置が搭載される機械装置の構成は実施の形態1と同様である。図5は、機械装置1000のモータ制御装置200に備えられる実施の形態4の記録装置の構成を示す図である。なお、ここでは、記録装置に510という符号を付すこととする。
Embodiment 4 FIG.
Next, a recording apparatus according to the fourth embodiment will be described. The configuration of the mechanical device on which the recording apparatus of the fourth embodiment is mounted is the same as that of the first embodiment. FIG. 5 is a diagram illustrating a configuration of a recording apparatus according to the fourth embodiment provided in the motor control apparatus 200 of the mechanical apparatus 1000. Here, the recording apparatus is denoted by reference numeral 510.

図5に示すように、実施の形態4の記録装置510は、実施の形態1の記録手段の構成からローパスフィルタ手段509および累積データ記録手段503を省略した記録手段512を備える構成となっている。実施の形態1では最上位のリングバッファ(第5リングバッファ508)にてデータをシフトする際、最終バッファの値をローパスフィルタ手段509に入力されたが、記録装置510では、最終バッファの値はシフト後消去される。   As shown in FIG. 5, the recording apparatus 510 according to the fourth embodiment includes a recording unit 512 in which the low-pass filter unit 509 and the cumulative data recording unit 503 are omitted from the configuration of the recording unit according to the first embodiment. . In the first embodiment, when data is shifted by the highest ring buffer (fifth ring buffer 508), the value of the final buffer is input to the low-pass filter unit 509. In the recording apparatus 510, the value of the final buffer is Erased after shifting.

なお、本実施の形態4では、記録装置510をモータ制御装置200内部に搭載する場合を例に挙げて説明したが、指令生成装置300内部や上位制御装置400内部に搭載するように構成しても構わない。   In the fourth embodiment, the case where the recording device 510 is mounted in the motor control device 200 has been described as an example. However, the recording device 510 is configured to be mounted in the command generation device 300 or the host control device 400. It doesn't matter.

このように、実施の形態4によれば、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the fourth embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態5.
次に、実施の形態5の記録装置について説明する。実施の形態5の記録装置が搭載される機械装置の構成は実施の形態1と同様である。図6は、機械装置1000のモータ制御装置200に備えられる実施の形態5の記録装置の構成を示す図である。実施の形態6の記録装置に520という符号を付すこととする。
Embodiment 5 FIG.
Next, a recording apparatus according to the fifth embodiment will be described. The configuration of the mechanical device on which the recording apparatus of the fifth embodiment is mounted is the same as that of the first embodiment. FIG. 6 is a diagram illustrating a configuration of a recording apparatus according to the fifth embodiment provided in the motor control apparatus 200 of the mechanical apparatus 1000. The recording apparatus of the sixth embodiment is denoted by reference numeral 520.

図6に示すように、記録装置520は第4の実施の形態の記録手段512の構成から記録データ演算手段501を省略した構成となっている。すなわち、モータ制御状態量がそのまま第1リングバッファ504の第1バッファに入力される。   As shown in FIG. 6, the recording apparatus 520 has a configuration in which the recording data calculation unit 501 is omitted from the configuration of the recording unit 512 of the fourth embodiment. That is, the motor control state quantity is directly input to the first buffer of the first ring buffer 504.

第1リングバッファ504の第1バッファの入力がモータ制御状態量そのものであることをのぞき、第1リングバッファ504の第1バッファにデータが入力されたあとの動作は実施の形態4と同様である。   Except that the input of the first buffer of the first ring buffer 504 is the motor control state quantity itself, the operation after the data is input to the first buffer of the first ring buffer 504 is the same as that of the fourth embodiment. .

なお、以上においては記録装置520をモータ制御装置200内部に搭載する場合を例に挙げて説明したが、指令生成装置300内部や上位制御装置400内部に搭載するように構成しても構わない。   In the above description, the case where the recording device 520 is mounted in the motor control device 200 has been described as an example. However, the recording device 520 may be mounted in the command generation device 300 or the host control device 400.

このように、実施の形態5によれば、実施の形態1と同様に、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the fifth embodiment, as in the first embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態6.
次に、実施の形態6の記録装置について説明する。実施の形態6の記録装置が搭載される機械装置の構成は実施の形態1と同様である。図7は、機械装置1000のモータ制御装置200に備えられる実施の形態6の記録装置の構成を示す図である。実施の形態7の記録装置には、符号530を付すこととする。
Embodiment 6 FIG.
Next, a recording apparatus according to the sixth embodiment will be described. The configuration of the mechanical apparatus on which the recording apparatus of the sixth embodiment is mounted is the same as that of the first embodiment. FIG. 7 is a diagram illustrating a configuration of a recording apparatus according to the sixth embodiment provided in the motor control apparatus 200 of the mechanical apparatus 1000. Reference numeral 530 is assigned to the recording apparatus of the seventh embodiment.

図7に示すように、記録装置530は第1の実施の形態の記録装置500の構成に初期値記録手段531が追加された構成となっている。初期値記録手段531には、機械装置1000立ち上げ直後の第1リングバッファ504に記録された記録データが入力され、該入力された記録データを記録する。例えば初期値記録手段531のバッファ数が30で、第1リングバッファ504のバッファ数が10の場合、機械装置1000立ち上げ後、第1リングバッファ504の第10バッファに値から値が出力される度に初期値記録手段531のバッファにデータが記録され、初期値記録手段531のすべてのバッファにデータが記録された時点(30回データを書き込んだ時点)で初期値記録手段531のバッファへの書き込みが停止され、書き込みを停止した時点の記録データを常時記録しておく。   As shown in FIG. 7, the recording device 530 has a configuration in which an initial value recording unit 531 is added to the configuration of the recording device 500 of the first embodiment. The initial value recording means 531 receives the recording data recorded in the first ring buffer 504 immediately after the machine apparatus 1000 is started up, and records the input recording data. For example, when the number of buffers of the initial value recording unit 531 is 30 and the number of buffers of the first ring buffer 504 is 10, the value is output from the value to the tenth buffer of the first ring buffer 504 after the machine device 1000 is started up. Each time the data is recorded in the buffer of the initial value recording means 531 and the data is recorded in all the buffers of the initial value recording means 531 (at the time when the data is written 30 times), the data in the buffer of the initial value recording means 531 is recorded. Recording is always recorded at the time when writing is stopped and writing is stopped.

なお、以上では記録装置530をモータ制御装置200内部に搭載する場合を例に挙げて説明したが、指令生成装置300内部や、上位制御装置400内部に搭載するようにしても構わない。   In the above description, the case where the recording device 530 is mounted inside the motor control device 200 has been described as an example. However, the recording device 530 may be mounted inside the command generation device 300 or the host control device 400.

このように、実施の形態6によれば、装置立上げ当初の詳細なデータを記録することができるので、実施の形態1の効果に加え、機械装置の予防保全や異常診断にさらに有用な記録装置を得ることができるという効果を奏する。   As described above, according to the sixth embodiment, detailed data at the time of starting the apparatus can be recorded. Therefore, in addition to the effects of the first embodiment, the recording is further useful for preventive maintenance and abnormality diagnosis of the mechanical device. There exists an effect that an apparatus can be obtained.

実施の形態7.
次に、実施の形態7の記録装置について説明する。実施の形態7の記録装置が搭載される機械装置の構成は実施の形態2と同様であり、機械装置1001の指令生成装置301に備えられる実施の形態7の記録装置の構成も実施の形態2と同様である。ただし、実施の形態7の記録データ演算手段の動作が実施の形態2の動作とは異なる。実施の形態7の記録データ演算手段の動作を以下に説明する。
Embodiment 7 FIG.
Next, a recording apparatus according to the seventh embodiment will be described. The configuration of the mechanical device on which the recording device of the seventh embodiment is mounted is the same as that of the second embodiment, and the configuration of the recording device of the seventh embodiment provided in the command generation device 301 of the mechanical device 1001 is also the second embodiment. It is the same. However, the operation of the recording data calculation means of the seventh embodiment is different from the operation of the second embodiment. The operation of the recording data calculation means of the seventh embodiment will be described below.

実施の形態7における記録データ演算手段501には、モータ位置指令、モータ位置が周期的に入力されるほか、位置指令完了フラグ、位置決め完了フラグが入力される。位置指令完了フラグは各動作の開始毎に0となり、位置指令が目標位置に到達すると1に変更されるフラグである。位置決め完了フラグは各動作の開始毎に0となり、モータ位置が目標位置のあらかじめ指定された近傍以内に入ったときに1となるフラグである。記録データ演算手段501は、位置指令完了フラグが1に変わるたびに位置決め完了フラグが1に変わるまでの時間を測定し、測定した結果を次に位置指令完了フラグが0になった周期に記憶手段502が備える第1リングバッファ504の第1バッファに書き込む。記憶手段502は、記録データ演算手段501から値が出力される度に第1リングバッファ504の第1バッファに値を書き込み、記録データをシフトする。   In addition to the motor position command and the motor position being periodically input to the recording data calculation unit 501 in the seventh embodiment, a position command completion flag and a positioning completion flag are input. The position command completion flag is 0 at the start of each operation, and is changed to 1 when the position command reaches the target position. The positioning completion flag is 0 at the start of each operation, and is 1 when the motor position falls within a predetermined vicinity of the target position. The recording data calculation means 501 measures the time until the positioning completion flag changes to 1 every time the position command completion flag changes to 1, and stores the measured result in the period when the position command completion flag becomes 0 next. Write to the first buffer of the first ring buffer 504 included in 502. The storage unit 502 writes a value to the first buffer of the first ring buffer 504 each time a value is output from the recording data calculation unit 501, and shifts the recording data.

なお、以上の説明においては、位置指令完了フラグが1になってから位置決め完了フラグが1にかわるまでの時間(整定時間)を記録データ演算手段の出力としたが、位置指令完了フラグが1になってから位置決め完了フラグが1にかわるまでの間のモータ位置指令とモータ位置の差が負になる区間のモータ位置指令とモータ位置の差絶対値をオーバーシュート値として出力するようにしてもよい。   In the above description, the time from when the position command completion flag is set to 1 until the positioning completion flag is changed to 1 (settling time) is the output of the recording data calculation means, but the position command completion flag is set to 1. The absolute value of the difference between the motor position command and the motor position in the section where the difference between the motor position command and the motor position from when the positioning completion flag changes to 1 is negative may be output as an overshoot value. .

また、記録装置500を指令生成装置301内部に搭載する場合を例に挙げて説明したが、モータ制御装置201内部や上位制御装置400内部に搭載するようにしても構わない。   Further, although the case where the recording apparatus 500 is mounted inside the command generation apparatus 301 has been described as an example, it may be mounted inside the motor control apparatus 201 or the host control apparatus 400.

このように、実施の形態7によれば、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the seventh embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態8.
次に、実施の形態8の記録装置について説明する。実施の形態8の記録装置が搭載される機械装置の構成は実施の形態1と同様である。図8は、機械装置1000のモータ制御装置200に備えられる実施の形態8の記録装置の構成を示す図である。実施の形態8の記録装置に符号540を付すこととする。
Embodiment 8 FIG.
Next, a recording apparatus according to the eighth embodiment will be described. The configuration of the mechanical device on which the recording apparatus of the eighth embodiment is mounted is the same as that of the first embodiment. FIG. 8 is a diagram illustrating a configuration of a recording apparatus according to an eighth embodiment provided in the motor control apparatus 200 of the mechanical apparatus 1000. Reference numeral 540 is assigned to the recording apparatus of the eighth embodiment.

図8に示すように、記録装置540は第1の実施の形態の記録装置500の構成、すなわち記録データ演算手段501、記録手段502および累積データ記録手段503からなる単位記録装置を複数有する構成となっている。図8では、第1単位記録装置541、第2単位記録装置542を示している。   As shown in FIG. 8, the recording apparatus 540 has the configuration of the recording apparatus 500 of the first embodiment, that is, a configuration having a plurality of unit recording apparatuses each including a recording data calculation unit 501, a recording unit 502, and a cumulative data recording unit 503. It has become. FIG. 8 shows a first unit recording device 541 and a second unit recording device 542.

実施の形態1では一種類のモータ制御状態量、すなわちモータ電流指令絶対値のみを記録データとしたが、記録装置540が有する各単位記録装置は、夫々別々の種類の記録データを記録する。例えば、第1単位記録装置541は、モータ電流指令が入力され、第1単位記録装置541が備える記録データ演算手段501は入力されたモータ電流指令からモータ電流指令絶対値を算出し、第1単位記録装置541の記録手段502はモータ電流指令絶対値を記録データとして記録する。第2単位記録装置542は、モータ位置誤差が入力され、第2単位記録装置542が備える記録データ演算手段501は入力されたモータ位置誤差からモータ位置誤差絶対値を算出し、第2単位記録装置542の記録手段502は前記算出したモータ位置誤差絶対値を記録データとして記録する。さらに、図示しない第3単位記録装置は、モータ電流値が入力され、第3単位記録装置が備える記録データ演算手段501は入力されたモータ電流値からモータ電流発振成分絶対値の実効値を算出し、第3単位記録装置の記録手段502は前記算出したモータ電流発振成分絶対値の実効値を記録データとして記録する。夫々の単位記録装置が備える記録データ演算手段501に対するモータ制御状態量の入力は同一の周期・タイミングとなる。夫々の単位記録装置が備える記録手段502が内部に備える構成および動作ならびに累積データ記録手段503の動作は実施の形態1と同等であるので、説明を省略する。   In the first embodiment, only one type of motor control state quantity, that is, only the motor current command absolute value is used as the recording data. However, each unit recording device included in the recording device 540 records different types of recording data. For example, the first unit recording device 541 receives a motor current command, and the recording data calculation means 501 included in the first unit recording device 541 calculates the motor current command absolute value from the input motor current command, and the first unit recording device 541 The recording means 502 of the recording device 541 records the motor current command absolute value as recording data. The second unit recording device 542 receives the motor position error, and the recording data calculation means 501 provided in the second unit recording device 542 calculates the absolute value of the motor position error from the input motor position error. A recording unit 502 of 542 records the calculated motor position error absolute value as recording data. Further, a motor current value is input to a third unit recording device (not shown), and a recording data calculation means 501 provided in the third unit recording device calculates an effective value of the absolute value of the motor current oscillation component from the input motor current value. The recording unit 502 of the third unit recording apparatus records the effective value of the calculated motor current oscillation component absolute value as recording data. The input of the motor control state quantity to the recording data calculation means 501 provided in each unit recording apparatus has the same cycle and timing. Since the configuration and operation of the recording unit 502 included in each unit recording apparatus and the operation of the cumulative data recording unit 503 are the same as those in the first embodiment, description thereof will be omitted.

なお、以上の説明では、記録するデータとしてモータ電流指令絶対値、モータ位置誤差絶対値、モータ電流発振成分絶対値の実効値を挙げたが、モータ速度誤差、モータ電流実効値など他の値でも構わない。また、記録するデータの種類も3種類に限定する必要はなく、2種類でも4種類以上でも構わない。さらに記録手段502がモータ制御装置200内部に搭載する場合を例に挙げて説明したが、指令生成装置300内部や上位制御装置400内部に搭載するようにしても構わない。   In the above description, the motor current command absolute value, motor position error absolute value, and motor current oscillation component absolute value effective value are listed as data to be recorded, but other values such as motor speed error and motor current effective value may be used. I do not care. Also, the type of data to be recorded need not be limited to three, and may be two or four or more. Furthermore, although the case where the recording unit 502 is mounted inside the motor control device 200 has been described as an example, it may be mounted inside the command generation device 300 or the host control device 400.

このように、実施の形態8によれば、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the eighth embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態9.
次に、実施の形態9の記録装置について説明する。実施の形態9の記録装置の構成は、実施の形態8と同等であるが、実施の形態9では、各単位記録装置へのモータ制御状態量の入力タイミングが異なる。
Embodiment 9 FIG.
Next, a recording apparatus according to the ninth embodiment will be described. The configuration of the recording apparatus of the ninth embodiment is the same as that of the eighth embodiment, but the input timing of the motor control state quantity to each unit recording apparatus is different in the ninth embodiment.

実施の形態9においては、夫々の単位記録装置への入力周期は同一となっており、入力周期は、例えばモータ制御周期と等倍もしくは整数倍の周期となっている。ただし、各単位記録装置への入力開始は同時ではなく、1周期もしくは整数倍の周期だけずらしている。例えば、第1単位記録装置541へはモータ制御開始から入力をはじめ、第2単位記録装置542へはモータ制御開始の1周期あとから入力をはじめ、第3単位記録装置へはモータ制御開始の2周期あとから入力を開始する。   In the ninth embodiment, the input cycle to each unit recording device is the same, and the input cycle is, for example, a cycle equal to or an integral multiple of the motor control cycle. However, the input start to each unit recording apparatus is not simultaneous, but is shifted by one cycle or an integral multiple cycle. For example, input to the first unit recording device 541 starts from the start of motor control, input to the second unit recording device 542 starts from one cycle after the start of motor control, and motor control starts to 2 to the third unit recording device. Input starts after a period.

このようにデータ記録開始タイミングをずらすことにより、夫々の単位記録装置が備える記録手段502での第1平均値演算手段505が演算を行うタイミングがずれるので、実施の形態9によれば、実施の形態8による効果に加え、計算負荷を複数の単位記録装置間で平準化できる効果を得ることができる。   By shifting the data recording start timing in this way, the timing at which the first average value calculating means 505 performs the calculation in the recording means 502 provided in each unit recording apparatus is shifted, so according to the ninth embodiment, In addition to the effect of the eighth aspect, it is possible to obtain the effect that the calculation load can be leveled among the plurality of unit recording apparatuses.

実施の形態10.
次に、実施の形態10の記録装置について説明する。実施の形態10の記録装置を搭載する機械装置の構成は実施の形態1と同等である。図9は、機械装置1000のモータ制御装置200に備えられる実施の形態10の記録装置の構成を示す図である。実施の形態10の記録装置には、符号550を付すこととする。
Embodiment 10 FIG.
Next, a recording apparatus according to the tenth embodiment will be described. The configuration of the mechanical device on which the recording apparatus of the tenth embodiment is mounted is the same as that of the first embodiment. FIG. 9 is a diagram illustrating a configuration of a recording apparatus according to the tenth embodiment provided in the motor control apparatus 200 of the mechanical apparatus 1000. Reference numeral 550 is assigned to the recording apparatus of the tenth embodiment.

図9に示すように、記録装置550は、記録データ演算手段551を一つと、記録手段と累積データ記録手段とのペアを複数有している。記録データ演算手段551は、モータ100の動作範囲を複数のエリアに分割し、分割されたエリア毎に得られた個別モータ制御状態量を夫々別々の記録手段に記録する。分割された夫々のエリアを小文字のアルファベットの符号を付して区別し、夫々の分割エリアのモータ制御状態量を記録する記録手段および累積データ記録手段の符号552、553に夫々分割エリアの符号と同じ添え字を添えて、夫々区別するとする。すなわち、エリアaのモータ制御状態量を記録する記録手段、累積データ記録手段の符号を夫々552a、553aとし、エリアbのモータ制御状態量を記録する記録手段、累積データ記録手段の符号を夫々552b、553bとする。   As shown in FIG. 9, the recording apparatus 550 has one recording data calculation means 551 and a plurality of pairs of recording means and cumulative data recording means. The recording data calculation means 551 divides the operating range of the motor 100 into a plurality of areas, and records the individual motor control state quantities obtained for each divided area in separate recording means. Each divided area is distinguished by attaching a lower case alphabetic code, and a code 552, 553 of the recording means for recording the motor control state quantity of each divided area and a code 552, 553 of the cumulative data recording means respectively. Assume that the same subscript is added to distinguish each. That is, the recording means for recording the motor control state quantity in area a and the cumulative data recording means are denoted by 552a and 553a, respectively, and the recording means for recording the motor control state quantity in area b and the cumulative data recording means are denoted by 552b. 553b.

上記構成により、全てのエリアに対応する記録手段に毎周期書き込まれるのではなく、モータ100の現在位置に応じたエリアの記録手段にのみデータが書き込まれる。各エリア記録手段では、データが記録データ演算手段から書き込まれた場合のみデータの書き込みやデータのシフトを行う。各エリアの記録手段での動作は、毎周期ごとに実施されるのではなく、データが書き込まれたときのみ実施されることを除くと、実施の形態1の記録手段内部の記録手段及び累積データ記録手段の動作と同一であるため説明は省略する。   With the above configuration, data is not written to the recording means corresponding to all areas every period, but data is written only to the recording means in the area corresponding to the current position of the motor 100. Each area recording means performs data writing and data shifting only when data is written from the recording data calculation means. The operation of the recording means in each area is not performed every period, but only when data is written, except for the recording means and accumulated data in the recording means of the first embodiment. Since the operation is the same as that of the recording means, description thereof is omitted.

このように、実施の形態10によれば、エリア毎に分けてデータを記録するため、機械要素の特定のエリアが損傷する場合などに異常を検知しやすくなるという効果がある。   Thus, according to the tenth embodiment, since data is recorded separately for each area, there is an effect that it is easy to detect an abnormality when a specific area of a machine element is damaged.

実施の形態11.
実施の形態10では、エリア毎に異なる記録手段にモータ制御状態量を記録するようにした。実施の形態11では、さらに、夫々のリングバッファをどの記録手段に割り当てるかを変更可能に構成されている。さらにリングバッファの割り当ては、モータ100がよく動くエリアほど段数が多くなるように変更される。
Embodiment 11 FIG.
In the tenth embodiment, the motor control state quantity is recorded in different recording means for each area. In the eleventh embodiment, the recording means to which each ring buffer is assigned can be changed. Further, the allocation of the ring buffer is changed so that the number of steps increases in the area where the motor 100 moves well.

各エリアの記録手段(記録手段552a、記録手段552b、・・・)の第1リングバッファ504は夫々属する記録手段が決まっている。各エリアの記録手段の第2リングバッファ以降は1段下のリングバッファまでデータを書き込んだエリアから割り当てていく。   The first ring buffer 504 of each area recording means (recording means 552a, recording means 552b,...) Has a recording means to which it belongs. After the second ring buffer of the recording means in each area, allocation is performed from the area in which data is written up to the ring buffer one stage below.

このように、実施の形態11によれば、より頻繁に動作するエリアに記憶領域を多く割り当てることが出来る。   Thus, according to the eleventh embodiment, it is possible to allocate more storage areas to areas that operate more frequently.

実施の形態12.
実施の形態1では、各リングバッファのバッファ数が同一であったが、バッファ数の数をリングバッファ毎に変化させてもよい。実施の形態12は、各リングバッファでのバッファ数を上位のリングバッファほど少なくする。例えば、図2において、第1リングバッファ504〜第5リングバッファ508が備えるバッファ数が夫々10となっているが、本実施の形態12では、第1リングバッファ504のバッファ数を14、第2リングバッファ506のバッファ数を12、第3リングバッファのバッファ数を10、第4リングバッファのバッファ数を8、第5リングバッファ508のバッファ数を6とする。このように構成することによって、上位のリングバッファほどバッファ数を少なくすることにより、同じサイズの記憶領域に最近の値をより細かく記録することができる。
Embodiment 12 FIG.
In the first embodiment, the number of buffers in each ring buffer is the same. However, the number of buffers may be changed for each ring buffer. In the twelfth embodiment, the number of buffers in each ring buffer is reduced as the upper ring buffer. For example, in FIG. 2, the number of buffers included in the first ring buffer 504 to the fifth ring buffer 508 is 10, but in the twelfth embodiment, the number of buffers of the first ring buffer 504 is 14, The number of buffers in the ring buffer 506 is 12, the number of buffers in the third ring buffer is 10, the number of buffers in the fourth ring buffer is 8, and the number of buffers in the fifth ring buffer 508 is 6. With this configuration, the recent value can be recorded more finely in the storage area of the same size by reducing the number of buffers in the upper ring buffer.

実施の形態13.
実施の形態10では各リングバッファのバッファには記録データ演算手段551から入力される記録データを書き込むのみであったが、実施の形態13では、記録データと共に、各記録手段552a、552bの第1リングバッファ504の第1バッファに書きこんだ日時(タイムスタンプ)もあわせて記録する。また第2リングバッファ以降は、第1バッファにデータを書き込むたびに、平均値演算手段505により平均されるデータのタイムスタンプを参照し、最初のデータのタイムスタンプと最後のデータのタイムスタンプとを記録する。
Embodiment 13 FIG.
In the tenth embodiment, only the recording data input from the recording data calculation unit 551 is written in the buffer of each ring buffer. However, in the thirteenth embodiment, the first recording unit 552a, 552b includes the first data. The date and time (time stamp) written in the first buffer of the ring buffer 504 is also recorded. After the second ring buffer, each time data is written to the first buffer, the time stamp of the data averaged by the average value calculating means 505 is referred to, and the time stamp of the first data and the time stamp of the last data are obtained. Record.

このように、実施の形態13によれば、タイムスタンプも併せて記録することにより、必ずしも毎周期データが記録されるわけではない各エリアのデータがいつ記録されたものか容易に判定できるようになる。   As described above, according to the thirteenth embodiment, by recording the time stamp together, it is possible to easily determine when the data of each area, in which the data of each period is not necessarily recorded, is recorded. Become.

実施の形態14.
次に、実施の形態14の記録装置について説明する。実施の形態14の記録装置を搭載する機械装置の構成は実施の形態1と同等である。図10は、機械装置1000のモータ制御装置200に備えられる実施の形態14の記録装置の構成を示す図である。実施の形態14の記録装置には、符号560を付すこととする。
Embodiment 14 FIG.
Next, a recording apparatus according to the fourteenth embodiment will be described. The configuration of the mechanical device on which the recording apparatus of the fourteenth embodiment is mounted is the same as that of the first embodiment. FIG. 10 is a diagram illustrating a configuration of a recording apparatus according to a fourteenth embodiment provided in the motor control apparatus 200 of the mechanical apparatus 1000. Reference numeral 560 is assigned to the recording apparatus of the fourteenth embodiment.

図示するように、実施の形態14の記録装置560は、記録データ演算手段501と記録手段562とを備えている。記録手段562は、第1〜第5リングバッファ504〜508と、第1〜第5ローパスフィルタ手段565〜569とを備えている。   As shown in the figure, the recording apparatus 560 of the fourteenth embodiment includes a recording data calculation unit 501 and a recording unit 562. The recording unit 562 includes first to fifth ring buffers 504 to 508 and first to fifth low-pass filter units 565 to 569.

記録データ演算手段501から入力された記録データは、記録手段562が備える第1リングバッファ504に入力されるとともに、1段目のローパスフィルタ手段565に入力される。記録データが入力されたとき、第1リングバッファ504の各バッファのデータは実施の形態1と同様にシフトされる。第1リングバッファ504のバッファ数だけ記録データ演算手段501からデータが出力されるたびに、第1ローパスフィルタ手段565の出力が、第2ローパスフィルタ手段567に入力されるとともに、第2リングバッファ506の第1バッファに書き込まれ、第2リングバッファ506の各バッファのデータは第1リングバッファ504と同様にシフトされる。第2ローパスフィルタ手段567と第2リングバッファ506に、第2リングバッファ506のバッファ数だけデータが入力されるたびに、第2ローパスフィルタ手段567の出力が第3ローパスフィルタ手段(図示せず)に入力されるとともに、第3リングバッファ(図示せず)に入力される。以後同様の動作が各段のローパスフィルタ手段とリングバッファとにおいて行われる。   The recording data input from the recording data calculation unit 501 is input to the first ring buffer 504 provided in the recording unit 562 and also input to the first-stage low-pass filter unit 565. When recording data is input, the data in each buffer of the first ring buffer 504 is shifted as in the first embodiment. Each time data is output from the recording data calculation unit 501 by the number of buffers of the first ring buffer 504, the output of the first low-pass filter unit 565 is input to the second low-pass filter unit 567 and the second ring buffer 506 is output. The data of each buffer of the second ring buffer 506 is shifted in the same manner as the first ring buffer 504. Every time data is input to the second low-pass filter unit 567 and the second ring buffer 506 by the number of buffers of the second ring buffer 506, the output of the second low-pass filter unit 567 is the third low-pass filter unit (not shown). And a third ring buffer (not shown). Thereafter, the same operation is performed in the low-pass filter means and the ring buffer at each stage.

このように、実施の形態14によれば、可及的に長期間のデータを効率的に記憶する記憶装置を得ることができる。   Thus, according to the fourteenth embodiment, it is possible to obtain a storage device that efficiently stores data for as long a period as possible.

実施の形態15.
次に、実施の形態15について説明する。実施の形態15の機械装置の構成を図11に示す。図示するように、実施の形態15の機械装置は、機械を駆動するモータ100、モータ100を制御するとともに、モータ制御状態量を記録するモータ制御装置202、モータ制御装置202への指令を生成し、生成した指令をモータ制御装置202に送信する指令生成装置303、指令生成装置303のプログラム生成・装置内部状態のモニタなどを行う上位制御装置400を備えている。
Embodiment 15 FIG.
Next, an embodiment 15 will be described. FIG. 11 shows the configuration of the mechanical device according to the fifteenth embodiment. As shown in the figure, the mechanical device according to the fifteenth embodiment controls the motor 100 that drives the machine, the motor 100, and generates a command to the motor control device 202 that records the motor control state quantity and the motor control device 202. The command generation device 303 that transmits the generated command to the motor control device 202, and the host control device 400 that performs program generation of the command generation device 303, monitoring of the internal state of the device, and the like are provided.

実施の形態15の記録装置570は、第1記録装置と第2記録装置とに分割され、夫々モータ制御装置202、指令生成装置303に搭載されている。図12は、実施の形態15の記録装置570の構成を示す図である。図示するように、実施の形態15の記録装置570は、実施の形態4の記録手段を二つに分割した構成となっている。すなわち、第1記録装置571は、記録データ演算手段501と、第1記録手段573とを有し、第2記録装置572は、第2記録手段574を有している。第1記録手段573は、第1リングバッファ504と、第1平均値演算手段505とを有している。第2記録手段574は、4段のリングバッファ、すなわち第2リングバッファ506〜第5リングバッファ508と、第2平均値演算手段507〜第4平均値演算手段とを有している。第3リングバッファ、第4リングバッファ、第3平均値演算手段、および第4平均値演算手段は図示していない。   The recording device 570 according to the fifteenth embodiment is divided into a first recording device and a second recording device, and is mounted on the motor control device 202 and the command generation device 303, respectively. FIG. 12 is a diagram illustrating a configuration of the recording device 570 according to the fifteenth embodiment. As shown in the figure, the recording device 570 of the fifteenth embodiment has a configuration in which the recording means of the fourth embodiment is divided into two. That is, the first recording device 571 includes a recording data calculation unit 501 and a first recording unit 573, and the second recording device 572 includes a second recording unit 574. The first recording unit 573 includes a first ring buffer 504 and a first average value calculation unit 505. The second recording unit 574 has four stages of ring buffers, that is, a second ring buffer 506 to a fifth ring buffer 508, and a second average value calculation unit 507 to a fourth average value calculation unit. The third ring buffer, the fourth ring buffer, the third average value calculating means, and the fourth average value calculating means are not shown.

第1〜第5リングバッファ504〜508および第1〜第4平均値演算手段の機能および記録データ演算手段501の機能は実施の形態4と同様である。   The functions of the first to fifth ring buffers 504 to 508 and the first to fourth average value calculating means and the function of the recording data calculating means 501 are the same as those in the fourth embodiment.

このように、記録装置570を二つに分割して持たせるようにしたので、モータ制御装置、指令生成装置とも記憶領域の容量が限られている場合、両者を併せて使用することにより、より多くのデータを記録できる効果がある。   As described above, since the recording device 570 is divided into two parts, when the storage capacity of the motor control device and the command generation device is limited, by using both together, There is an effect that a lot of data can be recorded.

なお、実施の形態15ではモータ制御装置に第1記録装置、指令生成装置に第2記録装置を搭載するようにしたが、モータ制御装置に第1記録装置、上位制御装置に第2記録装置を搭載するようにしてもよいし、指令生成装置に第1記録装置、上位制御装置に第2記録装置を搭載するようにしてもよい。   In the fifteenth embodiment, the first recording device is mounted on the motor control device and the second recording device is mounted on the command generation device. However, the first recording device is mounted on the motor control device, and the second recording device is mounted on the host control device. The command generation device may be equipped with a first recording device, and the host control device may be equipped with a second recording device.

以上のように、本発明にかかる記録装置は、産業用ロボット、実装機、射出成形機、工作機械、印刷機、半導体製造装置、包装機、エレベータ、空調機、車載機器などの機械装置に搭載される記録装置に適用して好適である。   As described above, the recording apparatus according to the present invention is mounted on a mechanical apparatus such as an industrial robot, a mounting machine, an injection molding machine, a machine tool, a printing machine, a semiconductor manufacturing apparatus, a packaging machine, an elevator, an air conditioner, and an in-vehicle device. It is suitable to be applied to a recording apparatus.

100 モータ
200、201、202 モータ制御装置
300、301、302、303 指令生成装置
400、401 上位制御装置
500、510、520、530、540、550、560、570 記録装置
501、551 記録データ演算手段
502、512、552a、552b、562 記録手段
503、553a、553b 累積データ記録手段
504、506、508 リングバッファ
505、507 平均値演算手段
509、565、567、569 ローパスフィルタ手段
531 初期値記録手段
541、542 単位記録装置
571 第1記録装置
572 第2記録装置
573 第1記録手段
574 第2記録手段
1000、1001、1002 機械装置
DESCRIPTION OF SYMBOLS 100 Motor 200, 201, 202 Motor control apparatus 300, 301, 302, 303 Command generation apparatus 400, 401 High-order control apparatus 500, 510, 520, 530, 540, 550, 560, 570 Recording apparatus 501, 551 Recording data calculation means 502, 512, 552a, 552b, 562 Recording means 503, 553a, 553b Cumulative data recording means 504, 506, 508 Ring buffer 505, 507 Average value calculating means 509, 565, 567, 569 Low-pass filter means 531 Initial value recording means 541 , 542 Unit recording device 571 First recording device 572 Second recording device 573 First recording means 574 Second recording means 1000, 1001, 1002 Mechanical device

Claims (7)

夫々所定数の記録データを格納する複数段のリングバッファと、
前記夫々の段のリングバッファが格納する複数の記録データの平均値を夫々算出する複数の平均値算出手段と、
を備え、
前記夫々の平均値算出手段は、前記リングバッファに前記所定数の記録データが書き込まれる毎に平均値を算出し、前記算出した平均値を次段のリングバッファに書き込み、
最下段のリングバッファに書き込まれる記録データは、モータ位置誤差、位置決め時間、摩擦同定値、電流指令、オーバーシュート量、モータ速度、モータ加速度、推定外乱に関する情報のうちの少なくとも1つを含む、
ことを特徴とする記録装置。
A plurality of ring buffers each storing a predetermined number of recording data; and
A plurality of average value calculating means for calculating an average value of a plurality of recording data stored in the ring buffers of the respective stages;
With
Average value calculating means of said respective calculates an average value for each recording data of the predetermined number is written into the ring buffer, write the average value described above is calculated in the next stage of the ring buffer,
The record data written in the lowermost ring buffer includes at least one of motor position error, positioning time, friction identification value, current command, overshoot amount, motor speed, motor acceleration, and estimated disturbance information.
A recording apparatus.
夫々所定数の記録データを格納する複数段のリングバッファと、
前記夫々の段のリングバッファが格納する複数の記録データの平均値を夫々算出する複数の平均値算出手段と、
最後段のリングバッファに書き込まれている記録データに対してローパスフィルタ演算を行うローパスフィルタ手段と、
前記ローパスフィルタ手段による演算結果を記録する累積データ記録手段と、
を備え、
前記夫々の平均値算出手段は、前記リングバッファに前記所定数の記録データが書き込まれる毎に平均値を算出し、前記算出した平均値を次段のリングバッファに書き込む、
ことを特徴とする記録装置。
A plurality of ring buffers each storing a predetermined number of recording data; and
A plurality of average value calculating means for calculating an average value of a plurality of recording data stored in the ring buffers of the respective stages;
Low-pass filter means for performing a low-pass filter operation on the recording data written in the last-stage ring buffer;
Cumulative data recording means for recording the calculation result by the low-pass filter means;
With
Each of the average value calculating means calculates an average value each time the predetermined number of recording data is written to the ring buffer, and writes the calculated average value to the next-stage ring buffer.
A recording apparatus.
夫々所定数の記録データを格納する複数段のリングバッファと、
前記夫々の段のリングバッファが格納する複数の記録データの平均値を夫々算出する複数の平均値算出手段と、
記録データの初期値を記憶する初期値記憶手段と、
を備え、
前記夫々の平均値算出手段は、前記リングバッファに前記所定数の記録データが書き込まれる毎に平均値を算出し、前記算出した平均値を次段のリングバッファに書き込む、
ことを特徴とする記録装置。
A plurality of ring buffers each storing a predetermined number of recording data; and
A plurality of average value calculating means for calculating an average value of a plurality of recording data stored in the ring buffers of the respective stages;
Initial value storage means for storing an initial value of the recording data;
With
Each of the average value calculating means calculates an average value each time the predetermined number of recording data is written to the ring buffer, and writes the calculated average value to the next-stage ring buffer.
A recording apparatus.
夫々所定数の記録データを格納する複数段のリングバッファと、
前記夫々の段のリングバッファに書き込まれる記録データに対して夫々ローパスフィルタ演算を行う複数のローパスフィルタ手段と、
を備え、
前記夫々のローパスフィルタ手段は、前記リングバッファに前記所定数の記録データが書き込まれる毎にローパスフィルタ演算を実行し、演算結果を次段のリングバッファに書き込む、
ことを特徴とする記録装置。
A plurality of ring buffers each storing a predetermined number of recording data; and
A plurality of low-pass filter means for performing low-pass filter operations on the recording data written to the ring buffers of the respective stages;
With
Each of the low-pass filter means performs a low-pass filter calculation every time the predetermined number of recording data is written to the ring buffer, and writes the calculation result to the next-stage ring buffer.
A recording apparatus.
夫々所定数の記録データを格納する複数段のリングバッファと、
前記夫々の段のリングバッファが格納する複数の記録データの平均値を夫々算出する複数の平均値算出手段と、
を備え、
前記夫々の平均値算出手段は、前記リングバッファに前記所定数の記録データが書き込まれる毎に平均値を算出し、前記算出した平均値を次段のリングバッファに書き込み、
前記所定数はリングバッファ毎に異なることを特徴とする記録装置。
A plurality of ring buffers each storing a predetermined number of recording data; and
A plurality of average value calculating means for calculating an average value of a plurality of recording data stored in the ring buffers of the respective stages;
With
Each of the average value calculating means calculates an average value each time the predetermined number of recording data is written to the ring buffer, and writes the calculated average value to the next-stage ring buffer,
The predetermined number you being different from each ring buffer record device.
前記所定数はリングバッファ毎に異なることを特徴とする請求項4に記載の記録装置。 Wherein the predetermined number of record apparatus according to claim 4 you being different from each ring buffer. 最下段のリングバッファに書き込まれる記録データは、モータ位置誤差、位置決め時間、摩擦同定値、電流指令、オーバーシュート量、モータ速度、モータ加速度、推定外乱に関する情報のうちの少なくとも1つを含むことを特徴とする請求項からのいずれか一つに記載の記録装置。 The record data written in the lowermost ring buffer includes at least one of motor position error, positioning time, friction identification value, current command, overshoot amount, motor speed, motor acceleration, and estimated disturbance information. the recording apparatus according to any one of claims 2, wherein 6.
JP2009123405A 2009-05-21 2009-05-21 Recording device Active JP5409111B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009123405A JP5409111B2 (en) 2009-05-21 2009-05-21 Recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009123405A JP5409111B2 (en) 2009-05-21 2009-05-21 Recording device

Publications (2)

Publication Number Publication Date
JP2010271190A JP2010271190A (en) 2010-12-02
JP5409111B2 true JP5409111B2 (en) 2014-02-05

Family

ID=43419330

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009123405A Active JP5409111B2 (en) 2009-05-21 2009-05-21 Recording device

Country Status (1)

Country Link
JP (1) JP5409111B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001340338A (en) * 2000-06-05 2001-12-11 Olympus Optical Co Ltd Ultrasonic diagnosing device
JP4009838B2 (en) * 2002-09-11 2007-11-21 オムロン株式会社 Photoelectric sensor
JP3720346B2 (en) * 2004-03-30 2005-11-24 シャープ株式会社 Portable information processing device
JP4283313B2 (en) * 2004-11-05 2009-06-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Motion detection device and motion detection method

Also Published As

Publication number Publication date
JP2010271190A (en) 2010-12-02

Similar Documents

Publication Publication Date Title
CN105096968B (en) Disc driver and the method for controlling rewriting data
CN102362232B (en) A/D converter and programmable controller system
US10133506B2 (en) Systems and methods for managing non-volatile memory based on temperature
CN103176748A (en) Environmental-based device operation
US20080049354A1 (en) Magnetic disk drive apparatus and method of controlling the same
CN105579970B (en) The method of electronic system and its operation with storage disc life estimation mechanism
JP5138760B2 (en) Information recording device
JP4686358B2 (en) Control device with flash memory
CN103577012A (en) Input device
CN102568609A (en) Systems and methods for autonomous nand refresh
JP2005221258A (en) Encoder
CN107710143A (en) Areas of dielectric management for data storage device
CN105829981A (en) Numerical control apparatus and logging method
US20100118434A1 (en) Storage apparatus and control method of storage apparatus
JP5409111B2 (en) Recording device
CN104747295B (en) Combustion turbine power control method and device
CN102246051A (en) Method for determining a state of at least one component of a control unit
JP2010027189A (en) Tape library system and inventory control method
CN102571090B (en) AD transform method and AD translation circuit
JP2011159240A5 (en)
CN105611979A (en) Hierarchical storage system provided with trial area, storage controller, and program
JP5811683B2 (en) Abnormality diagnosis device
CN110289022B (en) Disk device
CN101325079A (en) Method for recovering management information of a recording medium and apparatus thereof
US8872774B2 (en) Method for correcting and recording initial touch points on touch panel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130724

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130830

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131105

R150 Certificate of patent or registration of utility model

Ref document number: 5409111

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250