JPH0653805A - Displacement detecting sensor - Google Patents

Displacement detecting sensor

Info

Publication number
JPH0653805A
JPH0653805A JP22500392A JP22500392A JPH0653805A JP H0653805 A JPH0653805 A JP H0653805A JP 22500392 A JP22500392 A JP 22500392A JP 22500392 A JP22500392 A JP 22500392A JP H0653805 A JPH0653805 A JP H0653805A
Authority
JP
Japan
Prior art keywords
input
value
displacement
temperature
output
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
JP22500392A
Other languages
Japanese (ja)
Inventor
Akimitsu Ogata
昭光 小形
Mitsuo Hatada
光男 畠田
Hidetomo Ootsuki
秀智 大槻
Yutaka Iwatsuki
豊 岩月
Toshiki Kitani
敏樹 木谷
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP22500392A priority Critical patent/JPH0653805A/en
Publication of JPH0653805A publication Critical patent/JPH0653805A/en
Pending legal-status Critical Current

Links

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Electronic Switches (AREA)

Abstract

PURPOSE:To display a reference position set up by a user in a displacement detecting sensor as a reference and to input an object detecting position corresponding to the reference position. CONSTITUTION:A sensor part 1 is provided with an oscillation circuit 4 having an oscillation coil 3 and a thermistor 5 to be a temperature sensor and a CR oscillation circuit 6 is connected to the thermistor 5. Counters 9, 10 for measuring the frequency of respective oscillation circuits 4, 6 are connected. A temperature correction table memory 13 for correcting the outputs of the counters 9, 10 corresponding to respective temperatures is previously prepared and the count value of the counter 9 is corrected based upon the contents of the memory 13 to detect a distance up to an object. Position data inputted by a user are subtracted from measured position data and the subtracted value is displayed by a scale from the reference position set up by the user.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は被検出物体の接近による
変位を非接触で検知するための変位検出センサに関し、
特にその閾値の入力方法及び表示に特徴を有する変位検
出センサに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a displacement detection sensor for non-contact detection of displacement due to approach of an object to be detected,
In particular, the present invention relates to a displacement detection sensor which is characterized by its threshold input method and display.

【0002】[0002]

【従来の技術】従来高周波発振型の近接スイッチでは発
振コイルを設けた発振回路を有し、一定周波数で発振さ
せており、金属体の接近により発振の振幅や周波数が変
化することに基づいて物体を検出するようにしている。
例えば図14に示す近接スイッチでは、発振回路101
に発振コイル102を設け一定の周波数で発振させてお
り、その出力は検波回路103に与えられる。検波回路
103ではその出力を検波して直流レベルの信号に変換
し、リニアライザ104によって直線化して距離に対応
した信号を得ている。そして比較回路105においてこ
の信号を使用者が設定した設定値で弁別することによっ
て、特定の距離までに物体が近接した場合に出力するよ
うにしている。
2. Description of the Related Art A conventional high-frequency oscillation type proximity switch has an oscillation circuit provided with an oscillation coil and oscillates at a constant frequency. I am trying to detect.
For example, in the proximity switch shown in FIG.
An oscillating coil 102 is provided to oscillate at a constant frequency, and its output is given to a detection circuit 103. The detection circuit 103 detects the output, converts it into a DC level signal, and linearizes it by a linearizer 104 to obtain a signal corresponding to the distance. Then, in the comparison circuit 105, this signal is discriminated based on the set value set by the user, so that the signal is output when the object comes close to a specific distance.

【0003】[0003]

【発明が解決しようとする課題】しかしながらこのよう
な従来の近接スイッチでは、物体の到来による発振コイ
ル102のコンダクタンスの変化よりも温度変化による
ものの方が大きい。従って温度による影響をなくすため
に、発振回路101の帰還回路部にサーミスタ等の温度
補償素子107を接続し、温度補償を行うようにしてい
る。しかし発振コイル102のコンダクタンスの温度特
性のばらつきや、サーミスタの定数のばらつきが影響す
るため、温度に対して高精度に補償された近接スイッチ
を得ることは難しいという欠点があった。
In such a conventional proximity switch, however, the change in temperature is larger than the change in the conductance of the oscillation coil 102 due to the arrival of an object. Therefore, in order to eliminate the effect of temperature, a temperature compensating element 107 such as a thermistor is connected to the feedback circuit section of the oscillation circuit 101 to perform temperature compensation. However, variations in the conductance temperature characteristics of the oscillation coil 102 and variations in the thermistor constants have an effect, which makes it difficult to obtain a proximity switch that is highly accurately compensated for temperature.

【0004】又物体の有無の他に検出スイッチからの移
動範囲を指定して出力する領域を判別するためのセンサ
が要望されている。従来の近接スイッチにおいて所定の
範囲内に物体が到来したときに出力を出すように設定し
ようとすれば、複数の閾値を設定する必要があり、物体
までの位置の関係を設定することが必要となる。従って
これらを正確に設定することが難しいという欠点があっ
た。
There is also a demand for a sensor for discriminating an area to be output by designating a moving range from a detection switch in addition to the presence / absence of an object. In the conventional proximity switch, if an output is set when an object arrives within a predetermined range, it is necessary to set a plurality of thresholds, and it is necessary to set a positional relationship to the object. Become. Therefore, it is difficult to set these accurately.

【0005】本発明はこのような従来の問題点に着目し
てなされたものであって、発振コイルの温度特性のばら
つきやサーミスタの温度のばらつき等の影響がなく、使
用者が設定した基準位置からの物体の変位を高精度で検
知することができる変位センサを提供することを目的と
する。
The present invention has been made by paying attention to such a conventional problem, and there is no influence of variations in the temperature characteristics of the oscillation coil, variations in the temperature of the thermistor, etc., and the reference position set by the user. An object of the present invention is to provide a displacement sensor that can detect the displacement of an object from the body with high accuracy.

【0006】[0006]

【課題を解決するための手段】本願の請求項1の発明
は、発振コイルを有し該発振コイルへの被検出物体の接
近によって発振周波数が変化する第1の発振回路と、第
1の発振回路の温度の変化によって発振周波数が変化す
る第2の発振回路と、第1,第2の発振回路の発振周波
数を計数する第1,第2の計数手段と、使用温度範囲で
の第1の発振回路の各温度に対応した第2の計数手段よ
り得られるべき演算値を算出して第1の計数テーブルを
生成し、使用温度範囲での第1の発振回路の各温度に対
応して第1,第2の計数手段より得られる計数値を夫々
第2,第3の計数テーブルとして生成し、第2及び第3
の計数テーブルのデータを比例配分することによって第
1のテーブルの各温度での演算値に対応した第1の計数
手段より得られるべき演算値を算出し、各演算値から第
1の計数手段の基準計数値NR を減算し、各温度での補
正値ΔNの第4の計数テーブルを算出することにより、
得られた第1,第4の計数テーブルを補正テーブルデー
タとする補正テーブルメモリと、補正テーブルに基づき
第2の計数手段により得られる計数値MT に対応する補
正値ΔNを比例配分によって算出する温度補正処理部
と、温度補正処理部より得られる補正値ΔNと基準値N
R とを加算する加算手段と、第1の計数手段の計数値N
sから加算手段の加算値(ΔN+NR )を減算する第1
の減算手段と、第1の減算手段より得られる出力Ndを
発振コイルから物体までの距離dに対して直線化する変
位算出処理部と、変位の基準位置を変位データとして入
力する第1の入力手段と、第1の入力手段によって入力
された基準位置の値を直線化された出力から減算する第
2の減算手段と、第2の減算手段の出力を表示する表示
手段と、を具備することを特徴とするものである。
According to a first aspect of the present invention, there is provided a first oscillating circuit having an oscillating coil, the oscillating frequency of which changes when an object to be detected approaches the oscillating coil, and a first oscillating circuit. A second oscillating circuit whose oscillating frequency changes according to changes in the temperature of the circuit, first and second counting means for counting the oscillating frequencies of the first and second oscillating circuits, and a first oscillating circuit in the operating temperature range. A first count table is generated by calculating a calculation value to be obtained by the second counting means corresponding to each temperature of the oscillator circuit, and a first count table is generated, and a first count table is generated corresponding to each temperature of the first oscillator circuit in the operating temperature range. Count values obtained by the first and second counting means are respectively generated as second and third counting tables, and second and third counting tables are generated.
By proportionally distributing the data of the counting table of No. 1, the calculated value to be obtained from the first counting unit corresponding to the calculated value at each temperature of the first table is calculated, and the calculated value of the first counting unit is calculated from each calculated value. By subtracting the reference count value N R and calculating the fourth count table of the correction value ΔN at each temperature,
A correction table memory using the obtained first and fourth counting tables as correction table data, and a correction value ΔN corresponding to the count value M T obtained by the second counting means based on the correction table are calculated by proportional distribution. Temperature correction processing unit, correction value ΔN and reference value N obtained from the temperature correction processing unit
R and the addition means for adding the count value N of the first counting means
First to subtract the addition value (ΔN + N R ) of the addition means from s
Subtraction unit, a displacement calculation processing unit that linearizes the output Nd obtained by the first subtraction unit with respect to the distance d from the oscillation coil to the object, and a first input that inputs the displacement reference position as displacement data. Means, a second subtraction means for subtracting the value of the reference position input by the first input means from the linearized output, and a display means for displaying the output of the second subtraction means. It is characterized by.

