JPS63121711A - Digital revolution counter - Google Patents

Digital revolution counter

Info

Publication number
JPS63121711A
JPS63121711A JP61266715A JP26671586A JPS63121711A JP S63121711 A JPS63121711 A JP S63121711A JP 61266715 A JP61266715 A JP 61266715A JP 26671586 A JP26671586 A JP 26671586A JP S63121711 A JPS63121711 A JP S63121711A
Authority
JP
Japan
Prior art keywords
cpu
mode
input
detection signal
counter
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
JP61266715A
Other languages
Japanese (ja)
Inventor
Yoshio Kishi
芳男 岸
Saburo Hoshino
星野 三郎
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.)
KOYO DENSHI KOGYO KK
Koyo Electronics Industries Co Ltd
Original Assignee
KOYO DENSHI KOGYO KK
Koyo Electronics Industries 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 KOYO DENSHI KOGYO KK, Koyo Electronics Industries Co Ltd filed Critical KOYO DENSHI KOGYO KK
Priority to JP61266715A priority Critical patent/JPS63121711A/en
Priority to DE19873737992 priority patent/DE3737992A1/en
Priority to KR1019870012691A priority patent/KR940011326B1/en
Publication of JPS63121711A publication Critical patent/JPS63121711A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/02Devices characterised by the use of mechanical means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • G01P3/489Digital circuits therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D3/00Indicating or recording apparatus with provision for the special purposes referred to in the subgroups
    • G01D3/02Indicating or recording apparatus with provision for the special purposes referred to in the subgroups with provision for altering or correcting the law of variation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/64Devices characterised by the determination of the time taken to traverse a fixed distance

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Technology Law (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Component Parts Of Construction Machinery (AREA)

Abstract

PURPOSE:To obtain a revolution counter capable of measuring the number of revolution, a speed, length, time, the number of units, etc., only by itself by inputting the 1st and 2nd position detecting signals to the 1st and 2nd signal inputting means and calculating a value corresponding to a mode by a mode selecting means based on these position signals. CONSTITUTION:A digital revolution counter is used for a measuring instrument for measuring the number of revolution of a motor for driving a belt conveyer, the moving speed of the conveyer, time required for moving a carried substance in a prescribed section, the length of the substance, and the number of substances. Thereby, an input control circuit 3 to which two position detecting signals are inputted, a mode selector 4 consisting of a dip switch and a pulse generator 6 for outputting reference clock pulses with prescribed frequency are connected to the input side of a CPU 5. On the other hand, a reference clock counter 7, an input pulse counter 8 for counting two position detecting signals and a display device 9 for displaying the computed result of the CPU 5 are connected to the output side of the CPU 5 and the CPU 5 regulates an operating state by using a prescale setter 10.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はデジタル回転計に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a digital tachometer.

[従来の技術] ベルトコンベアを駆動するモータの回転数、ベルトコン
ベアの移動速度、ベルトコンベアによって搬送される物
体の所定区間の移動に要する時間、その物体の長さ、ベ
ルトコンベア等によって搬送される物体が所定位置を通
る個数等を測定する場合、従来は回転計、速度計、針時
計、測長計、カウンタ等の測定器を用いていた。
[Prior Art] The number of revolutions of the motor that drives the belt conveyor, the moving speed of the belt conveyor, the time required for the object to be transported by the belt conveyor to move over a predetermined section, the length of the object, the belt conveyor, etc. When measuring the number of objects passing through a predetermined position, conventionally, measuring instruments such as a tachometer, speedometer, hand clock, length meter, counter, etc. have been used.

[発明が解決しようとする問題点] 上述したように得ようとする測定値に応じて、これらの
測定器から適当なものを選択して、測定しなければなら
ないので手間がかかり、数種類の測定器を用意しなけれ
ばならないという問題があった。
[Problems to be Solved by the Invention] As mentioned above, it is necessary to select an appropriate measuring device from these measuring devices and perform the measurement depending on the measured value to be obtained, which is time-consuming and requires several types of measurements. There was a problem of having to prepare a container.

本発明は上記問題点を解決するためになされたもので、
回転数、速度、時間、長さ及び数を測定できるデジタル
回転計を提供することを目的とする。
The present invention has been made to solve the above problems,
The purpose of the present invention is to provide a digital tachometer capable of measuring rotation speed, time, length, and number.

[問題点を解決するための手段] そこで、本発明では第1の位置検出器からの第1の位置
検出信号が入力される第1の入力手段と、第2の位置検
出器からの第2の位置検出信号が入力される第2の入力
手段と、測定モードを選択するためのモード選択手段と
、第1の位置検出信号及び第2の位置検出信号に基づい
て、モード選択手段によって選択されたモードに対応す
る値を算出する演算手段と、演算手段の演算結果を表示
する表示手段とからデジタル回転計を構成する。
[Means for solving the problem] Therefore, in the present invention, the first input means into which the first position detection signal from the first position detector is input, and the second input means from the second position detector are input. a second input means into which a position detection signal is input; a mode selection means for selecting a measurement mode; and a mode selection means selected by the mode selection means based on the first position detection signal and the second position detection signal. A digital tachometer is constituted by a calculation means for calculating a value corresponding to the selected mode, and a display means for displaying the calculation result of the calculation means.

[作 用] 上記構成のデジタル回転計は、第1の入力手段及び第2
の入力手段が第1の位置検出信号及び第2の位置検出信
号を入力し、演算手段が第1の位置検出信号及び第、2
の位置検出信号に基づいて、モード選択手段によって選
択されたモードに対応する値を算出し、表示手段が演算
手段の演算結果を表示する。
[Function] The digital tachometer with the above configuration has a first input means and a second input means.
The input means inputs the first position detection signal and the second position detection signal, and the calculation means inputs the first position detection signal and the second position detection signal.
Based on the position detection signal, the mode selection means calculates a value corresponding to the selected mode, and the display means displays the calculation result of the calculation means.

[実施例コ 以下、本発明の一実施例を添附図面を参照して詳細に説
明する。
[Example 1] Hereinafter, an example of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明に係るデジタル回転計のブロック図であ
る。第1図において、1及び2は位置検出器(図示せず
)からの位置検出信号A及びBが入力される第1の入力
端子及び第2の入力端子、3は入力制御回路、4はディ
ップスイッチにより構成されているモード選択器、5は
所定の演算を行なう中央処理装置(以下、CPUという
)、6は所定周波数の基準クロックパルスを出力する基
準クロックパルス発生器、7は基準クロックパルスのパ
ルス数を計数する基準クロックカウンタ、8は第1の入
力端子又は第2の入力端子に入力される位置検出信号A
又はBを計数する入力パルスカウンタ、9はCPU5の
演算結果を表示する表示器である。
FIG. 1 is a block diagram of a digital tachometer according to the present invention. In FIG. 1, 1 and 2 are first and second input terminals into which position detection signals A and B from a position detector (not shown) are input, 3 is an input control circuit, and 4 is a dip input terminal. 5 is a central processing unit (hereinafter referred to as CPU) that performs predetermined calculations; 6 is a reference clock pulse generator that outputs reference clock pulses of a predetermined frequency; 7 is a reference clock pulse generator that outputs reference clock pulses of a predetermined frequency; A reference clock counter that counts the number of pulses; 8 is a position detection signal A that is input to the first input terminal or the second input terminal;
or an input pulse counter that counts B, and 9 is a display that displays the calculation results of the CPU 5.

次に、本発明に係るデジタル回転計の動作についてフロ
ーチャートを参照して説明する。
Next, the operation of the digital tachometer according to the present invention will be explained with reference to a flowchart.

(1)ステップ5I CPU5はモード選択器4により選択されたモードを読
み込む。
(1) Step 5I The CPU 5 reads the mode selected by the mode selector 4.

(2)ステップ82〜54 CPU5は演算要求フラグが「1」であれば(ステップ
S2)、演算を行ない(ステップS3)、演算結果を表
示する(ステップ84)。各モードでの処理及び各モー
ドでの処理結果に基づいて演算を行なうか否かを、割り
込み処理によって行なうもので、モード選択器4が切り
換えられると、CPU5はこれらの処理を行なう。
(2) Steps 82 to 54 If the calculation request flag is "1" (step S2), the CPU 5 performs the calculation (step S3) and displays the calculation result (step 84). Processing in each mode and whether or not to perform calculations based on the processing results in each mode are determined by interrupt processing, and when the mode selector 4 is switched, the CPU 5 performs these processing.

まず、モードの選択について第3図に示したフローチャ
ートを参照して説明する。CPU5はディップスイッチ
が「1」であれば(ステップ5ll)、モード1を実行
しくステップ812 ) 、ディップスイッチが「2」
であれば(ステップS18 ) 、モード2を実行しく
ステップ514)、ディップスイッチが「3」であれば
(ステップ515)、モード3を実行しくステップ81
B ) 、ディップスイッチが「4」であれば(ステッ
プ517)、モード4を実行しくステップ818)、デ
ィップスイッチが「5」であれば(ステップ519)、
モード5を実行しくステップ820 ”) 、ディップ
スイッチが「6」であれば(ステップS21 ) 、モ
ード6を実行しくステップ522)、デイップスイッチ
が「7」であれば(ステップ523)、モード7を実行
しくステップ824 ) 、ディップスイッチが18」
であれば(ステップ825 ) 、モード6を実行する
(ステップ826)。
First, mode selection will be explained with reference to the flowchart shown in FIG. If the dip switch is "1" (step 5ll), the CPU 5 executes mode 1 (step 812), and if the dip switch is "2"
If so (step S18), mode 2 will be executed (step 514), and if the dip switch is "3" (step 515), mode 3 will be executed (step 81).
B) If the dip switch is "4" (step 517), execute mode 4 (step 818), if the dip switch is "5" (step 519),
If the dip switch is set to "6" (step S21), then the mode 6 is set to be executed (step 522); if the dip switch is set to "7" (step 523), then the mode 7 is set to "7" (step 523); Execute step 824) and set the dip switch to 18.
If so (step 825), mode 6 is executed (step 826).

