CN101349575A - Photoelectric sensor - Google Patents

Photoelectric sensor Download PDF

Info

Publication number
CN101349575A
CN101349575A CNA2008101379700A CN200810137970A CN101349575A CN 101349575 A CN101349575 A CN 101349575A CN A2008101379700 A CNA2008101379700 A CN A2008101379700A CN 200810137970 A CN200810137970 A CN 200810137970A CN 101349575 A CN101349575 A CN 101349575A
Authority
CN
China
Prior art keywords
nargin
mentioned
light
photoelectric sensor
value
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.)
Granted
Application number
CNA2008101379700A
Other languages
Chinese (zh)
Other versions
CN101349575B (en
Inventor
权藤清彦
寺村笃
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
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 filed Critical Omron Corp
Publication of CN101349575A publication Critical patent/CN101349575A/en
Application granted granted Critical
Publication of CN101349575B publication Critical patent/CN101349575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Switches Operated By Changes In Physical Conditions (AREA)
  • Electronic Switches (AREA)

Abstract

The invention provides a photoelectric sensor with higher convenience to user capable of detecting the characteristic quantities of the detected object. The function of the sensor comprises: judging whether a key input is exist (step S0); while an input operation of the key (4) is detected, holding the margin display (margin display holding) for a while (step S1); judging whether the improved key of the first operation key (4) is kept in pressed for a preset long time (step S2); calculating the target margin or expected margin according to the key input (calculating target margin) (step S5); implementing a calculating processing to the threshold relative to the light income or achieving the calculated target margin value; and setting the calculated threshold and updating the displayed target for expected margin (step S11).

Description

Photoelectric sensor
Technical field
Relating to a kind of physical quantity to the detected object thing detects, thereby detect the sensor of the characteristic quantity of detected object thing, be particularly related to the detected object thing is carried out light projector and receives its reflected light or see through light, thereby detect the photoelectric sensor of the characteristic quantity of detected object thing.
Background technology
Photoelectric sensor, is detected the light of detected object thing reflection or is seen through the light of detected object thing by light accepting part as flashlight from the light of light-projecting portion project visible light line, infrared ray etc., thereby obtains the output signal of the characteristic quantity of expression detected object thing.It seems from this point, but photoelectric sensor can detect object non-contactly and can be used in the various fields of identification colors.In addition, in recent years, the known photoelectric sensor that can utilize small luminous point to come the optical-fiber type of inspected object.
In addition, known such optoelectronic switch: to detected object thing projection light, and receive its reflected light or see through light, thereby calculate the ratio (nargin) of current light income, detect the characteristic quantity (patent documentation 1) of detected object thing with respect to threshold value.
Patent documentation 1:JP spy opens the 2005-210720 communique
But, in the structure shown in this patent documentation 1, come the shown threshold value of display part is finely tuned by button or switch, show the nargin of detected object thing based on the threshold value result of this fine setting, therefore the above-mentioned this mode mode that to be not the user directly control the nargin that goes for as the characteristic quantity result of detected object thing.
Therefore, under the situation that is set at the nargin that as a result of goes for, threshold value is finely tuned while the user can only observe threshold value.
Summary of the invention
The present invention is the invention of making in order to address the above problem, and purpose is, a kind of photoelectric sensor that improves user's convenience is provided, and it can detect the characteristic quantity of detected object thing.
The present invention relates to a kind of photoelectric sensor, be used for the characteristic quantity of detected object thing is detected, it has: test section, it detects the light income of detected object thing, detecting element, and it is in order to detect the characteristic quantity of detected object thing based on the detected light income of test section, calculate nargin, this nargin is meant the ratio of light income with respect to threshold value, display part, and its nargin of being calculated to detecting element output is carried out numeral and is shown.The shown nargin response indication of display part is imported and is changed.Nargin and detected light income that detecting element changes based on response indication input are adjusted threshold value.
Preferably, the shown nargin response indication of display part is imported and is changed with least unit.
Preferably, detecting element keeps response indication input and the value of the current nargin that calculates, and increases and decreases the value of the nargin that is kept and export display part to based on the result of indication input.
Particularly preferably, the value of the nargin that changes in order to become, detecting element carries out calculation process, calculates and the detected light income corresponding threshold of test section.
Especially, in the indication input, if the button of regulation was continued to supress more than specified time limit, then detecting element increases and decreases the nargin that is kept and exports display part to the unit of regulation, if the deficiency of time specified time limit that the button of regulation is pressed, then detecting element is that unit increases or reduces the nargin that is kept and export display part to 1.
Preferably, display part is one 7 piece of digital display, is used for that the nargin that calculates is carried out numeral and shows.
Preferably, value, light income and the threshold value of exporting nargin switched in the input of display part response regulation respectively.
In the photoelectric sensor that the present invention relates to, the shown nargin response indication of display part is imported and is changed.Nargin and detected light income that detecting element changes based on response indication input are adjusted threshold value.
Therefore, the user can direct control be presented at nargin on the display part even do not observe threshold value yet under the situation that is set at the nargin that as a result of goes for, therefore can improve user convenience.
Description of drawings
Fig. 1 is the stereoscopic figure under the upper cap open mode of photoelectric sensor of embodiment of the present invention.
Fig. 2 is the figure of the enlarged drawing of the operation of photoelectric sensor of explanation embodiment of the present invention and display part.
Fig. 3 is the schematic block diagram of the photoelectric sensor of embodiment of the present invention.
Fig. 4 is the general flow chart that schematically illustrates the performed total system program of the CPU of signal processing part 200.
Fig. 5 A, Fig. 5 B are the process flow diagrams of expression overall operation mode treatment.
Fig. 6 is the figure that open a little and close close point of explanation with respect to light income.
The figure of the distance of the detected object thing of opening a little and close close point of Fig. 7 A, Fig. 7 B explanation becoming photoelectric sensor, wherein, this photoelectric sensor receives the reflection of light light to the projection of detected object thing.
Fig. 8 is the figure that the nargin of the photoelectric sensor of explanation embodiment of the present invention shows.
Fig. 9 is the process flow diagram that the action under the situation of the 1st action button of the photoelectric sensor of having operated embodiment of the present invention is described.
Figure 10 A, Figure 10 B are that explanation show to keep (hold) value under the situation of 200P in nargin, press the figure of the nargin demonstration variation under the situation of " raisings " key or " reduction " key.
Figure 11 is a process flow diagram of having operated the action under the situation of the 2nd action button in the photoelectric sensor of explanation embodiment of the present invention.
Embodiment
With reference to accompanying drawing embodiments of the present invention are elaborated.In addition, the identical or considerable part among the figure is marked with same Reference numeral, and not repeat specification.
Fig. 1 is the stereoscopic figure under the upper cap open mode of photoelectric sensor of embodiment of the present invention.
With reference to Fig. 1, the photoelectric sensor 1 of embodiments of the present invention has the plastics system basket 13 of multiple (Multiple) type.Be inserted with light projector optical fiber 14 and optical fiber for receiving light 15 in the front portion of basket 13, and fix by operation fixed bar 2.Rear portion outgoing cable 8 from basket 13.
Illustrated cable 8 have heart yearn 18, power supply (Vcc) usefulness of ground connection (GND) usefulness heart yearn 17, detect the heart yearn 16 of output usefulness.
Basket 13 is fixed with respect to the installed surface of console panel etc. via not shown DIN guide rail.On the top of basket 13, transparent upper cap 7 can be installed with opening and closing.The upper surface of the basket 13 that exposes under the state that upper cap 7 is opened is provided with viewing area the 3, the 1st action button (raising) the 4, the 2nd action button (reduction) the 5, the 1st slide spare (teaching/operation) the 12, the 2nd slide spare (L/D) the 6, the 3rd sliding members (open-D, close-D, timer close) 11.As an example, 3 are provided with action display lamp 20, display 19 in the viewing area.
Fig. 2 is the figure of the enlarged drawing of the operation of photoelectric sensor of explanation embodiment of the present invention and display part.
With reference to Fig. 1 and Fig. 2, the structure of display 19 is 47 n segment display ns, can show 4 numeral, the Latin alphabet and their combination respectively arbitrarily.
The structure of the 1st action button 4 and the 2nd action button 5 all is the pressing button switch of moment formula (moment type), as shown in Figure 2, and the function of the 1st action button 4 performance " raising " keys, the function of the 2nd action button 5 performance " reduction " keys.
The structure of the 1st slide spare the 12, the 2nd slide spare 6 and the 3rd sliding members 11 all is a slide switch, as shown in Figure 2, the function of the 1st slide spare 12 performances " teaching/operation change-over switch ", 6 performances " function of L/D change-over switch " of the 2nd slide spare, the function of the 3rd slide switch performance " timer control its switch ".
Referring again to Fig. 1, in the inside of basket 13, though not shown, be built-in with object and detect the light-emitting component of usefulness and the photo detector that object detects usefulness.When light projector fully inserts optic fibre patchhole with optical fiber 14, light projector with the end face of optical fiber 14 with detect illuminating part with light-emitting component and fully carry out light and combine, thus, the light that sends from the light-emitting component that detects usefulness via light projector with optical fiber 14, from the not shown optical fiber head of its front end to detecting the zone projection.Equally, when optical fiber for receiving light 15 fully inserted optic fibre patchhole, the end face of optical fiber for receiving light 15 carried out light with photo detector and combines with detecting, thus, the light that the optical fiber head of never illustrated optical fiber for receiving light 15 imports in the optical fiber is guided by optical fiber for receiving light 15, thereby arrives the photo detector that detects usefulness.Above-described light-emitting component that detects usefulness and the configuration structure that detects the photo detector of usefulness, the structure that is adopted with in the past this optical-fiber type optoelectronic switch is identical.
Then, the electrical hardware configuration to the photoelectric sensor of embodiments of the present invention describes.
Fig. 3 is the schematic block diagram of the photoelectric sensor of embodiments of the present invention.
With reference to Fig. 3, this circuit is that the center constitutes with signal processing part 200, and this signal processing part 200 constitutes based on microprocessor.In signal processing part 200, except being built-in with microprocessor, also be built-in with storage part 210, this storage part 210 by the required work RAM of the ROM of storage system program and executive routine, the EEPROM that is used to store other various setting datas etc. constitutes.Store among this EEPROM, before dispatching from the factory by the data of factory settings, the various data that are set by the user after dispatching from the factory.For the structure of sort signal handling part 200, owing in various documents, put down in writing various known technologies, therefore to this detailed.
In the paper left side of Fig. 3, draw out the light accepting part 203 that describes in detail later, this light accepting part 203 comprises the light accepting part 203 of first talking about the clear light-projecting portion with light-emitting component 202 and having photo detector.Light-projecting portion 202 comprises: as detecting with the light emitting diode of light-emitting component (below, be called LED) 202a, being used for the LED drive division 202b of driving LED 202a.In addition, as an example, make LED202a penetrate red light.
On the other hand, light accepting part 203 comprises: as detect photodiode (hereinafter referred to as PD) 203a with photo detector, be used to amplify the output of PD203a enlarging section 203b, be used to switch the amplification switching part 203c that is subjected to the gain of light.
Because of the effect of LED drive division 202b makes the pulsed light that sends as the LED202a that detects with light-emitting component, be directed to optical fiber 2 via light projector and detect the zone.Detecting that the zone sees through or reflection and be imported into the light of optical fiber for receiving light 3, arrive as the PD203a that detects with photo detector via optical fiber for receiving light 3.Detect with photo detector PD203a and carry out opto-electronic conversion.
PD203a carries out opto-electronic conversion and the output signal that produces is exaggerated after the 203b of portion amplifies, and is obtained by signal processing part 200 via A/D converter (not shown).And, for the basic structure of these projection and accepted lights, owing in the various documents various known records are arranged, therefore to this detailed.In addition, in the present embodiment, light-projecting portion and light accepting part constitute test section, and this test section is that light quantity detects to the physical quantity that sees through detected object thing or reflection.In addition, amplify the function that is subjected to the gain of light among the enlarging section 203b that switching part 203c has switching light accepting part 203 described later.
Display part 204 is made of display, and this display is used to show the data that the various calculating by signal processing part 200 generate, and more specifically says, this display part 204 comprises previous display 19 and action display lamp 20 etc. with reference to Fig. 1 and Fig. 2 explanation.Display 19 has 7 n segment display ns, by numerical value, the Latin alphabet and their combination, comes numeral to show various information.
Input part 205 is used for the various information of signal processing part 200 inputs.This input part 205 comprises key input part 205a and signal input part 205b.Key input part 205a is used for importing various data by the operator by manual operation, this input part 205a with reference to Fig. 1 and Fig. 2 explanation, comprises the 1st action button the 4, the 2nd action button the 5, the 1st slide spare the 12, the 2nd slide spare 6 and the 3rd slide spare 11 as previous.
Relative therewith, signal input part 205b is used to use the heart yearn of not shown for example cable 8 to wait to import long-range input signal, and the control signal of the outside input of transmitting from heart yearn etc. via this signal input part 205b is obtained by signal processing part 200.
Efferent 206 is used for exporting the various output signals that signal processing part 200 generates to cable 8 contained heart yearn 16.This efferent 206 comprises the efferent 206a of object detecting signal output usefulness.That is, the object that generates of signal processing part 200 detecting signal that detects usefulness is transported to the heart yearn 16 in the cable 8 via efferent 206a.
Power supply unit 201 is by constituting the power supply stabilising arrangement of light-projecting portion shown in Figure 3 202, light accepting part 203, display part 204, input part 205, efferent 206 supply powers etc. respectively, via cable 8 contained heart yearn 17 and 18 pairs of these power supply units 201 power supplies.In this example, heart yearn 18 is connected to GND, and heart yearn 17 is connected to Vcc.
Then, with above-mentioned physical construction and electrically hardware configuration be prerequisite, to various functions that this photoelectric sensor possessed and be used to realize these functions and the structure of the system program carried out by signal processing part 200 describes.
Usually, in photoelectric sensor, has the multiple function of selectable execution (opening/closing).The variety of option of preparation respectively to these functions.This photoelectric sensor can be made as teaching pattern and select these functions (opening/closing) and option.Can carry out action by this photoelectric sensor is set at operational mode, this action is meant that realization opens the action of the function of setting according to determined option.
As shown in Figure 2, can still be the " RUN " side by the 1st slide spare 12 is located at " teaching " side, decide pattern is appointed as teaching pattern or operational mode.In addition, the 2nd slide spare 6 is used to set the logic polarity that detects output signal of this photoelectric sensor, it becomes so-called bright pattern (light on mode) when the 2nd slide spare 6 is set in " L " side, and it becomes dark pattern (dark on mode) when being located at " D " side.In addition, by the 3rd slide spare 11 being located at " opening-D " side or " closing-D " side or " timer is closed " side, can select the function of so-called timer control and treatment.For example, by being changed to " opening-D " side, can select so-called on-delay (on delay).In addition, by being changed to " closing-D " side, can select so-called off delay (off delay).By being changed to " timer is closed " side, can close the timer function.
Fig. 4 is the general flow chart that the total system program that the CPU of signal processing part 200 is performed represented in summary.
With reference to Fig. 4, begin to carry out this system program by energized.
In the figure, when handling beginning, at first carry out initial setting and handle (step 401).Handle in (step 401) at this initial setting, before beginning son described later is handled, carry out required various initial setting and handle.In this initial setting is handled, various storeies, display lamp are carried out initialization process, initialization process is carried out in control output, from the EEPROM of the contained storage part 210 of signal processing part 200, read required project, the line data verification of going forward side by side.
Handle (step 401) when initial setting and carry out when finishing, enter son and handle, in initial processing, at first with reference to the set condition (step 402) of the 1st slide spare 12.At this, if the 1st slide spare 12 is set in " teaching " side (step 402: teaching), then then carry out the teaching pattern initial setting and handle (step 403).Handle in (step 403) at this teaching pattern initial setting, teaching pattern is carried out processing such as initialization with measured value.
After the teaching pattern initial setting is handled (step 403) execution end,, just carry out the relevant teaching pattern of various functions and handle (step 404) as long as the 1st slide spare 12 is in (step 405: be) under the state that is set in " teaching ".Under this state, operation the 1st action button 4 and the 2nd action button 5 that the user is suitable, the various functions of can opening/closing this photoelectric sensor being prepared further, can be carried out respectively to set and handle by each function.
On the other hand, with reference to the set condition of the 1st slide spare 12, its result is when being judged to be (step 402: operation), then carry out the operational mode initial setting and handle (step 406) when being set in the " RUN " side.Handle in (step 406) at this operational mode initial setting, display lamp is carried out initialization, initialization is carried out in control output, threshold value and various operational mode are carried out initialization etc. with setting value.
When the operational mode initial setting is handled (step 406) and is finished, then, be set at the 1st slide spare 12 under the state of " RUN " side (step 408 is), carry out operational mode and handle (step 407).Handle in (step 407) in this operational mode, except realizing necessary elemental motion, realize that also the user selects the various functions of setting as photoelectric sensor.
And in this example, mainly the action to operational mode describes; For teaching pattern,, therefore omit detailed description to this point owing in various documents, put down in writing various known technologies.
Like this, signal processing part 200 performed system programs roughly are divided into following two kinds of processing: the so-called initialization process of carrying out at once after energized is that initial setting is handled (step 401); As two processing that son is handled, promptly teaching pattern is handled (step 404) and operational mode processing (step 407).
As before the above-mentioned importing operational mode, at first carry out the operational mode initial setting and handle (step 406).Handle in (step 406) at this operational mode initial setting, carry out the initial setting processing carrying out the required various signs of operational mode, counter, register class etc.Then, after the operational mode initial setting is handled (step 406) and finished,, just repeat operational mode and handle (step 407) as long as be set at the 1st slide spare 12 under the state of " RUN " side (step 408: be).
This operational mode is handled integral body and roughly is divided into common processing and Interrupt Process (interruptprocessing).
Fig. 5 A, Fig. 5 B are the process flow diagrams of expression overall operation mode treatment.
Fig. 5 A is the process flow diagram of the common processing of this operational mode processing of explanation, and Fig. 5 B is the process flow diagram of the Interrupt Process of this operational mode processing of explanation.
And, carry out Interrupt Process (step 806~808) by the timer insertion every time T sec (for example, per 100 μ s).
At first, illustrate and handle (step 801~805) usually with reference to Fig. 5 A.
When handling beginning, carry out display lamp control and treatment (step 801).In this display lamp control and treatment (step 801),, display 19 and action display lamp 20 as 7 piece of digital displays are lighted control according to specified displaying contents.Specifically, carrying out nargin described later shows.
Then, the execute key input detects and handles (step 803).Detect in the processing (step 803) in this key input, detect the primary key input, detecting under the situation of input, be set at and carry out corresponding processing every specified time limit.Then, carry out enter key alignment processing (step 804), thereby carry out and the corresponding various processing (end) of detected key input.
In addition, for the computing in the signal processing part 200 of the operation input based on the 1st action button 4 or the 2nd action button 5 described later etc., all be to detect processing (step 803) by this key input to detect the action that puts rules into practice as enter key alignment processing (step 804) then.
Then, with reference to Fig. 5 B, the Interrupt Process that Tsec at regular intervals (as an example, for example Tsec=100 μ s) is carried out describes.
When interrupting handling beginning, at first carry out projection and accepted light and handle (step 806).Handle in (step 806) at this projection and accepted light, 201b carries out pulsed drive to LED202a shown in Figure 3 via the light projector drive division, thereby generation red light, make this light import to light projector shaven head (not shown) with optical fiber 2, thereby penetrate this light with shaven head to detecting subject area from light projector by light projector.Simultaneously, will be at the light that detects the subject area reflection or see through, import in the optical fiber for receiving light 3 from the shaven head that is subjected to that is located at optical fiber for receiving light 3 front ends, and make it import to PD202b via optical fiber for receiving light 3, utilize enlarging section 203c that the signal that carries out opto-electronic conversion by PD202b and get is amplified, will amplify output then and be read into signal processing part 200.Thus, signal processing part 200 obtains the light income that comprises with the heavy characteristic of correspondence amount of the shape that detects subject area.
Then, carry out opening/closing determination processing (step 807).In this opening/closing determination processing (step 807), be that benchmark carries out binary conversion treatment respectively with predefined opening/closing point, judge thus detecting subject area to have or not object.That is, if detecting the object of subject area existence as purpose, then result of determination is for opening, and if there is no then, result of determination is for closing.
Fig. 6 is the figure that open a little and close close point of explanation with respect to light income.
As shown in Figure 6, open a little and be set at, threshold value is added the light income of Hys/2.In addition, close close point and be set at, threshold value is deducted the light income of Hys/2.Threshold value is the value that teaching pattern etc. is set.Initial value can use interior predefined values such as EEPROM.
In addition, Hys represents to carry out noise (noise) amount on the circuit characteristic of not shown circuit of opening/closing determination processing of embodiment of the present invention.In addition, the value of this Hys is set in advance among EEPROM etc.
The figure of the distance of the detected object thing of opening a little and close close point of Fig. 7 A, Fig. 7 B explanation becoming photoelectric sensor, wherein, this photoelectric sensor receives the reflection of light light to the projection of detected object thing.
With reference to Fig. 7 A, at first bright pattern (being also referred to as L/ opens) is described.
If light accepting part (optical fiber) detects the light income more than a little the light income opened of Fig. 6 explanation, then be judged as into light state, open (ON) thereby be changed to.That is, the detected object thing is arranged detecting subject area.
On the other hand,, then be judged as the shading state, close (OFF) thereby be changed to if light accepting part (optical fiber) detects less than the light income that closes close point.That is, there is not the detected object thing detecting subject area.
In Fig. 7 B, the figure that the polarity to the opening/closing of going into light state and shading state in bright pattern (L/ opens) and the dark pattern (D/ opens) describes is shown.
In addition, at this, though bright pattern (L/ opens) is illustrated, just polarity is opposite for dark pattern (D/ opens), and other points are all identical.
After carrying out opening/closing determination processing (step 807) end like this, then carry out output control and treatment (step 808), the output signal that detects that signal processing part 200 generates is transported to the heart yearn 16 that cable 8 contained object detecting signals are exported usefulness via efferent 209.The output signal that detects that exports heart yearn 16 like this to for example is transported to epigyny device of PLC or PC etc. etc.In addition, signal processing part 200 is carried out the control of lighting of action display lamp 20, lights/extinguishes based on the result of determination of opening/closing determination processing.Specifically, under the situation of bright pattern, light for going under the light state, under the shading state, extinguish at action display lamp 20.On the other hand, under the situation of dark pattern, action display lamp 20 is lighted under the shading state going under the light state to extinguish.In addition, when this output control and treatment (step 808), by selecting the function of above-mentioned the 3rd slide spare 11, the timer control function that puts rules into practice.
As mentioned above, the operational mode of embodiment of the present invention has been carried out the explanation of summary, the display process of the nargin during below to the operational mode of embodiment of the present invention describes.
Fig. 8 is the figure that the nargin of the photoelectric sensor of explanation embodiment of the present invention shows.
As shown in Figure 8, handle in operational mode under the situation of beginning, in display lamp control and treatment (step 801), on display 19, show nargin.
Nargin is represented the light income value with respect to the ratio of the threshold value that sets (ratio), and this light income is meant, handles (step 806) by projection and accepted light the detected object thing is carried out light projector, and receive its reflected light or see through light and the light income that obtains.
Specifically, handle (step 806), detect light income, on 7 n segment display ns of display 19, show the ratio of the light income of gained with respect to the threshold value that sets by the projection and accepted light of like that the detected object thing being carried out that illustrates among Fig. 5 B.
For example, as an example, the value of light income is that " 2000 ", threshold value are that calculating nargin is 2000/1000 * 100 (%)=200P under the situation of " 1000 ".At this demonstration " 200P ".
Fig. 9 is the process flow diagram that the action under the situation of the 1st action button in the photoelectric sensor of having operated embodiment of the present invention is described.
With reference to Fig. 9,, the situation of having operated as " raising " key of the 1st action button 4 is described at this.
At first, judged whether key input (step S0).This processing is equivalent to the key input and detects processing (step 803).Detect in the processing in the key input, under the situation of the input that detects the 1st action button 4, enter next procedure.
Then, temporarily keep nargin illustrated in fig. 8 to show (nargin shows and keeps) (step S1).Specifically, temporarily the nargin displayed value of current demonstration is shown that as nargin the retention storage remains in the register of storage part 210 etc., and export it to display 19.
Judge then that then " raising " key that whether continues to press as the 1st action button 4 reaches specified time limit above (step S2).As specified time limit, for example be made as 2 seconds.
For example, in step S2, press under the situation of " raising " key more than 2 seconds continuing, enter into step S4, set X=10.In addition,, enter into step S3, set X=1 pressing under 2 seconds the situation of " raising " key less than.
Then, then calculate the nargin (calculating target nargin) (step S5) of target or hope according to key input.
Specifically, the value (nargin demonstration retention) of the nargin that temporarily keeps is added X (X=1 or 10) and draw nargin as target.
Then, judge then whether the nargin (target nargin) as target is in the scope interior (step S6) of higher limit and lower limit.Specifically, in this example,, judge whether target nargin is in the scope of lower limit 0P and higher limit 999P based on the value after the addition.Under the situation in the scope that is in this lower limit 0P~higher limit 999P, keep the value of the target nargin calculated and enter next procedure.
On the other hand, under the situation in the scope that is not in target nargin, for example surpass under the situation of higher limit 999P, target nargin is made as higher limit 999P.On the other hand, under situation, target nargin is made as lower limit 0P less than 0P.
Then, then obtain light income (step S7).At this,, obtain 1024 light incomes and calculate its additive value as an example.In addition, at this, why obtaining and 1024 light incomes of addition, is because making it become big value by the processing in this calculating carries out computing again, makes it possible to nargin shown carry out ± 1P control.
Then, calculated threshold (threshold calculations) (step S8).Specifically, with addition 1024 times and light income, divided by target nargin.That is,, carry out computing with respect to the threshold value of light income in order to become the value of the target nargin that calculates.In addition, at this, the value that calculates as the result of being divided by can calculate 1024 times value of true threshold value.
Then, judge that the threshold value calculate (true threshold value 1024 times) is whether more than lower limit (step S9).
At this, whether the true threshold value of judging 1024 times is more than lower limit.
Specifically, in this example, peak response threshold value * 1024 are set at lower limit.Then, 1024 times the value and peak response threshold value * 1024 of true threshold value are compared, whether 1024 times value judging true threshold value is in peak response threshold value * more than 1024.In addition, with the peak response threshold value as, the high threshold of opening/closing really with respect to being subjected to the contained noise content of light signal.
In step S9, being judged to be 1024 times true threshold value under the situation more than the lower limit, enter into step S10, set true threshold value (step S10) divided by 1024.
Then, update displayed is as nargin (step S11) target or that wish.
On the other hand, in step S9, under the situation of the threshold value that calculates, enter step S12 less than lower limit.
In step S12, whether the gain of light that is subjected among the enlarging section 203b of judgement light accepting part is " greatly " (step S12).Then, in step S12, be subjected to the gain of light not under the situation of " greatly ", promptly being subjected to the gain of light is under the situation of " little ", will be subjected to the gain of light to be set at " greatly " (step S13).Then, obtain light income (step S7) once more, carry out threshold calculations (step S8).
For example, under the situation of the threshold value that calculates, and be under the situation of " little " being subjected to the gain of light less than lower limit, to be subjected to the gain of light to be made as " greatly ", thereby increase the value of light income, can increase value, thereby draw the value of target nargin with respect to the threshold value of light income.That is, the value of the threshold value that calculates can be set in more than the lower limit.
Therefore, judge that in step S12 being subjected to the gain of light, result to be subjected to the gain of light is under the situation of " little ", it is switched to " greatly ".
On the other hand, in step S12, the gain of light that is subjected among the enlarging section 203b of light accepting part is under the situation of " greatly ", and the threshold value that calculates is made as lower limit (step S14).Specifically, the threshold value that calculates is made as peak response threshold value * 1024.
In this case, can not be subjected to the gain of light that the value of light income is increased, therefore the threshold value that calculates is made as lower limit by switching.
Then, entering step S10, after 1024, is true threshold value (step S10) with the peak response threshold setting.
Then, at display part update displayed nargin (nargin renewal) (step S11).In addition, be set under the situation of peak response threshold value, show nargin (light income/peak response threshold value * 100%), show thereby this nargin is fixing according to light income and peak response threshold value in this true threshold value.That is no longer accept state when, setting for more than it to the operation of " raising " key.
Figure 10 A, Figure 10 B are that explanation shows that in nargin retention is under the situation of 200P, press the figure of the nargin demonstration variation under the situation of " raisings " key or " reductions " key.
Figure 10 A represents, for example shows that in nargin retention is under the situation of 200P, and the nargin of pressing under the situation of " raisings " key shows variation.
Specifically, under the situation of pressing 2 seconds (2sec) (short pressing) of less than, the value of nargin is the least unit of increase with "+1P ", begins to increase from 200P, becomes 201P.On the other hand, pressing under 2 seconds situations more than (2sec), the value of nargin increases "+10P " from 200P, becomes 210P.
Then, describe at the situation of pressing " reduction " key.
Figure 11 has operated the process flow diagram that the action under the situation of the 2nd action button describes in the photoelectric sensor at embodiment of the present invention.
With reference to Figure 11,, the situation of having operated as " reduction " key of the 2nd action button 5 is described at this.
At first, judged whether key input (step S20).This processing is equivalent to the key input and detects processing (step 803).Detect in the processing in the key input, under the situation of the input that detects the 2nd action button 5, enter next procedure.
Then, temporarily keep nargin illustrated in fig. 8 to show (nargin shows and keeps) (step S21).Specifically, temporarily the nargin displayed value storage of current demonstration is remained in the register etc. of storage part 210 and show retention, and export it to display 19 as nargin.
Then, judge that then " reduction " key of whether pressing as the 2nd action button 5 reaches specified time limit above (step S22).As specified time limit, it for example is 2 seconds.
For example, in step S22, reach under the situation more than 2 seconds continuing to press " reduction " key, enter into step S24, set X=10.In addition,, enter into step S23, set X=1 pressing under 2 seconds the situation of " reduction " key less than.
Then, then according to the key input, calculate as nargin target or that wish (calculating target nargin) (step S25).Specifically, the value (nargin demonstration retention) of the nargin that temporarily keeps is deducted X (X=1 or the 10) value of gained afterwards, as the nargin of target.
Then, then judge as the nargin (target nargin) of target whether in the scope of higher limit and lower limit (step S26).Specifically, in this example, judge whether in the scope of lower limit 0P, the higher limit 999P of target nargin scope based on the result who subtracted each other.Under the situation in the scope that is in this lower limit 0P~higher limit 999P, keep the value of this target nargin that calculates and enter next procedure.
On the other hand, under the situation in the scope that is not in target nargin, for example, will be made as higher limit 999P as the nargin of target surpassing under the situation of higher limit 999P.On the other hand, under situation, will be set at lower limit 0P as the nargin of target less than 0P.
Then, then obtain light income (step S27).At this,, obtain 1024 light incomes and calculate the value of their additions as an example.In addition, at this, why obtaining and 1024 light incomes of addition, is because making it become big value by the processing in this calculating carries out computing again, makes it possible to nargin shown carry out ± 1P control.
Then, calculated threshold (threshold calculations) (step S28).Specifically, with addition 1024 times and light income, divided by target nargin.That is,, carry out computing with respect to the threshold value of light income in order to become the value of the target nargin that calculates.In addition, at this, the value that calculates as the result of being divided by can calculate 1024 times value of true threshold value.
Then, judge that the threshold value calculate (true threshold value 1024 times) is whether below higher limit (step S29).
At this, whether the true threshold value of judging 1024 times is below higher limit.
In step S29, being judged to be the threshold value that calculates under the situation below the higher limit, enter into step S30, set true threshold value (step S30).Specifically, in this example, set 3000 * 1024 as higher limit.Then, to 1024 times true threshold values with compare as 3000 * 1024 of higher limit, whether the true threshold value of judging 1024 times below 3000 * 1024.
Being judged to be 1024 times true threshold value under the situation below 3000 * 1024, it is set true threshold value divided by 1024.
That is, in this example, the higher limit of the threshold value that calculates is set at 3000 * 1024.Set like this for, be under the value of the scope of the 0-4095 situation about detecting at light income, in the relation of the maximal value of light income and true threshold value, guarantee the nargin more than the 120P.
Then, update displayed is as nargin (step S31) target or that wish.
On the other hand, in step S29, under the big situation of the threshold ratio higher limit that calculates, enter into step S32.
In step S32, whether the gain of light that is subjected among the enlarging section 203b of judgement light accepting part is " little " (step S32).Then, in step S32, be subjected to the gain of light not under the situation of " little ", promptly being subjected to the gain of light is under the situation of " greatly ", will be subjected to the gain of light to be set at " little " (step S33).Then, obtain light income (step S27) once more, carry out threshold calculations (step S28).
For example, threshold value greater than the situation of higher limit under and to be subjected to the gain of light be under the situation of " greatly ", be made as " little " by being subjected to the gain of light, reduce the value of light income, can reduce value, thereby obtain the value of target nargin with respect to the threshold value of light income.That is, the value of the threshold value that calculates can be set in below the higher limit.
Therefore, judging to be subjected to the gain of light in step S32, is under the situation of " greatly " being subjected to the gain of light, it is switched to " little ".
On the other hand, in step S32, the gain of light that is subjected in the 203b of the enlarging section of light accepting part is under the situation of " little ", and the threshold value that calculates is made as higher limit (step S34).Specifically, the threshold value that calculates being made as higher limit is 3000 * 1024.
In this case, can not be subjected to the gain of light that the value of light income is reduced, therefore the threshold value that calculates is made as higher limit by switching.
Then, enter into step S30, thereby set true threshold value (step S30) divided by 1024.
Then, at display part update displayed nargin (nargin renewal) (step S31).In addition,, be set in true threshold value under 3000 the situation, show nargin (light income/higher limit * 100%), show thereby this nargin is fixing according to light income and higher limit as an example.That is no longer accept the state of " reduction " key operation when, being set at below it.
Figure 10 B represents, for example shows that in nargin retention is under the situation of 200P, and the nargin of pressing under the situation of " reductions " key shows variation.
Specifically, under the situation of pressing 2 seconds (2sec) (short pressing) of less than, the value of nargin changes " 1P " from 200P and becomes 199P, wherein should " 1P " least unit for changing.On the other hand, pressing under 2 seconds situations more than (2sec), the value of nargin changes " 10P " from 200P and becomes 190P.
Mode in the past is to adjust threshold value in the threshold value that observation post shows, thereby adjust shown nargin according to the variation of threshold value; But the nargin by embodiment of the present invention is adjusted mode, the inoperation threshold value, the user shows by pressing " raising " key or " reduction " key direct control nargin, adjust threshold value so that nargin becomes target nargin with this, therefore, it seems from the viewpoint that the characteristic quantity to the detected object thing detects, can easily judge nargin, thereby can improve user convenience.
In addition, in this example, adopting the mode that 17 n segment display n 19 shows nargin is set on photoelectric sensor, need not to be provided with in addition the display of display threshold, aspect simple and easy and aspect the cost, also is favourable photoelectric sensor therefore.
In addition, as mentioned above, the situation that shows nargin with 7 n segment display ns 19 has been described, but for example the user also can be switched the value that shows light income and threshold value etc. by the operation of regulation.For example, can also realize that perhaps, also can use the 1st and the 2nd action button 4,5 to control, for example situation about all pressing at two buttons is switched by the switching push button that newly is provided for switching this demonstration.
In the present embodiment, the photoelectric sensor of reflection-type has been described, promptly the reflected light that the detected object thing that detects subject area is reflected receives, thereby the photoelectric sensor that the characteristic quantity of detected object thing is detected, but be not limited in the photoelectric sensor of reflection-type, for the photoelectric sensor of infiltration type, promptly be suitable for too by the photoelectric sensor that light comes the characteristic quantity to the detected object thing to detect that sees through that receive to see through the detected object thing.That is, in this case, not reflected light by the light of optical fiber for receiving light leaded light but see through light that except that this some difference, other embodiments are all identical.
In addition, in above-mentioned, thereby for example understand by detecting the photoelectric sensor that light income detects the characteristic quantity of detected object thing, thereby but detect the sensor that other physical mediums detect the characteristic quantity of detected object things for not detecting light income and be suitable for too.For example, be equally applicable to inferior sensor: proximity transducer, it detects the position of detected object thing based on along with the magnetic action that changes with the distance of detected object thing etc.; Ultrasonic sensor, it sends ultrasound wave from sensor head, and receives the ultrasound wave of this ultrasonic reflections, by calculating from sending this ultrasound wave to the time that receives reflection supersonic wave, detects the position of detected object thing.
Should think that this disclosed embodiment is an illustration all, the present invention is not limited to some extent.Scope of the present invention is not the embodiment of above-mentioned explanation, but the scope that the back technical scheme provides comprises the equal whole changes of scope that provide with technical scheme.

Claims (7)

1. a photoelectric sensor is used for the characteristic quantity of detected object thing is detected, and it is characterized in that having:
Test section, it detects the light income of above-mentioned detected object thing,
Detecting element, it calculates nargin in order to detect the characteristic quantity of above-mentioned detected object thing based on the detected light income of above-mentioned test section, and this nargin is meant the ratio of light income with respect to threshold value,
Display part, its nargin of being calculated to above-mentioned detecting element output is carried out numeral and is shown; And
The shown nargin response indication of above-mentioned display part is imported and is changed,
Nargin and detected above-mentioned light income that above-mentioned detecting element changes based on response indication input are adjusted threshold value.
2. photoelectric sensor as claimed in claim 1 is characterized in that, the shown nargin of above-mentioned display part responds above-mentioned indication input and changes with least unit.
3. photoelectric sensor as claimed in claim 1, it is characterized in that, above-mentioned detecting element keeps the above-mentioned indication input of response and the value of the current nargin that calculates, and increases and decreases the value of the above-mentioned nargin that is kept and export above-mentioned display part to based on the result of above-mentioned indication input.
4. photoelectric sensor as claimed in claim 3 is characterized in that, the value of the nargin that changes in order to become, and above-mentioned detecting element carries out calculation process, calculates and the detected light income corresponding threshold of above-mentioned test section.
5. photoelectric sensor as claimed in claim 3, it is characterized in that, in above-mentioned indication input, if the button of regulation was continued to supress more than specified time limit, then above-mentioned detecting element increases and decreases the above-mentioned nargin that is kept and exports above-mentioned display part to the unit of regulation, if the deficiency of time specified time limit that the button of regulation is pressed, then above-mentioned detecting element is that unit increases or reduces the above-mentioned nargin that is kept and export above-mentioned display part to 1.
6. photoelectric sensor as claimed in claim 1 is characterized in that, above-mentioned display part is one 7 piece of digital display, is used for that the nargin that calculates is carried out numeral and shows.
7. photoelectric sensor as claimed in claim 1 is characterized in that, value, light income and the threshold value of exporting above-mentioned nargin switched in the input of above-mentioned display part response regulation respectively.
CN2008101379700A 2007-07-18 2008-07-17 Photoelectric sensor Active CN101349575B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2007186955A JP4428416B2 (en) 2007-07-18 2007-07-18 Photoelectric sensor
JP2007186955 2007-07-18
JP2007-186955 2007-07-18

Publications (2)

Publication Number Publication Date
CN101349575A true CN101349575A (en) 2009-01-21
CN101349575B CN101349575B (en) 2010-12-29

Family

ID=40268444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101379700A Active CN101349575B (en) 2007-07-18 2008-07-17 Photoelectric sensor

Country Status (2)

Country Link
JP (1) JP4428416B2 (en)
CN (1) CN101349575B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193111A (en) * 2010-03-05 2011-09-21 欧姆龙株式会社 Photoelectric sensor and method for aiding checking of threshold
CN104913794A (en) * 2014-03-15 2015-09-16 欧姆龙株式会社 Photoelectric sensor component and manufacture method thereof
CN108345042A (en) * 2017-01-24 2018-07-31 欧姆龙株式会社 The threshold setting method of sensor and sensor
CN109560801A (en) * 2017-09-27 2019-04-02 株式会社基恩士 Fibre optical sensor, light optical fiber and pervasion component

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5565959B2 (en) * 2010-11-19 2014-08-06 株式会社キーエンス Photoelectric switch
JP6000826B2 (en) * 2012-11-27 2016-10-05 株式会社キーエンス Photoelectric sensor
JP6774920B2 (en) * 2017-09-27 2020-10-28 株式会社キーエンス Photoelectric switch and sensor unit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193111A (en) * 2010-03-05 2011-09-21 欧姆龙株式会社 Photoelectric sensor and method for aiding checking of threshold
CN102193111B (en) * 2010-03-05 2014-06-25 欧姆龙株式会社 Photoelectric sensor and method for aiding checking of threshold
CN104913794A (en) * 2014-03-15 2015-09-16 欧姆龙株式会社 Photoelectric sensor component and manufacture method thereof
CN108345042A (en) * 2017-01-24 2018-07-31 欧姆龙株式会社 The threshold setting method of sensor and sensor
US10429510B2 (en) 2017-01-24 2019-10-01 Omron Corporation Sensor and method for setting threshold of sensor
CN109560801A (en) * 2017-09-27 2019-04-02 株式会社基恩士 Fibre optical sensor, light optical fiber and pervasion component
CN109560801B (en) * 2017-09-27 2023-08-01 株式会社基恩士 Optical fiber sensor, light receiving optical fiber, and diffusion member

Also Published As

Publication number Publication date
JP4428416B2 (en) 2010-03-10
CN101349575B (en) 2010-12-29
JP2009027330A (en) 2009-02-05

Similar Documents

Publication Publication Date Title
CN101349575B (en) Photoelectric sensor
CN200990120Y (en) Family electric appliances
CN101325902B (en) Domestic appliance, in particular fitted domestic appliance with a controllable operating display
US8947652B2 (en) Photoelectric sensor
JP2014212947A (en) Game machine
CN104981199A (en) Light source device
JP4983407B2 (en) Photoelectric sensor
CN102193111A (en) Photoelectric sensor and method for aiding checking of threshold
JPH08264253A (en) Electric wire arrangement instruction inspecting device for connector
JP2008289782A (en) Game machine
US20040085220A1 (en) Photoelectric switch
US20190097629A1 (en) Sensor Unit
CA3015920A1 (en) Operational storage means with at least one drawer
JP2008175742A (en) Photoelectric sensor
CN1688756B (en) Sensor system for a ring spinning machine
JP5762463B2 (en) Game machine
JP5702429B2 (en) Game machine
EP2420176A2 (en) A dishwasher
CN102099145A (en) Laser processing apparatus and processing method employed therein
JP5034511B2 (en) Photoelectric sensor
US9000355B2 (en) Optical sensor
CN105228499A (en) Endoscope and endoscopic system
JP6236034B2 (en) Game machine
US10975514B2 (en) Washing machine and method for displaying a detergent fill level
JP6236033B2 (en) Game machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant