# US 2001/0024101 A1 · Motor control apparatus and motor control method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2001/0024101 A1
- Document ID: US20010024101A1
- Status: Published application
- Kind: A1
- Application number: 09/742,107
- Filed: 2000-12-22
- Published: 2001-09-27
- Earliest claimed: 1999-12-24
- Assignees: Seiko Epson Corporation
- Inventors: Hirotomo Tanaka
- Web page: https://patentgrep.com/patent/US20010024101A1

## CPC

- B41J 19/20: Positive-feed character-spacing mechanisms (controlled by escapements B41J19/52)
- B41J 11/42: Controlling {printing material conveyance for accurate alignment of the printing material with the printhead; Print registering}
- B41J 19/202: {Drive control means for carriage movement}
- B41J 19/207: {Encoding along a bar}
- H02P 7/2805: {whereby the speed is regulated by measuring the motor speed and comparing it with a given physical value}
- H02P 23/16: Controlling the angular speed of one shaft (H02P23/18 takes precedence)
- B41J: TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- H02P: CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS

## Abstract

A motor control apparatus and a method according to the invention are directed to detecting a motor velocity. Leading and trailing edges of two pulse signals are distinctively detected from one another, and those pulse signals have cycles which are proportional to the motor velocity, and a phase difference between the pulse signals is about one quarter of a single cycle from one another. Then, a period of time between the pulse edges in the same direction of the same pulse signal is measured, and the period of time between the pulse edges is used to sequentially convert it into the motor velocity and thereby detect the motor velocity. The motor control apparatus has a reverse rotation detector 6q detecting if, upon actuation by the motor 1, reverse rotations are caused in an attachment unit 65 where an encoder 13 is attached, from output pulses from the encoder rotated by rotations of the motor, a first pulse counter 6r counting edges of the output pulses from the encoder after the attachment unit has rotated from a reverse direction to a normal direction when the reverse rotations are caused in the attachment unit, to give a start command when a count value reaches a first specified value, and a speed calculator 6d receiving the start command when the reverse rotations are caused in the attachment unit, to compute the motor velocity from the output pulses from the encoder.

## Claims

### Claim 1

A motor control apparatus for detecting a motor velocity, comprising:
a signal generator producing a first pulse signal proportional in cycle to a motor velocity and a second pulse signal proportional in cycle to said motor velocity and different in phase from said first pulse signal is about one quarter of a single cycle;
a pulse edge detector distinctively detecting leading edges and trailing edges of said first and second pulse signals from one another;
a time counter measuring a period of time between the pulse edges in the same direction of the same pulse signal; and
a velocity converter using the period of time measured by said time counter to sequentially convert it into a motor velocity and thereby detect said motor velocity.

### Claim 2 (depends on 1)

The motor control apparatus according to claim 1, wherein said velocity converter performs the conversion into said motor speed by dividing a distance corresponding to an interval between said pulse edges by said period of time.

### Claim 3 (depends on 1)

The motor control apparatus according to claim 1, further comprising:
a comparison reference value memory storing comparison reference values determined for each of the pulse edges, from the one preceding by a specific number of the pulse edges to a target edge which is a pulse edge indicating a targeted stop position of an object to be driven by said motor, to said target edge; and
a motor stop controller comparing the comparison reference value with said motor velocity for each of the pulse edges from the pulse edge preceding by said specific number to said target edge so as to give a command to stop said motor when said motor velocity is equal to or over said comparison reference value.

### Claim 4 (depends on 3)

The motor control apparatus according to claim 3, wherein said comparison reference value memory is comprised of either one of PROM, EEPROM, and ASIC while said motor stop controller is comprised of a CPU.

### Claim 5 (depends on 1)

The motor control apparatus according to claim 1, wherein said pulse edge detector, said time counter, and said velocity converter are comprised of a CPU.

### Claim 6 (depends on 1)

The motor control apparatus according to claim 1, wherein said signal generator is comprised of an encoder.

### Claim 7 (depends on 7)