【0007】本願の請求項2の発明は、第1の入力手段
より入力される基準位置(IN1)からの偏差の範囲
(IN2)を入力する第2の入力手段と、第2の減算手
段の出力と第2の入力手段によって入力された偏差の範
囲とに基づいてこの範囲内か否かを判別する比較手段
と、第2の比較手段の比較信号を出力する出力手段と、
を具備することを特徴とするものである。
According to a second aspect of the present invention, the second input means for inputting the range (IN2) of the deviation from the reference position (IN1) input by the first input means and the second subtracting means are provided. Comparing means for judging whether or not the deviation is within this range based on the output and the range of the deviation inputted by the second input means; and outputting means for outputting a comparison signal of the second comparing means.
It is characterized by including.

【0008】本願の請求項3の発明は、第1の入力手段
より入力される基準位置からの変位を入力する第2の入
力手段と、第2の減算手段の出力と第2の入力手段によ
って入力された変位とを比較する比較手段と、第2の比
較手段の比較信号を出力する出力手段と、を具備するこ
とを特徴とするものである。
According to a third aspect of the present invention, the second input means for inputting the displacement from the reference position input by the first input means, the output of the second subtracting means and the second input means are used. It is characterized by comprising a comparison means for comparing the input displacement and an output means for outputting the comparison signal of the second comparison means.

【0009】本願の請求項4の発明は、第1の入力手段
より入力される基準位置からの偏差の範囲又は変位を設
定する第1,第2のモードを切換える切換手段と、切換
手段によって第1のモードが選択されたときに第2の入
力手段より入力される基準位置からの偏差の範囲を入力
し、切換手段によって第2のモードが選択されたときに
第1の入力手段より入力される基準位置からの変位を入
力する第2の入力手段と、切換手段によって制御され、
第2の減算手段の出力と第2の入力手段によって入力さ
れる偏差の範囲又は変位とを比較する比較手段と、比較
手段の比較信号を出力する出力手段と、を具備すること
を特徴とするものである。
According to a fourth aspect of the present invention, there is provided switching means for switching between the first and second modes for setting the range or displacement of the deviation from the reference position input from the first input means, and the switching means for switching between the first and second modes. When the first mode is selected, the range of the deviation from the reference position input by the second input means is input, and when the second mode is selected by the switching means, it is input by the first input means. Controlled by the second input means for inputting the displacement from the reference position and the switching means,
It is characterized by further comprising: comparison means for comparing the output of the second subtraction means and the range or displacement of the deviation input by the second input means; and output means for outputting the comparison signal of the comparison means. It is a thing.

【0010】[0010]

【作用】このような特徴を有する本願の請求項1の発明
によれば、第2の計数手段より得られるべき演算値をま
ず演算によって算出して、第1の計数テーブルを生成し
ている。そして第1の発振回路の温度を使用範囲内で連
続して変化させ、各温度に対応して第1,第2の計数手
段から得られる計数値を第2,第3の計数テーブルとし
ている。そして第2,第3の計数テーブルのデータの比
例配分によって、第1の計数テーブルの各温度での計数
値に対応した第1の計数手段より得られるべき演算値を
算出し、基準計数値NR を減算することによって補正値
ΔNの第4のテーブルを得ている。このΔNの第4の計
数テーブルと第1の計数テーブルとを補正テーブルデー
タとして補正テーブルを生成している。そしてこの補正
テーブルを用い、第2の計数手段から得られる計数値M
T によりそのときの温度に対応した補正値ΔNを得てい
る。そして基準値NR と加算し第1の計数手段からの計
数値NS より減算することによって温度に依存しない距
離情報Ndを得ている。更にこのデータNdを変位算出
処理部によって直線化処理している。そして第1の入力
手段より得られる使用者が設定した基準位置データか
ら、直線化された変位データを減算し、直線化して使用
者が設定した基準位置からの変位を表示手段によって表
示するようにしている。
According to the invention of claim 1 of the present application having such a feature, the first count table is generated by first calculating the calculation value to be obtained by the second counting means by calculation. Then, the temperature of the first oscillation circuit is continuously changed within the use range, and the count values obtained from the first and second counting means corresponding to each temperature are used as second and third counting tables. Then, by calculating the proportional distribution of the data of the second and third counting tables, the calculated value to be obtained from the first counting means corresponding to the counted value at each temperature of the first counting table is calculated, and the reference count value N The fourth table of the correction value ΔN is obtained by subtracting R. A correction table is generated by using the fourth counting table of ΔN and the first counting table as correction table data. Then, using this correction table, the count value M obtained from the second counting means
The correction value ΔN corresponding to the temperature at that time is obtained from T. Then, the distance information Nd that does not depend on the temperature is obtained by adding it to the reference value N R and subtracting it from the count value N S from the first counting means. Further, this data Nd is linearized by the displacement calculation processing section. Then, the linearized displacement data is subtracted from the reference position data set by the user obtained from the first input means, and linearized so that the displacement from the reference position set by the user is displayed by the display means. ing.

【0011】又本願の請求項2又は3の発明では、この
基準位置からの偏差の範囲又は変位を第2の入力手段に
よって入力し、その偏差の範囲又は変位を比較手段によ
って比較してその比較信号を出力するようにしている。
更に本願の請求項4の発明では、切換手段によって請求
項2及び3の第1,第2のモードを切換えるようにして
いる。
In the invention of claim 2 or 3, the deviation range or displacement from the reference position is input by the second input means, the deviation range or displacement is compared by the comparing means, and the comparison is made. I am trying to output a signal.
Further, in the invention of claim 4 of the present application, the switching means switches the first and second modes of claims 2 and 3.

【0012】[0012]

【実施例】図1は本発明の一実施例による変位検出セン
サの全体構成を示すブロック図である。本図においてこ
の変位検出センサはセンサ部1とその他の電子回路部2
から構成される。センサ部1には図示のように発振コイ
ル3を有する第1の発振回路4と温度検出素子、例えば
サーミスタ5が設けられる。ここでセンサ部1はその前
面に発振コイル3を有しており、物体が近接したときに
物体までの距離によって発振周波数fS が変化するもの
とする。
1 is a block diagram showing the overall construction of a displacement detecting sensor according to an embodiment of the present invention. In this figure, this displacement detection sensor is shown as a sensor unit 1 and other electronic circuit unit 2
Composed of. The sensor unit 1 is provided with a first oscillating circuit 4 having an oscillating coil 3 and a temperature detecting element such as a thermistor 5 as shown in the figure. Here, it is assumed that the sensor unit 1 has an oscillating coil 3 on its front surface, and that when the object approaches, the oscillating frequency f S changes depending on the distance to the object.