さらに、CPU5はディップスイッチが「1」〜「8」
のいずれでもないときは、割り込みを中止し、メインフ
ロー(第2図)に戻る。
Furthermore, the dip switch of the CPU5 is set to "1" to "8".
If neither of these is the case, the interrupt is canceled and the process returns to the main flow (FIG. 2).

ここで、各モードについて第4図〜第11図を参照して
説明する。
Each mode will now be explained with reference to FIGS. 4 to 11.

モード1は第4図に示すようにベルトコンベア11を駆
動するモータ12の回転数又はベルトコンベア■1の速
度を測定するもので、入力端子1にはモータ12に接続
された検出器13が出力する検出信号Aが入力される。
Mode 1 is for measuring the rotation speed of the motor 12 that drives the belt conveyor 11 or the speed of the belt conveyor 1, as shown in Fig. 4, and the detector 13 connected to the motor 12 is output to the input terminal 1. A detection signal A is input.

モード2は第5図に示すようにローラ14によって搬送
される板15の速度を測定するもので、入力端子1.2
にはローラ14上方に所定間隔を隔てて設けられた検出
器16.17が出力する検出信号A1Bが入力される。
Mode 2 is for measuring the speed of the plate 15 conveyed by the roller 14 as shown in FIG.
A detection signal A1B output from detectors 16 and 17 provided above the roller 14 at a predetermined interval is inputted to the sensor.

