Programmable encoder for carriage control

Abstract: A programmable encoder having an addressable display device (46) to display an encoder pattern (48) of fiducial marks. The programmable encoder can be programmed to display an encoder pattern on a liquid crystal display. A sensor (50) senses the marks on the pattern and generates sensor signals indicative of the sensed pattern. A controller connected to the sensor receives the sensor signals and outputs control signals which control the movement of a machine, such as an ink jet printer. The programmable encoder can be programmed to display any number of patterns on the addressable display device, and consequently, is highly adaptable to any number of applications requiring position, speed, or acceleration control.

Description: The present invention relates generally to an apparatus and method for determining the position of a moving component and more particularly to a programmable encoder for use in a printing apparatus. In a typical ink-jet printing machine, the carriage must transport the printhead assembly across the page for printing and must also move the carriage to predetermined locations for capping, priming, and other maintenance functions for the printhead and the printhead nozzles thereof. In each of these instances, the carriage is moved across the recording medium in a controlled fashion or is parked at the predetermined locations along the carriage rails. A carriage motor and electronic controller are provided to precisely position the carriage at these locations. Since a motor is typically used, the rotary motion of the motor, is converted to the linear motion of the carriage by, among others, a toothed belt/pulley, a cable/capstan or a lead screw. In addition to these devices, which move the carriage in a linear fashion, the linear motion is controlled and/or kept track of by an encoder. Linear and rotary encoders are used for positioning and timing of movable members. In linear encoders, a linear strip of material includes a plurality of markings called fiducial markings, which are typically illuminated by a source of light and detected by an optical sensor to determine positioning and timing. The optical sensor detects the fiducial markings and generates a series of electrical pulses which are transmitted to a control system for controlling the motion of a movable member, such as a printhead carriage. The linear strip of fiducial markings is mounted on the printer parallel to the anticipated path of the carriage as it traverses across the recording medium. The light source and sensor are mounted on the carriage so that, as the carriage reciprocates back and forth across the recording medium, the combination light source/sensor can illuminate and detect the fiducial markings on the encoder strip for controlling the motion of the printhead carriage. Rotary encoders use a disk coupled to a rotating member in which the disk includes a plurality of spaced marks. The marks are arranged on the disk so that as the marks rotate with the rotating member an illumination source/sensor senses the marks for determining the position, velocity and acceleration the rotating member. The illuminating source and the sensor can be disposed on opposite sides of the rotating disk to sense the passage of marks, if the disk is transparent to light. In this way, a pulse is generated for each increment between adjacent marks of the disk. In both the linear strip and disk encoders, the fiducial markings are typically spaced a predetermined distance apart related to a printing resolution for controlling the motion of the moving member. These fiducial marks are typically produced via a photographic or etching process. Once the strip or disk has been made, the encoder strip or disk is mounted on a support member such as a stationary platform, as in the case of monitoring the position of a printhead carriage, or a moving platform when the disk is mounted on the rotating member. Because it is desirable to accurately control the motion and/or position of the moving member, accurate placement of the encoder strip or disk is critical. Consequently, the encoder strip or disk must be positioned accurately on the support member or the member which is to be controlled. Typically, the positioning of the strip or disk must be made to a fairly tight tolerance to assure accurate control of the moving member. US-A-5,206,645 to Urich describes an apparatus for generating a pulse train in which the apparatus includes a member having a plurality of spaced marks disposed thereon with at least one of the spaced marks being a reference mark. The pulse train has a periodicity defined by the same edge of two successive pulses and the plurality of spaced marks are configured so that the periodicity of the pulse train remains constant. US-A-5,254,919 to Bridges et al. describes an encoder system having an encoder element driven by a motor with a series of segments arranged along a path. Adjacent segments having different properties meet at an edge or transition. Two adjacent segments of different properties comprise a cycle and the encoder element having a number of cycles equally spaced along the path define a relatively course pitch relationship. In accordance with one aspect of the present invention, there is provided a programmable encoder having an addressable display having a display input for receiving pattern signals to cause the addressable display to display a pattern formed according to the signals, a sensor spaced from the addressable display having a sensor output for transmitting sensor signals and a controller having a controller input coupled to the sensor output and a controller output with the controller input receiving the sensor signals and the controller output outputting control signals based on the sensor signals. Pursuant to another aspect of the invention, there is provided a method for controlling the motion of a movable member. The method includes displaying a pattern with an addressable display, scanning the pattern displayed on the addressable display device with a sensor, generating signals according to the scanned pattern and generating a control signal based on the generated signals. An additional aspect of the invention provides for a printing apparatus having a movable member and a programmable encoder determining the position of the movable member in which the programmable encoder includes an addressable display spaced from the movable member. The present invention will now be described by way of example, with reference to the accompanying drawings, in which:- Figure 1 is a partial schematic perspective view of an ink jet printer incorporating a programmable encoder. Figure 2 is a block diagram of an electronic circuit for an ink jet printer incorporating a programmable encoder. Figure 3 is a schematic illustration of a printed image and a pattern displayed on a programmable display device of a programmable encoder. Figure 4 is a flow diagram illustrating a method for generating the pattern displayed in Figure 3. Figure 5 is a schematic illustration of a pattern displayed on the programmable display device. Figure 6 is a schematic depiction of a programmable rotary encoder. Figure 1 illustrates a partial schematic perspective view of an ink-jet printer 10 having an ink-jet printhead cartridge 12 mounted on a carriage 14 supported by carriage rails 16. The printhead cartridge 12 includes a housing 18 containing ink for supply to a thermal ink jet printhead 20 which selectively expels droplets of ink under control of electrical signals received from a controller of the printer 10 through an electrical cable 22. The printhead 20 contains a plurality of ink channels (not shown) which carry ink from the housing 18 to respective ink ejecting orifices or nozzles (also not shown). When printing, the carriage 14 reciprocates or scans back and forth along the carriage rails 16 in the direction of the arrow 24. As the printhead cartridge 12 reciprocates back and forth across a recording medium 26, such as a sheet of paper or a transparency, droplets of ink are expelled from selected ones of the printhead nozzles towards the sheet of paper 26. The ink ejecting orifices or nozzles are typically arranged in a linear array perpendicular to the scanning direction 24. During each pass of the carriage 14, the recording medium 26 is held in a stationary position. At the end of each pass, however, the recording medium is stepped in the direction of an arrow 28. At one side of the printer 10, outside a printing zone which encompasses the width of the recording medium 26, is a maintenance station 30, a portion thereof which is illustrated. At the end of a printing operation, or at other times when necessary, the printhead carriage 14 is parked in a maintenance position confronting the maintenance station 30 which includes a chamber 32 to which a suction device is connected or through which a vacuum is applied through a vacuum line 34. The chamber 32 has attached thereto a maintenance/priming element 36 which contacts the printhead 20 when the carriage is located in the maintenance station position. During a priming operation, a vacuum pump (not shown) applies a vacuum to the vacuum line 34 through a waste tank (not shown) for removing from ink or debris and/or maintaining the ink-jet nozzles of the printhead 20. The maintenance/priming element 36, in contact with the printhead 20, maintains an airtight seal around the printhead nozzles for withdrawing ink or debris from the nozzles. The carriage 14 is moved back and forth in the scanning direction 24 by a belt 38 attached thereto. The belt 38 is driven by a first rotatable pulley 40 and a second rotatable pulley 42. The first rotatable pulley 40 is, in turn, driven by a reversible motor 44 under control of the controller of the ink-jet printer. In addition to the toothed belt/pulley system for causing the carriage to move, it is also possible for controlling the motion of the carriage by using a cable/capstan, lead screw or other mechanisms as known by those skilled in the art. To control the movement and/or position of the carriage 14 along the carriage rails 16, the present invention includes an encoder having an addressable display device 46 which displays a series of programmed fiducial marks in a pattern 48. The pattern 48 is sensed by a sensor 50, such as a photodiode, attached to the printhead carriage 14. The sensor 50 includes a cable 52 which transmits electrical signals representing the sensed fiducial marks of the pattern 48 to a central processing unit (CPU) 54 as illustrated in Figure 2. The addressable display device 46 of the present invention replaces a linear strip of photographically or mechanically reproduced fiducial marks. By using an addressable display device, such as a liquid crystal display (LCD), the present invention includes an encoder which can be programmed with different resolutions and having fiducial marks of different lengths, widths, or locations. Other addressable displays include electroluminescent displays, light emitting diode displays, and TFT LCD's. Display of bar codes having lines of unequal widths is also possible. The liquid crystal display 46 can include a display having a two by two array (dot matrix) of individually addressed pixels or a display having a linear array of vertical segments. The liquid crystal display 46 includes a cable 56 (FIG. 1) for carrying electrical signals to generate a pattern for display. The liquid crystal display 46 is mounted in a stationary portion of the frame of the printer 10. Figure 2 is a block diagram of an electronic circuit for an ink-jet printer incorporating a programmable encoder for controlling the movement of the printhead carriage 14. As illustrated in Figure 2, the central processing unit 54 is connected through a bus 58 to an interface 60 which is, in turn, connected to any number of external devices for inputting information to the central processing unit 54. One such input device might include a keypad in which an operator enters keystrokes for selecting certain patterns to be displayed on the liquid crystal display 46. The CPU 54 is also connected to a memory 62 which might include both read-only memory (ROM) or random-access memory (RAM). The read-only memory might include an operating program for the CPU 54 as well as preprogrammed fiducial markings for display on the liquid crystal display 46. The random access memory might include accessible memory including print buffers for the manipulation of data and for the storage of printing information in the form of bitmaps received from an input device connected to the interface 60. In addition to the memory 62, various printer control circuits 64 are connected to the bus 58 for operation of the printer which include paper feed driver circuits and printhead control circuits as is known by those skilled in the art. Certain printer control circuits are also used for driving the carriage through control of a carriage motor 44 here coupled to the printer control circuits 64. The printhead 20 is also controlled by the CPU 54 according to the content of signals received over the bus 58 and sent to various printer control circuits 64. The printer control circuits 64 control the ejection of inks from the nozzles of the printhead 20. Control of the carriage motor 44 is accomplished by commands generated by the central processing unit 54 in response to signals transmitted from the sensor 50 over the conductor 52. It is also possible to have a controller separate from the CPU of the printer 10 to operate with the sensor 50 and the addressable display 46 which operates as a separate encoder apart from the functions of the CPU 54. As the carriage motor 44 moves the belt 38 by the action of the rotatable pulleys 40 and 42, the movement and the position of the carriage 14 is sensed by the sensor 50 which scans along the pattern 48 displayed by the liquid crystal display 46. The liquid crystal display 46 can be programmed to display a multitude of patterns having fiducial marks arranged in any sequence. The CPU 54 can be programmed to select preprogrammed patterns stored in the memory 62, which are then displayed on the liquid crystal display 46. In addition, the CPU 54 can be programmed to generate patterns upon receiving the appropriate signals over the bus 58 from the interface 60 which has been attached to a computer or other input devices. The CPU 54 can also be programmed to generate patterns for display on the LCD 46 to the content of images to be printed. The patterns which are either stored in ROM or which are generated by the CPU 54 and stored in RAM typically consist of a bitmap of an image consisting of 1s and 0s arranged in columns and rows. For the present discussion, a 1 indicates that a pixel on the liquid crystal display should be lit. Once the pattern for display on the liquid crystal display 46 has been selected, a parallel to serial conversion circuit 68 takes parallel information from the stored bitmap and serializes it for transmission over a conductor 70 coupled to an N- bit shift register 72. The N-bit shift register 72 takes the serialized information and addresses each column of the LCD display 46. A decoder 74 coupled to the bus 58 through a conductor 76 is used to select individual rows of the liquid crystal display 46 so that adjacent rows of the liquid crystal display 46 are successively addressed to thereby cause the information contained in the N bit shift register 72 which is continually updated to form a pattern on the liquid crystal display 46. The programmable pattern 48 displayed on the liquid crystal display 46 of FIG. 1 illustrates some of the advantages of the present invention. For instance, the present invention allows for dynamic resolution changes of the pattern 48 displayed during printing. For example, the carriage 14 is moved from position A to position B using course fiducial marks or marks which are spaced widely apart. The wide spacing of the marks allows for the carriage 14 to be moved fairly rapidly from point A to point B since not as many of the fiducial marks need to be read. The course encoder fiducial marks could be initially displayed and used to move the printhead carriage 14 to a position along the recording medium 26. Once the carriage 14 is located along the carriage rails 16 at the specified position, the pattern displayed on the LCD 46 is changed to include a pattern such as that illustrated from point B to point C. These finely or narrowly spaced fiducial marks could be arranged at a preselected spacing which corresponds to the printing density of an image to be printed by the printhead 20. For instance, if 300 spots per inch are being printed on the recording medium 26, the spacing of marks shown between B and C could also be spaced to correspond to a density of 300 spots per inch. Likewise, if printing density changes during the course of printing on the recording medium or changes from one recording medium to the next, the spacing of fiducial marks from point B to C could be spaced so that other spacings, such as 600 dots per inch, could be performed. In addition to being able to dynamically change the resolution of printing by changing the pattern displayed on the LCD 46, the present invention also allows for dynamically controlling the movement of the carriage 14 according to the content of the image being recorded on the recording medium 26. For instance, as illustrated in Figure 3, an image 80 to be printed on the recording medium includes a first portion 82 of printing followed by a second portion 84 of white space, followed by a third portion 86 of printing. Typically, an image containing white space 84 is traversed by the printhead carriage at the same speed that the printed areas 82 and 86 are traversed. In the present invention, however, the image bitmap which is to be printed upon a recording medium can be previewed for white space and if any white space is found, the programmable encoder can be programmed to accommodate the white space present in the printed image. By generating a pattern on the LCD 46 at areas corresponding to the printing areas 82 and 86 and not generating a pattern on the LCD at areas corresponding to the white space 84, the speed of the carriage can be increased to pass through the white space area at a speed greater than the speed through the printed areas. Figure 3 illustrates the correspondence of the printed pattern 80 to a pattern 88 generated on the LCD 46 useful for printing in white space skipping. To dynamically change the pattern displayed on the liquid crystal display 46 of a programmable encoder, the bitmap image containing information for directing which of the printhead nozzles eject ink upon the recording medium 26 must first be examined. Since printing is typically performed by printing a swath of information having a height equal to the height of the number of nozzles arranged on the printhead, a swath of information must first be retrieved from the bitmap image. As illustrated in the flow chart of Figure 4, the central processing unit in conjunction with memory, operates as a pattern generating circuit and is programmed to start at step 90 by retrieving a swath of information from the bitmap image as shown at step 92. The swath of information would be stored in the random access memory at which point the CPU would, under control of a written program, determine which columns of the swath contain all zeros at step 94. (Zeros typically represent white space and ones typically represent a printed dot in a bitmap.) Once it has been determined which columns of the swath contain all zeros, a count is made to determine how many consecutive columns of the swath contain all zeros at step 96. A count of consecutive columns containing all zeros is made since, it is likely that, for instance, a white space of only two columns wide would not be sufficiently wide to efficiently speed up the motion of the printhead carriage. Consequently, a number N is chosen which is equal to the minimum number of columns for which white space skipping is to be performed. In step 98, if the number of consecutive columns containing all zeros is greater than N, then the location of such columns is stored in random access memory. These column locations are then used to generate a pattern on the liquid crystal display in which no fiduciary marks are displayed which correspond to white space as illustrated in step 100. At step 102, the analysis of one swath of information would be complete and an adjacent swath of information to be printed next would begin the process all over again at step 90. It is also possible to generate widely spaced fiducial marks on the LCD at the portion corresponding to white space to control the carriage. While it is possible to control printing density as illustrated in Figure 1 and to control carriage motion or speed according to white space skipping as illustrated in Figure 3, the ability to enable or disable fiducial marks on demand is an additional advantage of the present invention. For instance, as illustrated in Figure 5, the pattern 104 contains a space 106 in which no fiducial marks are located. Such a pattern is generated when the sensor 50 is marginally positioned on the edge of a fiducial mark when a carriage transport is located at a stationary position. Due to the incorrect positioning of the sensor, oscillations which are introduced by vibration can be prevented by turning off a certain portion of the pattern 104 such as space 106. The present invention not only allows for accurate control of carriage 14 motion but also enables the encoder to generate encoder pulses without any motion of the carriage. For instance, when the printhead 20 is located in the maintenance position in front of the maintenance station 30, it is often desirable to eject ink into the chamber 32 for priming or maintenance operations. Since the present invention allows for the encoder strip 46 to be programmed, the fiducial marks can be made to cycle past the sensor 50 while the carriage is stationary. By cycling the fiducial marks under the sensor 50 while stationary, it is possible to test various functions of the printhead 20 without moving the carriage. Such an encoder is called a bogus encoder. Other advantages of the present invention include the elimination of accurate mechanical alignment of an encoder strip to the frame of a printer. Since the pattern of an encoded strip can now be programmed and displayed on an LCD, the mechanical alignment of the LCD to the printer itself is not as critical when compared to encoders using a premarked strip of fiducial marks. Once the liquid crystal display 46 is in place, the location of the carriage with respect to the carriage rail 16 can be aligned by simply generating a pattern on the LCD 46 aligned with the sensor. The ability to program the liquid crystal display 46 also eliminates accurate positioning of the sensor 50 on the carriage 14. Such programmability not only eliminates strict mechanical tolerances which must be followed during production of the printer itself, but also eliminates any problems of wear and tear and their effect on mechanical alignment during the product life of the individual printer. Periodic checks for alignment of the printhead carriage to the printer could be made and if alignment is not correct, a new pattern could be generated on the liquid crystal display 46 for realignment of the carriage. The programmable encoder is not limited to ink jet printers nor is it limited to encoders using linear strips. As illustrated in FIG. 6, the present invention is equally applicable to rotary encoders which use a rotating disk displaying a set of fiducial marks 110 arranged along a common track concentrically about a center 112 of a disk 114. The disk 114 is attached to a rotating shaft 116 which may, for instance, be coupled to a drum 117 having a photoconductive surface for use in an electrophotographic printing process of a xerographic printer. As previously described for the linear strip displayed on an LCD, an LCD would also be used in the embodiment of Figure 6 to display the fiducial marks 110 for the disk 114. The disk 114 could include an infrared detector for receiving infrared signals carrying the necessary information to display the appropriate programmed arrangement of fiducial marks. The fiducial marks are sensed by a sensor 118 coupled to a central processing unit 120 which processes the signals generated by the sensor 118. The present invention is not limited to printing machines, but can be used in any machine in which it is necessary to determine the position, velocity, or acceleration of a moving portion thereof. In addition, a second programmable display might be located between a first programmable display and the sensor to act as a shutter or stencil to generate a greater variety of displayed patterns.

