WO2007142127A1 - 制御装置および制御方法 - Google Patents

制御装置および制御方法 Download PDF

Info

Publication number
WO2007142127A1
WO2007142127A1 PCT/JP2007/061136 JP2007061136W WO2007142127A1 WO 2007142127 A1 WO2007142127 A1 WO 2007142127A1 JP 2007061136 W JP2007061136 W JP 2007061136W WO 2007142127 A1 WO2007142127 A1 WO 2007142127A1
Authority
WO
WIPO (PCT)
Prior art keywords
period
time
edge
falling
pulse signal
Prior art date
Application number
PCT/JP2007/061136
Other languages
English (en)
French (fr)
Inventor
Kazutoshi Ishikawa
Original Assignee
Sharp Kabushiki Kaisha
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Kabushiki Kaisha filed Critical Sharp Kabushiki Kaisha
Priority to EP07744524A priority Critical patent/EP2037569A4/en
Priority to US12/303,524 priority patent/US8058831B2/en
Publication of WO2007142127A1 publication Critical patent/WO2007142127A1/ja

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • G01D5/246Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains by varying the duration of individual pulses
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/18Character-spacing or back-spacing mechanisms; Carriage return or release devices therefor
    • B41J19/20Positive-feed character-spacing mechanisms
    • B41J19/202Drive control means for carriage movement
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position

