KR20000008601A - Motor speed detector - Google Patents

Motor speed detector Download PDF

Info

Publication number
KR20000008601A
KR20000008601A KR1019980028480A KR19980028480A KR20000008601A KR 20000008601 A KR20000008601 A KR 20000008601A KR 1019980028480 A KR1019980028480 A KR 1019980028480A KR 19980028480 A KR19980028480 A KR 19980028480A KR 20000008601 A KR20000008601 A KR 20000008601A
Authority
KR
South Korea
Prior art keywords
counter
encoder
count value
motor
sampling
Prior art date
Application number
KR1019980028480A
Other languages
Korean (ko)
Inventor
김현석
Original Assignee
윤종용
삼성전자 주식회사
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 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019980028480A priority Critical patent/KR20000008601A/en
Publication of KR20000008601A publication Critical patent/KR20000008601A/en

Links

Classifications

    • 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
    • H02P6/17Circuit arrangements for detecting position and for generating speed information
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

PURPOSE: A motor speed detector is provided to successively detect a motor speed without a delay time. CONSTITUTION: A motor speed detector for obtaining a motor speed by an encode pulse generated from encoder. An encoder counter(120) counts the encoder pulse and a timer counter(130) counts timer clocks for counting an interval between the encoder pulses. A sampling counter(140) generates an interrupt signal according to a predetermined sampling period. An encoder counter memory(150) stores an encoder pulse count value counted by the encoder counter, and outputs a stored encoder pulse count value if the interrupt signal is received from the sampling counter. A timer counter memory(160) stores a timer clock count value counted by the timer counter(130), and outputs a stored timer clock count value if the interrupt signal is received from the sampling counter. If the interrupt signal is received from the sampling counter(140), a controller(170) operates each count value which is generated from the encoder counter memory and the timer counter memory for a present sampling period, operates a timer clock count value for a previous sampling period, and obtains a motor speed. Thereby, a motor speed detector successively detects a motor speed without a delay time, and a motor speed is precisely controlled.

Description

모터의 속도검출장치Motor speed detection device

본 발명은 모터의 속도검출장치에 관한 것으로, 보다 상세하게는 지연시간이 없이 연속적으로 모터의 속도를 검출할 수 있는 모터의 속도검출장치에 관한 것이다.The present invention relates to a speed detecting apparatus for a motor, and more particularly, to a speed detecting apparatus for a motor capable of continuously detecting the speed of the motor without a delay time.

일반적으로, 종래의 모터 속도검출장치는 도 1에 도시된 바와 같이, 모터의 회전속도에 상응하는 엔코더펄스를 출력하는 엔코더(Encoder; 10)와, 이 엔코더(10)로부터 출력된 엔코더펄스의 갯수를 카운트하는 엔코더카운터(Encoder Counter; 20, 이하, "M카운터"라 칭함)와, 상기 엔코더펄스 사이의 간격을 세기 위한 타이머클럭(Timer Clock; 이하, "T클럭"이라 칭함)의 갯수를 카운트하는 타이머카운터(Timer Counter; 30, 이하, "T카운터"라 칭함)와, 소정의 샘플링주기마다 인터럽트신호(Interrupt Signal)를 발생하는 샘플링카운터(Sampling Counter; 40) 및, 상기 M카운터(20)에 의해 카운트된 값과 상기 T카운터(30)를 통해 카운트된 값을 연산하여 모터의 속도를 구하고 이 구해진 모터의 속도에 따라 모터의 구동을 제어하기 위한 구동제어신호를 도시생략된 모터구동부로 출력하는 제어부(50)로 구성된다.In general, as shown in FIG. 1, a conventional motor speed detecting apparatus includes an encoder 10 that outputs an encoder pulse corresponding to a rotational speed of a motor, and the number of encoder pulses output from the encoder 10. Count the number of Encoder Counters (hereinafter referred to as "M counters") and timer clocks for counting the intervals between the encoder pulses. A timer counter 30, hereinafter referred to as "T counter", a sampling counter 40 for generating an interrupt signal at each predetermined sampling period, and the M counter 20 Calculates the speed of the motor by calculating the value counted through the T counter 30 and outputs a drive control signal for controlling the driving of the motor according to the obtained motor speed to the motor driving unit, not shown. Article It consists of a part 50.

상기한 바와 같이 구성된 종래의 모터 속도검출장치에 대한 동작과정을 도 2를 참조하여 설명하기로 한다.An operation process of the conventional motor speed detection device configured as described above will be described with reference to FIG.

