JP2007142627A - Photoelectric sensor - Google Patents

Photoelectric sensor Download PDF

Info

Publication number
JP2007142627A
JP2007142627A JP2005331387A JP2005331387A JP2007142627A JP 2007142627 A JP2007142627 A JP 2007142627A JP 2005331387 A JP2005331387 A JP 2005331387A JP 2005331387 A JP2005331387 A JP 2005331387A JP 2007142627 A JP2007142627 A JP 2007142627A
Authority
JP
Japan
Prior art keywords
received light
value
display
light amount
photoelectric sensor
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
JP2005331387A
Other languages
Japanese (ja)
Inventor
Tomonori Hanada
智紀 花田
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.)
Keyence Corp
Original Assignee
Keyence Corp
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 Keyence Corp filed Critical Keyence Corp
Priority to JP2005331387A priority Critical patent/JP2007142627A/en
Publication of JP2007142627A publication Critical patent/JP2007142627A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To avoid saturation of a display generated at the display section of limited number of digits in a photoelectric sensor equipped with a display function. <P>SOLUTION: Assuming a quantity of received light for "work is present" is "3000" and a quantity of light for "work is absent" is "21000", the threshold becomes (3000+21000)/2="12000". Since that value is larger than an upper limit display value "8000", display value of the threshold is adjusted to "8000" and the scaling factor is set to (8000/12000)="2/3" and then the display value of the quantity of received light is calculated, based on that scaling factor. The display value of the quantity of received light becomes "2000" for "work is present" and becomes "14000" for "work is absent". The display value "14000" of the quantity of received light for "work is absent" is displayed by the maximum value "9999" of 4 digits. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は表示機能を備えた光電センサに関する。   The present invention relates to a photoelectric sensor having a display function.

例えば特許文献1に見られる光電センサは反射型と透過型とに大別されるが、光電センサの基本的な機能は、投射した光が形成する検出エリアをワークが通過することに伴う受光量の変化を使ってワークの有無を判定することにある。この種の光電センサは一般的に4桁の表示部を備え、この表示部に受光量やしきい値が表示される。   For example, the photoelectric sensor shown in Patent Document 1 is roughly classified into a reflection type and a transmission type. The basic function of the photoelectric sensor is the amount of light received when a workpiece passes through a detection area formed by projected light. It is to determine the presence or absence of the work using the change of the. This type of photoelectric sensor generally includes a 4-digit display unit, and the received light amount and threshold value are displayed on the display unit.

すなわち、特許文献1に開示のように、光電センサは受光信号を増幅した後にA/D変換器によってデジタル変換したデータを受光量として表示するようになっている。   In other words, as disclosed in Patent Document 1, the photoelectric sensor amplifies the received light signal and then displays the data converted by the A / D converter as the received light amount.

また、A/D変換器によってデジタル変換したデータ(受光量)は、その最大受光量と最小受光量とを使って、典型的には、その中間にしきい値を設定するしきい値の自動設定が行われる。
特開平09−167953号公報
In addition, the data (received light amount) digitally converted by the A / D converter uses the maximum received light amount and the minimum received light amount and typically automatically sets a threshold value in the middle. Is done.
Japanese Patent Laid-Open No. 09-167953

4桁表示部で表示しきれない数値つまり「9999」の値を超えた受光量やしきい値は事実上表示不能な状態になる。例えば光電センサの内部での受光データが「20000」であった場合、表示部での表示は「9999」と飽和した値が表示される。同様に、最大受光データが「20000」で最小受光データが「400」であった場合にしきい値が「10200」に設定されたときには、しきい値の表示が4桁の表示部の表示範囲を超えてしまい、設定値の真の値が分からないという、いわゆる飽和の問題があった。   The amount of light received and the threshold value exceeding the value that cannot be displayed on the 4-digit display section, that is, the value of “9999”, are virtually undisplayable. For example, when the received light data in the photoelectric sensor is “20000”, the display unit displays a value saturated with “9999”. Similarly, if the threshold value is set to “10200” when the maximum received light data is “20000” and the minimum received light data is “400”, the display of the threshold value is the display range of the 4-digit display section. There is a so-called saturation problem that the true value of the set value is not known.

このことは、光電センサは正常にON/OFFの信号を出力しているにも関わらず表示部に表示される受光量の表示値が簡単に飽和することは、ユーザにとって、表示された数値を信頼できないということに通じるだけでなく、受光量としきい値との間の差分値が実質的に不明となってしまうため、例えばしきい値の値を微調整するのが不可能になるという問題がある。   This means that even though the photoelectric sensor normally outputs an ON / OFF signal, the display value of the received light amount displayed on the display unit is easily saturated. Not only does this lead to unreliability, but the difference value between the amount of received light and the threshold value becomes substantially unknown, so it becomes impossible to fine-tune the threshold value, for example. There is.

そこで、本発明の目的は、表示機能を備えた光電センサを前提として、有限の桁数の表示部で発生する表示の飽和を回避することのできる光電センサを提供することにある。   Accordingly, an object of the present invention is to provide a photoelectric sensor capable of avoiding display saturation that occurs in a display unit having a finite number of digits, on the premise of a photoelectric sensor having a display function.