【0013】さて電子回路部2にはサーミスタ5を1つ
の抵抗とする第2のCR発振回路6が設けられている。
このCR発振回路6の発振周波数をfT とする。これら
の発振回路4及びCR発振回路6の出力は夫々分周回路
7,8に与えられる。分周回路7,8は夫々発振周波数
を1/Ks、1/Kt分周するもので、この分周値K
s,Ktは設定できるものとする。そして分周出力は夫
々カウンタ9及び10に与えられる。又電子回路部2内
には、一定の周波数、例えば10MHz及び4000Hzのクロ
ック周波数を有する基準クロック発振器11を有してお
り、夫々のクロック信号はカウンタ9及び10に与えら
れる。カウンタ9及び10は分周出力をゲート信号とし
てこの基準クロック発振器11のクロック数を計数する
カウンタであり、分周回路7,8及び基準クロック発振
器11と共に夫々第1,第2の計数手段を構成してい
る。ここでカウンタ9の計数値をNS とし、カウンタ1
0の計数値をNT とし、これらの出力はマイクロコンピ
ュータ12に与えられる。マイクロコンピュータ12に
は後述する補正用のテーブルである温度補正テーブルメ
モリ13,リニア補正テーブルメモリ14が接続され
る。これらのメモリ13,14は例えばE2 PROMに
よって構成される。マイクロコンピュータ12はこの温
度補正用テーブルによって温度補正処理を行い、変位デ
ータに変換すると共に、リニア補正テーブルによってこ
れを直線化する。そして後述するように入力部15によ
り入力された基準位置のデータに基づいて、変位データ
を使用者が定めたスケールに変換し、このスケール上で
の所定位置との比較によって出力を与えるようにしてい
る。表示部16はユーザスケールでの距離情報を表示す
るものであり、出力部17はこうして得られる判別出力
を出力するものである。
The electronic circuit section 2 is provided with a second CR oscillator circuit 6 having the thermistor 5 as one resistance.
The oscillation frequency of the CR oscillation circuit 6 and f T. The outputs of the oscillator circuit 4 and the CR oscillator circuit 6 are given to the frequency dividing circuits 7 and 8, respectively. The frequency dividing circuits 7 and 8 divide the oscillation frequency by 1 / Ks and 1 / Kt, respectively.
s and Kt can be set. The frequency-divided outputs are given to the counters 9 and 10, respectively. Further, the electronic circuit section 2 has a reference clock oscillator 11 having a constant frequency, for example, a clock frequency of 10 MHz and 4000 Hz, and the respective clock signals are given to the counters 9 and 10. The counters 9 and 10 are counters for counting the number of clocks of the reference clock oscillator 11 by using the frequency-divided output as a gate signal, and constitute the first and second counting means together with the frequency dividing circuits 7 and 8 and the reference clock oscillator 11, respectively. is doing. Here, the count value of the counter 9 is set to N S , and the counter 1
The count value of 0 is N T, and these outputs are given to the microcomputer 12. The microcomputer 12 is connected to a temperature correction table memory 13 and a linear correction table memory 14, which are tables for correction described later. These memories 13 and 14 are composed of E 2 PROM, for example. The microcomputer 12 performs temperature correction processing using this temperature correction table, converts it into displacement data, and linearizes it using a linear correction table. Then, as will be described later, based on the data of the reference position input by the input unit 15, the displacement data is converted into a scale defined by the user, and an output is given by comparison with a predetermined position on this scale. There is. The display unit 16 displays the distance information on the user scale, and the output unit 17 outputs the determination output thus obtained.

【0014】次にマイクロコンピュータ12内の詳細な
機能ブロックについて図2を参照しつつ説明する。マイ
クロコンピュータ12内には、カウンタ10からの計数
値MT を補正する温度補正テーブルメモリ13に基づい
て、基準温度に対する現在の温度のパルス数での補正値
ΔNを算出する温度補正処理部21が設けられる。又パ
ルス数の基準値NR を出力する基準値出力部22が設け
られている。この基準値NR は本実施例では 25600とす
る。このΔNとパルス数の基準値NR とは加算手段23
に与えられる。加算手段23はこれらを加算するもので
あって、その出力は減算手段24に与えられる。減算手
段24はカウンタ9の計数値NS から加算値NR +ΔN
を減算する第1の減算手段であって、Nd(=NS
(NR +ΔN))が算出される。そしてこのNdが変位
情報として変位算出処理部25に与えられる。変位算出
処理部25はこれを直線化するものであって、変位検出
センサに固有の基準位置からの変位情報±Δdが得られ
る。
Next, detailed functional blocks in the microcomputer 12 will be described with reference to FIG. In the microcomputer 12, a temperature correction processing unit 21 that calculates a correction value ΔN in the number of pulses of the current temperature with respect to the reference temperature based on the temperature correction table memory 13 that corrects the count value M T from the counter 10. It is provided. A reference value output unit 22 that outputs a reference value N R of the number of pulses is provided. This reference value N R is set to 25600 in this embodiment. This ΔN and the reference value N R of the pulse number are added by the adding means 23.
Given to. The adding means 23 adds these, and the output thereof is given to the subtracting means 24. The subtracting means 24 calculates the addition value N R + ΔN from the count value N S of the counter 9.
A first subtraction means for subtracting Nd (= N S
(N R + ΔN)) is calculated. Then, this Nd is given to the displacement calculation processing unit 25 as displacement information. The displacement calculation processing unit 25 linearizes this and obtains displacement information ± Δd from the reference position specific to the displacement detection sensor.

【0015】さて入力部15はこの変位検出センサの出
力モードを切換えると共に、夫々の出力モードに応じて
一対の入力IN1及びIN2を入力するものである。そ
してマイクロコンピュータ12内のモード選択手段26
は、入力部25からのモード選択信号を受け、モードA
及びBで夫々のモードに対応した一対の入力IN1及び
IN2の入力をレジスタ27に保持し、IN1を減算手
段28に与える。減算手段28は変位情報Δdから設定
値IN1を減算する第2の減算手段である。こうすれば
ユーザが設定した基準位置IN1からの変位情報に変換
されることとなって、この値が表示部16に表示され
る。又モード選択手段26は後述するようにモードA又
はBに応じて夫々必要な比較値を比較部29に与える。
比較部29は、こうして得られた比較基準値と減算手段
28で減算された値とを比較することによって、一対の
出力OUT1又はOUT2を出力するものである。これ
らの出力は出力部17より外部に出力される。
The input section 15 switches the output mode of the displacement detection sensor and inputs a pair of inputs IN1 and IN2 in accordance with each output mode. Then, the mode selection means 26 in the microcomputer 12
Receives a mode selection signal from the input unit 25,
And B, the inputs of the pair of inputs IN1 and IN2 corresponding to the respective modes are held in the register 27, and IN1 is given to the subtracting means 28. The subtracting means 28 is a second subtracting means for subtracting the set value IN1 from the displacement information Δd. In this way, the value is converted into displacement information from the reference position IN1 set by the user, and this value is displayed on the display unit 16. Further, the mode selection means 26 gives a necessary comparison value to the comparison section 29 depending on the mode A or B, as will be described later.
The comparison unit 29 outputs the pair of outputs OUT1 or OUT2 by comparing the comparison reference value thus obtained with the value subtracted by the subtraction unit 28. These outputs are output from the output unit 17 to the outside.

【0016】図3は本実施例による変位検出センサの構
成を示す正面図である。本図に示すように変位検出セン
サ本体にはケーブルを介して前述したセンサ部1が接続
されており、このケース20の前面には入力部15及び
表示部16が設けられる。入力部15は図示のように、
動作モードを「RUN」及び「SET」モードに切換え
るスライドスイッチ15a、「UP」キー15b、「S
HIFT」キー15c及び「TEACH」キー15dが
設けられている。又表示部16には、A又はBのいずれ
かの動作モードを表示するモード表示部と、入力IN1
又はIN2を切換える表示部、及び動作モードでの物体
の位置を表示する数値表示部が設けられている。
FIG. 3 is a front view showing the structure of the displacement detecting sensor according to this embodiment. As shown in this figure, the above-mentioned sensor unit 1 is connected to the displacement detection sensor body via a cable, and an input unit 15 and a display unit 16 are provided on the front surface of this case 20. The input unit 15 is as shown in the figure.
Slide switch 15a, "UP" key 15b, "S" for switching the operation mode between "RUN" and "SET" modes
A "HIFT" key 15c and a "TEACH" key 15d are provided. Further, the display unit 16 has a mode display unit for displaying an operation mode of either A or B, and an input IN1.
Alternatively, a display unit for switching IN2 and a numerical display unit for displaying the position of the object in the operation mode are provided.

【0017】次に温度補正処理部21での処理について
詳細に説明する。本実施例ではまずセンサ部1の温度
は、センサ部1内のサーミスタ5によって検出される。
CR発振回路6はサーミスタ5の抵抗Rに対応した発振
周波数で発振することとなる。従って発振周波数からセ
ンサ部1の温度情報を得ることができる。さてサーミス
タ5の任意の温度Tでの抵抗値Rは、次式によって定ま
る。 R=R0expB(1/T−1/T0 ) ・・・(1) T :任意の温度(°K) R :温度Tでの抵抗値 T0 :基準温度(°K) R0 :基準温度T0 における抵抗値 B :B定数
Next, the processing in the temperature correction processing section 21 will be described in detail. In this embodiment, first, the temperature of the sensor unit 1 is detected by the thermistor 5 in the sensor unit 1.
The CR oscillation circuit 6 oscillates at an oscillation frequency corresponding to the resistance R of the thermistor 5. Therefore, the temperature information of the sensor unit 1 can be obtained from the oscillation frequency. Now, the resistance value R of the thermistor 5 at an arbitrary temperature T is determined by the following equation. R = R 0 expB (1 / T-1 / T 0 ) ... (1) T: arbitrary temperature (° K) R: resistance value at temperature T T 0 : reference temperature (° K) R 0 : Resistance value B at reference temperature T 0 : B constant