The motor control apparatus according to claim 7, wherein said encoder is a linear encoder fixed to a carriage of a serial printer.

### Claim 8 (depends on 6)

The motor control apparatus according to claim 6, wherein said motor is a carriage motor actuating said carriage.

### Claim 9 (depends on 6)

The motor control apparatus according to claim 6, wherein said encoder is a rotary encoder for a paper feeding motor in a serial printer.

### Claim 10 (depends on 9)

The motor control apparatus according to claim 9, wherein said motor is a paper feeding motor which feeds paper in said serial printer.

### Claim 11

A motor control apparatus for detecting a motor velocity, comprising:
a signal generator producing a first pulse signal proportional in cycle to a motor velocity and a second pulse signal proportional in cycle to said motor velocity and different in phase from said first pulse signal by about one quarter of a single cycle;
a detection condition memory storing a plurality of detection conditions including a condition of distinctively detecting pulse edges in the same direction of the same pulse signal, so as to issue either of said detection conditions depending upon a specified condition;
a detection condition setting unit specifying said detection conditions received from said detection condition memory;
a pulse edge detector detecting part or all of leading and trailing edges of said first and second pulse signals depending upon said detection conditions specified by said detection condition setting unit;
a time counter measuring a period of time between the pulse edges detected by said pulse edge detector; and
a velocity converter using the period of time measured by said time counter to sequentially convert it into said motor speed and thereby detect said motor speed.

### Claim 12 (depends on 11)

The motor control apparatus according to claim 11, wherein said specified condition includes said motor velocity, the number of cycles of said first or said second pulse signal, or a driving amount of said motor.

### Claim 13 (depends on 11)

The motor control apparatus according to claim 11, wherein said time counter can simultaneously measure at least four periods of time between the pulse edges in parallel with one another.

### Claim 14 (depends on 11)

The motor control apparatus according to claim 11, wherein said time counter measures the periods of time between the pulse edges in the same direction of the same pulse signal when said pulse detector distinctively detects the pulse edges in the same direction of the same pulse signal.

### Claim 15 (depends on 11)

The motor control apparatus according to claim 11, wherein said detection condition memory and said detection condition setting unit are respectively comprised of either one of PROM, EEPROM, and ASIC.

### Claim 16 (depends on 11)

The motor control apparatus according to claim 11, wherein said velocity converter performs conversion to said motor speed by dividing a distance corresponding to an interval between the pulse edges by said period of time.

### Claim 17 (depends on 11)

The motor control apparatus according to claim 11, further comprising:
a comparison reference value memory storing comparison reference values determined for each of the pulse edges, from the one preceding by a specific number of pulse edges to a target edge which is a pulse edge indicating a targeted stop position of an object to be driven by said motor, to said target edge; and
a motor stop controller comparing said comparison reference value with said motor velocity for each of the pulse edges from the pulse edge preceding by said specific number to said target edge so as to give a command to stop said motor when said motor velocity is equal to or over said comparison reference value.

### Claim 18 (depends on 17)

The motor control apparatus according to claim 17, wherein said comparison reference value memory is comprised of either one of PROM, EEPROM, and ASIC while said motor stop controller is comprised of a CPU.

### Claim 19 (depends on 11)

The motor control apparatus according to claim 11, wherein said pulse edge detector, said time counter, and said velocity converter are comprised of a CPU.

### Claim 20 (depends on 11)

The motor control apparatus according to claim 11, wherein said signal generator is comprised of an encoder.

### Claim 21 (depends on 20)

The motor control apparatus according to claim 20, wherein said encoder is a linear encoder fixed to a carriage of a serial printer.

### Claim 22 (depends on 21)

The motor control apparatus according to claim 21, wherein said motor is a carriage motor actuating said carriage.

### Claim 23 (depends on 20)

The motor control apparatus according to claim 20, wherein said encoder is a rotary encoder for a paper feeding motor in a serial printer.

### Claim 24 (depends on 23)

The motor control apparatus according to claim 23, wherein said motor is a paper feeding motor which feeds paper in said serial printer.

### Claim 25