モード3は第6図に示すようにパーツフィーダ18によ
って供給される部品19が所定位置を通過する周期を測
定するもので、入力端子1には検出器20が出力する検
出信号Aが入力される。
In mode 3, as shown in FIG. 6, the period in which the parts 19 fed by the parts feeder 18 pass through a predetermined position is measured, and the detection signal A output from the detector 20 is input to the input terminal 1. .

モード4は第7図に示すようにローラ14によって搬送
される板15の位置aから位置すに至る時間を測定する
もので、入力端子1.2には位置a1bに設けられた検
出器16.17が出力する検出信号A、Bが入力される
In mode 4, as shown in FIG. 7, the time required for the plate 15 conveyed by the rollers 14 to reach the position from position a is measured, and the input terminal 1.2 is connected to the detector 16.2 provided at the position a1b. Detection signals A and B outputted by 17 are input.

モード5は第8図に示すように材料21がプレス22に
よって圧縮されている時間を測定するもので、入力端子
1には検出器23が出力する検出信号Aが入力される。
Mode 5 is for measuring the time during which the material 21 is compressed by the press 22, as shown in FIG. 8, and the detection signal A output from the detector 23 is input to the input terminal 1.

モード6は第9図に示すようにベルトコンベア11によ
って搬送される材料24の長さを測定するもので、入力
端子1.2には検出器25(ロータリーエンコーダ)、
26が出力する検出信号A、Bが入力される。
Mode 6 is for measuring the length of the material 24 conveyed by the belt conveyor 11 as shown in FIG. 9, and the input terminal 1.2 has a detector 25 (rotary encoder)
Detection signals A and B output by 26 are input.

モード7は第10図に示すようにベルトコンベア11に
よって搬送される板15のマーク15mの間隔を測定す
るもので、入力端子1.2には検出器25(ロータリー
エンコーダ)、16が出力する検出信号A、Bが入力さ
れる。
Mode 7 is for measuring the interval of 15 m of marks on the plate 15 conveyed by the belt conveyor 11 as shown in FIG. Signals A and B are input.

モード8は第11図に示すように検出器27の回転によ
って出力される検出信号Aのパルス数を測定するもので
、入力端子1にはこの検出信号Aが入力される。
In mode 8, as shown in FIG. 11, the number of pulses of the detection signal A output by the rotation of the detector 27 is measured, and this detection signal A is input to the input terminal 1.

次に、割り込み動作によりCPU5が実行するモード1
〜8について説明する。
Next, mode 1 is executed by the CPU 5 by an interrupt operation.
-8 will be explained.

(a)モード1 (1)ステップ5120 CPU5は現在測定中であるか否かを示すカウントフラ
グが「0」 (測定中でない)であるか「1」 (測定
中である)であるかを判断する。
(a) Mode 1 (1) Step 5120 The CPU 5 determines whether the count flag indicating whether or not measurement is currently in progress is "0" (not in progress) or "1" (in progress). do.

