JPH01320471A - Reader for output of readout counter - Google Patents
Reader for output of readout counterInfo
- Publication number
- JPH01320471A JPH01320471A JP15357388A JP15357388A JPH01320471A JP H01320471 A JPH01320471 A JP H01320471A JP 15357388 A JP15357388 A JP 15357388A JP 15357388 A JP15357388 A JP 15357388A JP H01320471 A JPH01320471 A JP H01320471A
- Authority
- JP
- Japan
- Prior art keywords
- data
- counter
- read
- readout counter
- reading
- 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
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的l
(産業上の利用分野)
この発明は電子計算機などの入力データの処理に係り、
特にリードアウトカウンタからの積分値データを正確に
読込むためのリードアウトカウンタ出力読込み装置に関
する。[Detailed description of the invention] [Objective of the invention l (Industrial application field) This invention relates to processing of input data of electronic computers, etc.
In particular, the present invention relates to a readout counter output reading device for accurately reading integral value data from a readout counter.
(従来の技術)
例えば、電力量などの積算値は需要電力制御やCRT表
示及びタイプライタによる記録などのデータとして電子
計n機に読込まれ処理されているが、電子計算機の故障
などにより電子J1算様の機能がダウンしたような場合
、電子計算機が動作しなくなり電子計算機の積算値ファ
イルデータはリセットされてしまうことになる。(Prior art) For example, integrated values such as electric energy are read into electronic counters and processed as data for power demand control, CRT display, typewriter recording, etc. However, due to computer failure, etc. If the computer function goes down, the electronic computer will stop working and the computer's integrated value file data will be reset.
このため、従来から電子計871の機能がダウンし、復
旧した時に正確な積算値データの読込みを行なう必要が
あり、第4図に示すようなリードアウトカウン出力読込
み装置を用い、一定量毎に発信されるパルス信号1を一
端リードアウトカウンタ2に入力し、ここで入力パルス
信号1を積算値データとしてカウントファイルする。For this reason, when the function of the electronic meter 871 goes down, it is necessary to read accurate integrated value data when it is restored. The transmitted pulse signal 1 is input to a readout counter 2 at one end, and the input pulse signal 1 is stored in a count file as integrated value data.
このリードアウトカウンタ2のカウント積算(直データ
は、各桁X+ 、X2 、・・・、 Xn毎に2進化デ
ジタルコード信号に変換されて電子計算機3に入)〕さ
れるようになっている。The readout counter 2 counts and integrates (the direct data is converted into a binary digital code signal for each digit X+, X2, . . . , Xn and input to the computer 3).
そこで、電子計算機3では、自己のプログラムにより任
意の、あるいは一定周期毎にリードアウトカウンタ2の
各桁の2進化デジタルコード信号を積算値データとして
読込む。Therefore, the electronic computer 3 reads the binary digital code signal of each digit of the readout counter 2 as integrated value data at any time or at regular intervals according to its own program.
(発明が解決しようとする課題)
しかしながら、このような従来のリードアウト力・クン
タ出力読込み装置では、リードアウトカウンタ2の各桁
X+ 、X2 、・・・Xn毎に変換される2進化デジ
タルコード信号は、パルス信号1が入力されてリードア
ウトカウンタ2で自己の積算値データを更新する際に一
時的ではあるが正規の積口偵データと異なった値のデジ
タル信号を出ツノしてしまうことがある。(Problem to be Solved by the Invention) However, in such a conventional readout force/Kunta output reading device, a binary digital code is converted for each digit X+, X2,...Xn of the readout counter 2. When the pulse signal 1 is input and the readout counter 2 updates its own cumulative value data, a digital signal with a value different from the regular cumulative value data is temporarily output. There is.
例えば、リードアウトカウンタ2のある桁が3から4に
繰上る場合について説明すると、第5図(a)に示すよ
うに入力パルス信号1が入力された時、同図(b)〜(
e)に示すようにリードアウトカウンタ2のある桁の2
進化デジタルコード信号(+) 、 (2) 、 (4
) 。For example, to explain the case where a certain digit of the readout counter 2 advances from 3 to 4, when the input pulse signal 1 is input as shown in FIG. 5(a),
2 of a certain digit of the lead-out counter 2 as shown in e)
Evolutionary digital code signal (+), (2), (4
).
(8)は次のように更新される。(8) is updated as follows.
つまり、ある桁の2進化デジタルコード信号出力(1)
と2進化デジタルコード信号出力(2)がオンからオフ
に変化し、2進化デジタルコード信号出力(4)がオフ
からオンに変化するが、これらの2進化デジタルコード
信号(+) 、 (2) 、 (4)はデータ更新時間
TD内で重複して変化することになる。In other words, a certain digit's binary coded digital code signal output (1)
The binary code signal output (2) changes from on to off, and the binary code signal output (4) changes from off to on, but these binary code signal outputs (+) and (2) , (4) will change repeatedly within the data update time TD.
このため、電子計tiXR3のサンプリングタイミング
A、B、C,Dにおいて電子計算機3に読込まれるデー
タは次のようになる。Therefore, the data read into the electronic computer 3 at sampling timings A, B, C, and D of the electronic meter tiXR3 is as follows.
サンプリングタイミングAにおけるリードアウトカウン
タ2の出力値Yの数値データは3(−011)、サンプ
リングタイミングC,Dの出力値Yの数値データは4(
=100)となって正常な値であるが、リードアウトカ
ウンタ2のデータ更新時間TD内にあるサンプリングタ
イミングBでの出力値Yの数値データは7(=111)
であり、これは誤ったデータである。The numerical data of the output value Y of the readout counter 2 at sampling timing A is 3 (-011), and the numerical data of the output value Y at sampling timings C and D is 4 (
= 100), which is a normal value, but the numerical data of the output value Y at sampling timing B within the data update time TD of readout counter 2 is 7 (= 111).
This is incorrect data.
従って、前記リードアウトカウンタ2のデータ更新中に
電子計算機3がリードアウトカウンタ2のデータをサン
プリングした場合には電子計算機3には誤ったデータが
入力されることになる問題点があった。Therefore, if the electronic computer 3 samples the data of the lead-out counter 2 while the data of the lead-out counter 2 is being updated, there is a problem that incorrect data will be input to the electronic computer 3.
この発明は、このような従来の問題点に鑑みてなされた
ものであって、任意の、あるいは−足固IItrJに行
なわれる電子計算機のリードアウトカウンタ出力の読込
み処理において、電子計算機側がどのようなタイミング
で読込んでもリードアウトカウンタから正常なデータを
読込むことができるリードアウトカウンタ出力読込み装
置を提供することを目的とする。The present invention has been made in view of such conventional problems, and the present invention has been made in view of the above-mentioned problems in the prior art. To provide a readout counter output reading device capable of reading normal data from a readout counter even when reading at timing.
[発明の構成]
(課題を解決するための手段)
この発明のリードア「クトカウンタ出力読込み装置は、
パルス信号を受けて2進化デジタルコード信号に変換し
、パルス積算伯を出力するリードアウトカウンタと、こ
のリードアウトカウンタからのデータの読込み時にリー
ドアウトカウンタデータ更新所要時間よりも大きな時間
間隔をとって3回以上続けて読込むデータ読込み手段と
、このデータ読込み手段の読込んだ各データを比較し、
一致するデータが2つ以上見い出された時にその一致す
るデータを前記リードアウトカウンタからの有効な入力
データとし、一致するデータが見い出せない時には読込
んだ全データを無効とし、前記データ読込み手段に前記
リードアウトカウンタから再度データを読込ませる制御
手段とを備えたものである。[Structure of the Invention] (Means for Solving the Problems) The read door "counter output reading device" of the present invention includes
A readout counter receives a pulse signal, converts it into a binary coded digital code signal, and outputs a pulse integrated fraction, and a readout counter that reads data from this readout counter at a time interval larger than the time required to update the readout counter data. Compare the data reading means that reads three or more times in succession with each data read by this data reading means,
When two or more pieces of matching data are found, the matching data is used as valid input data from the readout counter, and when no matching data is found, all read data is invalidated, and the data reading means and a control means for reading data again from the lead-out counter.
(作用)
この発明のリードアウトカウンタ出力読込み装置では、
リードアウトカウンタの積算値データを読込む時に、リ
ードアウトカウンタがデータ更新に掛るデータ更新所要
時間よりも大きな時間間隔をとって3回以上続けてリー
ドアウト力ウタからの積算値データを読込む。(Function) In the readout counter output reading device of the present invention,
When reading the integrated value data of a lead-out counter, the lead-out counter reads the integrated value data from the lead-out power counter three or more times in succession at a time interval larger than the time required for updating the data.
そして読込んだ各データを比較し、一致するデータが2
つ以上見い出された時にはその一致するデータをリード
アウトカウンタからの有効な入力データとし、τ致する
データが見い出せない時には読込んだ全データを無効と
し、データ読込み手段よりリードアウトカウンタから同
様のタイミングでデータを再度読込み、2つ以上の一致
するデータが見い出されるまで同様の操作を繰返すので
ある。Then, compare each read data and find 2 matching data.
If more than one matching data is found, the matching data is taken as valid input data from the readout counter, and when no matching data is found, all the read data is invalidated, and the readout counter is input from the data reading means at the same timing. The data is read in again and the same operation is repeated until two or more matching data are found.
この操作により、リードアウトカウンタ側の積口値デー
タが更新されるタイミングでデータ読込みが起こっても
、常に有効なデータの読込みが可能となる。This operation makes it possible to always read valid data even if data reading occurs at the timing when the unit value data on the lead-out counter side is updated.
(実施例) 以下、この発明の実施例を図に基いて詳説する。(Example) Hereinafter, embodiments of the present invention will be explained in detail with reference to the drawings.
第1図はこの発明の一実施例のシステム構成図であり、
例えば槓n電力給計からのパルス信号1を順次積口し、
2進化デジタルコード信号として出力するり−ドアウト
カウンタ2と、このリードアウトカウンタ2からのII
偵データを読込む電子計算機3とから構成されている。FIG. 1 is a system configuration diagram of an embodiment of the present invention.
For example, sequentially combine pulse signals 1 from a power supply meter,
The readout counter 2 outputs as a binary digital code signal and the II from this readout counter 2.
It consists of an electronic computer 3 for reading reconnaissance data.
そして電子計算1ff3には、リードアウトカウンタ2
からのデータ信号の入力インタフェース4と、入力され
たデータを順次記憶する第1データメモリ部5a、第2
データメモリ部5b、第3データ部5Cと、これらの第
1データメモリ部5aと第2データメモリ部5bと第3
データメモリ部5Cに記憶されている3つのデータを比
較する比較部6と、この比較部6により得られる有効な
データを記憶する有効データメモリ部7と、クロック8
と、これら電子計算機3の各構成部4〜8の動作制御を
11なう制御部9とを備えている。And electronic calculation 1ff3 has lead-out counter 2.
an input interface 4 for data signals from a first data memory section 5a, a second data memory section 5a for sequentially storing input data;
The data memory section 5b, the third data section 5C, the first data memory section 5a, the second data memory section 5b, and the third
A comparison section 6 that compares three pieces of data stored in the data memory section 5C, a valid data memory section 7 that stores valid data obtained by this comparison section 6, and a clock 8.
and a control section 9 that controls the operation of each of the constituent sections 4 to 8 of the computer 3.
上記の構成のリードアウトカウンタの動作について、第
2図のフローチャート及び第3図のタイムチャートを基
にして説明する。The operation of the lead-out counter having the above configuration will be explained based on the flowchart of FIG. 2 and the time chart of FIG. 3.
第3図(a)に示すようにパルス信号1がリードアウト
カウンタ2に入力されると、同図(b)に示すようにデ
ータ更新所要時間TDにおいて1ずつデータを更新し、
N、N+1.N+2とW4幹してゆく。When the pulse signal 1 is input to the readout counter 2 as shown in FIG. 3(a), the data is updated by 1 in the data update time TD as shown in FIG. 3(b).
N, N+1. N+2 and W4 stem.
そこで、電子計算機3側の制御部9は、第3図(C)に
示すように1回のサンプリングタイミングでリードアウ
トカウンタ2からのデータを3回読込むことにし、その
データ読込み間隔を王とする時、このデータ読込み間隔
Tをリードアウトカウンタ2のデータ更新所要時間TO
より良いものとする。Therefore, the control unit 9 on the computer 3 side decides to read the data from the readout counter 2 three times at one sampling timing, as shown in FIG. time, this data reading interval T is the data update time required for readout counter 2.
Make it better.
尚、各データ読込み時間はデータ更新時間TDよりも短
いものとする。It is assumed that each data reading time is shorter than the data update time TD.
そこで第2図に示すフローチャートを参照し、リードア
ウトカウンタ2から電子計算機3が積算値データ信号を
読込む動作について説明すると、制御部9は所定のサン
プリングタイミングにおいて入力インタフェース4にリ
ードアウトカウンタ2のデータ読込み指令を与え、読込
み間隔Tで3回リードアウトカウンタ2からのデータ信
号を読込み、各入力データを第1データメモリ部5a。The operation of the computer 3 reading the integrated value data signal from the readout counter 2 will be explained with reference to the flowchart shown in FIG. A data reading command is given, the data signal from the readout counter 2 is read three times at a reading interval T, and each input data is stored in the first data memory section 5a.
第2データメモリ部5b、第3データメモリ部5Cに記
憶する(ステップ81〜83)。The data is stored in the second data memory section 5b and the third data memory section 5C (steps 81 to 83).
つづいて比較部6は各データメモリ部5a〜5Cに記憶
されている読込みデータを比較しくステップ84)、2
個あるいは3個一致するデータがあるかどうかを判断す
る(ステップ85)。Next, the comparison unit 6 compares the read data stored in each data memory unit 5a to 5C in steps 84) and 2.
It is determined whether there is one or three pieces of matching data (step 85).
ここで第3図に示すようにリードアウトカウンタ2のデ
ータ更新中にサンプリングnが行なわれた場合について
考えると、1回目に読込まれたデータはり−ドアウトカ
ウンタ2の更新中データXであり、2回目と3回目に読
込まれたデータはN+1となり、2つのデータが一致す
る。Now, if we consider the case where sampling n is performed while the data of the readout counter 2 is being updated as shown in FIG. The data read the second and third times becomes N+1, and the two data match.
つまり、3回のデータ読込み間隔Tをリードアウトカウ
ンタ2のデータ更新時間TDより長くしているため、1
回目のデータがXであっても、次の2回目のデータ読込
みはN+1となり、3回目に読込まれるデータもN+1
となり、有効なデータとしてN −+−1を有効データ
メモリ部7に記憶させることができる(ステップ36)
。In other words, since the three data reading intervals T are longer than the data update time TD of the readout counter 2,
Even if the first data is X, the next second data read will be N+1, and the third data read will also be N+1.
Therefore, N −+−1 can be stored in the valid data memory section 7 as valid data (step 36).
.
また、電子計締機3のサンプリングタイミングがサンプ
リング(n+1>のようにリードアウトカウンタ2のデ
ータ更新期間と完全にずれている場合は、3回の読込み
データは全て一致してN+2となり、この場合にも有効
なデータとしてN+2が有効データメモリ部7に記憶さ
れることになる。In addition, if the sampling timing of the electronic tightening device 3 is completely different from the data update period of the readout counter 2, as in sampling (n+1>), the data read three times will all match and become N+2, and in this case Also, N+2 is stored in the valid data memory section 7 as valid data.
しかしながら、電子計算機3側のデータ読込み指令がリ
ードアウトカウンタ2側のデータ更新時間よりも若干先
立つようなタイミングで与えられる場合(第3図(C)
の鎖線の場合)、第1データメモリ部5aに読込まれる
データはNとなり、第2データメモリ部5bに読込まれ
るデータはリードアウトカウンタ2のデータ更新時の値
Xとなり、第3データメモリ部5Cに読込まれるデータ
は更新後の新たなデータN + 1となり、各データメ
モリ部5a〜5Cに配憶されているデータは全て異なっ
たものとなるが、このような場合には全部のデータを無
効とし、改めてデータ読込み指令を与え、再度リードア
ウトカウンタ2の積算値データを時間間隔Tfflに3
回続けて読込み、このデータの一致を判定し、有効なデ
ータを児い出すようにする。However, if the data read command on the computer 3 side is given at a timing slightly earlier than the data update time on the readout counter 2 side (Fig. 3 (C)
), the data read into the first data memory section 5a is N, the data read into the second data memory section 5b is the value X when the data of the readout counter 2 is updated, and the data read into the second data memory section 5b is the value X when the data of the readout counter 2 is updated. The data read into section 5C becomes new data N + 1 after the update, and the data stored in each data memory section 5a to 5C are all different, but in such a case, all The data is invalidated, a data read command is given again, and the integrated value data of the readout counter 2 is read out again at the time interval Tffl.
The data is read several times in succession to determine if the data matches, and to produce valid data.
なお、この実施例の場合にはリードアウトカウンタ2の
データ更新所要時間TDよりも若干長い時間間隔Tにお
いて3回続けてリードアウトカウンタ2のデータ信号を
読込み、その一致を判定して有効データを見い出すよう
にしているが、4回以上連続してデータの読込みを行な
うようにしてもよいものであり、特に連続して読込む回
数が限定されることはない。In the case of this embodiment, the data signal of the readout counter 2 is read three times in a row at a time interval T that is slightly longer than the data update time TD of the readout counter 2, and valid data is determined by determining whether they match. However, the data may be read four or more times in a row, and there is no particular limit to the number of consecutive reads.
[発明の効果]
以上のようにこの発明によれば、リードアウトカウンタ
からのデータの読込み時にリードアウトカウンタのデー
タ更新所要時間よりも大ぎな時間間隔をとって3回以上
続けてデータを読込み、それらの読込まれたデータの肉
受なくとも2つのデータが一致するかどうかによりデー
タの有効性を判定するようにしているため、従来のよう
にリードアウトカウンタのデータ更新中に電子計算機側
がデータを読込むことにより誤ったデータの読込みが発
生するという恐れがなく、常に正確なデータの読込みが
できる。[Effects of the Invention] As described above, according to the present invention, when reading data from the lead-out counter, the data is read three or more times in succession at a time interval that is longer than the time required to update data of the lead-out counter, Since the validity of the data is determined based on whether or not the two pieces of data match, even if the read data does not match, the computer side updates the readout counter data as in the past. There is no fear that erroneous data will be read due to reading, and accurate data can always be read.
第1図はこの発明の一実施例のシステム構成図、第2図
は上記実施例の動作を説明するフローチャー1・、第3
図は上記実施例の動作を説明するタイムチャート、第4
図は従来例のシステム構成図、第5図は従来例の動作を
説明するタイムチャートである。FIG. 1 is a system configuration diagram of an embodiment of the present invention, and FIG. 2 is a flowchart 1 to 3 explaining the operation of the above embodiment.
The figure is a time chart explaining the operation of the above embodiment.
The figure is a system configuration diagram of a conventional example, and FIG. 5 is a time chart explaining the operation of the conventional example.
Claims (1)
、パルス積算値を出力するリードアウトカウンタと、こ
のリードアウトカウンタからのデータの読込み時にリー
ドアウトカウンタデータ更新所要時間よりも大きな時間
間隔をとつて3回以上続けて読込むデータ読込み手段と
、このデータ読込み手段の読込んだ各データを比較し、
一致するデータが2つ以上見い出された時にその一致す
るデータを前記リードアウトカウンタからの有効な入力
データとし、一致するデータが見い出せない時には読込
んだ全データを無効とし、前記データ読込み手段に前記
リードアウトカウンタから再度データを読込ませる制御
手段とを備えて成るリードアウトカウンタ出力読込み装
置。A readout counter that receives a pulse signal, converts it into a binary coded digital code signal, and outputs a pulse integrated value, and a readout counter that reads data from this readout counter at a time interval larger than the time required to update the readout counter data. Compare the data reading means that reads three or more times in succession with each data read by this data reading means,
When two or more pieces of matching data are found, the matching data is used as valid input data from the readout counter, and when no matching data is found, all read data is invalidated, and the data reading means A readout counter output reading device comprising a control means for reading data from the readout counter again.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15357388A JPH01320471A (en) | 1988-06-23 | 1988-06-23 | Reader for output of readout counter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15357388A JPH01320471A (en) | 1988-06-23 | 1988-06-23 | Reader for output of readout counter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01320471A true JPH01320471A (en) | 1989-12-26 |
Family
ID=15565447
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15357388A Pending JPH01320471A (en) | 1988-06-23 | 1988-06-23 | Reader for output of readout counter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01320471A (en) |
-
1988
- 1988-06-23 JP JP15357388A patent/JPH01320471A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4803708A (en) | Time-of-day coincidence system | |
| JPH01320471A (en) | Reader for output of readout counter | |
| JPS63295974A (en) | Pulse input apparatus | |
| US5379416A (en) | State tracer system | |
| JPH0284812A (en) | Duty factor discrimination circuit | |
| US5630108A (en) | Frequency independent PCMCIA control signal timing | |
| SU1285458A1 (en) | Information input device | |
| SU599161A1 (en) | Information recording arrangement | |
| SU1422196A2 (en) | Device for firecasting operability of electronic apparatus | |
| SU1387004A2 (en) | N-sensors-to-computer interface | |
| RU2032228C1 (en) | Telemetering device | |
| SU1589078A1 (en) | Device for measuring temperature | |
| SU750480A1 (en) | Device for comparing numbers with tolerances | |
| JPH03252526A (en) | Sensor output circuit | |
| SU1254522A1 (en) | Device for compressing information | |
| SU1755284A1 (en) | Device for checking information | |
| SU894713A1 (en) | Device for monitoring command run | |
| SU892449A1 (en) | Probability correlometer | |
| JPS6131481B2 (en) | ||
| SU750742A1 (en) | Controllable pulse repetition frequency divider | |
| SU1298743A1 (en) | Random process generator | |
| SU1483431A1 (en) | Modulo 9 check and program control unit | |
| SU1571676A2 (en) | Associative memory device | |
| SU1275472A1 (en) | Device for checking parameters | |
| SU877588A1 (en) | Device for production counting |