上記の技術的課題は、本発明の第1の観点によれば、
投光部が投射した光が形成する検出エリアをワークが通過することに伴って変化する受光データを基に受光量をしきい値と比較してワークの有無を判定すると共に、受光量及びしきい値を表示部に表示する機能を備えた光電センサにおいて、
該光電センサは、複数の前記受光データを加算した値に基づいて前記受光量を算出し、当該受光量の最大値が前記表示部の表示限界よりも大きい動作モードを有し、
前記受光量及び前記しきい値の表示値を前記表示部で表示可能な値に調整する表示値調整手段を有することを特徴とする光電センサを提供することにより達成される。
The above technical problem is, according to the first aspect of the present invention,
The received light amount is compared with a threshold value based on the received light data that changes as the work passes through the detection area formed by the light projected by the light projecting unit, and the presence or absence of the work is determined. In a photoelectric sensor having a function of displaying a threshold value on a display unit,
The photoelectric sensor calculates the received light amount based on a value obtained by adding a plurality of the received light data, and has an operation mode in which the maximum value of the received light amount is larger than the display limit of the display unit,
This is achieved by providing a photoelectric sensor comprising display value adjusting means for adjusting display values of the received light amount and the threshold value to values that can be displayed on the display unit.

上記の技術的課題は、本発明の第2の観点によれば、
投光部が投射した光が形成する検出エリアをワークが通過することに伴って変化する受光データを基に受光量をしきい値と比較してワークの有無を判定すると共に、受光量及びしきい値を表示部に表示する機能を備えた光電センサにおいて、
該光電センサは、複数の前記受光データを加算した値に基づいて前記受光量を算出し、当該受光量の最大値が前記表示部の表示限界よりも大きい動作モードを有し、
前記しきい値が所定の上限値を超えているときに、該しきい値を前記表示部で表示可能な所定の表示値に調整すると共に、前記しきい値を前記所定の表示値に調整するときの倍率に基づいて前記受光量を調整して前記表示部に表示することを特徴とする光電センサを提供することにより達成される。
The above technical problem is, according to the second aspect of the present invention,
The received light amount is compared with a threshold value based on the received light data that changes as the work passes through the detection area formed by the light projected by the light projecting unit, and the presence or absence of the work is determined. In a photoelectric sensor having a function of displaying a threshold value on a display unit,
The photoelectric sensor calculates the received light amount based on a value obtained by adding a plurality of the received light data, and has an operation mode in which the maximum value of the received light amount is larger than the display limit of the display unit,
When the threshold value exceeds a predetermined upper limit value, the threshold value is adjusted to a predetermined display value that can be displayed on the display unit, and the threshold value is adjusted to the predetermined display value. This is achieved by providing a photoelectric sensor characterized in that the received light amount is adjusted based on the magnification at the time and displayed on the display unit.

本発明によれば、しきい値や受光量の表示値を調整することで表示の飽和を回避することができる。   According to the present invention, display saturation can be avoided by adjusting the display value of the threshold value and the amount of received light.

以下に、添付の図面に基づいて本発明の好ましい実施例を説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.

図1は、本発明を適用した光電センサを示す。図示の光電センサ100は、光ファイバを通じて投受光する形式の光電センサである。光電センサ100は、幅狭の比較的細長いボックス状のケーシング11を有し、ケーシング11の一端面から光ファイバ14、15が外部に延出しており、光電センサ100への電源供給及び典型的にはPLC(図示せず)への出力は、ケーシング11の他端面から延出するケーブル16を通じて行われる。   FIG. 1 shows a photoelectric sensor to which the present invention is applied. The illustrated photoelectric sensor 100 is a photoelectric sensor that projects and receives light through an optical fiber. The photoelectric sensor 100 has a narrow and narrow box-shaped casing 11, and optical fibers 14 and 15 extend from one end surface of the casing 11 to the outside. The output to the PLC (not shown) is performed through a cable 16 extending from the other end surface of the casing 11.

ケーシング11の細長い矩形の上面11aには、長手方向に横並びに隣接して配置された第1、第2の表示部17、18が設けられている。第1、第2の表示部17、18は、共に、横並びに隣接して配置された4つセクション(4桁)を有し、各セクションは7セグメントLEDで構成されている。   First and second display portions 17 and 18 are provided on the elongated rectangular upper surface 11a of the casing 11 so as to be arranged side by side in the longitudinal direction. Both the first and second display portions 17 and 18 have four sections (four digits) arranged side by side, and each section is composed of a 7-segment LED.

ケーシング11の上面11aには、また、出力切替ボタン19、モード切替スイッチ(Mキー)20、スイング式の上下調整スイッチ21、スライド式の動作モードセレクタスイッチ22、セットキースイッチ(SETキー)23、動作表示灯24が設けられている。   On the upper surface 11a of the casing 11, an output switching button 19, a mode switching switch (M key) 20, a swing type up / down adjustment switch 21, a sliding type operation mode selector switch 22, a set key switch (SET key) 23, An operation indicator lamp 24 is provided.

