JPS626116A - Integrating meter - Google Patents

Integrating meter

Info

Publication number
JPS626116A
JPS626116A JP14459385A JP14459385A JPS626116A JP S626116 A JPS626116 A JP S626116A JP 14459385 A JP14459385 A JP 14459385A JP 14459385 A JP14459385 A JP 14459385A JP S626116 A JPS626116 A JP S626116A
Authority
JP
Japan
Prior art keywords
adder
value
register
digit
lower digit
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
Application number
JP14459385A
Other languages
Japanese (ja)
Inventor
Hiromi Shibata
裕己 柴田
Atsushi Toda
敦之 戸田
Naohiro Yamada
山田 直広
Hitoshi Takeda
仁志 武田
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.)
Koito Manufacturing Co Ltd
Original Assignee
Koito Manufacturing Co Ltd
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 Koito Manufacturing Co Ltd filed Critical Koito Manufacturing Co Ltd
Priority to JP14459385A priority Critical patent/JPS626116A/en
Publication of JPS626116A publication Critical patent/JPS626116A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Distances Traversed On The Ground (AREA)

Abstract

PURPOSE:To make it unnecessary to provide a memory of a large capacity by executing an integrating operation by dividing it into the upper digit and the lower digit, and correcting a fraction by the lower digit. CONSTITUTION:A lower digit adder 2 is constituted of an addend register which has stored a running distance of each one piece of pulse generated from a distance sensor 1, an adder 2b, an operation register 2c, and an OR circuit 2d. Also, an upper digit adder 3 is constituted of a comparator 3a, a reference value register 3b, a subtracter 3c, and a counter 3d. According to said constitution, when an integrating value of the lower digit has exceeded a prescribed value, count-up of the upper digit is executed, and a prescribed number is subtracted from the integrating value of the lower digit. In this way, it becomes unnecessary to use a memory having such a large capacity as before.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、所定数の繰返し加算を行なう積算計に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a totalizer that repeatedly adds a predetermined number of times.

〔従来の技術〕[Conventional technology]

一般に、自動車の走行距離は変速機出力軸によって回転
駆動されるスピードメータケーブルの回転数を積算して
表示している。そしてスピードメータケーブルの回転数
は1bあたり637回転となるように統一規格が決めら
れている。
Generally, the mileage of an automobile is displayed by integrating the number of rotations of a speedometer cable that is rotationally driven by a transmission output shaft. A unified standard has been established for the number of revolutions of the speedometer cable to be 637 revolutions per 1b.

スピードメータケーブルの回転数の測定は、そこに取付
は九磁石が繰返し同一位置に回転してきたことを検出し
て、パルス信号を発生するなどの方法で行なっている。
The number of rotations of the speedometer cable is measured by detecting that nine magnets attached to it repeatedly rotate to the same position and generating a pulse signal.

このパルス信号がスピードメータケーブル1回転らたり
4個発生するように設定されていると、パルス1個あた
りの走行距離は約0.392rnとなり、パルス3個で
1.176mとなって端数が生じるため、従来は表に示
すようなテーブルによって処理している。
If this pulse signal is set to be generated 4 times per revolution of the speedometer cable, the traveling distance per pulse will be approximately 0.392rn, and with 3 pulses it will be 1.176m, resulting in a fraction. Therefore, conventionally, processing has been done using a table as shown in the table below.

すなわち、走行距離が1m増加する時のパルス数をあら
かじめテーブルに記憶させておき、発生パルス数の差が
テーブルに決められた値に達し走時に、走行距離をカウ
ントアツプするようにしていた。この表の場合であれば
、最初3個のパルスが発生した時点で1m、次に3個の
パルスが発生した時点で2m、次に2個のパルスが発生
した時点で3mというように、パルスの整数値毎に距離
をカウントアツプしている。
That is, the number of pulses when the running distance increases by 1 m is stored in a table in advance, and when the difference in the number of generated pulses reaches a value determined in the table, the running distance is counted up. In the case of this table, the pulse length is 1 m when the first 3 pulses occur, 2 m when the next 3 pulses occur, 3 m when the next 2 pulses occur, and so on. The distance is counted up for each integer value.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながらこのような従来の方法は、整数個のパルス
に対して端数の生じない距離は392mとなり、この距
離毎に同一のテーブルを使用しなければならないので、
容量の大きなメモリを用いねばならないという欠点を有
していた。
However, in this conventional method, the distance without fractions for an integer number of pulses is 392 m, and the same table must be used for each distance.
This method has the disadvantage of requiring the use of a large-capacity memory.

〔問題点を解決するための手段〕[Means for solving problems]