【0018】ここで温度補正処理に用いる温度補正テー
ブルの作成について説明する。CR発振回路6の発振周
波数はサーミスタ5の抵抗値R、即ち温度及び固有のB
定数によって変化する。本実施例ではサーミスタ5の個
別のデータ及び発振コイル3の固有のばらつきによるカ
ウンタ9の計数値をデータとして取込み、これに基づい
て補正を行っている。図4はこれらの個別の素子のデー
タに基づいて温度補正テーブル13を作成するための補
正テーブル生成装置30を示すブロック図である。本図
において図1と同一符号の各ブロックは図1と同一のも
のであって、各変位センサ毎に固有の発振コイル3,サ
ーミスタ5を有するセンサ部1自体を恒温槽31に入れ
る。恒温槽31の温度は制御部32によって制御されて
いる。そして所定の温度での発振周波数fS ,fT に夫
々対応したカウンタ9,10の計数値NS 及びNT を求
める。そしてカウンタ9,10からの出力をデータ書込
部33を介してデータメモリ34に書込む。データメモ
リ34はE2 PROMによって構成されている。
The creation of the temperature correction table used in the temperature correction process will be described. The oscillation frequency of the CR oscillation circuit 6 is the resistance value R of the thermistor 5, that is, the temperature and the characteristic B.
It depends on the constant. In this embodiment, the individual data of the thermistor 5 and the count value of the counter 9 due to the peculiar variation of the oscillation coil 3 are fetched as data, and the correction is performed based on this. FIG. 4 is a block diagram showing a correction table generation device 30 for generating the temperature correction table 13 based on the data of these individual elements. In this figure, each block having the same reference numeral as in FIG. 1 is the same as that in FIG. 1, and the sensor unit 1 itself having the oscillation coil 3 and the thermistor 5 unique to each displacement sensor is placed in the constant temperature bath 31. The temperature of the constant temperature bath 31 is controlled by the controller 32. Then, the count values N S and N T of the counters 9 and 10 corresponding to the oscillation frequencies f S and f T at the predetermined temperature are obtained. Then, the outputs from the counters 9 and 10 are written in the data memory 34 via the data writing unit 33. The data memory 34 is composed of an E 2 PROM.

【0019】さて恒温槽31で正確に規定できる温度を
例えば−10℃及び+60℃とすると、MT テーブル算
出部35はこの温度での発振周波数からサーミスタ5の
抵抗値を算出し、これによってB定数を算出する。こう
すれば任意の温度でのサーミスタ5の抵抗値を計算によ
って求めることができる。
[0019] Referring now to accurately temperature, for example -10 ° C. and + 60 ℃ definable in a thermostat 31, M T table calculating section 35 calculates the resistance value of the thermistor 5 from the oscillation frequency at this temperature, whereby B Calculate the constant. In this way, the resistance value of the thermistor 5 at an arbitrary temperature can be calculated.

【0020】次にこの変位センサが使用可能な全ての温
度、本実施例では−30℃〜78℃までの温度につい
て、例えば2℃刻みでのサーミスタの温度に対する抵抗
値を求める。そして各抵抗値からCR発振回路6の発振
周波数及びこの発振周波数に対応したカウンタ10の計
数値MT を計算によって算出する。そして各温度でのM
T 値をデータメモリ36内のMT テーブルエリアに書込
む。図5(a)はこうして演算によって求められたMT
値の変化を示す第1の計数テーブルである。ここでMT
テーブル算出部35は第2の計数手段から得られる各温
度での演算値を算出する第1の計数テーブル算出手段で
ある。
Next, for all temperatures at which this displacement sensor can be used, in this embodiment, from -30 ° C to 78 ° C, the resistance value with respect to the temperature of the thermistor in steps of 2 ° C is determined. Then, the oscillation frequency of the CR oscillation circuit 6 and the count value M T of the counter 10 corresponding to this oscillation frequency are calculated from each resistance value. And M at each temperature
The T value is written in the M T table area in the data memory 36. FIG. 5A shows the M T thus calculated.
It is a 1st counting table which shows the change of a value. Where M T
The table calculation unit 35 is a first counting table calculation unit that calculates a calculation value at each temperature obtained from the second counting unit.

【0021】さて図4に示すように恒温槽31にセンサ
部1を実際に入れて制御部32を動作させ、温度を変化
させる。図7は物体までの距離dに対するカウンタ9の
計数値NS の変化を示すグラフである。本図に示すよう
に物体までの距離dのうち検知領域を 100%として、そ
の1/2までの距離を基準距離dR としている。この基
準距離dR における基準温度、本実施例では24℃のN
S 値を基準値NR とする。NR は 25600パルスとなるよ
うに設定する。例えば基準クロック発振器11の第1の
クロック周波数が10MHzに設定されている場合は、分
周数Ksを変化させて分周回路7の出力パルス幅を2.56
msとする。こうして得られた基準値NRを図2に示す基
準値出力部22から出力できるようにしておく。又この
基準温度でのMT 値を例えば8000パルスとなるように設
定する。この場合には分周回路8の分周数KT を変化さ
せて出力パルス幅を2秒とし、基準クロック発振器11
の4000Hzの第2のクロック周波数を計数することによっ
て、8000のパルス数を得ている。
Now, as shown in FIG. 4, the sensor unit 1 is actually put in the constant temperature bath 31, and the control unit 32 is operated to change the temperature. FIG. 7 is a graph showing changes in the count value N S of the counter 9 with respect to the distance d to the object. As shown in this figure, the detection area is defined as 100% of the distance d to the object, and the distance up to 1/2 thereof is set as the reference distance d R. Reference temperature at this reference distance d R , N of 24 ° C. in this embodiment
Let the S value be the reference value N R. Set N R to be 25,600 pulses. For example, when the first clock frequency of the reference clock oscillator 11 is set to 10 MHz, the frequency division number Ks is changed to set the output pulse width of the frequency division circuit 7 to 2.56.
Set to ms. The reference value N R thus obtained can be output from the reference value output unit 22 shown in FIG. Further, the M T value at this reference temperature is set to be 8000 pulses, for example. In this case, the frequency dividing number K T of the frequency dividing circuit 8 is changed to set the output pulse width to 2 seconds, and the reference clock oscillator 11
By counting the second clock frequency of 4000 Hz, the pulse number of 8000 is obtained.

【0022】そして恒温槽31にセンサ部1を入れた状
態で恒温槽31の温度を連続して変化させることによっ
て、−30℃〜78℃までの各温度で例えば2℃刻みで
T値及びNS 値を得る。そしてこのデータを図6
(a)及び(b)に示すようにデータメモリ34に書込
む。尚このときの温度は厳密に規定しておらず、MT
に対するNS 値の関係を知るために用いられる。ここで
データ書込部33は発振回路3の使用範囲の各温度での
第1,第2の計数手段により得られる計数値NS ,MT
を第2,第3の計数テーブルとして生成する第2の計数
テーブル生成手段を構成している。又こうして得られる
図6(a)及び(b)のテーブルは第2,第3のテーブ
ルとなっている。
By continuously changing the temperature of the thermostat 31 with the sensor unit 1 in the thermostat 31, the M T value and the M T value in steps of 2 ° C. at each temperature from −30 ° C. to 78 ° C. Get the N S value. And this data is shown in Figure 6.
Data is written in the data memory 34 as shown in (a) and (b). Note the temperature at this time is not strictly defined, is used to know the relationship N S values for M T values. Here, the data writing unit 33 uses the count values N S and M T obtained by the first and second counting means at each temperature in the operating range of the oscillator circuit 3.
To constitute a second counting table generating means. The tables of FIGS. 6A and 6B thus obtained are the second and third tables.