モード切替スイッチ(Mキー)20は、これを3秒以上押し続ける(長押し)ことにより、第1、第2の表示部17、18の画面の表示モードを切り替えることができ、表示モードとしては、検出動作中の表示モード(運用モード)と、各種の設定を行うための表示モード(設定モード)とを有する。Mキー20を3秒よりも短い時間押すと(短押し)、表示モードを切り替えることなく、第1、第2の表示部17、18の画面を切り替えることができる。   The mode changeover switch (M key) 20 can switch the display mode of the screens of the first and second display units 17 and 18 by holding down this for 3 seconds or longer (long press). And a display mode (operation mode) during detection operation and a display mode (setting mode) for performing various settings. When the M key 20 is pressed for a time shorter than 3 seconds (short press), the screens of the first and second display units 17 and 18 can be switched without switching the display mode.

スイング式の上下調整スイッチ21は、アップ(△)側を押すと例えばしきい値を大きくする方向に調整することができ、ダウン(▽)側を押すとしきい値を小さくする方向に調整することができる。また、この上下調整スイッチ21は、設定モード中では、パラメータの選択や設定数値の調整に用いられる。   The swing type up / down adjustment switch 21 can be adjusted, for example, to increase the threshold when the up (△) side is pressed, and can be adjusted to decrease the threshold when the down (▽) side is pressed. Can do. The up / down adjustment switch 21 is used for parameter selection and setting value adjustment in the setting mode.

スライド式の動作モードセレクタスイッチ22は2接点を有し、この動作モードセレクタスイッチ22を操作することにより、予め設定されている動作モードと、複数の他の動作モードからユーザが任意に選択した動作モードとの切替えを行うことができる。光電センサ100で選択可能な複数の動作モードを例示すれば以下のとおりであるが、各種の動作モードは、受光量の大小に違いがあり、この受光量を増加させるのに、例えば、(i)受光の周期を長く設定してパルス発光のデュティーを小さくする代わりに投光電流を増加させることで投光量を増加させる、(ii)受光した信号を複数回加算することによって受光量を大きくすると共にS/Nも向上させる手法を採用することができる。   The slide-type operation mode selector switch 22 has two contacts. By operating this operation mode selector switch 22, an operation arbitrarily selected by the user from a preset operation mode and a plurality of other operation modes. Switching between modes can be performed. Examples of a plurality of operation modes that can be selected by the photoelectric sensor 100 are as follows. Various operation modes differ in the amount of received light. For example, (i ) Instead of setting a longer light reception period to reduce the pulse emission duty, the light emission current is increased to increase the light emission amount. (Ii) The light reception amount is increased by adding the received signal multiple times. At the same time, it is possible to adopt a technique for improving S / N.

(1)ファインモード:このファインモードは、例えばベアリングの刻印の有無を検出するのに適するように受光量が設定されており、微小な刻印の有無による僅かな光量変化を的確に判別することができるという特徴を備えている。 (1) Fine mode: In this fine mode, for example, the amount of received light is set so as to be suitable for detecting the presence / absence of bearing markings, and it is possible to accurately discriminate slight changes in light intensity due to the presence / absence of minute markings. It has the feature of being able to.

(2)ターボモード:ファインモードよりも実質的に受光量が増大する設定になっており、例えば台紙上のシールの検出するのに適している。 (2) Turbo mode: The setting is such that the amount of received light is substantially increased compared to the fine mode, and is suitable for detecting, for example, a sticker on a mount.

(3)スーパーターボモード:ターボモードよりも更に実質的に受光量が増大する設定になっている。このスーパーターボモードは、例えば発光素子又は発光素子からの光を導くファイバ及び/又は受光素子又は受光素子に光を導くファイバとワークWとを離間させた状態でワークWの有無を検出するのに適している。 (3) Super turbo mode: The setting is such that the amount of received light increases substantially more than in the turbo mode. This super turbo mode is used to detect the presence or absence of a workpiece W, for example, in a state where the workpiece W is separated from a light emitting element or a fiber that guides light from the light emitting element and / or a light receiving element or a fiber that guides light to the light receiving element. Is suitable.

(4)ウルトラターボモード:スーパーターボモードよりも更に実質的に受光量が増大する設定になっており受光感度は、ここに列挙の選択肢の動作モードのなかで最大である。このウルトラターボモードは、例えば、スーパーターボモードよりも遠く離れたワークWの有無を検出する、或いは、埃、汚れなどの多い悪環境下でワークWを検出する際に用いるのに適している。 (4) Ultra-turbo mode: The setting is such that the amount of received light is substantially increased compared to the super-turbo mode, and the light-receiving sensitivity is the highest among the operation modes listed here. This ultra turbo mode is suitable, for example, for detecting the presence or absence of a workpiece W farther away than the super turbo mode, or for detecting the workpiece W in a bad environment with a lot of dust and dirt.

(5)ハイスピードモード:ハイスピードモードは、上述した各種の運用モードよりも応答速度を高める設定になっており、比較的早く通過するワークWを検出するのに適している。 (5) High-speed mode: The high-speed mode is set to increase the response speed compared to the various operation modes described above, and is suitable for detecting a workpiece W passing relatively quickly.

SETキー23は、後に説明する自動チューニング及び/又はしきい値の自動設定に用いられる。しきい値の自動設定の基本は、ワークW(図3参照)を検出エリアに配置した状態で、SETキー23を押し、次いで、検出エリアからワークWを取り除いた状態で、SETキー23を再び押すと、ワークWが存在しているときの最大受光量と、ワークWを取り除いたときの最小受光量との間の値(典型的には中間値)がしきい値として自動的に設定される。   The SET key 23 is used for automatic tuning and / or automatic threshold value setting which will be described later. The basic threshold value is set by pressing the SET key 23 with the work W (see FIG. 3) placed in the detection area, and then pressing the SET key 23 again with the work W removed from the detection area. When pressed, a value (typically an intermediate value) between the maximum amount of light received when the workpiece W is present and the minimum amount of light received when the workpiece W is removed is automatically set as a threshold value. The