このような欠点を解決するためにこの発明は、積算値を
上位桁と下位桁に分け、下位桁の積算値が所定値以上に
なった時に上位桁のカウントアツプを行ない、下位桁の
積算値から前記所定数を減するようにしたものでおる。
In order to solve these drawbacks, the present invention divides the integrated value into upper and lower digits, counts up the upper digits when the integrated value of the lower digits exceeds a predetermined value, and calculates the integrated value of the lower digits. The predetermined number is reduced from .

〔作用〕[Effect]

端数が下位桁に残され、その端数が次のカウント開始時
点の値となり、その値に加数が加えられていく。
A fraction is left in the lower digits, and that fraction becomes the value at the start of the next count, and the addend is added to that value.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.

同図において、1は距離センサでToシ、前述したよう
に、スピードメータケーブルの回転によって所定距離走
行する度にパルスを発生するようになっている。2は下
位桁加算器、3ti上位桁加算器である。
In the figure, reference numeral 1 denotes a distance sensor which, as mentioned above, generates a pulse every time the vehicle travels a predetermined distance by rotating the speedometer cable. 2 is a lower digit adder, and 3ti is a higher digit adder.

下位桁加算器2は、距離センサ1から発生するパルス1
個あたりの走行距離を記憶している加数レジスタ2m、
加算器2b、演算レジスタ2c、オア回路2dから構成
され、上位桁加算器3は比較器31、基準値レジスタ3
b、減算器3e、  カウンタ3dから構成されている
。基準値レジスタ3b は加算器2bの加算結果が桁上
げをする値となったことを判断するための基準値、すな
わち下位桁のオーバーフローを判断するための値が記憶
されている。比較器3aは加算器2bの加算結果が基準
値レジスタ3bに記憶している基準値よシも大きい期間
、桁上げ信号を送出するようになっている。
The lower digit adder 2 receives the pulse 1 generated from the distance sensor 1.
Addend register 2m that stores the mileage per piece,
It is composed of an adder 2b, an arithmetic register 2c, and an OR circuit 2d, and the upper digit adder 3 includes a comparator 31 and a reference value register 3.
b, a subtracter 3e, and a counter 3d. The reference value register 3b stores a reference value for determining whether the addition result of the adder 2b has become a value to be carried, that is, a value for determining an overflow of the lower digits. The comparator 3a is configured to send out a carry signal during a period in which the addition result of the adder 2b is greater than the reference value stored in the reference value register 3b.

減算器3cは桁上げ信号が供給されているとき、加tI
j、器2bの加算結果から基準値レジスタ3bの記憶デ
ータを減するようになっている。
The subtracter 3c adds tI when a carry signal is supplied.
j, the data stored in the reference value register 3b is subtracted from the addition result of the unit 2b.

このように構成された装置の動作は次の通シである。自
動車の走行にとも々い距離センサ1からパルスが発生し
、それが加算器2bに供給される。
The operation of the device configured as described above is as follows. As the vehicle travels, the distance sensor 1 generates a pulse, which is supplied to the adder 2b.

加算器2bは距離センサ1からのパルスが供給される度
に演算レジスタ2cの値に加数レジスタ2aの値、すな
わち加数を加算するようになっている。
The adder 2b is configured to add the value of the addend register 2a, that is, the addend, to the value of the calculation register 2c every time a pulse from the distance sensor 1 is supplied.

そして、加算結果はオア回路2dを介して演算レジスタ
2cに供給され取込まれるので、加算器2bの加算結果
祉、距離センサ1からのパルス供給される度に加数の値
だけ大きくなる。この時の加数は前述したように、パル
ス1個あたりの走行距離である。
Then, the addition result is supplied to and taken in by the arithmetic register 2c via the OR circuit 2d, so that the addition result of the adder 2b increases by the value of the addend every time a pulse is supplied from the distance sensor 1. As mentioned above, the addend at this time is the travel distance per pulse.

加算器2bにおいて、何度か加数の加算が行なわれると
、加算結果はやがて基準値レジスタ3bに記憶された値
より大きくなるので、比較器3aは桁上信号を送出し、
カウンタ3dをカウントアツプする。第2図はこの状態
を表わしており、第2図(a)は演算レジスタ2Cの値
、第2図(b)はカウンタ3dの値であや、パルス1個
あた9の加数はα392mとしている。最初は演算レジ
スタ2a。
When the addends are added several times in the adder 2b, the addition result eventually becomes larger than the value stored in the reference value register 3b, so the comparator 3a sends out a carry signal.
Counter 3d is counted up. Figure 2 shows this state. Figure 2 (a) is the value of the calculation register 2C, Figure 2 (b) is the value of the counter 3d, and the addend of 9 per pulse is α392m. There is. The first is the calculation register 2a.