먼저, 모터가 구동되면 엔코더(10)로부터 모터 회전축의 회전속도에 상응하는 엔코더펄스가 출력되고, M카운터(20)에 의해 상기 엔코더(10)로부터 출력된 엔코더펄스의 갯수가 카운트되며, 이 엔코더펄스의 카운트값(m1)이 M카운터(20)로부터 제어부(50)로 입력된다.First, when the motor is driven, encoder pulses corresponding to the rotational speed of the motor shaft are output from the encoder 10, and the number of encoder pulses output from the encoder 10 is counted by the M counter 20, and the encoder is counted. The pulse count value m1 is input from the M counter 20 to the controller 50.

이와 동시에, 도시생략된 T클럭발생수단으로부터 발생된 T클럭의 갯수가 T카운터(30)에 의해 카운트되어, 이 T클럭의 카운트값(m2)이 T카운터(30)로부터 제어부(50)로 입력된다.At the same time, the number of T clocks generated from the T clock generating means not shown is counted by the T counter 30, and the count value m2 of this T clock is input from the T counter 30 to the controller 50. do.

이와 더불어, 도시생략된 X클럭발생수단으로부터 발생된 샘플링주기(Tc)의 기준이되는 X클럭이 샘플링카운터(40)에 의해 카운트되어 소정의 샘플링주기(Tc)마다 샘플링카운터(40)로부터 인터럽트신호가 발생되고 이 인터럽트신호가 제어부(50)로 입력된다.In addition, the X clock serving as a reference for the sampling period Tc generated from the X clock generating means, not shown, is counted by the sampling counter 40, and the interrupt signal is received from the sampling counter 40 every predetermined sampling period Tc. Is generated and this interrupt signal is input to the controller 50.

여기서, 제어부(50)는 샘플링카운터(40)로부터 인터럽트신호가 입력되면 엔코더(10)로부터 엔코더펄스가 입력될 때(ΔT)까지 기다렸다가 엔코더펄스가 입력되면 하기의 수학식 1 내지 4에 따라 모터의 속도(Nf)를 구한다.Here, when the interrupt signal is input from the sampling counter 40, the controller 50 waits until the encoder pulse is input from the encoder 10 (ΔT), and when the encoder pulse is input, the motor according to Equations 1 to 4 below. Find the speed Nf.

여기서, "Χ"는 각변위로서 하기의 수학식 2에 의해 구해진다.Here, "?" Is obtained by the following equation (2) as the angular displacement.

여기서, "P"는 모터의 자극수(磁極數)이다.Here, "P" is the number of magnetic poles of the motor.

여기서, "fc"는 T클럭의 주파수[Hz]이다.Here, "fc" is the frequency of the T clock [Hz].

그리고, 제어부(50)는 상기의 수학식 1 내지 4를 통해 구해진 모터의 속도(Nf)를 목표속도와 비교하여 모터를 목표속도로 제어하기 위한 구동제어신호를 도시생략된 모터구동부로 인가하며, 이 모터구동부는 상기 제어부(50)로부터의 구동제어신호에 의해 모터로 인가되는 전류 또는 전압을 조절하여 모터의 속도를 제어한다.In addition, the controller 50 compares the speed Nf of the motor obtained through Equations 1 to 4 with the target speed, and applies a driving control signal for controlling the motor to the target speed to the motor driving unit, not shown. The motor driving unit controls the speed of the motor by adjusting the current or voltage applied to the motor by the drive control signal from the controller 50.

그러나, 상기한 바와 같은 종래의 모터 속도검출장치는, 샘플링주기동안의 최초 엔코더펄스가 입력된 시점으로부터 샘플링주기가 지난 후 새로운 엔코더펄스가 입력될 때까지(Td)의 엔코더펄스 카운트값(m1) 및 T클럭 카운트값(m2)에 따라 모터의 속도를 산출하도록 되어 있기 때문에, 샘플링주기(Tc)가 지난 후 엔코더펄스가 입력될 때까지의 지연시간(ΔT)에 의해 모터의 속도를 연속적으로 검출하지 못함에 따라 모터의 속도를 신속하고 정밀하게 제어할 수 없는 문제점이 있었다.However, in the conventional motor speed detector as described above, the encoder pulse count value m1 from the time when the first encoder pulse is input during the sampling period until the new encoder pulse is input after the sampling period has passed (Td). And since the speed of the motor is calculated according to the T clock count value m2, the speed of the motor is continuously detected by the delay time ΔT until the encoder pulse is input after the sampling period Tc has passed. There is a problem that can not control the speed of the motor quickly and precisely.

