JPH0720571Y2 - Recorder - Google Patents
RecorderInfo
- Publication number
- JPH0720571Y2 JPH0720571Y2 JP1988154688U JP15468888U JPH0720571Y2 JP H0720571 Y2 JPH0720571 Y2 JP H0720571Y2 JP 1988154688 U JP1988154688 U JP 1988154688U JP 15468888 U JP15468888 U JP 15468888U JP H0720571 Y2 JPH0720571 Y2 JP H0720571Y2
- Authority
- JP
- Japan
- Prior art keywords
- data
- stored
- difference value
- recorder
- storage
- 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.)
- Expired - Lifetime
Links
Landscapes
- Recording Measured Values (AREA)
Description
【考案の詳細な説明】 (イ)産業上の利用分野 この考案は、工業プラントや研究室などで、物理量や化
学量の変化をフロッピディスク等の記憶媒体に記憶する
記録計に関する。DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Use The present invention relates to a recorder for storing changes in physical quantity and chemical quantity in a storage medium such as a floppy disk in an industrial plant or a laboratory.
(ロ)従来の技術 従来の記録計は、測定信号、つまり入力信号をA/D変換
器でデジタル信号に変換し、所定の周期で取込み、時間
順次にフロッピディスク等の記憶媒体の記憶エリアに落
とし込み記憶している。記憶媒体に記憶されるデータ
は、A/D変換器より取り込まれるデジタル信号のビット
構成である。(B) Conventional technology Conventional recorders convert measured signals, that is, input signals into digital signals with an A / D converter, capture them at a predetermined cycle, and sequentially store them in a storage area of a storage medium such as a floppy disk. I remember it. The data stored in the storage medium is the bit configuration of the digital signal taken in by the A / D converter.
(ハ)考案が解決しようとする課題 上記従来の記録計では、毎サンプリング時に取り込まれ
るデータのビット構成は同じである。それゆえ、1デー
タのビット構成が大であり、サンプリング周期が短い場
合には、データを記憶するのに、多大の容量の記憶媒体
を必要とする。小さな記憶容量のものを使用すると、す
ぐに満ぱいになり、交換をしなければならず、手間をく
い、煩雑となる。1個の記憶媒体を出来るだけ長く使用
するためには、データのビット構成を少なくし、サンプ
リング周期を長くすればよいが、それでは精度の良い記
録を行うことができない。(C) Problems to be Solved by the Invention In the above-mentioned conventional recorder, the bit configuration of the data taken in at each sampling is the same. Therefore, when the bit structure of one data is large and the sampling period is short, a large capacity storage medium is required to store the data. Using one with a small storage capacity quickly fills it up, requires replacement and is cumbersome and cumbersome. In order to use one storage medium as long as possible, it is sufficient to reduce the bit configuration of data and lengthen the sampling cycle, but this cannot perform accurate recording.
この考案は、上記問題点に着目してなされたものであっ
て、データ精度を落とすことなく、それでいて、1個の
記憶媒体にできるだけ多くのデータを記憶し得る記録計
を提供することを目的としている。The present invention has been made in view of the above problems, and an object thereof is to provide a recorder capable of storing as much data as possible in one storage medium without lowering the data accuracy. There is.
(ニ)課題を解決するための手段及び作用 この考案の記録計は、入力データを所定の周期でサンプ
リングして取込み、デジタルデータとして記憶手段に記
憶するものにおいて、今回サンプリングにおけるデジタ
ルデータと前回のサンプリングのデジタルデータの差値
を求める差値算出手段と、前記記憶手段の所定の基準エ
リアにデジタルデータの全ビットを記憶し、この全ビッ
トが記憶されるデータに後続するデータについては、前
記差値を記憶するように制御する記憶制御手段とを備え
ている。(D) Means and Actions for Solving the Problems The recorder of the present invention is one in which input data is sampled and taken in at a predetermined cycle and stored in the storage means as digital data. Difference value calculating means for obtaining a difference value of sampling digital data, and all bits of the digital data are stored in a predetermined reference area of the storage means. Storage control means for controlling the storage of the value.
この記録計では、入力データがサンプリングにより取込
まれると、そのデータを記憶する記憶手段の記憶エリア
が基準エリア、例えば記憶手段がフロッピディスクの場
合ブロックの先頭エリアか判別し、基準エリアであれ
ば、そこに今回取込んだデータの全ビットを記憶する。
そして、以降のサンプリングでは、今回と前回のデータ
の差値を差値算出手段で求め、この差値を記憶する。一
般にデータの変化は非常に小さいので、差値は小ビット
のデータで記憶できるので、全体として同じサンプリン
グ周期で1ブロックに記憶し得るデータ数が増大する。In this recorder, when the input data is taken in by sampling, the storage area of the storage means for storing the data is a reference area, for example, if the storage means is a floppy disk, it is determined whether it is the head area of the block, and if it is the reference area. , All the bits of the data captured this time are stored there.
Then, in the subsequent sampling, the difference value between the current data and the previous data is obtained by the difference value calculation means, and this difference value is stored. Generally, since the change of data is very small, the difference value can be stored as small-bit data, so that the total number of data that can be stored in one block in the same sampling period increases.
(ホ)実施例 以下、実施例により、この考案をさらに詳細に説明す
る。(E) Embodiment Hereinafter, the present invention will be described in more detail with reference to embodiments.
第2図は、この考案が実施される記録計のブロック図で
ある。この記録計は多チャンネルのアナログ計測信号
I1、I2、…、Inがマルチプレクサ1で各チャンネルに分
離され、さらにA/D変換器2でデジタル信号に変換され
てCPU3に取込まれる。CPU3へのデータの取込みは所定の
サンプリング周期に行われ、取込まれたデータは一時的
にRAM4に記憶される。そして、データは、長期間に亘る
データを記憶するためのフロッピディスク6に落とし込
まれ、記憶される。ROM6は、CPU3のプログラム記憶用に
設けられている。FIG. 2 is a block diagram of a recorder in which the present invention is implemented. This recorder is a multi-channel analog measurement signal
I 1, I 2, ..., I n is separated into respective channels by the multiplexer 1, further taken into CPU3 is converted into a digital signal by the A / D converter 2. The data is taken into the CPU 3 at a predetermined sampling cycle, and the taken data is temporarily stored in the RAM 4. Then, the data is dropped and stored in the floppy disk 6 for storing the data for a long period of time. The ROM 6 is provided for storing the program of the CPU 3.
CPU3は、取込まれたデータDiと前回のデータDi-1との差
値を算出する機能の他、今回のデータを記憶するべきフ
ロッピディスク6の記憶エリアがブロックの先頭エリア
の場合には、データDiを記憶し、以後は、データのサン
プリング毎に差値を順次記憶するように制御する機能を
有している。The CPU 3 has a function of calculating a difference value between the fetched data D i and the previous data D i−1, and when the storage area of the floppy disk 6 in which the current data is to be stored is the head area of the block. Has a function of storing the data D i , and thereafter, controlling to sequentially store the difference value for each sampling of the data.
この実施例では、フロッピディスク6に記憶するデータ
のタイプを、第3図に示す(a)〜(d)の4つのタイ
プに分けている。(a)タイプは、データ部が14ビット
であり、取り込まれるデータDiがこれに相当する。タイ
プ識別部の2ビットと合わせ16ビットである。(b)タ
イプはデータ部が10ビット構成、(c)タイプはデータ
部が6ビット構成、(d)タイプはデータ部が2ビット
構成のものである。(b)〜(d)タイプは差値Ddに相
当し、差値Ddが−2〜1の場合(d)タイプが、差値Dd
が−2〜1を除き、−32〜31の場合に(c)タイプが、
差値Ddが−32〜31を除き、−512〜511の場合に(b)タ
イプがそれぞれ選択される。In this embodiment, the types of data stored in the floppy disk 6 are divided into four types (a) to (d) shown in FIG. In the type (a), the data part has 14 bits, and the captured data D i corresponds to this. 16 bits including 2 bits of the type identification part. The (b) type has a 10-bit data section, the (c) type has a 6-bit data section, and the (d) type has a 2-bit data section. The types (b) to (d) correspond to the difference value D d , and when the difference value D d is −2 to 1, the type (d) is the difference value D d.
Is -32 to 31, except for -2 to 1, the (c) type is
The type (b) is selected when the difference value D d is −512 to 511 except for −32 to 31.
次に、第1図に示すフロー図を参照して上記実施例の記
録計のデータ記憶処理動作について説明する。Next, the data storage processing operation of the recorder of the above embodiment will be described with reference to the flow chart shown in FIG.
データのサンプリングタイムが到来するごとに、今回デ
ータDiが読取られる(ステップST1)。そして、このデ
ータDiがRAM4に一時記憶される。次に、このデータDiを
記憶すべきフロッピディスク6の領域が先頭ブロックで
あるか否かを判定し(ステップST2)、先頭ブロックで
ある場合には、今回取り込んだデータDiを(a)タイプ
で、そのフロッピディスク6の先頭エリアに記憶する。
つまり、データDiを14ビット分そのまま記憶し(ステッ
プST3)、リターンする。次に、サンプリングタイムが
到来すると、同様にDiを取込み(ステップST1)、記憶
領域が先頭ブロックか否か判定する(ステップST2)、
が今回は判定NOであり、したがって、次に(今回の取込
み値Di)−(前回のDi-1)を差値Ddとして求め(ステッ
プST4)、この差値Ddが−2以上1以下であるか否か判
定する(ステップST5)。差値Ddが非常に小さく、この
範囲にある場合には判定YESであり、この場合には、デ
ータDdを(d)タイプで記憶する、つまりデータ部が2
ビット分のデータがフロッピディスク6に記憶されるこ
とになる。ステップST5でDdが−2以上1以下に属しな
い場合には、さらにステップST7でDdは−32以上31以下
であるか否か判定する。差値Ddがこの範囲内にある場合
には、この判定がYESであり、この場合には、データDd
を(c)タイプで記憶する(ステップST8)。すなわ
ち、データ部が6ビット分のデータとしてフロッピディ
スク6の次の記憶領域に記憶され、リターンする。ステ
ップST7の判定でDdが−32以上31以下でない場合には、
次にステップST9で差値Ddが−512以上511以下であるか
否かを判定し、この所定範囲内にある場合には、データ
Ddを(b)タイプで記憶する、つまり10ビット分をデー
タとして、フロッピディスク6のエリアに記憶し、リタ
ーンすることになる。このステップST9でもDdが所定範
囲でない場合に、差値Ddが非常に多いものとして、デー
タDdを(a)タイプで記憶する、つまり差値を記憶する
のではなく、そのもののデータを記憶する(ステップST
11)。しかし、通常、記録計においては、データDiの変
化は非常に小さく、今回のサンプリング時のデータと、
前回のサンプリング時のデータとは、ほとんど差がない
のが一般的であり、Ddが極端に大きくなることはまれで
あり、したがって、通常は(c)か(d)タイプで対応
可能であり、フロッピディスクの記憶容量を大幅に節約
することが可能である。例えば、第1回目の10進数のデ
ータが6012、以下5988、5958、5910、5911、…と変化し
ているとすると、最初のデータ6012はそのまま14ビット
分のデータとして、先頭ブロックに記憶され、以後その
値と次回のそれぞれの差値−24、−30、−48、+1がデ
ータとして順次記録されることになる。そして −24、
−30は(c)タイプであり、−48は(b)タイプであ
り、+1は(d)タイプのデータとして記憶されること
になる。このような5つの14ビットデータを合算した場
合、実際は、6バイトで記憶できることになる。Every time the data sampling time comes, the data D i is read this time (step ST1). Then, this data D i is temporarily stored in the RAM 4. Next, it is determined whether or not the area of the floppy disk 6 in which this data D i is to be stored is the head block (step ST2). If it is the head block, the data D i acquired this time is (a). The type is stored in the head area of the floppy disk 6.
That is, the data D i is stored as it is for 14 bits (step ST3), and the process returns. Next, when the sampling time arrives, D i is similarly taken in (step ST1), and it is determined whether or not the storage area is the head block (step ST2).
Is the judgment NO this time, and therefore, the (current intake value D i ) − (previous D i−1 ) is obtained as the difference value D d (step ST4), and this difference value D d is −2 or more. It is determined whether it is 1 or less (step ST5). When the difference value D d is very small and is within this range, the determination is YES, and in this case, the data D d is stored in the (d) type, that is, the data portion is 2
The bit data is stored in the floppy disk 6. If D d does not belong to −2 or more and 1 or less in step ST5, it is further determined in step ST7 whether D d is −32 or more and 31 or less. If the difference value D d is within this range, this determination is YES, and in this case, the data D d
Is stored as type (c) (step ST8). That is, the data portion is stored as 6-bit data in the next storage area of the floppy disk 6, and the process returns. If D d is not −32 or more and 31 or less in the determination in step ST7,
Next, in step ST9, it is determined whether or not the difference value D d is −512 or more and 511 or less, and if it is within this predetermined range, the data
D d is stored in the (b) type, that is, 10 bits are stored as data in the area of the floppy disk 6 and the process is returned. Even in this step ST9, if D d is not within the predetermined range, the data D d is stored as the (a) type, that is, the difference value D d is very large, that is, the difference data D d is not stored, but the data itself is stored. Memorize (step ST
11). However, usually in a recorder, the change of the data D i is very small, and the data at the time of this sampling,
Generally, there is almost no difference from the data at the time of the previous sampling, and it is rare that D d becomes extremely large. Therefore, usually (c) or (d) type can be used. , It is possible to greatly save the storage capacity of the floppy disk. For example, if the first decimal number data is 6012, and is changed to 5988, 5958, 5910, 5911, and so on, the first data 6012 is stored as it is in the first block as 14-bit data, After that, the difference and the next difference values −24, −30, −48, and +1 are sequentially recorded as data. And -24,
-30 is the (c) type, -48 is the (b) type, and +1 is stored as the (d) type data. When such five 14-bit data are summed up, it can actually be stored in 6 bytes.
なお、以上のようにして記憶したデータを読出す場合に
は、まず先頭データをそのまま読取り、次のデータから
は、タイプ識別部を見て、データ長を判断し、データタ
イプごとに定まったデータ部を読出し、前データとの和
を取ればよい。When reading the data stored as described above, first read the first data as it is, and from the next data, look at the type identification section to determine the data length, and determine the data determined for each data type. It is sufficient to read the part and take the sum with the previous data.
上記実施例記録計のフロッピディスク6に記憶されるデ
ータフォーマット例を示すと、第4図(a)に示すよう
になる。すなわち、先頭ブロックは、14ビットのデータ
がそのまま記憶され、以降は、タイプ識別部の2ビット
コードと、タイプ識別部に対応したデータのビットが続
くことになる。An example of the data format stored in the floppy disk 6 of the recorder of the above embodiment is shown in FIG. 4 (a). That is, 14-bit data is stored as it is in the first block, and thereafter, the 2-bit code of the type identification section and the bits of the data corresponding to the type identification section follow.
上記実施例では、データの先頭にタイプ識別部の2ビッ
ト分設けたが、識別部をテーブルにしてまとめて、識別
部とデータ部をブロック内で分離して記憶することも可
能である。そのような例を第4図(b)に示している。
さらに、上記実施例では、取り込んだデータDiを順次フ
ロッピディスクに記憶していく場合を例に挙げている
が、データをフロッピディスク6に落とす前にRAM上に
一時記憶し、RAM4に一ブロック分のデータが蓄積されて
からフロッピディスク6に転送するようにしてもよい。
この場合、ブロック内のデータタイプを全て統一するこ
ともできる。例えば、先のデータが全て6ビット以内で
あると6ビットに差値を統一し、第4図(c)に示すよ
うに、先頭ブロックの全ビットデータに続くデータとし
てタイプ識別コードを最初設け、それ以後は、データの
変化分のみを順次、記憶するようにしてもよい。データ
の変化の絶対値が小さく、変化のばつきも小さい時は、
データ数を増加させる上にさらに有効である。In the above embodiment, two bits of the type identification section are provided at the beginning of the data, but it is also possible to combine the identification sections into a table and store the identification section and the data section separately in the block. Such an example is shown in FIG. 4 (b).
Further, in the above-mentioned embodiment, the case where the fetched data D i is sequentially stored in the floppy disk is taken as an example, but the data is temporarily stored in the RAM before being dropped to the floppy disk 6, and one block is stored in the RAM 4. The minute data may be accumulated and then transferred to the floppy disk 6.
In this case, all the data types in the block can be unified. For example, if the previous data are all within 6 bits, the difference value is unified to 6 bits, and as shown in FIG. 4 (c), a type identification code is first provided as data following all bit data of the first block, After that, only the changed amount of data may be sequentially stored. When the absolute value of the change in the data is small and the variation is small,
It is more effective in increasing the number of data.
(ヘ)考案の効果 この考案によれば、サンプリングタイム毎にデータを取
込み、記憶手段にデータ落とし込み、記憶する際に、記
憶手段の基準エリアには、取り込んだデータの全ビット
を記憶し、それ以後の各エリアについては、今回のデー
タと前回のデータの差値を求め、この差値を順次記憶す
るようにしているので、通常差値は、前データよりもデ
ータビット数が非常に少ないことが多いから、全体とし
てデータを記憶するビット容量が少なくてすみ、一定容
量の記憶手段に対しては、より多くのデータを記録する
ことが可能である。(F) Effect of the device According to this device, all the bits of the acquired data are stored in the reference area of the storage device when the data is captured at each sampling time, dropped in the storage device, and stored. For each subsequent area, the difference value between the current data and the previous data is calculated, and this difference value is stored sequentially, so normally the difference value has a much smaller number of data bits than the previous data. Therefore, the bit capacity for storing data is small as a whole, and more data can be recorded in the storage means having a constant capacity.
第1図は、この考案の一実施例の記録計の読取り処理動
作を示すフロー図、第2図は、この考案が実施される記
録計のブロック図、第3図は、この実施例記録計のデー
タ記憶フォーマットを説明するための図、第4図(a)
は、上記実施例記録計の連続したデータ記憶例を示す
図、第4図(b)は、他の実施例のデータ記憶例を示す
図、第4図(c)は、さらに他の実施例のデータ記憶例
を示す図である。 2:A/D変換器、3:CPU、4:RAM、6:フロッピディスク。FIG. 1 is a flow chart showing a read processing operation of a recorder according to an embodiment of the present invention, FIG. 2 is a block diagram of a recorder according to the present invention, and FIG. 3 is a recorder of the embodiment. FIG. 4 (a) for explaining the data storage format of FIG.
Is a diagram showing an example of continuous data storage of the recorder of the above embodiment, FIG. 4 (b) is a diagram showing an example of data storage of another embodiment, and FIG. 4 (c) is another embodiment. 3 is a diagram showing an example of data storage of FIG. 2: A / D converter, 3: CPU, 4: RAM, 6: Floppy disk.
Claims (1)
て取込み、デジタルデータとして記憶手段に記憶する記
録計において、 今回サンプリングにおけるデジタルデータと前回のサン
プリングのデジタルデータの差値を求める差値算出手段
と、前記記憶手段の所定の基準エリアにデジタルデータ
の全ビットを記憶し、この全ビットが記憶されるデータ
に後続するデータについては、前記差値を記憶するよう
に制御する記憶制御手段とを備えたことを特徴とする記
録計。1. A recorder for sampling input data at a predetermined cycle and taking it in and storing it as digital data in a storage means, a difference value calculating means for obtaining a difference value between digital data at the current sampling and digital data at the previous sampling. And storage control means for storing all bits of the digital data in a predetermined reference area of the storage means, and for data following the data in which all the bits are stored, controlling so as to store the difference value. Recorder characterized by having.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1988154688U JPH0720571Y2 (en) | 1988-11-28 | 1988-11-28 | Recorder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1988154688U JPH0720571Y2 (en) | 1988-11-28 | 1988-11-28 | Recorder |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0275524U JPH0275524U (en) | 1990-06-08 |
| JPH0720571Y2 true JPH0720571Y2 (en) | 1995-05-15 |
Family
ID=31431642
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1988154688U Expired - Lifetime JPH0720571Y2 (en) | 1988-11-28 | 1988-11-28 | Recorder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0720571Y2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1116936A4 (en) * | 1998-09-02 | 2003-06-25 | Mitsubishi Electric Corp | POSITION DETECTOR |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS56129482A (en) * | 1980-03-15 | 1981-10-09 | Keisatsuchiyou Chokan | Compression system for gradation data |
| JPS5875341A (en) * | 1981-10-29 | 1983-05-07 | Sharp Corp | Data compression device using finite difference |
| JPS58189517A (en) * | 1982-04-30 | 1983-11-05 | Yokogawa Hokushin Electric Corp | Recorder |
| JPS6165532A (en) * | 1984-09-06 | 1986-04-04 | Ricoh Co Ltd | Digital processor or analog signal |
| US4586022A (en) * | 1984-12-13 | 1986-04-29 | Tektronix, Inc. | Waveform memory circuit |
-
1988
- 1988-11-28 JP JP1988154688U patent/JPH0720571Y2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0275524U (en) | 1990-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61181918A (en) | Method and circuit for processing analog output signal from sensor | |
| US6621443B1 (en) | System and method for an acquisition of data in a particular manner | |
| JPH0720571Y2 (en) | Recorder | |
| JP2614869B2 (en) | Data recording device for analysis system | |
| JP2983228B2 (en) | Compression device for time series observation data | |
| JPH0124568Y2 (en) | ||
| JPS6133530Y2 (en) | ||
| JPS5958912A (en) | Analog input device | |
| JPH02123419A (en) | Storage circuit | |
| JPS6022437Y2 (en) | data acquisition device | |
| JPS60244810A (en) | Memory cassette type data gathering and recording device with automatic interval function | |
| JP3450738B2 (en) | Electromagnetic noise recorder and recording method | |
| RU1788446C (en) | Multichannel temperature metering device | |
| JP2715532B2 (en) | Spectrophotometer | |
| JPS5875243A (en) | Data transfer system for analog input | |
| JPS63159717A (en) | recorder | |
| JPH06209909A (en) | Electrocardiograph | |
| JPS6126961Y2 (en) | ||
| JP2943395B2 (en) | Signal processing circuit | |
| JP2778276B2 (en) | Successive approximation type A / D converter | |
| JPH057543Y2 (en) | ||
| SU1457163A1 (en) | Information registering device | |
| JP3268505B2 (en) | Sequence control signal recording method | |
| JPH0613507Y2 (en) | Radiation measuring device | |
| SU1231529A1 (en) | Device for transmission of telemetering information |