【0023】さてNS テーブル算出部37はこうして得
られた図6のMT 及びNS のテーブルと図5(a)に示
す計算で求めたMT のテーブルから、各温度でのNS
を算出し、データメモリ36に書込む。即ち図5(a)
のMT テーブルの各MT 値に対応してその前後のMT
を図6(a)のテーブルから捜し出す。そして比例演算
によって図5(a)の各MT 値に対応するNS 値を図5
(b)に示すように算出する。又ΔNテーブル算出部3
8はこうして求められた各温度でのNS 値と基準温度、
ここでは24℃でのNS 値(=NR =25600)との差から
ΔNを演算によって求め、これを図5(c)に示すΔN
テーブル(第4のテーブル)としてデータメモリ36に
書込む。ここでNS テーブル算出部37は図6(a),
(b)に示す計数テーブルのデータを比例配分すること
によって図5(a)のテーブルの各温度での演算値に対
応した第1の計数手段より得られるべき演算値を算出す
る第3の計数テーブル算出手段であり、NS テーブル算
出部38はこのテーブルから基準計数値NR を減算する
ことによって補正値ΔNの第4のテーブルを算出するΔ
Nテーブル算出手段を構成している。
[0023] Now N S table calculating unit 37 from the table of M T obtained in thus obtained was calculated as shown in the table and figure M T and N S in FIG. 6 5 (a), N S value at each temperature Is calculated and written in the data memory 36. That is, FIG. 5 (a)
Corresponding to each M T value of the M T table of FIG. 6, the M T values before and after that are searched for from the table of FIG. Then, the N S value corresponding to each M T value in FIG.
It is calculated as shown in (b). Also, the ΔN table calculation unit 3
8 is the N S value at each temperature thus obtained and the reference temperature,
Here, ΔN is calculated from the difference with the N S value (= N R = 25600) at 24 ° C., and this is shown as ΔN in FIG. 5 (c).
The data is written in the data memory 36 as a table (fourth table). Here, the N S table calculation unit 37 is shown in FIG.
A third count for calculating the calculated value to be obtained by the first counting means corresponding to the calculated value at each temperature in the table of FIG. 5A by proportionally distributing the data of the counting table shown in FIG. 5B. The N S table calculating unit 38, which is a table calculating means, calculates a fourth table of the correction value ΔN by subtracting the reference count value N R from this table Δ
It constitutes N table calculation means.

【0024】こうして図5(a),(c)に示すように
各温度でのMT に対応したΔN値を書込んだ一対のテー
ブルを、図1,2に示す温度補正テーブルメモリ13の
2PROMにデータを転送して温度補正テーブルとし
て用いる。尚ここでは図5(b)に示すように一旦各温
度に対応したNS 値を求めてテーブルを形成し、この値
から所定の基準値NR を減算して、図5(c)に示すΔ
Nのテーブルを生成するようにしているが、比例配分の
後、直接ΔNのテーブルを生成するようにしてもよいこ
とはいうまでもない。
Thus, as shown in FIGS. 5 (a) and 5 (c), a pair of tables in which the ΔN values corresponding to M T at each temperature are written are shown as E in the temperature correction table memory 13 shown in FIGS. 2 Data is transferred to PROM and used as a temperature correction table. Note here forms a table for the N S value once corresponding to each temperature, as shown in FIG. 5 (b), by subtracting a predetermined reference value N R from this value, shown in FIG. 5 (c) Δ
Although the N table is generated, it goes without saying that the ΔN table may be directly generated after the proportional distribution.

【0025】図7において曲線Aは基準温度での距離d
に対するNS 値の変化を示すグラフであり、この曲線は
特定のあらかじめ多数の変位センサからのデータによっ
て求めた曲線をそのまま用いるものとする。そしてこの
基準温度より高い温度では距離dに対するパルス数NS
は例えば曲線Bに示すように変化し、低温では曲線Cに
示すように変化する。このためΔNをNS から減算する
ことによって基準値からの差Ndを算出し、曲線Aに変
換して、修正されたパルス数Ndに基づいて距離のデー
タを得るようにしている。
In FIG. 7, the curve A is the distance d at the reference temperature.
Is a graph showing the change of the N S value with respect to, and the curve obtained by using data from a large number of specific displacement sensors is used as it is. Then, at a temperature higher than the reference temperature, the number of pulses N S with respect to the distance d
Changes as shown by the curve B, and changes as shown by the curve C at low temperatures. Therefore, the difference Nd from the reference value is calculated by subtracting ΔN from N S, and the difference is converted into the curve A, and the distance data is obtained based on the corrected pulse number Nd.

【0026】図8は距離dに対する温度補正されたパル
ス数Ndの変化を示すグラフである。このグラフは複数
の変位センサのデータに基づいて得られた規定の曲線を
用いて、これにあてはめることによって距離情報dを得
るものとする。そしてNdの256が1%の変化とし、こ
の距離に応じたデータを図9に示すようにリニア補正テ
ーブル14内に保持しておく。この補正テーブルは、例
えば曲線の傾きが小さい部分では 0.5%単位で距離デー
タd10,d11・・・が順次テーブルT1に記録されてい
る。又基準距離dR より距離が近い部分では図示のよう
にテーブルT2,テーブルT3,T4・・・により順次
距離が記録されている。実際の基準距離dR からの距離
Δdは次式(2)によって求まる。
FIG. 8 is a graph showing changes in the number Nd of temperature-corrected pulses with respect to the distance d. This graph uses a prescribed curve obtained based on the data of a plurality of displacement sensors, and by fitting this to the distance information d. Then, 256 of Nd is changed by 1%, and data corresponding to this distance is held in the linear correction table 14 as shown in FIG. In this correction table, for example, in a portion where the curve has a small inclination, distance data d 10 , d 11, ... Are sequentially recorded in the table T1 in 0.5% units. Further, in the portion where the distance is shorter than the reference distance d R , the distance is sequentially recorded by the table T2, the tables T3, T4, ... The distance Δd from the actual reference distance d R is obtained by the following equation (2).

【数1】 ここでPは基準位置からのデータ数である。式(2)の
第1項はnが0〜P−1までの変位の総和であり、第2
項はその変位内でのパルス数Ndに対する距離の比例配
分値を示している。
[Equation 1] Here, P is the number of data from the reference position. The first term of the equation (2) is the sum of displacements when n is 0 to P-1,
The term indicates the proportional distribution value of the distance with respect to the pulse number Nd within the displacement.

【0027】次に本実施例の動作について、図10,図
11のフローチャートを参照しつつ説明する。まず動作
を開始するとスライドスイッチ15aをセット状態に設
定し、IN1,IN2を入力する。まず動作を開始する
とステップ41においてスライドスイッチ15aが「S
ET」状態かどうかをチェックする。入力時には「SE
T」モードとしておけばステップ42に進んでモード選
択状態が判別される。ここで図3に示すように「UP」
キー15bによってモードA,Bを切換え、「SHIF
T」キー15cによってそれを固定する。まずモードA
ではステップ43において表示部16に「IN1」の表
示が成される。このとき変位検出センサのセンサ部1の
物体検知の中心位置に物体を配置する。そして入力部の
「TEACH」キー15dを押下することによって中心
値を設定する(ステップ44)。このとき減算手段28
より得られる値を中心値としてレジスタ27に書込む。
Next, the operation of this embodiment will be described with reference to the flow charts of FIGS. First, when the operation is started, the slide switch 15a is set to the set state and IN1 and IN2 are input. First, when the operation is started, the slide switch 15a is set to "S" in step 41.
Check whether it is in the "ET" state. When entering "SE
If the "T" mode is set, the routine proceeds to step 42, where the mode selection state is determined. Here, as shown in FIG. 3, "UP"
Use the key 15b to switch between modes A and B,
It is fixed by the "T" key 15c. First, mode A
Then, in step 43, "IN1" is displayed on the display unit 16. At this time, the object is arranged at the center position of the object detection of the sensor unit 1 of the displacement detection sensor. Then, the center value is set by pressing the "TEACH" key 15d of the input section (step 44). At this time, the subtraction means 28
The obtained value is written in the register 27 as the central value.

【0028】一方モードBではステップ45においてま
ず「IN1」の表示を行う。そして使用者は物体をこの
変位検出センサの検知範囲の最も近い位置に配置する。
そして「TEACH」キー15dを押下することによっ
てそのときに減算手段28より得られる値をMIN値と
してレジスタ27に設定する。このMIN値は変位検出
センサの物体までの最近接点を設定するものである。こ
こでステップ42〜46は、使用者が設定する基準位置
を入力する第1の入力手段を構成している。この場合モ
ードAではこの基準位置は図12に示すように中心値と
なり、モードBでは図13に示すように最近接点とな
る。
On the other hand, in mode B, "IN1" is first displayed in step 45. Then, the user places the object at a position closest to the detection range of the displacement detection sensor.
Then, by pressing the "TEACH" key 15d, the value obtained by the subtracting means 28 at that time is set in the register 27 as the MIN value. This MIN value sets the closest contact point to the object of the displacement detection sensor. Here, steps 42 to 46 constitute first input means for inputting the reference position set by the user. In this case, in the mode A, this reference position becomes the center value as shown in FIG. 12, and in the mode B it becomes the closest point as shown in FIG.