예를 들어, 모터의 속도가 저속일수록 샘플링주기(Tc)가 지난 후 엔코더펄스가 입력될 때까지의 지연시간(ΔT)이 급격히 길어져 모터의 속도검출시간이 늦어짐에 따라 모터의 속도를 신속하게 제어하지 못하게 되는데, 위치서보시스템에서와 같이 즉각적인 응답을 요구하는 경우에 상기와 같이 모터의 속도를 즉각적으로 제어하지 못하게 되면 위치제어를 신속하고 정밀하게 수행할 수 없는 문제점이 있었다.For example, the slower the speed of the motor, the faster the delay time ΔT until the encoder pulse is input after the sampling period Tc passes and the longer the speed detection time of the motor is, the faster the speed of the motor is controlled. In case of requiring an immediate response as in the position servo system, if the speed of the motor is not immediately controlled as described above, there is a problem that the position control cannot be performed quickly and precisely.

따라서, 본 발명은 상기한 바와 같은 종래기술의 문제점을 해결하기 위해 안출한 것으로서, 현 샘플링주기가 시작되기 이전의 카운트값과 현 샘플링주기 중의 카운트값을 연산하여 모터의 속도를 구함으로써, 지연시간 없이 모터의 속도를 연속적으로 검출할 수 있는 모터의 속도검출장치를 제공하는 데에 그 목적이 있다.Accordingly, the present invention has been made to solve the problems of the prior art as described above, by calculating the speed of the motor by calculating the count value before the current sampling period starts and the count value during the current sampling cycle, delay time It is an object of the present invention to provide a speed detecting apparatus for a motor capable of continuously detecting the speed of the motor without using the same.

상기 목적을 달성하기 위한 본 발명에 따른 모터의 속도검출장치는, 엔코더로부터 출력되는 엔코더펄스를 카운트하는 엔코더카운터와, 상기 엔코더펄스사이의 간격을 세기위한 타이머클럭을 카운트하는 타이머카운터와, 소정의 샘플링주기에 따라 인터럽트신호를 발생하는 샘플링카운터와, 상기 엔코더카운터에 의해 카운트된 엔코더펄스 카운트값을 저장하였다가 상기 샘플링카운터로부터 인터럽트신호가 입력되면 저장된 엔코더펄스 카운트값을 출력하는 엔코더카운터용 기억소자와, 상기 타이머카운터에 의해 카운트된 타이머클럭 카운트값을 저장하였다가 상기 샘플링카운터로부터 인터럽트신호가 입력되면 저장된 타이머클럭 카운트값을 출력하는 타이머카운터용 기억소자 및, 상기 샘플링카운터로부터 인터럽트신호가 입력되면 현 샘플링주기동안 상기 엔코더카운터용 기억소자와 상기 타이머카운터용 기억소자로부터 출력된 각각의 카운트값과 그 이전 샘플링주기동안의 타이머클럭 카운트값을 연산하여 모터의 속도를 구하는 제어부로 구성된 것을 특징으로 한다.Motor speed detecting apparatus according to the present invention for achieving the above object, an encoder counter for counting the encoder pulse output from the encoder, a timer counter for counting the timer clock for counting the interval between the encoder pulse, and a predetermined A memory for an encoder counter that stores the sampling counter that generates an interrupt signal according to the sampling period and the encoder pulse count value counted by the encoder counter, and outputs the stored encoder pulse count value when an interrupt signal is input from the sampling counter. And a timer counter memory device for storing the timer clock count value counted by the timer counter and outputting the stored timer clock count value when the interrupt signal is input from the sampling counter. When the interrupt signal is input from the sampling counter. String sampling And a control unit for calculating the speed of the motor by calculating each count value output from the encoder counter memory device and the timer counter memory device during the period and the timer clock count value for the previous sampling period.

도 1은 종래예에 따른 모터의 속도검출장치에 대한 개략적인 블록구성도,1 is a schematic block diagram of a speed detecting apparatus for a motor according to a conventional example;

도 2는 도 1에 도시된 주요구성부의 입출력관계를 설명하기 위한 도면,2 is a view for explaining the input-output relationship of the main components shown in FIG.