カウンタ3d共にデータが零でおるから、←)、伽)に
示すように、どちらのデータも印」となってい′る。次
に最初のパルスが供給されると加数である0、392m
を表わす「392Jが加算器2bに加算され、その出力
が演算レジスタ2eに取込まれ、演算レジスタ2cのデ
ータは(−)に示すようにl’−392Jとなる。基準
値レジスタ3bのデータを「1000」すなわち1mに
設定しておけば、この時点では桁上けが生じないので、
カウンタ3dのデータは(b)に示すように「0」にな
っている。
Since the data in both counters 3d is zero, both data are marked as ``marks'' as shown in ←) and 佽). Then, when the first pulse is supplied, the addend is 0,392m
``392J'', which represents If you set it to "1000" or 1m, there will be no carry over at this point, so
The data of the counter 3d is "0" as shown in (b).

2度目のパルスが発生すると演算レジスタ2cのデータ
l’−392Jと加数[392Jが加算され、加算器2
bの加算結果は「784」となり、この値が演算レジス
タ2cに取込まれ、演算レジスタ2cのデータは(P)
に示すようKr784Jとなる。
When the second pulse occurs, the data l'-392J of the calculation register 2c and the addend [392J are added, and the adder 2
The addition result of b is "784", this value is taken into the calculation register 2c, and the data of the calculation register 2c is (P).
It becomes Kr784J as shown in .

3度目のパルスによって加算器2bの出力はr1176
Jとなシ、基準値1000を起えるので、比較器3mは
桁上げ信号を発生し、カウンタ3dをカウントアツプす
るので、カウンタ3dは(b)に示すように「1」を指
示する。桁上げ信号は減算器3Cにも供給されるので、
加算器2bの加算結果「1176」から基準値1000
が減算され、その減算結果がオア回路2dを介して演算
レジスタ2cに取込まれる。この結果、演算レジスタ2
cのデータは←)に示すように、桁上げ後の端数「17
6」となシ、カウンタ3dは(b)に示すように「1」
となる。
By the third pulse, the output of adder 2b becomes r1176.
J, the reference value 1000 is generated, so the comparator 3m generates a carry signal and counts up the counter 3d, so the counter 3d instructs "1" as shown in (b). The carry signal is also supplied to subtracter 3C, so
The reference value 1000 is obtained from the addition result “1176” of adder 2b.
is subtracted, and the result of the subtraction is taken into the arithmetic register 2c via the OR circuit 2d. As a result, calculation register 2
As shown in ←), the data of c is the fraction “17” after the carry.
6" and the counter 3d is "1" as shown in (b).
becomes.

4度目のパルスが供給されると、加算器2bは演算レジ
スタ2cのデータr176Jに加数1’−392Jを加
算するので、演算レジスタ2cに取込まれるデータはそ
の加算値である568となる。
When the fourth pulse is supplied, the adder 2b adds the addend 1'-392J to the data r176J in the arithmetic register 2c, so the data taken into the arithmetic register 2c becomes the added value 568.

このデータを表示する場合、上位桁であるカウンタ3d
のデータはそのtま表示すれば良く、下位桁の表示も必
要であれば、演算レジスタ2cのデータまたはその最上
位桁だけを下位桁データとして表示すれば良い。
When displaying this data, counter 3d, which is the upper digit,
It is sufficient to display the data up to that point, and if it is necessary to display the lower digits, the data in the arithmetic register 2c or only the most significant digit thereof may be displayed as the lower digit data.

第3図はこの装置をプログラム処理する時のフローチャ
ートであり、ステップ100〜103が下位桁加算器1
の動作、ステップ104が上位桁加算器3の動作に対応
している。
FIG. 3 is a flowchart when programming this device, and steps 100 to 103 are executed by the lower digit adder 1.
The operation of step 104 corresponds to the operation of the high-order digit adder 3.

なお、以上の実施例は加数を距離パルス1個あたりの走
行距離としたが、距離パルスを直接用いず、分局後の入
力を用いても良く、マた距離のカウントに限定せず、燃
料等の量のカウントにも用いることができる。
In addition, in the above embodiment, the addend is the distance traveled per distance pulse, but the distance pulse may not be used directly, and the input after branching may be used, and the addend is not limited to counting the distance, but the fuel It can also be used to count quantities such as

〔発明の効果〕〔Effect of the invention〕