Definitions

  • the present invention relates to a control device and a control method for controlling driving means such as a motor.
  • a conventional ink jet recording apparatus is mounted on a printer, a facsimile machine, and a copying machine, and is used as a recording means for recording an image on a recording medium of paper or a plastic thin plate based on image information.
  • Such an ink jet recording apparatus performs recording by ejecting ink droplets from a print head onto a recording medium, making it easy to make the recording means compact and recording high density images at high speed.
  • it is a non-impact system with low running costs and is characterized by low noise.
  • the ink jet apparatus also has an advantage that it is easy to record a color image using multicolor inks.
  • a carriage motor that reciprocally drives a carriage mounted with a print head
  • an auto sheet feeder (ASF) motor that sends a recording medium to a printing position
  • a recovery system motor that performs head cleaning
  • a recording medium There is a transport motor that sends each print scan.
  • a stepping motor is often used as the drive source for reasons such as easy cost reduction and simple control.
  • FIG. 34 is a block diagram showing an electrical configuration of the servo control system 1 used in the conventional inkjet apparatus.
  • a command voltage which is a control command
  • the DC shaft 2 to be controlled rotates the motor shaft based on the command voltage.
  • the rotation angle and rotation speed of the motor shaft are measured by the speed measuring device 4 and the position measuring device 5, respectively.
  • the measured position information and speed information are fed to the servo controller 3.
  • the servo controller 3 outputs a command voltage for controlling the DC motor 2 based on the given target position or target speed.
  • Such speed measuring device 4 and position measuring device 5 are realized by an encoder 6 described later.
  • FIG. 35 is a diagram showing a simplified configuration of a conventional encoder 6.
  • the encoder 6 detects light emitted from a light emitting diode (Light Emitting Diode: LED) 7 through a code wheel 9 and generates a signal.
  • a portion 9 a that transmits light and a portion 9 b that does not transmit light are arranged at a predetermined interval L.
  • photodiodes 8a are arranged at predetermined intervals, and the light detected by each photodiode 8a is converted into an electric signal and output.
  • the output electric signal is output from the comparator 10. As a result, the differential output signal 11 is output.
  • FIG. 36 is a diagram illustrating the waveform of the differential output signal 11 output by the comparator 10 and the waveforms of the two electrical signals 12a and 12b input to the comparator 10.
  • the differential output signal 11 has a waveform that is inverted at the intersection 13 of the two electrical signals 12a and 12b output by each photodiode 8a.
  • the duty ratio of the differential output signal 11 is theoretically 0.5.
  • the duty ratio changes due to various factors.
  • One of the major factors is the sensitivity difference of the photodiode 8a.
  • Fig. 37 shows the waveforms of the differential output signal 11 output by the comparator 10 and the waveforms of the two electrical signals 12a and 12b input to the comparator, and shows the sensitivity of the photodiode 8a.
  • the waveform when there is a difference is shown.
  • the sensitivity of the photodiode 8a appears as an amplitude difference between the electrical signals 12a and 12b.
  • FIG. 37 shows the differential output signal 11 when the amplitude of one electrical signal 12a is smaller than that of the other electrical signal 12b. Therefore, as shown in FIG. 37, it can be seen that the sensitivity difference of the photodiode 8a changes the duty ratio of the differential output signal 11.
  • the differential output signal 11 of the encoder 6 has the highest accuracy in the period T (see, for example, JP-A-2002-34274).
  • the output signal of the encoder has the highest accuracy in the period. Therefore, in order to obtain more accurate information, for example, the one-edge sampling method used by counting the period from the rising edge of the output signal to the next rising edge. An equation is used.
  • the paper is fed at a high speed at first, and servo control is performed at a low speed just before the stop position. After that, just before the target stop position, the printer enters the stop mode and stops the paper at the target position. In this case, stabilizing the constant speed servo control just before the stop position has a significant effect on the paper stop accuracy.
  • the ASF motor When the ASF motor is driven at such a low speed, the change in the output signal of the encoder becomes small, so that the interval for updating the position information and the speed information becomes long. As a result, if the interval for updating the position information becomes longer than the servo cycle, the position information is not updated. In this case, it is determined that the vehicle is stopped and the speed information is set to 0.
  • the command voltage is raised and output to the ASF motor in order to move the recording paper to the target position.
  • the actual speed may not be 0.
  • the servo control is not stabilized, for example, the speed becomes too high and the recording paper passes the target position.
  • the servo control is not stable, printing cannot be performed at the desired position on the recording paper.For example, if the recording paper cannot be stopped at the target position and stopped past the target position, there is a gap between the print data. When the recording paper stops before the target position, there is a problem that the print data overlaps. Also, if the recording paper is too large for the target position, it is necessary to move the recording paper in the reverse direction and return the recording paper to the target position, which slows the printing speed.
  • the speed information does not become 0 even if the speed is actually 0. Occurs.
  • An object of the present invention is to provide a control device and a control method for improving the speed detection accuracy of a driven body and stably controlling a driving means.
  • the present invention is a control device for controlling the driving means,
  • Periodic signal acquisition means for acquiring a pulse signal having a period according to the speed of the driven body displaced in accordance with the driving of the driving means;
  • Edge detecting means for detecting either one of a rising edge and a falling edge of the pulse signal
  • a time measuring means for starting time counting from the detection time
  • calculation means for calculating a period between the edge and the edge detected immediately before the edge;
  • a storage means for storing the period of the edge calculated by the calculating means according to a time series
  • a comparison means for comparing the length of time between the time measured by the time measuring means and the latest edge period stored in the storage means
  • the output means outputs the latest period based on the comparison result of the comparison means when the timekeeping time is shorter than the period, and when the timekeeping time is not shorter than the period,
  • a special feature is to output a value obtained by adding a predetermined additional time to the timing time.
  • the present invention is a control device for controlling the driving means
  • Periodic signal acquisition means for acquiring a pulse signal having a period according to the speed of the driven body displaced in accordance with the driving of the driving means;
  • Rising edge detecting means for detecting a rising edge of the pulse signal
  • a falling edge detecting means for detecting a falling edge of the pulse signal
  • rising timing means for starting time counting from the detection time
  • a falling timing means that starts counting from the detection time;
  • a rising calculating means for calculating a rising period between the rising edge and a rising edge detected immediately before the rising edge; and a falling edge detected by the falling edge detecting means Is detected, a falling calculation means for calculating a falling period between the falling edge and the falling edge detected immediately before the falling edge, and a rising period calculated by the rising calculation means according to a time series Rising memory means for storing;
  • a falling storage means for storing a falling cycle calculated by the falling calculation means according to a time series
  • First comparing means for comparing the length of time between the rising time measured by the rising time measuring means and the latest falling cycle stored in the falling storage means
  • Second comparing means for comparing the length of time between the falling time measured by the falling time measuring means and the latest rising cycle stored in the rising storage means
  • Output means for outputting a value based on the comparison result
  • a control device including output means for outputting the longer value.
  • the output means includes
  • the second comparison means Based on the comparison result of the second comparison means, from when the rising edge of the pulse signal is detected until the falling edge of the noise signal is detected, when the falling timing is shorter than the rising period, The latest rise cycle is output, and the fall timing is shorter than the rise cycle If not, it is characterized by outputting a value obtained by adding a predetermined additional time to the rise time measurement time.
  • the present invention is a control device for controlling the driving means
  • Periodic signal acquisition means for acquiring a pulse signal having a period according to the speed of the driven body displaced in accordance with the driving of the driving means;
  • Edge detection means for detecting an edge of the pulse signal
  • the time measurement means starts counting from the detection time
  • calculation means for calculating a period between the edge and the edge detected immediately before the edge;
  • a storage means for storing the period of the edge calculated by the calculating means according to a time series
  • a comparison means for comparing the length of time between the time measured by the time measuring means and the previous period stored in the storage means from the detection time of the edge;
  • Output means for outputting a value obtained by adding the latest period to the longer one of the timed time or the two previous periods based on the comparison result of the comparing means.
  • the output means outputs a value obtained by adding the latest period to the previous two period when the timed time is shorter than the previous two periods based on the comparison result of the comparison means. If the timekeeping time is not shorter than the previous two cycles, a value obtained by adding a predetermined time to the value obtained by adding the latest cycle to the timekeeping time is output. .
  • the present invention is a control device for controlling the driving means
  • First period signal acquisition means for acquiring a first pulse signal having a period corresponding to the speed of the driven body displaced in accordance with the driving of the driving means;
  • Second period signal acquisition means for acquiring a second pulse signal having a phase shift of approximately 90 degrees in electrical angle from the first pulse signal
  • first rising time counting means that starts counting from the detection time
  • first falling time counting means that starts counting from the detection time
  • second rising time measuring means for starting time counting from the detection time
  • second falling time counting means for starting time counting from the detection time
  • Second falling calculation means for
  • First rising storage means for storing the first rising period calculated by the first rising calculation means in time series
  • First falling storage means for storing the first falling period calculated by the first falling calculation means in time series
  • Second rising storage means for storing the second rising period calculated by the second rising calculation means in time series
  • the second falling cycle calculated by the second falling calculating means is stored in time series.
  • First comparing means for comparing the first rising time measured by the first rising time measuring means with the latest second falling period stored in the second falling storage means
  • a second comparing means for comparing the first falling time measured by the first falling timing means with the latest second rising period stored in the second rising storage means
  • Third comparing means for comparing the second rising time measured by the second rising time measuring means with the latest first rising period stored in the first rising storage means
  • a fourth comparison means for comparing the second falling time measured by the second falling timing means with the latest first falling period stored in the first falling storage means
  • Output means for outputting a value based on the comparison result
  • the second rising clock time or the first rising cycle Output the value of the error, shift or long error
  • the second falling time is measured based on the comparison result of the fourth comparing means.
  • a control unit including output means for outputting a longer value of the first falling period.
  • the output means includes
  • the first rising clock time is the latest based on the comparison result of the first comparison means. If it is shorter than the second falling period, the latest second falling period is output, and if the first rising time is not shorter than the latest second falling period, the first rising time is preset. Output a value with additional time added,
  • the first time measured by the second comparison means is the latest. If the first rise time is shorter than the second rise cycle, the latest second rise cycle is output. If the first fall time is not shorter than the latest second rise cycle, the first fall time is added. Output the value with time added,
  • the second rising clock time is the latest based on the comparison result of the third comparison means. If shorter than 1 rise period, the latest first rise period is output, and if the second rise time is not shorter than the latest first rise period, an additional time is added to the second rise time in advance. Output the value
  • the second falling time is measured based on the comparison result of the fourth comparing means. If it is shorter than the latest 1st falling cycle, the latest 1st falling cycle is output, and if the 2nd falling time is not shorter than the latest 1st falling cycle, the 2nd falling time is preset. And output means for outputting a value obtained by adding a predetermined additional time.
  • the present invention is a control device for controlling the driving means
  • First period signal acquisition means for acquiring a first pulse signal having a period corresponding to the speed of the driven body displaced in accordance with the driving of the driving means;
  • Second period signal acquisition means for acquiring a second pulse signal having a phase shift of approximately 90 degrees in electrical angle from the first pulse signal
  • Edge detecting means for detecting rising edges and falling edges of the first pulse signal and the second pulse signal, respectively;
  • first rising time counting means that starts counting from the detection time
  • first falling time counting means that starts counting from the detection time
  • a second rising time counting means that starts counting from the detection time; and a second rising time that starts counting from the detection time when the falling edge of the second pulse signal is detected by the edge detecting means.
  • a second period is calculated which calculates a second period between the falling edge and the rising edge of the second pulse signal detected immediately before the falling edge.
  • a fourth period is calculated which calculates the fourth period between the rising edge and the falling edge of the second pulse signal detected immediately before.
  • First storage means for storing the first period calculated by the first calculation means according to a time series
  • Second storage means for storing the second period calculated by the second calculation means according to a time series
  • Third storage means for storing the third period calculated by the third calculation means according to a time series
  • a fourth storage means for storing the fourth period calculated by the fourth calculation means according to a time series
  • First comparison means for comparing the first rise time measured by the first rise time measurement means with the latest first period stored in the first storage means
  • a second comparing means for comparing the second rising time measured by the second rising time measuring means with the latest second period stored in the second storage means
  • a first falling time measured by the first falling timing means, and the third memory A third comparing means for comparing the latest third period stored in the means, a second falling time measured by the second falling time measuring means, and a latest time stored in the fourth storage means.
  • a fourth comparison means for comparing with the fourth period;
  • Output means for outputting a value based on the comparison result
  • the first rising clock time is the latest first time. If the period is shorter than the first period, the latest total period of the first period, the second period, the third period, and the fourth period is output, and if the first rise time is not shorter than the latest first period, the first period Output the rise time and the first total period of the latest 2nd period, 3rd period, and 4th period respectively,
  • the second rising time is the latest second time. If the period is shorter than the period, the total period of the period is output, and if the second rise time is not shorter than the latest second period, the second rise time is set to the latest first period, third period, and fourth period, respectively. Outputs the second total period of the sum of
  • the first falling time is the latest third time based on the comparison result of the third comparing means. If the period is shorter than the period, the total period of the period is output, and if the first falling clock time is not shorter than the latest third period, the first falling clock time and the latest first period, second period, and fourth period respectively. Outputs the third total period of the sum with the cycle,
  • Output means for outputting a fourth total period that is the sum of the period and the control unit.
  • the first comparing means includes a first rising time measured by the first rising time measuring means and a latest fourth period stored in the fourth storing means. Compare and
  • the second comparing means compares the second rising time measured by the second rising time measuring means with the latest first period stored in the first storing means
  • the third comparing means compares the first falling time measured by the first falling timing means with the latest second period stored in the second storage means
  • the fourth comparing means compares the second falling time measured by the second falling time measuring means with the latest third period stored in the third storage means
  • the output means includes
  • the first rising time is measured based on the comparison result of the first comparing means. If the period is shorter than the period, the period total period is output. If the first rise time is not shorter than the latest period 4, the first total period is output.
  • the second rising time is the latest first time. If the period is shorter than the cycle, the cycle total period is output. If the second rise time is not shorter than the latest first cycle, the second total period is output.
  • the first falling time is measured based on the comparison result of the third comparing means. If the period is shorter than the period, the period total period is output. If the first fall time is not shorter than the latest second period, the third total period is output.
  • the period total period is output, and if the second falling time is not shorter than the latest third period, the fourth total period is output.
  • the first comparison means compares the first total period with the cycle total period
  • the second comparing means compares the second total period and the cycle total period; the third comparing means compares the third total period and the period total period; The fourth comparing means compares the fourth total period with the period total period, and the output means
  • the first total period is shorter than the period total period based on the comparison result of the first comparison means from the time when the falling edge of the second pulse signal is detected to the time when the rising edge of the first pulse signal is detected If the first total period is not shorter than the total cycle period, the first total period is output.
  • the fourth total period is shorter than the period total period based on the comparison result of the fourth comparison means from the detection of the falling edge of the first pulse signal to the detection of the falling edge of the second pulse signal
  • the cycle total period is output, and if the fourth total period is not shorter than the cycle total period, the fourth total period is output.
  • the output means includes
  • the rising edge of the second pulse signal is detected after detecting the rising edge of the first pulse signal.
  • a third total period is output based on the comparison result of the third comparison means until a puddle is detected
  • a third additional total period of the third total period and a predetermined additional time is output
  • the fourth total period is output based on the comparison result of the fourth comparison means from the detection of the falling edge of the first pulse signal to the detection of the falling edge of the second pulse signal
  • the fourth additional total period is the sum of the fourth total period and the predetermined additional time.
  • the value output by the output means is valid when it is less than or equal to the boundary value set based on the speed of the driven body, and invalid when the value is larger than the boundary value. It is characterized by that.
  • the present invention is a control device for controlling the driving means
  • Acquisition means for periodically or irregularly acquiring speed information according to a predetermined amount of displacement of a driven body that is displaced according to driving of the driving means;
  • Acquisition information storage means for storing the speed information acquired by the acquisition means according to a time series
  • Control value generating means Based on the determination means for determining whether or not the acquired speed information is a constant value within a predetermined range over a predetermined time immediately before being stored in the acquired information storage means When the acquired speed information is a constant value, a control value obtained by adding a predetermined value to the speed information is output. When the acquired speed information is not a constant value, the speed information is output as a control value. Control value generating means;
  • Speed calculating means for calculating the speed of the driven body based on the control value output by the control value generating means and a predetermined amount of displacement of the driven body;
  • control means for controlling the drive means based on the speed calculated by the speed calculation means.
  • the present invention is a control device for controlling the driving means
  • Acquisition means for periodically or irregularly acquiring speed information corresponding to a predetermined amount of displacement of the driven body that is displaced according to the driving of the driving means;
  • Acquisition information storage means for storing the speed information acquired by the acquisition means according to a time series; and A period calculation unit for calculating a predetermined period immediately before the speed information acquired by the acquisition unit is within a predetermined range based on the speed information stored in the acquisition information storage unit;
  • a period comparison means for comparing the length of time between the fixed period calculated by the fixed period calculation means and the speed information stored in the acquired information storage means before the fixed period;
  • the speed is acquired based on the speed information acquired by the acquisition means and the predetermined displacement amount of the driven body.
  • the driven body is driven based on the speed information acquired by the acquiring means and a predetermined displacement amount of the driven body. Calculating a provisional speed of the body, subtracting a predetermined value from the provisional speed to calculate a speed of the driven body, and controlling the driving means based on the speed calculated by the speed calculation means And a control means.
  • the speed calculation means includes
  • the object to be measured is based on the speed information acquired by the acquisition means and the predetermined displacement amount of the driven body. Calculate the speed of the driver,
  • the provisional speed of the driven body is calculated based on the speed information acquired by the acquisition means and a predetermined displacement amount of the driving body, The speed of the driven body is calculated by multiplying the temporary speed by a predetermined attenuation rate.
  • the attenuation rate is set so as to decrease as the length of the period of time increases.
  • the present invention is a control method for controlling the driving means
  • the present invention is a control method for controlling the driving means
  • the speed information corresponding to the predetermined amount of displacement of the driven body that is displaced according to the drive of the drive means is acquired regularly or irregularly,
  • a control value obtained by adding a predetermined value to the speed information is output. If the acquired speed information is not a constant value, the speed information is controlled. Output as a value,
  • FIG. 1 is a control method characterized by controlling a driving means based on a calculated speed.
  • FIG. 1 is a block diagram schematically showing an electrical configuration of the servo control system according to the first embodiment of the present invention.
  • FIG. 2 is a block diagram showing an electrical configuration of the servo control system according to the first embodiment of the present invention.
  • FIG. 3 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 4 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 5 is a graph showing the relationship between speed information and time.
  • FIG. 6 is a graph showing the relationship between speed and time.
  • FIG. 7 is a timing chart for explaining the operation of the CPU of this example.
  • FIG. 8 is a block diagram showing an electrical configuration of the servo control system according to the second embodiment of the present invention.
  • FIG. 9 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 10 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 11 is a block diagram showing an electrical configuration of the servo control system according to the third embodiment of the present invention.
  • FIG. 12 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 13 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 14 is a block diagram showing an electrical configuration of the servo control system according to the fourth embodiment of the present invention.
  • FIG. 15 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 16 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 17 is a block diagram showing an electrical configuration of the servo control system according to the fifth embodiment of the present invention.
  • FIG. 18 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 19 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 20 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 21 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 22 is a block diagram showing an electrical configuration of the servo control system according to the seventh embodiment of the present invention.
  • FIG. 23 is a flowchart showing processing by the CPU of the encoder signal control unit.
  • FIG. 24 is a timing chart for explaining the operation of the CPU shown in FIG.
  • FIG. 25 is a block diagram showing an electrical configuration of the servo control system according to the ninth embodiment of the present invention.
  • Figure 26 is a timing diagram for explaining the operation of the CPU when the speed information exceeds the maximum value. G chart.
  • FIG. 27 is a block diagram showing a configuration of a servo controller constituting the servo control system of the tenth embodiment of the present invention.
  • FIG. 28 is a flowchart showing processing by the control value generation unit of the servo controller.
  • FIG. 29 is a diagram for explaining the operation of the speed calculation unit when the position information is changing.
  • FIG. 30 is a diagram for explaining the operation of the speed calculation unit when the position information has not changed.
  • FIG. 31 is a block diagram showing a configuration of a servo controller constituting the servo control system of the eleventh embodiment of the present invention.
  • FIG. 32 is a flowchart showing processing by the speed calculation unit of the servo controller.
  • FIG. 33 is a diagram for explaining the operation of the speed calculation unit shown in FIG.
  • FIG. 34 is a block diagram showing an electrical configuration of a servo control system used in a conventional ink jet apparatus.
  • FIG. 35 is a simplified diagram showing the configuration of a conventional encoder.
  • FIG. 36 is a diagram illustrating a waveform of a differential output signal output by the comparator and waveforms of two electric signals input to the comparator.
  • FIG. 37 is a diagram showing the waveform of the differential output signal output by the comparator and the waveform of the two electrical signals input to the comparator, and shows the waveform when there is a difference in the sensitivity of the photodiode.
  • FIG. 1 is a block diagram schematically showing the electrical configuration of the servo control system 20 according to the first embodiment of the present invention.
  • the servo control system 20 feeds back speed information of the driven body displaced by the driving means such as the motor 21, and servo-controls the driving means.
  • the servo control system 20 drives the driving body that drives the driven body. It is a device for controlling.
  • the driving means is realized by a driving source such as the motor 21.
  • the driving unit is an auto sheet feeder (ASF) motor that is mounted on an ink jet apparatus and sends a recording medium to a printing position
  • the driven body is the recording medium. Therefore, the servo control system 20 controls the ASF motor so that the recording medium can be placed at a desired printing position with high accuracy.
  • ASSF auto sheet feeder
  • the servo control system 20 includes a servo controller 22, a motor driver 23, a motor 21, an encoder 24, and an encoder signal control unit 25.
  • the servo controller 22 receives the target position and target speed, and controls the motor 21 so that the driven body has the target position and target speed.
  • the servo controller 22 reads the speed information of the driven body stored in the encoder signal control unit 25 when a predetermined servo interval is reached.
  • the servo controller 22 performs calculation based on the speed information of the driven body read from the encoder signal control unit 25 and the input target position and target speed, and performs optimum control information, for example, pulse width modulation. (Pulse Width Modulation: Abbreviation PWM) and output to motor driver 23.
  • Pulse Width Modulation Abbreviation PWM
  • the motor driver 23 outputs a command voltage to the motor 21 according to the input control information.
  • the motor 21 is realized by a DC motor, and the motor shaft rotates based on the command voltage given from the motor driver 23.
  • the encoder 24 generates a pulse signal 36 having a period corresponding to the speed of the driven body that is displaced according to the driving of the motor 21, and outputs the generated signal to the encoder signal control unit 25.
  • the encoder 24 is realized by a configuration similar to that of the encoder 6 described with reference to FIG. Therefore, as described above, the period of the pulse signal 36 is the same as the time for displacing the predetermined amount of displacement of the driven body.
  • Predetermined amount of displacement is the above code It is determined by the distance 2L between the light transmitting portion 9a provided on the wheel 9 and the light non-transmitting portion 9b.
  • the encoder signal control unit 25 is a control device, calculates speed information based on the pulse signal 36 supplied from the encoder 24, and supplies the calculated speed information to the servo controller 22.
  • the encoder signal control unit 25 includes an edge detection unit 26, an edge interval count unit 27, an edge interval history storage unit 28, a comparison unit 29, a speed information storage unit 31, a setting information storage unit 32, and a central processing unit (Central Processing Unit). Each component is electrically connected to each other by a system bus 19.
  • the edge detector 26 is an edge detector and detects the edge of the pulse signal 36 given from the encoder 24.
  • the edge includes a rising edge or a falling edge of the pulse signal 36.
  • the edge interval counting unit 27 is a time measuring unit. When an edge is detected by the edge detecting unit 26, the time counting starts from the detection time. Therefore, the edge interval counting unit 27 starts counting from the initial value every time an edge is detected.
  • the edge interval counting unit 27 has a function as a calculation means. When an edge is detected by the edge detection unit 26, the edge interval counting unit 27 calculates the period between the edge and the edge detected immediately before. To do. Therefore, the edge interval count unit 27 calculates the period of the rising edge to the rising edge of the pulse signal 36, or the period from the falling edge to the falling edge, and stores the calculated period in the edge interval history storage unit 28. give.
  • the edge interval history storage unit 28 stores the period given from the edge interval count unit 27 according to a time series.
  • the comparison unit 29 is a comparison unit that compares and compares the length of time measured by the edge interval count unit 27 with the latest period stored in the edge interval history storage unit 28. The result is given to CPU30. Therefore, the comparison unit 29 detects the elapsed time from the detection of the edge until the detection of the next edge, and the period of the previous edge from the detection time of the edge, that is, 1 Compare the previous edge interval.
  • the CPU 30 is an output means, and based on the comparison result by the comparison unit 29, outputs the value of either the measured time or period as a speed information to the speed information storage unit 31. To do.
  • the CPU 30 is realized by a microcomputer, for example.
  • the speed information storage unit 31 stores speed information given from the CPU 30 in time series. As described above, the servo controller 22 reads the latest speed information stored in the speed information storage unit 31 for each predetermined servo cycle, and calculates control information based on the read speed information.
  • the setting information storage unit 32 stores various settings temporarily or for a long time.
  • the setting information storage unit 32 is, for example, a read only memory (ROM) 33 in which a control program used for each control is stored, and a random information in which temporary information used in the processing of the CPU 30 is stored. It includes an access memory (Random Access Memory: abbreviated as RAM) 34 and a shared RAM 35 that stores temporary information used for processing each component. Therefore, the CPU 30 executes a control program stored in the ROM 33 and controls each component.
  • ROM read only memory
  • RAM Random Access Memory
  • FIG. 2 is a block diagram showing an electrical configuration of the servo control system 20 according to the first embodiment of the present invention.
  • FIG. 2 shows the main configuration of the encoder signal control unit 25.
  • the remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG.
  • the encoder signal control unit 25 shown in FIG. 2 is configured to detect the rising edge of the pulse signal 36 and calculate speed information.
  • the rising edge of the pulse signal 36 is detected and controlled based on the rising edge.
  • the rising edge detection unit 37 is the edge detection unit 26 and is given from the encoder 24.
  • the rising edge of pulse signal 36 is detected.
  • the rising edge interval counting unit 38 is the edge interval counting unit 27. When the rising edge detecting unit 37 detects the rising edge, the rising edge interval counting unit 38 starts counting from the detection time.
  • the rising edge interval counting unit 38 gives the measured rising time to the comparison unit 29. Further, when a rising edge is detected by the rising edge detection unit 37, the rising edge interval counting unit 38 calculates the period between the rising edge and the rising edge detected immediately before the rising edge, and calculates the calculated rising period. Is given to the rising edge interval history section 39.
  • the rising edge interval history part 39 is a rising edge given from the rising edge interval count part 38.
  • the period is stored according to the time series.
  • the comparing unit 29 compares the time length of the rising time measured by the rising edge interval counting unit 38 with the latest rising period stored in the rising edge interval history unit 39, and compares the comparison result with the CPU 30. To give.
  • the CPU 30 Based on the comparison result of the comparison unit 29, the CPU 30 outputs the longer measured time or the rising cycle to the speed information storage unit 31.
  • the speed information storage unit 31 stores speed information given from the CPU 30 in time series.
  • FIG. 3 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25. This process is repeatedly executed in a power-on state.
  • FIG. 4 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 4 relates to the operation of the CPU 30 shown in FIG.
  • step al the rising time measured by the rising edge interval counting unit 38 is compared with the latest rising cycle stored in the rising edge interval history unit 39, and the rising time is counted as the rising cycle. If shorter, go to step a2, otherwise go to step a3.
  • step a2 the latest rising cycle stored in the rising edge interval history unit 39 is output, and this flow ends.
  • step a3 the rising time measured by the rising edge interval counting unit 38 is output, and this flow is finished.
  • the rising edge of the pulse signal 36 is detected at time ti l and rises again at time tl 2 after the rising period a has elapsed from time ti l. An edge is detected. Until time tl3, when the previous rising cycle a from time tl 2 elapses, the rising timing time b 'at which timing starts from time tl 2 is shorter than the rising cycle a. Output previous rising cycle a. From time tl3 to time tl5 when the next rising edge is detected, the rising timing time b 'is longer from time tl3, so the CPU 30 outputs the rising timing time b' as speed information.
  • the rising timing time c ′ at which timing starts from time tl5 is shorter than the cycle b.
  • 30 outputs the previous rising cycle b as speed information.
  • the rising time c 'from time tl6 is longer, so the CPU 30 outputs the rising time c' as speed information. Therefore, when the servo cycle is time tl4 between time tl3 and time tl5, as shown in FIG. 4, the speed information is the rising timing time b ′.
  • FIG. 5 is a graph showing the relationship between speed information and time.
  • Figure 6 is a graph showing the relationship between speed and time. 5 and 6 relate to the timing chart shown in FIG.
  • the speed shown in FIG. 6 is a value obtained by dividing the distance 2L between the light transmitting part and the light non-transmitting part provided in the above-described code wheel by the speed information shown in FIG.
  • the speed information is the rising cycle a.
  • the speed information is the rising timing time b ′ measured by the rising edge interval counting unit 38.
  • the value obtained by dividing this speed information is the speed detected by the driven body shown in FIG.
  • the rising time measured by the rising edge interval counting unit 38 and the latest rising edge rising period stored in the rising edge interval history unit 39 are stored. Are compared, and based on the comparison result, the rise timing time or rise period, deviation or long, and the other value are output.
  • the rise timing time or rise period, deviation or long, and the other value are output.
  • the force that simply outputs the latest rising cycle The rising time is longer than the latest rising cycle as in the encoder signal control unit 25 of this embodiment.
  • the rise time since the rise time is output, the period of the pulse signal 36 can be predicted with high accuracy and approximated in real time. This makes it possible to calculate the speed of the driven body with high accuracy based on the period of the pulse signal 36 output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the CPU 30 compares the rising time measured by the rising edge interval counting unit 38 with the latest rising period stored in the rising edge interval history unit 39, and compares the time lengths. Based on the result, the force S that outputs the longer value of the rise time or rise period, whichever is longer, is not limited to this. If the interval is not shorter than the latest falling cycle, a value obtained by adding a predetermined additional time to the rising time measurement time may be output.
  • This additional time is set to, for example, the shortest sampling period for sampling the speed information, for example, 500 ns.
  • Such an additional period is appropriately set based on the sampling period. If the additional period is too small, the above-mentioned approximation effect is reduced, and if the additional period is too large, there is a possibility that the additional period will be longer than the period to be approximated, so the additional period is based on the sampling period as described above. Are preferably set.
  • FIG. 7 is a timing chart for explaining the operation of the CPU 30 of this example.
  • the encoder signal control unit 25 of the present example is different from the encoder signal control unit 25 described above in that the falling edge of the pulse signal 36 is detected and controlled based on the falling edge.
  • the encoder signal control unit 25 of this example can achieve the same operations and effects as the encoder signal control unit 25 described above.
  • FIG. 8 is a block diagram showing an electrical configuration of the servo control system 20a according to the second embodiment of the present invention.
  • FIG. 8 shows the main configuration of the encoder signal control unit 25a, and the remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG.
  • the encoder signal control unit 25a shown in FIG. 8 is configured to individually detect the rising edge and the falling edge of the pulse signal 36 and calculate speed information.
  • the encoder signal control unit 25a of the present embodiment is similar to the encoder signal control unit 25 of the first embodiment described above, and further includes a falling edge detection unit in addition to the encoder signal control unit 25 of the first embodiment. 40, a falling edge interval counting unit 41 and a falling edge interval history unit 42 are included.
  • the comparison unit 29 of the first embodiment further includes a first comparison unit 43 and a second comparison unit 44.
  • the falling edge detection unit 40 detects the falling edge of the pulse signal 36 given from the encoder 24.
  • the falling edge interval counting unit 41 is a falling timing means, and when the falling edge is detected by the falling edge detection unit 40, starts counting from the detection time.
  • the falling edge interval counting unit 41 gives the measured time to the second comparison unit 44.
  • the falling edge interval counting unit 41 calculates a falling period between the falling edge and the falling edge detected immediately before the falling edge. Then, the calculated falling period is given to the falling edge interval history section 42.
  • the falling edge interval history unit 42 stores the falling period given from the falling edge interval counting unit 41 according to a time series.
  • the first comparison unit 43 is a first comparison unit, which is a length of time between the rising time measured by the rising edge interval counting unit 38 and the latest falling period stored in the falling edge interval history unit 42. Compare the results and give the comparison result to CPU30.
  • the second comparison unit 44 A second comparison means, which compares the time length of the falling time measured by the falling edge interval counting unit 41 with the latest rising period stored in the rising edge interval history unit 39, and compares them. The result is given to CPU30.
  • the CPU 30 Based on the comparison result of the first comparison unit 43, the CPU 30 detects either the rising timing time or the falling period from the detection of the falling edge of the pulse signal 36 to the detection of the rising edge of the pulse signal 36. The longer value is output. Further, the CPU 30 detects either the falling time or the rising cycle based on the comparison result of the second comparison unit 44 from the detection of the rising edge of the pulse signal 36 to the detection of the falling edge of the pulse signal 36. The longer value is output.
  • FIG. 9 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25a. This process is repeatedly executed in a power-on state.
  • FIG. 10 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 10 relates to the operation of the CPU 30 shown in FIG.
  • step bl it is determined whether or not the current time is the first elapsed period from the detection of the falling edge to the detection of the rising edge. If the current time is the first elapsed period, the process proceeds to step b2. If it is not 1 elapsed period, go to step b5.
  • step b2 since it is the first elapsed period, the length of time between the rising time measured by the rising edge interval counting unit 38 and the latest falling period stored in the falling edge interval history unit 42 If the rise time is shorter than the fall period, go to step b3. If not, go to step b4.
  • step b3 the latest falling cycle stored in the falling edge interval history section 42 is output, and this flow is terminated.
  • step b4 the rising time measured by the rising edge interval counting unit 38 is output, and this flow is finished.
  • step b5 since the current time is the second elapsed period from the detection of the rising edge of the pulse signal 36 within the first elapsed period to the detection of the falling edge of the pulse signal 36, the falling edge interval count
  • the fall time measured by the unit 41 is compared with the latest rise cycle stored in the rise edge interval history unit 39 to compare the length of time. If the hour is shorter than the rise cycle, go to step b6, otherwise go to step b7.
  • step b6 the latest rising cycle stored in the rising edge interval history unit 39 is output, and this flow is terminated.
  • step b7 the falling time measured by the falling edge interval counting unit 41 is output, and this flow ends.
  • the rising edge is detected at time t31, and after the rising period a has elapsed from time t31, the rising edge is detected again at time t33.
  • the falling edge of the pulse signal 36 is detected at time t32, and the falling edge is detected again at time t35 after the falling period b has elapsed from time t32.
  • the falling timing time d ′ at which the timing starts from the time t35 is shorter than the rising cycle c. Outputs the previous rising cycle c as speed information. Also, from time t39 to time t310 when the next falling edge is detected, the falling timing time d 'from time t35 becomes longer, so the CPU 30 outputs the falling timing time d' as speed information.
  • the period from time t310 to time t312 is the first elapsed period, and from time t310 to time t311, the rising time e 'at which the timing starts from time t38 is the previous falling period.
  • the CPU 30 Since it is shorter than the period d, the CPU 30 outputs the previous falling period d as speed information. Also, from time t311 to time t312 when the next rising edge is detected, the rising time e 'from time t38 becomes longer, so the CPU 30 outputs the rising time e' as speed information. Therefore, when the servo cycle is time t37 between time t36 and time t38, as shown in FIG. 10, the speed information is the rising time c '.
  • both the rising edge and the falling edge of the pulse signal 36 are individually detected, and the pulse is detected after the falling edge of the pulse signal 36 is detected.
  • the longer time of the rising time or the falling period is output based on the comparison result of the first comparison unit 43, and the pulse
  • the pulse In the second elapsed period from the detection of the rising edge of the signal 36 to the detection of the falling edge of the pulse signal 36, either the falling clock time or the rising cycle is determined based on the comparison result of the second comparison unit 44. The longer value is output.
  • the period of the pulse signal 36 can be predicted with high accuracy and approximated in real time.
  • the speed of the driven body can be calculated with high accuracy based on the period of the pulse signal 36 output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the CPU 30 outputs the rising time counting time based on the comparison result of the first comparison unit 43 when the rising time counting time is not shorter than the falling cycle.
  • the rising time is not limited to this. It may be configured to output a value obtained by adding a predetermined time to the time measurement.
  • the CPU 30 outputs the falling timing time when the falling timing time is not shorter than the rising cycle, but this is not limited to this. It may be configured to output a value obtained by adding a predetermined additional time to the measured time. As a result, the above-described effects related to the additional period can be achieved.
  • FIG. 11 is a block diagram showing an electrical configuration of the servo control system 20b according to the third embodiment of the present invention.
  • Fig. 11 shows the main configuration of the encoder signal control unit 25b and shows the rest. The remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG.
  • the encoder signal control unit 25b shown in FIG. 11 is configured to detect both rising and falling edges of the pulse signal 36 and calculate speed information.
  • the encoder signal control unit 25b according to the present embodiment is similar to the encoder signal control unit 25 according to the first embodiment described above.
  • the encoder signal control unit 25 includes a double edge detection unit 45, an edge Both edge detection units 45 including the interval count unit 46 and the edge interval history unit 47 detect the edge of the pulse signal 36 supplied from the encoder 24. When the edge detection unit 45 detects an edge, the edge interval counting unit 46 starts counting from the detection time.
  • the edge interval count unit 46 gives the edge measurement time measured to the comparison unit 29.
  • the edge interval counting unit 46 calculates an edge period between the edge and the edge detected immediately before the edge detection unit 45, and calculates the calculated edge period as an edge. This is given to the interval history section 47.
  • the edge interval history unit 47 stores the edge period given from the edge interval count unit 46 according to a time series.
  • the comparison unit 29 compares the length of time between the edge timing time measured by the edge interval counting unit 46 and the two previous edge periods stored in the edge interval history unit 47 from the detection time of the edge. The comparison result is given to the CPU 30.
  • FIG. 12 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25b. This process is repeatedly executed in a power-on state.
  • FIG. 13 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 13 relates to the operation of the CPU 30 shown in FIG.
  • step cl the time between the edge time measured by the edge interval count unit 46 and the two previous edge periods stored in the edge interval history unit 47 from the detection time of the edge. If the edge timing is shorter than the edge period, go to step c2, and if not, go to step c3.
  • step c2 a value obtained by adding the previous edge period to the previous edge period stored in the edge interval history unit 47 is output, and this flow ends.
  • step c3 a value obtained by adding the previous edge period to the edge time measured by the edge interval counting unit 46 is output, and this flow is terminated.
  • the edge of the pulse signal 36 is detected at time t41, and the edge is detected again at time t42 after the elapse of the edge period a from time t41. Further, after the elapse of the edge period b from time t42, the edge is detected again at time t43.
  • the edge timing time c 'at which the time measurement starts from the time t43 is shorter than the edge period a two times before the CPU 30, so the CPU 30 has two speed information.
  • the edge timing time c 'from time t44 becomes longer, so the CPU 30 uses the edge period b immediately before the edge timing time c' as speed information.
  • the added value # 2 is output.
  • the CPU 30 Similar processing is repeated, and from time t48 to time t49, the CPU 30 outputs a value # 5 obtained by adding the previous edge period d to the previous edge period c as speed information, and from time t49. Until time t410, value # 6 obtained by caloring edge period d immediately before edge timing time e 'is output as speed information. In addition, from time t410 to time t411, the CPU 30 outputs a value # 7 obtained by adding the previous edge period e to the previous edge period d as speed information, and from time t411 to time t412, As edge speed around edge time f 'as edge information Output the value # 8 with the period e added. Therefore, when the servo cycle is time t47 between time t46 and time t48, the speed information is the value # 4 as shown in FIG.
  • the comparison interval is more than comparing between rising edges or falling edges. Since it becomes finer, the period of the pulse signal 36 can be predicted with high accuracy and approximated in real time. As a result, the speed of the driven body can be calculated with high accuracy based on the period of the pulse signal 36 output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the CPU 30 Based on the comparison result of the comparison unit 29, the CPU 30 outputs a value obtained by adding the previous edge period to the edge time when the edge time is not shorter than the previous edge period.
  • the present invention is not limited to this, and a value obtained by adding a predetermined additional time may be output. As a result, the effects related to the additional period described above can be achieved.
  • FIG. 14 is a block diagram showing an electrical configuration of the servo control system 20c according to the fourth embodiment of the present invention.
  • FIG. 14 shows the main configuration of the encoder signal control unit 25c, and the remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG.
  • the encoder signal control unit 25c shown in FIG. 14 includes both the first pulse signal 36 and the rising and falling edges of the second pulse signal 48, which is approximately 90 degrees out of phase with the first pulse signal 36.
  • the speed information is calculated by detecting each edge.
  • the encoder signal control unit 25c of this embodiment is similar to the first to third embodiments described above, and performs processing related to the first pulse signal 36 and processing related to the second pulse signal 48. It includes a B phase processing unit, first to fourth comparison units 43, 44, 49, 50, a CPU 30 and a speed information storage unit 31.
  • the second pulse signal 48 Based on the first pulse signal 36, the second pulse signal 48 has a waveform whose phase is 88 degrees or more and 92 degrees or less, preferably 90 degrees out of phase with the first pulse signal 36. In other words, the second pulse signal 48 has a waveform whose half-cycle phase is shifted from the first pulse signal 36.
  • the A phase processing unit includes an A phase rising edge detection unit 51, an A phase falling edge detection unit 54, an A phase rising edge interval counting unit 52, an A phase falling edge interval counting unit 55, and an A phase rising edge interval. Includes a history part 53 and an A-phase falling edge interval history part 56.
  • the A-phase rising edge detection unit 51 is an edge detection unit and detects the rising edge of the first pulse signal 36.
  • the A-phase falling edge detection unit 54 is an edge detection unit that detects the falling edge of the first pulse signal 36.
  • the A-phase rising edge interval counting unit 52 is a first rising timing unit, and when the rising edge of the first pulse signal 36 is detected by the A-phase rising edge detection unit 51, it is calculated from the detection time. Start timing.
  • the A-phase rising edge interval counting unit 52 provides the first comparison unit 43 with the A-phase rising time measuring time, which is the first measured rising time.
  • the A-phase rising edge interval counting unit 52 is a first rising-edge calculating means.
  • the A-phase falling edge interval counting unit 55 is a first falling timing unit, and when the falling edge of the first pulse signal 36 is detected by the A-phase falling edge detection unit 54, Start counting time from the hour.
  • the A-phase falling edge interval counting unit 55 provides the second comparison unit 44 with the A-phase falling time measurement, which is the first time measured for the first falling time.
  • the A-phase falling edge interval counting unit 55 is a first falling calculation unit, and when the falling edge of the first pulse signal 36 is detected by the A-phase falling edge detection unit 54, the falling edge
  • the A-phase falling period which is the first falling period with the falling edge of the first pulse signal 36 detected immediately before it, is calculated, and the calculated A-phase falling period is calculated as the A-phase falling edge.
  • edge interval history part 5 gives to edge interval history part 5 6.
  • the A-phase rising edge interval history unit 53 is a first rising storage unit, and stores the A-phase rising period given from the A-phase rising edge interval counting unit 52 according to a time series.
  • the A phase falling edge interval history section 56 is a first falling storage means.
  • the A-phase falling edge given from the A-phase falling edge interval counting unit 55 is stored in time series.
  • the B phase processing unit includes a B phase rising edge detection unit 57, a B phase falling edge detection unit 60, a B phase rising edge interval counting unit 58, a B phase falling edge interval counting unit 61, and a B phase rising edge interval.
  • a history part 59 and a B-phase falling edge interval history part 62 are included.
  • the B-phase rising edge detection unit 57 is an edge detection unit and detects the rising edge of the second pulse signal 48.
  • the B-phase falling edge detection unit 60 is edge detection means and detects the falling edge of the second pulse signal 48.
  • the B-phase rising edge interval counting unit 58 is a second rising timing unit, and when the rising edge of the second pulse signal 48 is detected by the B-phase rising edge detection unit 57, it is calculated from the detection time. Start timing.
  • the B-phase rising edge interval counting unit 58 provides the third comparison unit 49 with the B-phase rising time that is the second rising time measured.
  • the B-phase rising edge interval counting unit 58 is a second rising-edge calculating means.
  • the rising edge of the second pulse signal 48 is detected by the B-phase rising edge detecting unit 57, the rising edge and its 1st edge are counted. Calculates the B-phase rising period, which is the second rising period with the rising edge of the second pulse signal 48 detected immediately before, and applies the calculated B-phase rising period to the B-phase rising edge interval history unit 59 .
  • the B-phase falling edge interval counting unit 61 is a second falling timing unit, and when the falling edge of the second pulse signal 48 is detected by the B-phase falling edge detection unit 60, Start counting time from the hour.
  • the B-phase falling edge interval counting unit 61 gives the fourth comparison unit 50 the B-phase falling time that is the second falling time measured.
  • the B-phase falling edge interval counting unit 61 is a second falling calculation unit, and when the falling edge of the second pulse signal 48 is detected by the B-phase falling edge detecting unit 60, the falling edge is detected.
  • the B-phase falling period which is the second falling period between the edge and the falling edge of the second pulse signal 48 detected immediately before it, is calculated, and the calculated B-phase falling period is calculated as the B-phase falling edge. This is given to the edge interval history section 62.
  • the B-phase rising edge interval history unit 59 is a second rising storage unit, and stores the B-phase rising period given from the B-phase rising edge interval counting unit 58 according to a time series.
  • the B phase falling edge interval history section 62 is a second falling storage means.
  • B-phase falling edge interval The B-phase falling period given from the counting unit 61 is stored according to the time series.
  • the first comparison unit 43 is a first comparison means, and is a latest comparison stored in the A-phase rising edge interval counting unit 52 and the A-phase rising edge interval counting unit 52 and the B-phase falling edge interval history unit 62. Compared with the B-phase falling cycle of, the comparison result is given to CPU30.
  • the second comparison unit 44 is a second comparison unit, and is stored in the A-phase falling edge time counting unit 55 and the B-phase rising edge interval history unit 59 measured by the A-phase falling edge interval counting unit 55. Compares the latest B phase rise cycle and gives the comparison result to CPU30.
  • the third comparison unit 49 is a third comparison unit, which is a B-phase rising edge interval counting unit 58 and a B-phase rising edge interval counting unit 58 and a maximum phase stored in the A-phase rising edge interval history unit 53. Compare with the new A phase rise cycle and give the comparison result to CPU30.
  • the fourth comparison unit 50 is a fourth comparison means, and is stored in the B-phase falling edge interval counting unit 61 and stored in the A-phase falling edge interval history unit 56. Compared with the latest A-phase falling period, the comparison result is given to CPU30.
  • the CPU 30 Based on the comparison result of the first comparison unit 43 in the first comparison period from the detection of the falling edge of the second pulse signal 48 to the detection of the rising edge of the first pulse signal 36, the CPU 30 The longer value of the rise time or B phase fall period is output.
  • the CPU 30 is based on the comparison result of the second comparison unit 44 in the second comparison period from the detection of the rising edge of the second pulse signal 48 to the detection of the falling edge of the first pulse signal 36. Outputs the value of the A phase falling time or the B phase rising period, the deviation or the longer value.
  • the CPU 30 performs a comparison based on the comparison result of the third comparison unit 49 in the third comparison period from the detection of the rising edge of the first pulse signal 36 to the detection of the rising edge of the second pulse signal 48. Then, the B phase rise time or the A phase rise cycle is output.
  • the CPU 30 is based on the comparison result of the fourth comparison unit 50 in the fourth comparison period from the detection of the falling edge of the first pulse signal 36 to the detection of the falling edge of the second pulse signal 48. Outputs the value of the B phase falling time or the A phase falling period, the difference or long, and the other.
  • the speed information storage unit 31 stores speed information given from the CPU 30 in time series. I remember.
  • FIG. 15 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25c. This process is repeatedly executed in a power-on state.
  • FIG. 16 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 16 relates to the operation of the CPU 30 shown in FIG.
  • step dl it is determined whether or not the current time is the first comparison period from the detection of the falling edge of the second pulse signal 48 to the detection of the rising edge of the first pulse signal 36. If it is one comparison period, the process proceeds to step d2, and if it is not the first comparison period, the process proceeds to step d5.
  • step d2 since it is the first comparison period, the A phase rising time measured by the A phase rising edge interval counting unit 52 and the latest B phase stored in the B phase falling edge interval history unit 62 are stored. Compare the length of time with the falling period. If the A-phase rising time is shorter than the B-phase falling period, go to step d3. If not, go to step d4.
  • step d3 the latest B-phase falling period stored in the B-phase falling edge interval history section 62 is output, and this flow ends.
  • step d4 the A-phase rising edge time counted by the A-phase rising edge interval counting unit 52 is output, and this flow ends.
  • step d5 it is determined whether or not the current time is the second comparison period from the detection of the rising edge of the second pulse signal 48 to the detection of the falling edge of the first pulse signal 36. If it is the comparison period, the process proceeds to step d6, and if it is not the second comparison period, the process proceeds to step d9.
  • step d6 is the second comparison period
  • the A-phase falling edge interval counting unit 55 counts the A-phase falling edge time and the latest B stored in the B-phase rising edge interval history unit 59. Compare the length of time with the phase rise period. If the A phase fall time is shorter than the B phase rise period, go to step d7. If not, go to step d8.
  • step d7 the latest B-phase rising period stored in the B-phase rising edge interval history section 59 is output, and this flow ends.
  • step d8 A phase falling edge interval counting section Outputs the A-phase falling time measured by 55 and ends this flow.
  • step d9 it is determined whether or not the current time is the third comparison period from the detection of the rising edge of the first pulse signal 36 to the detection of the rising edge of the second pulse signal 48. If it is a period, the process moves to step dlO, and if it is not the third comparison period, the process moves to step dl3.
  • step dlO is the third comparison period
  • the B-phase rising edge time counted by the B-phase rising edge interval counting unit 58 and the latest A-phase rising period stored in the A-phase rising edge interval history unit 53 are stored. If the B-phase rise time is shorter than the A-phase rise period, go to step dl l. If not, go to step dl2.
  • step dl l the latest A phase rising period stored in the A phase rising edge interval history section 53 is output, and this flow is terminated.
  • step dl2 the B-phase rising edge time counted by the B-phase rising edge interval counting unit 58 is output, and this flow ends.
  • Step dl 3 is the fourth comparison period from the detection of the falling edge of the first pulse signal 36 to the detection of the falling edge of the second pulse signal 48 in the first to third comparison periods. Compare the length of time between the B phase falling time measured by the B phase falling edge interval counting unit 61 and the latest A phase falling period stored in the A phase falling edge interval history unit 56 If the B-phase rise time is shorter than the A-phase fall period, go to step dl4. If not, go to step dl5.
  • step dl4 the latest A-phase falling cycle stored in the A-phase falling edge interval history section 56 is output, and this flow ends.
  • step dl5 the B-phase falling edge time counted by the B-phase falling edge interval counting unit 61 is output, and this flow ends.
  • the A-phase rising edge is detected at time t51, and after the elapse of the A-phase rising period a from time t51, again at time t55.
  • a phase A rising edge is detected.
  • the B-phase rising edge is detected at time t52, and after the B-phase rising period b has elapsed from time t52, the B-phase rising edge is detected again at time t57.
  • the A-phase falling edge is detected at time t53, and after the A-phase falling period c has elapsed from time t53, the A-phase falling edge is detected again at time t59. Also In the second pulse signal 48, the B-phase falling edge is detected at time t54, and after the elapse of the B-phase falling period d from time t54, the B-phase falling edge is detected again at time t511.
  • From time t55 to time t57 is the third comparison period, and from time t55 to time t56, the timing starts from time t53, because the B phase falling time b 'is shorter than the A phase rising period a, The CPU 30 outputs the latest A-phase rising period a as speed information. Also, from time t56 to time t57 when the next B-phase rising edge is detected, B-phase rising time b 'from time t56 is longer, so CPU 30 uses B-phase rising time b' as speed information. Output.
  • time t57 to time t59 is the second comparison period, from time t57 to time t58, timing starts from time t54.
  • the A-phase falling time c ' is shorter than the latest B-phase rising period b. Therefore, the CPU 30 outputs the latest B phase rising period b as speed information. Also, from time t58 to time t59 when the next A-phase falling edge is detected, the A-phase falling time c 'from time t58 is longer, so the CPU 30 uses the A-phase falling time as speed information. Outputs time c '.
  • From time t59 to time t511 is the fourth comparison period, and from time t59 to time t510, the timing starts from time t55, because the B-phase falling timing d 'is shorter than the A-phase falling period c.
  • CPU 30 outputs the latest A-phase falling period c as speed information. Also, from time t510 to time t511 when the next B-phase falling edge is detected, the B-phase falling time d 'from time t510 is longer, so CPU 30 uses the B-phase falling time as speed information. Output time d '.
  • From time t511 to time t513 is the first comparison period, and from time t511 to time t512, the timing is started from time t57. Since the A-phase rising time e 'is shorter than the B-phase falling period d, CPU30 Outputs the latest B-phase falling period d as speed information. Also, from time t 512 to time t 513 when the next A-phase rising edge is detected, the A-phase rising time e 'from time t 57 is longer, so the CPU 30 uses the A-phase rising time e as speed information. 'Is output.
  • time t515 to time t518 is the second comparison period
  • CPU 30 outputs the latest B-phase rise period f as speed information.
  • the rising edge and the falling edge of the first pulse signal 36 of the A phase and the second pulse signal 48 of the B phase are respectively set. Detected individually.
  • the first to fourth comparison units 43, 44, 49, and 50 compare the periods of the first pulse signal 36 and the second pulse signal 48 with the time measured at the edges of the pulse signals 36 and 48, respectively. Outputs the longer value based on the comparison result. Therefore, by using the two pulse signals 36 and 48 having different phases as described above, the comparison interval becomes finer than the case where one pulse signal 36 is used.
  • the period can be predicted and approximated in real time. This makes it possible to calculate the speed of the driven body with high accuracy based on the period of the pulse signal 36 output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the CPU 30 counts the time when the time counts of the first and second pulse signals 36, 48 are output based on the comparison results of the first to fourth comparison units 43, 44, 49, 50.
  • the time value is output as it is, the present invention is not limited to this, and it may be configured to output a value obtained by adding a predetermined additional time to each measured time. As a result, the effects related to the additional period described above can be achieved.
  • FIG. 17 is a block diagram showing an electrical configuration of the servo control system 20d according to the fifth embodiment of the present invention.
  • FIG. 17 shows the main configuration of the encoder signal control unit 25d, and the remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG. Omitted.
  • the encoder signal control unit 25d shown in FIG. 17 is configured to calculate speed information by detecting both rising edges and falling edges of the first pulse signal 36 and the second pulse signal 48.
  • the encoder signal control unit 25d of the present embodiment is similar to the above-described third embodiment, and includes an encoder signal control unit 25b of the third embodiment including an A-phase / B-phase double edge detection unit 63. Is done.
  • the A-phase and B-phase both-edge detection unit 63 is an edge detection means, and detects the edges of the first pulse signal 36 and the second pulse signal 48 supplied from the encoder 24, respectively.
  • Edge interval counting section 46 has functions as first and second rising timing means and first and second falling timing means, and when an edge is detected by A-phase and B-phase both-edge detecting section 63, Time counting starts from the detection time.
  • the edge interval count unit 46 gives the edge measurement time measured to the comparison unit 29.
  • the edge interval count unit 46 functions as first to fourth calculation means.
  • the edge interval is detected immediately before the edge.
  • the edge period with the edge to be calculated is calculated, and the calculated edge period is given to the edge interval history unit 47.
  • the edge interval history unit 47 functions as first to fourth storage means, and stores the edge period given from the edge interval count unit 46 in time series.
  • the comparison unit 29 has a function as first to fourth comparison means.
  • the comparison between the edge time measured by the edge interval count unit 46 and the four previous edge periods stored in the edge interval history unit 47 is provided. Compare the length of time and give the comparison result to CPU30.
  • the CPU 30 Based on the comparison result of the comparison unit 29, the CPU 30 sets the latest edge cycle, the previous edge cycle, and the last edge cycle to the longer of the edge timing time or the previous edge cycle, whichever is longer. A value obtained by adding the previous edge period is output.
  • FIG. 18 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25d. This process is repeatedly executed in a power-on state.
  • FIG. 19 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 19 relates to the operation of the CPU 30 shown in FIG.
  • step el the edge time measured by the edge interval counting unit 46, Compare the length of time with the previous 4 edge period stored in the edge interval history section 47.If the edge time is shorter than the edge period, go to step e2, otherwise go to step e3. .
  • step e2 a cycle total period obtained by summing up the latest edge cycle forces stored in the edge interval history unit 47 up to four previous edge cycles is output, and this flow is ended.
  • step a value obtained by adding a partial total period obtained by adding up the three edge periods from the latest edge period to the edge time measured by the edge interval counting unit 46 is output, and this flow is terminated.
  • the rising edge of the first pulse signal 36 is detected at time t61 and the edge period a has elapsed from time t61
  • the second pulse signal 48 is received at time t62. Rising edge is detected.
  • the A phase falling edge is detected at time t63 after the elapse of edge period b from time t62.
  • a B-phase falling edge is detected at time t64 after the elapse of the edge period c from time t63.
  • an A-phase rising edge is detected at time t65 after the elapse of the edge period d from time t64.
  • the edge timing time when the timing starts from time t65 e ' is shorter than the previous edge period a, so the CPU 30 is four times earlier as speed information.
  • the total period # 1 of the sum of the edge period a, the previous edge period b, the previous edge period c, and the latest edge period d, which is the previous edge period, is output.
  • the edge time e ' is longer from time t66, so the CPU 30 uses the edge cycle b three times earlier as the speed information, Outputs the value # 2 that is obtained by adding the edge timing time e 'to the partial total period obtained by summing up the edge period c and the latest edge period d.
  • the CPU 30 Similar processing is repeated, and from time t69 to time t610, the CPU 30 outputs the cycle total period # 5 (c + d + e + f) as speed information. From time t610 to time t611, the CPU 30 outputs a value # 6 (d + e + f + g ′) obtained by adding the edge time g ′ to the partial total period (d + e + f) as speed information. From time t611 to time t612, the CPU 30 outputs the cycle total period # 7 (d + e + f + g) as speed information.
  • the CPU 30 From time t612 to time t61 3, the CPU 30 outputs a value # 8 (e + f + g + h ') obtained by adding the edge timing time h' to the partial total period (e + f + g) as speed information. .
  • the CPU 30 From time t613 to time t614, the CPU 30 outputs the cycle total period # 9 (e + f + g + h) as speed information. From time t614 to time t615, the CPU 30 outputs a value # 10 (f + g + h + i ') obtained by adding the edge timing time i' to the partial total period (f + g + h) as speed information. . From time t615 to time t617, the CPU 30 outputs the cycle total period #l l (f + g + h + i) as speed information.
  • the CPU 30 From time t617 to time t618, the CPU 30 outputs a value # 12 (g + h + i + j ′) obtained by adding the edge time j ′ to the partial total period (g + h + i) as speed information. Therefore, when the servo cycle is time t616 between time t615 and time t617, the speed information is cycle total period # 11 (f + g + h + i) as shown in FIG.
  • Such a process described above can be divided into the following four processes.
  • the period from the A-phase rising edge to the next B-phase rising edge is the first period
  • the period from the B-phase rising edge to the next A-phase falling edge is the second period
  • the period from the falling edge to the next B-phase falling edge is the third period
  • the period from the B-phase falling edge to the next B-phase rising edge is the fourth period.
  • the total period of the latest 1st period, 2nd period, 3rd period, and 4th period is the period total period.
  • the comparison unit 29 has a function as a first comparison unit, and compares the A-phase rising time measured by the edge interval count unit 46 with the latest first period stored in the edge interval history unit 47. To do.
  • CPU30 outputs the total period when the A phase rise time is shorter than the latest first cycle from the detection of the B phase falling edge to the detection of the A phase rising edge, and the A phase rise time is If it is not shorter than the latest 1st period, the A-phase rise time and the latest The first total period of the total of the second, third, and fourth periods is output.
  • the comparison unit 29 has a function as a second comparison means, and the A-phase falling time measured by the edge interval count unit 46 and the latest second period stored in the edge interval history unit 47. And compare.
  • the CPU 30 If the B phase rise time is shorter than the latest 2nd cycle from the detection of the B phase rising edge to the detection of the A phase falling edge, the CPU 30 outputs the cycle total period and the B phase rise time If it is not shorter than the latest 2nd cycle, output the B phase rise time and the 2nd total period of the latest 1st cycle, 3rd cycle and 4th cycle respectively.
  • the comparison unit 29 also has a function as a third comparison unit, and compares the B-phase rise time measured by the edge interval count unit 46 with the latest third period stored in the edge interval history unit 47. To do.
  • the CPU 30 If the A-phase falling time is shorter than the latest 3rd period from the detection of the A-phase falling edge to the detection of the B-phase rising edge, the CPU 30 outputs the period total period and the A-phase falling timing If the time is not shorter than the latest 3rd cycle, output the A phase falling time and the 3rd total period of the latest 1st cycle, 2nd cycle and 4th cycle respectively.
  • the comparison unit 29 also has a function as a fourth comparison means, and the B-phase falling time measured by the edge interval count unit 46 and the latest fourth period stored by the edge interval count unit 46. And compare.
  • the CPU 30 outputs the period total period, If the downtime is not shorter than the latest 4th period, output the B phase falling time and the 4th total period of the latest 1st, 2nd and 3rd period respectively.
  • the encoder signal control unit 25d of the present embodiment individually detects the rising edge and the falling edge of the first pulse signal 36 and the second pulse signal 48.
  • the CPU 30 outputs the total period of the period when each timekeeping time is shorter than each latest cycle, and when each timekeeping time is not shorter than the latest cycle, it is the total of each timekeeping time and the remaining cycle.
  • the first to fourth total periods are output respectively. Therefore, by using two pulse signals 36 and 48 with different phases, it is possible to compare compared to the case where one pulse signal 36 is used. Therefore, the period of the first pulse signal 36 can be predicted with high accuracy and approximated to the real time. Accordingly, the speed of the driven body can be calculated with high accuracy based on the period of the first pulse signal 36 output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be stably controlled.
  • the servo control system 20d of the present embodiment is similar in configuration to the servo control system 20d of the fifth embodiment described above, and the operation of the encoder signal control unit 25d is different. The operation will be described.
  • the comparison unit 29 has a function as first to fourth comparison means, and it compares the time between the edge time measured by the edge interval count unit 46 and the latest edge period stored in the edge interval history unit 47. Compare the length and give the comparison result to CPU30.
  • the CPU 30 Based on the comparison result of the comparison unit 29, the CPU 30 sets the edge timing time or the latest edge period, whichever is longer, to the second previous edge period, the third previous edge period, and the fourth previous period. A value obtained by adding the edge period is output.
  • FIG. 20 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25d. This process is repeatedly executed in a power-on state.
  • FIG. 21 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 21 relates to the operation of the CPU 30 shown in FIG.
  • step fl the edge timing time measured by the edge interval count unit 46 is compared with the latest edge cycle stored in the edge interval history unit 47, and the edge timing time is compared with the edge cycle. If shorter, go to step f2, otherwise go to step f3.
  • step f2 the latest edge cycle force stored in the edge interval history unit 47 outputs a cycle total period obtained by summing up the last four edge cycles, and this flow ends.
  • step f3 a value obtained by adding a partial total period obtained by adding up to the edge period three times before the latest edge period to the edge time measured by the edge interval counting unit 46 is output. End the row.
  • the rising edge of the first pulse signal 36 is detected at time t71, and after the elapse of the edge period a from time t71, the second pulse signal 48 is received at time t72. Rising edge is detected.
  • the A phase falling edge is detected at time t73 after the elapse of the edge period b from time t72.
  • a B-phase falling edge is detected at time t74.
  • the A-phase rising edge is detected at time t75.
  • the edge timing time e 'at which timing starts from time t75 is shorter than the latest edge period d.
  • the period total period # 1 is output by summing the period a, the third previous edge period b, the second previous edge period c, and the previous previous edge period d. Also, from time t76 to time t77 when the next edge is detected, the edge timing time e 'is longer from time t76, so the CPU 30 uses the edge period b three times before and the second edge as speed information. Outputs the value # 2 that is obtained by adding the edge timing time e 'to the partial total period of the period c and the latest edge period d.
  • the edge timing time f 'at which timing starts from time t77 is shorter than the latest edge period e, so the CPU 30 uses the period total period as speed information.
  • # 3 (b + c + d + e) is output.
  • the edge timing time f ' is longer from time t78, so the CPU 30 uses the edge timing time in the partial total period (c + d + e) as speed information.
  • the CPU 30 Similar processing is repeated, and from time t79 to time t710, the CPU 30 outputs the period total period # 5 (c + d + e + f) as speed information. From time t710 to time t711, the CPU 30 outputs a value # 6 (d + e + f + g ′) obtained by adding the edge timing time g ′ to the partial total period (d + e + f) as speed information. From time t711 to time t712, the CPU 30 outputs the period total period # 7 (d + e + f + g) as speed information.
  • CPU30 From time t712 to time t71 3, CPU30 outputs the value # 8 (e + f + g + h ') obtained by adding edge timing time h' to partial total period (e + f + g) as speed information. . From time t713 to time t714, the CPU 30 outputs the cycle total period # 9 (e + f + g + h) as speed information. From time t714 to time t715, the CPU 30 outputs a value # 10 (f + g + h + i ') obtained by adding the edge timing time i' to the partial total period (f + g + h) as speed information. .
  • the CPU 30 From time t715 to time t717, the CPU 30 outputs the period total period #ll (f + g + h + i) as speed information. From time t717 to time t718, the CPU 30 outputs a value # 12 (g + h + i + j ′) obtained by adding the edge time j ′ to the partial total period (g + h + i) as speed information. Therefore, when the servo cycle is time t716 between time t715 and time t717, the speed information is cycle total period # 11 (f + g + h + i) as shown in FIG.
  • the comparison unit 29 calculates the time measured by the edge interval count unit 46 and the latest period stored in the edge interval history unit 47. Compare. Even with such a configuration, it is possible to achieve the same effect as described above.
  • FIG. 22 is a block diagram showing an electrical configuration of the servo control system 20e according to the seventh embodiment of the present invention.
  • FIG. 22 shows the main configuration of the encoder signal control unit 25e, and the remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG.
  • the encoder signal control unit 25e shown in FIG. 22 is configured to detect both the rising edge and the falling edge of the first pulse signal 36 and the second pulse signal 48 and calculate the speed information.
  • the encoder signal control unit 25e of this embodiment is similar to the encoder signal control units 25c and 25d of the fourth embodiment and the sixth embodiment described above, and the operation of the encoder signal control unit 25e is different. The operation of the encoder signal control unit 25e will be described.
  • the A-phase rising edge interval counting unit 52 gives the time-measured time of the A-phase rising edge to the first comparison unit 43.
  • the A-phase rising edge interval counting unit 52 is a fourth calculation means.
  • the A-phase falling edge interval counting unit 55 gives the time-measured A-phase falling time to the third comparison unit 49.
  • the A-phase falling edge interval counting unit 55 is a second calculating means.
  • the falling edge of the first pulse signal 36 is detected by the A-phase falling edge detecting unit 54, the falling edge and its falling edge are detected.
  • the second period with the rising edge of the second pulse signal 48 detected immediately before is calculated, and the calculated second period is given to the A-phase falling edge interval history section 56.
  • the A-phase rising edge interval history unit 53 is fourth storage means, and stores the fourth period given from the A-phase rising edge interval counting unit 52 according to time series.
  • the A-phase falling edge interval history section 56 is a second storage means. The second period given from the A-phase falling edge interval counting unit 55 is stored in time series.
  • the B-phase rising edge interval counting unit 58 gives the time measured for the B-phase rising edge interval to the second comparison unit 44.
  • the B-phase rising edge interval counting unit 58 is a first calculation means. When the rising edge of the second pulse signal 48 is detected by the B-phase rising edge detecting unit 57, the rising edge and the preceding one are detected. The first period of the detected first pulse signal 36 with the rising edge is calculated, and the calculated first period is given to the B-phase rising edge interval history unit 59.
  • the B-phase falling edge interval counting unit 61 gives the time-measured B-phase falling time to the fourth comparison unit 50.
  • the B-phase falling edge interval counting unit 61 is a third calculation means. When the falling edge of the second pulse signal 48 is detected by the B-phase falling edge detection unit 60, the falling edge and its falling edge are detected. The third period with the falling edge of the first pulse signal 36 detected immediately before is calculated, and the calculated third period is given to the B-phase falling edge interval history section 62.
  • the B-phase rising edge interval history unit 59 is a first storage means, and stores the first period given from the B-phase rising edge interval counting unit 58 in time series.
  • the B phase falling edge interval history section 62 is a third storage means. The third period given from the B-phase falling edge interval counting unit 61 is stored in time series.
  • the first comparison unit 43 is a first comparison means, which is the A-phase rising edge interval counting unit 52 and the latest A-phase rising edge interval history unit 53. Compare with the 4th cycle.
  • CPU30 outputs the period total period when the A-phase rise time is shorter than the latest 4th period from the detection of B-phase falling edge to the detection of A-phase rising edge. If the time is not shorter than the latest 4th period, the 1st total period is output.
  • the second comparison unit 44 is a second comparison unit, which is a B-phase rising edge interval counting unit 58 and a B-phase rising edge interval history unit 59 and a B-phase rising edge interval history unit 59. Compare with the new first cycle.
  • CPU30 If the A phase falling time is shorter than the latest 1st cycle from the detection of phase B rising edge to the detection of phase A falling edge, CPU30 outputs the period total period, and phase A falling timing If the time is not shorter than the latest first period, the second total period is output.
  • the third comparison unit 49 is a third comparison means, and is stored in the A-phase falling edge interval counting unit 55 and stored in the A-phase falling edge interval history unit 56. Compare with the latest 2nd cycle.
  • the CPU 30 If the A phase falling time is shorter than the latest 2nd cycle from the detection of the A phase rising edge to the detection of the B phase rising edge, the CPU 30 outputs the total period of the A phase and the A phase falling time If is not shorter than the latest second period, the third total period is output.
  • the fourth comparison unit 50 is a fourth comparison unit, and compares the B-phase falling time measured by the B-phase falling edge interval counting unit 61 with the latest third period.
  • CPU30 outputs the total period of the period when the B phase falling time is shorter than the latest 3rd period from detecting the A phase falling edge to detecting the B phase falling edge. If the time is not shorter than the latest 3rd period, the 4th total period is output.
  • the encoder signal control unit 25e of the present embodiment can achieve the same operations and effects as the encoder signal control unit 25d of the sixth embodiment described above.
  • a servo control system 20d according to the eighth embodiment of the present invention will be described.
  • the servo control system 20d of this embodiment is similar to the servo control system 20d of the fifth embodiment and the sixth embodiment described above, and the operation of the encoder signal control unit 25d is different. The operation of 25d will be described.
  • the comparison unit 29 functions as first to fourth comparison means.
  • the comparison unit 29 compares the lengths of the first to fourth total periods and the period total period, and compares the results with the CPU 30. give.
  • the CPU 30 detects the falling edge of the second pulse signal 48 and then detects the first pulse signal 36. In the first comparison period until the rising edge is detected, the longer of the first total period and the period total period is output. In addition, in the second comparison period from the detection of the rising edge of the second pulse signal 48 to the detection of the falling edge of the first pulse signal 36, the CPU 30 has the longer of the second total period and the period total period. Whichever value is output.
  • the CPU 30 in the third comparison period from the detection of the rising edge of the first pulse signal 36 to the detection of the rising edge of the second pulse signal 48, the CPU 30 is longer of the third total period and the period total period. Whichever value is output. In addition, in the fourth comparison period from the detection of the falling edge of the first pulse signal 36 to the detection of the falling edge of the second pulse signal 48, the CPU 30 determines which of the fourth total period and the period total period. The longer value is output.
  • FIG. 23 is a flowchart showing processing by the CPU 30 of the encoder signal control unit 25d. This process is repeatedly executed in a power-on state.
  • FIG. 24 is a timing chart for explaining the operation of the CPU 30. The timing chart shown in FIG. 24 relates to the operation of the CPU 30 shown in FIG.
  • step gl it is determined whether or not the current time is the first comparison period from the detection of the falling edge of the second pulse signal 48 to the detection of the rising edge of the first pulse signal 36. If it is the comparison period, the process proceeds to step g2, and if it is not the first comparison period, the process proceeds to step g5.
  • step g2 is the first comparison period
  • the time lengths of the first total period and the period total period are compared, and if the first total period is shorter than the period total period, the process proceeds to step g3 and is shortened. If not, go to step g4.
  • step g3 the cycle total period is output, and this flow ends.
  • step g4 the first total period is output, and this flow ends.
  • step g5 it is determined whether or not the current time is the second comparison period from the detection of the rising edge of the second pulse signal 48 to the detection of the falling edge of the first pulse signal 36. If it is the second comparison period, the process proceeds to step g6, and if it is not the second comparison period, the process proceeds to step g9.
  • step g6 is the second comparison period
  • the time lengths of the second total period and the period total period are compared, and if the second total period is shorter than the period total period, the process proceeds to step g7 and is shortened. If not, go to step g8.
  • step g7 the cycle total period is output, and this flow ends.
  • step g8 the second total period is output, and this flow ends.
  • step g9 it is determined whether or not the current time is the third comparison period from the detection of the rising edge of the first pulse signal 36 to the detection of the rising edge of the second pulse signal 48. If it is the comparison period, the process proceeds to step glO, and if it is not the third comparison period, the process proceeds to step gl3.
  • step glO since it is the third comparison period, the time length of the third total period and the period total period are compared. If the third total period is shorter than the period total period, the process proceeds to step gl l. If not, go to step g12.
  • step gl l the total period is output and this flow is terminated.
  • step gl2 the third total period is output and this flow is terminated.
  • Step gl 3 is the fourth comparison period from the detection of the falling edge of the first pulse signal 36 to the detection of the falling edge of the second pulse signal 48 in the first to third comparison periods. Compare the length of time between the 4th total period and the period total period. If the 4th total period is shorter than the period total period, go to step gl4, and if not, go to step gl5. In step gl4, the period total period is output, and this flow ends. In step gl5, the fourth total period is output and this flow ends.
  • From time t89 to time t811 is the fourth comparison period. From time t89 to time t810, the timing of the edge time g ′ at which timing starts from time t89 and the partial total period (d + e + f) Since the first total period (d + e + f + g '), which is the sum, is shorter than the period total period (c + d + e + f), CPU 30 uses the period total period # 5 (c + d as speed information). + e + f) is output.
  • the first total period (d + e + f + g ') is longer, so CPU 30 uses the first total period # 6 ( d + e + f + g ') output.
  • the period from time t811 to time t813 is the first comparison period. From time t811 to time t813, the edge timing time h ′ at which timing starts from time t811 and the partial total period (e + f + g) Since the fourth total period (e + f + g + h '), which is the sum, is shorter than the cycle total period (d + e + f + g), CPU 30 uses the cycle total period # 7 (d + e + as speed information) f + g) is output.
  • the fourth total period (e + f + g + h ') is longer, so the CPU 30 uses the fourth total period # 8 (e + f + g + h ') output. Similar processing is repeated, and from time t813 to time t814, the CPU 30 outputs cycle total period # 9 (e + f + g + h) as speed information. In addition, from time t814 to time t815, the CPU 30 adds the edge timing time i 'to the partial total period (f + g + h) as speed information, and the third total period # 10 (f + g + h + i') Is output.
  • the CPU 30 From time t815 to time t817, the CPU 30 outputs the cycle total period # 11 (f + g + h + i) as speed information. Also, from time t81 7 to time t818, the CPU 30 uses the second total period # 12 (g + h + i + j ') as the speed information by adding the edge timing time ⁇ to the partial total period (g + h + i). Output. Therefore, when the servo cycle is time t816 between time t815 and time t817, the speed information is cycle total period #ll (f + g + h + i) as shown in FIG.
  • the comparison unit 29 compares and compares the lengths of the first to fourth total periods and the period total period, respectively. Is given to CPU30. In each comparison period, the CPU 30 outputs the longer one of the set first to fourth total periods and the period total period. Even with such a configuration, the same effect as described above can be achieved.
  • FIG. 25 is a block diagram showing an electrical configuration of the servo control system 20f according to the ninth embodiment of the present invention.
  • FIG. 25 shows the main configuration of the encoder signal control unit 25f, and the remaining configuration, for example, the setting information storage unit 32 is the same as the configuration shown in FIG.
  • the encoder signal control unit 25f shown in FIG. 25 is configured to detect both the rising edge and the falling edge of the first pulse signal 36 and the second pulse signal 48 and calculate the speed information.
  • the encoder signal control unit 25f of the present embodiment is similar to the encoder signal control units 25e and 25d of the seventh embodiment and the eighth embodiment described above, and the operation of the encoder signal control unit 25f is different. The operation of the encoder signal control unit 25f will be described.
  • the encoder signal controller 25f further includes five first to fifth adders 64 to 68.
  • the A-phase rising edge interval counting unit 52 gives the A-phase rising time counting time to the first adding unit 64.
  • the A-phase falling edge interval counting unit 55 gives the A-phase falling time counting to the third adding unit 66.
  • the B phase rising edge interval counting unit 58 sets the B phase rising time counting time to the second adding unit 65. give.
  • the B-phase falling edge interval counting unit 61 gives the B-phase falling time counting time to the fourth adding unit 67.
  • the A-phase rising edge interval history unit 53 gives the latest first period to be stored to the second addition unit 65, the third addition unit 66, the fourth addition unit 67, and the fifth addition unit 68.
  • the A-phase falling edge interval history unit 56 gives the latest third period to be stored to the first addition unit 64, the second addition unit 65, the fourth addition unit 67, and the fifth addition unit 68.
  • the B-phase rising edge interval history unit 59 gives the latest second period to be stored to the first addition unit 64, the third addition unit 66, the fourth addition unit 67, and the fifth addition unit 68.
  • the B phase falling edge interval history unit 62 gives the latest fourth period to be stored to the first addition unit 64, the second addition unit 65, the third addition unit 66, and the fifth addition unit 68.
  • the first adder 64 calculates a given A-phase rising time and a first total period of the sum of the latest second period, third period, and fourth period, respectively.
  • the first addition unit 64 gives the calculated first total period to the comparison unit 29.
  • the second adder 65 calculates a given B-phase rise time and a second total period of the sum of the latest first period, third period, and fourth period, respectively.
  • the second addition unit 65 gives the calculated second total period to the comparison unit 29.
  • the third adder 66 calculates a given A-phase falling time and a third total period of the sum of the latest first period, second period, and fourth period, respectively.
  • the third addition unit 66 gives the calculated third total period to the comparison unit 29.
  • the fourth adder 67 calculates a given B-phase falling time and a fourth total period of the sum of the latest first period, second period, and third period, respectively.
  • the fourth addition unit 67 gives the calculated fourth total period to the comparison unit 29.
  • the fifth addition unit 68 calculates the total period of the sum of the latest given first period, second period, third period, and fourth period.
  • the fifth adder 68 gives the calculated cycle total period to the comparator 29.
  • the comparison unit 29 compares the first total period to the fourth total period given from each of the addition units 64 to 68 with the given period total period.
  • the CPU 30 determines the first total period based on the comparison result of the comparison unit 29. If is shorter than the cycle total period, the cycle total period is output. If the first total period is not shorter than the cycle total period, the first total period is output.
  • the CPU 30 outputs the period total period, and the second total period is shorter than the period total period. If not, the second total period is output.
  • the CPU 30 In the third comparison period, the CPU 30 outputs the period total period when the third total period is shorter than the period total period based on the comparison result of the comparison unit 29, and the third total period is shorter than the period total period. If not, the third total period is output.
  • the CPU 30 In the fourth comparison period, the CPU 30 outputs the cycle total period when the fourth total period is shorter than the period total period based on the comparison result of the comparison unit 29, and the fourth total period is shorter than the period total period. If not, output the 4th total period.
  • the encoder signal control unit 25f of the present embodiment can achieve the same action and effect as the encoder signal control units 25e and 25d of the seventh and eighth embodiments described above.
  • the CPU 30 when the CPU 30 outputs a value including the time measurement time based on the comparison result of the comparison unit 29, the CPU 30 calculates the value using the time measurement time as it is. Further, it may be configured to output a value to which a predetermined additional time is added.
  • the CPU 30 when outputting the first total period in the first comparison period, the CPU 30 outputs the first additional total period that is the sum of the first total period and the predetermined additional time. Further, in the second comparison period, when outputting the second total period, the CPU 30 outputs a second additional total period that is the sum of the second total period and a predetermined additional time.
  • the CPU 30 when outputting the third total period, the CPU 30 outputs a third additional total period of the third total period and a predetermined additional time.
  • the CPU 30 when outputting the fourth total period, the CPU 30 outputs the fourth additional total period that is the sum of the fourth total period and the predetermined additional time.
  • the value output by the CPU 30 is valid when it is less than or equal to the boundary value set based on the speed of the driven body, and invalid when the value is larger than the boundary value. Also good.
  • FIG. 26 is a timing chart for explaining the operation of the CPU 30 when the speed information exceeds the maximum value.
  • the displacement of the driven body that generates the pulse signal 36 is 1/600 inch, for example, the cycle is counted by the edge detection unit 26, 1 counter is 500 nanoseconds, and the calculated speed calculated from the speed information
  • the maximum value of the servo speed information output from the encoder signal control unit 25 to the servo controller 22 is obtained by the following equation (1).
  • the minimum value of the speed information at which the calculated speed is 0 is when the calculated speed obtained by dividing the above displacement by time is less than 0.01. Is expressed by the following equation (1).
  • the displacement is (1/600) inches as described above, and B-Terama is ( ⁇ X 500/100000000 0) seconds, where Hi is a period counter of speed 10 blue.
  • the count of speed information 333334 is the maximum value, and when this speed information string exceeds the maximum value, the calculated speed is set to 0, that is, invalid.
  • the period of the first pulse starting from time ttl is the speed information described above. Since it is longer than the maximum value of 333334, which is the maximum value of a, the calculation speed is set to 0 from time tt2 until time 4 when the period of the first pulse becomes less than the maximum value of the speed information.
  • the calculated speed is set to 0 until the displacement amount (movement distance) by which the driven body moves is changed.
  • the speed calculated based on the output speed information will approach 0, so set the maximum value as described above and enable it if it is below the maximum value.
  • the speed of the driven body can be calculated based on only the output value determined to be valid by invalidating the value. Therefore, since the speed is not calculated based on the speed information that is too large, it is possible to prevent an undesired value of speed from being calculated.
  • FIG. 27 is a block diagram showing the configuration of the servo controller 22 constituting the servo control system 20 of the tenth embodiment of the present invention.
  • the servo controller 22 shown in FIG. 27 is a control device, and the speed information stored in the speed information storage unit 31 of the encoder signal control unit 25 and the position stored in the setting information storage unit 32 of the encoder signal control unit 25. Information is read every servo cycle, and the speed is calculated based on the read speed information and position information.
  • the servo controller 22 outputs optimal control information to the motor driver 23 based on the calculated speed, position, target position, and target speed.
  • the encoder signal control unit 25 of the present embodiment is configured to update the speed information and the position information stored in each part of the encoder signal control unit 25 when detecting the edge of the pulse signal input from the encoder 24. Is done. Regardless of detecting the edge of the pulse signal, if only one of the position information and velocity information is updated and the other is not updated, the accuracy of the position information and velocity information will deteriorate. Therefore, the encoder signal control unit 25 is configured to update the speed information and the position information every time an edge of the pulse signal is detected.
  • the servo controller 22 includes an acquisition unit 69, an acquisition information storage unit 70, a determination unit 72, a control value generation unit 71, a speed calculation unit 73, and a control unit 74.
  • the acquisition unit 69 is an acquisition unit that periodically or irregularly acquires speed information and position information corresponding to a predetermined amount of displacement of a driven body that is displaced according to driving of the driving means. In the embodiment, it is acquired every predetermined servo cycle.
  • the acquisition information storage unit 70 is an acquisition information storage unit, and stores speed information and position information acquired by the acquisition unit 69 in time series.
  • the determination unit 72 is a determination unit, and determines whether or not the acquired position information is the same over a predetermined time from the speed information stored in the acquired information storage unit 70. In other words, the determination unit 72 determines whether or not the acquired position information has changed over a certain period.
  • the control value generation unit 71 is a control value generation unit. Based on the determination result of the determination unit 72, if the acquired position information has not changed over a certain period of time, the control value generation unit 71 sets a preset value in the speed information. The added control value is output. Otherwise, the speed information is output as the control value. It is preferable that the predetermined set value to be added to the speed information is gradually increased after a certain period of time has elapsed since the acquired position information does not change. As a result, when the position information does not change, the calculated speed can be gradually brought closer to 0 without immediately setting the calculated speed to 0.
  • Such a set value may be increased until the calculation speed is gradually increased to 0, the calculation speed is brought close to 0, and the calculation speed does not need to be increased after the calculation speed becomes 0. Further, instead of adding a predetermined set value to the speed information, a predetermined ratio may be multiplied.
  • a predetermined ratio may be multiplied.
  • the control value generation unit 71 outputs the acquired speed information as a control value when the position information has changed even if the acquired speed information has the same value.
  • the speed calculation unit 73 is a speed calculation unit, and calculates the speed of the driven body based on the control value output from the control value generation unit 71 and a predetermined displacement amount of the driven body.
  • the control unit 74 is a control means, and is optimized based on the position information, the target position and the target speed stored in the speed calculated by the speed calculation unit 73 and the acquired information storage unit 70. Control information is output to the motor driver 23.
  • FIG. 28 is a flowchart showing the processing by the control value generation unit 71 of the servo controller 22. This process is repeatedly executed in a power-on state. This process is repeated only when the driven body is driven.
  • FIG. 29 is a diagram for explaining the operation of the speed calculation unit 73 when the position information is changing.
  • FIG. 30 is a diagram for explaining the operation of the speed calculation unit 73 when the position information has not changed.
  • step hi the acquired position information Pc is compared with the position information Pp stored in the acquired information storage unit 70, and if the position information is different, the process proceeds to step h4, and if the position information is the same, the process proceeds to step h2. Move.
  • step h2 it is determined whether or not the time Tc of the acquired speed information is longer than the time Tth when the acquired position information has not changed. If it is long, the process proceeds to step h4. If not, the process proceeds to step h3. Therefore, in step hi and step h2, it is determined whether or not the position information has changed over a certain period, and if the acquired position information has not changed over a certain period, the process proceeds to step h3. Go to h4.
  • step h3 a value obtained by adding a predetermined set value to the speed information Sc is output as a control value So, and this flow ends.
  • step h4 the acquired speed information Sc is output as the control value So, and this flow is terminated.
  • the speed information a is acquired, and the calculated speed Sa is calculated from the speed information a.
  • the force at which the time of speed information a has elapsed is position information P2, it is acquired at time tt91. Different location information from P1. Therefore, since the position information is different, the calculation speed is the calculation speed Sa as described above.
  • FIG. Fig. 29 shows the case where the position information changes for each servo cycle.
  • speed information a is acquired, and since the time of speed information a has not elapsed, speed information a is output as a control value.
  • speed information b is acquired from time t92 to time t94, similarly, the speed information b is output as a control value.
  • speed information c is acquired from the time t95 to the time t99, the speed information c is output. From time t95 to time t98 when the time of speed information b elapses, the acquired position information is different and shorter than the time of the acquired speed information, so the control value becomes speed information c as described above.
  • the control value generation unit 71 determines the control value obtained by adding the set value to the speed information when the acquired position information has not changed over a certain period. If not, output speed information as a control value. If the acquired position information has not changed over a certain period, the driven body's displacement is small, so it can be predicted that the speed is gradually decreasing, so the set value is added to the speed information. By increasing the value, the calculated speed can be gradually reduced. As a result, even when the speed of the driven body is decreasing, the speed of the driven body can be calculated with higher accuracy.
  • FIG. 31 is a block diagram showing a configuration of the servo controller 22 constituting the servo control system 20 of the eleventh embodiment of the present invention.
  • the servo controller 22 shown in FIG. 31 is similar in configuration to the servo controller 22 of the above-described tenth embodiment, and will be described with respect to different configurations, and description of similar configurations may be omitted.
  • the servo controller 22 includes an acquisition unit 69, an acquisition information storage unit 70, a fixed period calculation unit 76, a period comparison unit 75, a speed calculation unit 73, and a control unit 74.
  • the fixed period calculation unit 76 is a fixed period calculation unit, and calculates a period from when the position information acquired by the acquisition unit 69 changes until the next change of position information. In other words, the fixed period calculation unit 76 calculates how long the acquired position information has not changed.
  • the period comparison unit 75 is a period comparison unit, and is calculated by the fixed period calculation unit 76. And the length of time of the speed information stored in the acquired information storage unit 70 are compared.
  • the speed calculation unit 73 is a speed calculation unit, and based on the comparison result of the period comparison unit 75, when the period in which the position information has not changed is shorter than the speed information time, the speed calculation unit 73 is acquired by the acquisition unit 69.
  • the speed of the driven body is calculated based on the speed information obtained and the predetermined displacement of the driven body. If the period during which the position information has not changed is not shorter than the speed information time, the speed is acquired by the acquisition unit 69. Based on the speed information and the predetermined displacement amount of the driven body, the temporary speed of the driven body is calculated, and a predetermined set value is subtracted from the temporary speed to calculate the speed of the driven body.
  • the predetermined set value for subtracting the provisional speed force is gradually reduced after a certain period of time has elapsed since the acquired position information does not change.
  • the calculation speed can be gradually approached to zero without immediately setting the calculation speed to zero.
  • Such a set value does not need to be decreased after the calculation speed is gradually reduced to 0, the calculation speed is brought close to 0, and the calculation speed becomes 0.
  • step il the acquired position information Pc is compared with the position information Pp stored in the acquired information storage unit 70. If the position information is different, the process proceeds to step i. If the position information is the same, the process proceeds to step i2.
  • step i2 it is determined whether or not the time Tc of the acquired speed information is longer than the time Tth when the acquired position information has not changed. If it is long, the process proceeds to step i2, and if not, the process proceeds to step i3. Therefore, in step il and step i2, it is judged whether or not it has changed over a period of time, and if the acquired position information has not changed over a period of time, the process moves to step i5. Go to step i3.
  • step i5 the latest speed information acquired by the acquiring unit 69 and the driven object are recorded. Based on the amount of displacement determined, the speed of the driven body is calculated, and this flow ends.
  • step i3 the temporary speed of the driven body is calculated based on the latest speed information acquired by the acquiring unit 69 and the predetermined displacement amount of the driven body, and the process proceeds to step i4.
  • step i4 a predetermined set value is subtracted from the temporary speed to calculate the speed of the driven body, and this flow is terminated.
  • the period in which the acquired position information is the same is longer than the time length of the speed information b, so from time t99, which is the next servo cycle, to time t 911 when the position information changes, Using the calculated speed Sc as a temporary speed, the calculated speed Ss obtained by subtracting a predetermined set value from the temporary speed gradually becomes the calculated speed.
  • the speed calculation unit 73 determines that the acquired speed information and the amount of displacement of the driven body when the acquired position information is not shorter than the speed information time. Based on the above, the temporary speed of the driven body is calculated, and the preset value is subtracted from the temporary speed to calculate the speed of the driven body. If the acquired position information is not shorter than the speed information time, the displacement of the driven body is small, so it can be predicted that the speed will gradually decrease. The calculated speed can be reduced by subtracting the set value from the value to reduce the calculated speed. As a result, even when the speed of the driven body is decreasing, the speed of the driven body can be calculated with higher accuracy.
  • a force for calculating the speed by subtracting a predetermined set value from the temporary speed is not limited to this.
  • the speed may be calculated by multiplying the temporary speed by a predetermined attenuation rate. . Therefore, from the time t98 described above, since the acquired position information has the same period longer than the time length of the speed information b, from the next servo cycle time t99 to the time t911 when the position information changes, Using the calculated speed Sc as a temporary speed, a calculated speed Ss obtained by multiplying the temporary speed by a predetermined attenuation rate is the calculated speed.
  • the speed of the driven body can be calculated with higher accuracy by setting the attenuation rate for reducing the speed with high accuracy.
  • the attenuation rate is preferably set so that the acquired position information becomes smaller as the length of the same period becomes longer. As a result, the speed is expected to decrease with time, so that the speed of the driven body can be calculated with higher accuracy by gradually decreasing the attenuation rate.
  • the control unit 74 that outputs control to the motor driver 23 and the speed until the speed is calculated based on the speed information given from the encoder signal control unit 25.
  • the speed calculation part 73 may be configured separately from the control part 74. Therefore, the speed calculation unit 73 may be configured to calculate the speed based on the speed information given from the encoder signal control unit 25 and to give the calculated speed to the servo controller 22.
  • the position information changes after the position information changes.
  • the speed of the driven body can be calculated with higher accuracy by outputting the longer time until the position information changes as compared with the time of the latest speed information acquired as the control value.
  • the encoder signal control unit 25 of the present invention can stabilize servo control in software without using hardware that forms a high-precision pulse signal 36, which can reduce the manufacturing cost. it can.
  • the encoder adjusts the amount of displacement of the driven body that is linearly displaced. Based on the force S configured to generate the pulse signal 36 on the basis of this, the encoder is not limited to such an encoder. Good.
  • the encoder may be configured to detect the angular displacement amount of the driven body.
  • the servo control system of each of the above-described embodiments is mounted on a facsimile apparatus that can be mounted only on an inkjet apparatus and a variety of apparatuses that control the position of the driven body that may be mounted on a copying machine. Can be controlled with high accuracy.
  • the storage means constituting each of the above-described embodiments, the storage means for storing given information in a time series, is sufficient if there is a predetermined storage capacity, for example, whenever new information is given. Preferably, the old information is deleted. This makes it possible to realize a storage means that does not increase the storage capacity.
  • the time length between the time measured by the time measuring means and the latest edge period stored in the storage means is compared by the comparing means, and based on the comparison result, the time measured Alternatively, the longer value of the period is output.
  • the power that simply outputs the latest edge period is longer than the latest edge period as in the present invention, the timed time is reduced. Since it is output, the period of the pulse signal can be predicted with high accuracy and approximated in real time.
  • the speed of the driven body can be calculated with high accuracy based on the period of the pulse signal output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the output means outputs, based on the comparison result, the latest cycle when the clocking time is shorter than the cycle, and the clocking time when the clocking time is not shorter than the cycle. A value with additional time added in between is output. If the measured time is not shorter than the period, the measured time increases with the passage of time. Therefore, by adding an additional period in advance, it can be approximated to the actual speed of the driven body. As a result, the speed of the driven body can be calculated with higher accuracy.
  • both the rising edge and the falling edge of the pulse signal are individually detected, and the first comparison is performed from the detection of the falling edge of the pulse signal to the detection of the rising edge of the pulse signal.
  • the longer value of the rise time or the fall period is output, from the detection of the rising edge of the node signal to the detection of the falling edge of the pulse signal.
  • the longer value of the falling time or the rising cycle is output. Therefore, since the comparison interval becomes finer than that between rising edges, the period of the pulse signal can be predicted with high accuracy and approximated in real time.
  • the speed of the driven body can be calculated with high accuracy based on the period of the pulse signal output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the output means outputs a value added with the additional time when outputting the rising time counting time or the falling counting time based on the comparison result. Therefore, the rising time counting time or the falling time counting time increases with the passage of time, so that it can be approximated to the actual speed of the driven body by adding an additional period in advance. Thereby, the speed of the driven body can be calculated with higher accuracy. Furthermore, according to the present invention, the time length of the time measured by the time measuring means is compared with the two previous periods stored in the storage means, and based on the comparison result, the time measurement time or The value obtained by adding the latest period to the value of the previous period, the difference or longer, and the other is output.
  • the speed of the driven body can be calculated with high accuracy based on the period of the pulse signal output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the output means when outputting a value including a timed time based on the comparison result, the output means adds a predetermined additional time to the value obtained by adding the latest period to the timed time. Output the value. Since the timekeeping time increases with the passage of time, it can be approximated to the actual speed of the driven body by adding an additional period in advance. Thereby, the speed of the driven body can be calculated with higher accuracy.
  • the rising edge and the falling edge of the first pulse signal and the second pulse signal shifted by about 90 degrees in electrical angle from the first pulse signal are individually detected.
  • the first to fourth comparison means respectively compare the period of the first and second pulse signals with the time measurement time of the edge of each pulse signal, and the output means is based on the comparison result, whichever is longer.
  • the value of is output. Therefore, by using two pulse signals with different phases, the comparison interval becomes more powerful than when one pulse signal is used, so the period of the noise signal can be predicted with high accuracy in real time. Can be approximated.
  • the speed of the driven body can be calculated with high accuracy based on the cycle of the noise signal output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be stably controlled.
  • the output means outputs a value to which an additional time is added when outputting the time measurement time of the edge of each pulse signal based on the comparison result. Therefore, the timekeeping time increases with the passage of time, so it can be approximated to the actual speed of the driven body by adding the additional period in advance. As a result, the speed of the driven body can be calculated with higher accuracy.
  • the rising edge and the falling edge of the first pulse signal and the second pulse signal shifted by about 90 degrees in electrical angle from the first pulse signal are individually detected.
  • the output means outputs the cycle total period when each timekeeping time is shorter than each latest cycle, and when each timekeeping time is not shorter than the latest cycle, the output means is the sum of each timekeeping time and the remaining cycle. Output 1 to 4 total periods respectively. Therefore, by using two noiseless signals with different phases, the comparison interval becomes finer than in the case of one pulse signal, so the period of the pulse signal can be predicted with high accuracy and real time. Can be approximated by S.
  • the speed of the driving body can be calculated with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • each comparison means compares the time measured by each time measurement means with the latest cycle stored in each storage means. Even with each of such comparison means, the same effect as described above can be achieved.
  • each comparison unit compares each total period with the period total period. Even with each of such comparison means, the same effect as described above can be achieved.
  • the output means when outputting each total period, the output means includes each total period and a predetermined additional time. Each additional total period of the total of is output. Therefore, since each total period includes timekeeping time, the timekeeping time increases with the passage of time. Thus, by adding the additional period to each total period in advance, it is possible to more closely approximate the actual speed of the driven body. This makes it possible to calculate the speed S of the driven body with higher accuracy.
  • the value output by the output means is valid when it is less than or equal to the boundary value set based on the speed of the driven body, and invalid when it is greater than the boundary value. If the value output by the output means becomes too large, the value calculated based on the output value approaches 0, so it is based on only the output value that is determined to be valid by setting a boundary value in advance. Thus, the speed of the driven body can be calculated. This makes it possible to achieve a desired control.
  • the control value generation means outputs a control value obtained by adding a predetermined value to the speed information when the obtained speed information is a constant value based on the determination result of the determination means. If the acquired speed information is not a constant value, the speed information is output as a control value.
  • the speed information is a constant value over a predetermined time, the displacement of the driven body is small, so it can be predicted that the speed is gradually decreasing, so a predetermined value is added to the speed information. By increasing the value, it is possible to gradually reduce the calculated speed. As a result, even when the speed of the driven body is decreasing, the speed of the driven body can be calculated with higher accuracy.
  • the speed calculation means based on the comparison result, when the certain period is not shorter than the speed information before the certain period, based on the obtained speed information and the displacement amount of the driven body, The temporary speed of the driven body is calculated, and the speed of the driven body is calculated by subtracting a predetermined value from the temporary speed. If the fixed period is not shorter than the speed information before the fixed period, the displacement of the driven body is small, so it can be predicted that the speed is gradually decreasing. By subtracting, the calculated speed can be reduced to reduce the calculated speed. As a result, even when the speed of the driven body is decreasing, the force S can be calculated with higher accuracy.
  • the temporary speed of the driven body is calculated based on the obtained speed information and the predetermined displacement amount of the driving body, The speed of the driven body is calculated by multiplying the temporary speed by a predetermined attenuation rate. Therefore, the speed of the driven body can be calculated with higher accuracy by setting the attenuation rate for reducing the speed with high accuracy.
  • the attenuation rate is set so as to decrease as the length of the period of time increases. Since the speed is expected to decrease with time, the speed S of the driven body can be calculated with higher accuracy by gradually decreasing the attenuation rate.
  • the time length of the time measured and the latest edge period are compared, and based on the comparison result, the longer of the time period or the period is output. .
  • the latest edge cycle is simply output.However, if the timekeeping time is longer than the latest edge cycle as in the present invention, the timekeeping time is Is output, so the period of the pulse signal can be approximated with high accuracy.
  • the speed of the driven body can be calculated with high accuracy based on the period of the pulse signal output with high accuracy. Therefore, the detection accuracy of the speed of the driven body can be increased, and the driving means can be controlled stably.
  • the acquired speed information is a constant value based on the determination result
  • a control value obtained by adding a predetermined value to the speed information is output, and the acquired speed information is output. If the information is not a constant value, the speed information is output as a control value.
  • the speed information is a constant value over a predetermined time, the displacement of the driven body is small, so it can be predicted that the speed is gradually decreasing, so a predetermined value is added to the speed information. By increasing the value, the calculated speed can be gradually reduced. As a result, even when the speed of the driven body is decreasing, the speed of the driven body can be calculated with higher accuracy.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Direct Current Motors (AREA)
  • Control Of Electric Motors In General (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

 本発明は、被駆動体の速度の検出精度を高め、駆動手段を安定して制御する制御装置および制御方法に関する。エンコーダ信号制御部25は、立上りエッジ間隔カウント部38によって計時される立上り計時時間と、立上りエッジ間隔履歴部39に記憶される最新の立上りエッジの立上り周期との時間の長さを比較し、その比較結果に基づいて、立上り計時時間または立上り周期のいずれか長い方の値を出力するので、高精度にパルス信号36の周期を予測して、リアルタイムに近似することができ、これによって高精度に出力されたパルス信号36の周期に基づいて、被駆動体の速度を高精度に算出することができ、被駆動体の速度の検出精度を高めることができ、駆動手段を安定して制御することができる。

Description

明 細 書
制御装置および制御方法
技術分野
[0001] 本発明は、モータなどの駆動手段を制御する制御装置および制御方法に関する。
背景技術
[0002] 従来の技術のインクジェット記録装置は、プリンタ、ファクシミリ装置および複写機に 装着され、画像情報に基づレ、て紙またはプラスチック薄板の記録媒体に画像の記録 を行う記録手段として用いられる。このようなインクジェット記録装置は、印字ヘッドか ら記録媒体にインク滴を吐出して記録を行うものであり、記録手段のコンパクト化が容 易であり、高密度な画像を高速に記録可能で、かつランニングコストが安ぐノンイン パクト方式であるために騒音が少ないという特徴を有している。し力も、インクジェット 装置は、多色のインクを使用してカラー画像を記録するのが容易であるという利点も 有する。
インクジェット記録装置の駆動源としては、たとえば印字ヘッドを搭載したキャリッジ を往復駆動するキャリッジモータ、記録媒体を印刷位置へ送るオートシートフィーダ( ASF)モータ、ヘッドクリーニングなどを行う回復系モータ、および記録媒体を印字ス キャンごとに送る搬送モータがある。従来の技術では、低コスト化が容易であり、制御 が簡単であるなどの理由から前記駆動源は、ステッピングモータが多く使用されてい る。
インクジェット記録装置は、前述したように、ノンインパクト方式であるので騒音が少 ない。しかし、さらなる静音化などの目的で前記駆動源に直流(DC)モータを使用す ることが多くなつてきた。この DCモータを制御するためにサーボ制御が用いられる。 図 34は、従来の技術のインクジェット装置に用いられるサーボ制御システム 1の電 気的構成を示すブロック図である。制御対象の DCモータ 2は、制御指令である指令 電圧がサーボコントローラ 3から入力されると、指令電圧に基づいて、モータ軸が回 転する。このモータ軸の回転角と回転速度は、それぞれ速度計測器 4と位置計測器 5で計測される。計測される位置情報および速度情報は、サーボコントローラ 3にフィ ードバックされ、サーボコントローラ 3は、与えられる目標位置または目標速度に基づ いて、 DCモータ 2を制御するための指令電圧を出力する。このような速度計測器 4お よび位置計測器 5は、後述のエンコーダ 6によって実現される。
図 35は、従来の技術のエンコーダ 6の構成を簡略化して示す図である。エンコーダ 6は、発光ダイオード(Light Emitting Diode:略称 LED) 7から出射される光を、ディテ クタ 8がコードホイール 9を通して検出して信号を発生する。コードホイ一ノレ 9は、光を 透過する部分 9aと光を透過しない部分 9bが予め定める間隔 Lで配置されている。デ ィテクタ 8には、フォトダイオード 8aが決められた間隔で配置されており、各フォトダイ オード 8aで検出された光をそれぞれ電気信号に変換して出力し、出力された電気信 号はコンパレータ 10によって差動出力信号 11が出力される。
図 36は、コンパレータ 10によって出力される差動出力信号 1 1の波形と、コンパレ ータ 10に入力される 2つの電気信号 12a, 12bの波形を示す図である。差動出力信 号 11は、各フォトダイオード 8aによって出力される 2つの電気信号 12a, 12bの交点 13で反転する波形を有する。ここで、速度が一定の場合、理論的には、差動出力信 号 11のデューティ比は 0. 5になる。しかし、様々な要因によってデューティ比は変化 する。その大きな要因の 1つとしてフォトダイオード 8aの感度差がある。
図 37は、コンパレータ 10によって出力される差動出力信号 1 1の波形と、コンパレ ータに入力される 2つの電気信号 12a, 12bの波形を示す図であって、フォトダイォ ード 8aの感度に差がある場合の波形を示す。フォトダイオード 8aの感度は、電気信 号 12a, 12bの振幅差として現れる。図 37では、一方の電気信号 12aの振幅が他方 の電気信号 12bより小さくなつた場合の差動出力信号 11を示している。したがって、 図 37に示すように、フォトダイオード 8aの感度差は差動出力信号 11のデューティ比 を変化させることが分かる。しかし、差動出力信号 11の周期 Tには影響がなぐ図 36 に示す差動出力信号 11の周期 Tと等しい。したがって、エンコーダ 6の差動出力信 号 11は、周期 Tが最も精度が高い(たとえば特開 2002— 34274号公報参照)。 前述のようにフォトダイオードに感度差があっても、エンコーダの出力信号は周期が 最も精度が高い。したがって、速度情報は、より正確な情報を得るため、たとえば出 力信号の立上りから次の立上りまでの周期をカウントして用いる片エッジサンプノレ方 式が用いられる。
また速度情報と位置情報は、フォトダイオードに感度差があっても、より正確な情報 を得るために位相が異なる 2つの差動出力信号を用いて、各信号の両エッジをサン プノレする方式が用いられる。
インクジェット記録装置の紙送り制御を考えた場合、始めは高速で紙を送り、停止 位置の少し手前から低速でサーボ制御を行う。その後、 目標の停止位置寸前で停止 モードに移行して目標位置に紙を停止させている。この場合、停止位置の少し手前 での定速サーボ制御を安定させることが紙の停止精度に大きく影響する。
このように低速で ASFモータを駆動した際、エンコーダの出力信号の変化が小さく なるので、位置情報と速度情報とを更新する間隔が長くなる。これによつて位置情報 を更新する間隔がサーボ周期よりも長くなると位置情報は更新されない。この場合、 停止と判断して速度情報を 0とするように制御される。
このとき、記録紙が目標の停止位置に達していない場合、記録紙を目標位置へ移 動させるために、指令電圧を上げて ASFモータに出力する。しかし、実際の速度は 0 でない場合があり、この場合、速度が大きくなりすぎて記録紙が目標位置を過ぎるな どサーボ制御が安定しないとレ、う問題がある。
サーボ制御が安定しないと、記録紙の所望の位置で印刷することができず、たとえ ば記録紙が目標位置で停止できず目標位置を過ぎて停止した場合は、印刷データ の間に隙間があき、記録紙が目標位置の手前で停止した場合は、印刷データが重 なるという問題が発生する。また記録紙が目標位置を大きく過ぎてしまった場合は、 逆方向に記録紙を移動させて、記録紙を目標位置に戻すことが必要になり、印刷速 度が遅くなる。
また、位置情報が更新されないときに速度情報を 0にしない制御をする場合、実際 に速度が 0であっても速度情報が 0にならないので、前述と同様に、サーボ制御が安 定しないという問題が発生する。
発明の開示
本発明の目的は、被駆動体の速度の検出精度を高め、駆動手段を安定して制御 する制御装置および制御方法を提供することである。 本発明は、駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得する周期信号取得手段と、
前記パルス信号の立上りエッジおよび立下りエッジのいずれか一方のエッジを検出 するエッジ検出手段と、
前記エッジ検出手段によってエッジが検出されると、その検出時刻から起算して計 時を開始する計時手段と、
前記エッジ検出手段によってエッジが検出されると、該エッジとその 1つ前に検出さ れるエッジとの周期を演算する演算手段と、
前記演算手段によって演算されるエッジの周期を時系列に従って記憶する記憶手 段と、
前記計時手段によって計時される計時時間と、前記記憶手段に記憶される最新の エッジの周期との時間の長さを比較する比較手段と、
前記比較手段の比較結果に基づいて、前記計時時間または前記周期のいずれか 長い方の値を出力する出力手段とを含むことを特徴とする制御装置である。
また本発明において、前記出力手段は、前記比較手段の比較結果に基づいて、前 記計時時間が前記周期より短い場合、最新の周期を出力し、前記計時時間が前記 周期より短くない場合、前記計時時間に予め定める付加時間を付加した値を出力す ることを特 ί数する。
さらに本発明は、駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得する周期信号取得手段と、
前記パルス信号の立上りエッジを検出する立上りエッジ検出手段と、
前記パルス信号の立下りエッジを検出する立下りエッジ検出手段と、
前記立上りエッジ検出手段によって立上りエッジが検出されると、その検出時刻か ら起算して計時を開始する立上り計時手段と、
前記立下りエッジ検出手段によって立下りエッジが検出されると、その検出時刻か ら起算して計時を開始する立下り計時手段と、 前記立上りエッジ検出手段によって立上りエッジが検出されると、該立上りエッジと その 1つ前に検出される立上りエッジとの立上り周期を演算する立上り演算手段と、 前記立下りエッジ検出手段によって立下りエッジが検出されると、該立下りエッジと その 1つ前に検出される立下りエッジとの立下り周期を演算する立下り演算手段と、 前記立上り演算手段によって演算される立上り周期を時系列に従って記憶する立 上り記憶手段と、
前記立下り演算手段によって演算される立下り周期を時系列に従って記憶する立 下り記憶手段と、
前記立上り計時手段によって計時される立上り計時時間と、前記立下り記憶手段に 記憶される最新の立下り周期との時間の長さを比較する第 1比較手段と、
前記立下り計時手段によって計時される立下り計時時間と、前記立上り記憶手段に 記憶される最新の立上り周期との時間の長さを比較する第 2比較手段と、
前記比較結果に基づいて値を出力する出力手段であって、
前記パルス信号の立下りエッジを検出してから前記ノ^レス信号の立上りエッジを検 出するまで、前記第 1比較手段の比較結果に基づいて、前記立上り計時時間または 前記立下り周期のレ、ずれか長レ、方の値を出力し、
前記パルス信号の立上りエッジを検出してから前記ノ^レス信号の立下りエッジを検 出するまで、前記第 2比較手段の比較結果に基づいて、前記立下り計時時間または 前記立上り周期のいずれか長い方の値を出力する出力手段とを含むことを特徴とす る制御装置である。
さらに本発明において、前記出力手段は、
前記パルス信号の立下りエッジを検出してから前記ノ^レス信号の立上りエッジを検 出するまで、前記第 1比較手段の比較結果に基づいて、立上り計時時間が立下り周 期より短い場合、最新の立下り周期を出力し、立上り計時時間が立下り周期より短く ない場合、立上り計時時間に予め定める付加時間を付カロした値を出力し、
前記パルス信号の立上りエッジを検出してから前記ノ^レス信号の立下りエッジを検 出するまで、前記第 2比較手段の比較結果に基づいて、立下り計時時間が立上り周 期より短い場合、最新の立上り周期を出力し、立下り計時時間が立上り周期より短く ない場合、立上り計時時間に予め定める付加時間を付加した値を出力することを特 徴する。
さらに本発明は、駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得する周期信号取得手段と、
前記パルス信号のエッジを検出するエッジ検出手段と、
エッジ検出手段によってエッジが検出されると、その検出時刻から起算して計時を 開始する計時手段と、
前記エッジ検出手段によってエッジが検出されると、該エッジとその 1つ前に検出さ れるエッジとの周期を演算する演算手段と、
前記演算手段によって演算されるエッジの周期を時系列に従って記憶する記憶手 段と、
前記計時手段によって計時される計時時間と、該ェッジの検出時刻から前記記憶 手段に記憶される 2つ前の周期との時間の長さを比較する比較手段と、
前記比較手段の比較結果に基づいて、前記計時時間または前記 2つ前の周期の いずれか長い方の値に、最新の周期を加算した値を出力する出力手段とを含むこと を特徴とする制御装置である。
さらに本発明において、前記出力手段は、前記比較手段の比較結果に基づいて、 前記計時時間が前記 2つ前の周期より短い場合、前記 2つ前の周期に最新の周期を 加算した値を出力し、前記計時時間が前記 2つ前の周期より短くない場合、前記計 時時間に最新の周期を加算した値に、さらに予め定める付カ卩時間を付加した値を出 力することを特徴する。
さらに本発明は、駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期の第 1パル ス信号を取得する第 1周期信号取得手段と、
前記第 1パルス信号から電気角で約 90度位相のずれた第 2パルス信号を取得する 第 2周期信号取得手段と、
前記第 1パルス信号および第 2パルス信号の立上りエッジおよび立下りエッジをそ れぞれ検出するエッジ検出手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立上り計時手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立下り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立上り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立下り計時手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 1パルス信号の立上りエッジとの第 1立上り周 期を演算する第 1立上り演算手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 1パルス信号の立下りエッジとの第 1立下り周 期を演算する第 1立下り演算手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 2パルス信号の立上りエッジとの第 2立上り周 期を演算する第 2立上り演算手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 2パルス信号の立下りエッジとの第 2立下り周 期を演算する第 2立下り演算手段と、
前記第 1立上り演算手段によって演算される第 1立上り周期を時系列に従って記憶 する第 1立上り記憶手段と、
前記第 1立下り演算手段によって演算される第 1立下り周期を時系列に従って記憶 する第 1立下り記憶手段と、
前記第 2立上り演算手段によって演算される第 2立上り周期を時系列に従って記憶 する第 2立上り記憶手段と、
前記第 2立下り演算手段によって演算される第 2立下り周期を時系列に従って記憶 する第 2立下り記憶手段と、
前記第 1立上り計時手段によって計時される第 1立上り計時時間と、前記第 2立下り 記憶手段に記憶される最新の第 2立下り周期とを比較する第 1比較手段と、
前記第 1立下り計時手段によって計時される第 1立下り計時時間と、前記第 2立上り 記憶手段に記憶される最新の第 2立上り周期とを比較する第 2比較手段と、
前記第 2立上り計時手段によって計時される第 2立上り計時時間と、前記第 1立上り 記憶手段に記憶される最新の第 1立上り周期とを比較する第 3比較手段と、
前記第 2立下り計時手段によって計時される第 2立下り計時時間と、前記第 1立下り 記憶手段に記憶される最新の第 1立下り周期とを比較する第 4比較手段と、
前記比較結果に基づいて値を出力する出力手段であって、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上りェ ッジを検出するまで、前記第 1比較手段の比較結果に基づいて、前記第 1立上り計 時時間または前記第 2立下り周期のいずれか長い方の値を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下りェ ッジを検出するまで、前記第 2比較手段の比較結果に基づいて、前記第 1立下り計 時時間または前記第 2立上り周期のいずれか長い方の値を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号立上りエツ ジを検出するまで、前記第 3比較手段の比較結果に基づいて、前記第 2立上り計時 時間または前記第 1立上り周期のレ、ずれか長レ、方の値を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下りェ ッジを検出するまで、前記第 4比較手段の比較結果に基づいて、前記第 2立下り計 時時間または前記第 1立下り周期のいずれか長い方の値を出力する出力手段とを含 むことを特徴とする制御装置である。
さらに本発明において、前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上りェ ッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1立上り計時時 間が最新の第 2立下り周期より短い場合、最新の第 2立下り周期を出力し、第 1立上 り計時時間が最新の第 2立下り周期より短くない場合、第 1立上り計時時間に予め定 める付加時間を付加した値を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下りェ ッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 1立下り計時時 間が最新の第 2立上り周期より短い場合、最新の第 2立上り周期を出力し、第 1立下 り計時時間が最新の第 2立上り周期より短くない場合、第 1立下り計時時間に予め定 める付加時間を付加した値を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上りェ ッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 2立上り計時時 間が最新の第 1立上り周期より短い場合、最新の第 1立上り周期を出力し、第 2立上 り計時時間が最新の第 1立上り周期より短くない場合、第 2立上り計時時間に予め定 める付加時間を付加した値を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下りェ ッジを検出するまで、前記第 4比較手段の比較結果に基づいて、第 2立下り計時時 間が最新の第 1立下り周期より短い場合、最新の第 1立下り周期を出力し、第 2立下 り計時時間が最新の第 1立下り周期より短くない場合、第 2立下り計時時間に予め定 める付加時間を付カロした値を出力する出力手段とを含むことを特徴とする。
さらに本発明は、駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期の第 1パル ス信号を取得する第 1周期信号取得手段と、
前記第 1パルス信号から電気角で約 90度位相のずれた第 2パルス信号を取得する 第 2周期信号取得手段と、
前記第 1パルス信号および第 2パルス信号の立上りエッジおよび立下りエッジをそ れぞれ検出するエッジ検出手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立上り計時手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立下り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立上り計時手段と、 前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立下り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 1パルス信号の立上りエッジとの第 1周期を演 算する第 1演算手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 2パルス信号の立上りエッジとの第 2周期を演 算する第 2演算手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 1パルス信号の立下りエッジとの第 3周期を演 算する第 3演算手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 2パルス信号の立下りエッジとの第 4周期を演 算する第 4演算手段と、
前記第 1演算手段によって演算される第 1周期を時系列に従って記憶する第 1記憶 手段と、
前記第 2演算手段によって演算される第 2周期を時系列に従って記憶する第 2記憶 手段と、
前記第 3演算手段によって演算される第 3周期を時系列に従って記憶する第 3記憶 手段と、
前記第 4演算手段によって演算される第 4周期を時系列に従って記憶する第 4記憶 手段と、
前記第 1立上り計時手段によって計時される第 1立上り計時時間と、前記第 1記憶 手段に記憶される最新の第 1周期とを比較する第 1比較手段と、
前記第 2立上り計時手段によって計時される第 2立上り計時時間と、前記第 2記憶 手段に記憶される最新の第 2周期とを比較する第 2比較手段と、
前記第 1立下り計時手段によって計時される第 1立下り計時時間と、前記第 3記憶 手段に記憶される最新の第 3周期とを比較する第 3比較手段と、 前記第 2立下り計時手段によって計時される第 2立下り計時時間と、前記第 4記憶 手段に記憶される最新の第 4周期とを比較する第 4比較手段と、
前記比較結果に基づいて値を出力する出力手段であって、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1立上り計時時 間が最新の第 1周期より短い場合、それぞれ最新の第 1周期と第 2周期と第 3周期と 第 4周期との周期合計期間を出力し、第 1立上り計時時間が最新の第 1周期より短く ない場合、第 1立上り計時時間と、それぞれ最新の第 2周期と第 3周期と第 4周期との 合計の第 1合計期間を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2立上り計時時 間が最新の第 2周期より短い場合、周期合計期間を出力し、第 2立上り計時時間が 最新の第 2周期より短くない場合、第 2立上り計時時間と、それぞれ最新の第 1周期と 第 3周期と第 4周期との合計の第 2合計期間を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 1立下り計時時 間が最新の第 3周期より短い場合、周期合計期間を出力し、第 1立下り計時時間が 最新の第 3周期より短くない場合、第 1立下り計時時間と、それぞれ最新の第 1周期と 第 2周期と第 4周期との合計の第 3合計期間を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、第 4比較手段の比較結果に基づいて、第 2立下り計時時間が 最新の第 4周期より短い場合、周期合計期間を出力し、第 2立下り計時時間が最新 の第 4周期より短くない場合、第 2立下り計時時間と、それぞれ最新の第 1周期と第 2 周期と第 3周期との合計の第 4合計期間を出力する出力手段とを含むことを特徴とす る制御装置である。
さらに本発明において、前記第 1比較手段は、前記第 1立上り計時手段によって計 時される第 1立上り計時時間と、前記第 4記憶手段に記憶される最新の第 4周期とを 比較し、
前記第 2比較手段は、前記第 2立上り計時手段によって計時される第 2立上り計時 時間と、前記第 1記憶手段に記憶される最新の第 1周期とを比較し、
前記第 3比較手段は、前記第 1立下り計時手段によって計時される第 1立下り計時 時間と、前記第 2記憶手段に記憶される最新の第 2周期とを比較し、
前記第 4比較手段は、前記第 2立下り計時手段によって計時される第 2立下り計時 時間と、前記第 3記憶手段に記憶される最新の第 3周期とを比較し、
前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1立上り計時時 間が最新の第 4周期より短い場合、周期合計期間を出力し、第 1立上り計時時間が 最新の第 4周期より短くない場合、第 1合計期間を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2立上り計時時 間が最新の第 1周期より短い場合、周期合計期間を出力し、第 2立上り計時時間が 最新の第 1周期より短くない場合、第 2合計期間を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 1立下り計時時 間が最新の第 2周期より短い場合、周期合計期間を出力し、第 1立下り計時時間が 最新の第 2周期より短くない場合、第 3合計期間を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、第 4比較手段の比較結果に基づいて、第 2立下り計時時間が 最新の第 3周期より短い場合、周期合計期間を出力し、第 2立下り計時時間が最新 の第 3周期より短くない場合、第 4合計期間を出力することを特徴とする。
さらに本発明において、前記第 1比較手段は、前記第 1合計期間と、前記周期合計 期間とを比較し、
前記第 2比較手段は、前記第 2合計期間と、前記周期合計期間とを比較し、 前記第 3比較手段は、前記第 3合計期間と、前記周期合計期間とを比較し、 前記第 4比較手段は、前記第 4合計期間と、前記周期合計期間とを比較し、 前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1合計期間が 周期合計期間より短い場合、周期合計期間を出力し、第 1合計期間が周期合計期間 より短くない場合、第 1合計期間を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2合計期間が 周期合計期間より短い場合、周期合計期間を出力し、第 2合計期間が周期合計期間 より短くない場合、第 2合計期間を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 3合計期間が 周期合計期間より短い場合、周期合計期間を出力し、第 3合計期間が周期合計期間 より短くない場合、第 3合計期間を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、第 4比較手段の比較結果に基づいて、第 4合計期間が周期 合計期間より短い場合、周期合計期間を出力し、第 4合計期間が周期合計期間より 短くない場合、第 4合計期間を出力することを特徴とする。
さらに本発明において、前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上りェ ッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1合計期間を出 力する場合、第 1合計期間と予め定める付加時間との合計の第 1付加合計期間を出 力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下りェ ッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2合計期間を出 力する場合、第 2合計期間と予め定める付加時間との合計の第 2付加合計期間を出 力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上りェ ッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 3合計期間を出 力する場合、第 3合計期間と予め定める付加時間との第 3付加合計期間を出力し、 前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下りェ ッジを検出するまで、前記第 4比較手段の比較結果に基づいて、第 4合計期間を出 力する場合、第 4合計期間と予め定める付加時間との合計の第 4付加合計期間を出 力することを特徴とする。
さらに本発明において、前記出力手段によって出力される値は、被駆動体の速度 に基づレ、て設定される境界値以下の場合に有効とし、前記境界値より大きレ、場合、 無効とすることを特徴とする。
さらに本発明は、駆動手段を制御する制御装置であって、
駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応じた速度 情報を、定期または不定期に取得する取得手段と、
前記取得手段によって取得される速度情報を時系列に従って記憶する取得情報 記憶手段と、
取得される速度情報が、取得情報記憶手段に記憶される直前の予め定める時間に わたって、予め定める範囲内の一定値であるか否かを判断する判断手段と、 判断手段の判断結果に基づいて、取得される速度情報が一定値である場合、前記 速度情報に予め定める値を加算した制御値を出力し、取得される速度情報が一定値 でない場合、前記速度情報を制御値として出力する制御値生成手段と、
前記制御値生成手段によって出力される制御値と、被駆動体の予め定める変位量 とに基づいて、被駆動体の速度を演算する速度演算手段と、
前記速度演算手段によって演算される速度に基づいて、駆動手段を制御する制御 手段とを含むことを特徴とする制御装置である。
さらに本発明は、駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応じた 速度情報を、定期または不定期に取得する取得手段と、
前記取得手段によって取得される速度情報を時系列に従って記憶する取得情報 記憶手段と、 前記取得手段によって取得される速度情報が、取得情報記憶手段に記憶される速 度情報に基づいて、予め定める範囲内にある直前の一定期間を、算出する一定期 間算出手段と、
前記一定期間算出手段によって算出される一定期間と、前記取得情報記憶手段 に記憶される速度情報のうち、前記一定期間前の速度情報との時間の長さを比較す る期間比較手段と、
前記期間比較手段の比較結果に基づいて、前記一定期間が前記一定期間前の 速度情報より短い場合、取得手段によって取得される速度情報と、被駆動体の予め 定める変位量とに基づいて、被駆動体の速度を演算し、前記一定期間が前記一定 期間前の速度情報より短くない場合、前記取得手段によって取得される速度情報と、 被駆動体の予め定める変位量とに基づいて、被駆動体の仮速度を演算し、前記仮 速度から予め定める値を減算して被駆動体の速度を演算する速度演算手段と、 前記速度演算手段によって演算される速度に基づいて、駆動手段を制御する制御 手段とを含むことを特徴とする制御装置である。
さらに本発明において、前記速度演算手段は、
前記期間比較手段の比較結果に基づいて、前記一定期間が前記一定期間前の 速度情報より短い場合、前記取得手段によって取得される速度情報と、被駆動体の 予め定める変位量に基づいて、被駆動体の速度を演算し、
前記一定期間が前記一定期間前の速度情報より短くない場合、前記取得手段によ つて取得される速度情報と、駆動体の予め定める変位量に基づいて、被駆動体の仮 速度を演算し、前記仮速度に予め定める減衰率を乗じて被駆動体の速度を演算す ることを特徴とする。
さらに本発明において、前記減衰率は、前記一定期間の時間の長さが長くなるに 従って、小さくなるように設定されることを特徴とする。
さらに本発明は、駆動手段を制御する制御方法であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得し、
前記パルス信号の立上りエッジおよび立下りエッジのいずれか一方のエッジを検出 し、
前記エッジが検出されると、その検出時刻から起算して計時を開始し、
前記エッジが検出されると、該エッジとその 1つ前に検出されるエッジとの周期を演 算し、
計時される計時時間と、演算される最新のエッジの周期との時間の長さを比較し、 比較結果に基づいて、前記計時時間または前記周期のいずれか長い方の値を出 力することを特徴とする制御方法である。
さらに本発明は、駆動手段を制御する制御方法であって、
駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応じた速度 情報を、定期または不定期に取得し、
取得される速度情報が、取得される直前の予め定める時間にわたって、予め定める 範囲内の一定値であるか否かを判断し、
判断結果に基づいて、取得される速度情報が一定値である場合、前記速度情報に 予め定める値を加算した制御値を出力し、取得される速度情報が一定値でない場合 、前記速度情報を制御値として出力し、
出力される前記制御値と、被駆動体の予め定める変位量とに基づいて、被駆動体 の速度を演算し、
演算される速度に基づいて、駆動手段を制御することを特徴とする制御方法である 図面の簡単な説明
本発明の目的、特色、および利点は、下記の詳細な説明と図面とからより明確にな るであろう。
図 1は、本発明の第 1の実施形態のサーボ制御システムの電気的構成を概略的に 示すブロック図である。
図 2は、本発明の第 1の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 3は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 4は、図 3に示す CPUの動作を説明するためのタイミングチャートである。 図 5は、速度情報と時刻との関係を示すグラフである。
図 6は、速度と時刻との関係を示すグラフである。
図 7は、本例の CPUの動作を説明するためのタイミングチャートである。
図 8は、本発明の第 2の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 9は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 10は、図 9に示す CPUの動作を説明するためのタイミングチャートである。
図 11は、本発明の第 3の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 12は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 13は、図 12に示す CPUの動作を説明するためのタイミングチャートである。 図 14は、本発明の第 4の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 15は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 16は、図 15に示す CPUの動作を説明するためのタイミングチャートである。 図 17は、本発明の第 5の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 18は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 19は、図 18に示す CPUの動作を説明するためのタイミングチャートである。 図 20は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 21は、図 20に示す CPUの動作を説明するためのタイミングチャートである。 図 22は、本発明の第 7の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 23は、エンコーダ信号制御部の CPUによる処理を示すフローチャートである。 図 24は、図 23に示す CPUの動作を説明するためのタイミングチャートである。 図 25は、本発明の第 9の実施形態のサーボ制御システムの電気的構成を示すプロ ック図である。
図 26は、速度情報が最大値を越える場合の CPUの動作を説明するためのタイミン グチャートである。
図 27は、本発明の第 10の実施形態のサーボ制御システムを構成するサーボコント ローラの構成を示すブロック図である。
図 28は、サーボコントローラの制御値生成部による処理を示すフローチャートであ る。
図 29は、位置情報が変化している場合の速度演算部の動作を説明するための図 である。
図 30は、位置情報が変化していない場合の速度演算部の動作を説明するための 図である。
図 31は、本発明の第 11の実施形態のサーボ制御システムを構成するサーボコント ローラの構成を示すブロック図である。
図 32は、サーボコントローラの速度演算部による処理を示すフローチャートである。 図 33は、図 32に示す速度演算部の動作を説明するための図である。
図 34は、従来の技術のインクジェット装置に用いられるサーボ制御システムの電気 的構成を示すブロック図である。
図 35は、従来の技術のエンコーダの構成を簡略化して示す図である。
図 36は、コンパレータによって出力される差動出力信号の波形と、コンパレータに 入力される 2つの電気信号の波形を示す図である。
図 37は、コンパレータによって出力される差動出力信号の波形と、コンパレータに 入力される 2つの電気信号の波形を示す図であって、フォトダイオードの感度に差が ある場合の波形を示す。
発明を実施するための最良の形態
以下図面を参考にして本発明の好適な実施形態を詳細に説明する。
以下、図面を参照しながら本発明を実施するための形態を、複数の形態について 説明する。各形態で先行する形態で説明している事項に対応している部分には同一 の参照符を付し、重複する説明を略する場合がある。構成の一部のみを説明してい る場合、構成の他の部分は、先行して説明している形態と同様とする。各実施形態で 具体的に説明している部分の組合せば力りではなぐ特に組合せに支障が生じなけ れば、実施形態同士を部分的に組合せることも可能である。各フローチャートの開始 条件は、記載した開始条件だけに必ずしも限定されるものではない。
図 1は、本発明の第 1の実施形態のサーボ制御システム 20の電気的構成を概略的 に示すブロック図である。サーボ制御システム 20は、モータ 21などの駆動手段によつ て変位される被駆動体の速度情報をフィードバックして、駆動手段をサーボ制御する サーボ制御システム 20は、被駆動体を駆動する駆動手段を制御するための装置で ある。駆動手段は、モータ 21などの駆動源によって実現される。駆動手段は、たとえ ばインクジェット装置に搭載され、記録媒体を印刷位置へ送るオートシートフィーダ( ASF)モータである場合、被駆動体がその記録媒体となる。したがって、サーボ制御 システム 20は、記録媒体を所望の印刷位置へ高精度に配置できるように、 ASFモー タを制御する。サーボ制御システム 20は、サーボコントローラ 22、モータドライバ 23、 モータ 21、エンコーダ 24およびエンコーダ信号制御部 25を含んで構成される。 サーボコントローラ 22は、 目標位置および目標速度が入力され、被駆動体が目標 位置および目標速度となるように、モータ 21を制御する。サーボコントローラ 22は、 所定間隔のサーボ周期になると、ェンコーダ信号制御部 25に記憶される被駆動体 の速度情報を読取る。サーボコントローラ 22は、エンコーダ信号制御部 25から読取 る被駆動体の速度情報、および入力される目標位置および目標速度に基づレ、て、 演算を行い、最適な制御情報を、たとえばパルス幅変調(Pulse Width Modulation : 略称 PWM)して、モータドライバ 23に出力する。
モータドライバ 23は、入力された制御情報に従ってモータ 21に指令電圧を出力す る。モータ 21は、 DCモータによって実現され、モータドライバ 23にから与えられる指 令電圧に基づいてモータ軸が回転する。
エンコーダ 24は、モータ 21の駆動に応じて変位される被駆動体の速度に応じた周 期のパルス信号 36を生成し、生成した信号をエンコーダ信号制御部 25へ出力する 。エンコーダ 24は、たとえば図 35に関連して説明したエンコーダ 6と同様の構成によ つて実現される。したがって、前述したようにパルス信号 36の周期は、被駆動体の予 め定める変位量を変位する時間と同一である。予め定める変位量は、前述のコード ホイール 9に設けられる光を透過する部分 9aと光を透過しない部分 9bとの間隔 2Lに よって決定される。
エンコーダ信号制御部 25は、制御装置であって、エンコーダ 24から与えられるパ ルス信号 36に基づいて、速度情報を演算し、演算した速度情報を、サーボコントロー ラ 22に与える。エンコーダ信号制御部 25は、エッジ検出部 26、エッジ間隔カウント部 27、エッジ間隔履歴記憶部 28、比較部 29、速度情報記憶部 31、設定情報記憶部 3 2および中央処理装置(Central Processing Unit:略称 CPU30)を含んで構成され、 前記各構成要素はシステムバス 19によって互レ、に電気的に接続される。
エッジ検出部 26は、エッジ検出手段であって、エンコーダ 24から与えられるパルス 信号 36のエッジを検出する。ここでエッジとは、パルス信号 36の立上りエッジまたは 立下りエッジを含む。
エッジ間隔カウント部 27は、計時手段であって、エッジ検出部 26によってエッジが 検出されると、その検出時刻から起算して計時を開始する。したがって、エッジ間隔 カウント部 27は、エッジが検出される毎に、初期値からカウントが開始される。またェ ッジ間隔カウント部 27は、演算手段としての機能を有し、エッジ検出部 26によってェ ッジが検出されると、該エッジとその 1つ前に検出されるエッジとの周期を演算する。 したがって、エッジ間隔カウント部 27は、パルス信号 36の立上りエッジから立上りエツ ジの周期、または立下りエッジから立下りエッジまでの周期を演算し、演算された周 期をエッジ間隔履歴記憶部 28に与える。
エッジ間隔履歴記憶部 28は、エッジ間隔カウント部 27から与えられる周期を、時系 列に従って記憶する。比較部 29は、比較手段であって、エッジ間隔カウント部 27に よって計時される計時時間と、エッジ間隔履歴記憶部 28に記憶される最新の周期と の時間の長さを比較し、比較した結果を CPU30に与える。したがって、比較部 29は 、エッジを検出してから次のエッジを検出するまで、該エッジを検出してからの経過時 間と、該エッジの検出時刻から 1つ前のエッジの周期、つまり 1つ前のエッジ間隔とを 比較する。
CPU30は、出力手段であって、比較部 29による比較結果に基づいて、比較した 計時時間または周期のいずれかの値を速度情報として、速度情報記憶部 31に出力 する。 CPU30は、たとえばマイクロコンピュータによって実現される。
速度情報記憶部 31は、 CPU30から与えられる速度情報を、時系列的に記憶する 。サーボコントローラ 22は、前述したように、予め定めるサーボ周期毎に、速度情報 記憶部 31に記憶される最新の速度情報を読出し、読出した速度情報に基づいて制 御情報を演算する。
設定情報記憶部 32は、各種設定を一時的、または長期的に記憶する。設定情報 記憶部 32は、たとえば、各制御に用いられる制御プログラムなどが記憶されるリード オンリーメモリ(Read Only Memory:略称 ROM) 33、 CPU30の処理に用いられる一 時的な情報が記憶されるランダムアクセスメモリ(Random Access Memory:略称 RA M) 34および各構成要素の処理に用いられる一時的な情報を記憶する共有 RAM3 5を含んで構成される。したがって、 CPU30は、 ROM33に記憶される制御プロダラ ムを実行し、各構成部を制御する。
図 2は、本発明の第 1の実施形態のサーボ制御システム 20の電気的構成を示すブ ロック図である。図 2では、エンコーダ信号制御部 25の主要な構成に関して示し、残 余の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を 省略する。図 2に示すエンコーダ信号制御部 25は、パルス信号 36の立上りエッジを 検出して、速度情報を演算する構成である。本実施形態のエンコーダ信号制御部 2 5では、パルス信号 36の立上りエッジを検出して、立上りエッジに基づいて制御する 立上りエッジ検出部 37は、エッジ検出部 26であって、エンコーダ 24から与えられる パルス信号 36の立上りエッジを検出する。立上りエッジ間隔カウント部 38は、エッジ 間隔カウント部 27であって、立上りエッジ検出部 37によって立上りエッジが検出され ると、その検出時刻から起算して計時を開始する。
立上りエッジ間隔カウント部 38は、計時した立上り計時時間を、比較部 29に与える 。また立上りエッジ間隔カウント部 38は、立上りエッジ検出部 37によって立上りエッジ が検出されると、該立上りエッジとその 1つ前に検出される立上りエッジとの周期を演 算し、演算された立上り周期を立上りエッジ間隔履歴部 39に与える。
立上りエッジ間隔履歴部 39は、立上りエッジ間隔カウント部 38から与えられる立上 り周期を、時系列に従って記憶する。比較部 29は、立上りエッジ間隔カウント部 38に よって計時される立上り計時時間と、立上りエッジ間隔履歴部 39に記憶される最新 の立上り周期との時間の長さを比較し、比較した結果を CPU30に与える。
CPU30は、比較部 29の比較結果に基づいて、立上り計時時間または立上り周期 のいずれか長い方の値を速度情報記憶部 31に出力する。速度情報記憶部 31は、 C PU30から与えられる速度情報を時系列的に記憶する。
次に、エンコーダ信号制御部 25の動作についてフローチャートを用いて説明する。 各フローチャートの動作は、エンコーダ信号制御部 25の CPU30によって行われる。 図 3は、エンコーダ信号制御部 25の CPU30による処理を示すフローチャートである 。この処理は、電源投入状態で繰り返し実行される。図 4は、 CPU30の動作を説明 するためのタイミングチャートである。図 4に示すタイミングチャートは、図 3に示す CP U30の動作に関連している。
ステップ alでは、立上りエッジ間隔カウント部 38によって計時される立上り計時時 間と、立上りエッジ間隔履歴部 39に記憶される最新の立上り周期との時間の長さを 比較し、立上り計時時間が立上り周期より短い場合、ステップ a2に移り、短くない場 合、ステップ a3に移る。
ステップ a2では、立上りエッジ間隔履歴部 39に記憶される最新の立上り周期を出 力し、本フローを終了する。ステップ a3では、立上りエッジ間隔カウント部 38によって 計時される立上り計時時間を出力し、本フローを終了する。
このような動作を、図 4を参照して説明すると、パルス信号 36は、時刻 ti lにて立上 りエッジが検出され、時刻 ti lから立上り周期 a経過後に、時刻 tl 2にて再び立上りェ ッジが検出される。時刻 tl 2から 1つ前の立上り周期 aが経過する時刻 tl3までは、時 刻 tl 2から計時が開始される立上り計時時間 b'が立上り周期 aより短いので、 CPU3 0は速度情報として 1つ前の立上り周期 aを出力する。また時刻 tl3から次の立上りェ ッジが検出される時刻 tl5までは、時刻 tl3から立上り計時時間 b'の方が長くなるの で、 CPU30は速度情報として立上り計時時間 b'を出力する。
同様に、時刻 tl 5から 1つ前の立上り周期である立上り周期 bが経過する時刻 tl6ま では、時刻 tl5から計時が開始される立上り計時時間 c'が周期 bより短いので、 CPU 30は速度情報として 1つ前の立上り周期 bを出力する。また時刻 tl6から次の立上り エッジが検出される時刻 tl7までは、時刻 tl6から立上り計時時間 c'の方が長くなる ので、 CPU30は速度情報として立上り計時時間 c'を出力する。したがって、サーボ 周期が時刻 tl3と時刻 tl5との間の時刻 tl4である場合、図 4に示すように、速度情 報は立上り計時時間 b'である。
図 5は、速度情報と時刻との関係を示すグラフである。図 6は、速度と時刻との関係 を示すグラフである。図 5および図 6は、図 4に示すタイミングチャートに関連している 。図 6に示す速度は、前述したコードホイールに設けられる光を透過する部分と光を 透過しない部分との間隔 2Lを、図 5に示す速度情報で除した値である。図 5に示すよ うに、時刻 tl2から時刻 tl 3までは、速度情報は、立上り周期 aである。また時刻 tl3 から時刻 tl5までは、速度情報は、立上りエッジ間隔カウント部 38によって計時され ている立上り計時時間 b'である。この速度情報を除した値が、図 6に示す被駆動体 の検出した速度とされる。
以上、説明したように、本実施形態のエンコーダ信号制御部 25では、立上りエッジ 間隔カウント部 38によって計時される立上り計時時間と、立上りエッジ間隔履歴部 39 に記憶される最新の立上りエッジの立上り周期との時間の長さを比較し、その比較結 果に基づレ、て、立上り計時時間または立上り周期のレ、ずれか長レ、方の値を出力する 。従来の技術では、次の立上り周期が検出されるまでの間、単に最新の立上り周期 を出力していた力 本実施形態のエンコーダ信号制御部 25のように立上り計時時間 が最新の立上り周期より長い場合は、立上り計時時間を出力するので、高精度にパ ルス信号 36の周期を予測して、リアルタイムに近似することができる。これによつて高 精度に出力されたパルス信号 36の周期に基づいて、被駆動体の速度を高精度に算 出すること力 Sできる。したがって、被駆動体の速度の検出精度を高めることができ、駆 動手段を安定して制御することができる。
また本実施形態では、 CPU30は、立上りエッジ間隔カウント部 38によって計時され る立上り計時時間と、立上りエッジ間隔履歴部 39に記憶される最新の立上り周期と の時間の長さを比較し、その比較結果に基づいて、立上り計時時間または立上り周 期のいずれか長い方の値を出力すしている力 S、これに限ることはなく、立上り計時時 間が最新の立下り周期より短くない場合、立上り計時時間に予め定める付加時間を 付加した値を出力するように構成してもよい。
この付加時間は、たとえば速度情報をサンプリングする最短のサンプリング周期に 設定され、たとえば 500nsに設定される。このように付加期間を付加することによって 、立上り計時時間が立上り周期より短くない場合は、立上り計時時間は、図 5に示す ように、時間の経過とともに大きくなるので、前もって付加期間を付加することによって 、より実際の被駆動体の速度情報に近似させることができる。たとえば立上り計時時 間 b'のとき、付加期間を付加することによって、立上り周期 bに近似させることができ る。これによつて、より高精度に被駆動体の速度を算出することができる。
このような付加期間は、そのサンプリング周期に基づいて適宜設定される。付加期 間が小さすぎると、前述の近似する効果が小さくなり、付加期間が大きすぎると、近似 させるべき周期より大きくなりすぎるおそれがあるので、付加期間は、前述のようにサ ンプリング周期に基づいて、設定されることが好ましい。
次に、本実施形態の他の例のエンコーダ信号制御部 25に関して説明する。図 7は 、本例の CPU30の動作を説明するためのタイミングチャートである。本例のェンコ一 ダ信号制御部 25では、パルス信号 36の立下りエッジを検出して、立下りエッジに基 づいて制御する点が前述のエンコーダ信号制御部 25と異なる。
このようなエンコーダ信号制御部 25の CPU30の動作を、図 7を参照して動作を説 明すると、パルス信号 36は、時刻 t21にて立下りエッジが検出され、時刻 t21から立 下り周期 a経過後に、時刻 t22にて再び立下りエッジが検出される。時刻 t22から 1つ 前の立下り周期 aが経過する時刻 t23までは、時刻 t22から計時が開始される立下り 計時時間 b'が立下り周期 aより短いので、 CPU30は速度情報として 1つ前の立下り 周期 aを出力する。また時刻 t23から次の立下りエッジが検出される時刻 t25までは、 時刻 t23から立下り計時時間 b'の方が長くなるので、 CPU30は速度情報として立下 り計時時間 b'を出力する。
同様に、時刻 t25から 1つ前の周期である立下り周期 bが経過する時刻 t26までは、 時刻 t25から計時が開始される立下り計時時間 c'が立下り周期 bより短いので、 CPU 30は速度情報として 1つ前の立下り周期 bを出力する。また時刻 t26から次の立下り エッジが検出される時刻 t27までは、時刻 t26から立下り計時時間 c 'の方が長くなる ので、 CPU30は速度情報として立下り計時時間 c 'を出力する。したがって、本例の エンコーダ信号制御部 25は、前述のエンコーダ信号制御部 25と同様の作用および 効果を達成することができる。
次に、本発明の第 2の実施形態のサーボ制御システム 20aに関して説明する。図 8 は、本発明の第 2の実施形態のサーボ制御システム 20aの電気的構成を示すブロッ ク図である。図 8では、エンコーダ信号制御部 25aの主要な構成に関して示し、残余 の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を省 略する。図 8に示すエンコーダ信号制御部 25aは、パルス信号 36の立上りエッジおよ び立下りエッジを個別に検出して、速度情報を演算する構成である。本実施形態の エンコーダ信号制御部 25aは、前述の第 1の実施形態のエンコーダ信号制御部 25と 類似しており、第 1の実施形態のエンコーダ信号制御部 25に、さらに立下りエッジ検 出部 40、立下りエッジ間隔カウント部 41および立下りエッジ間隔履歴部 42を含んで 構成される。また第 1の実施形態の比較部 29は、さらに第 1比較部 43および第 2比 較部 44を含んで構成される。
立下りエッジ検出部 40は、エンコーダ 24から与えられるパルス信号 36の立下りエツ ジを検出する。立下りエッジ間隔カウント部 41は、立下り計時手段であって、立下りェ ッジ検出部 40によって立下りエッジが検出されると、その検出時刻から起算して計時 を開始する。
立下りエッジ間隔カウント部 41は、計時した計時時間を、第 2比較部 44に与える。 また立下りエッジ間隔カウント部 41は、立下りエッジ検出部 40によって立下りエッジ が検出されると、該立下りエッジとその 1つ前に検出される立下りエッジとの立下り周 期を演算し、演算された立下り周期を立下りエッジ間隔履歴部 42に与える。
立下りエッジ間隔履歴部 42は、立下りエッジ間隔カウント部 41から与えられる立下 り周期を、時系列に従って記憶する。
第 1比較部 43は、第 1比較手段であって、立上りエッジ間隔カウント部 38によって 計時される立上り計時時間と立下りエッジ間隔履歴部 42に記憶される最新の立下り 周期との時間の長さを比較し、比較した結果を CPU30に与える。第 2比較部 44は、 第 2比較手段であって、立下りエッジ間隔カウント部 41によって計時される立下り計 時時間と立上りエッジ間隔履歴部 39に記憶される最新の立上り周期との時間の長さ を比較し、比較した結果を CPU30に与える。
CPU30は、パルス信号 36の立下りエッジを検出してからパルス信号 36の立上りェ ッジを検出するまで、第 1比較部 43の比較結果に基づいて、立上り計時時間または 立下り周期のいずれか長い方の値を出力する。また CPU30は、パルス信号 36の立 上りエッジを検出してからパルス信号 36の立下りエッジを検出するまで、第 2比較部 44の比較結果に基づいて、立下り計時時間または立上り周期のいずれか長い方の 値を出力する。
次に、エンコーダ信号制御部 25aの動作についてフローチャートを用いて説明する 。図 9は、エンコーダ信号制御部 25aの CPU30による処理を示すフローチャートであ る。この処理は、電源投入状態で繰り返し実行される。図 10は、 CPU30の動作を説 明するためのタイミングチャートである。図 10に示すタイミングチャートは、図 9に示す CPU30の動作に関連している。
ステップ blでは、現在時刻が、立下りエッジを検出してから立上りエッジを検出する までの第 1経過期間であるか否かを判断し、第 1経過期間である場合、ステップ b2に 移り、第 1経過期間でない場合、ステップ b5に移る。
ステップ b2では、第 1経過期間であるので、立上りエッジ間隔カウント部 38によって 計時される立上り計時時間と、立下りエッジ間隔履歴部 42に記憶される最新の立下 り周期との時間の長さを比較し、立上り計時時間が立下り周期より短い場合、ステツ プ b 3に移り、短くない場合、ステップ b4に移る。
ステップ b3では、立下りエッジ間隔履歴部 42に記憶される最新の立下り周期を出 力し、本フローを終了する。ステップ b4では、立上りエッジ間隔カウント部 38によって 計時される立上り計時時間を出力し、本フローを終了する。
ステップ b5では、現在時刻が、第 1経過期間なぐパルス信号 36の立上りエッジを 検出してからパルス信号 36の立下りエッジを検出するまでの第 2経過期間であるの で、立下りエッジ間隔カウント部 41によって計時される立下り計時時間と、立上りエツ ジ間隔履歴部 39に記憶される最新の立上り周期との時間の長さを比較し、立下り計 時時間が立上り周期より短い場合、ステップ b6に移り、短くない場合、ステップ b7に 移る。
ステップ b6では、立上りエッジ間隔履歴部 39に記憶される最新の立上り周期を出 力し、本フローを終了する。ステップ b7では、立下りエッジ間隔カウント部 41によって 計時される立下り計時時間を出力し、本フローを終了する。
このような動作を、図 10を参照して説明すると、パルス信号 36は、時刻 t31にて立 上りエッジが検出され、時刻 t31から立上り周期 a経過後に、時刻 t33にて再び立上り エッジが検出される。パルス信号 36が時刻 t32にて立下りエッジが検出され、時刻 t3 2から立下り周期 b経過後に、時刻 t35にて再び立下りエッジが検出される。
時刻 t33から時刻 t35までは、第 2経過期間であり、時刻 t33から時刻 t34までは、 時刻 t32から計時が開始される立下り計時時間 b'が立上り周期 aより短いので、 CPU 30は速度情報として 1つ前の立上り周期、つまり最新の立上り周期である立上り周期 aを出力する。また時刻 t34から次の立下りエッジが検出される時刻 t35までは、時刻 t32からの立下り計時時間 b'の方が長くなるので、 CPU30は速度情報として立下り 計時時間 b'を出力する。
時刻 t35から時刻 t38までは、第 1経過期間であり、時刻 t35から時刻 t36までは、 時刻 t33から計時が開始される立上り計時時間 c'が 1つ前の立下り周期 bより短いの で、 CPU30は速度情報として 1つ前の周期である立下り周期 bを出力する。また時刻 t36から次の立上りエッジが検出される時刻 t38までは、時刻 t33からの立上り計時 時間 c'の方が長くなるので、 CPU30は速度情報として立上り計時時間 c'を出力す る。
同様に、時刻 t38から時刻 t310までは、第 2経過期間であり、時刻 t38から時刻 t3 9までは、時刻 t35から計時が開始される立下り計時時間 d'が立上り周期 cより短い ので、 CPU30は速度情報として 1つ前の立上り周期 cを出力する。また時刻 t39から 次の立下りエッジが検出される時刻 t310までは、時刻 t35からの立下り計時時間 d' の方が長くなるので、 CPU30は速度情報として立下り計時時間 d'を出力する。 同様に、時刻 t310から時刻 t312までは、第 1経過期間であり、時刻 t310から時刻 t311までは、時刻 t38から計時が開始される立上り計時時間 e'が 1つ前の立下り周 期 dより短いので、 CPU30は速度情報として 1つ前の立下り周期 dを出力する。また 時刻 t311から次の立上りエッジが検出される時刻 t312までは、時刻 t38からの立上 り計時時間 e'の方が長くなるので、 CPU30は速度情報として立上り計時時間 e'を出 力する。したがって、サーボ周期が時刻 t36と時刻 t38との間の時刻 t37である場合、 図 10に示すように、速度情報は立上り計時時間 c'である。
以上説明したように、本実施形態のエンコーダ信号制御部 25aでは、パルス信号 3 6の立上りエッジと立下りエッジとの両方が個別に検出され、パルス信号 36の立下り エッジを検出してからパルス信号 36の立上りエッジを検出するまでの第 1経過期間で は、第 1比較部 43の比較結果に基づいて、立上り計時時間または立下り周期のいず れか長い方の値を出力し、パルス信号 36の立上りエッジを検出してからパルス信号 3 6の立下りエッジを検出するまでの第 2経過期間では、第 2比較部 44の比較結果に 基づいて、立下り計時時間または立上り周期のいずれか長い方の値を出力する。し たがって、比較する間隔が、立上りエッジ間または立下りエッジ間を比較するよりも、 細かくなるので、高精度にパルス信号 36の周期を予測してリアルタイムに近似するこ とができる。これによつて高精度に出力されたパルス信号 36の周期に基づいて、被 駆動体の速度を高精度に算出することができる。したがって、被駆動体の速度の検 出精度を高めることができ、駆動手段を安定して制御することができる。
また本実施形態では、 CPU30は、第 1比較部 43の比較結果に基づいて、立上り 計時時間が立下り周期より短くない場合、立上り計時時間を出力しているが、これに 限ることはなぐ立上り計時時間に予め定める付カ卩時間を付加した値を出力するよう に構成してもよい。同様に、 CPU30は、第 2比較部 44の比較結果に基づいて、立下 り計時時間が立上り周期より短くない場合、立下り計時時間を出力しているが、これ に限ることはなぐ立下り計時時間に予め定める付加時間を付加した値を出力するよ うに構成してもよい。これによつて前述した付加期間に関する効果を達成することが できる。
次に、本発明の第 3の実施形態のサーボ制御システム 20bに関して説明する。図 1 1は、本発明の第 3の実施形態のサーボ制御システム 20bの電気的構成を示すプロ ック図である。図 11では、エンコーダ信号制御部 25bの主要な構成に関して示し、残 余の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を 省略する。図 11に示すエンコーダ信号制御部 25bは、パルス信号 36の立上りエッジ および立下りエッジの両方のエッジを検出して、速度情報を演算する構成である。本 実施形態のエンコーダ信号制御部 25bは、前述の第 1の実施形態のエンコーダ信号 制御部 25と類似しており、第 1の実施形態のエンコーダ信号制御部 25に、両エッジ 検出部 45、エッジ間隔カウント部 46およびエッジ間隔履歴部 47を含んで構成される 両エッジ検出部 45は、エンコーダ 24から与えられるパルス信号 36のエッジを検出 する。エッジ間隔カウント部 46は、両エッジ検出部 45によってエッジが検出されると、 その検出時刻から起算して計時を開始する。
エッジ間隔カウント部 46は、計時したエッジ計時時間を、比較部 29に与える。また エッジ間隔カウント部 46は、両エッジ検出部 45によってエッジが検出されると、該ェ ッジとその 1つ前に検出されるエッジとのエッジ周期を演算し、演算されたエッジ周期 をエッジ間隔履歴部 47に与える。
エッジ間隔履歴部 47は、エッジ間隔カウント部 46から与えられるエッジ周期を、時 系列に従って記憶する。
比較部 29は、エッジ間隔カウント部 46によって計時されるエッジ計時時間と、該ェ ッジの検出時刻からエッジ間隔履歴部 47に記憶される 2つ前のエッジ周期との時間 の長さを比較し、比較した結果を CPU30に与える。
CPU30は、比較部 29の比較結果に基づいて、エッジ計時時間または 2つ前のェ ッジ周期のいずれか長い方の値に、 1つ前のエッジ周期を加算した値を出力する。 次に、エンコーダ信号制御部 25bの動作についてフローチャートを用いて説明する 。図 12は、エンコーダ信号制御部 25bの CPU30による処理を示すフローチャートで ある。この処理は、電源投入状態で繰り返し実行される。図 13は、 CPU30の動作を 説明するためのタイミングチャートである。図 13に示すタイミングチャートは、図 12に 示す CPU30の動作に関連している。
ステップ clでは、エッジ間隔カウント部 46によって計時されるエッジ計時時間と、該 エッジの検出時刻からエッジ間隔履歴部 47に記憶される 2つ前のエッジ周期との時 間の長さを比較し、エッジ計時時間がエッジ周期より短い場合、ステップ c2に移り、短 くない場合、ステップ c3に移る。
ステップ c2では、エッジ間隔履歴部 47に記憶される 2つ前のエッジ周期に、 1つ前 のエッジ周期を加算した値を出力し、本フローを終了する。ステップ c3では、エッジ 間隔カウント部 46によって計時されるエッジ計時時間に 1つ前のエッジ周期を加算し た値を出力し、本フローを終了する。
このような動作を、図 13を参照して説明すると、パルス信号 36が時刻 t41にてエツ ジが検出され、時刻 t41からエッジ周期 a経過後に、時刻 t42にて再びエッジが検出 される。また時刻 t42からエッジ周期 b経過後に、時刻 t43にて再びエッジが検出され る。
時刻 t43から 2つ前のエッジ周期 aが経過する時刻 t44までは、時刻 t43から計時が 開始されるエッジ計時時間 c'が 2つ前のエッジ周期 aより短いので、 CPU30は速度 情報として 2つ前のエッジ周期 aに 1つ前のエッジ周期 bを加算した値 # 1を出力する 。また時刻 t44から次のエッジが検出される時刻 t45までは、時刻 t44からエッジ計時 時間 c'の方が長くなるので、 CPU30は速度情報としてエッジ計時時間 c'に 1つ前の エッジ周期 bを加算した値 # 2を出力する。
同様に、時刻 t45から 2つ前のエッジ周期であるエッジ周期 bが経過する時刻 t46ま では、時刻 t45から計時が開始されるエッジ計時時間 d'が 2つ前のエッジ周期 bより 短いので、 CPU30は速度情報として 2つ前のエッジ周期 bに 1つ前のエッジ周期 cを 加算した値 # 3を出力する。また時刻 t46から次のエッジが検出される時刻 t48まで は、時刻 t46からエッジ計時時間 d'の方が長くなるので、 CPU30は速度情報として エッジ計時時間 d'に 1つ前のエッジ周期 cを加算した値 # 4を出力する。
同様の処理が繰返され、 CPU30は、時刻 t48から時刻 t49までは、速度情報として 2つ前のエッジ周期 cに 1つ前のエッジ周期 dを加算した値 # 5を出力し、時刻 t49か ら時刻 t410までは、速度情報としてエッジ計時時間 e'に 1つ前のエッジ周期 dをカロ 算した値 # 6を出力する。また CPU30は、時刻 t410から時刻 t411までは、速度情 報として 2つ前のエッジ周期 dに 1つ前のエッジ周期 eを加算した値 # 7を出力し、時 刻 t411から時刻 t412までは、速度情報としてエッジ計時時間 f'に 1つ前のエッジ周 期 eをカ卩算した値 # 8を出力する。したがって、サーボ周期が時刻 t46と時刻 t48との 間の時刻 t47である場合、図 13に示すように、速度情報は値 # 4である。
以上説明したように、本実施形態のエンコーダ信号制御部 25bでは、パルス信号 3 6の両方のエッジが検出されるので、比較する間隔が、立上りエッジ間または立下り エッジ間を比較するよりも、細かくなるので、高精度にパルス信号 36の周期を予測し てリアルタイムに近似することができる。これによつて高精度に出力されたパルス信号 36の周期に基づいて、被駆動体の速度を高精度に算出することができる。したがつ て、被駆動体の速度の検出精度を高めることができ、駆動手段を安定して制御するこ とができる。
また本実施形態では、 CPU30は、比較部 29の比較結果に基づいて、エッジ計時 時間が 2つ前のエッジ周期より短くない場合、エッジ計時時間に 1つ前のエッジ周期 を加算した値を出力しているが、これに限ることはなぐさらに予め定める付加時間を 付加した値を出力するように構成してもよい。これによつて前述した付加期間に関す る効果を達成することができる。
次に、本発明の第 4の実施形態のサーボ制御システム 20cに関して説明する。図 1 4は、本発明の第 4の実施形態のサーボ制御システム 20cの電気的構成を示すブロ ック図である。図 14では、エンコーダ信号制御部 25cの主要な構成に関して示し、残 余の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を 省略する。図 14に示すエンコーダ信号制御部 25cは、第 1パルス信号 36と、第 1パ ルス信号 36から電気角で約 90度位相のずれた第 2パルス信号 48の立上りエッジお よび立下りエッジの両方のエッジをそれぞれ検出して、速度情報を演算する構成で ある。本実施形態のエンコーダ信号制御部 25cは、前述の第 1〜第 3の実施形態と 類似しており、第 1パルス信号 36に関する処理を行う A相処理部、第 2パルス信号 48 に関する処理を行う B相処理部、第 1〜第 4比較部 43, 44, 49, 50、 CPU30および 速度情報記憶部 31を含んで構成される。
第 2パルス信号 48は、第 1パルス信号 36に基づいて、第 1パルス信号 36から電気 角で 88度以上 92度以下、好ましくは 90度位相がずれた波形を有する。換言すると、 第 2パルス信号 48は、第 1パルス信号 36から半周期位相がずれた波形を有する。 A相処理部は、 A相立上りエッジ検出部 51、 A相立下りエッジ検出部 54、 A相立上 りエッジ間隔カウント部 52、 A相立下りエッジ間隔カウント部 55、 A相立上りエッジ間 隔履歴部 53および A相立下りエッジ間隔履歴部 56を含む。
A相立上りエッジ検出部 51は、エッジ検出手段であって、第 1パルス信号 36の立 上りエッジを検出する。 A相立下りエッジ検出部 54は、エッジ検出手段であって、第 1 パルス信号 36の立下りエッジを検出する。
A相立上りエッジ間隔カウント部 52は、第 1立上り計時手段であって、 A相立上りェ ッジ検出部 51によって第 1パルス信号 36の立上りエッジが検出されると、その検出時 刻から起算して計時を開始する。 A相立上りエッジ間隔カウント部 52は、計時した第 1立上り計時時間である A相立上り計時時間を、第 1比較部 43に与える。また A相立 上りエッジ間隔カウント部 52は、第 1立上り演算手段であって、 A相立上りエッジ検出 部 51によって第 1パルス信号 36の立上りエッジが検出されると、該立上りエッジとそ の 1つ前に検出される第 1パルス信号 36の立上りエッジとの第 1立上り周期である A 相立上り周期を演算し、演算された A相立上り周期を A相立上りエッジ間隔履歴部 5 3に与える。
A相立下りエッジ間隔カウント部 55は、第 1立下り計時手段であって、 A相立下りェ ッジ検出部 54によって第 1パルス信号 36の立下りエッジが検出されると、その検出時 刻から起算して計時を開始する。 A相立下りエッジ間隔カウント部 55は、計時した第 1立下り計時時間である A相立下り計時時間を、第 2比較部 44に与える。また A相立 下りエッジ間隔カウント部 55は、第 1立下り演算手段であって、 A相立下りエッジ検出 部 54によって第 1パルス信号 36の立下りエッジが検出されると、該立下りエッジとそ の 1つ前に検出される第 1パルス信号 36の立下りエッジとの第 1立下り周期である A 相立下り周期を演算し、演算された A相立下り周期を A相立下りエッジ間隔履歴部 5 6に与える。
A相立上りエッジ間隔履歴部 53は、第 1立上り記憶手段であって、 A相立上りエツ ジ間隔カウント部 52から与えられる A相立上り周期を、時系列に従って記憶する。 A 相立下りエッジ間隔履歴部 56は、第 1立下り記憶手段であって。 A相立下りエッジ間 隔カウント部 55から与えられる A相立下り周期を、時系列に従って記憶する。 B相処理部は、 B相立上りエッジ検出部 57、 B相立下りエッジ検出部 60、 B相立上 りエッジ間隔カウント部 58、 B相立下りエッジ間隔カウント部 61、 B相立上りエッジ間 隔履歴部 59および B相立下りエッジ間隔履歴部 62を含む。
B相立上りエッジ検出部 57は、エッジ検出手段であって、第 2パルス信号 48の立上 りエッジを検出する。 B相立下りエッジ検出部 60は、エッジ検出手段であって、第 2パ ルス信号 48の立下りエッジを検出する。
B相立上りエッジ間隔カウント部 58は、第 2立上り計時手段であって、 B相立上りェ ッジ検出部 57によって第 2パルス信号 48の立上りエッジが検出されると、その検出時 刻から起算して計時を開始する。 B相立上りエッジ間隔カウント部 58は、計時した第 2 立上り計時時間である B相立上り計時時間を、第 3比較部 49に与える。また B相立上 りエッジ間隔カウント部 58は、第 2立上り演算手段であって、 B相立上りエッジ検出部 57によって第 2パルス信号 48の立上りエッジが検出されると、該立上りエッジとその 1 つ前に検出される第 2パルス信号 48の立上りエッジとの第 2立上り周期である B相立 上り周期を演算し、演算された B相立上り周期を B相立上りエッジ間隔履歴部 59に与 える。
B相立下りエッジ間隔カウント部 61は、第 2立下り計時手段であって、 B相立下りェ ッジ検出部 60によって第 2パルス信号 48の立下りエッジが検出されると、その検出時 刻から起算して計時を開始する。 B相立下りエッジ間隔カウント部 61は、計時した第 2 立下り計時時間である B相立下り計時時間を、第 4比較部 50に与える。また B相立下 りエッジ間隔カウント部 61は、第 2立下り演算手段であって、 B相立下りエッジ検出部 60によって第 2パルス信号 48の立下りエッジが検出されると、該立下りエッジとその 1 つ前に検出される第 2パルス信号 48の立下りエッジとの第 2立下り周期である B相立 下り周期を演算し、演算された B相立下り周期を B相立下りエッジ間隔履歴部 62に与 る。
B相立上りエッジ間隔履歴部 59は、第 2立上り記憶手段であって、 B相立上りエッジ 間隔カウント部 58から与えられる B相立上り周期を、時系列に従って記憶する。 B相 立下りエッジ間隔履歴部 62は、第 2立下り記憶手段であって。 B相立下りエッジ間隔 カウント部 61から与えられる B相立下り周期を、時系列に従って記憶する。 第 1比較部 43は、第 1比較手段であって、 A相立上りエッジ間隔カウント部 52によ つて計時される A相立上り計時時間と、 B相立下りエッジ間隔履歴部 62に記憶される 最新の B相立下り周期とを比較し、比較した結果を CPU30に与える。
第 2比較部 44は、第 2比較手段であって、 A相立下りエッジ間隔カウント部 55によ つて計時される A相立下り計時時間と、 B相立上りエッジ間隔履歴部 59に記憶される 最新の B相立上り周期とを比較し、比較した結果を CPU30に与える。
第 3比較部 49は、第 3比較手段であって、 B相立上りエッジ間隔カウント部 58によつ て計時される B相立上り計時時間と、 A相立上りエッジ間隔履歴部 53に記憶される最 新の A相立上り周期とを比較し、比較した結果を CPU30に与える。
第 4比較部 50は、第 4比較手段であって、 B相立下りエッジ間隔カウント部 61によつ て計時される B相立下り計時時間と、 A相立下りエッジ間隔履歴部 56に記憶される最 新の A相立下り周期とを比較し、比較した結果を CPU30に与える。
CPU30は、第 2パルス信号 48の立下りエッジを検出してから第 1パルス信号 36の 立上りエッジを検出するまでの第 1比較期間において、第 1比較部 43の比較結果に 基づいて、 A相立上り計時時間または B相立下り周期のいずれか長い方の値を出力 する。
また CPU30は、第 2パルス信号 48の立上りエッジを検出してから第 1パルス信号 3 6の立下りエッジを検出するまでの第 2比較期間において、第 2比較部 44の比較結 果に基づレ、て、 A相立下り計時時間または B相立上り周期のレ、ずれか長レ、方の値を 出力する。
また CPU30は、第 1パルス信号 36の立上りエッジを検出してから第 2パルス信号 4 8の立上りエッジを検出するまでの第 3比較期間において、第 3比較部 49の比較結 果に基づレ、て、 B相立上り計時時間または A相立上り周期のレ、ずれか長レ、方の値を 出力する。
また CPU30は、第 1パルス信号 36の立下りエッジを検出してから第 2パルス信号 4 8の立下りエッジを検出するまでの第 4比較期間において、第 4比較部 50の比較結 果に基づレ、て、 B相立下り計時時間または A相立下り周期のレ、ずれか長レ、方の値を 出力する。速度情報記憶部 31は、 CPU30から与えられる速度情報を時系列的に記 憶する。
次に、エンコーダ信号制御部 25cの動作についてフローチャートを用いて説明する 。各フローチャートの動作は、エンコーダ信号制御部 25cの CPU30によって行われ る。図 15は、エンコーダ信号制御部 25cの CPU30による処理を示すフローチャート である。この処理は、電源投入状態で繰り返し実行される。図 16は、 CPU30の動作 を説明するためのタイミングチャートである。図 16に示すタイミングチャートは、図 15 に示す CPU30の動作に関連してレ、る。
ステップ dlでは、現在時刻が、第 2パルス信号 48の立下りエッジを検出してから第 1パルス信号 36の立上りエッジを検出するまでの第 1比較期間であるか否力、を判断し 、第 1比較期間である場合、ステップ d2に移り、第 1比較期間でない場合、ステップ d 5に移る。
ステップ d2では、第 1比較期間であるので、 A相立上りエッジ間隔カウント部 52によ つて計時される A相立上り計時時間と、 B相立下りエッジ間隔履歴部 62に記憶される 最新の B相立下り周期との時間の長さを比較し、 A相立上り計時時間が B相立下り周 期より短い場合、ステップ d3に移り、短くない場合、ステップ d4に移る。
ステップ d3では、 B相立下りエッジ間隔履歴部 62に記憶される最新の B相立下り周 期を出力し、本フローを終了する。ステップ d4では、 A相立上りエッジ間隔カウント部 52によって計時される A相立上り計時時間を出力し、本フローを終了する。
ステップ d5では、現在時刻が、第 2パルス信号 48の立上りエッジを検出してから第 1パルス信号 36の立下りエッジを検出するまでの第 2比較期間であるか否かを判断し 、第 2比較期間である場合、ステップ d6に移り、第 2比較期間でない場合、ステップ d 9に移る。
ステップ d6では、第 2比較期間であるので、 A相立下りエッジ間隔カウント部 55によ つて計時される A相立下り計時時間と、 B相立上りエッジ間隔履歴部 59に記憶される 最新の B相立上り周期との時間の長さを比較し、 A相立下り計時時間が B相立上り周 期より短い場合、ステップ d7に移り、短くない場合、ステップ d8に移る。
ステップ d7では、 B相立上りエッジ間隔履歴部 59に記憶される最新の B相立上り周 期を出力し、本フローを終了する。ステップ d8では、 A相立下りエッジ間隔カウント部 55によって計時される A相立下り計時時間を出力し、本フローを終了する。
ステップ d9では、現在時刻が、第 1パルス信号 36の立上りエッジを検出してから第 2パルス信号 48の立上りエッジを検出するまでの第 3比較期間であるか否かを判断し 、第 3比較期間である場合、ステップ dlOに移り、第 3比較期間でない場合、ステップ dl3に移る。
ステップ dlOでは、第 3比較期間であるので、 B相立上りエッジ間隔カウント部 58に よって計時される B相立上り計時時間と、 A相立上りエッジ間隔履歴部 53に記憶され る最新の A相立上り周期との時間の長さを比較し、 B相立上り計時時間が A相立上り 周期より短い場合、ステップ dl lに移り、短くない場合、ステップ dl2に移る。
ステップ dl lでは、 A相立上りエッジ間隔履歴部 53に記憶される最新の A相立上り 周期を出力し、本フローを終了する。ステップ dl2では、 B相立上りエッジ間隔カウン ト部 58によって計時される B相立上り計時時間を出力し、本フローを終了する。
ステップ dl 3では、第 1〜第 3比較期間ではなぐ第 1パルス信号 36の立下りエッジ を検出してから第 2パルス信号 48の立下りエッジを検出するまでの第 4比較期間であ るので、 B相立下りエッジ間隔カウント部 61によって計時される B相立下り計時時間と 、 A相立下りエッジ間隔履歴部 56に記憶される最新の A相立下り周期との時間の長 さを比較し、 B相立上り計時時間が A相立下り周期より短い場合、ステップ dl4に移り 、短くない場合、ステップ dl 5に移る。
ステップ dl4では、 A相立下りエッジ間隔履歴部 56に記憶される最新の A相立下り 周期を出力し、本フローを終了する。ステップ dl5では、 B相立下りエッジ間隔カウン ト部 61によって計時される B相立下り計時時間を出力し、本フローを終了する。
このような動作を、図 16を参照して説明すると、第 1パルス信号 36は、時刻 t51にて A相立上りエッジが検出され、時刻 t51から A相立上り周期 a経過後に、時刻 t55にて 再び A相立上りエッジが検出される。また第 2パルス信号 48は、時刻 t52にて B相立 上りエッジが検出され、時刻 t52から B相立上り周期 b経過後に、時刻 t57にて再び B 相立上りエッジが検出される。
また第 1パルス信号 36は、時刻 t53にて A相立下りエッジが検出され、時刻 t53から A相立下り周期 c経過後に、時刻 t59にて再び A相立下りエッジが検出される。また 第 2パルス信号 48は、時刻 t54にて B相立下りエッジが検出され、時刻 t54から B相 立下り周期 d経過後に、時刻 t511にて再び B相立下りエッジが検出される。
時刻 t55から時刻 t57までは、第 3比較期間であり、時刻 t55から時刻 t56までは、 時刻 t53から計時が開始される B相立下り計時時間 b'が A相立上り周期 aより短いの で、 CPU30は速度情報として最新の A相立上り周期 aを出力する。また時刻 t56から 次の B相立上りエッジが検出される時刻 t57までは、時刻 t56からの B相立上り計時 時間 b'の方が長くなるので、 CPU30は速度情報として B相立上り計時時間 b'を出 力する。
時刻 t57から時刻 t59までは、第 2比較期間であるので、時刻 t57から時刻 t58まで は、時刻 t54から計時が開始される A相立下り計時時間 c'が最新の B相立上り周期 b より短いので、 CPU30は速度情報として最新の B相立上り周期 bを出力する。また時 刻 t58から次の A相立下りエッジが検出される時刻 t59までは、時刻 t58からの A相 立下り計時時間 c'の方が長くなるので、 CPU30は速度情報として A相立下り計時時 間 c'を出力する。
時刻 t59から時刻 t511までは、第 4比較期間であり、時刻 t59から時刻 t510までは 、時刻 t55から計時が開始される B相立下り計時時間 d'が A相立下り周期 cより短い ので、 CPU30は速度情報として最新の A相立下り周期 cを出力する。また時刻 t510 から次の B相立下りエッジが検出される時刻 t511までは、時刻 t510からの B相立下 り計時時間 d'の方が長くなるので、 CPU30は速度情報として B相立下り計時時間 d' を出力する。
時刻 t511から時刻 t513までは、第 1比較期間であり、時刻 t511から時刻 t512ま では、時刻 t57から計時が開始される A相立上り計時時間 e 'が B相立下り周期 dより 短いので、 CPU30は速度情報として最新の B相立下り周期 dを出力する。また時刻 t 512から次の A相立上りエッジが検出される時刻 t513までは、時刻 t57からの A相立 上り計時時間 e'の方が長くなるので、 CPU30は速度情報として A相立上り計時時間 e'を出力する。
以下、同様の処理が繰返され、時刻 t513から時刻 t515までは、第 3比較期間であ り、時刻 t513から時刻 t514までは、 CPU30は速度情報として最新の A相立上り周 期 eを出力する。また時刻 t514から時刻 t515までは、 CPU30は速度情報として B相 立上り計時時間 f'を出力する。
また時刻 t515から時刻 t518までは、第 2比較期間であるので、前述と同様の処理 がされ、時刻 t515から時刻 t517までは、 CPU30は速度情報として最新の B相立上 り周期 fを出力する。また時刻 t517から時刻 t518までは、 CPU30は速度情報として A相立下り計時時間 g'を出力する。したがって、サーボ周期が時刻 t515と時刻 t517 との間の時刻 t516である場合、図 16に示すように、速度情報は B相立上り周期 fであ る。
以上説明したように、本実施形態のエンコーダ信号制御部 25cでは、 A相の第 1パ ルス信号 36と、 B相の第 2パルス信号 48との、立上りエッジと立下りエッジとがそれぞ れ個別に検出される。第 1〜第 4比較部 43, 44, 49, 50は、それぞれ第 1パルス信 号 36および第 2パルス信号 48の周期と、各パルス信号 36, 48のエッジの計時時間 とを比較し、 CPU30は、比較結果に基づいて、いずれか長い方の値を出力する。し たがって、前述のように位相が異なる 2つのパルス信号 36, 48を用いることによって、 パルス信号 36が 1つの場合よりも、比較する間隔が、より細かくなるので、高精度に パルス信号 36の周期を予測してリアルタイムに近似することができる。これによつて 高精度に出力されたパルス信号 36の周期に基づいて、被駆動体の速度を高精度に 算出すること力 Sできる。したがって、被駆動体の速度の検出精度を高めることができ、 駆動手段を安定して制御することができる。
また本実施形態では、 CPU30は、第 1〜第 4比較部 43, 44, 49, 50の比較結果 に基づいて、第 1および第 2パルス信号 36, 48の各計時時間を出力する場合、計時 時間の値のまま出力しているが、これに限ることはなぐ各計時時間に予め定める付 加時間を付加した値を出力するように構成してもよい。これによつて前述した付加期 間に関する効果を達成することができる。
次に、本発明の第 5の実施形態のサーボ制御システム 20dに関して説明する。図 1 7は、本発明の第 5の実施形態のサーボ制御システム 20dの電気的構成を示すプロ ック図である。図 17では、エンコーダ信号制御部 25dの主要な構成に関して示し、残 余の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を 省略する。図 17に示すエンコーダ信号制御部 25dは、第 1パルス信号 36および第 2 パルス信号 48の立上りエッジおよび立下りエッジの両方のエッジを検出して、速度情 報を演算する構成である。本実施形態のエンコーダ信号制御部 25dは、前述の第 3 の実施形態と類似しており、第 3の実施形態のエンコーダ信号制御部 25bに、 A相 B 相両エッジ検出部 63を含んで構成される。
A相 B相両エッジ検出部 63は、エッジ検出手段であって、エンコーダ 24から与えら れる第 1パルス信号 36および第 2パルス信号 48のエッジをそれぞれ検出する。エツ ジ間隔カウント部 46は、第 1および第 2立上り計時手段および第 1および第 2立下り 計時手段としての機能を有し、 A相 B相両エッジ検出部 63によってエッジが検出され ると、その検出時刻から起算して計時を開始する。
エッジ間隔カウント部 46は、計時したエッジ計時時間を、比較部 29に与える。また エッジ間隔カウント部 46は、第 1〜第 4演算手段としての機能を有し、 A相 B相両エツ ジ検出部 63によってエッジが検出されると、該エッジとその 1つ前に検出されるエッジ とのエッジ周期を演算し、演算されたエッジ周期をエッジ間隔履歴部 47に与える。 エッジ間隔履歴部 47は、第 1〜第 4記憶手段としての機能を有し、エッジ間隔カウ ント部 46から与えられるエッジ周期を、時系列に従って記憶する。
比較部 29は、第 1〜第 4比較手段としての機能を有し、エッジ間隔カウント部 46に よって計時されるエッジ計時時間とエッジ間隔履歴部 47に記憶される 4つ前のエッジ 周期との時間の長さを比較し、比較した結果を CPU30に与える。
CPU30は、比較部 29の比較結果に基づいて、エッジ計時時間または 4つ前のェ ッジ周期のいずれか長い方の値に、最新のエッジ周期と、 2つ前のエッジ周期と、 3 つ前のエッジ周期とを加算した値を出力する。
次に、エンコーダ信号制御部 25dの動作についてフローチャートを用いて説明する 。図 18は、エンコーダ信号制御部 25dの CPU30による処理を示すフローチャートで ある。この処理は、電源投入状態で繰り返し実行される。図 19は、 CPU30の動作を 説明するためのタイミングチャートである。図 19に示すタイミングチャートは、図 18に 示す CPU30の動作に関連している。
ステップ elでは、エッジ間隔カウント部 46によって計時されるエッジ計時時間と、ェ ッジ間隔履歴部 47に記憶される 4つ前のエッジ周期との時間の長さを比較し、エッジ 計時時間が前記エッジ周期より短い場合、ステップ e2に移り、短くない場合、ステップ e3に移る。
ステップ e2では、エッジ間隔履歴部 47に記憶される最新のエッジ周期力 4つ前ま でのエッジ周期を合計した周期合計期間を出力し、本フローを終了する。ステップ では、エッジ間隔カウント部 46によって計時されるエッジ計時時間に最新のエッジ周 期から 3つ前のエッジ周期までを合計した部分合計周期を加算した値を出力し、本フ ローを終了する。
このような動作を、図 19を参照して説明すると、第 1パルス信号 36が時刻 t61にて 立上りエッジが検出され、時刻 t61からエッジ周期 a経過後に、時刻 t62にて第 2パル ス信号 48の立上りエッジが検出される。また時刻 t62からエッジ周期 b経過後に、時 刻 t63にて A相立下りエッジが検出される。また時刻 t63からエッジ周期 c経過後に、 時刻 t64にて B相立下りエッジが検出される。また時刻 t64からエッジ周期 d経過後に 、時刻 t65にて A相立上りエッジが検出される。
時刻 t65から 4つ前のエッジ周期 aが経過する時刻 t66までは、時刻 t65から計時が 開始されるエッジ計時時間 e '力 つ前のエッジ周期 aより短いので、 CPU30は速度 情報として 4つ前のエッジ周期 aと、 3つ前のエッジ周期 bと、 2つ前のエッジ周期 cと 1 つ前のエッジ周期である最新のエッジ周期 dとを合計した周期合計期間 # 1を出力す る。また時刻 t66から次のエッジが検出される時刻 t67までは、時刻 t66からエッジ計 時時間 e 'の方が長くなるので、 CPU30は速度情報として 3つ前のエッジ周期 bと、 2 つ前のエッジ周期 cと最新のエッジ周期 dまでを合計した部分合計周期にエッジ計時 時間 e 'を加算した値 # 2を出力する。
同様に、時刻 t67から 4つ前のエッジ周期 bが経過する時刻 t68までは、時刻 t67か ら計時が開始されるエッジ計時時間 f 'が 4つ前のエッジ周期 bより短いので、 CPU30 は速度情報として周期合計期間 # 3 (b + c + d + e)を出力する。また時刻 t68から次 のエッジが検出される時刻 t69までは、時刻 t68からエッジ計時時間 f 'の方が長くな るので、 CPU30は速度情報として部分合計周期(c + d + e)にエッジ計時時間 f 'を 加算した値 # 4 (c + d + e + f ' )を出力する。 同様の処理が繰返され、時刻 t69から時刻 t610までは、 CPU30は速度情報として 周期合計期間 # 5 (c + d + e + f )を出力する。また時刻 t610から時刻 t611までは、 CPU30は速度情報として部分合計周期(d + e + f)にエッジ計時時間 g'を加算した 値 # 6 (d + e + f + g' )を出力する。時刻 t611から時刻 t612までは、 CPU30は速度 情報として周期合計期間 # 7 (d + e + f + g)を出力する。また時刻 t612から時刻 t61 3までは、 CPU30は速度情報として部分合計周期(e + f + g)にエッジ計時時間 h'を 加算した値 # 8 (e + f + g + h' )を出力する。
時刻 t613から時刻 t614までは、 CPU30は速度情報として周期合計期間 # 9 (e + f + g + h)を出力する。また時刻 t614から時刻 t615までは、 CPU30は速度情報とし て部分合計周期 (f + g + h)にエッジ計時時間 i'を加算した値 # 10 (f + g + h + i' )を 出力する。時刻 t615から時刻 t617までは、 CPU30は速度情報として周期合計期 間 # l l (f + g + h + i)を出力する。また時刻 t617から時刻 t618までは、 CPU30は 速度情報として部分合計周期 (g + h + i)にエッジ計時時間 j 'を加算した値 # 12 (g +h+i+j ' )を出力する。したがって、サーボ周期が時刻 t615と時刻 t617との間の 時刻 t616である場合、図 19に示すように、速度情報は周期合計期間 # 11 (f + g + h+i)である。
このような前述の処理は、以下の 4つの処理に分けることができる。ここで A相立上り エッジから 1つ後の B相立上りエッジまでの周期を第 1周期とし、 B相立上りエッジから 1つ後の A相立下りエッジまでの周期を第 2周期とし、 A相立下りエッジから 1つ後の B 相立下りエッジまでの周期を第 3周期とし、 B相立下りエッジから 1つ後の B相立上り エッジまでの周期を第 4周期とする。またそれぞれ最新の第 1周期と第 2周期と第 3周 期と第 4周期との合計期間を、周期合計期間とする。
比較部 29は、第 1比較手段としての機能を有し、エッジ間隔カウント部 46によって 計時される A相立上り計時時間と、エッジ間隔履歴部 47に記憶される最新の第 1周 期とを比較する。
CPU30は、 B相立下りエッジを検出してから A相立上りエッジを検出するまで、 A相 立上り計時時間が最新の第 1周期より短い場合、周期合計期間を出力し、 A相立上り 計時時間が最新の第 1周期より短くない場合、 A相立上り計時時間と、それぞれ最新 の第 2周期と第 3周期と第 4周期との合計の第 1合計期間を出力する。
また比較部 29は、第 2比較手段としての機能を有し、エッジ間隔カウント部 46によ つて計時される A相立下り計時時間と、エッジ間隔履歴部 47に記憶される最新の第 2周期とを比較する。
CPU30は、 B相立上りエッジを検出してから A相立下りエッジを検出するまで、 B相 立上り計時時間が最新の第 2周期より短い場合、周期合計期間を出力し、 B相立上り 計時時間が最新の第 2周期より短くない場合、 B相立上り計時時間と、それぞれ最新 の第 1周期と第 3周期と第 4周期との合計の第 2合計期間を出力する。
また比較部 29は、第 3比較手段としての機能を有し、エッジ間隔カウント部 46によ つて B相立上り計時時間と、エッジ間隔履歴部 47に記憶される最新の第 3周期とを比 較する。
CPU30は、 A相立下りエッジを検出してから B相立上りエッジを検出するまで、 A相 立下り計時時間が最新の第 3周期より短い場合、周期合計期間を出力し、 A相立下り 計時時間が最新の第 3周期より短くない場合、 A相立下り計時時間と、それぞれ最新 の第 1周期と第 2周期と第 4周期との合計の第 3合計期間を出力する。
また比較部 29は、第 4比較手段としての機能を有し、エッジ間隔カウント部 46によ つて計時される B相立下り計時時間と、エッジ間隔カウント部 46によって記憶される 最新の第 4周期とを比較する。
また CPU30は、 A相立下りエッジを検出してから B相立下りエッジを検出するまで、 B相立下り計時時間が最新の第 4周期より短い場合、周期合計期間を出力し、 B相立 下り計時時間が最新の第 4周期より短くない場合、 B相立下り計時時間と、それぞれ 最新の第 1周期と第 2周期と第 3周期との合計の第 4合計期間を出力する。
以上説明したように、本実施形態のエンコーダ信号制御部 25dでは、第 1パルス信 号 36と第 2パルス信号 48との、立上りエッジと立下りエッジとがそれぞれ個別に検出 される。 CPU30は、各計時時間が、各最新の周期より短い場合、周期合計期間を出 力し、各計時時間が最新の周期より短くない場合、各計時時間と、残余の周期との合 計である第 1〜第 4合計期間をそれぞれ出力する。したがって、位相が異なる 2つの パルス信号 36, 48を用いることによって、パルス信号 36が 1つの場合よりも、比較す る間隔が、より細かくなるので、高精度に第 1パルス信号 36の周期を予測してリアル タイムに近似することができる。これによつて高精度に出力された第 1パルス信号 36 の周期に基づいて、被駆動体の速度を高精度に算出することができる。したがって、 被駆動体の速度の検出精度を高めることができ、駆動手段を安定して制御すること ができる。
次に、本発明の第 6の実施形態のサーボ制御システム 20dに関して説明する。本 実施形態のサーボ制御システム 20dは、前述の第 5の実施形態のサーボ制御システ ム 20dと構成が類似しており、エンコーダ信号制御部 25dの動作が異なるので、ェン コーダ信号制御部 25dの動作に関して説明する。
比較部 29は、第 1〜第 4比較手段としての機能を有し、エッジ間隔カウント部 46に よって計時されるエッジ計時時間とエッジ間隔履歴部 47に記憶される最新のエッジ 周期との時間の長さを比較し、比較した結果を CPU30に与える。
CPU30は、比較部 29の比較結果に基づいて、エッジ計時時間または最新のエツ ジ周期のいずれか長い方の値に、 2つ前のエッジ周期と、 3つ前のエッジ周期と、 4つ 前のエッジ周期とを加算した値を出力する。
次に、エンコーダ信号制御部 25dの動作についてフローチャートを用いて説明する 。図 20は、エンコーダ信号制御部 25dの CPU30による処理を示すフローチャートで ある。この処理は、電源投入状態で繰り返し実行される。図 21は、 CPU30の動作を 説明するためのタイミングチャートである。図 21に示すタイミングチャートは、図 20に 示す CPU30の動作に関連している。
ステップ flでは、エッジ間隔カウント部 46によって計時されるエッジ計時時間と、ェ ッジ間隔履歴部 47に記憶される最新のエッジ周期との時間の長さを比較し、エッジ 計時時間が前記エッジ周期より短い場合、ステップ f2に移り、短くない場合、ステップ f3に移る。
ステップ f2では、エッジ間隔履歴部 47に記憶される最新のエッジ周期力も 4つ前ま でのエッジ周期を合計した周期合計期間を出力し、本フローを終了する。ステップ f3 では、エッジ間隔カウント部 46によって計時されるエッジ計時時間に最新のエッジ周 期から 3つ前のエッジ周期までを合計した部分合計周期を加算した値を出力し、本フ ローを終了する。
このような動作を、図 21を参照して説明すると、第 1パルス信号 36が時刻 t71にて 立上りエッジが検出され、時刻 t71からエッジ周期 a経過後に、時刻 t72にて第 2パル ス信号 48の立上りエッジが検出される。また時刻 t72からエッジ周期 b経過後に、時 刻 t73にて A相立下りエッジが検出される。また時刻 t73からエッジ周期 c経過後に、 時刻 t74にて B相立下りエッジが検出される。また時刻 t74からエッジ周期 d経過後に 、時刻 t75にて A相立上りエッジが検出される。
時刻 t75から最新のエッジ周期 dが経過する時刻 t76までは、時刻 t75から計時が 開始されるエッジ計時時間 e 'が最新のエッジ周期 dより短いので、 CPU30は速度情 報として 4つ前のエッジ周期 aと、 3つ前のエッジ周期 bと、 2つ前のエッジ周期 cと 1つ 前のエッジ周期 dとを合計した周期合計期間 # 1を出力する。また時刻 t76から次の エッジが検出される時刻 t77までは、時刻 t76からエッジ計時時間 e'の方が長くなる ので、 CPU30は速度情報として 3つ前のエッジ周期 bと、 2つ前のエッジ周期 cと最新 のエッジ周期 dまでを合計した部分合計周期にエッジ計時時間 e'を加算した値 # 2 を出力する。
同様に、時刻 t77から最新のエッジ周期 eが経過する時刻 t78までは、時刻 t77から 計時が開始されるエッジ計時時間 f'が最新のエッジ周期 eより短いので、 CPU30は 速度情報として周期合計期間 # 3 (b + c + d + e)を出力する。また時刻 t78から次の エッジが検出される時刻 t79までは、時刻 t78からエッジ計時時間 f 'の方が長くなる ので、 CPU30は速度情報として部分合計周期(c + d + e)にエッジ計時時間 f'をカロ 算した値 # 4 (c + d + e + f' )を出力する。
同様の処理が繰返され、時刻 t79から時刻 t710までは、 CPU30は速度情報として 周期合計期間 # 5 (c + d + e + f)を出力する。また時刻 t710から時刻 t711までは、 CPU30は速度情報として部分合計周期(d + e + f)にエッジ計時時間 g'を加算した 値 # 6 (d + e + f + g' )を出力する。時刻 t711から時刻 t712までは、 CPU30は速度 情報として周期合計期間 # 7 (d + e + f + g)を出力する。また時刻 t712から時刻 t71 3までは、 CPU30は速度情報として部分合計周期(e + f + g)にエッジ計時時間 h'を 加算した値 # 8 (e + f + g + h' )を出力する。 時刻 t713から時刻 t714までは、 CPU30は速度情報として周期合計期間 # 9 (e + f + g+h)を出力する。また時刻 t714から時刻 t715までは、 CPU30は速度情報とし て部分合計周期(f + g + h)にエッジ計時時間 i 'を加算した値 # 10 (f + g+h+i' )を 出力する。時刻 t715から時刻 t717までは、 CPU30は速度情報として周期合計期 間 # l l (f + g + h + i)を出力する。また時刻 t717から時刻 t718までは、 CPU30は 速度情報として部分合計周期 (g + h + i)にエッジ計時時間 j 'を加算した値 # 12 (g + h + i+j ' )を出力する。したがって、サーボ周期が時刻 t715と時刻 t717との間の 時刻 t716である場合、図 21に示すように、速度情報は周期合計期間 # 11 (f + g + h + i)である。
以上、説明したように、本実施形態のエンコーダ信号制御部 25dでは、比較部 29 は、エッジ間隔カウント部 46によって計時される計時時間と、エッジ間隔履歴部 47に 記憶される最新の周期とを比較する。このような構成であっても、前述と同様の効果 を達成すること力 Sできる。
次に、本発明の第 7の実施形態のサーボ制御システム 20eに関して説明する。図 2 2は、本発明の第 7の実施形態のサーボ制御システム 20eの電気的構成を示すプロ ック図である。図 22では、エンコーダ信号制御部 25eの主要な構成に関して示し、残 余の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を 省略する。図 22に示すエンコーダ信号制御部 25eは、第 1パルス信号 36および第 2 パルス信号 48の立上りエッジおよび立下りエッジの両方のエッジを検出して、速度情 報を演算する構成である。本実施形態のエンコーダ信号制御部 25eは、前述の第 4 の実施形態および第 6の実施形態のエンコーダ信号制御部 25c, 25dと類似してお り、エンコーダ信号制御部 25eの動作が異なるので、エンコーダ信号制御部 25eの 動作に関して説明する。
A相立上りエッジ間隔カウント部 52は、計時した A相立上り計時時間を、第 1比較部 43に与える。また A相立上りエッジ間隔カウント部 52は、第 4演算手段であって、 A 相立上りエッジ検出部 51によって第 1パルス信号 36の立上りエッジが検出されると、 該立上りエッジとその 1つ前に検出される第 2パルス信号 48の立下りエッジとの第 4 周期を演算し、演算された第 4周期を A相立上りエッジ間隔履歴部 53に与える。 A相立下りエッジ間隔カウント部 55は、計時した A相立下り計時時間を、第 3比較部 49に与える。また A相立下りエッジ間隔カウント部 55は、第 2演算手段であって、 A 相立下りエッジ検出部 54によって第 1パルス信号 36の立下りエッジが検出されると、 該立下りエッジとその 1つ前に検出される第 2パルス信号 48の立上りエッジとの第 2 周期を演算し、演算された第 2周期を A相立下りエッジ間隔履歴部 56に与える。
A相立上りエッジ間隔履歴部 53は、第 4記憶手段であって、 A相立上りエッジ間隔 カウント部 52から与えられる第 4周期を、時系列に従って記憶する。 A相立下りエッジ 間隔履歴部 56は、第 2記憶手段であって。 A相立下りエッジ間隔カウント部 55から与 えられる第 2周期を、時系列に従って記憶する。
B相立上りエッジ間隔カウント部 58は、計時した B相立上り計時時間を、第 2比較部 44に与える。また B相立上りエッジ間隔カウント部 58は、第 1演算手段であって、 B相 立上りエッジ検出部 57によって第 2パルス信号 48の立上りエッジが検出されると、該 立上りエッジとその 1つ前に検出される第 1パルス信号 36の立上りエッジとの第 1周 期を演算し、演算された第 1周期を B相立上りエッジ間隔履歴部 59に与える。
B相立下りエッジ間隔カウント部 61は、計時した B相立下り計時時間を、第 4比較部 50に与える。また B相立下りエッジ間隔カウント部 61は、第 3演算手段であって、 B相 立下りエッジ検出部 60によって第 2パルス信号 48の立下りエッジが検出されると、該 立下りエッジとその 1つ前に検出される第 1パルス信号 36の立下りエッジとの第 3周 期を演算し、演算された第 3周期を B相立下りエッジ間隔履歴部 62に与える。
B相立上りエッジ間隔履歴部 59は、第 1記憶手段であって、 B相立上りエッジ間隔 カウント部 58から与えられる第 1周期を、時系列に従って記憶する。 B相立下りエッジ 間隔履歴部 62は、第 3記憶手段であって。 B相立下りエッジ間隔カウント部 61から与 えられる第 3周期を、時系列に従って記憶する。
第 1比較部 43は、第 1比較手段であって、 A相立上りエッジ間隔カウント部 52によ つて計時される A相立上り計時時間と、 A相立上りエッジ間隔履歴部 53に記憶される 最新の第 4周期とを比較する。
CPU30は、 B相立下りエッジを検出してから A相立上りエッジを検出するまで、 A相 立上り計時時間が最新の第 4周期より短い場合、周期合計期間を出力し、 A相立上り 計時時間が最新の第 4周期より短くない場合、第 1合計期間を出力する。
第 2比較部 44は、第 2比較手段であって、 B相立上りエッジ間隔カウント部 58によつ て計時される B相立上り計時時間と、 B相立上りエッジ間隔履歴部 59に記憶される最 新の第 1周期とを比較する。
CPU30は、 B相立上りエッジを検出してから A相立下りエッジを検出するまで、 A相 立下り計時時間が最新の第 1周期より短い場合、周期合計期間を出力し、 A相立下り 計時時間が最新の第 1周期より短くない場合、第 2合計期間を出力する。
第 3比較部 49は、第 3比較手段であって、 A相立下りエッジ間隔カウント部 55によ つて計時される A相立下り計時時間と、 A相立下りエッジ間隔履歴部 56に記憶される 最新の第 2周期とを比較する。
CPU30は、 A相立上りエッジを検出してから B相立上りエッジを検出するまで、 A相 立下り計時時間が最新の第 2周期より短い場合、周期合計期間を出力し、 A相立下り 計時時間が最新の第 2周期より短くない場合、第 3合計期間を出力する。
第 4比較部 50は、第 4比較手段であって、 B相立下りエッジ間隔カウント部 61によつ て計時される B相立下り計時時間と、最新の第 3周期とを比較する。
CPU30は、 A相立下りエッジを検出してから B相立下りエッジを検出するまで、 B相 立下り計時時間が最新の第 3周期より短い場合、周期合計期間を出力し、 B相立下り 計時時間が最新の第 3周期より短くない場合、第 4合計期間を出力する。
したがって、本実施形態のエンコーダ信号制御部 25eでは、前述の第 6の実施形 態のエンコーダ信号制御部 25dと同様の作用および効果を達成することができる。 次に、本発明の第 8の実施形態のサーボ制御システム 20dに関して説明する。本 実施形態のサーボ制御システム 20dは、前述の第 5の実施形態および第 6の実施形 態のサーボ制御システム 20dと類似しており、エンコーダ信号制御部 25dの動作が 異なるので、エンコーダ信号制御部 25dの動作に関して説明する。
比較部 29は、第 1〜第 4比較手段としての機能を有し、前記第 1〜第 4合計期間と 、前記周期合計期間との時間の長さをそれぞれ比較し、比較した結果を CPU30に 与える。
CPU30は、第 2パルス信号 48の立下りエッジを検出してから第 1パルス信号 36の 立上りエッジを検出するまでの第 1比較期間において、第 1合計期間および周期合 計期間のうちいずれか長い方の値を出力する。また CPU30は、第 2パルス信号 48 の立上りエッジを検出してから第 1パルス信号 36の立下りエッジを検出するまでの第 2比較期間において、第 2合計期間および周期合計期間のうちいずれか長い方の値 を出力する。
また CPU30は、第 1パルス信号 36の立上りエッジを検出してから第 2パルス信号 4 8の立上りエッジを検出するまでの第 3比較期間において、第 3合計期間および周期 合計期間のうちいずれか長い方の値を出力する。また CPU30は、第 1パルス信号 3 6の立下りエッジを検出してから第 2パルス信号 48の立下りエッジを検出するまでの 第 4比較期間において、第 4合計期間および周期合計期間のうちいずれか長い方の 値を出力する。
次に、エンコーダ信号制御部 25dの動作についてフローチャートを用いて説明する 。各フローチャートの動作は、エンコーダ信号制御部 25dの CPU30によって行われ る。図 23は、エンコーダ信号制御部 25dの CPU30による処理を示すフローチャート である。この処理は、電源投入状態で繰り返し実行される。図 24は、 CPU30の動作 を説明するためのタイミングチャートである。図 24に示すタイミングチャートは、図 23 に示す CPU30の動作に関連している。
ステップ glでは、現在時刻が、第 2パルス信号 48の立下りエッジを検出してから第 1パルス信号 36の立上りエッジを検出するまでの第 1比較期間であるか否かを判断し 、第 1比較期間である場合、ステップ g2に移り、第 1比較期間でない場合、ステップ g 5に移る。
ステップ g2では、第 1比較期間であるので、第 1合計期間と、周期合計期間との時 間の長さを比較し、第 1合計期間が周期合計期間より短い場合、ステップ g3に移り、 短くない場合、ステップ g4に移る。
ステップ g3では、周期合計期間を出力し、本フローを終了する。ステップ g4では、 第 1合計期間を出力し、本フローを終了する。
ステップ g5では、現在時刻が、第 2パルス信号 48の立上りエッジを検出してから第 1パルス信号 36の立下りエッジを検出するまでの第 2比較期間であるか否力、を判断し 、第 2比較期間である場合、ステップ g6に移り、第 2比較期間でない場合、ステップ g 9に移る。
ステップ g6では、第 2比較期間であるので、第 2合計期間と、周期合計期間との時 間の長さを比較し、第 2合計期間が周期合計期間より短い場合、ステップ g7に移り、 短くない場合、ステップ g8に移る。
ステップ g7では、周期合計期間を出力し、本フローを終了する。ステップ g8では、 第 2合計期間を出力し、本フローを終了する。
ステップ g9では、現在時刻が、第 1パルス信号 36の立上りエッジを検出してから第 2パルス信号 48の立上りエッジを検出するまでの第 3比較期間であるか否力、を判断し 、第 3比較期間である場合、ステップ glOに移り、第 3比較期間でない場合、ステップ gl 3に移る。
ステップ glOでは、第 3比較期間であるので、第 3合計期間と、周期合計期間との時 間の長さを比較し、第 3合計期間が周期合計期間より短い場合、ステップ gl lに移り 、短くない場合、ステップ g 12に移る。
ステップ gl lでは、周期合計期間を出力し、本フローを終了する。ステップ gl2では 、第 3合計期間を出力し、本フローを終了する。
ステップ gl 3では、第 1〜第 3比較期間ではなぐ第 1パルス信号 36の立下りエッジ を検出してから第 2パルス信号 48の立下りエッジを検出するまでの第 4比較期間であ るので、第 4合計期間と、周期合計期間との時間の長さを比較し、第 4合計期間が周 期合計期間より短い場合、ステップ gl4に移り、短くない場合、ステップ gl5に移る。 ステップ gl4では、周期合計期間を出力し、本フローを終了する。ステップ gl5では 、第 4合計期間を出力し、本フローを終了する。
このような動作を、図 24を参照して説明すると、第 1パルス信号 36が時刻 t81にて 立上りエッジが検出され、時刻 t81からエッジ周期 a経過後に、時刻 t82にて第 2パル ス信号 48の立上りエッジが検出される。また時刻 t82からエッジ周期 b経過後に、時 刻 t83にて A相立下りエッジが検出される。また時刻 t83からエッジ周期 c経過後に、 時刻 t84にて B相立下りエッジが検出される。また時刻 t84からエッジ周期 d経過後に 、時刻 t85にて A相立上りエッジが検出される。 時刻 t85から時刻 t87までは、第 3比較期間であり、時刻 t85から時刻 t86までは、 時刻 t85から計時が開始されるエッジ計時時間 e'と、部分合計周期(b + c + d)との 合計である第 3合計期間(b + c + d + e')が、周期合計期間(a + b + c + d)より短い ので、 CPU30は速度情報として周期合計期間 #1 (a + b + c + d)を出力する。また 時刻 t86から次のエッジが検出される時刻 t87までは、第 3合計期間(b + c + d + e') の方が長くなるので、 CPU30は速度情報として第 3合計期間 #2 (b + c + d + e')を 出力する。
時刻 t87から時刻 t89までは、第 2比較期間であり、時刻 t87から時刻 t88までは、 時刻 t87から計時が開始されるエッジ計時時間 f'と、部分合計周期(c + d + e)との 合計である第 2合計期間(c + d + e + f ')が、周期合計期間(b + c + d + e)より短いの で、 CPU30は速度情報として周期合計期間 #3 (b + c + d + e)を出力する。また時 刻 t88から次のエッジが検出される時刻 t89までは、第 2合計期間(c + d + e + f')の 方が長くなるので、 CPU30は速度情報として第 2合計期間 #4(c + d+e + f')を出 力する。
時刻 t89から時刻 t811までは、第 4比較期間であり、時刻 t89から時刻 t810までは 、時刻 t89から計時が開始されるエッジ計時時間 g'と、部分合計周期(d + e + f)との 合計である第 1合計期間(d + e + f + g' )が、周期合計期間(c + d + e + f)より短いの で、 CPU30は速度情報として周期合計期間 #5 (c + d + e + f)を出力する。また時 刻 t810から次のエッジが検出される時刻 t811までは、第 1合計期間(d+e + f + g') の方が長くなるので、 CPU30は速度情報として第 1合計期間 # 6 (d+e + f + g' )出 力する。
時刻 t811から時刻 t813までは、第 1比較期間であり、時刻 t811から時刻 t813ま では、時刻 t811から計時が開始されるエッジ計時時間 h'と、部分合計周期(e + f + g)との合計である第 4合計期間(e + f + g + h' )が、周期合計期間(d + e + f + g)より 短いので、 CPU30は速度情報として周期合計期間 #7(d + e + f + g)を出力する。 また時刻 t812から次のエッジが検出される時刻 t813までは、第 4合計期間(e + f + g+h' )の方が長くなるので、 CPU30は速度情報として第 4合計期間 # 8 (e + f +g + h')出力する。 同様の処理が繰返され、時刻 t813から時刻 t814までは、 CPU30は速度情報とし て周期合計期間 # 9 (e + f + g + h)を出力する。また時刻 t814から時刻 t815までは 、 CPU30は速度情報として部分合計周期(f +g + h)にエッジ計時時間 i'を加算し た第 3合計期間 # 10 (f + g + h + i' )を出力する。時刻 t815から時刻 t817までは、 C PU30は速度情報として周期合計期間 # 11 (f + g + h + i)を出力する。また時刻 t81 7から時刻 t818までは、 CPU30は速度情報として部分合計周期(g + h + i)にエッジ 計時時間 Γを加算した第 2合計期間 # 12 (g + h + i+j ' )を出力する。したがって、サ ーボ周期が時刻 t815と時刻 t817との間の時刻 t816である場合、図 19に示すように 、速度情報は周期合計期間 # l l (f + g + h + i)である。
以上、説明したように、本実施形態のエンコーダ信号制御部 25dでは、比較部 29 は、第 1〜第 4合計期間と、周期合計期間との時間の長さをそれぞれ比較し、比較し た結果を CPU30に与える。 CPU30は、各比較期間に、設定される第 1〜第 4合計 期間と周期合計期間とのうち、いずれか長い方の値を出力する。このような構成であ つても、前述と同様の効果を達成することができる。
次に、本発明の第 9の実施形態のサーボ制御システム 20fに関して説明する。図 2 5は、本発明の第 9の実施形態のサーボ制御システム 20fの電気的構成を示すプロ ック図である。図 25では、エンコーダ信号制御部 25fの主要な構成に関して示し、残 余の構成、たとえば設定情報記憶部 32は図 1に示す構成と同様であるので、図示を 省略する。図 25に示すエンコーダ信号制御部 25fは、第 1パルス信号 36および第 2 パルス信号 48の立上りエッジおよび立下りエッジの両方のエッジを検出して、速度情 報を演算する構成である。本実施形態のエンコーダ信号制御部 25fは、前述の第 7 の実施形態および第 8の実施形態のエンコーダ信号制御部 25e, 25dと類似してお り、エンコーダ信号制御部 25fの動作が異なるので、エンコーダ信号制御部 25fの動 作に関して説明する。エンコーダ信号制御部 25fは、 5つの第 1〜第 5加算部 64〜6 8をさらに含んで構成される。
A相立上りエッジ間隔カウント部 52は、 A相立上り計時時間を第 1加算部 64に与え る。 A相立下りエッジ間隔カウント部 55は、 A相立下り計時時間を第 3加算部 66に与 える。 B相立上りエッジ間隔カウント部 58は、 B相立上り計時時間を第 2加算部 65に 与える。 B相立下りエッジ間隔カウント部 61は、 B相立下り計時時間を第 4加算部 67 に与える。
A相立上りエッジ間隔履歴部 53は、第 2加算部 65、第 3加算部 66、第 4加算部 67 および第 5加算部 68に、記憶される最新の第 1周期を与える。 A相立下りエッジ間隔 履歴部 56は、第 1加算部 64、第 2加算部 65、第 4加算部 67および第 5加算部 68に 、記憶される最新の第 3周期を与える。
B相立上りエッジ間隔履歴部 59は、第 1加算部 64、第 3加算部 66、第 4加算部 67 および第 5加算部 68に、記憶される最新の第 2周期を与える。 B相立下りエッジ間隔 履歴部 62は、第 1加算部 64、第 2加算部 65、第 3加算部 66および第 5加算部 68に 、記憶される最新の第 4周期を与える。
第 1加算部 64は、与えられる A相立上り計時時間と、それぞれ最新の第 2周期と第 3周期と第 4周期との合計の第 1合計期間を演算する。第 1加算部 64は、演算した第 1合計周期を比較部 29に与える。
第 2加算部 65は、与えられる B相立上り計時時間と、それぞれ最新の第 1周期と第 3周期と第 4周期との合計の第 2合計期間を演算する。第 2加算部 65は、演算した第 2合計周期を比較部 29に与える。
第 3加算部 66は、与えられる A相立下り計時時間と、それぞれ最新の第 1周期と第 2周期と第 4周期との合計の第 3合計期間を演算する。第 3加算部 66は、演算した第 3合計周期を比較部 29に与える。
第 4加算部 67は、与えられる B相立下り計時時間と、それぞれ最新の第 1周期と第 2周期と第 3周期との合計の第 4合計期間を演算する。第 4加算部 67は、演算した第 4合計周期を比較部 29に与える。
第 5加算部 68は、与えられる最新の第 1周期と第 2周期と第 3周期と第 4周期との合 計の周期合計期間を演算する。第 5加算部 68は、演算した周期合計期間を比較部 2 9に与える。
比較部 29は、各加算部 64〜68から与えられる第 1合計期間〜第 4合計期間と、与 えられる周期合計期間とをそれぞれ比較する。
CPU30は、第 1比較期間では、比較部 29の比較結果に基づいて、第 1合計期間 が周期合計期間より短い場合、周期合計期間を出力し、第 1合計期間が周期合計期 間より短くない場合、第 1合計期間を出力する。
また CPU30は、第 2比較期間では、比較部 29の比較結果に基づいて、第 2合計 期間が周期合計期間より短い場合、周期合計期間を出力し、第 2合計期間が周期合 計期間より短くない場合、第 2合計期間を出力する。
また CPU30は、第 3比較期間では、比較部 29の比較結果に基づいて、第 3合計 期間が周期合計期間より短い場合、周期合計期間を出力し、第 3合計期間が周期合 計期間より短くない場合、第 3合計期間を出力する。
また CPU30は、第 4比較期間では、比較部 29の比較結果に基づいて、第 4合計 期間が周期合計期間より短い場合、周期合計期間を出力し、第 4合計期間が周期合 計期間より短くない場合、第 4合計期間を出力する。
したがって、本実施形態のエンコーダ信号制御部 25fでは、前述の第 7の実施形態 および第 8の実施形態のエンコーダ信号制御部 25e, 25dと同様の作用および効果 を達成すること力 Sできる。
前述の第 5〜第 9の実施形態では、 CPU30は、比較部 29の比較結果に基づいて 、計時時間を含む値を出力する場合、計時時間の値をそのまま用いて演算している 力 これに限ることはなぐさらに予め定める付カ卩時間を付加した値を出力するように 構成してもよい。
具体的な付加期間に関する CPU30の動作として、 CPU30は、第 1比較期間では 、第 1合計期間を出力する場合、第 1合計期間と予め定める付加時間との合計の第 1 付加合計期間を出力する。また CPU30は、第 2比較期間では、第 2合計期間を出力 する場合、第 2合計期間と予め定める付加時間との合計の第 2付加合計期間を出力 する。
また CPU30は、第 3比較期間では、第 3合計期間を出力する場合、第 3合計期間 と予め定める付加時間との第 3付加合計期間を出力する。また CPU30は、第 4比較 期間では、第 4合計期間を出力する場合、第 4合計期間と予め定める付加時間との 合計の第 4付加合計期間を出力する。
このように CPU30を構成することによって、付加期間に関する構成を実現すること ができる。これによつて前述した付加期間に関する効果を達成することができる。 また前述の各実施形態では、 CPU30によって出力される値は、被駆動体の速度 に基づレ、て設定される境界値以下の場合に有効とし、前記境界値より大きレ、場合、 無効としてもよい。
駆動手段により被駆動体が予め定める変位量にわたって変位したとき、 1つのパル ス信号 36が発生しているので、その変位量を移動するのに要した時間がエンコーダ 信号制御部 25からサーボコントローラ 22に入力される速度情報である。したがって、 前記変位量を速度情報で除した値が、被駆動体の速度となる。
この速度の算出精度に基づいて、エンコーダ信号制御部 25からサーボコントローラ 22へ出力するサーボの速度情報の境界値である最大値を決定する。図 26は、速度 情報が最大値を越える場合の CPU30の動作を説明するためのタイミングチャートで ある。
パルス信号 36が発生する被駆動体が移動する変位量を、たとえば 1/600インチ、 エッジ検出部 26によって周期をカウントする 1カウンタを 500ナノ秒、速度情報によつ て算出される算出速度の精度を少数第 2位までとする場合、エンコーダ信号制御部 2 5からサーボコントローラ 22へ出力するサーボの速度情報の最大値は、次式(1)によ つて求められる。
算出速度の精度を、小数点第 2位までとすると、算出速度が 0になる速度情報の最 小値は、前述の変位量を時間で除して求められる算出速度が 0. 01より小さい場合 なので、次式(1)によって表される。ここで変位量は、前述したように(1/600)イン チであり、 B寺間は、 ひを速度十青幸艮の周期カウンタとすると、(α X 500/100000000 0)秒である。
(ΐ/600)/( α X 500/1000000000)く 0. 01
したがって、 ひが 333334カウント以上となると、少数点第 3位以下を切捨てた場合 、式(1)を満足する。
したがって、速度情報ひを 333334カウントが最大値であり、この速度情報ひが最 大値以上になるとになると、算出速度が 0、つまり無効となるように設定される。
図 26に示すように、時刻 ttlから開始される第 1パルスの周期は、前述の速度情報 aの最大値である 333334カウントより長いので、時刻 tt2から第 1パルスの周期が速 度情報の最大値未満になる時刻れ 4まで、算出速度が 0となるように設定される。 被駆動体が停止した状態から、駆動を開始した場合は、被駆動体が移動する変位 量 (移動距離)がわ力、るまでは、算出速度を 0となるように設定される。このように設定 することによって、算出速度を 0にしないで、推測した値にすると、駆動開始時、サー ボ制御を不安定にするおそれがあるが、被駆動体が移動する変位量がわ力、るまでは 、算出速度を 0とすることによって、安定して制御することができる。
CPU30によって出力される速度情報が大きくなりすぎると、出力される速度情報に 基づいて算出される速度は、 0に近づくので、前述のような最大値を設定し、最大値 以下の場合に有効とし、最大値より大きい場合、無効とすることによって、有効と判断 される出力値だけに基づいて、被駆動体の速度を算出することができる。したがって 、大きすぎる速度情報によって、速度を算出することがないので、不所望な値の速度 が算出されることを防ぐことができる。
次に、本発明の第 10の実施形態のサーボ制御システム 20に関して説明する。図 2 7は、本発明の第 10の実施形態のサーボ制御システム 20を構成するサーボコント口 ーラ 22の構成を示すブロック図である。図 27に示すサーボコントローラ 22は、制御 装置であって、エンコーダ信号制御部 25の速度情報記憶部 31に記憶される速度情 報とエンコーダ信号制御部 25の設定情報記憶部 32に記憶される位置情報を、サー ボ周期毎に読出し、読出した速度情報と位置情報に基づいて、速度を演算する。サ ーボコントローラ 22は、演算した速度と位置と目標位置と目標速度に基づいて、最適 な制御情報をモータドライバ 23に出力する。
本実施形態のエンコーダ信号制御部 25は、エンコーダ 24から入力されるパルス信 号のエッジを検出したとき、エンコーダ信号制御部 25の各部に記憶される速度情報 と位置情報とを更新するように構成される。パルス信号のエッジを検出しているのにも かかわらず、位置情報もしくは速度情報のどちらか一方だけを更新して、他方を更新 しないと、位置情報および速度情報の精度は悪くなる。したがって、エンコーダ信号 制御部 25は、パルス信号のエッジを検出する毎に、速度情報と位置情報とを更新す るように構成される。 サーボコントローラ 22は、取得部 69、取得情報記憶部 70、判断部 72、制御値生成 部 71、速度演算部 73および制御部 74を含んで構成される。取得部 69は、取得手 段であって、駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応 じた速度情報と位置情報を、定期または不定期に取得し、本実施形態では予め定め るサーボ周期毎に取得する。
取得情報記憶部 70は、取得情報記憶手段であって、取得部 69によって取得され る速度情報と位置情報とを時系列に従って記憶する。判断部 72は、判断手段であつ て、取得情報記憶部 70に記憶されている速度情報より予め定める時間にわたって、 取得される位置情報が同じであるか否かを判断する。換言すると、判断部 72は、取 得される位置情報が、一定期間にわたって変化しているか否かを判断する。
制御値生成部 71は、制御値生成手段であって、判断部 72の判断結果に基づいて 、取得される位置情報が、一定期間にわたって変化していない場合、速度情報に予 め定める設定値を加算した制御値を出力し、そうでない場合、速度情報を制御値とし て出力する。取得される位置情報が変化しなくなつてから一定期間経過してから、速 度情報に加算する予め定める設定値は、段々と増やしてゆくことが好ましい。これに よって位置情報が変化しない場合に、直ぐに算出速度を 0にしないで、算出速度を 段々と 0に近づけてゆくことができる。このような設定値は、算出速度を段々と 0になる まで増やされ、算出速度を 0に近づけてゆき、算出速度が 0になってからは、増やさ なくてもいい。また、速度情報に予め定める設定値を加算する代わりに、予め定める 比率を乗算してもいい。また一定速度で被駆動体が駆動している場合などでは、理 論的には取得される速度情報は同じ値であり、取得される位置情報は変化する。制 御値生成部 71は、取得される速度情報は同じ値であっても、位置情報が変化してい る場合は、取得される速度情報を制御値として出力する。
速度演算部 73は、速度演算手段であって、制御値生成部 71によって出力される 制御値と、被駆動体の予め定める変位量とに基づいて、被駆動体の速度を演算する 。制御部 74は、制御手段であって、速度演算部 73によって演算される速度と取得情 報記憶部 70に記憶されてレ、る位置情報と目標位置と目標速度に基づレ、て、最適な 制御情報をモータドライバ 23に出力する。 次に、サーボコントローラ 22の動作についてフローチャートを用いて説明する。図 2 8は、サーボコントローラ 22の制御値生成部 71による処理を示すフローチャートであ る。この処理は、電源投入状態で繰り返し実行される。また、この処理は、被駆動体を 駆動する場合のみ繰り返し実行される。図 29は、位置情報が変化している場合の速 度演算部 73の動作を説明するための図である。図 30は、位置情報が変化していな い場合の速度演算部 73の動作を説明するための図である。
ステップ hiでは、取得される位置情報 Pcと、取得情報記憶部 70に記憶される位置 情報 Ppとを比較し、位置情報が異なる場合、ステップ h4に移り、位置情報が同じ場 合、ステップ h2に移る。
ステップ h2では、取得した速度情報の時間 Tcが、取得した位置情報が変化してい ない時間 Tthより長いか否かを判断し、長い場合、ステップ h4に移り、長くない場合、 ステップ h3に移る。したがって、ステップ hiおよびステップ h2では、一定期間にわた つて変化しているか否かを判断し、取得される位置情報が、一定期間にわたって変 化していない場合、ステップ h3に移り、そうでない場合、ステップ h4に移る。
ステップ h3では、速度情報 Scに予め定める設定値 をカ卩算した値を制御値 Soとし て出力し、本フローを終了する。ステップ h4では、取得した速度情報 Scを制御値 So として出力し、本フローを終了する。
図 29を用いて前述の位置情報が変化している場合の動作を説明すると、時刻 9 1では、速度情報 aが取得され、速度情報 aから算出速度 Saが算出される。時刻 tt91 から、速度情報 aの時間が経過する時刻 94では、速度情報 aの時間が経過してい る力 時刻 tt94にて取得される位置情報が位置情報 P2であるので、時刻 tt91で取 得される位置情報 P1と異なる。したがって、位置情報が異なるので、前述したように 算出速度は算出速度 Saとなる。
図 30を用いて前述の位置情報が変化している場合の動作を説明する。図 29では 、サーボ周期毎に位置情報が変化する場合を示す。時刻 t91では、速度情報 aが取 得され、速度情報 aの時間を経過していないので、速度情報 aが制御値として出力さ れる。また時刻 t92から時刻 t94までは、速度情報 bが取得されるので、同様に、速度 情報 bが制御値として出力される。 また時刻 t95から時刻 t99までは、速度情報 cが取得されるので、速度情報 cが出力 される。時刻 t95から、速度情報 bの時間が経過する時刻 t98まで、取得される位置 情報が異なり、取得される速度情報の時間より短いので、前述したように制御値は速 度情報 cとなる。
時刻 t95から取得される位置情報が同じであり、時刻 t95から時刻 t98を経過してか らの期間が速度情報 bの時間の長さより大きくなるので、次のサーボ周期である時刻 t 99から、速度情報が変化した時刻 t911までは、速度情報 cから予め定める設定値だ け段々と加算した制御値 (c + β )が出力される。
以上説明したように、制御値生成部 71は、判断部 72の判断結果に基づいて、取得 される位置情報が、一定期間にわたって変化していない場合、速度情報に設定値を 加算した制御値を出力し、そうでない場合、速度情報を制御値として出力する。取得 される位置情報が、一定期間にわたって変化していない場合は、被駆動体の変位量 が小さいので、速度が徐々に小さくなつていると予測することができるので、速度情報 に設定値を加算して値を大きくすることによって、算出される速度を徐々に小さくする こと力 Sできる。これによつて被駆動体の速度が小さくなつてきている場合であっても、 より高精度に被駆動体の速度を算出することができる。
次に、本発明の第 11の実施形態のサーボ制御システム 20に関して説明する。図 3 1は、本発明の第 11の実施形態のサーボ制御システム 20を構成するサーボコント口 ーラ 22の構成を示すブロック図である。図 31に示すサーボコントローラ 22は、前述 の第 10の実施形態のサーボコントローラ 22に構成が類似しており、異なる構成に関 して説明し、同様の構成に関しては説明を省略することがある。
サーボコントローラ 22は、取得部 69、取得情報記憶部 70、一定期間算出部 76、期 間比較部 75、速度演算部 73および制御部 74を含んで構成される。一定期間算出 部 76は、一定期間算出手段であって、取得部 69によって取得される位置情報が変 化してから次に位置情報が変化するまでの期間を算出する。換言すると、一定期間 算出部 76は、取得される位置情報が、どれだけの期間にわたって変化がないのかを 算出する。
期間比較部 75は、期間比較手段であって、一定期間算出部 76によって算出され る期間と、取得情報記憶部 70に記憶される速度情報との時間の長さを比較する。 速度演算部 73は、速度演算手段であって、期間比較部 75の比較結果に基づいて 、位置情報が変化していない期間が速度情報の時間より短い場合、取得部 69によつ て取得される速度情報と、被駆動体の予め定める変位量とに基づいて、被駆動体の 速度を演算し、位置情報が変化していない期間が速度情報の時間より短くない場合 、取得部 69によって取得される速度情報と、被駆動体の予め定める変位量とに基づ いて、被駆動体の仮速度を演算し、仮速度から予め定める設定値を減算して被駆動 体の速度を演算する。
取得される位置情報が変化しなくなつてから一定期間経過してから、仮速度力 減 算する予め定める設定値は、段々と減らしてゆくことが好ましい。これによつて位置情 報が変化しない場合に、直ぐに算出速度を 0にしないで、算出速度を段々と 0に近づ けてゆくことができる。このような設定値は、算出速度を段々と 0になるまで減らして、 算出速度を 0に近づけてゆき、算出速度が 0になってからは、減らさなくてもいい。仮 速度から予め定める設定値を減算する代わりに、予め定める比率で割算してもいい。 次に、サーボコントローラ 22の動作についてフローチャートを用いて説明する。図 3 2は、サーボコントローラ 22の速度演算部 73による処理を示すフローチャートである 。この処理は、電源投入状態で繰り返し実行される。また、この処理は、被駆動体を 駆動する場合のみ繰り返し実行される。図 33は、速度演算部 73の動作を説明する ための図である。
ステップ ilでは、取得される位置情報 Pcと、取得情報記憶部 70に記憶される位置 情報 Ppとを比較し、位置情報が異なる場合、ステップ に移り、位置情報が同じ場合 、ステップ i2に移る。
ステップ i2では、取得した速度情報の時間 Tcが、取得した位置情報が変化してい ない時間 Tthより長いか否かを判断し、長い場合、ステップ i2に移り、長くない場合、 ステップ i3に移る。したがって、ステップ ilおよびステップ i2では、一定期間にわたつ て変化しているか否力 ^判断し、取得される位置情報が、一定期間にわたって変化 していない場合、ステップ i5に移り、そうでない場合、ステップ i3に移る。
ステップ i5では、取得部 69によって取得される最新の速度情報と、被駆動体の予 め定める変位量とに基づいて、被駆動体の速度を演算し、本フローを終了する。ステ ップ i3では、取得部 69によって取得される最新の速度情報と、被駆動体の予め定め る変位量とに基づいて、被駆動体の仮速度を演算し、ステップ i4に移る。ステップ i4 では、仮速度から予め定める設定値を減算して、被駆動体の速度を演算し、本フロ 一を終了する。
図 33を用いて前述の動作を説明すると、時刻 t91では、速度情報 aが取得され、速 度情報 aから算出速度 Saが算出される。また時刻 t92から時刻 t94までは、速度情報 bが取得されるので、算出速度 Sbが算出される。
また時刻 t95から時刻 t99までは、速度情報 cが取得されるので、算出速度 Scが算 出される。時刻 t95から、速度情報 bの時間が経過する時刻 t98まで、取得される位 置情報が同じであり、取得される速度情報の時間より短いので、前述したように算出 速度は算出速度 Scとなる。
時刻 t98からは、取得される位置情報が同じである期間が速度情報 bの時間の長さ より大きくなるので、次のサーボ周期である時刻 t99から、位置情報が変化した時刻 t 911までは、算出速度 Scを仮速度として、仮速度から予め定める設定値だけ段々と 減算した算出速度 Ssが算出速度となる。
以上説明したように、速度演算部 73は、比較結果に基づいて、取得される位置情 報が同じ期間が速度情報の時間より短くない場合、取得される速度情報と、被駆動 体の変位量とに基づいて、被駆動体の仮速度を演算し、仮速度から予め定める設定 値を減算して被駆動体の速度を演算する。取得される位置情報が同じ期間が速度 情報の時間より短くない場合、被駆動体の変位量が小さいので、速度が徐々に小さ くなつていると予測することができるので、演算される仮速度から設定値を減算して、 演算される速度を小さくすることによって、算出される速度を小さくすることができる。 これによつて被駆動体の速度が小さくなつてきている場合であっても、より高精度に 被駆動体の速度を算出することができる。
また本実施形態では、仮速度から予め定める設定値を減算して、速度を演算して いる力 これに限ることはなぐたとえば仮速度に予め定める減衰率を乗じて、速度を 演算してもよい。 したがって、前述の時刻 t98からは、取得される位置情報が同じ期間が速度情報 b の時間の長さより大きくなるので、次のサーボ周期である時刻 t99から、位置情報が 変化した時刻 t911までは、算出速度 Scを仮速度として、仮速度に予め定める減衰 率を乗じた算出速度 Ssが算出速度となる。
このように速度を小さくする減衰率を高精度に設定することによって、より高精度に 被駆動体の速度を算出することができる。
また前記減衰率は、取得される位置情報が同じ期間の長さが長くなるに従って、小 さくなるように設定されることが好ましい。これによつて時間の経過にともなって、速度 が小さくなると予測されるので、減衰率を徐々に小さくすることによって、より高精度に 被駆動体の速度を算出することができる。
前述の第 10および第 11の実施形態のサーボコントローラ 22では、モータドライバ 2 3に制御を出力する制御部 74と、エンコーダ信号制御部 25から与えられる速度情報 に基づいて、速度を演算するまでの速度演算部分 73とが一体となっているサーボコ ントローラ 22を示すが、速度演算部分 73を制御部 74と別体に構成してもよい。した がって、速度演算部分 73は、エンコーダ信号制御部 25から与えられる速度情報に 基づいて、速度を算出し、算出した速度をサーボコントローラ 22に与えるように構成 してもよい。
前述の第 10および第 11の実施形態のサーボコントローラ 22では、位置情報と速 度情報とを別々に更新するエンコーダ信号制御部 25を用いた場合であっても、位置 情報が変化してから次の位置情報が変化するまでの時間が、取得した最新の速度 情報の時間と比較して長い方を制御値として出力することで、より高精度に被駆動体 の速度を算出することができる。
このように前述した各実施形態が構成されるので、サーボ制御の速度情報の精度 を向上させることができ、これによつてサーボ動作を安定させることができる。また、本 発明のエンコーダ信号制御部 25は、高精度なパルス信号 36を形態するハードを用 いることなぐソフト的にサーボ制御を安定させることができ、これによつて製造コストを 安くすることができる。
前述の各実施形態では、エンコーダは、直線的に変位する被駆動体の変位量に 基づいてパルス信号 36を発生するように構成される力 S、このようなエンコーダに限る ことはなぐ被駆動体が変位する変位量に応じて、パルス信号 36を発生するような構 成であればよい。たとえばエンコーダは、被駆動体の角変位量を検出するように構成 してもよい。
また前述の各実施形態のサーボ制御システムは、インクジェット装置だけでなぐフ ァクシミリ装置および複写機に搭載されてもよぐ被駆動体の位置を制御する各種の 装置に搭載することによって、被駆動体の速度を高精度に制御することができる。 また前述の各実施形態を構成する記憶手段であって、与えられる情報を時系列に 従って記憶する記憶手段は、予め定める記憶容量があればよぐたとえば新たな情 報が与えられる毎に、最も古い情報を削除するように構成することが好ましい。これに よって記憶容量が大きくすることなぐ記憶手段を実現することができる。
本発明は、その精神または主要な特徴から逸脱することなぐ他のいろいろな形態 で実施できる。したがって、前述の実施形態はあらゆる点で単なる例示に過ぎず、本 発明の範囲は特許請求の範囲に示すものであって、明細書本文には何ら拘束され ない。さらに、特許請求の範囲に属する変形や変更は全て本発明の範囲内のもので ある。
産業上の利用分野
本発明によれば、計時手段によって計時される計時時間と、記憶手段に記憶される 最新のエッジの周期との時間の長さを比較手段によって比較し、その比較結果に基 づいて、計時時間または周期のいずれか長い方の値を出力する。従来の技術では、 次のエッジ周期が検出されるまでの間、単に最新のエッジの周期を出力していた力 本発明のように計時時間が最新のエッジの周期より長い場合は、計時時間を出力す るので、高精度にパルス信号の周期を予測してリアルタイムに近似することができる。 これによつて高精度に出力されたパルス信号の周期に基づいて、被駆動体の速度を 高精度に算出することができる。したがって、被駆動体の速度の検出精度を高めるこ とができ、駆動手段を安定して制御することができる。
また本発明によれば、出力手段は、比較結果に基づいて、計時時間が前記周期よ り短い場合、最新の周期を出力し、計時時間が前記周期より短くない場合、計時時 間に付加時間を付加した値を出力する。計時時間が前記周期より短くない場合は、 計時時間は、時間の経過とともに大きくなるので、前もって付加期間を付加することに よって、より実際の被駆動体の速度に近似させることができる。これによつて、より高精 度に被駆動体の速度を算出することができる。
さらに本発明によれば、パルス信号の立上りエッジと立下りエッジとの両方が個別に 検出され、パルス信号の立下りエッジを検出してからパルス信号の立上りエッジを検 出するまで、第 1比較手段の比較結果に基づいて、立上り計時時間または立下り周 期のいずれか長い方の値を出力し、ノ^レス信号の立上りエッジを検出してから前記 パルス信号の立下りエッジを検出するまで、第 2比較手段の比較結果に基づいて、 立下り計時時間または立上り周期のいずれか長い方の値を出力する。したがって、 比較する間隔が、立上りエッジ間を比較するよりも、細かくなるので、高精度にパルス 信号の周期を予測してリアルタイムに近似することができる。これによつて高精度に出 力されたパルス信号の周期に基づいて、被駆動体の速度を高精度に算出することが できる。したがって、被駆動体の速度の検出精度を高めることができ、駆動手段を安 定して制御することができる。
さらに本発明によれば、出力手段は、比較結果に基づいて、立上り計時時間または 立下り計時時間を出力する場合は、付加時間を付加した値を出力する。したがって、 立上り計時時間または立下り計時時間は、時間の経過とともに大きくなるので、前も つて付加期間を付加することによって、より実際の被駆動体の速度に近似させること ができる。これによつて、より高精度に被駆動体の速度を算出することができる。 さらに本発明によれば、計時手段によって計時される計時時間と、記憶手段に記憶 される 2つ前の周期との時間の長さを比較し、その比較結果に基づいて、計時時間ま たは 2つ前の周期のレ、ずれか長レ、方の値に、最新の周期を加算した値を出力する。 したがって、比較する間隔が、立上りエッジ間または立下りエッジ間を比較するよりも 、細かくなるので、高精度にノ^レス信号の周期を予測してリアルタイムに近似すること ができる。これによつて高精度に出力されたパルス信号の周期に基づいて、被駆動 体の速度を高精度に算出することができる。したがって、被駆動体の速度の検出精 度を高めることができ、駆動手段を安定して制御することができる。 さらに本発明によれば、出力手段は、比較結果に基づいて、計時時間を含む値を 出力する場合は、計時時間に最新の周期を加算した値に、さらに予め定める付カロ時 間を付加した値を出力する。計時時間は、時間の経過とともに大きくなるので、前もつ て付加期間を付加することによって、より実際の被駆動体の速度に近似させることが できる。これによつて、より高精度に被駆動体の速度を算出することができる。
さらに本発明によれば、第 1パルス信号と、第 1パルス信号から電気角で約 90度位 相のずれた第 2パルス信号との、立上りエッジと立下りエッジとがそれぞれ個別に検 出される。第 1〜第 4比較手段は、それぞれ第 1および第 2パルス信号の周期と、各 パルス信号のエッジの計時時間とを比較し、出力手段は、比較結果に基づいて、レ、 ずれか長い方の値を出力する。したがって、位相が異なる 2つのパルス信号を用いる ことによって、ノ ルス信号が 1つの場合よりも、比較する間隔が、より細力べなるので、 高精度にノ^レス信号の周期を予測してリアルタイムに近似することができる。これによ つて高精度に出力されたノ^レス信号の周期に基づいて、被駆動体の速度を高精度 に算出することができる。したがって、被駆動体の速度の検出精度を高めることがで き、駆動手段を安定して制御することができる。
さらに本発明によれば、出力手段は、比較結果に基づいて、各パルス信号のエッジ の計時時間を出力する場合は、付カ卩時間を付加した値を出力する。したがって、計 時時間は、時間の経過とともに大きくなるので、前もって付加期間を付加することによ つて、より実際の被駆動体の速度に近似させることができる。これによつて、より高精 度に被駆動体の速度を算出することができる。
さらに本発明によれば、第 1パルス信号と、第 1パルス信号から電気角で約 90度位 相のずれた第 2パルス信号との、立上りエッジと立下りエッジとがそれぞれ個別に検 出される。出力手段は、各計時時間が、各最新の周期より短い場合、周期合計期間 を出力し、各計時時間が最新の周期より短くない場合、各計時時間と、残余の周期と の合計である第 1〜第 4合計期間をそれぞれ出力する。したがって、位相が異なる 2 つのノ^レス信号を用いることによって、パルス信号が 1つの場合よりも、比較する間隔 が、より細力、くなるので、高精度にパルス信号の周期を予測してリアルタイムに近似す ること力 Sできる。これによつて高精度に出力されたパルス信号の周期に基づいて、被 駆動体の速度を高精度に算出することができる。したがって、被駆動体の速度の検 出精度を高めることができ、駆動手段を安定して制御することができる。
さらに本発明によれば、各比較手段は、各計時手段によって計時される計時時間と 、各記憶手段に記憶される最新の周期とを比較する。このような各比較手段であって も、前述と同様の効果を達成することができる。
さらに本発明によれば、各比較手段は、前記各合計期間と、周期合計期間とを比 較する。このような各比較手段であっても、前述と同様の効果を達成することができる さらに本発明によれば、出力手段は、各合計期間を出力する場合、各合計期間と 予め定める付加時間との合計の各付加合計期間を出力する。したがって、各合計期 間には、計時時間が含まれるので、計時時間は、時間の経過とともに大きくなる。この ように前もって付加期間を各合計期間に付加することによって、より実際の被駆動体 の速度に近似させることができる。これによつて、より高精度に被駆動体の速度を算 出すること力 Sできる。
さらに本発明によれば、出力手段によって出力される値は、被駆動体の速度に基 づいて設定される境界値以下の場合に有効とし、前記境界値より大きい場合、無効 とする。出力手段によって出力される値が大きくなりすぎると、出力される値に基づい て算出される値は、 0に近づくので、予め境界値を設定することによって、有効と判断 される出力値だけに基づいて、被駆動体の速度を算出することができる。これによつ て所望の制御を達成することができる。
さらに本発明によれば、制御値生成手段は、判断手段の判断結果に基づいて、取 得される速度情報が一定値である場合、前記速度情報に予め定める値を加算した制 御値を出力し、取得される速度情報が一定値でない場合、前記速度情報を制御値と して出力する。速度情報が予め定める時間にわたって一定値である場合は、被駆動 体の変位量が小さいので、速度が徐々に小さくなつていると予測することができるの で、速度情報に予め定める値を加算して値を大きくすることによって、算出される速 度を徐々に小さくすること力 sできる。これによつて被駆動体の速度が小さくなつてきて いる場合であっても、より高精度に被駆動体の速度を算出することができる。 さらに本発明によれば、速度演算手段は、比較結果に基づいて、一定期間が一定 期間前の速度情報より短くない場合、取得される速度情報と、被駆動体の変位量と に基づいて、被駆動体の仮速度を演算し、前記仮速度から予め定める値を減算して 被駆動体の速度を演算する。一定期間が一定期間前の速度情報より短くない場合、 被駆動体の変位量が小さいので、速度が徐々に小さくなつていると予測することがで きるので、演算される仮速度から予め定める値を減算して演算される速度を小さくす ることによって、算出される速度を小さくすることができる。これによつて被駆動体の速 度が小さくなつてきている場合であっても、より高精度に被駆動体の速度を算出する こと力 Sできる。
さらに本発明によれば、一定期間が一定期間前の速度情報より短くない場合、取 得される速度情報と、駆動体の予め定める変位量に基づいて、被駆動体の仮速度を 演算し、前記仮速度に予め定める減衰率を乗じて被駆動体の速度を演算する。した がって、速度を小さくする減衰率を高精度に設定することによって、より高精度に被 駆動体の速度を算出することができる。
さらに本発明によれば、減衰率は、前記一定期間の時間の長さが長くなるに従って 、小さくなるように設定される。時間の経過にともなって、速度が小さくなると予測され るので、減衰率を徐々に小さくすることによって、より高精度に被駆動体の速度を算 出すること力 Sできる。
さらに本発明によれば、計時される計時時間と、最新のエッジの周期との時間の長 さを比較し、その比較結果に基づいて、計時時間または周期のいずれか長い方の値 を出力する。従来の技術では、次のエッジ周期が検出されるまでの間、単に最新の エッジの周期を出力していたが、本発明のように計時時間が最新のエッジの周期より 長い場合は、計時時間を出力するので、高精度にパルス信号の周期を近似すること ができる。これによつて高精度に出力されたパルス信号の周期に基づいて、被駆動 体の速度を高精度に算出することができる。したがって、被駆動体の速度の検出精 度を高めることができ、駆動手段を安定して制御することができる。
さらに本発明によれば、判断結果に基づいて、取得される速度情報が一定値であ る場合、前記速度情報に予め定める値を加算した制御値を出力し、取得される速度 情報が一定値でない場合、前記速度情報を制御値として出力する。速度情報が予 め定める時間にわたって一定値である場合は、被駆動体の変位量が小さいので、速 度が徐々に小さくなつていると予測することができるので、速度情報に予め定める値 を加算して値を大きくすることによって、算出される速度を徐々に小さくすることができ る。これによつて被駆動体の速度が小さくなつてきている場合であっても、より高精度 に被駆動体の速度を算出することができる。