【0029】そしてステップ44又は46の処理を終え
ると、ステップ47に進んで「SHIFT」キー15c
の入力を待受ける。「SHIFT」キー15cが入力さ
れれば表示部16に「IN2」の表示を行う(ステップ
48)。次いでステップ49,50において「UP」キ
ー15aを押下して数位の位を選択し、所望の位での
「SHIFT」キー16cを連続して押下する。こうす
ればその位で表示部16内の数値が連続的に変化するこ
ととなり、これによってIN2の入力を行う。そして表
示部16の数値が所望の値になればステップ51に進ん
で「TEACH」キー15dを押下する。こうすればこ
の数値がIN2として確定することとなる。モード選択
手段26はこの値をレジスタ27に保持し、設定を終了
する。ここでIN2はモードAでは図12(a)に示す
ように、中心位置からの偏差の範囲を設定するものであ
る。又モードBでは図13に示すように物体までの最も
近い最近接点からの変位を設定するものである。ここで
ステップ47〜51では基準位置からの変化の範囲又は
基準位置からの変位を入力する第2の入力手段を構成し
ている。次に動作時にはスライドスイッチ15aを「R
UN」モードとする。
When the processing of step 44 or 46 is completed, the routine proceeds to step 47, where the "SHIFT" key 15c
Wait for input. When the "SHIFT" key 15c is pressed, "IN2" is displayed on the display unit 16 (step 48). Next, in steps 49 and 50, the "UP" key 15a is pressed to select the place of several digits, and the "SHIFT" key 16c at the desired position is continuously pressed. By doing so, the numerical value in the display unit 16 continuously changes at that position, and thus IN2 is input. When the numerical value on the display unit 16 reaches the desired value, the routine proceeds to step 51, where the "TEACH" key 15d is pressed. In this way, this numerical value is confirmed as IN2. The mode selection means 26 holds this value in the register 27 and finishes the setting. Here, IN2 sets the range of the deviation from the center position in mode A as shown in FIG. In mode B, the displacement from the closest contact point to the object is set as shown in FIG. Here, in steps 47 to 51, the second input means for inputting the range of change from the reference position or the displacement from the reference position is configured. Next, when operating, slide switch 15a to "R
UN "mode.

【0030】さて動作時にはまず変位検出センサのセン
サ部1を物体の測定領域に配置する。そして発振コイル
3に物体が接近した場合には、その物体までの距離dに
対応した発振周波数で発振回路4が発振することとな
る。又このときの温度に対応した発振周波数fT でCR
発振回路6が発振する。従ってその温度に対応したカウ
ンタ10の計数値MT が求められる。このMT を図5
(a),(c)に示す温度補正テーブルメモリ13によ
って補正し、ΔNの比例配分値を得ることによってセン
サ部1のこの温度でのΔNが得られる。こうしてΔNと
R とを加算手段23によって加算し、減算手段24で
S との差を求めることによって、温度や各変位センサ
の素子に依存しない距離dだけに対応したパルス数Nd
が得られる。そしてこの値を図8,図9に示すように変
換テーブルに基づいて変換することによって、直線化さ
れた位置情報Δdが得られる。このΔdは変位センサに
固有の基準スケールでの基準値dR からの変位を示して
いる。
In operation, first, the sensor portion 1 of the displacement detecting sensor is placed in the measurement area of the object. When an object approaches the oscillation coil 3, the oscillation circuit 4 oscillates at an oscillation frequency corresponding to the distance d to the object. Also, at the oscillation frequency f T corresponding to the temperature at this time, CR
The oscillator circuit 6 oscillates. Therefore, the count value M T of the counter 10 corresponding to the temperature is obtained. Figure 5 this M T
By correcting by the temperature correction table memory 13 shown in (a) and (c) and obtaining the proportional distribution value of ΔN, ΔN at this temperature of the sensor unit 1 can be obtained. In this way, ΔN and N R are added by the adding means 23, and the subtracting means 24 obtains the difference from N S , whereby the pulse number Nd corresponding to only the distance d that does not depend on the temperature or the element of each displacement sensor.
Is obtained. Then, by converting this value based on the conversion table as shown in FIGS. 8 and 9, the linearized position information Δd can be obtained. This Δd indicates the displacement from the reference value d R on the reference scale specific to the displacement sensor.

【0031】さてスイッチが「SET」モードでなけれ
ば、図11のステップ61に進んでまず「RUN」モー
ドかどうかをチェックする。「RUN」モードの場合に
はステップ62に進んで変位算出処理部25よりΔdの
値を取込む。そしてレジスタ27に保持されているIN
1を減算する。IN1はモードAでは中心値、モードB
では最小値MINとなっている。そして得られた値を表
示部16に転送しユーザスケールで表示する。ここでス
テップ62〜64は変位算出処理部25より得られる変
位Δdをユーザスケールに変換する第2の減算手段28
を構成している。そしてステップ65に進んで、モード
選択手段26に設定されているモードがモードAかどう
かをチェックする。モードAの場合にはステップ66に
進んで減算値がレジスタ28に設定されているIN1+
IN2を越えているかどうか、及びIN1−IN2以下
かどうかをチェックする。ステップ66,67の条件が
成立すれば夫々ステップ68,69に進んで出力OUT
2をH、OUT1をHレベルに切換えてステップ62に
戻る。こうすれば図12(a)に示すように、変位検出
センサに固有の基準スケールを、IN1を中心点とする
ユーザスケールに変換し、そのユーザスケールに基づい
て設定されたIN2に対して図12(b)に示すように
距離に対応した一対の出力を得ることができる。
If the switch is not in the "SET" mode, the flow advances to step 61 in FIG. 11 to first check whether or not the mode is the "RUN" mode. In the case of the "RUN" mode, the routine proceeds to step 62, where the value of Δd is fetched from the displacement calculation processing section 25. The IN stored in the register 27
Subtract one. IN1 is the center value in mode A, mode B
Is the minimum value MIN. Then, the obtained value is transferred to the display unit 16 and displayed on the user scale. Here, steps 62 to 64 are the second subtraction means 28 for converting the displacement Δd obtained from the displacement calculation processing section 25 into a user scale.
Are configured. Then, in step 65, it is checked whether or not the mode set in the mode selecting means 26 is the mode A. In the case of mode A, the process proceeds to step 66 and the subtraction value is set in the register 28 IN1 +
It is checked whether it exceeds IN2 and whether it is less than IN1-IN2. If the conditions of steps 66 and 67 are satisfied, the process proceeds to steps 68 and 69, respectively, and the output OUT
2 is switched to H and OUT1 is switched to H level, and the process returns to step 62. By doing so, as shown in FIG. 12A, the reference scale unique to the displacement detection sensor is converted into a user scale having IN1 as the center point, and the IN2 set based on the user scale is converted to the user scale shown in FIG. A pair of outputs corresponding to the distance can be obtained as shown in (b).

【0032】次にステップ65においてモードBに設定
されている場合には、ステップ70に進み、減算手段2
8で減算した値が負となっているかをチェックし、減算
値が負の場合にはステップ71に進んで出力OUT1を
Hレベルとする。負でなければステップ72において減
算値がIN2を越えているかどうかをチェックする。I
N2を越えている場合にはステップ73においてOUT
2をHレベルとする。こうすれば図13(a),(b)
に示すように、変位検出センサに固有の基準スケールを
ユーザが設定したIN1を最近接点とするユーザスケー
ルに変換し、その位置から設定された変位までの距離に
達しているかどうかによって出力を得ることができる。
Next, when the mode B is set in step 65, the process proceeds to step 70 and the subtraction means 2
It is checked whether or not the value subtracted in step 8 is negative. If the subtracted value is negative, the routine proceeds to step 71, where the output OUT1 is set to H level. If not negative, it is checked in step 72 whether the subtracted value exceeds IN2. I
If N2 is exceeded, OUT is output in step 73.
2 is set to H level. By doing this, FIG. 13 (a), (b)
As shown in, the reference scale specific to the displacement detection sensor is converted into a user scale with IN1 set as the closest contact point set by the user, and an output is obtained depending on whether or not the distance from the position to the set displacement is reached. You can

【0033】尚本実施例では、ユーザが設定する基準位
置IN1の入力時に変位検出センサの前面に物体を配置
してそのときの減算値をIN1としているが、直接数値
で入力してもよいことはいうまでもない。又この基準位
置からの偏差の範囲又はこれから変位した第2の位置を
数値で入力するようにしているが、第2の位置の入力時
にも物体をその位置に配置して所定のキーを押下するこ
とによって入力するようにしてもよいことはいうまでも
ない。
In the present embodiment, when the reference position IN1 set by the user is input, an object is placed in front of the displacement detection sensor and the subtraction value at that time is set to IN1, but it is also possible to directly input a numerical value. Needless to say. Further, the range of deviation from the reference position or the second position displaced from the reference position is numerically input, but when the second position is input, the object is placed at that position and a predetermined key is pressed. It goes without saying that it may be possible to input by doing so.

