WO2020090291A1 - センサ装置及び検出方法 - Google Patents

センサ装置及び検出方法 Download PDF

Info

Publication number
WO2020090291A1
WO2020090291A1 PCT/JP2019/037443 JP2019037443W WO2020090291A1 WO 2020090291 A1 WO2020090291 A1 WO 2020090291A1 JP 2019037443 W JP2019037443 W JP 2019037443W WO 2020090291 A1 WO2020090291 A1 WO 2020090291A1
Authority
WO
WIPO (PCT)
Prior art keywords
integrated
distance
signal
waveform data
value
Prior art date
Application number
PCT/JP2019/037443
Other languages
English (en)
French (fr)
Inventor
頌一 大中
清司 今井
雄介 飯田
良介 都築
Original Assignee
オムロン株式会社
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 オムロン株式会社 filed Critical オムロン株式会社
Priority to US17/279,078 priority Critical patent/US20210389458A1/en
Priority to CN201980058246.5A priority patent/CN112654885B/zh
Priority to EP19880063.3A priority patent/EP3875986A4/en
Publication of WO2020090291A1 publication Critical patent/WO2020090291A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/483Details of pulse systems
    • G01S7/486Receivers
    • G01S7/4865Time delay measurement, e.g. time-of-flight measurement, time of arrival measurement or determining the exact position of a peak
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • G01S17/10Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/483Details of pulse systems
    • G01S7/484Transmitters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/483Details of pulse systems
    • G01S7/486Receivers
    • G01S7/487Extracting wanted echo signals, e.g. pulse detection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/483Details of pulse systems
    • G01S7/486Receivers
    • G01S7/487Extracting wanted echo signals, e.g. pulse detection
    • G01S7/4873Extracting wanted echo signals, e.g. pulse detection by deriving and controlling a threshold value
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers
    • G01V8/12Detecting, e.g. by using light barriers using one transmitter and one receiver