도 3은 본 발명의 바람직한 실시예에 의한 모터의 속도검출장치에 대한 개략적인 블록구성도,Figure 3 is a schematic block diagram of a speed detection device of a motor according to an embodiment of the present invention,

도 4는 도 3에 도시된 주요구성부의 입출력관계를 설명하기 위한 도면.4 is a view for explaining the input-output relationship of the main components shown in FIG.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

110: 엔코더 120: 엔코더카운터110: encoder 120: encoder counter

130: 타이머카운터 140: 샘플링카운터130: timer counter 140: sampling counter

150: 엔코더카운터레지스터 160: 타이머카운터레지스터150: encoder counter register 160: timer counter register

170: 제어부170: control unit

이하, 본 발명의 바람직한 실시예를 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 3은 본 발명의 바람직한 실시예에 의한 모터의 속도검출장치에 대한 개략적인 블록구성도로서, 본 발명에 따른 모터의 속도검출장치는, 동도면을 참조하면 알 수 있듯이, 엔코더(110)와 M카운터(120)와 T카운터(130)와 샘플링카운터(140)와 엔코더카운터레지스터(Encoder Counter Register; 150, 이하, "M카운터레지스터"라 칭함)와 타이머카운터레지스터(Encoder Counter Register; 160, 이하, "T카운터레지스터"라 칭함) 및 제어부(170)로 구성된다.3 is a schematic block diagram of a speed detecting device for a motor according to a preferred embodiment of the present invention. The speed detecting device for a motor according to the present invention, as can be seen with reference to the same drawing, the encoder 110 and M Counter 120, T Counter 130, Sampling Counter 140, Encoder Counter Register (150, hereinafter referred to as “M Counter Register”) and Timer Counter Register (Encoder Counter Register; 160, below , "T counter register" and a control unit 170.

도 3에 있어서, 상기 엔코더(110)는 모터 회전축의 회전속도에 상응하는 엔코더펄스를 출력하며, M카운터(120)는 상기 엔코더(110)로부터 출력된 엔코더펄스의 갯수를 카운트하여 그 카운트된 엔코더펄스 카운트값(m1)을 출력한다.In FIG. 3, the encoder 110 outputs encoder pulses corresponding to the rotational speed of the motor shaft, and the M counter 120 counts the number of encoder pulses output from the encoder 110 and counts the encoder pulses. The pulse count value m1 is output.

그리고, T카운터(130)는 상기 엔코더펄스 사이의 간격을 세기 위해 도시생략된 T클럭발생부에서 발생된 T클럭의 갯수를 카운트하여 그 카운트된 T클럭의 카운트값(m2)을 출력하는데, 엔코더(110)로부터 엔코더펄스가 입력될 때마다 누적된 T클럭의 카운트값(m2)을 리셋하여 카운트한다.In addition, the T counter 130 counts the number of T clocks generated by the T clock generator, not shown, to count the interval between the encoder pulses, and outputs the count value m2 of the counted T clocks. Each time the encoder pulse is input from 110, the count value m2 of the accumulated T clocks is reset and counted.

또한, 샘플링카운터(140)는 소정의 샘플링주기마다 인터럽트신호를 발생하여 M카운터레지스터(150)와 T카운터레지스터(160) 및 제어부(170)로 입력한다.In addition, the sampling counter 140 generates an interrupt signal every predetermined sampling period and inputs the M counter register 150, the T counter register 160, and the controller 170.

그리고, M카운터레지스터(150)는 M카운터(120)로부터 출력된 엔코더펄스 카운트값(m1)을 저장하고 있다가 샘플링카운터(140)로부터 인터럽트신호가 입력되면 저장된 엔코더펄스 카운트값(m1)을 제어부(170)로 입력한다.The M counter register 150 stores the encoder pulse count value m1 output from the M counter 120 and controls the stored encoder pulse count value m1 when an interrupt signal is input from the sampling counter 140. Enter (170).

또한, T카운터레지스터(160)는 T카운터(130)로부터 출력된 T클럭의 카운트값(m2)을 저장하였다가 샘플링카운터(140)로부터 인터럽트신호가 입력되면 저장된 T클럭의 카운트값(m2)을 제어부(170)로 입력한다.In addition, the T counter register 160 stores the count value m2 of the T clock output from the T counter 130, and when the interrupt signal is input from the sampling counter 140, the T counter register 160 stores the count value m2 of the stored T clock. Input to the controller 170.

그리고, 제어부(170)는 샘플링카운터(140)로부터 인터럽트신호가 입력되면 M카운터레지스터(150)와 T카운터레지스터(160)로부터 입력되는 엔코더펄스 카운트값(m1)과 T클럭 카운트값(m2) 및 이전 주기의 샘플링주기 중 최종 엔코더신호가 입력된 이후의 T클럭 카운트값(T1m2)을 연산하여 모터의 속도를 구하며, 이와 같이 구해진 모터의 속도와 목표속도를 비교하여 모터를 목표속도로 제어하기 위한 구동제어신호를 도시생략된 모터구동부로 인가한다.When the interrupt signal is input from the sampling counter 140, the control unit 170 receives an encoder pulse count value m1, a T clock count value m2, and an M counter register 150 and a T counter register 160. The motor speed is calculated by calculating the T clock count value (T1m2) after the last encoder signal is input among the sampling cycles of the previous cycle, and comparing the obtained motor speed with the target speed to control the motor at the target speed. The driving control signal is applied to the motor driving section not shown.

도 4는 도 3에 도시된 주요구성부의 입출력관계를 설명하기 위한 도면으로서, 엔코더(110)로부터 출력된 엔코더펄스와 T카운터(130)에 의해 카운트되는 T클럭 카운트값(m2) 및 T클럭을 도시한 것이다.FIG. 4 is a view for explaining the input / output relation of the main components shown in FIG. 3, and the T clock count value m2 and the T clock counted by the encoder pulse and the T counter 130 output from the encoder 110 are shown. It is shown.

상기한 바와 같이 구성된 본 발명의 동작예를 도 3 및 도 4를 참조하여 상세히 설명하기로 한다.An operation example of the present invention configured as described above will be described in detail with reference to FIGS. 3 and 4.

먼저, 도시생략된 모터구동부에 의해 모터가 구동되면 이 모터 회전축의 속도에 상응하는 엔코더펄스가 엔코더(110)로부터 출력된다.First, when the motor is driven by the motor driving unit (not shown), an encoder pulse corresponding to the speed of the motor rotation shaft is output from the encoder 110.

상기 엔코더(110)로부터 출력되는 엔코더펄스의 갯수가 M카운터(120)에 의해 카운트되어 이 엔코더펄스의 카운트값(m1)이 M카운터레지스터(150)에 저장된다.The number of encoder pulses output from the encoder 110 is counted by the M counter 120 and the count value m1 of the encoder pulse is stored in the M counter register 150.

이와 동시에, 도시생략된 T클럭발생수단으로부터 발생된 T클럭의 갯수가 T카운터(130)에 의해 카운트되어, 이 T클럭의 카운트값(m2)이 T카운터레지스터(160)에 저장된다.At the same time, the number of T clocks generated from the T clock generating means not shown is counted by the T counter 130, and the count value m2 of this T clock is stored in the T counter register 160.

이때, T카운터(130)에 의해 카운트되는 T클럭의 카운트값(m2)은 도 4를 참조하면 알 수 있듯이, 엔코더(110))로부터 엔코더펄스가 입력될 때마다 그 누적된 값이 리셋되어 카운트된다.At this time, the count value (m2) of the T clock counted by the T counter 130 as shown in Figure 4, each time the encoder pulse is input from the encoder 110, the accumulated value is reset to count do.

