Laser scanner and method for reading an optical code on an object

Abstract: A laser scanner for bar codes which comprises laser beam sources (1,2) that scan a reading area (26) by virtue of scanning means (9); means are provided to keep activated the laser source focused onto the region of the area that contains the code and to provide a signal that is equivalent to the code that has been read.

Description: The present invention relates to a reader device (hereinafter termed "laser scanner" for the sake of brevity) for reading optical codes such as characters with different reflectance values, for example bar codes. The use is known of two or more lasers, suitable to be focused at different distances, inside a single scanner, so as to increase the depth of field for the reading distance in bar code readers. An example of this technique is described in European Patent Application published on April 15, 1992 under Serial No. 0480348. In the known system, the lasers related to the various distances are activated sequentially and alternately, one for each scanning operation, and if one scan is found to contain the code, all subsequent scans are performed by the same laser, until the code remains present; once this situation ends, scanning resumes with cyclic alternation of the lasers. Another known method entails the activation of the laser related to the reading distance by measuring, by means of a barrier of photocells external to the scanner, the height of the object that bears the code to be read. These systems have drawbacks: in the first case, the actual scan rate is equal to the real scan rate divided by the number of lasers being scanned; the second method requires the use of external photocells and is furthermore effective only if the objects on which the code is placed have a regular shape. A defect of both systems is that only one focusing is possible during an individual scan. In other words, it is not possible to simultaneously read two codes that are aligned but located on planes that are at different distances from the scanner. EP-0517958-A2 discloses a laser scanner comprising two laser systems focused for different working ranges and selection means including a range finder for selectively activating one of the two laser systems. The aim of the present invention is to improve the way a laser scanner reads an optical code and calculates a distance of the scanned object from the laser scanner. This aim is achieved by a laser scanner according to claim 1 and by a method according to claim 14. Document US-A-4 569 078 discloses the measure of the distance between a scanner and an object to be scanned by the measure of the phase-shift of the electric signal received from the sensor means relative to the modulating signal. However said measure of the phase-shift as used for detecting the shape of the three dimensional code and is therefore not in the field of scanners reading codes by detection of amplitude variations corresponding to reflectance variations. A scanner according to this invention can be used to read codes and also to measure the distance and position of objects and codes located in the space covered by the scan. Further characteristics of the invention will become apparent from the following detailed description on the basis of the accompanying drawings, wherein: figure 1 is a block diagram of a scanner according to an embodiment of the invention provided with two laser units; figure 2 is a block diagram of a modified detail of the scanner of figure 1; figure 3 is a diagram of a detail of the scanner of figure 1; figure 4 is a block diagram of a scanner according to another embodiment of the invention provided with one laser unit; figure 5 is a block diagram of a scanner according to another embodiment of the invention with three laser units; figure 6 is a diagram of a detail of the scanner of figure 5. With reference to figure 1, the scanner comprises two perfectly identical laser beam source units 1 and 2; each unit is composed of a power supply circuit 1a, 2a and of a modulating circuit 1b, 2b that activates modulated emission only when a high-frequency modulating signal is present at its input. Each source unit 1, 2 furthermore includes a laser diode 1c, 2c connected to the output of the modulating circuit 1b, 2b and an optical assembly 1d, 2d for variable collimation, such as to allow the focusing of the emitted beam at different distances. In the example of figure 1, one assembly focuses the emitted beam onto a nearer region or reading field and the other assembly focuses it onto a more distant reading field. Conveniently, the two reading fields have an overlapping region in order to ensure the necessary continuity of the region to be scanned. The beam 3 arriving from the optical assembly 1d is sent through a semitransparent mirror 4. In the same manner, the beam 5 from the optical assembly 2d is reflected by the mirror 6 onto the semitransparent mirror 4; the mirrors 4 and 6 are orientated so that the beams 3 and 5 that leave the mirror 4 have the same direction, so as to produce a unidirectional beam 7. The unidirectional beam 7 is directed onto a polygonal rotor 9 through the hole of a mirror 8 arranged obliquely with respect to said beam. Said rotor 9 comprises multiple peripheral mirrors which, by means of the rotation of the rotor, scan a preset reading area in which the characters to be read, e.g. a bar code, are located. The beam reflected by the reading area is reflected by said rotor 9 and by the mirror 8 towards an optical receiving system 10 that concentrates the light on a photoelectric sensor 11 which converts the light signal into an electric signal. The amplifier 12 amplifies said electric signal until it reaches a level sufficient for subsequent processing. The signal at the output of the amplifier 12 is sent to a phase demodulator 13. The modulation signal is produced by a local oscillator 14 and is sent to the laser unit 1 (signal 15) or to the laser unit 2 (signal 16), depending on the position assumed by a selector 17. The modulating signal produced by the local oscillator 14 has a sinusoidal plot that follows the rule cos(Ω o t) at a high frequency, for example 40 MHz. The selector 17 comprises an analog switch 18 which, depending on a signal that arrives from a decision circuit 19, connects the oscillator 14 to the laser unit that is focused on the distance of the bar code. The beam emitted by the laser unit 1 or 2 and modulated according to the rule cos(Ω o t), after being scanned in a cyclic manner over the reading area and reflected onto the amplifier 12, is present at the output thereof as a signal whose carrier frequency is the same modulation frequency as that of the laser beam and contains, as amplitude modulation, the signal due to the differences in reflectance of the point of the surface struck by the beam (scanning spot), phase-shifted in proportion to the time required to cover the sum of the distances between the laser unit 1 or 2 and the reflection surface and between the reflection surface and the sensor 11. Accordingly, at the output of the amplifier 12 a signal Acos(Ω o t + Φ) is obtained, where A is the amplitude of the signal indicating reflectance, Ω o is the pulse of the modulating signal and Φ is the phase shift angle of the received signal with respect to the modulating signal. The modulating signal cos(Ω o t) arriving from the local oscillator 14 and the signal at the output of the amplifier 12, Acos(Ω o t + Φ), are sent to a mixer 20 of the phase demodulator 13, which is in practice a synchronous demodulator that can provide an output signal A cos Φ. The same signal Acos(Ω o t + Φ) is sent to an amplitude demodulator 21 that extracts its amplitude characteristic A. Analog signals are present at the output of the mixer 20 and of the amplitude demodulator 21; these signals, sent to an analog divider 22, provide, at the output thereof, a signal which is proportional to cos Φ. The signal A is furthermore sent to a digitizer 23, where it is converted into pulses the duration of which corresponds to the variations in reflectance. The output of the digitizer 23 is connected to a decoder 24 which receives the signal cos Φ from the analog divider 22. The decoder 24 also receives a signal processed by an angular position sensor 25 which is associated with the rotor 9. The sensor 25 detects the beginning of each scanning step and allows the decoder to provide in output the information related to the angular position (distance) of the reflectance area (represented by the signal cos Φ at the output of the analog divider 21) and to the variations (represented by the signal A at the output of the digitizer 23) in relation to the angular position of the beam that scans the reading area. As mentioned initially, the laser units 1, 2 are preset to focus the emitted beams onto two adjacent fields which form the reading area by mutually integrating along an overlapping region. In order to determine which one of the two laser units 1, 2 must remain activated (i.e. with modulation present) in the reading field where the characters to be read are present, the signal cos Φ is sent not only to the decoder 24 but also to the decision circuit 19, which is substantially a comparator that compares said signal cos Φ with a reference value corresponding to the region of separation (overlap) between the two focusing fields of the laser units 1, 2. On the basis of this comparison, the signal at the output of the circuit 19 presets the selector 17 for the activation of one or the other of the laser units 1, 2. The described scanner is particularly suitable for reading the bar codes 26 applied to products meant for distribution. If the local oscillator 14 emits a 40-MHz modulating signal having a corresponding wavelength of 7.5 meters, the return signal reflected by the bar code 26 will be back in phase with the emitted signal every 7.5 meters. Taking into account the fact that the optical path is double, the useful working field is halved and then again halved by providing only a phase shifting up to 180°. A working field of approximately 1.8 meters is thus obtained: such a field is four times shorter than the wavelength and constitutes a wide enough value within which the codes to be read must be kept with respect to the scanner. The operation of the scanner according to this embodiment of the invention, although evident from the above description, is as follows. Assume that the laser unit 1 is preset to focus onto a reading field closer to the scanner than the field for which the laser unit 2 is preset. If the selector 17 is in the position for connecting the oscillator 14 to the laser unit 1 and the bar code 26 is in the reading field of the laser unit 1, the spot of the beam emitted by the laser unit 1 is correctly focused and at the output of the amplifier 12 a signal Acos(Ω o t + Φ) is obtained which, once processed by the phase demodulator 13, provides the decision circuit 19 with a signal which, when compared with the reference signal, allows the circuit 19 to process a signal that can keep the selector 17 in the position for connecting the oscillator and the laser unit 1. Throughout this connection, the analog signal A corresponding to the code that has been read reaches the digitizer 23 and starting therefrom, in pulse form, reaches the decoder 24 together with the phase shift signal cos Φ arriving from the divider 22 and with the angular position signal arriving from the sensor 25. If the code 26 is not in the focusing field of the laser unit 1, the signal cos Φ at the output of the demodulator 13 causes the processing of a signal that can switch the selector 17 and allow the modulation of the laser beam emitted by the unit 2, which is focused onto the field in which the code 26 is present. The steps then follow one another in the above described manner. In the practical execution of the device, the mixer 20 is constituted by a PMB2330 integrated circuit produced by the German company Siemens AG. Figure 2 illustrates an embodiment of the phase demodulator 13, which consists of two mixers 27 and 28, the inputs of which receive the signal Acos(Ω o t + Φ) provided by the amplitude amplifier 12. While the mixer 27 receives the modulating signal with the rule cos(Ω o t), the mixer 28 receives the same signal advanced by π/2 by the circuit 29, i.e. sin(Ω o t). Accordingly, the signal AcosΦ is present at the output of the mixer 27 and the signal AsinΦ is present at the output of the mixer 28. These signals are processed by the analog divider 22 into the output signal tanΦ, i.e. again a signal which is a function only of the phase shift angle matching the distance between the code 26 and the scanner. Figure 3 illustrates a possible embodiment of the decision circuit 19 and of the switch 17. The inputs of the operational amplifier 30 are connected to a circuit 31 for providing a reference signal, and respectively to the phase shift signal cosΦ. The output of the operational amplifier 30 provides a direct signal at the output 32 and an inverted signal, produced by a NOT logic gate 34, at the output 33. The direct and inverted signals, depending on their polarity, respectively switch on and off the two switching circuits 35 and 36 connecting the local oscillator 14 to the laser units 1, 2. The switching circuits can be provided, for example, with devices that are commercially known by the code PSW1211 and are manufactured by the US company MiniCircuits. The invention is susceptible to numerous modifications and variations, all of which are within the scope of the inventive concept. Figure 4 is the block diagram of a scanner having a single laser unit 37. In this case, the laser unit 37 is modulated directly and continuously by the signal cos(Ω o t) arriving from the local oscillator 14. In this case, the distance-indicating signal cosΦ is used only to provide information to the decoder as to the distance of the scanner from the code. Figure 5 is a block diagram of a scanner with three laser units 38, 39 and 40 for reading three fields: close, intermediate and distant. The selector 41 and the decision circuit 42 are accordingly designed for three outputs and two reference distance thresholds respectively. The associated decision circuit 42 and selection circuit 41 are illustrated in figure 6. In particular, the decision circuit 42 comprises two operational amplifiers 43 and 44 having a first input connected to a respective circuit 45, 46 that provides a positive or negative reference signal and a second input connected to the phase shift signal cos Φ. The outputs 47, 48 of the operational amplifiers 43, 44 are connected to the switching circuits 49, 50 which are related to the laser units 38, 40 for focusing onto the outermost reading fields. Said outputs 47, 48 are connected to the inputs of a NAND logic gate 51, at the output 52 of which there is a signal only in the presence of a signal on one of the outputs 47 and 48. Accordingly, the signal at the output 52 connected to the switch 53 related to the laser unit 39 allows to focus the laser beam on the code which is located in an intermediate reading field. In a further embodiment, as an alternative to the decoder means there are C.P.U. (Central Processing Unit) means providing data equivalent to the distance from the scanner of the objects that are in its measurement field, independently of the presence or absence of bar codes or other similar symbols. It is also possible to provide a scanner having a single laser diode and using the techniques according to the present invention. Said scanner will be able to read codes with the depth of field of a single laser, but will also be able to report, in addition to the code it has read, the distance of the code from the scanner.