Claims

請求の範囲
[1] 駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得する周期信号取得手段と、
前記パルス信号の立上りエッジおよび立下りエッジのいずれか一方のエッジを検出 するエッジ検出手段と、
前記エッジ検出手段によってエッジが検出されると、その検出時刻から起算して計 時を開始する計時手段と、
前記エッジ検出手段によってエッジが検出されると、該エッジとその 1つ前に検出さ れるエッジとの周期を演算する演算手段と、
前記演算手段によって演算されるエッジの周期を時系列に従って記憶する記憶手 段と、
前記計時手段によって計時される計時時間と、前記記憶手段に記憶される最新の エッジの周期との時間の長さを比較する比較手段と、
前記比較手段の比較結果に基づいて、前記計時時間または前記周期のいずれか 長い方の値を出力する出力手段とを含むことを特徴とする制御装置。
[2] 前記出力手段は、前記比較手段の比較結果に基づいて、前記計時時間が前記周 期より短い場合、最新の周期を出力し、前記計時時間が前記周期より短くない場合、 前記計時時間に予め定める付加時間を付加した値を出力することを特徴する請求項 1に記載の制御装置。
[3] 駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得する周期信号取得手段と、
前記パルス信号の立上りエッジを検出する立上りエッジ検出手段と、
前記パルス信号の立下りエッジを検出する立下りエッジ検出手段と、
前記立上りエッジ検出手段によって立上りエッジが検出されると、その検出時刻か ら起算して計時を開始する立上り計時手段と、
前記立下りエッジ検出手段によって立下りエッジが検出されると、その検出時刻か ら起算して計時を開始する立下り計時手段と、
前記立上りエッジ検出手段によって立上りエッジが検出されると、該立上りエッジと その 1つ前に検出される立上りエッジとの立上り周期を演算する立上り演算手段と、 前記立下りエッジ検出手段によって立下りエッジが検出されると、該立下りエッジと その 1つ前に検出される立下りエッジとの立下り周期を演算する立下り演算手段と、 前記立上り演算手段によって演算される立上り周期を時系列に従って記憶する立 上り記憶手段と、
前記立下り演算手段によって演算される立下り周期を時系列に従って記憶する立 下り記憶手段と、
前記立上り計時手段によって計時される立上り計時時間と、前記立下り記憶手段に 記憶される最新の立下り周期との時間の長さを比較する第 1比較手段と、
前記立下り計時手段によって計時される立下り計時時間と、前記立上り記憶手段に 記憶される最新の立上り周期との時間の長さを比較する第 2比較手段と、
前記比較結果に基づいて値を出力する出力手段であって、
前記パルス信号の立下りエッジを検出してから前記ノ^レス信号の立上りエッジを検 出するまで、前記第 1比較手段の比較結果に基づいて、前記立上り計時時間または 前記立下り周期のレ、ずれか長レ、方の値を出力し、
前記パルス信号の立上りエッジを検出してから前記ノ^レス信号の立下りエッジを検 出するまで、前記第 2比較手段の比較結果に基づいて、前記立下り計時時間または 前記立上り周期のいずれか長い方の値を出力する出力手段とを含むことを特徴とす る制御装置。
前記出力手段は、
前記ノ^レス信号の立下りエッジを検出してから前記パルス信号の立上りエッジを 検出するまで、前記第 1比較手段の比較結果に基づいて、立上り計時時間が立下り 周期より短い場合、最新の立下り周期を出力し、立上り計時時間が立下り周期より短 くない場合、立上り計時時間に予め定める付カ卩時間を付加した値を出力し、
前記ノ^レス信号の立上りエッジを検出してから前記パルス信号の立下りエッジを 検出するまで、前記第 2比較手段の比較結果に基づいて、立下り計時時間が立上り 周期より短い場合、最新の立上り周期を出力し、立下り計時時間が立上り周期より短 くない場合、立上り計時時間に予め定める付加時間を付加した値を出力することを特 徴する請求項 3に記載の制御装置。
[5] 駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得する周期信号取得手段と、
前記パルス信号のエッジを検出するエッジ検出手段と、
エッジ検出手段によってエッジが検出されると、その検出時刻から起算して計時を 開始する計時手段と、
前記エッジ検出手段によってエッジが検出されると、該エッジとその 1つ前に検出さ れるエッジとの周期を演算する演算手段と、
前記演算手段によって演算されるエッジの周期を時系列に従って記憶する記憶手 段と、
前記計時手段によって計時される計時時間と、該ェッジの検出時刻から前記記憶 手段に記憶される 2つ前の周期との時間の長さを比較する比較手段と、
前記比較手段の比較結果に基づいて、前記計時時間または前記 2つ前の周期の いずれか長い方の値に、最新の周期を加算した値を出力する出力手段とを含むこと を特徴とする制御装置。
[6] 前記出力手段は、前記比較手段の比較結果に基づいて、前記計時時間が前記 2 つ前の周期より短い場合、前記 2つ前の周期に最新の周期を加算した値を出力し、 前記計時時間が前記 2つ前の周期より短くない場合、前記計時時間に最新の周期を 加算した値に、さらに予め定める付加時間を付加した値を出力することを特徴する請 求項 5に記載の制御装置。
[7] 駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期の第 1パル ス信号を取得する第 1周期信号取得手段と、
前記第 1パルス信号から電気角で約 90度位相のずれた第 2パルス信号を取得する 第 2周期信号取得手段と、 前記第 1パルス信号および第 2パルス信号の立上りエッジおよび立下りエッジをそ れぞれ検出するエッジ検出手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立上り計時手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立下り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立上り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立下り計時手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 1パルス信号の立上りエッジとの第 1立上り周 期を演算する第 1立上り演算手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 1パルス信号の立下りエッジとの第 1立下り周 期を演算する第 1立下り演算手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 2パルス信号の立上りエッジとの第 2立上り周 期を演算する第 2立上り演算手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 2パルス信号の立下りエッジとの第 2立下り周 期を演算する第 2立下り演算手段と、
前記第 1立上り演算手段によって演算される第 1立上り周期を時系列に従って記憶 する第 1立上り記憶手段と、
前記第 1立下り演算手段によって演算される第 1立下り周期を時系列に従って記憶 する第 1立下り記憶手段と、
前記第 2立上り演算手段によって演算される第 2立上り周期を時系列に従って記憶 する第 2立上り記憶手段と、 前記第 2立下り演算手段によって演算される第 2立下り周期を時系列に従って記憶 する第 2立下り記憶手段と、
前記第 1立上り計時手段によって計時される第 1立上り計時時間と、前記第 2立下り 記憶手段に記憶される最新の第 2立下り周期とを比較する第 1比較手段と、
前記第 1立下り計時手段によって計時される第 1立下り計時時間と、前記第 2立上り 記憶手段に記憶される最新の第 2立上り周期とを比較する第 2比較手段と、
前記第 2立上り計時手段によって計時される第 2立上り計時時間と、前記第 1立上り 記憶手段に記憶される最新の第 1立上り周期とを比較する第 3比較手段と、
前記第 2立下り計時手段によって計時される第 2立下り計時時間と、前記第 1立下り 記憶手段に記憶される最新の第 1立下り周期とを比較する第 4比較手段と、
前記比較結果に基づいて値を出力する出力手段であって、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上りェ ッジを検出するまで、前記第 1比較手段の比較結果に基づいて、前記第 1立上り計 時時間または前記第 2立下り周期のいずれか長い方の値を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下りェ ッジを検出するまで、前記第 2比較手段の比較結果に基づいて、前記第 1立下り計 時時間または前記第 2立上り周期のいずれか長い方の値を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号立上りエツ ジを検出するまで、前記第 3比較手段の比較結果に基づいて、前記第 2立上り計時 時間または前記第 1立上り周期のレ、ずれか長レ、方の値を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下りェ ッジを検出するまで、前記第 4比較手段の比較結果に基づいて、前記第 2立下り計 時時間または前記第 1立下り周期のいずれか長い方の値を出力する出力手段とを含 むことを特徴とする制御装置。
前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1立上り計時時 間が最新の第 2立下り周期より短い場合、最新の第 2立下り周期を出力し、第 1立上 り計時時間が最新の第 2立下り周期より短くない場合、第 1立上り計時時間に予め定 める付加時間を付加した値を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 1立下り計時時 間が最新の第 2立上り周期より短い場合、最新の第 2立上り周期を出力し、第 1立下 り計時時間が最新の第 2立上り周期より短くない場合、第 1立下り計時時間に予め定 める付加時間を付加した値を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 2立上り計時時 間が最新の第 1立上り周期より短い場合、最新の第 1立上り周期を出力し、第 2立上 り計時時間が最新の第 1立上り周期より短くない場合、第 2立上り計時時間に予め定 める付加時間を付加した値を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下りェ ッジを検出するまで、前記第 4比較手段の比較結果に基づいて、第 2立下り計時時 間が最新の第 1立下り周期より短い場合、最新の第 1立下り周期を出力し、第 2立下 り計時時間が最新の第 1立下り周期より短くない場合、第 2立下り計時時間に予め定 める付加時間を付カロした値を出力する出力手段とを含むことを特徴とする請求項 7に 記載の制御装置。
駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期の第 1パル ス信号を取得する第 1周期信号取得手段と、
前記第 1パルス信号から電気角で約 90度位相のずれた第 2パルス信号を取得する 第 2周期信号取得手段と、
前記第 1パルス信号および第 2パルス信号の立上りエッジおよび立下りエッジをそ れぞれ検出するエッジ検出手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立上り計時手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 1立下り計時手段と、 前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立上り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、その 検出時刻から起算して計時を開始する第 2立下り計時手段と、
前記エッジ検出手段によって第 2パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 1パルス信号の立上りエッジとの第 1周期を演 算する第 1演算手段と、
前記エッジ検出手段によって第 1パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 2パルス信号の立上りエッジとの第 2周期を演 算する第 2演算手段と、
前記エッジ検出手段によって第 2パルス信号の立下りエッジが検出されると、該立 下りエッジとその 1つ前に検出される第 1パルス信号の立下りエッジとの第 3周期を演 算する第 3演算手段と、
前記エッジ検出手段によって第 1パルス信号の立上りエッジが検出されると、該立 上りエッジとその 1つ前に検出される第 2パルス信号の立下りエッジとの第 4周期を演 算する第 4演算手段と、
前記第 1演算手段によって演算される第 1周期を時系列に従って記憶する第 1記憶 手段と、
前記第 2演算手段によって演算される第 2周期を時系列に従って記憶する第 2記憶 手段と、
前記第 3演算手段によって演算される第 3周期を時系列に従って記憶する第 3記憶 手段と、
前記第 4演算手段によって演算される第 4周期を時系列に従って記憶する第 4記憶 手段と、
前記第 1立上り計時手段によって計時される第 1立上り計時時間と、前記第 1記憶 手段に記憶される最新の第 1周期とを比較する第 1比較手段と、
前記第 2立上り計時手段によって計時される第 2立上り計時時間と、前記第 2記憶 手段に記憶される最新の第 2周期とを比較する第 2比較手段と、 前記第 1立下り計時手段によって計時される第 1立下り計時時間と、前記第 3記憶 手段に記憶される最新の第 3周期とを比較する第 3比較手段と、
前記第 2立下り計時手段によって計時される第 2立下り計時時間と、前記第 4記憶 手段に記憶される最新の第 4周期とを比較する第 4比較手段と、
前記比較結果に基づいて値を出力する出力手段であって、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1立上り計時時 間が最新の第 1周期より短い場合、それぞれ最新の第 1周期と第 2周期と第 3周期と 第 4周期との周期合計期間を出力し、第 1立上り計時時間が最新の第 1周期より短く ない場合、第 1立上り計時時間と、それぞれ最新の第 2周期と第 3周期と第 4周期との 合計の第 1合計期間を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2立上り計時時 間が最新の第 2周期より短い場合、前記周期合計期間を出力し、第 2立上り計時時 間が最新の第 2周期より短くない場合、第 2立上り計時時間と、それぞれ最新の第 1 周期と第 3周期と第 4周期との合計の第 2合計期間を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 1立下り計時時 間が最新の第 3周期より短い場合、前記周期合計期間を出力し、第 1立下り計時時 間が最新の第 3周期より短くない場合、第 1立下り計時時間と、それぞれ最新の第 1 周期と第 2周期と第 4周期との合計の第 3合計期間を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、第 4比較手段の比較結果に基づいて、第 2立下り計時時間が 最新の第 4周期より短い場合、前記周期合計期間を出力し、第 2立下り計時時間が 最新の第 4周期より短くない場合、第 2立下り計時時間と、それぞれ最新の第 1周期と 第 2周期と第 3周期との合計の第 4合計期間を出力する出力手段とを含むことを特徴 とする制御装置。 [10] 前記第 1比較手段は、前記第 1立上り計時手段によって計時される第 1立上り計時 時間と、前記第 4記憶手段に記憶される最新の第 4周期とを比較し、
前記第 2比較手段は、前記第 2立上り計時手段によって計時される第 2立上り計時 時間と、前記第 1記憶手段に記憶される最新の第 1周期とを比較し、
前記第 3比較手段は、前記第 1立下り計時手段によって計時される第 1立下り計時 時間と、前記第 2記憶手段に記憶される最新の第 2周期とを比較し、
前記第 4比較手段は、前記第 2立下り計時手段によって計時される第 2立下り計時 時間と、前記第 3記憶手段に記憶される最新の第 3周期とを比較し、
前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1立上り計時時 間が最新の第 4周期より短い場合、前記周期合計期間を出力し、第 1立上り計時時 間が最新の第 4周期より短くない場合、前記第 1合計期間を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2立上り計時時 間が最新の第 1周期より短い場合、前記周期合計期間を出力し、第 2立上り計時時 間が最新の第 1周期より短くない場合、前記第 2合計期間を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 1立下り計時時 間が最新の第 2周期より短い場合、前記周期合計期間を出力し、第 1立下り計時時 間が最新の第 2周期より短くない場合、前記第 3合計期間を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、第 4比較手段の比較結果に基づいて、第 2立下り計時時間が 最新の第 3周期より短い場合、前記周期合計期間を出力し、第 2立下り計時時間が 最新の第 3周期より短くない場合、前記第 4合計期間を出力することを特徴とする請 求項 9に記載の制御装置。
[11] 前記第 1比較手段は、前記第 1合計期間と、前記周期合計期間とを比較し、
前記第 2比較手段は、前記第 2合計期間と、前記周期合計期間とを比較し、 前記第 3比較手段は、前記第 3合計期間と、前記周期合計期間とを比較し、 前記第 4比較手段は、前記第 4合計期間と、前記周期合計期間とを比較し、 前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1合計期間が 周期合計期間より短い場合、周期合計期間を出力し、第 1合計期間が周期合計期間 より短くない場合、第 1合計期間を出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2合計期間が 周期合計期間より短い場合、周期合計期間を出力し、第 2合計期間が周期合計期間 より短くない場合、第 2合計期間を出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 3合計期間が 周期合計期間より短い場合、周期合計期間を出力し、第 3合計期間が周期合計期間 より短くない場合、第 3合計期間を出力し、
前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、第 4比較手段の比較結果に基づいて、第 4合計期間が周期 合計期間より短い場合、周期合計期間を出力し、第 4合計期間が周期合計期間より 短くない場合、第 4合計期間を出力することを特徴とする請求項 9に記載の制御装置 前記出力手段は、
前記第 2パルス信号の立下りエッジを検出してから前記第 1パルス信号の立上り エッジを検出するまで、前記第 1比較手段の比較結果に基づいて、第 1合計期間を 出力する場合、第 1合計期間と予め定める付加時間との合計の第 1付加合計期間を 出力し、
前記第 2パルス信号の立上りエッジを検出してから前記第 1パルス信号の立下り エッジを検出するまで、前記第 2比較手段の比較結果に基づいて、第 2合計期間を 出力する場合、第 2合計期間と予め定める付加時間との合計の第 2付加合計期間を 出力し、
前記第 1パルス信号の立上りエッジを検出してから前記第 2パルス信号の立上り エッジを検出するまで、前記第 3比較手段の比較結果に基づいて、第 3合計期間を 出力する場合、第 3合計期間と予め定める付加時間との第 3付加合計期間を出力し 前記第 1パルス信号の立下りエッジを検出してから前記第 2パルス信号の立下り エッジを検出するまで、前記第 4比較手段の比較結果に基づいて、第 4合計期間を 出力する場合、第 4合計期間と予め定める付加時間との合計の第 4付加合計期間を 出力することを特徴とする請求項 9〜: 11のいずれ力、 1つに記載の制御装置。
[13] 前記出力手段によって出力される値は、被駆動体の速度に基づいて設定される境 界値以下の場合に有効とし、前記境界値より大きい場合、無効とすることを特徴とす る請求項 1〜: 12のいずれ力、 1つ記載の制御装置。
[14] 駆動手段を制御する制御装置であって、
駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応じた速度 情報を、定期または不定期に取得する取得手段と、
前記取得手段によって取得される速度情報を時系列に従って記憶する取得情報 記憶手段と、
取得される速度情報が、取得情報記憶手段に記憶される直前の予め定める時間に わたって、予め定める範囲内の一定値であるか否かを判断する判断手段と、 判断手段の判断結果に基づいて、取得される速度情報が一定値である場合、前記 速度情報に予め定める値を加算した制御値を出力し、取得される速度情報が一定値 でない場合、前記速度情報を制御値として出力する制御値生成手段と、
前記制御値生成手段によって出力される制御値と、被駆動体の予め定める変位量 とに基づいて、被駆動体の速度を演算する速度演算手段と、
前記速度演算手段によって演算される速度に基づいて、駆動手段を制御する制御 手段とを含むことを特徴とする制御装置。
[15] 駆動手段を制御する制御装置であって、
前記駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応じた 速度情報を、定期または不定期に取得する取得手段と、
前記取得手段によって取得される速度情報を時系列に従って記憶する取得情報 記憶手段と、
前記取得手段によって取得される速度情報が、取得情報記憶手段に記憶される速 度情報に基づいて、予め定める範囲内にある直前の一定期間を、算出する一定期 間算出手段と、
前記一定期間算出手段によって算出される一定期間と、前記取得情報記憶手段 に記憶される速度情報のうち、前記一定期間前の速度情報との時間の長さを比較す る期間比較手段と、
前記期間比較手段の比較結果に基づいて、前記一定期間が前記一定期間前の 速度情報より短い場合、取得手段によって取得される速度情報と、被駆動体の予め 定める変位量とに基づいて、被駆動体の速度を演算し、前記一定期間が前記一定 期間前の速度情報より短くない場合、前記取得手段によって取得される速度情報と、 被駆動体の予め定める変位量とに基づいて、被駆動体の仮速度を演算し、前記仮 速度から予め定める値を減算して被駆動体の速度を演算する速度演算手段と、 前記速度演算手段によって演算される速度に基づいて、駆動手段を制御する制御 手段とを含むことを特徴とする制御装置。
[16] 前記速度演算手段は、
前記期間比較手段の比較結果に基づいて、前記一定期間が前記一定期間前の 速度情報より短い場合、前記取得手段によって取得される速度情報と、被駆動体の 予め定める変位量に基づいて、被駆動体の速度を演算し、
前記一定期間が前記一定期間前の速度情報より短くない場合、前記取得手段に よって取得される速度情報と、駆動体の予め定める変位量に基づいて、被駆動体の 仮速度を演算し、前記仮速度に予め定める減衰率を乗じて被駆動体の速度を演算 することを特徴とする請求項 15に記載の制御装置。
[17] 前記減衰率は、前記一定期間の時間の長さが長くなるに従って、小さくなるように 設定されることを特徴とする請求項 16に記載の制御装置。
[18] 駆動手段を制御する制御方法であって、 前記駆動手段の駆動に応じて変位される被駆動体の速度に応じた周期のパルス 信号を取得し、
前記パルス信号の立上りエッジおよび立下りエッジのいずれか一方のエッジを検出 し、
前記エッジが検出されると、その検出時刻から起算して計時を開始し、
前記エッジが検出されると、該エッジとその 1つ前に検出されるエッジとの周期を演 算し、
計時される計時時間と、演算される最新のエッジの周期との時間の長さを比較し、 比較結果に基づいて、前記計時時間または前記周期のいずれか長い方の値を出 力することを特徴とする制御方法。
駆動手段を制御する制御方法であって、
駆動手段の駆動に応じて変位される被駆動体の予め定める変位量に応じた速度 情報を、定期または不定期に取得し、
取得される速度情報力 取得される直前の予め定める時間にわたって、予め定める 範囲内の一定値であるか否かを判断し、
判断結果に基づいて、取得される速度情報が一定値である場合、前記速度情報に 予め定める値を加算した制御値を出力し、取得される速度情報が一定値でない場合 、前記速度情報を制御値として出力し、
出力される前記制御値と、被駆動体の予め定める変位量とに基づいて、被駆動体 の速度を演算し、
演算される速度に基づいて、駆動手段を制御することを特徴とする制御方法。
PCT/JP2007/061136 2006-06-07 2007-05-31 制御装置および制御方法 WO2007142127A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP07744524A EP2037569A4 (en) 2006-06-07 2007-05-31 CONTROL DEVICE AND CONTROL PROCEDURE
US12/303,524 US8058831B2 (en) 2006-06-07 2007-05-31 Control device and control method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2006159151A JP4786425B2 (ja) 2006-06-07 2006-06-07 制御装置および制御方法
JP2006-159151 2006-06-07