이와 더불어, 샘플링카운터(140)에서는 제어부(170)로부터 입력되는 시작신호에 따라 도시생략된 X클럭발생수단으로부터 입력되는 X클럭에 의해 소정의 샘플링주기마다 인터럽트신호가 발생되어 M카운터레지스터(150)와 T카운터레지스터(160) 및 제어부(170)로 입력된다.In addition, the sampling counter 140 generates an interrupt signal every predetermined sampling period by the X clock input from the X clock generating means, which is not shown according to the start signal input from the control unit 170, so that the M counter register 150 is generated. And the T counter register 160 and the control unit 170.

여기서, 상기 X클럭은 샘플링주기의 기준주파수이다.Here, the X clock is a reference frequency of the sampling period.

상기 샘플링카운터(140)로부터의 인터럽트신호에 의해 현 샘플링주기(Tc)동안 저장된 엔코더펄스의 카운트값(m1)이 M카운터레지스터(150)로부터 제어부(50)로 입력됨과 더불어 M카운터레지스터(150)에 저장된 카운트값이 리셋되고 바로 다음 샘플링주기의 엔코더펄스의 카운트값(m1)이 저장된다.The count value m1 of the encoder pulse stored during the current sampling period Tc is inputted from the M counter register 150 to the controller 50 by the interrupt signal from the sampling counter 140 and the M counter register 150. The count value stored in is reset and the count value m1 of the encoder pulse of the next sampling period is stored.