図2は、光電センサ100のブロック図である。光電センサ100は、例えば発光ダイオード(LED)などからなる発光素子を発光させるための投光処理部30及び投光部31を有し、また、フォトダイオードなどからなる受光素子に接続された受光部32及び増幅部33と、この増幅部33で増幅した受光信号をデジタル変換して受光データとして出力するA/D変換部34とを有する。   FIG. 2 is a block diagram of the photoelectric sensor 100. The photoelectric sensor 100 includes a light projecting processing unit 30 and a light projecting unit 31 for causing a light emitting element such as a light emitting diode (LED) to emit light, and a light receiving unit connected to a light receiving element composed of a photodiode or the like. 32 and an amplification unit 33, and an A / D conversion unit 34 that digitally converts the light reception signal amplified by the amplification unit 33 and outputs it as light reception data.

投光部31、受光部32を制御する主制御部35は、基本的には、表示演算部36を含んで例えばゲートアレイやCPUで構成される。主制御部35には、上述した各種の操作スイッチ又はボタン19〜23を含む操作部37からの信号が供給される他、主制御部35の処理で必要とされる設定値、例えば上述したしきい値などは設定部38で設定され、主制御部35で処理したデータは表示演算部36に供給されて、この表示演算部36で処理したデータが第1、第2表示部17、18に供給されて、第1、第2表示部17、18に表示される。   The main control unit 35 that controls the light projecting unit 31 and the light receiving unit 32 basically includes a display calculation unit 36 and is configured by, for example, a gate array or a CPU. The main control unit 35 is supplied with signals from the operation unit 37 including the above-described various operation switches or buttons 19 to 23, and set values required for processing of the main control unit 35, such as those described above. The threshold value is set by the setting unit 38, the data processed by the main control unit 35 is supplied to the display calculation unit 36, and the data processed by the display calculation unit 36 is supplied to the first and second display units 17 and 18. Is supplied and displayed on the first and second display units 17 and 18.

光電センサ100は、A/D変換部34で変換した受光信号にスケーリング倍率を掛けて受光量の見かけ上の値(表示値)を増減するスケーリング機能を有し、このスケーリング機能を使った見かけ上の受光量及び見かけ上のしきい値を第1、第2表示部17、18に表示することができる。   The photoelectric sensor 100 has a scaling function that increases or decreases the apparent value (display value) of the amount of received light by multiplying the received light signal converted by the A / D converter 34 with a scaling factor. The received light amount and the apparent threshold value can be displayed on the first and second display units 17 and 18.

また、光電センサ100は、自動チューニング機能により、第1、第2表示部17、18に表示されるしきい値及び/又は受光量の値が所定の値を超えたときにスケーリング倍率を調整して、この調整後のしきい値、受光量を第1、第2表示部17、18に表示することができる。   In addition, the photoelectric sensor 100 adjusts the scaling factor when the threshold value and / or the amount of received light displayed on the first and second display units 17 and 18 exceed a predetermined value by the automatic tuning function. Thus, the adjusted threshold value and received light amount can be displayed on the first and second display units 17 and 18.

自動チューニング機能を説明する前に、透過型光電センサ100は、図3に示すように、投光器31が投射する光が形成する検出エリア、つまり投光器31と受光器32との間にワークWが存在すると透過型では遮光により受光量がX1に下がり、ワークWが検出エリアを通り過ぎると受光量がX2に上昇する。   Before explaining the automatic tuning function, as shown in FIG. 3, the transmissive photoelectric sensor 100 has a work area W between the light projector 31 and the light receiver 32, that is, a detection area formed by light projected by the light projector 31. Then, in the transmissive type, the amount of received light decreases to X1 due to light shielding, and when the workpiece W passes the detection area, the amount of received light increases to X2.

しきい値Thは次の式で求められる。
Th=(X1+X2)/2
The threshold value Th is obtained by the following equation.
Th = (X1 + X2) / 2

第1実施例(図4、図5)First embodiment (FIGS. 4 and 5)

上述したTh=(X1+X2)/2のTh値が、しきい値上限表示値S以下であるときには、上述したしきい値Thや受光量X1、X2が表示され、そして透過型光電センサ100にあっては「ワーク無し」の受光量X2が4桁表示の範囲を超えたときには「9999」の表示が行われる。   When the Th value of Th = (X1 + X2) / 2 is equal to or less than the threshold upper limit display value S, the threshold Th and the received light amounts X1, X2 are displayed, and the transmission type photoelectric sensor 100 has When the received light amount X2 of “no workpiece” exceeds the 4-digit display range, “9999” is displayed.