(2)ステップ8121−8123 CPU5はカウントフラグが「0」であるときは、カウ
ントフラグに「1」をセットしくステップ5121)、
基準クロックカウンタ7をクリアしくステップ5122
) 、さらに入力パルスカウンタ8をクリアして(ステ
ップ8123)、割り込み処理を終了する。なお、基準
クロックカウンタ7はクリア後、直ちに計数を開始する
(2) Steps 8121-8123 When the count flag is "0", the CPU 5 sets the count flag to "1" (Step 5121),
Clear reference clock counter 7 Step 5122
), further clears the input pulse counter 8 (step 8123), and ends the interrupt processing. Note that the reference clock counter 7 starts counting immediately after being cleared.

(3)ステップ5124〜8126 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5は再びモード1の処理を行なう。ステッ
プ5121でカウントフラグに「1」をセットしたので
、CPU5は入力パルスカウンタ8の計数値をセーブし
くステップ8124) 、基準クロックカウンタ7をセ
ーブしくステップ9125)、さらに測□定結果に基づ
いて演算を行なう旨を要求する演算要求フラグに「1」
をセットしくステップ812B) 、割り込み処理を終
了する。
(3) Steps 5124 to 8126 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 1 processing again. Since the count flag is set to "1" in step 5121, the CPU 5 saves the count value of the input pulse counter 8 (step 8124), saves the reference clock counter 7 (step 9125), and performs calculations based on the measurement results. Set "1" to the calculation request flag requesting that
Step 812B) is set, and the interrupt processing is terminated.

(b)モード2 (1)ステップ8141−5L48 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5はモード2の処理を行なう。CPU5は
カウントフラグが「0」であるか「1」であるかを判断
しくステップ8141) 、カウントフラグが「0」の
ときは、カウントフラグに「1」をセットしくステップ
8142) 、基準クロックカウンタ7をクリアして(
ステップ5L43) 、割り込み処理を終了する。
(b) Mode 2 (1) Step 8141-5L48 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 2 process. The CPU 5 determines whether the count flag is "0" or "1" (step 8141), and when the count flag is "0", sets the count flag to "1" (step 8142), the reference clock counter. Clear 7 (
Step 5L43), the interrupt processing ends.

(2)ステップ8144〜5145 入力端子2に検出信号Bが入力されると、割り込みがか
かり、CPU5は再びモード2の処理を行なう。ステッ
プ8142でカウントフラグに「1」をセットしたので
、CPU5は基準クロックカウンタ7の計数値をセーブ
しくステップ8144) 、さらに演算要求フラグに「
1」をセットしくステップ8145) 、割り込み処理
を終了する。
(2) Steps 8144 to 5145 When the detection signal B is input to the input terminal 2, an interrupt occurs, and the CPU 5 performs the mode 2 processing again. Since the count flag is set to "1" in step 8142, the CPU 5 saves the count value of the reference clock counter 7 (step 8144), and further sets the calculation request flag to "1".
1" (step 8145), and ends the interrupt processing.

(c)モード3 (1)ステップ8181−8163 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5はモード3の処理を行なう。CPU5は
カウントフラグが「0」であるか「1」であるかを判断
しくステップ8181) 、カウントフラグが「0」の
ときは、カウントフラグに「1」をセットしくステップ
5lB2) 、基準クロックカウンタ7をクリアして(
ステップ8163) 、割り込み処理を終了する。
(c) Mode 3 (1) Steps 8181-8163 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 3 process. The CPU 5 determines whether the count flag is "0" or "1" (step 8181), and when the count flag is "0", sets the count flag to "1" (step 5lB2), the reference clock counter. Clear 7 (
Step 8163), the interrupt processing ends.

(2)ステップ8164〜SIB5 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5は再びモード3の処理を行なう。ステッ
プ8162でカウントフラグに「1」をセットしたので
、CPU5は基準クロックカランタフの計数値をセーブ
しくステップ81B4) 、さらに演算要求フラグに「
1」をセットしくステップ8185) 、割り込み処理
を終了する。
(2) Steps 8164 to SIB5 When the detection signal A is input to the input terminal 1, an interrupt occurs and the CPU 5 performs the mode 3 processing again. Since the count flag is set to "1" in step 8162, the CPU 5 saves the count value of the reference clock carantuff (step 81B4), and further sets the calculation request flag to "1".
1" (step 8185), and ends the interrupt processing.

