i) Field of the Invention
The present invention relates to a carriage driving apparatus that drives a carriage of a printer or the like by a motor, and a motor control method for controlling the motor. The present invention more particularly relates to a carriage driving apparatus and a motor control method characterized by the determination of parameters used in the control of the motor.
ii) Description of the Prior Art
A conventional carriage of a printer or the like is connected to an endless belt driven by a motor, and is moved in a scanning direction by driving the endless belt through a pulley and the like in accordance with the rotation of the motor. To adjust the moving speed of the carriage to a desired value, the control of the motor is performed based on a variety of, parameters. For example, when the motor is controlled by so-called PID control, in which feedback control is performed using P control (Proportional control), I control (Integral control) and D control (Differential control) together, parameters such as P gain (Proportional gain), I gain (Integral gain) and D gain (Differential gain) are used.
When the apparatus temperature of a printer is low while driving a carriage, oil applied to the mechanism of the printer is hardened, resulting in a larger load to the motor than a load at normal temperature. Then, the apparatus temperature is detected by a sensor, and the control amount is determined in accordance with the detected temperature (see Publication of Unexamined Japanese Patent Application No. 7-163182).
The load applied to the motor for driving the carriage varies also depending on the assembly error or variation present among individual apparatuses such as printers. Conventionally, there is no effective measures to eliminate the influence of such variation in the load among individual apparatuses, which results in variation in the control accuracy among individual apparatuses such as printers.
Therefore, an object of the present invention is to provide a carriage driving apparatus that drives a carriage of a printer or the like by a motor, and a motor control method for controlling a motor, according to which variation in the control accuracy among apparatuses can be substantially eliminated.
To attain this and other objects, there is provided a carriage driving apparatus which comprises: a motor for driving a carriage; a storage device that stores a plurality of sets of parameters necessary for controlling the motor; and a control device that selects one set of parameters stored by the storage device and controls the motor based on the one set of parameters, wherein the one set of parameters to be selected are determined based on the behavior of the carriage in a constant speed area when the carriage is driven by the motor.
The behavior of the carriage in the constant speed area when the carriage is driven corresponds substantially to the amount of load applied to the drive system of the carriage. By determining the one set of parameters to be selected based on the behavior of the carriage in the constant speed area, the influence of the individual variation with respect to the load on the control can be successfully eliminated.
Accordingly, in the present invention, the influence of the variation of the load caused by the individual assembly error or variation on the control can be substantially eliminated. And thus, occurrence of variation in control accuracy among individual apparatuses is substantially inhibited, which results in provision of products with stable performance.
In another aspect of the present invention, the one set of parameters described above include at least two parameters among P gain, I gain and D gain when controlling the motor by PID control and a variety of parameters which characterize a driver of the motor.
P gain, I gain and D gain when controlling the motor by PID control and the variety of parameters which characterize the driver of the motor has an extremely close relationship with improvement of the control accuracy. The present invention, according to which a set of parameters including at least two of the parameters are selected as described above, provides an additional advantage that the control accuracy may be further improved.
The load applied to the drive system changes also in accordance with the target speed of the carriage in the constant speed area. In a further aspect of the present invention, the motor is driven based on each set of parameters with respect to each target speed of the carriage in the constant speed area, and the one set of parameters to be selected with respect to the each target speed is determined based on the behavior of the carriage in the constant speed area.
According to the present invention constituted as above, changes in load in accordance with the target speed can be coped with, which results in an advantage that the control accuracy may be further improved even when the target speed is variously changed.
In another aspect of the present invention, a set of parameters, based on which the minimum value of the speed of the carriage is the largest when the motor is driven based on the each set of parameters, is determined to be the one set of parameters to be selected with respect to the each target speed. A set of parameters, based on which the speed of the carriage converges to the target speed most appropriately, are selected as the optimum set of parameters. The speed of the carriage usually overshoots once during acceleration time and subsequently undershoots, and then gradually converges to the target speed. In the present invention, a set of parameters based on which the value during the first undershoot in the constant speed area is the closest to the target speed are to be selected.
When the set of parameters to be selected are determined as described above, it is only necessary to observe the behavior of the carriage in the early stage of the control, allowing a simplified process as well as a short-time observation. Accordingly, the present invention provides an additional advantage that the process of determining one set of parameters to be selected may be simplified and accelerated.
In a further aspect of the present invention, a set of parameters, based on which one of the maximum value and the minimum value of the speed of the carriage in the constant speed area is beyond a predetermined range with respect to the target speed, are determined not to be the one set of parameters to be selected with respect to the target speed.
When the maximum value or the minimum value of the speed of the carriage in the constant speed area is beyond a predetermined range with respect to the target speed, it is conjectured that the, set of parameters are not at all suitable for the drive system of the carriage or that some unexpected trouble has occurred. Thus, the set of parameters are determined not to be the one set of parameters to be selected with respect to the target speed. Accordingly, the present invention provides an advantage that the process of determining one set of parameters to be selected may be performed further appropriately, resulting in further improved control accuracy.
As described above, the behavior of the carriage in the constant speed area corresponds substantially to the amount of load applied to the drive system of the carriage. In yet another aspect of the present invention, the storage device stores a plurality of sets of parameters respectively expected to be optimum in accordance with the amount of load to the drive system of the carriage.
According to the present invention, in which one appropriate set of parameters are selected from among the plurality of sets of parameters respectively expected to be optimum in accordance with the amount of load, further improved control accuracy can be achieved.
The load applied to the drive system of the carriage varies also depending on the temperature of the drive system. In a further aspect of the present invention, the carriage driving apparatus further comprises a temperature detection device for detecting the temperature in the vicinity of the drive system of the carriage, and the control device selects the one set of parameters additionally referring to the temperature detected by the temperature detection device.
According to the present invention, there is an advantage that further improved control accuracy regardless of the temperature can be achieved.
At lower temperatures, the influence of the temperature on the load to the drive system of the carriage is extremely large, exceeding the influence of the difference among the individual drive systems. In another aspect of the present invention, the one get of parameters to be selected by the control device at a low temperature is the same regardless of the behavior of the carriage in the constant speed area.
According to the present invention, the process of determining one set of parameters to be selected may be simplified and the amount of required memory can be reduced.
In a further aspect of the present invention, the one set of parameters to be selected by the control device at a low temperature is also determined referring to the behavior of the carriage in the constant speed area.
According to the present invention, the control can be performed reflecting the difference among the individual drive systems, resulting in further improved control accuracy.
In yet another aspect of the present invention, there is provided a carriage driving apparatus which comprises: a motor for driving a carriage; a storage device that stores a plurality of sets of parameters necessary for controlling the motor; a control device that selects one set of parameters stored by the storage device and controls the motor based on the one set of parameters; and a temperature detection device that detects the temperature in the vicinity of the drive system of the carriage, wherein the control device selects the one set of parameters referring to the amount of load to the drive system of the carriage when the carriage is driven by the motor and the temperature detected by the temperature detection device.
According to the present invention, the one set of parameters appropriately correspond to the variation in load among individual drive systems and the temperature of the drive system. Therefore, the influence of the variation in load among individual drive systems on the control as well as occurrence of variation in control accuracy among individual drive systems can be substantially eliminated. Moreover, the present invention provides further improved control accuracy by also referring to the temperature when selecting the one set of parameters.
In a further aspect of the present invention, the storage device stores a plurality of sets of parameters respectively expected to be optimum in accordance with the amount of load to the drive system of the carriage and the temperature in the vicinity of the drive system of the carriage.
According to the present invention, further improved control accuracy can be achieved by selecting an appropriate set of parameters from among the plurality of sets of parameters.
In yet another aspect of the present invention, there is provided a motor control method for driving a motor based on one set of parameters selected from among a plurality of sets of parameters necessary for driving and controlling the motor and stored by a storage device, wherein toad applied to the motor is previously found out and the one set of parameters are selected based on the load. According to the present invention, it is possible to substantially eliminate the influence of the variation in load, among individual motors on the control of the motor and to control the motor properly by selecting an appropriate set of parameters in accordance with the amount of load.
The load applied to the drive system of the motor varies also depending on the temperature of the drive system. In a further aspect of the present invention, there is provided a motor control method, wherein the temperature in the vicinity of the drive system of the motor is detected and the one set of parameters are selected additionally referring to the detected temperature.
According to the present invention, there is an advantage that further improved control accuracy regardless of the temperature can be achieved.
The motor control method as described above may be applied to the driving of various mechanisms such as a scanner other than the driving of a carriage as well as to an apparatus other than a printer.
A preferred embodiment according to the present invention will now be described with reference to the drawings in which:
In the present embodiment, the present invention is applied to a multifunction apparatus 100 with a printer function, a copier function, a scanner function, a facsimile function and a telephone function.
As shown in
The document reading unit 2 is designed, although not shown, to be pivotable in upward and downward directions around a horizontal axis at its rear end. When an upper lid 2a is opened upward, there are provided a mounting glass for mounting a document thereon, and an image scanner device for scanning the document under the mounting glass. By manually lifting the document scanning unit 2 upward, replacement of a not-shown ink cartridge in the ink jet printer 3 and maintenance of the printing mechanism 10 (see
The carriage 31 is connected to an endless bolt 37 provided along the guide shaft 34, and the endless belt 37 is spread between a pulley 86 of a CR motor 35 disposed near one end of the guide shaft 34 and an idle pulley (not shown) disposed near the other end of the guide shaft 34. Specifically, the carriage 31 is designed to reciprocate in the width direction of the printing paper 33 (i.e. the scanning direction) along the guide shaft 34 by the driving force of the CR motor 35 transmitted through the endless belt 37.
A timing slit 38 provided with slits having a specified width at specified intervals (for example, 1/150 inch or approximately 0.17 mm) is disposed under and along the guide shaft 34. Under the carriage 31 is disposed a detection portion comprising a photointerruptor including at least one light emitting element and two or more light receiving elements arranged on both sides of the timing slit 38 and facing with each other. The detection portion comprising the photointerruptor constitutes a linear encoder 39 (see
The detection portion constituting the linear encoder 39 outputs, as shown in
The CR motor 85 is connected to the ASIC 46 through a motor drive circuit 4 in addition to the paper feed unit 1 and the document scanning unit 2 connected to the ASIC 46. Signals from the above-mentioned linear encoder 39 are input into the ASIC 46, while signals from a thermistor 47 for measuring the apparatus temperature of the multifunction apparatus 100 are input into the ASIC 46 through an AID converter 48. The thermistor 47 is provided at a place within the multifunction apparatus 100 which is to be affected little by the heat from a substrate or the like. To the ASIC 46, additionally, an LCD 81 and an operation panel 82 (see
Furthermore, a parallel interface (parallel I/F) 87 capable of connecting a parallel cable to, a USB interface (USB I/F) 88 capable of connecting a USB cable to and an NCU (Network Control Unit) 89 capable of connecting a line such as a telephone line to are connected to the ASIC 46 to allow connection with external devices. The NCU 89 is also connected to the bus 45 through a modem 90.
The group of registers 5 include a start setting register 51 for starting the CR motor 35, a position register. 52 for setting a border position between each two of the above-described areas regarding the movement of the carriage 31, a PWM value register 53 for setting a variety of PWM values used when controlling the rotating speed of the CR motor 35 by open-loop control, a target speed register 54 for setting a target speed of the carriage 31 in each of the above-described areas, and a gain register 55 for setting a variety of gains used when controlling the rotating speed of the CR motor 35 by feedback control. As shown in
The carriage positioning portion 6 is provided with an edge detection portion 60 and a position counter 61. The edge detection portion 60 detects, based on the encoder signals ENC1, ENC2 from the linear encoder 39, edge detection signals (here an edge of ENC1 while ENC2 is at a high level) indicating the start/end of each cycle of the encoder signal ENC1 and the rotating direction of the CR motor 36 (i.e. the forward direction when the edge detection signals indicate trailing edges of ENC1, and the reverse direction when the edge detection signals indicate a leading edge of ENC1).
The position counter 61 detects what number slit from the home position the carriage 31 is at by counting up based on the edge detection signals when the rotating. direction of the CR motor 35 detected by the edge detection portion 60 and thus the moving direction of the carriage 31 is the forward direction, while by counting down based on the edge detection signals when the rotating direction of the CR motor 35 is the reverse direction. In other words, each position set in the position register 52 in the group of registers 5 is indicated by a count value at the position counter 61.
The carriage positioning portion 6 is further provided with a cycle counter 63 for counting generating intervals of the edge detection signals from the edge detection portion 60 by clock signals, and a speed converter portion 64 for calculating the moving speed of the carriage 31 based on the distance ( 1/150 inch) between the slits in the timing slit 38 and time tn−1 (=Cn−1×clock cycle) which is specified by a retained value Cn−1 counted by the cycle counter 63 at the previous cycle of the encoder signal ENC1.
The motor control portion 7 outputs control signals as described below based on these data (the position and the moving speed of the carriage 31) input from the carriage positioning portion 6 and a variety of data set in the group of registers 5. Specifically, the motor control portion 7 includes an open-loop control portion 71 for generating a motor control signal by open-loop control and a feedback control portion 72 for generating a motor control signal by feedback control, both based on the input data.
The open-loop control portion 71 performs open-loop control from when the carriage 81 starts its movement until the carriage 31 reaches the first target change-over position or the first target speed. Specifically, the control is performed by first generating a motor control signal based on the initial PWM value, and then adding a given number of the acceleration PWM values per given time period. Then, the feedback control portion 72 performs feedback control (PD control) based on the second target speed as well as the acceleration proportional gain and the acceleration differential gain until the carriage 31 reaches the second target change-over position or the second target speed. The feedback control will be described in detail later.
Subsequently, the feedback control portion 72 performs feedback control (PD control) based on the ultimate target speed as well as the transition proportional gain and the transition differential gain. Once the carriage 51 enters the constant speed area, the feedback control portion 72 performs feedback control (PID control) based on the ultimate target speed as well as the constant speed proportional gain, the constant speed differential gain, and the constant speed integral gain. When the carriage 31 reaches the deceleration start position, the open-loop control portion 71 performs open-loop control by subtracting a given number of the deceleration PWM values per given time period.
As shown in
The motor control signal obtained as a result of these calculations is turned into a PWM signal at the PWM generating portion 8, and the PWM signal is input to the motor drive circuit 4. As shown in
Also, in the present embodiment, three cases of a heavy load case, a light load case and a standard load case are prepared in accordance with the difference in load among individual drive systems of the carriage 31 (and thus the drive systems of the CR motor 35). With respect to each of these cases, three kinds of tables 42a–42c containing the above parameters expected to be optimum at normal temperature and one kind of table 42d containing the above parameters expected to be optimum at lower temperatures are stored on the ROM 142.
In the present embodiment, the normal temperature means the apparatus temperature of 18° C. or higher (in this case, the ambient air temperature is usually 7° C.–8° C. or higher), while the lower temperatures mean temperatures lower than the above specified normal temperature. At lower temperatures, the influence of the temperature on the load to the drive system of the carriage 31 is extremely large, exceeding the influence of the difference among the individual drive systems. This is the reason why just one kind of table 42d is prepared corresponding to lower temperatures regardless of the load in the present embodiment.
A process performed in the multifunction apparatus 100 constituted as above according to the present embodiment will next be described. FIG, 10 is a flowchart showing the table setting process executed by the CPU 41 in the final step of the manufacturing process of the multifunction apparatus 100 or during maintenance by a service technician. This process is executed in the environment with, a normal or a slightly higher ambient temperature(20° C.–28° C.), for example, in the above manufacturing process.
As shown in
Similarly, in S3 and S4, the carriage 31 is made to operate in accordance with a standard table 42b (S3), and the speed changes during the operation are measured (S4). Also similarly, in S5 and S6, the carriage 31 is made to operate in accordance with the table for heavy load 42c (S5), and the, speed changes during the operation are measured (S6). In subsequent S7, selection of a table in which the lowest speed in the constant speed area is the fastest among the tables 42a–42c is performed.
In S7, if the maximum value or the minimum value of the speed of the carriage 31 in the constant Speed area when using a table 42 is beyond a predetermined range with respect to the ultimate target speed, the table 42 is not selected. For example, if even the speed during an overshoot is lower than the ultimate target speed or even the speed during an undershoot is higher than the ultimate target speed as indicated by a chain double-dashed line in
As described above, the optimum table 42 for the drive system of the carriage 31 in the multifunction apparatus 100 is selected in S7. Selections are also performed under respective conditions of the variety of ultimate target speeds and the both forward and reverse directions, and each identification number and the like of each selected table 42 corresponding to each ultimate target speed and each direction is stored on the EEPROM 44. When storage on the EEPROM 44 is completed, the CPU temporarily terminates the present process.
If it is determined that the apparatus temperature is normal, or 18° C. or higher (S11: YES), a table 42a is selected in accordance with the ultimate target speed in the present job (corresponding to the resolution necessary for the job) from the tables 42 selected in the above described table setting process in
On the other hand, if it is determined that the apparatus temperature is lower than 18° C. (S11: NO), the carriage 31 is moved by using the table for low temperature 42d, and then the present process is temporarily terminated. During the movement of the carriage 31 by the carriage moving process, printing data is processed by another routine, and ink is discharged from the print head 30.
In the multifunction apparatus 100 of the present embodiment, as described above, the control of the CR motor 35 is performed by using the table 42 previously selected based on the behavior of the carriage 31 in the constant speed area. Since the selected table 42 properly reflects the variation among the individual multifunction apparatuses 100 with respect to the load to the drive system of the carriage 31, the influence of the variation among the individuals with respect to the load on the control can be sufficiently eliminated by the control using the table 42. Accordingly, it will be possible to substantially prevent occurrence of the variation in control accuracy with respect to the driving of the carriage 31 among the individual multifunction apparatuses 100.
Furthermore, in the present embodiment, each optimum table 42 is set with respect to each of the ultimate target speeds of the carriage 31 as well as each of the forward and reverse directions, the control accuracy may be further imp roved. In the present embodiment, in which the apparatus temperature is also referred to and the different table 42d is used at a low temperature, the control accuracy may be further improved regardless of the temperature.
It is to be understood that the present invention is not limited to the above described embodiment, but may be practiced in various forms within the scope not departing from the gist of the present invention. For example, the table setting process in
While a table 42 in which the lowest speed during an undershoot is the fastest is selected in the above described table setting process, a table 42 in which the highest speed during an overshoot is the slowest or a table in which the amplitude of changes in speed is the smallest may be selected. According to the present embodiment, however, it is only necessary to observe the behavior in speed immediately after the carriage 31 enters the constant speed area, which may simplify and accelerate the table setting process.
Moreover, it may be possible to repeat the measurement of the lowest speed or the like a plurality of times under the same conditions and select a table 42 based on the accumulated value (i.e. the average value). In this case, an optimum table 42 can be selected in a more secure manner, which may result in further improved control accuracy.
Further, it may be possible to prepare, as the table for low temperature 42d, three kinds of tables, i.e. a table for heavy load and low temperature, a table for standard load and low temperature and a table for light load and low temperature, in accordance with the load to the drive system of the carriage 31. By Selecting a table from among the three, further improved control accuracy can be achieved. In addition to the table for low temperature 42d, a table for high temperature 42 may be prepared.
Number | Date | Country | Kind |
---|---|---|---|
2003-027524 | Feb 2003 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5317668 | Kobayashi | May 1994 | A |
5748206 | Yamane | May 1998 | A |
5998956 | Saito | Dec 1999 | A |
6114825 | Katz | Sep 2000 | A |
6411008 | Otsubo et al. | Jun 2002 | B1 |
6600286 | Tanaka et al. | Jul 2003 | B1 |
6619778 | Igarashi | Sep 2003 | B1 |
6729712 | Kobayashi et al. | May 2004 | B1 |
20010007458 | Purcell et al. | Jul 2001 | A1 |
20020172510 | Kobayashi et al. | Nov 2002 | A1 |
20030043228 | Igarashi | Mar 2003 | A1 |
Number | Date | Country |
---|---|---|
A 4-99680 | Mar 1992 | JP |
A 5-254217 | Oct 1993 | JP |
A 7-163182 | Jun 1995 | JP |
A 9-202014 | Aug 1997 | JP |
Number | Date | Country | |
---|---|---|---|
20040184860 A1 | Sep 2004 | US |