SETキー23を押してチューニングする際に取得した受光量の最小値、最大値に基づいて算出したしきい値Thが上限表示値Sよりも大きいとき(Th>S)には、自動チューニング機構が動作して第1、第2表示部17、18の表示に関し、しきい値が予め設定した所定の表示値(例えば上限表示値S)となるように調整され、また、これに併せて受光量の表示値も調整した後に第1、第2表示部17、18に表示される。この自動チューニングで行われる受光量の表示値の調整はスケーリング倍率として「S/Th」が自動設定され、このスケーリング倍率に基づいて受光量の表示値が調整される。受光量の表示値をYとすると、このYは下記の式で表すことができる。   When the threshold Th calculated based on the minimum and maximum values of the received light quantity acquired when the SET key 23 is tuned is larger than the upper limit display value S (Th> S), the automatic tuning mechanism operates. Then, with respect to the display of the first and second display portions 17 and 18, the threshold value is adjusted so as to become a predetermined display value (for example, the upper limit display value S) set in advance. After the display value is adjusted, it is displayed on the first and second display units 17 and 18. In the adjustment of the display value of the received light amount performed by this automatic tuning, “S / Th” is automatically set as the scaling magnification, and the display value of the received light amount is adjusted based on the scaling magnification. If the display value of the amount of received light is Y, this Y can be expressed by the following equation.

Y=X・(S/Th)     Y = X · (S / Th)

なお、しきい値上限表示値S及びしきい値の所定の表示値に関して、その値をユーザが任意に設定できるのが好ましい。   Note that it is preferable that the user can arbitrarily set the threshold upper limit display value S and the predetermined display value of the threshold.

図4、図5を参照して具体的に説明すると、いま、「ワーク有り」の受光量X1が「3000」であり、「ワーク無し」の受光量X2が「21000」であったとすると、しきい値Thは(3000+21000)/2=「12000」となる(図5のステップS10)。いま、しきい値の上限表示値Sが「8000」であるとすると、図5のステップS11でしきい値Thと上限表示値Sとの比較でYESと判定されてステップS12に進んでしきい値の表示値が所定の表示値(この例では、上限表示値「8000」)に調整され、また、これに合致するスケーリング倍率が算出される。すなわち、スケーリング倍率は(8000/12000)=「2/3」であり、このスケーリング倍率に基づいて受光量の表示値Yが求められる。この例で言えば、例えば「ワーク有り」では、例えば受光量の表示値は「2000」となり、「ワーク無し」では「14000」となる。   Specifically, referring to FIGS. 4 and 5, it is assumed that the received light amount X1 of “with workpiece” is “3000” and the received light amount X2 of “without workpiece” is “21000”. The threshold value Th is (3000 + 21000) / 2 = “12000” (step S10 in FIG. 5). If the upper limit display value S of the threshold value is “8000”, it is determined YES in step S11 of FIG. 5 by comparing the threshold value Th with the upper limit display value S, and the process proceeds to step S12. The display value of the value is adjusted to a predetermined display value (in this example, the upper limit display value “8000”), and a scaling magnification that matches this is calculated. That is, the scaling magnification is (8000/12000) = “2/3”, and the received light amount display value Y is obtained based on the scaling magnification. In this example, for example, when “work is present”, the display value of the received light amount is “2000”, and when “no work” is present, “14000”.

自動チューニング後のしきい値「8000」、「ワーク有り」の受光量の表示値「2000」は4桁表示で表示可能な数値であるが、「ワーク無し」の受光量の表示値「14000」は4桁表示が不可能であることから4桁表示の最大値「9999」を超えた受光量の表示値は全て「9999」で表示される。この表示のチューニングが終わった後には、光電センサ100は、調整後のしきい値及び受光量の表示値が第1、第2表示部17、18に表示される。   The threshold value “8000” after automatic tuning and the display value “2000” for “with workpiece” are values that can be displayed in four digits, but the received value for “without workpiece” is “14000”. Since 4-digit display is impossible, the display values of the received light amount exceeding the maximum value “9999” of 4-digit display are all displayed as “9999”. After the display tuning is completed, the photoelectric sensor 100 displays the adjusted threshold value and the received light amount display value on the first and second display units 17 and 18.

第2実施例(図6)Second embodiment (FIG. 6)

この第2実施例にあっても、チューニング時に取得した最大及び最小受光量からしきい値が算出され、このしきい値が図6に示すように「12000」というようにしきい値上限表示値Sを超えているときには自動チューニングが行われる。この第2実施例での自動チューニングでは、チューニング時に取得した最大受光量に基づいてしきい値及び受光量の表示値が調整される。図6の例では、チューニング時の最大受光量が「21000」であることから、これを4桁表示の最大値「9999」にするスケーリング倍率が算出される。すなわち、(9999/21000)=約0.48がスケーリング倍率として自動設定され、このスケーリング倍率に基づいてしきい値及び受光量の表示値が調整される。具体的には、しきい値の表示値が「5714」に調整され、例えば「ワーク有り」の受光量が「3000」であれば調整後の「1428」が受光量の調整値として表示される。   Even in the second embodiment, a threshold value is calculated from the maximum and minimum received light amounts acquired at the time of tuning, and this threshold value is a threshold upper limit display value S such as “12000” as shown in FIG. Automatic tuning is performed when exceeding. In the automatic tuning in the second embodiment, the threshold value and the display value of the received light amount are adjusted based on the maximum received light amount acquired at the time of tuning. In the example of FIG. 6, since the maximum received light amount at the time of tuning is “21000”, the scaling factor for calculating the maximum value “9999” in the 4-digit display is calculated. That is, (9999/21000) = about 0.48 is automatically set as the scaling magnification, and the threshold value and the received light amount display value are adjusted based on the scaling magnification. Specifically, the display value of the threshold is adjusted to “5714”. For example, if the received light amount of “with workpiece” is “3000”, “1428” after adjustment is displayed as the adjusted value of the received light amount. .