以上説明したようKこの発明は、積算を上位桁と下位桁
に分けて行ない、端数の補正を下位桁で行なうようにし
たので、従来のように大きな容量のメモリを使用する必
要がなくなシ、経済性が良いという効果を有する。
As explained above, this invention divides integration into upper and lower digits and corrects fractions in the lower digits, eliminating the need to use a large capacity memory as in the past. , it has the effect of being economical.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明の一実施例を示すブロック図、第2図
はレジスタの状態を示す図、第3図はフローチャートで
ある。 1・・・・距離センサ、2・・Φ・下位桁加算器、3・
・・・カウンタ(上位桁加算器)、2&・OΦ・加数レ
ジスタ、2b @@ψ・加算器、2cm・・・演算レジ
スタ、31 ・・・・比較器、3b・・・・基準値レジ
スタ、3c ・・・・減算器。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the states of registers, and FIG. 3 is a flow chart. 1...Distance sensor, 2...Φ・lower digit adder, 3...
... Counter (upper digit adder), 2 & OΦ, addend register, 2b @@ψ, adder, 2cm... calculation register, 31... comparator, 3b... reference value register , 3c...Subtractor.

Claims (1)

【特許請求の範囲】[Claims] 加算信号が供給される度に下位桁の加算を行なう下位桁
加算器と、下位桁加算器が所定値を越えた時に上位桁の
加算を行なう上位桁加算器から構成される積算計におい
て、上位桁加算器は下位桁加算器の加算結果が所定値を
越える度に単位値の加算を行なうとともに下位桁加算結
果から所定値を減じた演算データを出力し、下位桁加算
器は演算データと、加算信号が供給される度にその信号
1回分のデータに相当するデータである加数の積算を行
なつた値とを加えたデータを出力する構成であることを
特徴とする積算計。
In a totalizer that consists of a lower digit adder that adds lower digits each time an addition signal is supplied, and an upper digit adder that adds upper digits when the lower digit adder exceeds a predetermined value, The digit adder adds a unit value every time the addition result of the lower digit adder exceeds a predetermined value, and outputs calculation data obtained by subtracting a predetermined value from the lower digit addition result. An integrator characterized in that each time an addition signal is supplied, it outputs data obtained by adding a value obtained by integrating an addend, which is data corresponding to data for one signal.
JP14459385A 1985-07-03 1985-07-03 Integrating meter Pending JPS626116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14459385A JPS626116A (en) 1985-07-03 1985-07-03 Integrating meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14459385A JPS626116A (en) 1985-07-03 1985-07-03 Integrating meter

Publications (1)

Publication Number Publication Date
JPS626116A true JPS626116A (en) 1987-01-13

Family

ID=15365672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14459385A Pending JPS626116A (en) 1985-07-03 1985-07-03 Integrating meter

Country Status (1)

Country Link
JP (1) JPS626116A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6293487A (en) * 1985-10-21 1987-04-28 Hitachi Ltd Axial piston compressor
JPH034104A (en) * 1989-05-31 1991-01-10 Dainippon Screen Mfg Co Ltd Unit conversion device for laser length measuring instrument

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6293487A (en) * 1985-10-21 1987-04-28 Hitachi Ltd Axial piston compressor
JPH034104A (en) * 1989-05-31 1991-01-10 Dainippon Screen Mfg Co Ltd Unit conversion device for laser length measuring instrument
JPH0749923B2 (en) * 1989-05-31 1995-05-31 大日本スクリーン製造株式会社 Unit converter for laser length measuring equipment

Similar Documents

Publication Publication Date Title
JPH02141670A (en) Meter driving apparatus
JPS626116A (en) Integrating meter
JPS62177453A (en) Bicycle with cyclometer
JPH03167476A (en) Number of rotations indicator
JPH01316664A (en) Digital speed meter
JPS6014303B2 (en) Digital display speedometer
JPS6211986A (en) Integrating meter
JPS60167030A (en) System and circuit for shift flag generation
JPH0355862Y2 (en)
JP2821982B2 (en) Analog meter operation controller
JPS59109865A (en) Integral control-type speed detector
JPS6247717A (en) Digital servo control system
JPS6239289Y2 (en)
JPS62284215A (en) Display device
SU871077A2 (en) Digital meter of linear overloads
JPS6126029B2 (en)
JPH0714901Y2 (en) Engine rotation signal processor
JPH0560808A (en) Period measuring instrument, frequency measuring instrument, period and frequency measuring method, and meter driving device
JPH0277615A (en) Apparatus for displaying physical quantity
JPS62259101A (en) Speed arithmetic system
JPS6023695Y2 (en) Vehicle speed display device
JPH0275574U (en)
JPH043225Y2 (en)
JPH0342612B2 (en)
JPH0342408B2 (en)