A motor control method for detecting a motor velocity, comprising:
distinctively detecting leading and trailing edges of two pulse signals proportional in cycle to the motor velocity and different in phase by about one quarter of a single cycle from one another;
measuring a period of time between the pulse edges in the same direction of the same pulse signal; and
using said period of time between the pulse edges to sequentially convert it into said motor velocity and thereby detect said motor velocity.

### Claim 26

A motor control method for detecting a motor velocity, comprising:
a first step of generating a first pulse signal proportional in cycle to a motor velocity and a second pulse signal proportional in cycle to the motor velocity and different in phase from the first pulse signal by about one quarter of a single cycle;
a second step of distinctively detecting leading and trailing edges of said first and second pulse signals from one another;
a third step of measuring a period of time between the pulse edges in the same direction of the same pulse; and
a fourth step of using a measured result of the period of time to sequentially convert it into said motor velocity and thereby detect said motor velocity.

### Claim 27 (depends on 26)

The motor control method according to claim 26, wherein said fourth step includes executing conversion of said motor velocity by dividing a distance corresponding to an interval between the pulses by said period of time.

### Claim 28 (depends on 26)

The motor control method according to claim 26, further including a fifth step of comparing said motor velocity with comparison reference values for individual pulse edges from a pulse edge preceding by a predetermined number of pulse edges to a target edge which is a pulse edge indicating a target stop position of an object to be driven by said motor to said target edge, at respective said pulse edges, and issuing a command to stop the motor when said motor velocity is equal to or over said comparison reference values.

### Claim 29

A motor control method for detecting a motor velocity, comprising:
a first step of generating a first pulse signal proportional in cycle to a motor velocity and a second pulse signal proportional in cycle to the motor velocity and different in phase from said first pulse signal by about one quarter of a cycle;
a second step responsive to a specified condition to select one of a plurality of conditions of detection that include a condition of distinctively detecting the pulse edges in the same direction of the same pulse signal;
a third step depending upon the selected condition of detection to detect part or all of leading and trailing edges of the first and second pulse signals;
a fourth step of measuring a period of time between the detected pulse edges; and
a fifth step of using a measured result of the period of time to sequentially convert it into said motor velocity and thereby detect said motor velocity.

### Claim 30 (depends on 29)

The motor control method according to claim 29, wherein the specified condition includes said motor velocity, said number of cycles of said first or said second pulse signal, or a driving amount of said motor.

### Claim 31 (depends on 29)

The motor control method according to claim 29, wherein, in distinctively detecting the pulse edges in the same direction of the same pulse signal in said third step, a period of time between the pulse edges in the same direction of the same pulse is measured in said fourth step.

### Claim 32 (depends on 29)

The motor control method according to claim 29, wherein said fifth step executes the conversion into the motor velocity by dividing a distance corresponding to an interval between the pulse edges by the period of time.

### Claim 33 (depends on 29)

The motor control method according to claim 29, further comprising:
a sixth step of comparing said motor velocity with comparison reference values for individual pulse edges from a pulse edge preceding by a predetermined number of pulse edges to a target edge which is a pulse edge indicating a target stop position of an object to be driven by said motor to said target edge, at respective said pulse edges, and issuing a command to stop the motor when said motor velocity is equal to or over said comparison reference values.

### Claim 34

A record medium storing computer programs to execute a motor control method for detecting a motor velocity in a computer system, said motor control method comprising: distinctively detecting leading and trailing edges of two pulse signals proportional in cycle to the motor velocity and different in phase by about one quarter of a single cycle from one another; measuring a period of time between the pulse edges in the same direction of the same pulse signal; and using the period of time between the pulse edges to sequentially convert it into said motor velocity and thereby detect said motor velocity.

### Claim 35

A record medium storing computer programs to execute a motor control method for detecting a motor velocity in a computer system, said method comprising:
a first step of generating a first pulse signal proportional in cycle to a motor velocity and a second pulse signal proportional in cycle to the motor velocity and different in phase from the first pulse signal by about one quarter of a single cycle;
a second step of distinctively detecting leading and trailing edges of the first and second pulse signals from one another;
a third step of measuring a period of time between the pulse edges in the same direction of the same pulse; and
a fourth step of using a measured result of the period of time to sequentially convert it into said motor velocity and thereby detect said motor velocity.