第3実施例(図7)Third embodiment (FIG. 7)

この第3実施例にあっても、チューニング時に取得した最大及び最小受光量からしきい値が算出され、このしきい値が上限表示値Sを超えているときに自動チューニングが行われる。そして、この第3実施例では、チューニング時に取得した最大受光量及び最小受光量の差に基づいてしきい値及び受光量の表示値が調整される。   Even in the third embodiment, the threshold is calculated from the maximum and minimum received light amounts acquired during tuning, and automatic tuning is performed when the threshold exceeds the upper limit display value S. In the third embodiment, the threshold value and the display value of the received light amount are adjusted based on the difference between the maximum received light amount and the minimum received light amount acquired during tuning.

図7の例では、チューニング時の最大受光量が「21000」であり、最小受光量が「3000」であることから、その差分値(21000−3000)=18000が表示幅となるようにスケーリング倍率が算出される。ここに4桁表示での表示幅は(9999−0)=「9999」であるから、(9999/18000)=約0.56がスケーリング倍率として自動設定され、このスケーリング倍率に基づいてしきい値及び受光量の表示値が調整される。具体的には、「12000」のしきい値は、(12000−3000)×約0.56=「5000」が表示され、例えば「ワーク有り」の受光量「3000」は、(3000−3000)×約0.56=「0」が表示される。   In the example of FIG. 7, the maximum received light amount at the time of tuning is “21000” and the minimum received light amount is “3000”. Therefore, the scaling value is set so that the difference value (21000−3000) = 18000 is the display width. Is calculated. Since the display width in 4-digit display is (9999-0) = "9999", (9999/18000) = approximately 0.56 is automatically set as the scaling factor, and the threshold value and light reception are based on this scaling factor. The display value of the quantity is adjusted. Specifically, the threshold value of “12000” is displayed as (12000−3000) × approximately 0.56 = “5000”. For example, the received light amount “3000” of “with workpiece” is (3000−3000) × approximately 0.56 = “0” is displayed.

第4実施例(図8)Fourth embodiment (FIG. 8)

この第4実施例では、チューニング時に取得した最大受光量から例えば10%小さな値がしきい値として設定され、このしきい値が上限表示値Sを超えているときに、表示値の自動チューニングが行われる。そして、この第4実施例では、しきい値の表示値が所定の値、例えば図8の例では上限表示値である「8000」となるようにスケーリング倍率が算出される。   In the fourth embodiment, a value that is, for example, 10% smaller than the maximum received light amount acquired at the time of tuning is set as a threshold value, and when this threshold value exceeds the upper limit display value S, the display value is automatically tuned. Done. In the fourth embodiment, the scaling factor is calculated so that the display value of the threshold value is a predetermined value, for example, “8000” which is the upper limit display value in the example of FIG.

すなわち、図示の例では、最大受光量が「21000」であり、この10%小さい「18900」がしきい値であるが、この「18900」はしきい値上限表示値「8000」よりも大きいことから自動チューニングが行われ、この自動チューニングに用いられるスケーリング倍率として、(8000/18900)=約0.42が自動設定され、しきい値の表示値は「8000」であり、受光量は約0.42を乗算した値が受光量表示値となる。   That is, in the illustrated example, the maximum received light amount is “21000”, and “18900”, which is 10% smaller than this, is the threshold value, but this “18900” is larger than the threshold upper limit display value “8000”. Is automatically tuned, (8000/18900) = approximately 0.42 is automatically set as the scaling factor used for this automatic tuning, the threshold value is "8000", and the received light amount is multiplied by approximately 0.42. The received value is the received light amount display value.

なお、しきい値の自動設定に関し、最大受光量から何%小さな値を設定するかの%をユーザが任意に設定できるのが好ましい。   Regarding the automatic setting of the threshold value, it is preferable that the user can arbitrarily set the percentage of what value is set smaller than the maximum received light amount.

以上、本発明の実施例によれば、しきい値や受光量が表示部の表示限界を超えたときには、表示部の表示範囲となるように自動的に調整された状態で表示させることができる。   As described above, according to the embodiment of the present invention, when the threshold value or the amount of received light exceeds the display limit of the display unit, it can be displayed in a state of being automatically adjusted to be within the display range of the display unit. .

しきい値及び受光量について表示値の自動チューニングを、スケーリング倍率を調整することで行う例で上記の実施例を説明したが、スケーリング倍率の調整に代えて、受光ゲインや投光量を変更することにより受光量の表示値を調整するようにしてもよい。   Although the above embodiment has been described with an example in which the display value is automatically tuned by adjusting the scaling factor for the threshold value and the amount of received light, the received light gain and the amount of emitted light are changed instead of the adjustment of the scaling factor. The display value of the received light amount may be adjusted by the above.

