Background of the Invention
From the above discussion it is understood that if the optical apparatus is designed to accommodate a bar coded container of one size for scanning purposes, it will have difficulty in accurately scanning a labeled container of a different size if it is outside the depth of field. Accordingly, the instant invention has been designed to double the depth of field of conventional prior art apparatus by providing a lens system that will produce two focal points and two depths of field. This doubling of the depth of field allows labels on different size containers to be scanned which increases the versatility of the system.
The present invention also overcomes the problem of adjusting the electronic circuitry for the strength of the reflected signal that is received after a symbol has been scanned. As understood in the art, the larger the container the larger the reflected signal from the label with respect to the optics of the system; and the smaller the container the smaller the signal from the label with respect to the optics. The apparatus presently disclosed is able to adjust the receiving circuitry based upon the strength of the reflected signal.
Another shortcoming of the prior art that has been solved by the present invention is the ability to read low contrast bar code labels that may be printed by the trade, and to make adjustments to the system when the output of the beam generating source is decreasing over time.
Summary of the Invention
The present invention has been provided to overcome certain deficiencies of the prior art which have had difficulties in scanning bar coded labels when placed upon cartons of different dimensions, and which are carried by a relatively high speed conveyor belt past a bar code scanning location. The invention relates to an apparatus which is designed to automatically increase the depth of field of an optical system associated with a laser light source. This is accomplished by moving a converging lens with respect to a diverging lens associated with a coherent light source. This lens mechanism which is referred to as autofocus enables same size bar code labels located on either large or small container sizes to be scanned with a high percentage success rate.
Another aspect of the invention provides a technique for re-setting the threshold points of the electronic circuitry based upon the amplitude of reflected signals that are received after the bar coded container has been scanned. It is apparent that in the event that a large coded container is being scanned by a closely positioned scan beam, the reflected signal from the label provides large amplitude excursions, whereas a label of the same size on a small container will produce only a lower amplitude reflected signal due to its distance away from the beam generator. The dual threshold techniques of the invention automatically adjusts collected light which is based upon the proximity of the bar coded label to the scanner's optics.
The present invention also provides apparatus that will enable low contrast as well as high contrast bar coded labels to be decoded by circuitry that utilizes alternating threshold switching. The switching of the threshold level is applied for each generation of a scan cycle initiated by a rotating multi-faceted polygon. When a low contrast label is encountered, the alternating high and low thresholds applied to the reflected analog signal assures that the scanned label will be successfully decoded by the circuitry. This is assured because of the high repetition rate of the facets of the polygon with respect to the container movement.
A technique is also provided in this invention to enable the apparatus to adjust the circuitry by a proportional amount with respect to the diminution of the power output of the laser scanning beam.
It is therefore an object of the invention to provide a new and improved apparatus for scanning bar code labels on containers of various sizes.
It is also an object of the invention to successfully decode low contrast bar code labels, and to adjust the circuitry when there is a loss of power by the beam generating source.
Brief Description of the Drawings
FIG. 1 is a representation of the dual threshold apparatus of the invention.
FIG. 2 is a block diagram of the electronic circuitry utilized with the apparatus of FIG. 1.
Description of the Preferred Embodiment
Referring now to FIG. 1 of the drawings, a bar code apparatus in schematic form is shown to illustrate the automatic focus technique of the invention.
The apparatus provides in a preferred embodiment a helium-neon laser device 10, which generates a coherent light source resulting in a narrow beam of light. The light beam travels along the beam axis 12 and is directed into a first lens element 14 which is negative or a diverging type. The negative lens 14 is used to expand the beam as it exits and prior to entering a second lens 16 located in a telescope tube 16. The second lens 29 is a positive or convex lens and is utilized to converge the beam of light as it is received from lens 14. The telescope tube 16, which holds the lens 29, is attached to a solenoid 18, and when there is no input signal the tube remains in a forward or normal position. For purposes of description the normal position of telescope 16 is shown in FIG. 1 with a dotted outline. In the non-energized state, a spring (not shown) associated with the solenoid 18 maintains the tube 16 outside its frame 17 where it is conditioned to read containers which are deemed to be large.
When the solenoid 18 is activated by a required input signal it causes the telescopic tube 16 and the lens 29 to move leftwardly as viewed in the drawing and as indicated by the solid outline of the unit. As the beam continues on its axis 12 after exiting from the tube 16, it continues on a folded optical path for scanning a bar coded label 9 located upon an outside surface of a container 7. A second smaller container 7a is depicted in order to contrast different sizes of units that can be successively scanned by the apparatus disclosed with the same bar code label. The folded path travelled by the beam along axis 12 is shown by striking obliquely positioned mirror 13 and a facet 20 of the rotating polygon 11. As a result, the beam 12 is applied to label 9, 9a of respective containers 7, 7a for purposes of scanning the coded information contained therein. A photo detector 15 is located in proximity to mirror 13 for purposes that will become clear hereinafter.
The apparatus of FIG. 1 is utilized to provided two focal points for the beam of light 12 emanating out of the laser generating device 10. A particular focal point is selected based upon either container 7, 7a whose size is detected prior to the bar code label being scanned by the beam of light. If a label on a container being scanned falls within the near field or far field of a focal point, all labels on the container within the field will be successfully decoded. A successful scan and decode requires that the beam is sufficiently narrow or focused that it can distinguish between the bars and spaces of a particular label.
On the other hand, if the container being scanned falls in a more distant range of sizes as determined by a photo-eye the solenoid 18 is activated, which causes the positive lens within the telescope tube 16 to be moved to the position indicated by the solid outline of FIG. 1. The new focal point that is obtained by the movement of tube 16 produces a different depth of field from the previously described focal point and associated depth of field. This lens movement enables a label associated with a small sized container 7a to be successfully read.
The above described operation may be summarized as follows: the depth of field associated with each focal point is twenty (20) inches. When both depths of field are added to one another the result is forty (40) inches. Therefore, the ability to change the focal point of the present invention has doubled the scanner's depth of field thereby allowing containers 7, 7a which are within different size ranges to be successfully scanned.
The automatic focusing of the above described optical system may be accomplished by electronic circuitry as shown in FIG. 2 of the drawings. Let it be assumed that a container bearing a coded label is being carried on a conveyor belt (not shown) at a relatively high speed and past the scanner apparatus of FIG. 1; and, let it be further assumed that the container 7a being scanned is within the smaller size range. As the container whose coded label is being scanned passes photo-eyes 30,32 it causes a blocking of photo-eye 30, but not photo-eye 32 in view of its small size.
The momentary blockage of photo-eye 30 causes a negative or low pulse (L) to be generated which is applied to the clock input (C) of the J-K flip-flop 34. A positive voltage and ground signals are respectively applied to the J and K inputs of the flip-flop. Since the photo-eye 32 is not blocked by the particular container carried by the conveyor, the signal applied to the re-set terminal (R) remains high (H). The small circle applied to the input terminals indicates that a negative transition clock signal is required to enable the flip-flop 34. The setting or latching of flip-flop 34 causes the outputs Q and Q to become H and L, respectively.
The L voltage from Q is applied to the negative terminal of a solid state relay 50 as one of its input signals; a second input to the positive terminal of relay 50 is a positive or H signal and the third input is an AC signal. Since all three signals are present at the input terminals of relay 50 and two are of the proper polarity it is activated so that the AC signal appears at its output. The AC signal present at the relay output terminal is applied to the solenoid 18 through its input terminals. The activation of the solenoid 18 causes the telescope tube 16 to be pulled back within the frame 17. In other words, the positive lens within the tube 18 is brought closer to the fixed negative lens 14. Therefore, since the label 9a positioned upon the small container 7a being scanned is deemed to be at a long distance from the scanner's optics, the system is automatically adjusted with a required focal point and depth of field. This automatic adjustment will enable bar code labels on small containers of various sizes to be successively scanned as long as they fall within the depth of field.
When a large container 7 carrying a bar coded label 9 is to be scanned, the photo-eye 32 will be blocked thereby generating a negative transition which is applied to the R terminal of the flip-flop 34. It should be noted that in actual practice the photo-eye 32 is positioned slightly ahead of photo-eye 30 in a conveyor belt environment. Therefore, the flip-flop 34 will be re-set by the L signal applied to terminal R and, the generation of a negative or L signal transition by photo-eye 30 to terminal C will have no effect on flip-flop 34. Therefore, flip-flop 34 will remain in a re-set condition and output terminals Q and Q will be at L and H levels, respectively. The H signal applied to the negative terminal of relay 50 will not activate this component and there will be no AC output signal produced. Since the solenoid 18 will not be activated the telescopic tube 16 will be maintained in a forward position by a spring device (not shown) as illustrated in dotted form in FIG. 1. As a result of this movement another focal point is created by the apparatus disclosed so that large containers may be readily and accurately scanned.
The output signal from the J-K flip-flop 34 is simultaneously applied to an analog switch 36 when switch SW1 is closed. Hence, when a symbol on a small container is being scanned a L signal from the flip-flop 34 is applied to the inputs X,Y of the analog switch 36. The L signal applied to inputs X,Y causes the threshold signal from variable resistor 40 at input A to be applied to output terminal C. The input of A is transferred to the output of C by circuit action of the switch 36. This output signal is applied to the positive input of operational amplifier 46 and, to the negative terminal of operational amplifier 44 after passing through an operational amplifier 42; this amplifier has unity gain and operates as an invertor 42. Amplifier 44, 46 are connected to one another as a differential amplifier or comparator 50. The data input or reflected signal, which is in analog form, received from the scanned coded label is differentiated (not shown) prior to being applied to the positive and negative input terminal of respective amplifiers 44, 46. Since the amplitude of the differentiated signal due to the reflected signal from small container 7a is low, the threshold signal applied to comparator 50 through switch 36 appropriately clips the signal at a low level to recover the required data. As a result of the clipping action, the width of the resulting signal allows narrow bars and spaces or wide bars and spaces to be detected for eventual transfer to a decoder (not shown).
The outputs of comparator 50 comprising amplifiers 44, 46 are respectively directed into the input terminals A, B and C of the single-shot multivibrator 48. The C input is a clear input terminal to the single-shot 48 and together with input B receives the output of amplifier 46; whereas, the input A receives the output of amplifier 44. The small circle at the terminal indicates that a negative transition signal is required for activation. The clipped signals from comparator 50 are applied to a single-shot 48 which acts to square the signals in a manner so that the bars and spaces of the coded label are a properly shaped and measured pulse train. This pulse train contains high and low signals of a duration which equate to bars and spaces of the label being decoded.
When a label 9 located on the large container 7 passes the photo-eye 32, it becomes blocked in view of its height. A negative going transition signal is generated which is applied to the R terminal of flip-flop 34. This L signal re-sets flip-flop 34 and causes Q to become H. The H signal applied to inputs X,Y causes an input from resistor 38 to be applied to the B terminal of analog switch 36. The output C is applied to invertor 42 which activates comparator 50 and single-shot 48 in the manner previously described. The only difference is that the reflected signal from the label 9 will be of a large amplitude and, therefore, the application of the signal from resistor 38 causes a high threshold signal to be applied to comparator 50. This high threshold clips the differentiated signal that originates as input data applied to amplifier 33 and produces a pulse train of high and low signals of proper duration which equate to bars and spaces. Therefore, it should be evident that the system disclosed is able to accommodate low and high amplitude signals that are reflected from scanned labels attached to respective small and large containers.
The present invention also provides a capability for successfully scanning bar coded labels where the printing of the code is defective in that the ink is lightly deposited with respect to the bar elements. This results in a low contrast label for scanning. When this problem occurs the amplitude of the reflected analog signal from the label is not sufficiently large, and therefore inadequate signal is obtained for decoding. Circuitry has been provided in FIG. 2 which obviates this deficiency and is referred herein as alternating threshold switching. This circuitry is initiated by a photocell 15 in the form of a diode which is located in proximity to the mirror 13 (see FIG. 1) and receives the scanning beam emanating from the laser 10 after being reflected off the polygon 11. The diode is referred to herein as a prescan diode since its proximity herein to mirror 13 is prior to it being applied to the labels 9, 9a on respective containers 7,7a. The photocell 15 is further defined as a silicon solar cell which generates a voltage proportional to the amount of light that is detected from the rotating polygon 11. Hence, if the laser 10 and its output beam 12 were to deteriorate over time, the output of photocell 15 would similarly deteriorate.
As the reflective polygon 11 rotates the laser beam develops successive scan lines. These scan lines will eventually impinge upon the prescan diode 15. Therefore, each scan develops a positive voltage as the beam strikes the pre-scan diode 15. This signal is directed into operational amplifier 31, which operates as an invertor providing a second input signal where a ground signal is the first input signal. The output of amplifier 31 consisting of a series of pulses is directed into operational amplifier 35 which acts as a comparator and whose output is connected to the clock terminal C of a dual D flip-flop 37. The Q output of the flip-flop 37 is connected to the input D and causes flip-flop 37 to toggle with each pulse that is generated off facet 20, for example, of polygon 11 (see FIG. 1). Flip-flop 37 operates by feeding back the state of output Q and, at the first positive pulse at the clock terminal, the same state appears at output Q and the opposite state at terminal Q. Thus, when Q is positive D is also positive. Therefore, when the flip-flop 37 is activated by a positive pulse initiated by the scan diode 15, signal action causes output Q to be positive and Q to become negative. Upon the next diode generated signal which emanated from facet 21 of the rotating polygon 11, the Q output will reverse in polarity from that above described.
The alternating positive and negative pulses from the Q output of dual D flip-flop 34 is applied through a closed switch SW2 to the analog switch 36 in the manner previously described with respect to the output Q from the J-K flip-flop 34. However, when SW2 is closed switch SW1 is open since the system must operate in one mode or alternatively in a second mode as determined by the condition of the switches. The alternating threshold signal operates in the manner previously described with respect to the mode where a container is being scanned at a distance from or close to the optics. As above described, by alternating the resistances 38,40 and the inputs X,Y to switch 36 a strong or weak reflected signal from high and low contrast labels can be successfully accommodated. In other words, when a low contrast label is being scanned the resulting low amplitude signal is handled by the circuitry of FIG. 2 as if a label 9a on container 7a were being scanned; on the other hand, when a high contrast label is being scanned, it is similar to the operation where label 9 on container 7 is being scanned. The only departure from the operation of mode one and two is that in the latter mode the alternating threshold or facet generating pulses are consecutive and uninterrupted, whereas the pulses produced by the detection of large and small containers are intermittent.
Therefore the alternating threshold feature of the invention in combination with the selection of the input signal to analog switch 36 assures that a low contrast label will have a high probability of being successfully scanned, since during the period that multiple scans are being applied to the label one-half of the pulses from flip-flop 37 will be L. The L pulses will condition analog switch 36, comparator 50 and multivibrator 48 to read the low and high contrast label properly.
Another aspect of the circuitry of FIG. 1 is that the functioning of the prescan diode 15 is always present in both modes of operation, and irrespective of whether switches SW1 and SW2 are open or closed. As previously mentioned, the output of the prescan diode 15 is directed into operational amplifier 31 whose output is transferred to operational amplifier 47. The output of amplifier 47 is applied to resistors 38,40 and sets the base threshold level of the variable resistor circuit. Hence, if the output level of the laser 10 were to diminish, the diminution would be sensed by the prescan diode 15. This signal alteration is transferred to the variable resistor circuit 38,40 so that, in effect, the circuitry involved in switching and comparing continues to be fully operational despite the laser output deterioration. This is a significant feature of the circuitry in FIG. 2 since it allows the system to track the output of the laser 10 and to make automatic changes when necessary.
While I have illustrated and described the preferred embodiments of my invention, it is to be understood that these are capable of variations and modifications, and I therefore do not wish to be limited to the precise changes and alterations as fall within the purview of the following claims .