【0034】又本実施例では第2の発振回路に接続され
る温度センサとしてサーミスタを用いているが、サーミ
スタに限らず種々の温度センサを用いることができるこ
とはいうまでもない。
Further, although the thermistor is used as the temperature sensor connected to the second oscillation circuit in this embodiment, it goes without saying that various temperature sensors can be used without being limited to the thermistor.

【0035】[0035]

【発明の効果】以上詳細に説明したように本願の請求項
1の発明によれば、温度の補償を各変位センサに固有の
温度検出手段と発振コイルの温度に対する変化を含めた
補正テーブルメモリを作成し、このデータに基づいて補
正を行っている。従って発振コイルや温度センサのばら
つきによる温度補償の誤差がなくなる。そして使用者が
物体を配置し又は数値で入力した基準位置からの物体の
変位を正確に測定し、表示することができる。又本願の
請求項2の発明では、基準位置とその基準位置からの偏
差の範囲を入力することによって、この範囲内かどうか
の判別信号を得ることができる。又請求項3の発明で
は、この基準位置から一定範囲隔てた位置の範囲内かど
うかを判別することができる。このため位置の入力を極
めて容易に行うことが可能となる。又請求項4の発明で
は、第1,第2のモードを切換え第2の入力手段によっ
て偏差の範囲又は変位を入力し、比較手段によってその
範囲内又は変位を判別することができる。又請求項5の
発明では、第2の入力手段によって直接数値で入力する
ことによって設定を容易に行うことができる。
As described in detail above, according to the invention of claim 1 of the present application, the temperature compensation means for compensating the temperature includes the temperature detecting means specific to each displacement sensor and the change with respect to the temperature of the oscillation coil. Created and corrected based on this data. Therefore, there is no temperature compensation error due to variations in the oscillation coil or the temperature sensor. Then, the displacement of the object from the reference position where the user arranges the object or inputs it numerically can be accurately measured and displayed. Further, in the invention of claim 2 of the present application, by inputting the reference position and the range of the deviation from the reference position, it is possible to obtain a determination signal as to whether or not it is within this range. According to the third aspect of the invention, it is possible to determine whether or not the position is within a range separated from the reference position by a certain range. Therefore, it becomes possible to input the position extremely easily. Further, in the invention of claim 4, it is possible to switch between the first and second modes and input the range or displacement of the deviation by the second input means, and determine the range or the displacement by the comparing means. In the invention of claim 5, the setting can be easily performed by directly inputting a numerical value by the second input means.

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

【図1】本発明の一実施例による変位検出センサの全体
構成を示すブロック図である。
FIG. 1 is a block diagram showing an overall configuration of a displacement detection sensor according to an embodiment of the present invention.

【図2】本実施例のマイクロコンピュータの機能ブロッ
クを示すブロック図である。
FIG. 2 is a block diagram showing functional blocks of a microcomputer of this embodiment.

【図3】本実施例の変位検出センサの前面を示す正面図
である。
FIG. 3 is a front view showing the front surface of the displacement detection sensor of this embodiment.

【図4】本実施例による補正テーブルメモリ13を作成
するための補正テーブル生成装置の構成を示すブロック
図である。
FIG. 4 is a block diagram showing a configuration of a correction table generation device for creating a correction table memory 13 according to the present embodiment.

【図5】(a)は本実施例によって演算に求めたMT
ーブル、(b)はこれに対応するパルス数Nd、(c)
は補正値ΔNを示すテーブルである。
[5] (a) M T table, obtained in the examples operation (b) the number of pulses Nd corresponding thereto, (c)
Is a table showing the correction value ΔN.

【図6】(a)はこの変位検出センサの使用温度範囲で
の恒温槽にセンサ部を挿入したときに得られる各温度で
のMT 値を示すテーブル、(b)はその場合のNT 値を
示すテーブルである。
FIG. 6 (a) is a table showing M T values at each temperature obtained when the sensor unit is inserted into a constant temperature bath in the operating temperature range of this displacement detection sensor, and FIG. 6 (b) is N T in that case. It is a table showing a value.

【図7】本実施例の距離に対するパルス数NS の変化を
示すグラフである。
FIG. 7 is a graph showing changes in the number of pulses N S with respect to the distance in this embodiment.

【図8】本実施例の距離dに対する温度補償されたNd
値の変化を示すグラフである。
FIG. 8 is a temperature-compensated Nd with respect to the distance d in the present embodiment.
It is a graph which shows change of a value.

【図9】本実施例のNdに対するリニアライズするため
の変換テーブルを示す図である。
FIG. 9 is a diagram showing a conversion table for linearizing Nd in the present embodiment.

【図10】本実施例の位置入力部の動作を示すフローチ
ャートである。
FIG. 10 is a flowchart showing the operation of the position input unit of this embodiment.

【図11】本実施例の動作を示すフローチャートであ
る。
FIG. 11 is a flowchart showing the operation of this embodiment.

【図12】Aモードでの基準スケールとユーザスケール
の関係及びユーザスケールでの出力状態を示す図であ
る。
FIG. 12 is a diagram showing a relationship between a reference scale and a user scale in A mode and an output state in the user scale.

【図13】本実施例の基準スケールとユーザスケールと
の関係及びユーザスケールでの検知距離に対する出力を
示す図である。
FIG. 13 is a diagram showing the relationship between the reference scale and the user scale and the output with respect to the detection distance on the user scale in the present embodiment.

【図14】従来の高周波発振型近接スイッチの構成を示
すブロック図である。
FIG. 14 is a block diagram showing a configuration of a conventional high frequency oscillation type proximity switch.

【符号の説明】[Explanation of symbols]