本発明を適用した光電センサの斜視図である。It is a perspective view of a photoelectric sensor to which the present invention is applied. 図1の光電センサのブロック図である。It is a block diagram of the photoelectric sensor of FIG. 透過型光電センサが形成する検出エリアをワークが通過することに伴う受光量の変化を説明するための図である。It is a figure for demonstrating the change of the light reception amount accompanying a workpiece | work passing the detection area which a transmissive photoelectric sensor forms. 表示値の自動チューニングの第1実施例を説明するための図である。It is a figure for demonstrating the 1st Example of the automatic tuning of a display value. 表示値の自動チューニングに関する制御の一例を説明するためのフローチャートである。It is a flowchart for demonstrating an example of the control regarding the automatic tuning of a display value. 表示値の自動チューニングの第2実施例を説明するための図である。It is a figure for demonstrating the 2nd Example of the automatic tuning of a display value. 表示値の自動チューニングの第3実施例を説明するための図である。It is a figure for demonstrating the 3rd Example of the automatic tuning of a display value. 表示値の自動チューニングの第3実施例を説明するための図である。It is a figure for demonstrating the 3rd Example of the automatic tuning of a display value.

符号の説明Explanation of symbols

100 光電センサ
17、18 第1、第2の表示部
21 スイング式上下調整スイッチ
23 セットキースイッチ(SETキー)
33 受光増幅部
34 A/D変換部
W ワーク
100 Photoelectric sensor 17, 18 First and second display parts 21 Swing type vertical adjustment switch 23 Set key switch (SET key)
33 Photoreceiver / Amplifier 34 A / D Converter W Work

Claims (8)

投光部が投射した光が形成する検出エリアをワークが通過することに伴って変化する受光データを基に受光量をしきい値と比較してワークの有無を判定すると共に、受光量及びしきい値を表示部に表示する機能を備えた光電センサにおいて、
該光電センサは、複数の前記受光データを加算した値に基づいて前記受光量を算出し、当該受光量の最大値が前記表示部の表示限界よりも大きい動作モードを有し、
前記受光量及び前記しきい値の表示値を前記表示部で表示可能な値に調整する表示値調整手段を有することを特徴とする光電センサ。
The received light amount is compared with a threshold value based on the received light data that changes as the work passes through the detection area formed by the light projected by the light projecting unit, and the presence or absence of the work is determined. In a photoelectric sensor having a function of displaying a threshold value on a display unit,
The photoelectric sensor calculates the received light amount based on a value obtained by adding a plurality of the received light data, and has an operation mode in which the maximum value of the received light amount is larger than the display limit of the display unit,
A photoelectric sensor comprising display value adjustment means for adjusting the display value of the received light amount and the threshold value to a value that can be displayed on the display unit.
前記しきい値を最大受光量と最小受光量の間の値に設定するしきい値自動設定手段を更に有する、請求項1に記載の光電センサ。   2. The photoelectric sensor according to claim 1, further comprising an automatic threshold setting unit configured to set the threshold to a value between the maximum received light amount and the minimum received light amount. 前記最大受光量と前記最小受光量との幅を求めて、この幅を前記表示部で表示可能な数値の最大幅に調整することのできる倍率を求め、該倍率に基づいて前記しきい値を調整すると共に受光量を調整する、請求項2に記載の光電センサ。   A width between the maximum received light amount and the minimum received light amount is obtained, a magnification capable of adjusting the width to the maximum width of a numerical value that can be displayed on the display unit is obtained, and the threshold value is determined based on the magnification. The photoelectric sensor according to claim 2, wherein the photoelectric sensor adjusts the amount of received light. 前記最大受光量を前記表示部で表示可能な最大値に調整することのできる倍率を求め、該倍率に基づいて前記しきい値を調整すると共に受光量を調整する、請求項2に記載の光電センサ。   3. The photoelectric device according to claim 2, wherein a magnification capable of adjusting the maximum received light amount to a maximum value that can be displayed on the display unit is obtained, the threshold value is adjusted based on the magnification, and the received light amount is adjusted. Sensor. 前記しきい値が所定の上限値を超えているときに、前記受光量及び前記しきい値の表示値が調整される、請求項2〜5のいずれか一項に記載の光電センサ。   The photoelectric sensor according to claim 2, wherein when the threshold value exceeds a predetermined upper limit value, the received light amount and the display value of the threshold value are adjusted. 投光部が投射した光が形成する検出エリアをワークが通過することに伴って変化する受光データを基に受光量をしきい値と比較してワークの有無を判定すると共に、受光量及びしきい値を表示部に表示する機能を備えた光電センサにおいて、
該光電センサは、複数の前記受光データを加算した値に基づいて前記受光量を算出し、当該受光量の最大値が前記表示部の表示限界よりも大きい動作モードを有し、
前記しきい値が所定の上限値を超えているときに、該しきい値を前記表示部で表示可能な所定の表示値に調整すると共に、前記しきい値を前記所定の表示値に調整するときの倍率に基づいて前記受光量を調整して前記表示部に表示することを特徴とする光電センサ。
The received light amount is compared with a threshold value based on the received light data that changes as the work passes through the detection area formed by the light projected by the light projecting unit, and the presence or absence of the work is determined. In a photoelectric sensor having a function of displaying a threshold value on a display unit,
The photoelectric sensor calculates the received light amount based on a value obtained by adding a plurality of the received light data, and has an operation mode in which the maximum value of the received light amount is larger than the display limit of the display unit,
When the threshold value exceeds a predetermined upper limit value, the threshold value is adjusted to a predetermined display value that can be displayed on the display unit, and the threshold value is adjusted to the predetermined display value. A photoelectric sensor, wherein the received light amount is adjusted based on a magnification at the time and displayed on the display unit.
前記しきい値を最大受光量と最小受光量の間の値に設定するしきい値自動設定手段を更に有する、請求項6に記載の光電センサ。   The photoelectric sensor according to claim 6, further comprising threshold automatic setting means for setting the threshold to a value between the maximum received light amount and the minimum received light amount. 前記しきい値を平均受光量から所定の割合で小さく又は大きくした値に設定するしきい値自動設定手段を更に有する請求項6に記載の光電センサ。   The photoelectric sensor according to claim 6, further comprising threshold automatic setting means for setting the threshold to a value that is reduced or increased at a predetermined rate from the average amount of received light.
JP2005331387A 2005-11-16 2005-11-16 Photoelectric sensor Pending JP2007142627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005331387A JP2007142627A (en) 2005-11-16 2005-11-16 Photoelectric sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005331387A JP2007142627A (en) 2005-11-16 2005-11-16 Photoelectric sensor