Claims: Laser scanner for reading an optical code (26) on an object, comprising: means (1, 2; 37; 38, 39, 40) for emitting a laser beam (3, 5, 7), including at least a laser unit (1, 2) and modulation means (14) generating a modulating signal for the laser unit (1, 2); optical scanning means (9) for directing the laser beam (3, 5, 7) onto the object (26); optical receiving means (10) for directing the light that returns from the scan onto: sensor means (11, 12) for converting received light into an electric signal; code decoding means (21, 23, 24), for receiving said electric signal from the sensor means (11, 12), for extracting an amplitude characteristic (A) from said electric signal and for providing data that are equivalent to the content of the code (26) ; characterized by comprising means (13) for providing a distance-indicating signal on the basis of a phase-shift of said electric signal received from the sensor means (11, 12) relative to the modulating signal; and processing means for calculating a distance of the scanned object (26) from the laser scanner as a function of the provided distance-indicating signal. Laser scanner according to claim 1, wherein said modulation means include a local oscillator (14), and wherein said means (13) for providing a distance-indicating signal comprise phase demodulating means (13), for detecting phase shift of said electric signal received from the sensor means (11, 12) relative to the modulating signal and providing said distance-indicating signal as a function of the detected phase-shift. Laser scanner according to claim 2, wherein the phase demodulating means include a phase demodulator (13), receiving signals from both the sensor means (11, 12) and the local oscillator (14), and being capable of measuring the phase difference between the signal received from the sensor means (11, 12) and the signal received from the local oscillator (14). Laser scanner according to claim 3, wherein the sensor means comprise: a photoelectric sensor (11), and an amplifier (12) receiving signals from the photoelectric sensor (11) and sending amplified signals to the phase demodulating means (13). Laser scanner according to any of claims 2 to 4, wherein the local oscillator (14) has a frequency such that the corresponding wavelength is higher than or equal to four times the working field. Laser scanner according to any of preceding claims, comprising: means (1, 2; 38, 39, 40) for emitting at least a second laser beam (3, 5, 7), the emitted beams (3, 5, 7) being focused at different distances from the laser scanner decision circuit (19; 42) for activating one of a first and at least a second laser beams (3, 5, 7) according to the calculated distance of the code (26) to be read. Laser scanner according to claim 6 as dependent from claim 2, wherein also the at least a second laser beam (3, 5, 7) is modulated by the local oscillator (14). Laser scanner according to any of preceding claims, wherein the code decoding means comprises an amplitude demodulator (21), a digitizer (23) and a decoder (24). Laser scanner according to any of claims 3 to 8, wherein the phase demodulating means (13) comprises a mixer (20; 27, 28) and an analog divider (22). Laser scanner according to any of claims 3 to 8, wherein the phase demodulating means (13) comprises two mixers (27, 28) and an analog divider (22). Laser scanner according to claim 10, comprising a π/2 phase shift circuit (29) between the two mixers (27, 28). Laser scanner according to any of preceding claims, comprising an angular position sensor (25) which detects the beginning of each scanning step. Laser scanner according to claims 8 and 12, wherein the decoder (24) is connected both to the angular position sensor (25) and - via the digitizer (23) - to the amplitude demodulator (21), so that the decoder (24) can start decoding only when an optical code is detected within the scan. Method for reading an optical code (26) carried by an object (26) and for measuring a distance of the object, comprising the following steps: producing a modulating signal; modulating a laser scanner with said modulating signal to have the laser scanner emit a laser beam; directing the laser beam to the object and scanning the object (26) along a scan line; receiving the light that returns from the object; converting the received light into an electric signal; processing said electric signal by extracting an amplitude characteristic (A) from said electric signal and decoding the optical code (26); characterized by further comprising the steps of: providing a distance-indicating signal on the basis of a phase-shift of said electric signal relative to said modulating signal; calculating the distance of the scanned object as a function of the provided distance-indicating signal.

Inventors: MARCHI PAOLO, MARCHI, PAOLO
Applicants: DATALOGIC SPA, DATALOGIC S.P.A.
Application year: 1994
Main classification: G06K7
IPC codes: G06K7