Claims: A programmable encoder comprising: an addressable display (46) having a display input (56) for receiving pattern signals to cause said addressable display to display a pattern formed according to the signals; a sensor (50) spaced from said addressable display having a sensor output (52) for transmitting sensor signals; and a controller (54) having a controller input (58) coupled to the sensor output (52), and a controller output with the controller input receiving the sensor signals and the controller output outputting control signals based on the sensor signals. The programmable encoder of claim 1, further comprising a pattern generating circuit (62,68,72,74) having a pattern generating circuit output coupled to the display input, said pattern generating circuit output carrying pattern signals. The programmable encoder of claim 2, wherein said pattern generating circuit comprises a memory circuit (62) storing a bitmap of pattern image data. The programmable encoder of claim 2, wherein said pattern generating circuit (62,68,72,74) is programmable. The programmable encoder of claim 3, wherein the bitmap of pattern image data includes a plurality of spaced lines. The programmable encoder of any one of claims 1 to 5, further comprising a movable member (14 or 114) spaced from a fixed member (46 or 118), said sensor being attached to either said movable member or said fixed member, with said addressable display being attached to the other of said members. A method for controlling the motion of a movable member (14), comprising: displaying a pattern (48) with an addressable display (46); scanning the pattern displayed on the addressable display with a sensor (50); generating signals according to the scanned pattern; and generating a control signal based on the generated signals. The method of claim 7, further comprising controlling the motion of the movable member (14) with the control signal. A printing apparatus comprising; a movable member (14); and a programmable encoder (46,50) determining the position of said movable member, said programmable encoder having an addressable display (46), spaced from said movable member. A printing apparatus comprising a movable carriage (14) having a printhead (20) attached thereto, and a programmable encoder (48,50) according to any one of claims 1 to 6, said sensor (50) being attached to said carriage, and said control signals being arranged to control the movement of the printhead.

Inventors: DONAHUE FREDERICK A, FULLER HUGH L, JACOBS KURT L, DONAHUE, FREDERICK A., FULLER, HUGH L., JACOBS, KURT L.
Applicants: XEROX CORP, XEROX CORPORATION
Application year: 1995
Main classification: B41J19
IPC codes: H03M1, B41J19, G01D5