이와 동시에, 상기 샘플링카운터(140)로부터의 인터럽트신호에 의해 현 샘플링주기(Tc)동안 저장된 T클럭 카운트값(Tcm2)이 T카운터레지스터(160)로부터 제어부(170)로 입력된다.At the same time, the T clock count value Tcm2 stored during the current sampling period Tc by the interrupt signal from the sampling counter 140 is input from the T counter register 160 to the controller 170.

여기서, 제어부(170)는 상기 샘플링카운터(140)로부터의 인터럽트신호에 의해 현 샘플링주기(Tc)동안 상기 M카운터레지스터(150) 및 T카운터레지스터(160)로부터 입력되는 엔코더펄스의 카운트값(m1) 및 T클럭 카운트값(Tcm2)과 이전 샘플링주기동안에 T카운터레지스터(160)로부터 입력되었던 T클럭 카운트값을 하기의 수학식 5에 대입하여 모터의 각속도(ω)를 구한다.Here, the control unit 170 is the count value (m1) of the encoder pulse input from the M counter register 150 and the T counter register 160 during the current sampling period (Tc) by the interrupt signal from the sampling counter 140. ) And the T clock count value Tcm2 and the T clock count value input from the T counter register 160 during the previous sampling period are substituted into Equation 5 below to obtain the angular speed? Of the motor.

여기서, "T1m2"는 이전 샘플링주기 중 최종 엔코더펄스가 입력된 후(T1)의 T클럭 카운트값, "Tcm2"는 현 샘플링주기(Tc)동안의 T클럭 카운트값, "n"은 한번의 샘플링주기 중 엔코더펄스의 입력이 없는 경우 엔코더펄스가 입력될 때까지의 반복된 샘플링 횟수, "T2m2"는 현 샘플링주기 중 최종 엔코더펄스가 입력된 후(T2)의 T클럭 카운트값, m1은 현 샘플링주기(Tc)동안의 엔코더펄스 카운트값이다.Here, "T1m2" is the T clock count value after the last encoder pulse is input (T1) of the previous sampling period, "Tcm2" is the T clock count value during the current sampling period (Tc), and "n" is one sampling. If no encoder pulse is input during the cycle, the number of repeated samplings until the encoder pulse is input, "T2m2" is the T clock count value after the last encoder pulse is input (T2), and m1 is the current sampling cycle. Encoder pulse count value during the period Tc.

그리고, 제어부(170)는 상기한 바와 같은 수학식 5에 의해 구해진 모터의 각 속도(ω)를 목표속도와 비교하여 모터를 목표속도로 제어하기 위한 구동제어신호를 도시생략된 모터구동부로 인가하고, 이 모터구동부는 상기 제어부(170)로부터의 구동제어신호에 의해 모터로 인가되는 전류 또는 전압을 조절하여 모터의 속도를 제어한다.Then, the controller 170 compares each speed ω of the motor obtained by Equation 5 with the target speed, and applies a driving control signal for controlling the motor to the target speed to the motor driving unit, not shown. The motor driving unit controls the speed of the motor by adjusting the current or voltage applied to the motor by the drive control signal from the controller 170.

즉, 종래기술에서는 샘플링주기 중 첫 번째 엔코더펄스가 입력된 후부터 샘플링주기가 지난 후 최종 엔코더펄스가 입력될 때까지의 엔코더펄스 및 T클럭의 카운트값을 연산하여 모터의 속도를 구하기 때문에 샘플링주기가 지난 후 엔코더펄스가 입력될 때까지 지연시간이 발생되어 속도제어가 신속하고 정밀하게 수행되지 않는 문제가 있었지만, 본 발명은 샘플링주기마다 기억소자에 저장되어 있는 엔코더펄스 및 T클럭의 카운트값과 그 이전 샘플링주기에 저장되어 있던 값을 이용해 지연시간없이 매 샘플링주기마다 즉각적이고 연속적으로 모터의 속도를 연산해냄으로써, 모터의 속도를 신속하고 정밀하게 제어할 수 있도록 한 것이다.That is, in the prior art, since the motor speed is obtained by calculating the count value of the encoder pulse and the T clock after the first encoder pulse is input from the sampling cycle until the last encoder pulse is input, the sampling cycle is obtained. There was a problem that the speed control is not performed quickly and precisely because the delay time is generated until the encoder pulse is input afterwards. By using the value stored in the previous sampling cycle, the speed of the motor can be calculated immediately and continuously in every sampling cycle without delay, allowing the speed of the motor to be controlled quickly and precisely.