Publications (1)

Publication Number Publication Date
WO2007142127A1 true WO2007142127A1 (ja) 2007-12-13

Family

ID=38801384

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2007/061136 WO2007142127A1 (ja) 2006-06-07 2007-05-31 制御装置および制御方法

Country Status (4)

Country Link
US (1) US8058831B2 (ja)
EP (1) EP2037569A4 (ja)
JP (1) JP4786425B2 (ja)
WO (1) WO2007142127A1 (ja)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI494720B (zh) * 2013-09-12 2015-08-01 Rdc Semiconductor Co Ltd 伺服馬達系統中之脈波處理器
JP5905545B2 (ja) * 2014-08-26 2016-04-20 ファナック株式会社 I/o制御システム
DE102014112939A1 (de) * 2014-09-09 2016-03-10 Océ Printing Systems GmbH & Co. KG Prefire vor Pixel in einem lnspection Mode
JP6398521B2 (ja) * 2014-09-22 2018-10-03 カシオ計算機株式会社 印刷装置、印刷方法及びプログラム
US10480967B2 (en) * 2014-11-14 2019-11-19 Sharp Kabushiki Kaisha Signal processing device and signal processing method
CN111869090B (zh) * 2018-03-28 2023-11-03 新电元工业株式会社 驱动装置、驱动方法、驱动程序以及电动车辆
CN111954978B (zh) * 2018-03-28 2024-01-05 新电元工业株式会社 驱动装置、驱动方法以及电动车辆
JP6953621B2 (ja) * 2018-03-28 2021-10-27 新電元工業株式会社 駆動装置、駆動方法、駆動プログラムおよび電動車両

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002034274A (ja) 2000-07-19 2002-01-31 Canon Inc ディジタルエンコーダー制御方法
JP2004129488A (ja) * 2002-07-31 2004-04-22 Canon Inc 記録装置、モータ制御装置及び方法
JP2004307163A (ja) * 2003-04-08 2004-11-04 Funai Electric Co Ltd 印刷装置の紙送り機構
JP2004343859A (ja) * 2003-05-14 2004-12-02 Canon Inc モータ制御装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60216262A (ja) * 1984-04-12 1985-10-29 Hitachi Ltd 位置,速度検出装置
JPH0244258A (ja) * 1988-08-05 1990-02-14 Akebono Brake Ind Co Ltd 回転体の回転速度演算装置
JP2690210B2 (ja) * 1991-05-22 1997-12-10 三菱電機株式会社 エレベータの速度検出装置
JPH11277808A (ja) * 1998-03-26 1999-10-12 Brother Ind Ltd タイミングパルス発生装置及び印字装置
JP3745168B2 (ja) * 1998-07-21 2006-02-15 キヤノン株式会社 記録装置およびレジずれ検出方法
JP2000085609A (ja) * 1998-09-16 2000-03-28 Koyo Seiko Co Ltd 舵角速度検出装置およびそれを用いたパワーステアリング装置
JP2002531834A (ja) * 1998-12-02 2002-09-24 エムティエス・システムズ・コーポレーション 混合した速度の推定
US6302514B1 (en) * 1999-09-03 2001-10-16 Lexmark International, Inc. Method and apparatus for automatically correcting the fire timing of a printhead carrier due to linear encoder velocity errors
US6853161B2 (en) * 2002-07-31 2005-02-08 Canon Kabushiki Kaisha Recording apparatus, motor control apparatus, and motor control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002034274A (ja) 2000-07-19 2002-01-31 Canon Inc ディジタルエンコーダー制御方法
JP2004129488A (ja) * 2002-07-31 2004-04-22 Canon Inc 記録装置、モータ制御装置及び方法
JP2004307163A (ja) * 2003-04-08 2004-11-04 Funai Electric Co Ltd 印刷装置の紙送り機構
JP2004343859A (ja) * 2003-05-14 2004-12-02 Canon Inc モータ制御装置

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP2037569A4 (en) 2012-05-16
US20090206782A1 (en) 2009-08-20
JP2007330037A (ja) 2007-12-20
US8058831B2 (en) 2011-11-15
JP4786425B2 (ja) 2011-10-05
EP2037569A1 (en) 2009-03-18