Publications (1)

Publication Number Publication Date
JP2007142627A true JP2007142627A (en) 2007-06-07

Family

ID=38204994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005331387A Pending JP2007142627A (en) 2005-11-16 2005-11-16 Photoelectric sensor

Country Status (1)

Country Link
JP (1) JP2007142627A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152813A (en) * 2007-12-20 2009-07-09 Keyence Corp Photoelectric sensor
JP2011029940A (en) * 2009-07-24 2011-02-10 Keyence Corp Photoelectric sensor and photoelectric sensor system
JP2011033450A (en) * 2009-07-31 2011-02-17 Panasonic Electric Works Sunx Co Ltd Detection sensor
JP2013102424A (en) * 2011-10-14 2013-05-23 Omron Corp Photoelectric sensor
WO2013080725A1 (en) 2011-11-28 2013-06-06 オムロン株式会社 Sensor device
JP2015087317A (en) * 2013-10-31 2015-05-07 株式会社コスモテック Optical sensor, detection device and detection method
DE112014006728B4 (en) 2014-06-06 2018-08-30 Mitsubishi Electric Corporation Method for controlling a sensor system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152813A (en) * 2007-12-20 2009-07-09 Keyence Corp Photoelectric sensor
JP2011029940A (en) * 2009-07-24 2011-02-10 Keyence Corp Photoelectric sensor and photoelectric sensor system
US8344895B2 (en) 2009-07-24 2013-01-01 Keyence Corporation Photoelectric sensor and photoelectric sensor system
DE102010032042B4 (en) 2009-07-24 2022-02-17 Keyence Corporation Photoelectric sensor and photoelectric sensor system
JP2011033450A (en) * 2009-07-31 2011-02-17 Panasonic Electric Works Sunx Co Ltd Detection sensor
JP2013102424A (en) * 2011-10-14 2013-05-23 Omron Corp Photoelectric sensor
JP2013114839A (en) * 2011-11-28 2013-06-10 Omron Corp Sensor device
CN103620716A (en) * 2011-11-28 2014-03-05 欧姆龙株式会社 Sensor device
EP2713382A4 (en) * 2011-11-28 2015-05-06 Omron Tateisi Electronics Co Sensor device
WO2013080725A1 (en) 2011-11-28 2013-06-06 オムロン株式会社 Sensor device
JP2015087317A (en) * 2013-10-31 2015-05-07 株式会社コスモテック Optical sensor, detection device and detection method
DE112014006728B4 (en) 2014-06-06 2018-08-30 Mitsubishi Electric Corporation Method for controlling a sensor system
US10078153B2 (en) 2014-06-06 2018-09-18 Mitsubishi Electric Corporation Method of controlling sensor system

Similar Documents

Publication Publication Date Title
JP2007142627A (en) Photoelectric sensor
JP3669352B2 (en) Photoelectric sensor
JP4730898B2 (en) Photoelectric sensor
US6803556B2 (en) Photoelectric sensor and method of detecting an object to be detected using the same
EP2581766B1 (en) Photoelectric sensor
JP5067436B2 (en) Photoelectric sensor and threshold value checking method
JP4983407B2 (en) Photoelectric sensor
JP2015159385A (en) Photoelectronic sensor
JP4736497B2 (en) Lighting device
JP4428416B2 (en) Photoelectric sensor
JP2007158641A (en) Photoelectric sensor
JP2006329797A (en) Light wave range finder
TW200939628A (en) Photoelectric sensor
JP2009033558A (en) Optical space receiver and electronic device equipped with the receiver
JP2007158497A (en) Photoelectric sensor
JP5139049B2 (en) Photoelectric sensor
EP1777496A3 (en) Level detector
JP5565959B2 (en) Photoelectric switch
JP2551732B2 (en) Optoelectronic control unit and optimum gain automatic setting method thereof
JP2006238189A (en) Photoelectric switch
JP2007093464A (en) Photo-electric sensor
JP2005109704A (en) Detection sensor
JP2004333173A (en) Multi-optical axis photoelectric sensor
JP2005024314A (en) Detection sensor and substrate detector
JP2001230663A (en) Photoelectric switch