1 センサ部 2 電子回路部 3 発振コイル 4 発振回路 5 サーミスタ 6 CR発振回路 7,8 分周回路 9,10 カウンタ 11 基準クロック発振器 12 マイクロコンピュータ 13 温度補正テーブルメモリ 14 リニア補正テーブルメモリ 15 入力部 16 表示部 17 出力部 20 ケース 21 温度補正処理部 22 加算手段 23 基準値出力部 24,28 減算手段 25 変位算出処理部 26 モード選択手段 27 レジスタ 29 比較部 30 補正テーブル生成装置 31 恒温槽 32 制御部 33 データ書込部 34,36 データメモリ 35 MT テーブル算出部 37 NS テーブル算出部 38 ΔNテーブル算出部1 Sensor Section 2 Electronic Circuit Section 3 Oscillation Coil 4 Oscillation Circuit 5 Thermistor 6 CR Oscillation Circuit 7, 8 Frequency Divider Circuit 9, 10 Counter 11 Reference Clock Oscillator 12 Microcomputer 13 Temperature Correction Table Memory 14 Linear Correction Table Memory 15 Input Section 16 Display unit 17 Output unit 20 Case 21 Temperature correction processing unit 22 Addition unit 23 Reference value output unit 24, 28 Subtraction unit 25 Displacement calculation processing unit 26 Mode selection unit 27 Register 29 Comparison unit 30 Correction table generation device 31 Constant temperature bath 32 Control unit 33 data writing unit 34, 36 a data memory 35 M T table calculating section 37 N S table calculating unit 38 .DELTA.N table calculating section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岩月 豊 京都府京都市右京区花園土堂町10番地 オ ムロン株式会社内 (72)発明者 木谷 敏樹 京都府京都市右京区花園土堂町10番地 オ ムロン株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Yutaka Iwatsuki, No. 10 Hanazono Dodo-cho, Ukyo-ku, Kyoto City, Kyoto Prefecture Omron Co., Ltd. Within Muron Co., Ltd.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 発振コイルを有し該発振コイルへの被検
出物体の接近によって発振周波数が変化する第1の発振
回路と、 前記第1の発振回路の温度の変化によって発振周波数が
変化する第2の発振回路と、 前記第1,第2の発振回路の発振周波数を計数する第
1,第2の計数手段と、 使用温度範囲での前記第1の発振回路の各温度に対応し
た前記第2の計数手段より得られるべき演算値を算出し
て第1の計数テーブルを生成し、使用温度範囲での前記
第1の発振回路の各温度に対応して前記第1,第2の計
数手段より得られる計数値を夫々第2,第3の計数テー
ブルとして生成し、前記第2及び第3の計数テーブルの
データを比例配分することによって前記第1のテーブル
の各温度での演算値に対応した前記第1の計数手段より
得られるべき演算値を算出し、各演算値から前記第1の
計数手段の基準計数値NR を減算し、各温度での補正値
ΔNの第4の計数テーブルを算出することにより、得ら
れた第1,第4の計数テーブルを補正テーブルデータと
する補正テーブルメモリと、 前記補正テーブルに基づき前記第2の計数手段により得
られる計数値MT に対応する補正値ΔNを比例配分によ
って算出する温度補正処理部と、 前記温度補正処理部より得られる補正値ΔNと基準値N
R とを加算する加算手段と、 前記第1の計数手段の計数値Nsから前記加算手段の加
算値(ΔN+NR )を減算する第1の減算手段と、 前記第1の減算手段より得られる出力Ndを前記発振コ
イルから物体までの距離dに対して直線化する変位算出
処理部と、 変位の基準位置を変位データとして入力する第1の入力
手段と、 前記第1の入力手段によって入力された基準位置の値を
前記直線化された出力から減算する第2の減算手段と、 前記第2の減算手段の出力を表示する表示手段と、を具
備することを特徴とする変位検出センサ。
1. A first oscillating circuit which has an oscillating coil and whose oscillating frequency changes when an object to be detected approaches the oscillating coil; and an oscillating frequency which changes due to a temperature change of the first oscillating circuit. A second oscillating circuit, first and second counting means for counting oscillating frequencies of the first and second oscillating circuits, and the first oscillating circuit corresponding to each temperature of the first oscillating circuit in a working temperature range. The first counting table is generated by calculating the calculation value to be obtained by the second counting means, and the first and second counting means are associated with each temperature of the first oscillation circuit in the operating temperature range. The obtained count values are respectively generated as second and third count tables, and the data of the second and third count tables are proportionally distributed to correspond to the calculated values at each temperature of the first table. Should be obtained from the first counting means First values obtained by calculating operation values, subtracting the reference count value N R of the first counting means from each operation value, and calculating a fourth count table of the correction value ΔN at each temperature. , A correction table memory using the fourth counting table as correction table data, and a temperature correction process for calculating a correction value ΔN corresponding to the count value M T obtained by the second counting means based on the correction table by proportional distribution. Section, the correction value ΔN and the reference value N obtained from the temperature correction processing section.
An addition means for adding R and R , a first subtraction means for subtracting the addition value (ΔN + N R ) of the addition means from the count value Ns of the first counting means, and an output obtained from the first subtraction means A displacement calculation processing unit that linearizes Nd with respect to the distance d from the oscillation coil to the object, a first input unit that inputs a reference position of displacement as displacement data, and a first input unit that inputs the displacement reference position. A displacement detection sensor comprising: second subtraction means for subtracting the value of the reference position from the linearized output; and display means for displaying the output of the second subtraction means.
【請求項2】 前記第1の入力手段より入力される基準
位置(IN1)からの偏差の範囲(IN2)を入力する
第2の入力手段と、 前記第2の減算手段の出力と前記第2の入力手段によっ
て入力された偏差の範囲とに基づいてこの範囲内か否か
を判別する比較手段と、 前記第2の比較手段の比較信号を出力する出力手段と、
を具備することを特徴とする請求項1記載の変位検出セ
ンサ。
2. A second input means for inputting a range (IN2) of a deviation from a reference position (IN1) inputted by the first input means, an output of the second subtracting means and the second Comparing means for judging whether or not the deviation is within this range based on the range of the deviation input by the input means, and output means for outputting the comparison signal of the second comparing means,
The displacement detection sensor according to claim 1, further comprising:
【請求項3】 前記第1の入力手段より入力される基準
位置からの変位を入力する第2の入力手段と、 前記第2の減算手段の出力と前記第2の入力手段によっ
て入力された変位とを比較する比較手段と、 前記第2の比較手段の比較信号を出力する出力手段と、
を具備することを特徴とする請求項1記載の変位検出セ
ンサ。
3. A second input means for inputting a displacement from a reference position inputted by the first input means, an output of the second subtracting means, and a displacement inputted by the second input means. Comparing means for comparing and, output means for outputting a comparison signal of the second comparing means,
The displacement detection sensor according to claim 1, further comprising:
【請求項4】 前記第1の入力手段より入力される基準
位置からの偏差の範囲又は変位を設定する第1,第2の
モードを切換える切換手段と、 前記切換手段によって第1のモードが選択されたときに
前記第2の入力手段より入力される基準位置からの偏差
の範囲を入力し、前記切換手段によって第2のモードが
選択されたときに前記第1の入力手段より入力される基
準位置からの変位を入力する第2の入力手段と、 前記切換手段によって制御され、前記第2の減算手段の
出力と前記第2の入力手段によって入力される偏差の範
囲又は変位とを比較する比較手段と、 前記比較手段の比較信号を出力する出力手段と、を具備
することを特徴とする請求項1記載の変位検出センサ。
4. A switching means for switching between first and second modes for setting a range or displacement of a deviation from a reference position input from the first input means, and the first mode is selected by the switching means. When the second mode is selected by the switching means, the range of deviation from the reference position input by the second input means is input, and the reference input by the first input means when the second mode is selected by the switching means. Second input means for inputting a displacement from a position, and comparison for comparing the output of the second subtracting means and the range or displacement of the deviation input by the second input means, which is controlled by the switching means. The displacement detection sensor according to claim 1, further comprising: a means and an output means that outputs a comparison signal of the comparison means.
【請求項5】 前記第2の入力手段は、減算手段の出力
スケールに対応した数値を入力するものであることを特
徴とする請求項2,3又は4記載の変位検出センサ。
5. The displacement detection sensor according to claim 2, wherein the second input means inputs a numerical value corresponding to the output scale of the subtraction means.
JP22500392A 1992-07-31 1992-07-31 Displacement detecting sensor Pending JPH0653805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22500392A JPH0653805A (en) 1992-07-31 1992-07-31 Displacement detecting sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22500392A JPH0653805A (en) 1992-07-31 1992-07-31 Displacement detecting sensor

Publications (1)

Publication Number Publication Date
JPH0653805A true JPH0653805A (en) 1994-02-25

Family

ID=16822560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22500392A Pending JPH0653805A (en) 1992-07-31 1992-07-31 Displacement detecting sensor

Country Status (1)

Country Link
JP (1) JPH0653805A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7833687B2 (en) 2008-06-02 2010-11-16 Canon Kabushiki Kaisha Aqueous dispersion of fine resin particles, method for producing aqueous dispersion of fine resin particles, and method for producing toner particles
JP2017088803A (en) * 2015-11-16 2017-05-25 大東化成工業株式会社 Manufacturing method of non-spherical biodegradable polymer powder and cosmetic
JP2019062268A (en) * 2017-09-25 2019-04-18 オムロン株式会社 Proximity sensor
JP2019062269A (en) * 2017-09-25 2019-04-18 オムロン株式会社 Method for manufacturing proximity sensor and system for manufacturing proximity sensor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7833687B2 (en) 2008-06-02 2010-11-16 Canon Kabushiki Kaisha Aqueous dispersion of fine resin particles, method for producing aqueous dispersion of fine resin particles, and method for producing toner particles
JP2017088803A (en) * 2015-11-16 2017-05-25 大東化成工業株式会社 Manufacturing method of non-spherical biodegradable polymer powder and cosmetic
JP2019062268A (en) * 2017-09-25 2019-04-18 オムロン株式会社 Proximity sensor
JP2019062269A (en) * 2017-09-25 2019-04-18 オムロン株式会社 Method for manufacturing proximity sensor and system for manufacturing proximity sensor

Similar Documents

Publication Publication Date Title
US4858145A (en) Force measuring device
CN101115979B (en) Electronic thermometer
JPH0653805A (en) Displacement detecting sensor
EP0303442B1 (en) Multi-frequency capacitance sensor
JPH0653804A (en) Method and device for preparing correction table and displacement detecting sensor
JPH08247783A (en) Transducer
JPS5833490B2 (en) temperature measuring device
JPH0653806A (en) Displacement detecting sensor
EP0663647A2 (en) Temperature phase shift circuit and coordinate input apparatus
JP2556367B2 (en) Electronic thermo-hygrometer
JPS5819523A (en) Temperature measuring device
JPH07104145B2 (en) Output timing interpolation method for position detection device
JPS6129657B2 (en)
JPH0367209B2 (en)
JP2504753B2 (en) Electronic thermometer
JPH03243840A (en) Temperature compensation system for piezoelectric vibrator type pressure sensor
JPS5895230A (en) Method and apparatus for electronic type temperature measurement
KR100383736B1 (en) Sensor Interface for Resistance and Capacitance using CMOS Gates
JPH07318366A (en) Electrostatic-capacity type measuring method and apparatus
JP3819967B2 (en) Waveform processing device
JPS6252249B2 (en)
JPS6013232A (en) Temperature detecting method wherein temperature-frequency characteristics of crystal oscillator is compensated
JPH03162627A (en) Liquid level detector
JPS60146143A (en) Hygrometer
JPS6112213B2 (en)