Similar Documents

Publication Publication Date Title
WO2007142127A1 (ja) 制御装置および制御方法
US8274248B2 (en) Rotation speed detection circuit and motor driver apparatus having the same
US6838855B2 (en) Method and apparatus for controlling motor
US7014378B2 (en) Printer and paper feed controller
US20080112697A1 (en) Control apparatus using speed estimation for dc motor in image forming apparatus and method thereof
US7377379B2 (en) Transport belt drive control device, image forming device, and transport belt drive control method
JP4616777B2 (ja) 搬送制御装置及び画像形成装置
US8421382B2 (en) Apparatus motor control method
JP3848502B2 (ja) プリンタ制御装置
JP2001103778A (ja) プリンタ用モータの制御装置および制御方法ならびに制御プログラムを記録した記録媒体
JP4543939B2 (ja) 補正値算出方法及びプリンタ製造方法
US7431414B2 (en) Printer-control apparatus, printer-control method and printer
JPH11277808A (ja) タイミングパルス発生装置及び印字装置
JP2002034274A (ja) ディジタルエンコーダー制御方法
JP3570617B2 (ja) Dcモータ制御装置及び制御方法
JP4868859B2 (ja) 位置検出装置、位置検出方法及び画像形成装置
JP5138960B2 (ja) モータ制御装置及びモータ制御方法
JP5806447B2 (ja) 印刷装置
JP2021045891A (ja) 電子機器及びその制御方法
JP2005313610A (ja) モータ制御装置及び印刷装置
JP2006113825A (ja) 駆動制御装置、駆動制御方法及び画像形成装置
JP2004130627A (ja) インクジェット記録装置
JP2001224189A (ja) モータ制御方法及び制御装置
JP2012250502A (ja) 画像形成装置及びモータ駆動制御方法
US20100225934A1 (en) Encoder signal processor, encoder signal processing method, and transport apparatus

Legal Events

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

Ref document number: 07744524

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 12303524

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2007744524

Country of ref document: EP