(d)モード5 (1)ステップ8201〜8203 入力端子1に検出信号Aが入力されると、検出信号Aの
立上りで割り込みがかかり、CPU5はモード5の処理
を行なう。CPU5はカウントフラグが「0」であるか
「1」であるかを判断しくステップ5201)、カウン
トフラグが「0」のときは、カウントフラグに「1」を
セットしくステップ5202) 、基準クロックカウン
タ7をクリアをクリアして(ステップ8208) 、割
り込み処理を終了する。
(d) Mode 5 (1) Steps 8201 to 8203 When detection signal A is input to input terminal 1, an interrupt occurs at the rising edge of detection signal A, and CPU 5 performs mode 5 processing. The CPU 5 determines whether the count flag is "0" or "1" (step 5201), and when the count flag is "0", sets the count flag to "1" (step 5202), the reference clock counter. 7 is cleared (step 8208), and the interrupt processing is ended.

(2)ステップ8204〜5205 入力端子1に入力されている検出信号Aの立下りで割り
込みがかかり、CPU5は再びモード5の処理を行なう
。ステップ5201でカウントフラグに「1」をセット
したので、CPU5は基準クロックカウンタ7の計数値
をセーブしくステップ5204) 、さらに演算要求フ
ラグに「1」をセットしくステップ5205)、割り込
み処理を終了する。
(2) Steps 8204 to 5205 An interrupt occurs at the fall of the detection signal A input to the input terminal 1, and the CPU 5 performs the mode 5 processing again. Since the count flag is set to "1" in step 5201, the CPU 5 saves the count value of the reference clock counter 7 (step 5204), further sets the calculation request flag to "1" (step 5205), and ends the interrupt processing. .

(e)モード6 (1)ステップ8221−8223 入力端子2に検出信号Bが入力されると、検出信号Bの
立上りで割り込みがかかり、CPU5はモード6の処理
を行なう。CPU5はカウントフラグが「0」であるか
「1」であるかを判断しくステップ8221) 、カウ
ントフラグが「0」であるときは、カウントフラグに「
1」をセットしくステップ5222) 、入力パルスカ
ウンタ7をクリアして(ステップ5223)、割り込み
処理を終了する。
(e) Mode 6 (1) Steps 8221-8223 When the detection signal B is input to the input terminal 2, an interrupt occurs at the rising edge of the detection signal B, and the CPU 5 performs mode 6 processing. The CPU 5 determines whether the count flag is "0" or "1" (step 8221), and when the count flag is "0", it sets "
1" (step 5222), clears the input pulse counter 7 (step 5223), and ends the interrupt processing.

(2)ステップ8224〜5227 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5は再びモード6の処理を行なう。ステッ
プ5221でカウントフラグに「1」をセットしたので
、CPU5は検出信号Bが立下ったかどうかを判断する
。CPU5は検出信号Bが立上っているときは、入カパ
ルスカウンタアを1だけカウントアツプする(ステップ
8225)。又、検出信号Bが立下っているときは、入
力パルスカウンタ7の計数値をセーブしくステップ92
2B)、さらに演算要求フラグに「1」をセットしくス
テップ5227) 、割り込み処理を終了する。
(2) Steps 8224 to 5227 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 6 process again. Since the count flag is set to "1" in step 5221, the CPU 5 determines whether the detection signal B has fallen. When the detection signal B is rising, the CPU 5 increments the input pulse counter by 1 (step 8225). Also, when the detection signal B is falling, the count value of the input pulse counter 7 is saved in step 92.
2B), further sets the calculation request flag to "1" (step 5227), and ends the interrupt processing.

(f)モード7 (1)ステップ5241−8242 入力端子2に検出信号Bが入力されると、割り込みがか
かり、CPU5はモード7の処理を行なう。CPU5は
カウントフラグが「0」であるか「1」であるかを判断
しくステップ5241) 、カウントフラグが「0」で
あるときは、カウントフラグに「1」をセットしくステ
ップ8242) 、入カバルスカウンタアをクリアして
(ステップ8248)、割り込み処理を終了する。
(f) Mode 7 (1) Steps 5241-8242 When the detection signal B is input to the input terminal 2, an interrupt occurs, and the CPU 5 performs the mode 7 process. The CPU 5 determines whether the count flag is "0" or "1" (Step 5241), and if the count flag is "0", sets the count flag to "1" (Step 8242). The pulse counter is cleared (step 8248), and the interrupt processing ends.

(2)ステップ8244〜5247 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5は再びモード7の処理を行なう。ステッ
プ5241でカウントフラグに「1」をセットしたので
、CPU5は検出信号Bが再度入力されたか否かを判断
する(ステップ5244)。
(2) Steps 8244 to 5247 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 7 process again. Since the count flag is set to "1" in step 5241, the CPU 5 determines whether the detection signal B is input again (step 5244).