상술한 바와 같이 본 발명에 따르면, 샘플링주기마다 카운트값을 기억소자에 저장했다가 이 기억소자에 저장된 카운트값과 이전 샘플링주기의 카운트값을 이용해 모터의 속도를 즉각적이고 연속적으로 연산함으로써, 모터의 속도가 지연시간 없이 즉각적이고 연속적으로 검출되어 신속하고 정밀한 모터의 속도제어를 수행할 수 있도록 한 효과가 있다.As described above, according to the present invention, the count value is stored in the memory device at each sampling period, and the speed of the motor is calculated immediately and continuously by using the count value stored in the memory device and the count value of the previous sampling period. The speed is detected immediately and continuously without delay, so that the speed control of the motor can be performed quickly and precisely.

Claims (3)

엔코더로부터 출력되는 엔코더펄스에 의해 모터의 속도를 구하는 모터의 속도검출장치에 있어서,In the speed detection device of the motor that obtains the speed of the motor by the encoder pulse output from the encoder, 상기 엔코더펄스를 카운트하는 엔코더카운터와,An encoder counter for counting the encoder pulses; 상기 엔코더펄스사이의 간격을 세기위한 타이머클럭을 카운트하는 타이머카운터와,A timer counter for counting a timer clock for counting the interval between the encoder pulses; 소정의 샘플링주기에 따라 인터럽트신호를 발생하는 샘플링카운터와,A sampling counter for generating an interrupt signal according to a predetermined sampling period; 상기 엔코더카운터에 의해 카운트된 엔코더펄스 카운트값을 저장하였다가 상기 샘플링카운터로부터 인터럽트신호가 입력되면 저장된 엔코더펄스 카운트값을 출력하는 엔코더카운터용 기억소자와,An encoder counter memory device that stores the encoder pulse count value counted by the encoder counter and outputs the stored encoder pulse count value when an interrupt signal is input from the sampling counter; 상기 타이머카운터에 의해 카운트된 타이머클럭 카운트값을 저장하였다가 상기 샘플링카운터로부터 인터럽트신호가 입력되면 저장된 타이머클럭 카운트값을 출력하는 타이머카운터용 기억소자 및,A timer counter memory device for storing the timer clock count value counted by the timer counter and outputting the stored timer clock count value when an interrupt signal is input from the sampling counter; 상기 샘플링카운터로부터 인터럽트신호가 입력되면 현 샘플링주기동안 상기 엔코더카운터용 기억소자와 상기 타이머카운터용 기억소자로부터 출력된 각각의 카운트값과 그 이전 샘플링주기동안의 타이머클럭 카운트값을 연산하여 모터의 속도를 구하는 제어부로 구성된 것을 특징으로 하는 모터의 속도검출장치.When the interrupt signal is input from the sampling counter, each count value output from the encoder counter memory device and the timer counter memory device during the current sampling period and the timer clock count value for the previous sampling period are calculated to calculate the speed of the motor. Speed detection device for a motor, characterized in that consisting of a control unit for obtaining the. 제 1 항에 있어서, 상기 제어부는,The method of claim 1, wherein the control unit, 현 샘플링주기동안의 타이머클럭 카운트값으로부터 현 샘플링주기 중 최종 엔코더펄스가 입력된 이후의 타이머클럭 카운트값을 감산한 값에 바로 이전 샘플링주기 중 최종 엔코더펄스가 입력된 이후의 타이머클럭 카운트값을 가산하여 구한 값으로 현 샘플링주기동안의 엔코더펄스 카운트값을 나누어 모터의 속도를 구하는 것을 특징으로 하는 모터 속도검출장치.The timer clock count value after the last encoder pulse input in the previous sampling cycle is added to the value obtained by subtracting the timer clock count value after the last encoder pulse input in the current sampling cycle from the timer clock count value during the current sampling cycle. The motor speed detection device, characterized in that the speed of the motor is obtained by dividing the encoder pulse count value during the current sampling period. 제 2 항에 있어서, 한번의 샘플링주기동안 엔코더펄스의 입력이 없는 경우 엔코더펄스의 입력이 있을 때까지 반복되는 샘플링횟수를 상기 현 샘플링주기동안의 타이머클럭 카운트값에 곱하는 것을 특징으로 하는 모터 속도검출장치.3. The motor speed detection according to claim 2, wherein when there is no input of the encoder pulse during one sampling period, the number of times of sampling repeated until the input of the encoder pulse is multiplied by the timer clock count value during the current sampling period. Device.
KR1019980028480A 1998-07-14 1998-07-14 Motor speed detector KR20000008601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980028480A KR20000008601A (en) 1998-07-14 1998-07-14 Motor speed detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980028480A KR20000008601A (en) 1998-07-14 1998-07-14 Motor speed detector