Definitions

  • the present invention relates to a sensor device and a detection method.
  • a photoelectric sensor a light emitting element that repeatedly generates detection light, a light receiving element that receives reflected light of detection light, a binarization processing unit that binarizes a light reception signal, and a time change of a binarization light reception signal Based on the integrated waveform data, a waveform detection unit that detects the waveform data indicating the waveform, a waveform integration unit that matches the light emission timings of the light emitting elements to integrate two or more waveform data, and generates integrated waveform data.
  • a work discriminating unit for discriminating the presence or absence see Patent Document 1. This photoelectric sensor can detect a work by sampling the reflected light at high speed while suppressing the circuit scale.
  • the photoelectric sensor of Patent Document 1 obtains the distance to the object by measuring the time from the transmission timing of the transmission signal to the reception of the reflected signal, and determines whether or not the object is at a desired set distance. Making a decision.
  • an on-point threshold value that determines that there is a target object when the target object is not detected and an off-point threshold value that determines that the target object is not detected when the target object is detected
  • a hysteresis width that represents the difference between is set. For example, for a set distance of 1000 mm, the on-point threshold value is set to 1000 mm, the off-point threshold value is set to 990 mm, and the hysteresis width is set to 10 mm.
  • the reflectance of the object when the reflectance of the object is low, the measured distance varies widely, so it is necessary to set a wide hysteresis width.
  • the reflectance of the object when the reflectance of the object is high, the variation in the measured distance is small. Therefore, when the hysteresis width for an object having a low reflectance is used, the measured width is set to be wide, and thus the measured distance is less likely to exceed the on-point threshold value or the off-point threshold value. Therefore, the detection accuracy of the object depends on the reflectance of the object.
  • an object of the present invention is to provide a sensor device and a detection method that can detect an object with high accuracy regardless of the reflectance of the object.
  • a sensor device includes a transmitter that transmits a transmission signal toward an object, a receiver that receives a reflected signal of the transmission signal and generates a binarized signal, and a binarized signal.
  • An integrating unit that generates waveform data showing a time change and integrates the plurality of waveform data to generate integrated waveform data; and an integrated waveform data, a first integrated threshold value, and a second integrated threshold value. Presence or absence of an object based on a distance calculation unit that calculates a first distance value and a second distance value from the intersection point and a distance value calculated from the first distance value and the second distance value and a predetermined distance threshold value. And a determination unit that determines.
  • the first distance value and the second distance value are calculated from the respective intersections of the integrated waveform data and the first integrated threshold value and the second integrated threshold value, and the first distance value and the second distance value are calculated.
  • the presence or absence of the target object is determined based on the distance value calculated from the value and a predetermined distance threshold value.
  • the slope of the integrated waveform data is steep, and therefore even if the difference between the first integrated threshold value and the second integrated threshold value is constant, The width between the two distance values is relatively narrow.
  • the slope of the integrated waveform data is gentle, so that even if the difference between the first integrated threshold value and the second integrated threshold value is constant, the first distance value and the second integrated value
  • the width between the distance value and the distance value becomes relatively wide. Therefore, by calculating the first distance value and the second distance value from the respective intersections of the integrated waveform data and the first integrated threshold value and the second integrated threshold value, the first distance value and the first distance value are calculated according to the reflectance.
  • the width between the second distance value can be varied. Therefore, by determining the presence or absence of the object based on the distance value calculated from the first distance value and the second distance value and the predetermined distance threshold, the object can be detected regardless of the reflectance of the object. It can be detected accurately.
  • the determination unit determines the hysteresis value based on the absolute value of the difference between the first distance value and the second distance value, the distance value, and the predetermined distance threshold when the immediately previous determination result is that there is an object. Based on this, the presence or absence of the object is determined.
  • the immediately preceding determination result is that there is an object
  • the distance value, and the predetermined distance threshold value based on the absolute value of the difference between the first distance value and the second distance value, the distance value, and the predetermined distance threshold value.
  • a margin can be set for the determination by the hysteresis value. It can be provided, and it is possible to prevent a sensitive reaction to a change in the distance value calculated from the first distance value and the second distance value in the determination after it is determined that the object exists.
  • the distance calculation unit performs subpixel processing by using the data immediately before and the data immediately after the intersection of the first integration threshold value and the second integration threshold value in the integration waveform data.
  • the first distance value and the second distance value may be calculated.
  • the sub-pixel processing is performed using the data immediately before and the data immediately after the intersection of the first integrated threshold value and the second integrated threshold value in the integrated waveform data, whereby the first distance is obtained.
  • the value and the second distance value are calculated.
  • the integrating unit samples the binarized signal at a predetermined cycle to generate the first waveform data, and integrates the first waveform data for a plurality of transmissions of the transmission signal to perform the first integration.
  • a first integration unit that generates waveform data; a timing determination unit that determines a reference timing based on the position of a feature point that appears in the first integration waveform data due to the presence of an object and that generates a stop signal based on the reference timing.
  • a second integrating section including a delay circuit section that generates second integrated waveform data by integrating, and the distance calculating section integrates the second integrated waveform data, the first integrated threshold value, and the second integrated value. From each of the intersection between have values may calculate the first distance value and the second distance value.
  • the reference timing based on the position of the feature point appearing in the first integrated waveform data is determined by the existence of the object, the stop signal is generated based on the reference timing, and each delay element responds to the stop signal.
  • the second waveform data is generated by taking in the binarized signal as a result, and the second integrated waveform data is generated by integrating the second waveform data a plurality of times in a predetermined cycle.
  • the second integrating unit may include a plurality of delay circuit units connected in parallel, and may integrate the second integrated waveform data generated by each delay circuit unit.
  • the second integrated waveform data generated by each delay circuit unit is integrated. This makes it possible to increase the number of times of sampling at the same time, as compared with the case where the delay circuit unit has a single column. Therefore, the sensor device can support high-speed output.
  • the first integrating unit may have a resolution on the order of nanoseconds
  • the delay circuit unit may have a resolution on the order of picoseconds
  • the first integrating unit has a resolution of nanosecond order
  • the delay circuit unit has a resolution of picosecond order. This can improve the accuracy of measuring the distance to the periphery of the object.
  • a detection method is a detection method for detecting an object, which includes a transmitting step of transmitting an emission signal toward the object and a binarized signal by receiving a reflected signal of the emission signal. And a step of generating waveform data showing a time change of the binarized signal, integrating the plurality of waveform data to generate integrated waveform data, integrated waveform data, and a first integrated threshold value.
  • a distance calculation step of calculating a first distance value and a second distance value from respective intersections of the value and the second integrated threshold, and a distance value calculated from the first distance value and the second distance value and a predetermined distance A determination step of determining the presence or absence of the target object based on the threshold value.
  • the first distance value and the second distance value are calculated from the respective intersections of the integrated waveform data and the first integrated threshold value and the second integrated threshold value, and the first distance value and the second distance value are calculated.
  • the presence or absence of the target object is determined based on the distance value calculated from the value and a predetermined distance threshold value.
  • the slope of the integrated waveform data is steep, and therefore even if the difference between the first integrated threshold value and the second integrated threshold value is constant, The width between the two distance values is relatively narrow.
  • the slope of the integrated waveform data is gentle, so that even if the difference between the first integrated threshold value and the second integrated threshold value is constant, the first distance value and the second integrated value
  • the width between the distance value and the distance value becomes relatively wide. Therefore, by calculating the first distance value and the second distance value from the respective intersections of the integrated waveform data and the first integrated threshold value and the second integrated threshold value, the first distance value and the first distance value are calculated according to the reflectance.
  • the width between the second distance value can be varied. Therefore, by determining the presence or absence of the object based on the distance value calculated from the first distance value and the second distance value and the predetermined distance threshold, the object can be detected regardless of the reflectance of the object. It can be detected accurately.
  • the determination step determines the hysteresis value based on the absolute value of the difference between the first distance value and the second distance value, the distance value, and the predetermined distance threshold value when the immediately previous determination result is that there is an object. Based on the determination, the presence or absence of the object is included.
  • the immediately preceding determination result is that there is an object
  • the distance value based on the hysteresis value based on the absolute value of the difference between the first distance value and the second distance value, the distance value, and the predetermined distance threshold value
  • the presence or absence of the object is determined.
  • a margin can be set for the determination corresponding to the hysteresis value.
  • the distance calculating step performs sub-pixel processing by using the data immediately before and the data immediately after the respective intersections of the first integrated threshold value and the second integrated threshold value in the integrated waveform data. , And calculating a first distance value and a second distance value.
  • the sub-pixel processing is performed using the data immediately before and the data immediately after the intersection of the first integrated threshold value and the second integrated threshold value in the integrated waveform data, whereby the first distance is obtained.
  • the value and the second distance value are calculated.
  • the integrating step samples the binarized signal at a predetermined cycle to generate first waveform data, and integrates the first waveform data for a plurality of transmissions of the transmission signal to generate a first waveform data.
  • each delay element captures the binarized signal according to a stop signal to generate second waveform data, and the second waveform A second integrating step of generating second integrated waveform data by integrating the data a plurality of times in a predetermined cycle, wherein the distance calculating step includes the second integrating wave.
  • Data and may comprise from each intersection of the first integration threshold value and a second cumulative threshold to calculate a first distance value and the second distance value.
  • the reference timing based on the position of the feature point appearing in the first integrated waveform data is determined by the existence of the object, the stop signal is generated based on the reference timing, and each delay element responds to the stop signal.
  • the second waveform data is generated by taking in the binarized signal as a result, and the second integrated waveform data is generated by integrating the second waveform data a plurality of times in a predetermined cycle.
  • the second integrating step may include integrating the second integrated waveform data generated by each delay circuit unit in each of the plurality of delay circuit units connected in parallel.
  • the second integrated waveform data generated by each delay circuit unit is integrated. This makes it possible to increase the number of times of sampling at the same time, as compared with the case where the delay circuit unit has a single column. Therefore, the sensor device can support high-speed output.
  • the first integration step may have a resolution of nanosecond order
  • the delay circuit unit may have a resolution of picosecond order
  • the first integrating unit has a resolution of nanosecond order
  • the delay circuit unit has a resolution of picosecond order. This can improve the accuracy of measuring the distance to the periphery of the object.
  • the present invention it is possible to provide a sensor device and a detection method capable of accurately detecting an object regardless of the reflectance of the object.
  • FIG. 1 is a block diagram illustrating the configuration of a sensor device according to an embodiment.
  • FIG. 2 is a schematic view illustrating the detection principle of the sensor device shown in FIG.
  • FIG. 3 is a block diagram illustrating the configuration of the TDC delay line measurement unit shown in FIG. 1 and its surroundings.
  • FIG. 4 is a block diagram illustrating the configuration of the counter measurement unit illustrated in FIG.
  • FIG. 5 is a timing diagram illustrating the operation of the counter measurement unit shown in FIG. 1 and its peripherals.
  • FIG. 6 is a timing diagram illustrating the rough measurement operation of the counter measurement unit shown in FIG.
  • FIG. 7 is a timing diagram illustrating an outline of the operation of the TDC delay line measurement unit shown in FIG. 1 and its peripherals.
  • FIG. 1 is a block diagram illustrating the configuration of a sensor device according to an embodiment.
  • FIG. 2 is a schematic view illustrating the detection principle of the sensor device shown in FIG.
  • FIG. 3 is a block diagram illustrating the configuration of the TDC delay
  • FIG. 8 is a waveform diagram illustrating the processing result of the filter processing unit shown in FIG. 1 and its surroundings when the reflectance of the object is relatively low.
  • FIG. 9 is a waveform diagram illustrating the processing result of the filter processing unit shown in FIG. 1 and its surroundings when the reflectance of the object is relatively high.
  • FIG. 10 is a waveform diagram illustrating the processing result of the stage number calculation unit shown in FIG. 1 and its surroundings when the reflectance of the object is relatively high.
  • FIG. 11 is a partially enlarged view illustrating the vicinity of the intersection of the integrated signal and the high threshold value shown in FIG.
  • FIG. 12 is a flowchart illustrating a schematic operation of the sensor device according to the embodiment.
  • FIG. 13 is a flowchart illustrating the determination process shown in FIG.
  • FIG. 1 is a block diagram illustrating a configuration of a sensor device 100 according to an embodiment.
  • FIG. 2 is a schematic view illustrating the detection principle of the sensor device 100 shown in FIG.
  • FIG. 3 is a block diagram illustrating the configuration of the TDC delay line measurement unit 33 shown in FIG. 1 and its peripherals.
  • FIG. 4 is a block diagram illustrating the configuration of the counter measurement unit 32 shown in FIG.
  • the sensor device 100 includes a light emitting unit 10, a light receiving unit 20, an FPGA (Field-Programmable Gate Array) 30, a CLK 45, a control unit 50, a display unit 60, and an operation unit 70. , Is provided.
  • the sensor device 100 is, for example, a photoelectric sensor and is for detecting an object.
  • the sensor device 100 emits detection light toward the target TA.
  • the detection light reflected by the object TA returns to the sensor device 100 and is received.
  • the sensor device 100 can accurately measure the distance to the target TA based on the time from light projection to light reception by performing signal processing on the received detection light in the sensor device 100.
  • the target TA at a predetermined distance (position) from the sensor device 100 can be detected.
  • a mode in which the target TA flowing on the factory line is detected from above can be considered.
  • electromagnetic waves, sound waves, or the like may be output from the sensor device 100 toward the target TA.
  • the light emitting unit 10 is configured to emit detection light toward the target TA.
  • the light emitting unit 10 includes a light projecting element 11 and a light projecting circuit 15.
  • the light projecting element 11 repeatedly emits the detection light toward the target TA shown in FIG. An example in which the detection light is emitted periodically will be described below, but the detection light may be emitted randomly.
  • the light projecting element 11 is configured to include, for example, an LD (Laser Diode), and the detection light is, for example, pulsed light.
  • LD Laser Diode
  • the pulse control signal P1 and the power control signal P2 of the light projecting element 11 are input from the FPGA 30 to the light projecting circuit 15, and the light projecting circuit 15 receives the light projecting element 11 based on the pulse control signal P1 and the power control signal P2. It controls the detection light emitted from.
  • the light receiving unit 20 is configured to receive the reflected light of the detected light and generate the binarized signal RT.
  • the light receiving section 20 includes a light receiving element 21 and a light receiving circuit 25.
  • the light receiving element 21 receives the detection light reflected from the target TA shown in FIG. 2 and outputs a light reception signal.
  • the light receiving element 21 includes, for example, an APD (Avalanche Photo Diode).
  • the light receiving circuit 25 binarizes the light receiving amount of the light receiving signal input from the light receiving element 21 by comparing it with a predetermined threshold value and generates a binarized signal RT.
  • the light receiving circuit 25 outputs the generated binarized signal RT.
  • the FPGA 30 includes a light emitting oscillator 31, a counter measuring unit 32, a TDC (Time-to-Digital Converter) delay line measuring unit 33, a waveform integrating unit 34, a slope calculating unit 35, a stage number calculating unit 37, and a distance. It includes a conversion unit 38, a register 39, a light projecting element temperature control unit 40, an interface unit 41, a clock generation unit 46, and a PLL (Phase Locked Loop) 47.
  • the FPGA 30 can be replaced with an integrated circuit such as an ASIC (Application Specific Integrated Circuit).
  • CLK45 outputs an oscillation signal of 20 MHz to the clock generation unit 46, for example.
  • the oscillation signal is input to the clock generation unit 46, and the clock generation unit 46 generates and outputs the reference clock based on the transmission signal.
  • a reference clock is input to the PLL 47, and the PLL 47 generates and outputs a clock signal Ck that is phase-locked with a desired frequency based on the reference clock.
  • the clock signal Ck is supplied to each component of the FPGA 30.
  • An output signal is input to the light emitting oscillator 31 from the light emitting element temperature control unit 40.
  • the light projection oscillator 31 generates a pulse control signal P1 and a power control signal P2 based on the output signal, and outputs the pulse control signal P1 and the power control signal P2 to the light projection circuit 15 described above.
  • the light projecting element temperature control unit 40 is for controlling the light projecting power of the detection light emitted from the light emitting unit 10 based on the temperature information of the light projecting element 11. Further, the light projecting oscillator 31 outputs a start signal Str to start counting in the counter measuring unit 32 to the counter measuring unit 32 in synchronization with the pulse control signal P1.
  • the binarized signal RT and the start signal St are input to the counter measurement unit 32.
  • the counter measuring unit 32 generates a stop signal Stp corresponding to the characteristic point of the binarized signal RT, and outputs the generated stop signal Stp. Details of the counter measurement unit 32 will be described later.
  • the binarized signal RT and the stop signal Stp are input to the TDC delay line measurement unit 33.
  • the TDC delay line measuring section 33 generates delay line output signals D1 to D4 and outputs the generated delay line output signals D1 to D4 to the waveform integrating section 34.
  • the TDC delay line measuring unit 33 is different from TDC that measures the time of a stop pulse that arrives after a delay from a start pulse, that is, a single hit type TDC that uses a delay line.
  • the waveform integration unit 34 integrates the delay line output signals D1 to D4 input from the TDC delay line measurement unit 33 multiple times to generate an integrated signal Dt.
  • the waveform integration unit 34 outputs the generated integration signal Dt to the slope calculation unit 35 and the stage number calculation unit 37.
  • the slope calculating unit 35 outputs the calculated slope to the register 39 via the interface unit 41.
  • the stage number calculating unit 37 calculates the number of stages of the delay circuits included in the TDC delay line measuring unit 33 based on the integrated signal Dt input from the waveform integrating unit 34. The delay circuit of the TDC delay line measuring unit 33 will be described later.
  • the stage number calculation unit 37 outputs the calculated stage number of the delay circuit to the distance conversion unit 38.
  • the distance conversion unit 38 converts the number of stages of the delay circuit input from the stage number calculation unit 37 into a distance from the sensor device 100, and outputs the converted distance.
  • the inclination of the inclination calculator 35 and the converted distance of the distance converter 38 are input to the register 39, and the register 39 stores these.
  • the interface unit 41 outputs the inclination of the inclination calculation unit 35 stored in the register 39 and the output result of the distance conversion unit 38 to the control unit 50 as a measurement signal T1.
  • the control unit 50 is configured to control the display unit 60 and the operation unit 70.
  • the control unit 50 obtains the amount of received light based on the measurement signal T1 input from the interface unit 41, for example, from the slope of the integrated signal Dt, and outputs the obtained amount of received light to the display unit 60.
  • the control unit 50 also generates setting data T2 corresponding to the information input by the user (user) operating the operation unit 70, and outputs the generated setting data T2 to the interface unit 41.
  • the control unit 50 includes a microprocessor such as a CPU (Central Processing Unit), a memory such as a ROM (Read Only Memory), a RAM (Random Access Memory), and a buffer storage device such as a buffer.
  • the control unit 50 also includes a determination unit 51 as its functional configuration. Based on the output result of the distance conversion unit 38 included in the measurement signal T1 input from the interface unit 41, the determination unit 51 determines whether or not the target TA shown in FIG. 2 exists at a predetermined distance, that is, the target. The presence or absence of the object TA is determined. The control unit 50 outputs the determination result to the display unit 60.
  • the display unit 60 is for outputting information.
  • the display unit 60 displays the amount of received light input from the control unit 50.
  • the display unit 60 also displays the presence or absence of the target TA based on the determination result input from the control unit 50.
  • the display unit 60 is configured to include, for example, a lamp, an indicator light such as an LED (Light Emitting Diode), and a display such as an organic EL display (OLED: Organic Electro-Luminescence Display).
  • the operation unit 70 is for inputting information.
  • the operation unit 70 outputs a signal corresponding to a user (user) operation to the control unit 50.
  • the operation unit 70 is configured to include, for example, a plurality of buttons.
  • the counter measuring unit 32 starts counting the binarized signal RT in response to the start signal St.
  • the counting of the binarized signal RT is performed based on the clock signal Ck input from the PLL 47.
  • the counter measurement unit 32 generates stop signals Stp1, Stp2, Stp3, Stp4 (hereinafter also collectively referred to as “stop signal Stp”) corresponding to the characteristic points of the binarized signal RT, and measures the TDC delay line. It is output to the unit 33.
  • the TDC delay line measuring unit 33 includes a first TDC delay line 301, a second TDC delay line 302, a third TDC delay line 303, a fourth TDC delay line 304, and a buffer 315.
  • FIG. 3 shows an example in which the TDC delay line measuring unit 33 is composed of four TDC delay lines, the present invention is not limited to this.
  • the TDC delay line measuring unit 33 may increase or decrease the TDC delay line according to the scale of the logical capacity.
  • the first TDC delay line 301 includes delay elements 6-1, 6-2, 6-3, ..., 6-n (n is a positive integer) (hereinafter, also collectively referred to as “delay element 6”). , 7-n (hereinafter, also collectively referred to as “flip-flop circuit 7”).
  • the delay element 6 is configured to include, for example, an inverter, that is, a NOT gate.
  • the flip-flop circuit 7 is configured to include, for example, a D flip-flop, and the D flip-flop may be replaced with a latch circuit or the like.
  • the delay element 6 uses the carry by the carry for high-speed operation of LE (Logic Element) to generate a delay.
  • the delay element 6 having a resolution on the order of picoseconds is realized in the FPGA 30.
  • the delay element 6 in the FPGA 30 can also be realized by utilizing the delay between the clock input and the Q input of the D flip-flop. In this case, a stable delay time on the order of nanoseconds can be obtained.
  • the delay element 6-1 delays the input binarized signal RT for a predetermined time, and then outputs it to the delay element 6-2 and the flip-flop circuit 7-1.
  • the flip-flop circuit 7-1 outputs the input from the delay element 6-1 at the timing when the stop signal Stp1 is input.
  • the delay element 6-2 delays the input from the delay element 6-1 for a predetermined time and then inputs it to the delay element 6-3 and the flip-flop circuit 7-2.
  • the flip-flop circuit 7-2 outputs the input from the delay element 6-2 at the timing when the stop signal Stp1 is input. The same applies to the delay elements 6-3 and the flip-flop circuits 7-3 and the flip-flop circuits 7-3 and the flip-flop circuits.
  • the first TDC delay line 301 includes delay signals Q1, Q2, Q3, ..., Qn (hereinafter collectively referred to as “delayed signals”, which are synchronously output from the flip-flop circuits 7-1, 7-2, 7-3, ).
  • the delay line output signal D1j becomes the waveform data of the binarized signal RT having a time length corresponding to the total of the delay times of the delay elements 6-1, 6-2, 6-3, ..., 6-n.
  • the buffer 315 outputs a delay line output signal D1 obtained by integrating the delay line output signal D1j m times. The same applies to the delay line output signals D2 to D4 of the TDC delay lines 302 to 304, and the description thereof will be omitted.
  • each of the TDC delay lines 301 to 304 is driven by a clock signal Ck input from the PLL 47.
  • the TDC delay line measurement unit 33 may further include a TDC delay line for temperature correction.
  • the TDC delay line for temperature correction outputs a signal indicating the number of delay stages according to temperature to, for example, the distance conversion unit 38 described above, and the distance conversion unit 38 uses the signal to output from the stage number calculation unit 37.
  • the temperature of the input delay circuit is corrected.
  • the distance conversion unit 38 converts the number of stages of the temperature-corrected delay circuit into a distance. This makes it possible to correct the fluctuation (variation) of the measurement result due to the ambient temperature.
  • the counter measurement unit 32 includes a binarized signal acquisition unit 321, a signal storage unit 322, a stop signal determination unit 323, and a stop timing management unit 324.
  • the binarized signal capturing unit 321 captures the binarized signal RT based on the timing of the start signal Str.
  • the signal storage unit 322 stores the captured binarized signal RT.
  • the signal accumulation unit 322 accumulates the measurement results for the measurement cycle n times in the rough measurement based on the clock described later.
  • the stop signal determination unit 323 outputs the sampling signal Smp based on the clock signal to the signal storage unit 322 that stores the binarized signal RT.
  • the stop signal determination unit 323 recognizes the rising point of the integrated value of the binarized signal RT that first intersects the determination threshold as a measurement point, and outputs the stop signal StpN at this point.
  • the measurement point is not limited to the rising time point, and may be the falling time point or another characteristic point.
  • the stop timing management unit 324 receives the stop signal StpN, and based on the timing of the start signal Str, the stop signals Stp1, Stp2, and Stp3 to the TDC delay lines 301 to 304 every predetermined number of clock cycles, for example, every 128 times. , Stp4 are simultaneously output.
  • the stop timing management unit 324 is configured to include a register for correcting a time difference due to a difference in wiring length that outputs the stop signals Stp1, Stp2, Stp3, Stp4. By using the register, fluctuation (variation) of the time measurement value due to the wiring length can be suppressed.
  • FIG. 5 is a timing diagram illustrating the operation of the counter measurement unit 32 shown in FIG. 1 and its peripherals.
  • the sensor device 100 roughly measures the time elapsed from the start of light emission over the entire measurement range of the sensor device 100 by a counter method using a clock signal.
  • the rough measurement is performed with a resolution of nanosecond order.
  • the periphery of the measurement point estimated by rough measurement is finely measured by the TDC delay line method. Specifically, by outputting a stop signal for fine measurement around the measurement point searched for by rough measurement, the time around the target TA can be measured with high accuracy.
  • the fine measurement is performed with a resolution on the order of picoseconds.
  • the light projecting element 11 first emits a light projecting pulse PP1 having a pulse width Pt.
  • the fixed period Mt after emitting the light projection pulse PP1 is the measurement section M1 of the light projection pulse PP1.
  • the counter measurement unit 32 samples the binarized information of the binarized signal RT with the sampling signal Smp based on the clock signal during the measurement section M1. Since the binarized information is sampled based on the clock signal, it is associated with the time information.
  • the binarized signal RT is, for example, a signal from the light receiving element 21 input by a LVDS (Low Voltage Differential Signaling) method.
  • a partial waveform RTp of the binarized signal RT shows a reflected wave corresponding to the light projection pulse PP1.
  • the counter integration signal Cn is obtained by measuring the binarization information of the binarization signal RT with the sampling signal Smp until a predetermined number of integrations (n times) and integrating the binarization information for n times for each clock. is there.
  • the counter measuring unit 32 recognizes the rising point of the counter integration signal Cn that first intersects the determination threshold Th as a measurement point, and outputs a stop signal at this point.
  • the recognition of this measurement point is an example, and other characteristic points such as the falling time may be recognized instead of the rising time.
  • a new waveform is searched from an old waveform in time series to find a characteristic point of the binarized signal RT.
  • the TDC delay line measuring unit 33 finely measures the time immediately before the stop signal based on the above-mentioned stop signal obtained by the rough measurement.
  • the TDC delay lines 301, 302, 303, 304 receive the stop signals Stp1, Stp2, Stp3, Stp4 and perform fine measurement around the measurement points.
  • the fine measurement stop timing around the measurement point searched by the rough measurement the time to the periphery of the target TA can be measured with high accuracy. As a result, it is possible to improve the measurement accuracy of the distance to the periphery of the target TA without increasing the circuit scale, and it is possible to expand the range of the detectable distance.
  • the old waveform is searched from the new waveform temporally.
  • the measurement point can be searched for at a point where the signal level is as high as possible, and the influence of noise such as external light can be suppressed as much as possible.
  • the sensor device 100 can support high-speed output.
  • the first measurement it is possible to measure the distance to the target TA using the results of rough measurement and fine measurement by the user (user) operation. Thereby, the output response speed of the sensor device 100 can be increased.
  • fine measurement can be executed based on the result of the previous rough measurement. Further, when the amount of light is insufficient in rough measurement, it is possible not to make a measurement error but to make a measurement error only when a fine measurement error occurs.
  • the amplitude reference value of the integrated waveform for determining the light amount shortage in rough measurement or fine measurement can be determined based on the amplitude of the integrated waveform set by the user's operation.
  • FIG. 6 is a timing diagram illustrating the rough measurement operation of the counter measurement unit 32 shown in FIG.
  • the binarized signal capturing unit 321 captures the binarized signal RT based on the timing of the start signal Str.
  • the binarized signal RT corresponds to the waveform shown in FIG.
  • the binarized signal RT is binarized, and the binarized signals RT1, RT2, ..., RT128 (hereinafter collectively referred to as “binarized signal RT”) are synchronized with the timing of the start signal Str.
  • the signals are sequentially fetched by the binarized signal fetching unit 321.
  • the counter integration signal Cn represents the binarized signal RT accumulated in the signal accumulating unit 322, and corresponds to the waveform shown in FIG.
  • the stop signal determination unit 323 outputs the sampling signal Smp based on the clock signal to the signal storage unit 322 that stores the counter integrated signal Cn.
  • the stop signal determination unit 323 recognizes the rising point of the counter integration signal Cn that first intersects the determination threshold Th as the measurement point, and outputs the stop signal Stp at this point.
  • the determination threshold Th is variably set according to the measurement cycle of the binarized signal RT n times, 128 times in the example shown in FIG.
  • the determination threshold Th is preferably set to 1/2 of the measurement cycle n times of the binarized signal RT, but may not be 1/2.
  • the determination threshold Th is less than 1/2 of the nth measurement cycle of the binarized signal RT. Largely set. As a result, the characteristic points of the binarized signal RT appearing in the counter integrated signal Cn can be detected with higher sensitivity.
  • FIG. 7 is a timing diagram illustrating an outline of the operation of the TDC delay line measurement unit 33 shown in FIG. 1 and its peripherals. Note that FIG. 7 shows the operation in the case where the counter measurement number in the counter measurement unit 32 and the integration number in the TDC delay line measurement unit 33 are the same (128 in FIG. 7, but can be changed). Further, in order to shorten the response time in the counter measuring unit 32 or the TDC delay line measuring unit 33, it is possible to shorten either one of the times for measurement. If the counter measurement count and the integration count are not the same, a waiting time occurs in the counter measurement or the delay line measurement, so that the measurement efficiency may decrease.
  • the start signal Str corresponding to the clock signal Ck supplied from the PLL 47 to each component of the FPGA 30 has a cycle Tcyc, for example.
  • the binarized signal RT is fetched 128 times and integrated based on the timing of the start signal Str.
  • the stop signal determination unit 323 recognizes the rising time of the integrated value of the binarized signal RT that first intersects the determination threshold Th every 128 clock cycles as a measurement point, and at this time, the stop signals Stp1 and Stp2. , Stp3, Stp4 are simultaneously output to the TDC delay lines 301, 302, 303, 304, respectively.
  • the delay line output signal D1j is output in the first TDC delay line 301 in synchronization with the stop signal Stp1.
  • the buffer 315 outputs the delay line output signal D1j obtained by integrating the delay line output signal D1j 128 times in synchronization with the next stop signal Stp2, and inputs the delay line output signal D2j from the second TDC delay line 302. To be done.
  • the buffer 315 outputs the delay line output signal D2j obtained by integrating the delay line output signal D2j 128 times in synchronization with the next stop signal Stp3, and inputs the delay line output signal D3j from the third TDC delay line 303. To be done.
  • the delay line output signals D3 and D4 output from the TDC delay lines 303 and 304 are similar, the description thereof will be omitted.
  • the delay line output signals D1, D2, D3, D4 are integrated by the waveform integration unit 34, and passed through the stage number calculation unit 37 and the distance conversion unit 38 to the periphery of the target TA. The distance is measured.
  • FIG. 8 is a waveform diagram illustrating the processing result of the waveform integrating unit 34 shown in FIG. 1 and its surroundings when the reflectance of the target TA is relatively low.
  • FIG. 9 is a waveform diagram illustrating the processing result of the waveform integrating unit 34 shown in FIG. 1 and its surroundings when the reflectance of the target TA is relatively high.
  • the integrated signal Dt output by the waveform integration unit 34 is an integrated signal of all delay line output signals D1 to D4.
  • the integrated signal Dt may be filtered, that is, smoothed by a moving average.
  • the stage number calculation unit calculates the stage number of the delay element from the intersection of the integrated signal Dt and the integrated threshold value ITh.
  • the distance conversion unit converts the number of stages of the delay element into the distance to the object.
  • the determination unit compares the converted distances CD1 and CD2 with the off-point distance Doff and the on-point distance Don to determine the presence or absence of the object.
  • the converted distances CD1 and CD2 are larger than the on-point distance Don in a state where the target object is not detected, it is determined that the target object is present (detected). Further, for example, when the converted distances CD1 and CD2 are smaller than the off-point distance Doff while the target TA is detected, it is determined that there is no target (non-detection).
  • the width (difference) between the off-point distance Doff and the on-point distance Don is preset as the hysteresis width Whys.
  • the hysteresis width Whys is set in accordance with the target object TA having a low reflectance
  • the converted width CD2 exceeds the off-point distance Doff or the on-point distance Don because the hysteresis width Whys is wide as shown in FIG. It gets harder. Therefore, the detection accuracy of the target TA depends on the reflectance of the target TA.
  • FIG. 10 is a waveform diagram exemplifying the processing result in the stage number calculation unit 37 shown in FIG. 1 and its surroundings when the reflectance of the target TA is relatively high.
  • FIG. 11 is a partially enlarged view illustrating the vicinity of the intersection of the integrated signal Dt and the high threshold value HTh shown in FIG.
  • the High threshold value HTh and the Low threshold value LTh are set with respect to the amplitude of the integrated signal Dt, that is, the integrated number.
  • a width (difference) between the high threshold value HTh and the low threshold value LTh a predetermined value is set as the integrated number width Wint.
  • the stage number calculator 37 calculates the stage number of the delay element from each intersection of the integrated signal Dt and the High threshold value HTh and the Low threshold value LTh.
  • the distance conversion unit 38 converts the number of stages of each delay element into a Near side distance value CDn and a Far side distance value CDf.
  • the determination unit 51 determines the presence or absence of the target TA based on the distance value calculated from the converted Near side distance value CDn and Far side distance value CDf and a predetermined distance threshold value.
  • the slope of the integrated signal Dt is steep, and therefore the difference between the High threshold value HTh and the Low threshold value LTh (the integrated number width Wint ) Is constant, the width between the near-side distance value CDn and the far-side distance value CDf becomes relatively narrow.
  • the high threshold value HTh and the low threshold value LTh are set with respect to the integrated number of the integrated signal Dt, and the delay is made from the respective intersections of the integrated signal Dt and the high threshold value HTh and the low threshold value LTh.
  • the width of can be changed. Therefore, by determining the presence or absence of the target TA based on the distance value calculated from the converted Near-side distance value CDn and Far-side distance value CDf and the predetermined distance threshold, the reflectance of the target TA can be determined. Therefore, the target TA can be detected with high accuracy.
  • the High threshold value HTh and the Low threshold value LTh are set with respect to the integrated number of the integrated signal Dt, and from the respective intersections of the integrated signal Dt and the High threshold value HTh and the Low threshold value LTh.
  • An example in which the number of stages of the delay elements is calculated and the number of stages of each delay element is converted into the Near side distance value CDn and the Far side distance value CDf has been shown, but the present invention is not limited to this.
  • the integration signal Dt for example, the counter integration signal Cn may be used, and the High threshold value and the Low threshold value may be set with respect to the integration number of the counter integration signal Cn.
  • the sampling number of the sampling signal Smp is calculated from each intersection of the counter integration signal Cn and the High threshold value and the Low threshold value, and the sampling number of each sampling signal Smp is calculated as the Near side distance value and the Far side distance value. Convert to and.
  • each intersection of the integrated signal Dt and the High threshold value HTh and the Low threshold value LTh is obtained by sub-pixel processing. That is, as shown in FIG. 11, the integrated signal Dt is a collection of discrete points (data) Pk ⁇ 2, Pk ⁇ 1, Pk, Pk + 1 from a micro viewpoint.
  • the stage number calculation unit 37 outputs data immediately before the intersection with the high threshold HTh, in the example of FIG. 11, data immediately after the intersection between the point Pk ⁇ 1 and the high threshold HTh, and FIG.
  • sub-pixel processing is performed using the point Pk and the intersection point of the integrated signal Dt and the high threshold value HTh is obtained.
  • the stage number calculation unit 37 calculates the stage number of the delay element from the obtained intersection. Similarly, the stage number calculating unit 37 also obtains the intersection point of the integrated signal Dt and the low threshold value LTh by the subpixel processing, and calculates the stage number of the delay element from the obtained intersection point. Thereby, it is possible to calculate the distance with a resolution of one stage or more of the delay element. Therefore, the measurement accuracy of the distance to the periphery of the target TA can be improved.
  • FIG. 12 is a flowchart illustrating a schematic operation of the sensor device 100 according to the embodiment.
  • FIG. 13 is a flowchart illustrating the determination process shown in FIG. In the following, a case will be described in which the counter measurement by the counter measurement unit 32 and the number of times of integration by the TDC delay line measurement unit 33 are the same.
  • the sensor device 100 executes the detection process S200 shown in FIG. 12, for example, when the sensor device 100 is powered on and activated.
  • the counter measurement by the counter measurement unit 32 and the number of times of integration by the TDC delay line measurement unit 33 are the same.
  • the light projecting element 11 emits pulsed light toward the target TA (S201).
  • the counter measurement unit 32 samples the binarized information of the binarized signal RT (S202).
  • the counter measurement unit 32 determines whether the sampling has been integrated N times (S203). If the result of determination in step S203 is that the sampling has not been integrated N times, the process returns to step S202, and the counter measurement unit 32 repeats sampling of the binarized signal RT until sampling is integrated N times.
  • the counter measurement unit 32 detects a cross point at which the counter integrated signal Cn intersects the determination threshold Th (S204). Next, the counter measurement unit 32 recognizes the measurement point based on the cross point, and outputs a stop signal at this point (S205). Next, the TDC delay line measurement unit 33 samples the binarized information of the binarized signal RT (S206). Next, the TDC delay line measurement unit 33 determines whether or not the sampling has been integrated M times (S207). As a result of the determination in step S207, when the sampling has not been integrated M times, the process returns to step S206, and the TDC delay line measurement unit 33 repeats sampling of the binarized signal RT until the sampling is integrated M times.
  • the stage number calculation unit 37 calculates the number of stages of each delay element from each intersection of the integrated signal Dt and the High threshold value HTh and the Low threshold value LTh (S208).
  • the distance conversion unit 38 converts the number of stages of each delay element into the Near side distance value CDn and the Far side distance value CDf (S209).
  • the determination unit 51 executes determination processing S220 described below. After the end of the determination process S220, the sensor device 100 ends the detection process S200.
  • the determination unit 51 inputs the Near side distance value CDn and the Far side distance value input from the distance conversion unit 38 via the interface unit 41 of the FPGA 30.
  • the distance value CDa and the hysteresis value Vhys are calculated based on CDf (S221).
  • the distance value CDa is an average value of the Near side distance value CDn and the Far side distance value CDf, and is represented by the following equation (2).
  • Distance value CDa (Near side distance value CDn + Far side distance value CDf) / 2 (2)
  • the distance value CDa is the average value of the Near side distance value CDn and the Far side distance value CDf has been shown, but the present invention is not limited to this.
  • the distance value CDa may be a value calculated from the Near side distance value CDn and the Far side distance value CDf, and may be other than the average value.
  • the hysteresis value Vhys is represented by the following equation (3) using the magnification adjustment value Vm and the offset adjustment value Vo stored in advance in the memory of the control unit 50 or the like.
  • Hysteresis value Vhys ⁇ (Far side distance value CDf ⁇ Near side distance value CDn) ⁇ Vm ⁇ + Vo (3)
  • magnification adjustment value Vm and the offset adjustment value Vo are not limited to the case of using the values stored in advance.
  • the magnification adjustment value Vm and the offset adjustment value Vo may be changeable by the user (user) operating the operation unit 70.
  • the determination unit 51 sets the value input by the user (user) operating the operation unit 70 as the distance threshold (S222).
  • the determination unit 51 determines whether or not the current output is off (S223).
  • the output being off means that there is no target TA, and the output being on means that there is a target.
  • the current output is a value set as a result of the immediately preceding determination process S220, that is, ON or OFF, except when the determination process S220 is first executed. In preparation for the case where the determination process S220 is first executed, the initial value of the output is set to OFF.
  • the determination unit 51 compares the distance value CDa calculated in step S221 with the distance threshold value set in step S222, and the distance value CDa is the distance. It is determined whether it is less than or equal to the threshold value (S224). When the distance value CDa is equal to or less than the distance threshold value as a result of the determination in step S224, the determination unit 51 turns on the output (S225). On the other hand, if the result of determination in step S224 is that distance value CDa is not less than or equal to the distance threshold value, that is, Far distance value CDa is greater than the distance threshold value, determination unit 51 turns off the output (S226).
  • step S223 If the result of determination in step S223 is that the current output is not OFF, that is, it is ON, it is considered that there is a target object (target object was detected) as a result of the immediately preceding determination processing S220. Therefore, the determination unit 51 compares the distance value CDa with the sum (total) of the distance threshold value and the hysteresis value Vhys, and determines whether the distance value CDa is equal to or more than the sum (total) of the distance threshold value and the hysteresis value Vhys. It is determined whether or not (S227).
  • the hysteresis value Vhys based on the absolute value of the difference between the Near side distance value CDn and the Far side distance value CDf, and the Near side distance value CDn and the Far side distance value CDf
  • the distance value CDa and the sum of the predetermined threshold distance value and the hysteresis value Vhys are calculated.
  • a width (margin) can be given to the determination by the hysteresis value Vhys, and is calculated from the Near side distance value CDn and the Far side distance value CDf in the determination after it is determined that there is an object. It is possible to prevent sensitive reaction to changes in the distance value CDa.
  • step S227 If the result of determination in step S227 is that the distance value CDa is equal to or greater than the sum of the distance threshold value and the hysteresis value Vhys, the determination unit 51 turns off the output (S228). On the other hand, as a result of the determination in step S227, if the distance value CDa is not greater than or equal to the sum of the distance threshold value and the hysteresis value Vhys, that is, if the distance value CDa is less than the sum of the distance threshold value and the hysteresis value Vhys, the determination unit 51 turns on the output (S229).
  • step S225 After step S225, step S227, step S228, or step S229, the determination unit 51 ends the determination processing S220.
  • FIG. 13 shows an example in which the determination unit 51 calculates the distance value CDa and the hysteresis value Vhys in step S221, but the present invention is not limited to this.
  • the distance conversion unit 38 of the FPGA 30 may calculate the distance value CDa and the hysteresis value Vhys and input them to the determination unit 51 via the interface unit 41.
  • step 224 and step 227 whether or not the same case is included may be changeable by setting.
  • the measurement medium of the sensor device 100 may be, for example, an electromagnetic wave or a sound wave.
  • electromagnetic waves or sound waves are used as the measurement medium, not only the distance to the target TA but also the change in the distance to the target can be measured.
  • the present invention is not limited to this.
  • the sensor device may be configured to perform only one of rough measurement and fine measurement.
  • the Near side distance value CDn and the Far side distance value CDf are calculated from the respective intersections of the integrated signal Dt and the High threshold value HTh and the Low threshold value LTh. Is calculated, and the presence or absence of the target TA is determined based on the distance value CDa calculated from the Near side distance value CDn and the Far side distance value CDf and a predetermined distance threshold value.
  • the distance value CDa calculated from the Near side distance value CDn and the Far side distance value CDf and a predetermined distance threshold value.
  • the High threshold value HTh and the Low threshold value LTh are set with respect to the integrated number of the integrated signal Dt, and the delay element is set from the respective intersections of the integrated signal Dt and the High threshold value HTh and the Low threshold value LTh.
  • the reflectance of the target TA is determined. It is possible to detect the target TA with high accuracy regardless of the above.
  • a detection method for detecting an object comprising: A transmission step of transmitting a transmission signal toward the target (TA), A receiving step of receiving a reflected signal of an outgoing signal and generating a binarized signal (RT); An integrating step of generating waveform data showing a time change of the binarized signal (RT) and integrating a plurality of the waveform data to generate integrated waveform data; A distance calculation step of calculating a Near side distance value (CDn) and a Far side distance value (CDf) from the respective intersections of the integrated waveform data and the High threshold value (HTh) and the Low threshold value (LTh), A determination step of determining the presence or absence of an object (TA) based on a distance value (CDa) calculated from the Near side distance value (CDn) and the Far side distance value (CDf) and a predetermined distance threshold value; including, Detection method.
  • Reference numeral 6 ... Delay element, 7 ... Flip-flop circuit, 10 ... Light emitting portion, 11 ... Light emitting element, 15 ... Light emitting circuit, 20 ... Light receiving portion, 21 ... Light receiving element, 25 ... Light receiving circuit, 30 ... FPGA, 31 ... Optical oscillator, 32 ... Counter measuring unit, 33 ... TDC delay line measuring unit, 34 ... Waveform integrating unit, 35 ... Received light amount calculating unit, 36 ... Filter processing unit, 37 ... Stage number calculating unit, 38 ... Distance converting unit, 39 ... Register, 40 ... Projector temperature control unit, 41 ... Interface unit, 45 ... CLK, 46 ... Clock generation unit, 47 ... PLL, 50 ... Control unit, 51 ...
  • Judgment unit 60 ... Display unit, 70 ... Operation unit, 100 ... Sensor device, 315 ... Buffer, 321, ... Binary signal acquisition unit, 322 ... Signal storage unit, 323 ... Stop signal determination unit, 324 ... Stop timing management unit, CDa ... Distance value, CDf ... F r side distance value, CDn ... Near side distance value, Ck ... Clock signal, Cn ... Counter integration signal, D1, D2, D3, D4 ... Delay line output signal, D1j, D2j, D3j, D4j ... Delay line output signal, DL ... delay line measurement, Doff ... off point distance, Don ... on point distance, DS ... delay signal group, Dt ... integrated signal, Ft ...
  • filter output signal HTh ... High threshold value, LTh ... Low threshold value, M1 ... Measurement section, Mt ... fixed period, PP1 ... Projected pulse, Pt ... Pulse width, RT ... Binary signal, RTp ... Partial waveform, S200 ... Detection processing, S220 ... Judgment processing, Smp ... Sampling signal, St ... Start signal , Stop, Stp1, Stp2, Stp3, Stp4, StpN ... Stop signal, Str ... Start signal, T1 ... Measurement signal, T ... setting data, TA ... object, Tcyc ... period, Vhys ... hysteresis value, whys ... hysteresis width, Wint ... cumulative number width.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Optical Radar Systems And Details Thereof (AREA)
  • Measurement Of Optical Distance (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Image Analysis (AREA)

Abstract

対象物の反射率によらずに対象物を精度良く検出することのできるセンサ装置及び検出方法を提供する。センサ装置は、対象物に向けて発信信号を発信する発光部と、発信信号の反射信号を受信して2値化信号を生成する受光部と、2値化信号の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成するTDCディレイライン計測部及び波形積算部と、積算波形データとHighしきい値及びLowしきい値とのそれぞれの交点からNear側距離値及びFar側距離値を算出する段数算出部及び距離換算部と、Near側距離値及びFar側距離値から算出される距離値と所定の距離しきい値とに基づいて、対象物の有無を判定する判定部と、を備える。

Description

センサ装置及び検出方法
 本発明は、センサ装置及び検出方法に関する。
 従来、光電センサとして、検出光を繰り返し生成する発光素子と、検出光の反射光を受光する受光素子と、受光信号を二値化する二値化処理部と、二値化受光信号の時間変化を示す波形データを検出する波形検出部と、発光素子の発光タイミングを一致させて2以上の波形データを積算し、積算波形データを生成する波形積算部と、積算波形データに基づいて、ワークの有無を判別するワーク判別部とを備えるものが知られている(特許文献1参照)。この光電センサは、回路規模を抑制しつつ、反射光を高速でサンプリングし、ワークを検出することができる。
特開2015-75453号公報
 特許文献1の光電センサは、発信信号の発信のタイミングから反射信号を受信するまでの時間を計測することで、対象物までの距離を求め、対象物が所望の設定距離にあるか否かを判定している。
 設定距離に対し、対象物を検出していない状態から対象物ありと判定するオン点しきい値と、対象物を検出している状態から対象物を検出なしと判定するオフ点しきい値との差を表すヒステリシス幅が設定されることがある。例えば、設定距離1000mmに対し、オン点しきい値が1000mm、オフ点しきい値が990mm、ヒステリシス幅が10mmに、それぞれ設定される。
 受信信号を二値化し、二値化信号を複数回分積算した積算信号に基づいて、対象物までの距離を求める場合、積算信号に対して積算しきい値を設定し、積算信号が当該積算しきい値を超えたときの時間から距離を計測していた。
 しかしながら、対象物の反射率が低い場合、計測される距離のばらつきが大きい為、ヒステリシス幅を広く設定する必要がある。一方、対象物の反射率が高い場合、計測される距離のばらつきは小さい。よって、反射率の低い対象物のためのヒステリシス幅を用いると、ヒステリシス幅が広く設定されているため、計測された距離がオン点しきい値又はオフ点しきい値を越えにくくなる。このため、対象物の検出精度は対象物の反射率に依存していた。
 そこで、本発明は、対象物の反射率によらずに対象物を精度良く検出することのできるセンサ装置及び検出方法を提供することを目的とする。
 本発明の一態様に係るセンサ装置は、対象物に向けて発信信号を発信する発信部と、発信信号の反射信号を受信して2値化信号を生成する受信部と、2値化信号の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成する積算部と、積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出する距離算出部と、第1距離値及び第2距離値から算出される距離値と所定の距離しきい値とに基づいて、対象物の有無を判定する判定部と、を備える。
 この態様によれば、積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値が算出され、第1距離値及び第2距離値から算出される距離値と所定の距離しきい値とに基づいて、対象物の有無が判定される。ここで、対象物が高反射率の場合、積算波形データの傾きは急なので、第1積算しきい値と第2積算しきい値との差が一定であっても、第1距離値と第2距離値との間の幅は相対的に狭くなる。一方、対象物が低反射率の場合、積算波形データの傾きは緩やかなので、第1積算しきい値と第2積算しきい値との差が一定であっても、第1距離値と第2距離値との間の幅は相対的に広くなる。よって、積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出することにより、反射率に応じて第1距離値と第2距離値との間の幅を変化させることができる。従って、第1距離値及び第2距離値から算出される距離値と所定の距離しきい値とに基づいて対象物の有無を判定することにより、対象物の反射率によらずに対象物を精度良く検出することができる。
 前述した態様において、判定部は、直前の判定結果が対象物有りのとき、第1距離値及び第2距離値の差の絶対値に基づくヒステリシス値と距離値と所定の距離しきい値とに基づいて、対象物の有無を判定する。
 この態様によれば、直前の判定結果が対象物有りのとき、第1距離値及び第2距離値の差の絶対値に基づくヒステリシス値と距離値と所定の距離しきい値とに基づいて、対象物の有無が判定される。これにより、例えば、第1距離値及び第2距離から算出される距離値と、所定の距離しきい値及びヒステリシス値の和とを比較することで、ヒステリシス値分だけ判定に幅(マージン)を持たせることができ、対象物有りと判定された後の判定において、第1距離値及び第2距離値から算出される距離値の変化に敏感に反応することを防ぐことができる。
 前述した態様において、距離算出部は、積算波形データにおいて第1積算しきい値及び第2積算しきい値とのそれぞれの交点の直前のデータ及び直後のデータを用いてサブピクセル処理を行うことによって、第1距離値及び第2距離値を算出してもよい。
 この態様によれば、積算波形データにおいて第1積算しきい値及び第2積算しきい値とのそれぞれの交点の直前のデータ及び直後のデータを用いてサブピクセル処理を行うことによって、第1距離値及び第2距離値が算出される。これにより、例えば遅延素子の1段分以上の分解能で距離に算出することが可能となる。従って、対象物周辺までの距離の計測精度を向上させることができる。
 前述した態様において、積算部は、2値化信号を所定の周期でサンプリングして第1波形性データを生成し、発信信号の複数回の発信について第1波形性データを積算して第1積算波形データを生成する第1積算部と、対象物の存在によって第1積算波形データに現れる特徴点の位置に基づく基準タイミングを決定し、該基準タイミングに基づいてストップ信号を生成するタイミング決定部と、それぞれ直列に接続される複数の遅延素子を含み、各遅延素子がストップ信号に応じて2値化信号を取り込むことで第2波形データを生成し、該第2波形データを所定周期で複数回積算することで第2積算波形データを生成する遅延回路部を含む第2積算部と、を備え、距離算出部は、第2積算波形データと第1積算しきい値及び前記第2積算しきい値とのそれぞれの交点から第1距離値及び前記第2距離値を算出してもよい。
 この態様によれば、対象物の存在によって第1積算波形データに現れる特徴点の位置に基づく基準タイミングが決定され、該基準タイミングに基づいてストップ信号が生成され、各遅延素子がストップ信号に応じて2値化信号を取り込むことで第2波形データが生成され、該第2波形データを所定周期で複数回積算することで第2積算波形データが生成される。このように、対象物の存在によって現れる特徴点に基づく計測ポイント周辺で信号を生成することにより、対象物周辺までの時間を高精度に計測することができる。これにより、回路規模を大きくせずに対象物周辺までの距離の計測精度を向上させることが可能となるとともに、検出可能距離のレンジを拡大させることが可能となる。
 前述した態様において、第2積算部は、それぞれ並列に接続された複数の遅延回路部を含み、各遅延回路部が生成する第2積算波形データを積算してもよい。
 この態様によれば、各遅延回路部が生成する第2積算波形データを積算する。これにより、遅延回路部が単列の場合と比較して、同じ時間でのサンプリング回数を増やすことができる。従って、センサ装置は高速出力に対応することができる。
 前述した態様において、第1積算部は、ナノ秒オーダーの分解能を有し、遅延回路部は、ピコ秒オーダーの分解能を有してもよい。
 この態様によれば、第1積算部は、ナノ秒オーダーの分解能を有し、遅延回路部は、ピコ秒オーダーの分解能を有する。これにより、対象物周辺までの距離の計測精度を向上させることができる。
 本発明の他の態様に係る検出方法は、対象物を検出する検出方法であって、対象物に向けて発信信号を発信する発信ステップと、発信信号の反射信号を受信して2値化信号を生成する受信ステップと、2値化信号の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成する積算ステップと、積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出する距離算出ステップと、第1距離値及び第2距離値から算出される距離値と所定の距離しきい値とに基づいて、対象物の有無を判定する判定ステップと、を含む。
 この態様によれば、積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値が算出され、第1距離値及び第2距離値から算出される距離値と所定の距離しきい値とに基づいて、対象物の有無が判定される。ここで、対象物が高反射率の場合、積算波形データの傾きは急なので、第1積算しきい値と第2積算しきい値との差が一定であっても、第1距離値と第2距離値との間の幅は相対的に狭くなる。一方、対象物が低反射率の場合、積算波形データの傾きは緩やかなので、第1積算しきい値と第2積算しきい値との差が一定であっても、第1距離値と第2距離値との間の幅は相対的に広くなる。よって、積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出することにより、反射率に応じて第1距離値と第2距離値との間の幅を変化させることができる。従って、第1距離値及び第2距離値から算出される距離値と所定の距離しきい値とに基づいて対象物の有無を判定することにより、対象物の反射率によらずに対象物を精度良く検出することができる。
 前述した態様において、判定ステップは、直前の判定結果が対象物有りのとき、第1距離値及び第2距離値の差の絶対値に基づくヒステリシス値と距離値と所定の距離しきい値とに基づいて、対象物の有無を判定することを含む。
 この態様によれば、直前の判定結果が対象物有りのとき、第1距離値及び第2距離値の差の絶対値に基づくヒステリシス値と距離値と所定の距離しきい値とに基づいて、対象物の有無が判定される。これにより、例えば、第1距離値及び第2距離値から算出される距離値と、所定の距離しきい値及びヒステリシス値の和とを比較することで、ヒステリシス値分だけ判定に幅(マージン)を持たせることができ、対象物有りと判定された後の判定において、第1距離値及び第2距離値から算出される距離値の変化に敏感に反応することを防ぐことができる。
 前述した態様において、距離算出ステップは、積算波形データにおいて第1積算しきい値及び第2積算しきい値とのそれぞれの交点の直前のデータ及び直後のデータを用いてサブピクセル処理を行うことによって、第1距離値及び第2距離値を算出することを含んでもよい。
 この態様によれば、積算波形データにおいて第1積算しきい値及び第2積算しきい値とのそれぞれの交点の直前のデータ及び直後のデータを用いてサブピクセル処理を行うことによって、第1距離値及び第2距離値が算出される。これにより、例えば遅延素子の1段分以上の分解能で距離に算出することが可能となる。従って、対象物周辺までの距離の計測精度を向上させることができる。
 前述した態様において、積算ステップは、2値化信号を所定の周期でサンプリングして第1波形性データを生成し、発信信号の複数回の発信について前記第1波形性データを積算して第1積算波形データを生成する第1積算ステップと、対象物の存在によって前記第1積算波形データに現れる特徴点の位置に基づく基準タイミングを決定し、該基準タイミングに基づいてストップ信号を生成するタイミング決定ステップと、それぞれ直列に接続される複数の遅延素子を含む遅延回路部において、各遅延素子がストップ信号に応じて前記2値化信号を取り込むことで第2波形データを生成し、該第2波形データを所定周期で複数回積算することで第2積算波形データを生成する第2積算ステップと、を含み、距離算出ステップは、第2積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出することを含んでもよい。
 この態様によれば、対象物の存在によって第1積算波形データに現れる特徴点の位置に基づく基準タイミングが決定され、該基準タイミングに基づいてストップ信号が生成され、各遅延素子がストップ信号に応じて2値化信号を取り込むことで第2波形データが生成され、該第2波形データを所定周期で複数回積算することで第2積算波形データが生成される。このように、対象物の存在によって現れる特徴点に基づく計測ポイント周辺で信号を生成することにより、対象物周辺までの時間を高精度に計測することができる。これにより、回路規模を大きくせずに対象物周辺までの距離の計測精度を向上させることが可能となるとともに、検出可能距離のレンジを拡大させることが可能となる。
 前述した態様において、第2積算ステップは、それぞれ並列に接続された複数の遅延回路部において、各遅延回路部が生成する第2積算波形データを積算することを含んでもよい。
 この態様によれば、各遅延回路部が生成する第2積算波形データを積算する。これにより、遅延回路部が単列の場合と比較して、同じ時間でのサンプリング回数を増やすことができる。従って、センサ装置は高速出力に対応することができる。
 前述した態様において、第1積算ステップは、ナノ秒オーダーの分解能を有し、遅延回路部は、ピコ秒オーダーの分解能を有してもよい。
 この態様によれば、第1積算部は、ナノ秒オーダーの分解能を有し、遅延回路部は、ピコ秒オーダーの分解能を有する。これにより、対象物周辺までの距離の計測精度を向上させることができる。
 本発明によれば、対象物の反射率によらずに対象物を精度良く検出することのできるセンサ装置及び検出方法を提供することができる。
図1は、一実施形態に係るセンサ装置の構成を例示するブロック図である。 図2は、図1に示したセンサ装置の検出原理を例示する模式図である。 図3は、図1に示したTDCディレイライン計測部及びその周辺の構成を例示するブロック図である。 図4は、図1に示したカウンタ計測部の構成を例示するブロック図である。 図5は、図1に示したカウンタ計測部及びその周辺の動作を例示するタイミング図である。 図6は、図1に示したカウンタ計測部のラフ計測の動作を例示するタイミング図である。 図7は、図1に示したTDCディレイライン計測部及びその周辺の動作の概要を例示するタイミング図である。 図8は、対象物の反射率が相対的に低いときに図1に示したフィルタ処理部及びその周辺での処理結果を例示する波形図である。 図9は、対象物の反射率が相対的に高いときに図1に示したフィルタ処理部及びその周辺での処理結果を例示する波形図である。 図10は、対象物の反射率が相対的に高いときに図1に示した段数算出部及びその周辺での処理結果を例示する波形図である。 図11は、図10に示した積算信号とHighしきい値との交点の近傍を例示する部分拡大図である。 図12は、一実施形態に係るセンサ装置の概略動作を例示するフローチャートである。 図13は、図12に示した判定処理を例示するフローチャートである。
 添付図面を参照して、本発明の好適な実施形態について説明する。なお、各図において、同一の符号を付したものは、同一又は同様の構成を有する。
 まず、図1から図4を参照しつつ、本実施形態に係るセンサ装置の構成の一例について説明する。図1は、一実施形態に係るセンサ装置100の構成を例示するブロック図である。図2は、図1に示したセンサ装置100の検出原理を例示する模式図である。図3は、図1に示したTDCディレイライン計測部33及びその周辺の構成を例示するブロック図である。図4は、図1に示したカウンタ計測部32の構成を例示するブロック図である。
 図1に示すように、センサ装置100は、発光部10と、受光部20と、FPGA(Field-Programmable Gate Array)30と、CLK45と、制御部50と、表示部60と、操作部70と、を備える。センサ装置100は、例えば光電センサであり、対象物を検出するためのものである。
 図2に示すように、センサ装置100は、対象物TAに向けて検出光を発光する。対象物TAによって反射された検出光は、センサ装置100に戻り、受光される。センサ装置100は、受光した検出光をセンサ装置100内で信号処理することにより、投光から受光までの時間に基づいて、対象物TAとの距離を精密に計測することが可能である。その結果、センサ装置100から所定の距離(位置)にある対象物TAを検出することができる。なお、図2に示す例の他に、例えば、工場のライン上を流れる対象物TAを上方から検出する態様も考えられる。また、センサ装置100から対象物TAに向けて出力されるのは、光の他に、電磁波や音波等も考えられる。
 図1の説明に戻り、発光部10は、対象物TAに向けて検出光を発光するように構成されている。発光部10は、投光素子11と、投光回路15と、を含む。投光素子11は、図2に示した対象物TAに向けて検出光を繰り返し出射する。以下では、検出光が周期的に出射される例について説明するが、ランダムに出射されてもよい。投光素子11は、例えばLD(Laser Diode)を含んで構成され、検出光は、例えばパルス光である。投光回路15には、FPGA30から投光素子11のパルス制御信号P1及びパワー制御信号P2が入力され、投光回路15は、パルス制御信号P1及びパワー制御信号P2に基づいて、投光素子11から出射される検出光を制御する。
 受光部20は、検出光の反射光を受信して2値化信号RTを生成するように構成されている。受光部20は、受光素子21と、受光回路25と、を含む。受光素子21は、図2に示す対象物TAから反射される検出光を受光して受光信号を出力する。受光素子21は、例えばAPD(Avalanche Photo Diode)を含んで構成される。受光回路25は、受光素子21から入力される受光信号の受光量を、所定のしきい値と比較して2値化し、2値化信号RTを生成する。受光回路25は、生成した2値化信号RTを出力する。
 FPGA30は、投光発振器31と、カウンタ計測部32と、TDC(Time-to-Digital Converter)ディレイライン計測部33と、波形積算部34と、傾き算出部35と、段数算出部37と、距離換算部38と、レジスタ39と、投光素子温度制御部40と、インターフェース部41と、クロック生成部46と、PLL(Phase Locked Loop)47とを含む。FPGA30は、ASIC(Application Specific Integrated Circuit)等の集積回路でも代替可能である。
 CLK45は、例えば20MHzの発振信号をクロック生成部46に出力する。クロック生成部46には発振信号が入力され、クロック生成部46は、当該発信信号に基づいて基準クロックを生成し、出力する。PLL47には基準クロックが入力され、PLL47は、基準クロックに基づいて、所望の周波数に位相同期されたクロック信号Ckを生成し、出力する。クロック信号Ckは、FPGA30の各構成要素に供給される。
 投光発振器31には投光素子温度制御部40から出力信号が入力される。投光発振器31は、当該出力信号に基づいて、パルス制御信号P1及びパワー制御信号P2を生成し、前述した投光回路15に出力する。投光素子温度制御部40は、投光素子11の温度情報をもとに、発光部10から発せられる検出光の投光パワーを制御するためのものである。また、投光発振器31は、カウンタ計測部32でのカウントを開始させるスタート信号Strを、パルス制御信号P1と同期してカウンタ計測部32に出力する。
 カウンタ計測部32には2値化信号RT及びスタート信号Stが入力される。カウンタ計測部32は、2値化信号RTの特徴点に対応してストップ信号Stpを生成し、生成したストップ信号Stpを出力する。カウンタ計測部32の詳細については、後述する。
 TDCディレイライン計測部33には2値化信号RT及びストップ信号Stpが入力される。TDCディレイライン計測部33は、ディレイライン出力信号D1~D4を生成し、生成したディレイライン出力信号D1~D4を波形積算部34に出力する。TDCディレイライン計測部33は、スタートパルスから遅れて到達するストップパルスの時刻を測定するTDC、すなわち、ディレイラインを用いたシングルヒット型のTDCとは異なる。
 波形積算部34は、TDCディレイライン計測部33から入力されるディレイライン出力信号D1~D4を複数回積算し、積算信号Dtを生成する。波形積算部34は、生成した積算信号Dtを傾き算出部35及び段数算出部37に出力する。
 傾き算出部35は、波形積算部34から入力される積算信号Dtについて傾きを算出する。例えば、傾き算出部35は、積算信号Dtの振幅、つまり、積算数に対する所定の傾き用Highしきい値と積算信号Dtとの交点からHigh値を求める。同様に、傾き算出部35は、積算信号Dtの積算数に対する所定の傾き用Lowしきい値と積算信号Dtとの交点からLow値を求める。そして、傾き算出部35が算出する傾きαは、これらの値を用いて以下の式(1)のように表される。
   傾きα=(傾き用Highしきい値-傾き用Lowしきい値)/(High値-Low値) …(1)
 傾き算出部35は、算出した傾きをインターフェース部41を介してレジスタ39に出力する。
 段数算出部37は、波形積算部34から入力される積算信号Dtに基づいて、TDCディレイライン計測部33に含まれる遅延回路の段数を算出する。TDCディレイライン計測部33の遅延回路については後述する。段数算出部37は、算出した遅延回路の段数を距離換算部38に出力する。
 距離換算部38は、段数算出部37から入力される遅延回路の段数をセンサ装置100からの距離に換算し、換算した距離を出力する。
 レジスタ39には、傾き算出部35の傾き及び距離換算部38の換算された距離が入力され、レジスタ39はこれらを記憶する。
 インターフェース部41は、レジスタ39に記憶された傾き算出部35の傾き及び距離換算部38の出力結果を計測信号T1として制御部50に出力する。
 制御部50は、表示部60及び操作部70を制御するように構成されている。制御部50は、インターフェース部41から入力される計測信号T1に基づいて、例えば積算信号Dtの傾きから受光量を求め、求めた受光量を表示部60に出力する。また、制御部50は、利用者(ユーザ)が操作部70を操作することによって入力された情報に対応して設定データT2を生成し、生成した設定データT2をインターフェース部41に出力する。制御部50は、例えばCPU(Central Processing Unit)等のマイクロプロセッサ、ROM(Read Only Memory)、RAM(Random Access Memory)等のメモリ、及びバッファ等の緩衝記憶装置を含んで構成される。
 また、制御部50は、その機能構成として判定部51を含む。判定部51は、インターフェース部41から入力される計測信号T1に含まれる距離換算部38の出力結果に基づいて、図2に示す対象物TAが所定の距離に存在するか否か、つまり、対象物TAの有無を判定する。制御部50は、判定結果を表示部60に出力する。
 表示部60は、情報を出力するためのものである。表示部60は、制御部50から入力される受光量を表示する。また、表示部60は、制御部50から入力される判定結果に基づいて、対象物TAの有無を表示する。表示部60は、例えば、ランプやLED(Light Emitting Diode)等の表示灯と、有機ELディスプレイ(OLED:Organic Electro-Luminescence Display)等のディスプレイとを含んで構成される。
 操作部70は、情報を入力するためのものである。操作部70は、利用者(ユーザ)の操作に対応した信号を制御部50に出力する。操作部70は、例えば複数のボタンを含んで構成される。
 図3に示すように、カウンタ計測部32は、スタート信号Stに応答して2値化信号RTのカウントを開始する。2値化信号RTのカウントは、PLL47から入力されるクロック信号Ckに基づいて行われる。また、カウンタ計測部32は、2値化信号RTの特徴点に対応するストップ信号Stp1,Stp2,Stp3,Stp4(以下、総称して「ストップ信号Stp」ともいう)を生成し、TDCディレイライン計測部33に出力する。
 TDCディレイライン計測部33は、第1のTDCディレイライン301と、第2のTDCディレイライン302と、第3のTDCディレイライン303と、第4のTDCディレイライン304と、バッファ315とを含む。なお、図3では、TDCディレイライン計測部33が4つのTDCディレイラインで構成される例を示したが、これに限定されるものではない。TDCディレイライン計測部33は、論理容量の規模に応じて、TDCディレイラインを増減させてもよい。
 第1のTDCディレイライン301は、遅延素子6-1,6-2,6-3,…,6-n(nは正の整数)(以下、総称して「遅延素子6」ともいう)と、フリップフロップ回路7-1,7-2,7-3,…,7-n(以下、総称して「フリップフロップ回路7」ともいう)とを含む。遅延素子6は、例えばインバータ、つまり、NOTゲートを含んで構成される。フリップフロップ回路7は、例えばDフリップフロップを含んで構成され、Dフリップフロップはラッチ回路等でも代替し得る。遅延素子6は、LE(Logic Element)の高速演算用のキャリーによる桁上がりを利用して遅延を発生させている。これにより、FPGA30において、ピコ秒オーダーの分解能を有する遅延素子6を実現している。また、FPGA30における遅延素子6は、Dフリップフロップのクロック入力とQ入力との間の遅延を利用して実現することもできる。この場合、ナノ秒オーダーの安定した遅延時間を得ることができる。
 遅延素子6-1は、入力される2値化信号RTを一定時間遅延させた後、それを遅延素子6-2およびフリップフロップ回路7-1に出力する。フリップフロップ回路7-1は、ストップ信号Stp1が入力されるタイミングで、遅延素子6-1からの入力を出力する。遅延素子6-2は、遅延素子6-1からの入力を一定時間遅延させた後、それを遅延素子6-3及びフリップフロップ回路7-2に入力する。フリップフロップ回路7-2は、ストップ信号Stp1が入力されるタイミングで、遅延素子6-2からの入力を出力する。以下、遅延素子6-3以降及びフリップフロップ回路7-3以降についても同様であるため、その説明を省略する。
 第1のTDCディレイライン301は、フリップフロップ回路7-1,7-2,7-3,…から同期して出力される遅延信号Q1,Q2,Q3,…,Qn(以下、総称して「遅延信号Q」ともいう)を結合し、ディレイライン出力信号D1j(j=1からmの整数、mは正の整数)を出力する。ディレイライン出力信号D1jは、遅延素子6-1,6-2,6-3,…,6-nの各遅延時間の合計に相当する時間長を有する2値化信号RTの波形データとなる。
 ディレイライン出力信号D1jがバッファ315に出力された後、第1のTDCディレイライン301はいったんリセットされる。その後、次の2値化信号RTからディレイライン出力信号D1jが再び作成される。ディレイライン出力信号D1jは、所定の積算回数、例えばm回になるまで(j=m)作成され、それぞれ、バッファ315に蓄積される。バッファ315は、ディレイライン出力信号D1jがm回積算されたディレイライン出力信号D1を出力する。これは、TDCディレイライン302~304のディレイライン出力信号D2~D4についても同様であるため、その説明を省略する。また、TDCディレイライン302~304の回路構成は、TDCディレイライン301と同様であるため、図示及びその説明を省略する。TDCディレイライン301~304は、それぞれ、PLL47から入ロされるクロック信号Ckによって駆動される。
 TDCディレイライン301~304に含まれる遅延素子6の遅延幅は、周囲の温度によって変化する。そのため、当該遅延幅に基づいて、センサ装置100から対象物TAまでの距離を算出すると、算出された距離は温度に応じて変動する。このような温度による遅延段数の変動を補正するために、TDCディレイライン計測部33は、温度補正用のTDCディレイラインをさらに含んでもよい。この場合、温度補正用のTDCディレイラインは、温度に応じた遅延段数を示す信号を、例えば前述した距離換算部38に出力し、距離換算部38は、当該信号を用いて段数算出部37から入力される遅延回路の段数を温度補正する。そして、距離換算部38は、温度補正した遅延回路の段数を距離に換算する。これにより、周囲の温度による計測結果の変動(ばらつき)を補正することができる。
 図4に示すように、カウンタ計測部32は、2値化信号取込部321と、信号蓄積部322と、ストップ信号決定部323と、ストップタイミング管理部324と、を含む。2値化信号取込部321は、スタート信号Strのタイミングに基づいて、2値化信号RTを取り込む。信号蓄積部322は、当該取り込まれた2値化信号RTを蓄積する。信号蓄積部322には、後述するクロックベースによるラフ計測において、計測周期n回分の計測結果が積算される。ストップ信号決定部323は、2値化信号RTを蓄積する信号蓄積部322に、クロック信号に基づくサンプリング信号Smpを出力する。
 ストップ信号決定部323は、判定しきい値と最初に交差する2値化信号RTの積算値の立ち上がり時点を計測ポイントに認定し、この時点でストップ信号StpNを出力する。なお、計測ポイントは、立ち上がり時点には限定されず、立ち下がり時点、その他の特徴点であってもよい。ストップタイミング管理部324は、ストップ信号StpNを受けて、スタート信号Strのタイミングに基づいて、クロック周期の所定回ごと、例えば128回ごとに、TDCディレイライン301~304にストップ信号Stp1,Stp2,Stp3,Stp4をそれぞれ同時に出力する。ストップタイミング管理部324は、ストップ信号Stp1,Stp2,Stp3,Stp4を出力する配線長の違いによる時間差分を補正するためのレジスタを含んで構成される。当該レジスタを用いることにより、配線長による時間計測値の変動(ばらつき)を抑えることができる。
 次に、図5を参照しつつ、本実施形態に係るカウンタ計測部及びその周辺の動作の一例について説明する。図5は、図1に示したカウンタ計測部32及びその周辺の動作を例示するタイミング図である。
 センサ装置100は、まず、クロック信号を使用したカウンタ方式によって、センサ装置100の計測レンジの全範囲にわたり、発光開始から経過した時間をラフ計測する。当該ラフ計測は、ナノ秒オーダーの分解能で行なわれる。その後、ラフ計測で推定した計測ポイントの周辺を、TDCディレイライン方式によってファイン計測する。具体的には、ラフ計測で探索した計測ポイント周辺でファイン計測のストップ信号を出力することで、対象物TA周辺の時間を高精度に計測することができる。当該ファイン計測は、ピコ秒オーダーの分解能で行なわれる。
 <ラフ計測>
 図5に示すように、まず、投光素子11がパルス幅Ptの投光パルスPP1を出射する。投光パルスPP1を出射した後の一定期間Mtが、投光パルスPP1の計測区間M1となる。カウンタ計測部32は、計測区間M1の間、クロック信号に基づくサンプリング信号Smpで2値化信号RTの2値化情報をサンプリングする。当該2値化情報は、クロック信号に基づいてサンプリングされるため、時間情報と紐付いている。2値化信号RTは、例えば受光素子21からの信号をLVDS(Low Voltage Differential Signaling)方式で入力したものである。2値化信号RTの部分波形RTpは、投光パルスPP1に対応した反射波を示している。
 カウンタ積算信号Cnは、サンプリング信号Smpで2値化信号RTの2値化情報を所定の積算回数(n回)になるまで計測し、n回分の2値化情報をクロックごとに積算したものである。カウンタ計測部32は、判定しきい値Thと最初に交差するカウンタ積算信号Cnの立ち上がり時点を計測ポイントに認定し、この時点でストップ信号を出力する。但し、この計測ポイントの認定は一例であって、立ち上がり時点に代えて立ち下がり時点等の他の特徴点で認定してもよい。ラフ計測では、時系列において古い波形から新しい波形を探索し、2値化信号RTの特徴点を見つけ出す。なお、ラフ計測において、時系列において新しい波形から古い波形を探索し、2値化信号RTの特徴点を見つけ出すことも可能である。
 <ファイン計測>
 TDCディレイライン計測部33は、ラフ計測で得られた前述のストップ信号に基づいて、当該ストップ信号の直前の時間をファイン計測する。TDCディレイライン301,302,303,304は、ディレイライン計測DLにおいて、ストップ信号Stp1,Stp2,Stp3,Stp4を受けて計測ポイント周辺でファイン計測を行なう。ラフ計測で探索した計測ポイント周辺でファイン計測のストップタイミングをかけることにより、対象物TA周辺までの時間を高精度に計測することができる。これにより、回路規模を大きくせずに対象物TA周辺までの距離の計測精度を向上させることが可能となるとともに、検出可能距離のレンジを拡大させることが可能となる。
 ファイン計測では、ディレイラインで取得した2値化信号RTの積算結果をフィルタ処理した後、時間的に新しい波形から古い波形を探索する。これにより、できる限り信号レベルの高いポイントで計測ポイントを探索でき、例えば外部光等のノイズの影響を極力抑えることができる。なお、ファイン計測において、時系列において古い波形から新しい波形を探索することも可能である。
 また、それぞれ並列に接続された複数のディレイラインで2値化信号RTを取得することにより、ディレイラインが単列の場合と比較して、同じ時間でのサンプリング回数を増やすことができる。従って、センサ装置100は高速出力に対応することができる。
 また、以下の処理を併せて実施することにより、センサ装置100のセンサ応答の高速化及び計測の安定化が可能である。
 初回の計測では、利用者(ユーザ)の操作によるラフ計測及びファイン計測の結果を利用して対象物TAとの距離を計測することができる。これにより、センサ装置100の出力応答速度を早くすることができる。
 工場のライン上を流れる対象物を計測する場合等、対象物がなくなって光量不足のエラーが出た後に、再度対象物が存在する状態になることがある。この場合、前回のラフ計測の結果を用いてファイン計測を行なうことで、センサ装置100の出力応答速度を早くすることが可能となる。
 また、ラフ計測で光量不足となった場合、前回のラフ計測の結果に基づいてファイン計測を実行することができる。また、ラフ計測で光量不足となった場合に、計測エラーとせず、ファイン計測エラーの時のみ計測エラーとすることもできる。
 また、ラフ計測又はファイン計測での光量不足を判定する積算波形の振幅基準値は、利用者の操作によって設定される積算波形の振幅に基づいて決定できる。
 次に、図6を参照しつつ、本実施形態に係るカウンタ計測部のラフ計測の動作の一例について説明する。図6は、図1に示したカウンタ計測部32のラフ計測の動作を例示するタイミング図である。
 図6に示すように、2値化信号取込部321は、スタート信号Strのタイミングに基づいて2値化信号RTを取り込む。2値化信号RTは、図5に示した波形に対応する。2値化信号RTは2値化されており、スタート信号Strのタイミングに合わせて、2値化信号RT1,RT2,…,RT128(以下、総称して「2値化信号RT」ともいう)が2値化信号取込部321に順次取り込まれる。カウンタ積算信号Cnは、信号蓄積部322に蓄積された2値化信号RTを示し、図5に示した波形に対応する。
 ストップ信号決定部323は、カウンタ積算信号Cnを蓄積する信号蓄積部322に、クロック信号に基づくサンプリング信号Smpを出力する。ストップ信号決定部323は、判定しきい値Thと最初に交差するカウンタ積算信号Cnの立ち上がり時点を計測ポイントに認定し、この時点でストップ信号Stpを出力する。判定しきい値Thは、2値化信号RTの計測周期n回、図6に示す例では128回、に応じて可変に設定される。判定しきい値Thは、好ましくは2値化信号RTの計測周期n回の1/2に設定されるが、1/2でなくてもよい。対象物TAがセンサ装置100から遠い距離に配置されている場合、あるいは対象物TAの反射率が低い場合、判定しきい値Thは、2値化信号RTの計測周期n回の1/2より大きく設定される。これにより、カウンタ積算信号Cnに表われる2値化信号RTの特徴点をより感度よく検出することができる。
 次に、図7を参照しつつ、本実施形態に係るTDCディレイライン計測部及びその周辺の動作の一例について説明する。図7は、図1に示したTDCディレイライン計測部33及びその周辺の動作の概要を例示するタイミング図である。なお、図7では、カウンタ計測部32でのカウンタ計測回数とTDCディレイライン計測部33での積算回数とが同一(図7では128だが変更可能)である場合の動作を示す。また、カウンタ計測部32又はTDCディレイライン計測部33での応答時間を短くするために、どちらかの回数を短くして計測することも可能である。当該カウンタ計測回数と当該積算回数とが同一でない場合は、カウンタ計測又はディレイライン計測に待ち時間が生じるため、計測効率が下がり得る。
 図7に示すように、PLL47からFPGA30の各構成要素に供給されるクロック信号Ckに対応するスタート信号Strは、例えば周期Tcycを有する。カウンタ計測部32のカウンタ積算信号Cnでは、スタート信号Strのタイミングに基づいて、2値化信号RTを128回取り込んで積算する。ストップ信号決定部323は、クロック周期が128回ごとに判定しきい値Thと最初に交差する2値化信号RTの積算値の立ち上がり時点を計測ポイントに認定し、この時点でストップ信号Stp1,Stp2,Stp3,Stp4をTDCディレイライン301,302,303,304にそれぞれ同時に出力する。
 TDCディレイライン計測部33での遅延信号群DSでは、第1のTDCディレイライン301において、ストップ信号Stp1に同期してディレイライン出力信号D1jが出力される。バッファ315は、次のストップ信号Stp2に同期して、ディレイライン出力信号D1jが128回積算されたディレイライン出力信号D1を出力するとともに、第2のTDCディレイライン302からディレイライン出力信号D2jが入力される。バッファ315は、次のストップ信号Stp3に同期して、ディレイライン出力信号D2jが128回積算されたディレイライン出力信号D2を出力するとともに、第3のTDCディレイライン303からディレイライン出力信号D3jが入力される。以下、TDCディレイライン303,304からそれぞれ出力されるディレイライン出力信号D3,D4も同様であるため、その説明を省略する。
 前述したように、クロック周期の回数で決定されたストップタイミングに基づいてTDCディレイライン計測を行なうことで、投光開始から受光計測ポイントまでの時間を得ることができる。図1を用いて説明したように、ディレイライン出力信号D1,D2,D3,D4は、波形積算部34で積算され、段数算出部37、及び距離換算部38を経て、対象物TA周辺までの距離が計測される。
 次に、図8及び図9を参照しつつ、本実施形態に係るフィルタ処理部36及びその周辺の動作の一例について説明する。図8は、対象物TAの反射率が相対的に低いときに図1に示した波形積算部34及びその周辺での処理結果を例示する波形図である。図9は、対象物TAの反射率が相対的に高いときに図1に示した波形積算部34及びその周辺での処理結果を例示する波形図である。
 波形積算部34が出力する積算信号Dtは、全ディレイライン出力信号D1~D4の積算信号である。積算信号Dtに対して、フィルタ処理、すなわち、移動平均による平滑化を行うようにしてもよい。
 ここで、図8及び図9を用いて仮想センサ装置の動作について説明する。仮想センサ装置の構成は、センサ装置100と同様であるため、図示及びその説明を省略する。仮想センサ装置において、段数算出部は、積算信号Dtと積算しきい値IThとの交点から遅延素子の段数を算出する。距離換算部は、当該遅延素子の段数を対象物までの距離に換算する。判定部は、換算した距離CD1,CD2とオフ点距離Doff及びオン点距離Donとを比較して、対象物の有無を判定する。例えば、対象物を検出していない状態で、換算した距離CD1,CD2がオン点距離Donより大きい場合、対象物有り(検出)と判定する。また、例えば、対象物TAを検出している状態で、換算した距離CD1,CD2がオフ点距離Doffより小さい場合、対象物無し(不検出)と判定する。オフ点距離Doffとオン点距離Donとの間の幅(差)は、ヒステリシス幅Whysとしてあらかじめ設定されている。
 図8に示すように、対象物TAの反射率が低い場合、積算信号Dtは、その傾きが緩やかになり、換算した距離CD1の変動(ばらつき)は大きくなる傾向にある。そのため、オフ点距離Doffとオン点距離Donとのヒステリシス幅Whysは広く設定する必要がある。一方、図9に示すように、対象物TAの反射率が高い場合、積算信号Dtは、その傾きが急になり、換算した距離CD2の変動(ばらつき)は小さくなる傾向にある。そのため、オフ点距離Doffとオン点距離Donとのヒステリシス幅Whysは狭くすることが望ましい。しかしながら、対象物TAの反射率に応じてヒステリシス幅Whysを設定することは煩雑であり、特に反射率の異なる対象物が混在する工場のラインでは困難である。そして、ヒステリシス幅Whysを低反射率の対象物TAにあわせて設定すると、図9に示すように、ヒステリシス幅Whysが広いため、換算した距離CD2は、オフ点距離Doff又はオン点距離Donを超えにくくなる。このため、対象物TAの検出精度は対象物TAの反射率に依存してしまう。
 次に、図10及び図11を参照しつつ、本実施形態に係る段数算出部及びその周辺の動作の一例について説明する。図10は、対象物TAの反射率が相対的に高いときに図1に示した段数算出部37及びその周辺での処理結果を例示する波形図である。図11は、図10に示した積算信号DtとHighしきい値HThとの交点の近傍を例示する部分拡大図である。
 図10に示すように、センサ装置100では、積算信号Dtの振幅、すなわち、積算数に対して、Highしきい値HTh及びLowしきい値LThが設定される。Highしきい値HThとLowしきい値LThとの間の幅(差)は、積算数幅Wintとして、所定の値が設定されている。段数算出部37は、積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点から、遅延素子の段数を算出する。距離換算部38は、各遅延素子の段数をNear側距離値CDnとFar側距離値CDfとに換算する。そして、判定部51は、換算したNear側距離値CDn及びFar側距離値CDfから算出される距離値と所定の距離しきい値とに基づいて、対象物TAの有無を判定する。ここで、図10に示すように、対象物TAが高反射率の場合には、積算信号Dtの傾きは急なので、Highしきい値HThとLowしきい値LThとの差(積算数幅Wint)が一定であっても、Near側距離値CDnとFar側距離値CDfとの間の幅は相対的に狭くなる。一方、対象物TAが低反射率の場合には、積算信号Dtの傾きは緩やかなので、Highしきい値HThとLowしきい値LThとの差(積算数幅Wint)が一定であっても、Near側距離値CDnとFar側距離値CDfとの間の幅は相対的に広くなる。
 このように、積算信号Dtの積算数に対してHighしきい値HTh及びLowしきい値LThを設定し、積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点から遅延素子の段数を算出し、各遅延素子の段数をNear側距離値CDnとFar側距離値CDfとに換算することにより、反射率に応じてNear側距離値CDnとFar側距離値CDfとの間の幅を変化させることができる。従って、換算したNear側距離値CDn及びFar側距離値CDfから算出される距離値と所定の距離しきい値とに基づいて対象物TAの有無を判定することにより、対象物TAの反射率によらずに対象物TAを精度良く検出することができる。
 本実施形態では、積算信号Dtの積算数に対してHighしきい値HTh及びLowしきい値LThを設定し、積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点から遅延素子の段数を算出し、各遅延素子の段数をNear側距離値CDnとFar側距離値CDfとに換算する例を示したが、これに限定されるものではない。例えば、積算信号Dtに代えて、例えば、カウンタ積算信号Cnを用い、カウンタ積算信号Cnの積算数に対してHighしきい値及びLowしきい値を設定してもよい。この場合、カウンタ積算信号CnとHighしきい値及びLowしきい値とのそれぞれの交点からサンプリング信号Smpのサンプリング番号を算出し、各サンプリング信号Smpのサンプリング番号をNear側距離値とFar側距離値とに換算する。
 積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点は、サブピクセル処理によって求めることが好ましい。すなわち、図11に示すように、積算信号Dtは、ミクロの視点では離散的な点(データ)Pk-2,Pk-1,Pk,Pk+1の集まりである。段数算出部37は、積算信号Dtにおいて、Highしきい値HThとの交点の直前のデータ、図11の例では点Pk-1と、Highしきい値HThとの交点の直後のデータ、図11の例では点Pkとを用いサブピクセル処理を行い、積算信号DtとHighしきい値HThとの交点を求める。そして、段数算出部37は、求めた交点から遅延素子の段数を算出する。段数算出部37は、同様に、積算信号DtとLowしきい値LThとの交点もサブピクセル処理によって求め、求めた交点から遅延素子の段数を算出する。これにより、遅延素子の1段分以上の分解能で距離に算出することが可能となる。従って、対象物TA周辺までの距離の計測精度を向上させることができる。
 次に、図12及び図13を参照しつつ、本実施形態に係るセンサ装置の動作の一例について説明する。図12は、一実施形態に係るセンサ装置100の概略動作を例示するフローチャートである。図13は、図12に示した判定処理を例示するフローチャートである。なお、以下において、カウンタ計測部32でのカウンタ計測とTDCディレイライン計測部33での積算回数とが同一である場合について説明する。
 センサ装置100は、例えば電源が投入されて起動されると、図12に示す検出処理S200を実行する。なお、以下において、カウンタ計測部32でのカウンタ計測とTDCディレイライン計測部33での積算回数とが同一である場合について説明する。
 まず、投光素子11は、対象物TAに向けてパルス光を発光する(S201)。次に、カウンタ計測部32は、2値化信号RTの2値化情報をサンプリングする(S202)。次に、カウンタ計測部32は、当該サンプリングがN回積算されている否かを判定する(S203)。ステップS203の判定の結果、当該サンプリングがN回積算されていない場合、ステップS202に戻り、カウンタ計測部32は、サンプリングがN回積算されるまで2値化信号RTのサンプリングを繰り返す。
 ステップS203の判定の結果、N回積算されている場合、カウンタ計測部32は、カウンタ積算信号Cnが判定しきい値Thと交差するクロスポイントを検出する(S204)。次に、カウンタ計測部32は、当該クロスポイントに基づいて計測ポイントを認定し、この時点でストップ信号を出力する(S205)。次に、TDCディレイライン計測部33は、2値化信号RTの2値化情報をサンプリングする(S206)。次に、TDCディレイライン計測部33は、当該サンプリングがM回積算されているか否かを判定する(S207)。ステップS207の判定の結果、当該サンプリングがM回積算されていない場合、ステップS206に戻り、TDCディレイライン計測部33は、サンプリングがM回積算されるまで2値化信号RTのサンプリングを繰り返す。
 次に、段数算出部37は、積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点から、各遅延素子の段数を算出する(S208)。次に、距離換算部38は、各遅延素子の段数をNear側距離値CDnと、Far側距離値CDfとに換算する(S209)。次に、判定部51は、後述する判定処理S220を実行する。判定処理S220の終了後、センサ装置100は、検出処理S200を終了する。
 <判定処理S220>
 判定処理S220が開始されると、図13に示すように、最初に、判定部51は、FPGA30のインターフェース部41を介して距離換算部38から入力されるNear側距離値CDn及びFar側距離値CDfに基づいて、距離値CDaと、ヒステリシス値Vhysとを算出する(S221)。
 距離値CDaは、Near側距離値CDn及びFar側距離値CDfの平均値であり、以下の式(2)のように表される。
   距離値CDa=(Near側距離値CDn+Far側距離値CDf)/2 …(2)
 本実施形態では、距離値CDaがNear側距離値CDn及びFar側距離値CDfの平均値である例を示したが、これに限定されるものではない。距離値CDaは、Near側距離値CDn及びFar側距離値CDfから算出される値であればよく、平均値以外であってもよい。
 ヒステリシス値Vhysは、制御部50のメモリ等にあらかじめ記憶された倍率調整値Vm及びオフセット調整値Voを用いて、以下の式(3)のように表される。
   ヒステリシス値Vhys={(Far側距離値CDf-Near側距離値CDn)×Vm}+Vo …(3)
 なお、倍率調整値Vm及びオフセット調整値Voは、あらかじめ記憶された値を用いる場合に限定されるものではない。例えば、倍率調整値Vm及びオフセット調整値Voは、利用者(ユーザ)が操作部70を操作することによって変更可能であってもよい。
 次に、判定部51は、利用者(ユーザ)が操作部70を操作することによって入力された値を距離しきい値として設定する(S222)。
 次に、判定部51は、現在の出力がオフであるか否かを判定する(S223)。出力がオフであるとは、対象物TAが無いことを意味し、出力がオンであるとは、対象物が有ることを意味する。現在の出力とは、判定処理S220が最初に実行される場合を除き、直前の判定処理S220の結果として設定される値、つまり、オン又はオフである。判定処理S220が最初に実行される場合に備え、出力の初期値には、オフが設定されている。
 ステップS223の判定の結果、現在の出力がオフである場合、判定部51は、ステップS221で算出した距離値CDaと、ステップS222で設定した距離しきい値とを比較し、距離値CDaが距離しきい値以下であるか否かを判定する(S224)。ステップS224の判定の結果、距離値CDaが距離しきい値以下である場合、判定部51は、出力をオンにする(S225)。一方、ステップS224の判定の結果、距離値CDaが距離しきい値以下でない、つまり、Far距離値CDaが距離しきい値より大きい場合、判定部51は、出力をオフにする(S226)。
 ステップS223の判定の結果、現在の出力がオフでない、つまり、オンである場合、直前の判定処理S220の結果、対象物有りと判定された(対象物が検出された)と考えられる。よって、判定部51は、距離値CDaと距離しきい値及びヒステリシス値Vhysの和(合計)とを比較し、距離値CDaが距離しきい値及びヒステリシス値Vhysの和(合計)以上であるか否かを判定する(S227)。このように、直前の判定結果が対象物有りのとき、Near側距離値CDn及びFar側距離値CDfの差の絶対値に基づくヒステリシス値Vhysと、Near側距離値CDn及びFar側距離値CDfから算出される距離値CDaと、所定の距離しきい値とに基づいて、対象物の有無を判定することにより、例えば、距離値CDaと、所定のしきい距離値及びヒステリシス値Vhysの和とを比較することで、ヒステリシス値Vhys分だけ判定に幅(マージン)を持たせることができ、対象物有りと判定された後の判定において、Near側距離値CDn及びFar側距離値CDfから算出される距離値CDaの変化に敏感に反応することを防ぐことができる。
 ステップS227の判定の結果、距離値CDaが距離しきい値及びヒステリシス値Vhysの和以上である場合、判定部51は、出力をオフにする(S228)。一方、ステップS227の判定の結果、距離値CDaが距離しきい値及びヒステリシス値Vhysの和以上でない場合、つまり、距離値CDaが距離しきい値及びヒステリシス値Vhysの和未満である場合、判定部51は、出力をオンにする(S229)。
 ステップS225、ステップS227、ステップS228、又はステップS229の後、判定部51は、判定処理S220を終了する。
 なお、図13では、ステップS221において、判定部51が距離値CDa及びヒステリシス値Vhysを算出する例を示したが、これに限定されるものではない。例えば、FPGA30の距離換算部38が距離値CDa及びヒステリシス値Vhysを算出し、インターフェース部41を介して判定部51に入力されてもよい。また、ステップ224及びステップ227の各判定において、等しい場合を含むか否かは、設定により変更可能であってもよい。
 本実施形態では、センサ装置100の計測媒体として光である場合を例に説明したが、これに限定されるものではない。センサ装置100の計測媒体は、例えば、電磁波や音波等でもよい。測定媒体として電磁波や音波を使用した場合、対象物TAとの距離のみならず、対象物との距離変化も計測可能である。
 また、本実施形態では、センサ装置100がラフ計測及びファイン計測の両方を行う例を示したがこれに限定されるものではない。例えば、センサ装置は、ラフ計測及びファイン計測の何れか一方のみを行うように構成されていてもよい。
 以上、本発明の例示的な実施形態について説明した。本発明の一実施形態に係るセンサ装置100及び検出方法によれば、積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点からNear側距離値CDn及びFar側距離値CDfが算出され、Near側距離値CDn及びFar側距離値CDfから算出される距離値CDaと所定の距離しきい値とに基づいて、対象物TAの有無が判定される。ここで、図10に示すように、対象物TAが高反射率の場合、積算信号Dtの傾きは急なので、Highしきい値HThとLowしきい値LThとの差(積算数幅Wint)が一定であっても、Near側距離値CDnとFar側距離値CDfとの間の幅は相対的に狭くなる。一方、対象物TAが低反射率の場合、積算信号Dtの傾きは緩やかなので、Highしきい値HThとLowしきい値LThとの差(積算数幅Wint)が一定であっても、Near側距離値CDnとFar側距離値CDfとの間の幅は相対的に広くなる。よって、積算信号Dtの積算数に対してHighしきい値HTh及びLowしきい値LThを設定し、積算信号DtとHighしきい値HTh及びLowしきい値LThとのそれぞれの交点から遅延素子の段数を算出し、各遅延素子の段数をNear側距離値CDnとFar側距離値CDfとに換算することにより、反射率に応じてNear側距離値CDnとFar側距離値CDfとの間の幅を変化させることができる。従って、換算したNear側距離値CDn及びFar側距離値CDfから算出される距離値CDaと所定の距離しきい値とに基づいて対象物TAの有無を判定することにより、対象物TAの反射率によらずに対象物TAを精度良く検出することができる。
 以上説明した実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。実施形態が備える各要素並びにその配置、材料、条件、形状及びサイズ等は、例示したものに限定されるわけではなく適宜変更することができる。また、異なる実施形態で示した構成同士を部分的に置換し又は組み合わせることが可能である。
 (附記)
 1.対象物(TA)に向けて発信信号を発信する発光部(10)と、
 発信信号の反射信号を受信して2値化信号(RT)を生成する受光部(20)と、
 2値化信号(RT)の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成するTDCディレイライン計測部(33)及び波形積算部(34)と、
 積算波形データとHighしきい値(HTh)及びLowしきい値(LTh)とのそれぞれの交点からNear側距離値(CDn)及びFar側距離値(CDf)を算出する段数算出部(37)及び距離換算部(38)と、
 Near側距離値(CDn)及びFar側距離値(CDf)から算出される距離値(CDa)と所定の距離しきい値とに基づいて、対象物(TA)の有無を判定する判定部(51)と、を備える、
 センサ装置(100)。
 7.対象物(TA)を検出する検出方法であって、
 対象物(TA)に向けて発信信号を発信する発信ステップと、
 発信信号の反射信号を受信して2値化信号(RT)を生成する受信ステップと、
 2値化信号(RT)の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成する積算ステップと、
 積算波形データとHighしきい値(HTh)及びLowしきい値(LTh)とのそれぞれの交点からNear側距離値(CDn)及びFar側距離値(CDf)を算出する距離算出ステップと、
 Near側距離値(CDn)及びFar側距離値(CDf)から算出される距離値(CDa)と所定の距離しきい値とに基づいて、対象物(TA)の有無を判定する判定ステップと、を含む、
 検出方法。
 6…遅延素子、7…フリップフロップ回路、10…発光部、11…投光素子、15…投光回路、20…受光部、21…受光素子、25…受光回路、30…FPGA、31…投光発振器、32…カウンタ計測部、33…TDCディレイライン計測部、34…波形積算部、35…受光量算出部、36…フィルタ処理部、37…段数算出部、38…距離換算部、39…レジスタ、40…投光素子温度制御部、41…インターフェース部、45…CLK、46…クロック生成部、47…PLL、50…制御部、51…判定部、60…表示部、70…操作部、100…センサ装置、315…バッファ、321…2値化信号取込部、322…信号蓄積部、323…ストップ信号決定部、324…ストップタイミング管理部、CDa…距離値、CDf…Far側距離値、CDn…Near側距離値、Ck…クロック信号、Cn…カウンタ積算信号、D1,D2,D3,D4…ディレイライン出力信号、D1j,D2j,D3j,D4j…ディレイライン出力信号、DL…ディレイライン計測、Doff…オフ点距離、Don…オン点距離、DS…遅延信号群、Dt…積算信号、Ft…フィルタ出力信号、HTh…Highしきい値、LTh…Lowしきい値、M1…計測区間、Mt…一定期間、PP1…投光パルス、Pt…パルス幅、RT…2値化信号、RTp…部分波形、S200…検出処理、S220…判定処理、Smp…サンプリング信号、St…スタート信号、Stp,Stp1,Stp2,Stp3,Stp4,StpN…ストップ信号、Str…スタート信号、T1…計測信号、T2…設定データ、TA…対象物、Tcyc…周期、Vhys…ヒステリシス値、Whys…ヒステリシス幅、Wint…積算数幅。

Claims (12)

  1.  対象物に向けて発信信号を発信する発信部と、
     前記発信信号の反射信号を受信して2値化信号を生成する受信部と、
     前記2値化信号の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成する積算部と、
     前記積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出する距離算出部と、
     前記第1距離値及び前記第2距離値から算出される距離値と所定の距離しきい値とに基づいて、前記対象物の有無を判定する判定部と、を備える、
     センサ装置。
  2.  前記判定部は、直前の判定結果が対象物有りのとき、前記第1距離値及び前記第2距離値の差の絶対値に基づくヒステリシス値と前記距離値と前記所定の距離しきい値とに基づいて、前記対象物の有無を判定する、
     請求項1に記載のセンサ装置。
  3.  前記距離算出部は、前記積算波形データにおいて前記第1積算しきい値及び前記第2積算しきい値とのそれぞれの交点の直前のデータ及び直後のデータを用いてサブピクセル処理を行うことによって、前記第1距離値及び前記第2距離値を算出する、
     請求項1又は2に記載のセンサ装置。
  4.  前記積算部は、
     前記2値化信号を所定の周期でサンプリングして第1波形性データを生成し、前記発信信号の複数回の発信について前記第1波形性データを積算して第1積算波形データを生成する第1積算部と、
     前記対象物の存在によって前記第1積算波形データに現れる特徴点の位置に基づく基準タイミングを決定し、該基準タイミングに基づいてストップ信号を生成するタイミング決定部と、
     それぞれ直列に接続される複数の遅延素子を含み、各遅延素子が前記ストップ信号に応じて前記2値化信号を取り込むことで第2波形データを生成し、該第2波形データを所定周期で複数回積算することで第2積算波形データを生成する遅延回路部を含む第2積算部と、を備え、
     前記距離算出部は、前記第2積算波形データと前記第1積算しきい値及び前記第2積算しきい値とのそれぞれの交点から前記第1距離値及び前記第2距離値を算出する、
     請求項1から3のいずれか一項に記載のセンサ装置。
  5.  前記第2積算部は、それぞれ並列に接続された複数の前記遅延回路部を含み、各遅延回路部が生成する前記第2積算波形データを積算する、
     請求項4に記載のセンサ装置。
  6.  前記第1積算部は、ナノ秒オーダーの分解能を有し、
     前記遅延回路部は、ピコ秒オーダーの分解能を有する、
     請求項4又は5に記載のセンサ装置。
  7.  対象物を検出する検出方法であって、
     前記対象物に向けて発信信号を発信する発信ステップと、
     前記発信信号の反射信号を受信して2値化信号を生成する受信ステップと、
     前記2値化信号の時間変化を示す波形データを生成し、複数の該波形データを積算して積算波形データを生成する積算ステップと、
     前記積算波形データと第1積算しきい値及び第2積算しきい値とのそれぞれの交点から第1距離値及び第2距離値を算出する距離算出ステップと、
     前記第1距離値及び前記第2距離値から算出される距離値と所定の距離しきい値とに基づいて、前記対象物の有無を判定する判定ステップと、を含む、
     検出方法。
  8.  前記判定ステップは、直前の判定結果が対象物有りのとき、前記第1距離値及び前記第2距離値の差の絶対値に基づくヒステリシス値と前記距離値と前記所定の距離しきい値とに基づいて、前記対象物の有無を判定することを含む、
     請求項7に記載の検出方法。
  9.  前記距離算出ステップは、前記積算波形データにおいて前記第1積算しきい値及び前記第2積算しきい値とのそれぞれの交点の直前のデータ及び直後のデータを用いてサブピクセル処理を行うことによって、前記第1距離値及び前記第2距離値を算出することを含む、
     請求項7又は8に記載の検出方法。
  10.  前記積算ステップは、
     前記2値化信号を所定の周期でサンプリングして第1波形性データを生成し、前記発信信号の複数回の発信について前記第1波形性データを積算して第1積算波形データを生成する第1積算ステップと、
     前記対象物の存在によって前記第1積算波形データに現れる特徴点の位置に基づく基準タイミングを決定し、該基準タイミングに基づいてストップ信号を生成するタイミング決定ステップと、
     それぞれ直列に接続される複数の遅延素子を含む遅延回路部において、各遅延素子が前記ストップ信号に応じて前記2値化信号を取り込むことで第2波形データを生成し、該第2波形データを所定周期で複数回積算することで第2積算波形データを生成する第2積算ステップと、を含み、
     前記距離算出ステップは、前記第2積算波形データと前記第1積算しきい値及び前記第2積算しきい値とのそれぞれの交点から前記第1距離値及び前記第2距離値を算出することを含む、
     請求項7から9のいずれか一項に記載の検出方法。
  11.  前記第2積算ステップは、それぞれ並列に接続された複数の前記遅延回路部において、各遅延回路部が生成する前記第2積算波形データを積算することを含む、
     請求項10に記載の検出方法。
  12.  前記第1積算ステップは、ナノ秒オーダーの分解能を有し、
     前記遅延回路部は、ピコ秒オーダーの分解能を有する、
     請求項10又は11に記載の検出方法。
PCT/JP2019/037443 2018-10-30 2019-09-25 センサ装置及び検出方法 WO2020090291A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US17/279,078 US20210389458A1 (en) 2018-10-30 2019-09-25 Sensor device and detection method
CN201980058246.5A CN112654885B (zh) 2018-10-30 2019-09-25 传感器装置及检测方法
EP19880063.3A EP3875986A4 (en) 2018-10-30 2019-09-25 SENSING DEVICE AND DETECTION METHOD

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018204154A JP6990356B2 (ja) 2018-10-30 2018-10-30 センサ装置及び検出方法
JP2018-204154 2018-10-30

Publications (1)

Publication Number Publication Date
WO2020090291A1 true WO2020090291A1 (ja) 2020-05-07

Family

ID=70463921

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/037443 WO2020090291A1 (ja) 2018-10-30 2019-09-25 センサ装置及び検出方法

Country Status (4)

Country Link
US (1) US20210389458A1 (ja)
EP (1) EP3875986A4 (ja)
JP (1) JP6990356B2 (ja)
WO (1) WO2020090291A1 (ja)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116243328B (zh) * 2023-01-20 2024-06-25 松下神视电子(苏州)有限公司 传感器

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05223928A (ja) * 1992-02-14 1993-09-03 Fujitsu Ten Ltd パルスレーダ
JP2000121726A (ja) * 1998-10-16 2000-04-28 Denso Corp 距離測定装置
DE10025968A1 (de) * 2000-05-25 2001-07-12 Daimler Chrysler Ag Verfahren und Schaltungsanordnung zur Entfernungsmessung nach dem Echolaufzeitprinzip
JP2003084074A (ja) * 2001-06-29 2003-03-19 Sick Ag オプトエレクトロニックセンサ
JP2006078371A (ja) * 2004-09-10 2006-03-23 Keyence Corp 測距センサ及びその設定方法
JP2008107284A (ja) * 2006-10-27 2008-05-08 Omron Corp 反射型光電センサ
JP2015075453A (ja) 2013-10-11 2015-04-20 株式会社キーエンス 光電センサ
JP2015215345A (ja) * 2014-05-08 2015-12-03 ジック アーゲー 距離測定センサ並びに物体の検出及び距離測定方法
JP2018017534A (ja) * 2016-07-26 2018-02-01 オムロン株式会社 測距センサおよび測距方法
WO2018086943A1 (de) * 2016-11-11 2018-05-17 Robert Bosch Gmbh ZEIT-DIGITALWANDLEREINRICHTUNG, LiDAR-SYSTEM UND VORRICHTUNG
JP2018152823A (ja) * 2017-03-15 2018-09-27 株式会社リコー 時間計測装置、および距離計測装置
WO2019049480A1 (ja) * 2017-09-08 2019-03-14 オムロン株式会社 センサ装置および測定方法
JP2019082331A (ja) * 2017-10-27 2019-05-30 オムロン株式会社 変位センサ

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2315045B1 (de) * 2009-10-22 2012-08-01 Sick Ag Messung von Entfernungen oder Entfernungsänderungen
GB2520232A (en) * 2013-08-06 2015-05-20 Univ Edinburgh Multiple Event Time to Digital Converter
EP3062130B1 (de) * 2015-02-26 2022-03-30 Wincor Nixdorf International GmbH Verfahren zur steuerung mindestens einer lichtschranke, steuerungsschaltung und damit ausgestattetes selbstbedienungsterminal
US10053354B2 (en) * 2015-06-17 2018-08-21 Control Products, Inc. Object detection for equipment control

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05223928A (ja) * 1992-02-14 1993-09-03 Fujitsu Ten Ltd パルスレーダ
JP2000121726A (ja) * 1998-10-16 2000-04-28 Denso Corp 距離測定装置
DE10025968A1 (de) * 2000-05-25 2001-07-12 Daimler Chrysler Ag Verfahren und Schaltungsanordnung zur Entfernungsmessung nach dem Echolaufzeitprinzip
JP2003084074A (ja) * 2001-06-29 2003-03-19 Sick Ag オプトエレクトロニックセンサ
JP2006078371A (ja) * 2004-09-10 2006-03-23 Keyence Corp 測距センサ及びその設定方法
JP2008107284A (ja) * 2006-10-27 2008-05-08 Omron Corp 反射型光電センサ
JP2015075453A (ja) 2013-10-11 2015-04-20 株式会社キーエンス 光電センサ
JP2015215345A (ja) * 2014-05-08 2015-12-03 ジック アーゲー 距離測定センサ並びに物体の検出及び距離測定方法
JP2018017534A (ja) * 2016-07-26 2018-02-01 オムロン株式会社 測距センサおよび測距方法
WO2018086943A1 (de) * 2016-11-11 2018-05-17 Robert Bosch Gmbh ZEIT-DIGITALWANDLEREINRICHTUNG, LiDAR-SYSTEM UND VORRICHTUNG
JP2018152823A (ja) * 2017-03-15 2018-09-27 株式会社リコー 時間計測装置、および距離計測装置
WO2019049480A1 (ja) * 2017-09-08 2019-03-14 オムロン株式会社 センサ装置および測定方法
JP2019082331A (ja) * 2017-10-27 2019-05-30 オムロン株式会社 変位センサ

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3875986A4

Also Published As

Publication number Publication date
JP2020071098A (ja) 2020-05-07
JP6990356B2 (ja) 2022-01-12
US20210389458A1 (en) 2021-12-16
EP3875986A4 (en) 2022-07-06
CN112654885A (zh) 2021-04-13
EP3875986A1 (en) 2021-09-08

Similar Documents

Publication Publication Date Title
EP1560041A2 (en) Processing apparatus for pulsed signal and processing method for pulsed signal and program therefor
US6100539A (en) Light sensor with evaluation of the light transit time
JP2011089986A (ja) 距離又は距離変化を測定するためのセンサ及び方法
US6720545B2 (en) Photoelectric sensor, control method therefor and semiconductor integrated circuit therefor
WO2015077614A1 (en) Lidar scanner calibration
JP2010122222A (ja) 光電センサ及び光通過時間原理により距離を測定する方法
US11415696B2 (en) Optical sensor and electronic device
CN109725323B (zh) 位移传感器
JP2010237067A (ja) レーザ測距装置
CN109946706B (zh) 光传感器及电子设备
US11506787B2 (en) Sensor device and measurement method
WO2020090291A1 (ja) センサ装置及び検出方法
WO2013094062A1 (ja) 光波測距装置
JPH07325152A (ja) 距離測定装置
JP6214993B2 (ja) 光電センサ
US6759644B2 (en) Sensor using radiation pulses
JP2006329902A (ja) 測距装置及び測距方法
WO2002048738A1 (fr) Appareil d'horloge, procede d'horloge et telemetre
JP2011027451A (ja) 測距装置および測距方法
CN112654885B (zh) 传感器装置及检测方法
US6717129B1 (en) Photoelectric sensor using radiation pulses
JP2012026853A (ja) 距離センサ
JPH08220231A (ja) 距離測定装置
JPWO2013094062A1 (ja) 光波測距装置
JP2008014677A (ja) 降雪強度計測方法及び降雪強度計測装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19880063

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019880063

Country of ref document: EP

Effective date: 20210531