CPU5は検出信号Bが再度入力されていないときは、
入カパルスカウンタマを1だけカウントアツプする(ス
テップ9245)。又、検出信号Bが再度入力されてい
ないときは、入カパルスカウンタフの計数値をセーブし
くステップS2’4B) 、さらに演算要求フラグに「
1」をセットしくステップ8247) 、割り込み処理
を終了する。
When the detection signal B is not input again, the CPU 5
The input pulse counter is counted up by 1 (step 9245). In addition, when the detection signal B is not input again, the count value of the input pulse counter is saved (step S2'4B), and the calculation request flag is set to "
1" (step 8247), and ends the interrupt processing.

(g)モード8 (1)ステップ8261〜8263 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5はモード8の処理を行なう。CPU5は
カウントフラグが「0」であるか「1」であるかを判断
しくステップ8261)、カウントフラグが「0」であ
るときは、カウントフラグに「1」をセットしくステッ
プ82B2) 、入力パルスカウンタ7をクリアして(
ステップ8263)、割り込み処理を終了する。
(g) Mode 8 (1) Steps 8261 to 8263 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 8 process. The CPU 5 determines whether the count flag is "0" or "1" (step 8261), and if the count flag is "0", sets the count flag to "1" (step 82B2), input pulse Clear counter 7 (
Step 8263), the interrupt processing ends.

(2)ステップ8264〜8266 入力端子1に検出信号Aが入力されると、割り込みがか
かり、CPU5は再びモード8の処理を行なう。ステッ
プ8261でカウントフラグに「1」をセットしたので
、CPU5は入カパルスカウンタアを1だけカウントア
ツプする(ステップ8284) 、入カパルスカウンタ
アの計数値をセーブしくステップ8265) 、さらに
演算要求フラグに「1」をセットしくステップS2[i
8) 、割り込み処理を終了する。
(2) Steps 8264 to 8266 When the detection signal A is input to the input terminal 1, an interrupt occurs, and the CPU 5 performs the mode 8 process again. Since the count flag is set to "1" in step 8261, the CPU 5 increments the input pulse counter by 1 (step 8284), saves the count value of the input pulse counter (step 8265), and requests further calculation. To set the flag to "1", step S2[i
8) End the interrupt processing.

次に、各モード(こおける演算処理について説明する。Next, the calculation processing in each mode will be explained.

演算処理は演算要求フラグが1のとき行なう。Arithmetic processing is performed when the arithmetic request flag is 1.

(a)モードl CPU5はステップ5124でセーブした入力パルスカ
ウンタ8の計数値に1ステツプ5125でセーブした基
準クロックカウンタの計数値n及び基準クロックの周期
tから、モータ12の回転数を算出する。即ち、モータ
12の回転数N1は、である。又、ベルトコンベア11
の速度vlは、ベルトコンベア11が巻回されているロ
ーラ28の半径をr1円周率をπとすると、 vl −2yr r XNI である。プリスケール設定器10の設定値を2πrとす
ると速度v1を求めることができる。
(a) Mode I The CPU 5 calculates the rotation speed of the motor 12 from the count value of the input pulse counter 8 saved in step 5124, the count value n of the reference clock counter saved in step 5125, and the period t of the reference clock. That is, the rotation speed N1 of the motor 12 is. Also, belt conveyor 11
The speed vl is vl -2yr r XNI where the radius of the roller 28 around which the belt conveyor 11 is wound is r1 and the circumference is π. If the set value of the prescale setter 10 is 2πr, the speed v1 can be determined.

(b)モード2 CPU5はステップ5144でセーブした基準クロック
カランタフの計数値n1基準クロツクの周期を及びプリ
スケール設定器10の設定値Cから、板15の速度を算
出する。即ち、板15の速度v2は、Xt である。この場合、Cは検出器16.17間の距離であ
る。
(b) Mode 2 The CPU 5 calculates the speed of the plate 15 from the count value n1 of the reference clock Carantuff saved in step 5144 and the set value C of the prescale setter 10. That is, the speed v2 of the plate 15 is Xt. In this case, C is the distance between the detectors 16.17.

−15= (c)モード3 CPU5はステップ8164でセーブした基準クロック
カウンタ7の計数値n1基準クロツクの周期を及びプリ
スケール設定器IOの設定値Cから、部品19が所定位
置を通過する周期を算出する。即ち、部品19が所定位
置を通過する周期T3は、’ra=nxtxc である。c=1と設定すると、表示単位は秒となる。
-15= (c) Mode 3 The CPU 5 calculates the cycle at which the component 19 passes through the predetermined position from the count value n1 of the reference clock counter 7 saved in step 8164 and the set value C of the prescale setting device IO. calculate. That is, the period T3 during which the component 19 passes through the predetermined position is 'ra=nxtxc. If c=1 is set, the display unit will be seconds.

(d)モード4 CPU5はステップ5144でセーブした基準クロック
カランタフの計数値n1基準クロツクの周期を及びプリ
スケール設定器10の設定値Cから、板15の位置aか
ら位置すに至る時間を算出する。即ち、板15の位置a
から位置すに至る時間速度T4は、T4− n x t
 x ( である。c−1と設定すると、表示単位は秒となる。
(d) Mode 4 The CPU 5 calculates the time it takes for the plate 15 to move from position a to position a from the count value n1 of the reference clock saved in step 5144 and the set value C of the prescale setting device 10. do. That is, the position a of the plate 15
The time speed T4 from to the position is T4- n x t
x ( If set as c-1, the display unit will be seconds.

(e)モード5 CPU5はステップ5204でセーブした基準クロツク
カランタフの計数値n1基準クロツクの周期を及びプリ
スケール設定器10の設定値Cから、材料21がプレス
22によって圧縮されている時間T5を算出する。即ち
、材料21がプレス22によって圧縮さいている時間T
5は、 T5−nxtx( である。c−1と設定すると、表示単位は秒となる。
(e) Mode 5 The CPU 5 calculates the time period T5 during which the material 21 is compressed by the press 22 from the count value n1 of the reference clock count n1 saved in step 5204 and the set value C of the prescale setting device 10. Calculate. That is, the time T during which the material 21 is compressed by the press 22
5 is T5-nxtx (. If set as c-1, the display unit will be seconds.

Cr)モード6 CPU5はステップ8226でセーブした入力パルスカ
ウンタ8の計数値K及びプリスケール設定器10の設定
値Cから、材料24の長さL6を算出する。
Cr) Mode 6 The CPU 5 calculates the length L6 of the material 24 from the count value K of the input pulse counter 8 saved in step 8226 and the set value C of the prescale setting device 10.

即ち、材料24の長さL6は、 L6日kXc である。Cはロータリーエンコーダの1パルスが何叩に
相当するかを設定すると表示単位は叩になる。
That is, the length L6 of the material 24 is L6 days kXc. C sets the number of beats that one pulse of the rotary encoder corresponds to, and the display unit becomes beats.

(g)モード7 CPU5はステップ824Bでセーブした入力パルスカ
ウンタ8の計数値K及びプリスケール設定器10の設定
値Cから、板15のマーク15mの間隔を算出する。即
ち、板15のマーク15mの間隔N7は。
(g) Mode 7 The CPU 5 calculates the interval between the marks 15m on the plate 15 from the count value K of the input pulse counter 8 and the set value C of the prescale setting device 10 saved in step 824B. That is, the interval N7 between the marks 15m on the plate 15 is as follows.

N7− k X c である。Cはロータリーエンコーダの1パルスが何叩に
相当するかを設定すると表示単位はcmになる。
N7-kXc. C sets the number of beats that one pulse of the rotary encoder corresponds to, and the display unit becomes cm.

’   (h)モード8 CPU5はステップ8265でセーブした入力パルスカ
ウンタ8の計数値K及びプリスケール設定器10の設定
値Cを、検出器27の値とする。
(h) Mode 8 The CPU 5 sets the count value K of the input pulse counter 8 and the set value C of the prescale setter 10 saved in step 8265 as the values of the detector 27.

表示器9は上述したようにして算出したCPU5の演算
結果を表示する。
The display 9 displays the calculation results of the CPU 5 calculated as described above.

[発明の効果コ 以上説明したように本発明によれば、第1の入力手段及
び第2の入力手段が第1の位置検出信号及び第2の位置
検出信号を入力し、演算手段が第1の位置検出信号及び
第2の位置検出信号に基づいて、モード選択手段によっ
て選択されたモードに対応する値を算出するようにした
ので、1台で回転数、速度、長さ、時間及び数を測定で
きるデジタル回転計が得られる。
[Effects of the Invention] As explained above, according to the present invention, the first input means and the second input means input the first position detection signal and the second position detection signal, and the calculation means inputs the first position detection signal. Based on the position detection signal and the second position detection signal, the value corresponding to the mode selected by the mode selection means is calculated. A digital tachometer that can be used for measurement is obtained.

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

第1図は本発明に係るデジタル回転計のブロック図、第
2図、第3図、第12図〜第18図は本発明に係るデジ
タル回転計の動作を示すフローチャート、第4図〜第1
1図は本発明に係るデジタル回転計の測定モードの説明
図である。 1.2・・・入力端子、3・・・入力制御回路、4・・
・モード設定器、5・・・CPU (中央処理装置)、
6・・・基準クロックパルス発生器、7・・・基準クロ
ックカウンタ、8・・・入力パルスカウンタ、9・・・
表示器、lO・・・プリスケール設定器。
FIG. 1 is a block diagram of the digital tachometer according to the present invention, FIGS. 2, 3, and 12 to 18 are flowcharts showing the operation of the digital tachometer according to the present invention, and FIGS.
FIG. 1 is an explanatory diagram of the measurement mode of the digital tachometer according to the present invention. 1.2...Input terminal, 3...Input control circuit, 4...
・Mode setting device, 5...CPU (central processing unit),
6... Reference clock pulse generator, 7... Reference clock counter, 8... Input pulse counter, 9...
Display, lO...Prescale setting device.

Claims (2)

【特許請求の範囲】[Claims] (1)第1の位置検出器からの第1の位置検出信号が入
力される第1の入力手段と、第2の位置検出器からの第
2の位置検出信号が入力される第2の入力手段と、測定
モードを選択するためのモード選択手段と、前記第1の
位置検出信号及び前記第2の位置検出信号に基づいて、
前記モード選択手段によって選択されたモードに対応す
る値を算出する演算手段と、前記演算手段の演算結果を
表示する表示手段とを備えたことを特徴とするデジタル
回転計。
(1) A first input means into which a first position detection signal from a first position detector is input, and a second input into which a second position detection signal from a second position detector is input. means, mode selection means for selecting a measurement mode, based on the first position detection signal and the second position detection signal,
A digital tachometer comprising: a calculation means for calculating a value corresponding to the mode selected by the mode selection means; and a display means for displaying the calculation result of the calculation means.
(2)測定モードは、少なくとも回転数、速度、時間及
び数を含む特許請求の範囲第1項記載のデジタル回転計
(2) The digital tachometer according to claim 1, wherein the measurement mode includes at least rotation speed, speed, time, and number.
JP61266715A 1986-11-11 1986-11-11 Digital revolution counter Pending JPS63121711A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP61266715A JPS63121711A (en) 1986-11-11 1986-11-11 Digital revolution counter
DE19873737992 DE3737992A1 (en) 1986-11-11 1987-11-09 Digital tachometer (rev counter)
KR1019870012691A KR940011326B1 (en) 1986-11-11 1987-11-11 Digital revolution counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61266715A JPS63121711A (en) 1986-11-11 1986-11-11 Digital revolution counter

Publications (1)

Publication Number Publication Date
JPS63121711A true JPS63121711A (en) 1988-05-25

Family

ID=17434673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61266715A Pending JPS63121711A (en) 1986-11-11 1986-11-11 Digital revolution counter

Country Status (3)

Country Link
JP (1) JPS63121711A (en)
KR (1) KR940011326B1 (en)
DE (1) DE3737992A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57139371A (en) * 1981-02-23 1982-08-28 Kurita Giken Kk Golf exercise apparatus
JPS59142467A (en) * 1983-02-03 1984-08-15 Sanyo Electric Co Ltd Speed indicator for bicycle

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2014726C3 (en) * 1970-03-23 1980-01-31 Mannesmann Ag, 4000 Duesseldorf Method and device for opto-electrical measurement of the speed and / or length of moving objects
DE2127953A1 (en) * 1970-06-06 1972-01-20 Vernon H. Cooper Ltd., Nottingham (Großbritannien) Yarn measuring device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57139371A (en) * 1981-02-23 1982-08-28 Kurita Giken Kk Golf exercise apparatus
JPS59142467A (en) * 1983-02-03 1984-08-15 Sanyo Electric Co Ltd Speed indicator for bicycle

Also Published As

Publication number Publication date
KR940011326B1 (en) 1994-12-05
DE3737992A1 (en) 1988-05-26
KR880006546A (en) 1988-07-23

Similar Documents

Publication Publication Date Title
US3553728A (en) Frequency measuring apparatus with automatic adjustment of measurement interval for enhanced speed and accuracy
CN101206126A (en) Absoluteness type round grating sensor measuring apparatus for measuring absolute location
US3962618A (en) Digital following error measurement system
JPS63121711A (en) Digital revolution counter
US5146162A (en) Engine speed measuring device with plural counters for averaging angular velocity
JPH035990Y2 (en)
EP0295720A3 (en) Laser speckel velocity-measuring apparatus
JP3031970B2 (en) Filter circuit
JPS61128121A (en) Rotary encoder inspecting apparatus
JPH0325316A (en) Ratio meter
SU909605A1 (en) Device for measuring pressure fields in gas turbine engine
JPS6319831B2 (en)
JPS63163281A (en) Digital speed indicator
JPH02306147A (en) Humidity measuring apparatus
SU1479395A1 (en) Density sensor for material carried by conveyer
SU1019222A1 (en) Measuring converter
JP2968679B2 (en) Measurement error display device
KR930001393Y1 (en) Motor speed indicating digitalmeter circuit
SU763797A1 (en) Digital measuring instrument for determining relative velocity difference
SU590788A1 (en) Device for programmable counting articles
JPH0643009A (en) Weight measuring apparatus
SU938183A1 (en) Device for measuring frequency deviation
RU1789850C (en) Device for checking position of axially symmetric parts spacing structure elements
RU1805280C (en) Device for measuring lengths of materials by method of spinning
JP2758416B2 (en) Hard type unbalance measuring device