Publications (1)

Publication Number Publication Date
KR20000008601A true KR20000008601A (en) 2000-02-07

Family

ID=19544207

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980028480A KR20000008601A (en) 1998-07-14 1998-07-14 Motor speed detector

Country Status (1)

Country Link
KR (1) KR20000008601A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101325915B1 (en) * 2012-07-06 2013-11-07 현대엘리베이터주식회사 Method for measuring speed of inverter using by timer
KR20170016545A (en) * 2015-08-03 2017-02-14 엘에스산전 주식회사 Method of controlling encoder principle axis speed synchronization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR890013482A (en) * 1988-02-12 1989-09-23 백중영 Motor rotation speed detection circuit using variable sampling cycle and method
JPH05188067A (en) * 1992-01-14 1993-07-27 Kobe Steel Ltd Servo motor speed detecting device
JPH05188068A (en) * 1992-01-14 1993-07-27 Kobe Steel Ltd Servo motor speed detecting device
JPH10142248A (en) * 1996-11-07 1998-05-29 Honda Motor Co Ltd Rotating speed measuring device
KR19980054686A (en) * 1996-12-27 1998-09-25 추호석 Speed detection method and apparatus in motor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR890013482A (en) * 1988-02-12 1989-09-23 백중영 Motor rotation speed detection circuit using variable sampling cycle and method
JPH05188067A (en) * 1992-01-14 1993-07-27 Kobe Steel Ltd Servo motor speed detecting device
JPH05188068A (en) * 1992-01-14 1993-07-27 Kobe Steel Ltd Servo motor speed detecting device
JPH10142248A (en) * 1996-11-07 1998-05-29 Honda Motor Co Ltd Rotating speed measuring device
KR19980054686A (en) * 1996-12-27 1998-09-25 추호석 Speed detection method and apparatus in motor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101325915B1 (en) * 2012-07-06 2013-11-07 현대엘리베이터주식회사 Method for measuring speed of inverter using by timer
KR20170016545A (en) * 2015-08-03 2017-02-14 엘에스산전 주식회사 Method of controlling encoder principle axis speed synchronization
US10509385B2 (en) 2015-08-03 2019-12-17 Lsis Co., Ltd. Method of controlling encoder principle axis speed synchronization

Similar Documents

Publication Publication Date Title
KR910021001A (en) Electric motor controller
KR960036273A (en) Angle controller for switched magnetoresistive drives with high frequency clock
US5233292A (en) Speed detector device for elevator
KR20000008601A (en) Motor speed detector
JPH027276B2 (en)
EP0078854A1 (en) Speed detecting device
US5442267A (en) Device for controlling the reverse rotation of a motor and method of judging time point where the motor is actually rotated in a reverse direction
JP3309884B2 (en) Phase correction method for motor drive circuit
JPH09294219A (en) Measurement device for horizontal synchronizing signal frequency
KR19980033797A (en) Speed detection device using encoder in motor and its method
KR20000009469A (en) Timer circuit
JP2719817B2 (en) Digital tachometer
JPH06174769A (en) Device detecting pulse duty ratio of signal
JP2767883B2 (en) Electric discharge machine
JPS6319831B2 (en)
SU1651352A1 (en) Pulse signals repetition period division method
EP0574931A1 (en) Device for controlling reverse rotation of motor and method of judging time point where motor is actually rotated in reverse direction
KR19980054686A (en) Speed detection method and apparatus in motor
KR0170689B1 (en) Motor speed control apparatus
SU1585765A1 (en) Method of digital measuring of engine rotational speed
JPH0839298A (en) Slide stop time measuring instrument of press machine
SU684447A1 (en) Shaft rotational speed measuring device
JPH0341772B2 (en)
JPH0834707B2 (en) Induction motor speed controller
SU790264A2 (en) Two-threshold frequency comparator

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application