### Claim 36

A record medium storing computer programs to execute a motor control method for detecting a motor velocity in a computer system, said method comprising:
a first step of generating a first pulse signal proportional in cycle to a motor velocity and a second pulse signal proportional in cycle to the motor velocity and different in phase from the first pulse signal by about one quarter of a cycle;
a second step responsive to a specified condition to select one of a plurality of conditions of detection that include a condition of distinctively detecting the pulse edges in the same direction of the same pulse signal;
a third step depending upon the selected condition of detection to detect part or all of leading and trailing edges of the first and second pulse signals;
a fourth step of measuring a period of time between the detected pulse edges; and
a fifth step of using a measured result of the period of time to sequentially convert it into said motor velocity and thereby detect said motor velocity.

### Claim 37

A motor control apparatus, comprising:
a reverse rotation detector for detecting if, upon actuation by the motor, reverse rotations are caused in an attachment unit where an encoder is attached, from output pulses from the encoder rotated by rotations of the motor;
a first pulse counter counting edges of the output pulses from the encoder after the attachment unit has rotated from a reverse direction to a normal direction when the reverse rotations are caused in the attachment unit, to give a start command when a count value reaches a first specified value; and
a speed calculator receiving the start command when the reverse rotations are caused in the attachment unit, to compute the motor velocity from the output pulses from the encoder.

### Claim 38 (depends on 37)

The motor control apparatus according to claim 37, further comprising a second pulse counter which, upon actuation by the motor, counts the edges of the output pulses from the encoder to give a start command when a count value reaches a second specified value,
said speed calculator being configured to receive the start command output from the first pulse counter when the reverse rotations are caused in the attachment unit, or receive the start command output from the second pulse counter when the reverse rotations are not caused in the attachment unit, to start computation of the velocity.

### Claim 39 (depends on 37)

The motor control apparatus according to claim 37, wherein the motor is a paper feeding motor in a printer.

### Claim 40 (depends on 37)

The motor control apparatus according to claim 37, further comprising a speed controller controlling the motor velocity by referring to a difference between a targeted velocity of the motor and the motor velocity obtained through the computation by the speed calculator.

### Claim 41

A motor control method, comprising:
a step of referring to output pulses from an encoder rotated by rotations of a motor to detect, upon actuation by the motor, whether reverse rotations are caused in an attachment unit where the encoder is attached;
a step of counting edges of the output pulses from the encoder after the attachment unit has turned to rotate from a reverse direction to a normal direction when reverse rotations are caused in the attachment unit, to issue a start command when a count value reaches a first specified value; and
a step of computing the motor velocity from the output pulses from the encoder when the start command is received.

### Claim 42 (depends on 41)

The motor control method according to claim 41, further comprising a step of counting edges of the output pulses from the encoder prior to the step of computing the motor velocity, to issue a start command when a count value reaches a second specified value or when reverse rotations are not caused in the attachment unit.

### Claim 43 (depends on 41)

The motor control method according to claim 41, further comprising a step of referring to a difference between a targeted velocity of the motor and the computed velocity after the step of computing the motor velocity, to control the motor velocity.

### Claim 44 (depends on 41)

The motor control method according to claim 41, wherein said motor is a paper feeding motor in a printer.

### Claim 45

A record medium storing a control program to control a motor by means of a computer, said program comprising:
a procedure of referring to output pulses from an encoder rotated by rotations of a motor to detect, upon actuation by the motor, if reverse rotations are caused in an attachment unit where the encoder is attached;
a procedure of counting edges of the output pulses from the encoder after the attachment unit has turned to rotate from a reverse direction to a normal direction when reverse rotations are caused in the attachment unit, to issue a start command when a count value reaches a first specified value; and
a procedure of computing the motor velocity from the output pulses from the encoder when the start command is received.
