KR0184892B1 - Encoder pulse 1/n dividing circuit - Google Patents

Encoder pulse 1/n dividing circuit Download PDF

Info

Publication number
KR0184892B1
KR0184892B1 KR1019920011270A KR920011270A KR0184892B1 KR 0184892 B1 KR0184892 B1 KR 0184892B1 KR 1019920011270 A KR1019920011270 A KR 1019920011270A KR 920011270 A KR920011270 A KR 920011270A KR 0184892 B1 KR0184892 B1 KR 0184892B1
Authority
KR
South Korea
Prior art keywords
pulse
encoder
pulses
counter
value
Prior art date
Application number
KR1019920011270A
Other languages
Korean (ko)
Other versions
KR940001569A (en
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 KR1019920011270A priority Critical patent/KR0184892B1/en
Publication of KR940001569A publication Critical patent/KR940001569A/en
Application granted granted Critical
Publication of KR0184892B1 publication Critical patent/KR0184892B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/18Circuits for visual indication of the result
    • H03K21/20Circuits for visual indication of the result using glow discharge lamps

Landscapes

  • Control Of Electric Motors In General (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

본 발명은 엔코더 펄스의 1/W분주회로에 관한것이다.The present invention relates to a 1 / W division circuit of encoder pulses.

일반적으로, 서보드라이버와 연결된 서보모터의 앤코더의 펄스의 갯수는 각 모터에 따라 고정이 되어있고, 이 펄스의 값과 서보모터를 제어하는 제어기에서 요구하는 펄스의 값이 다를때 그로인한 여러 문제점이 불가피한바, 본 발명에 의하면 엔코더 펄스를 1/N로 분주하는 회로를 이용하여 앤코더가 부착된 모터를 제어할때 사용지가 원하는 펄스의 수가 나오도록 하는 1/N 본주회로를 만들어 원활안 제어가 가능토록 한 발명인 것이다.In general, the number of pulses of encoder of servo motor connected to servo driver is fixed according to each motor, and there are various problems caused when the value of this pulse is different from the pulse value required by the controller that controls the servomotor. Inevitably, according to the present invention, a circuit for dividing encoder pulses into 1 / N is used to control a motor with an encoder, thereby creating a 1 / N main circuit that allows the desired number of pulses to be used. Is the invention possible.

Description

앤코더 펄스의 1/N분주회로Encoder pulse 1 / N division circuit

제1도는 본 발명의 전체적인 회로구성도1 is an overall circuit diagram of the present invention

제2도는 본 발명의 파형도2 is a waveform diagram of the present invention

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

10 : 엔코더카운터 20 : 업/다운카운터부10: encoder counter 20: up / down counter

30 : 비교기 50 : 조작스위치30: comparator 50: operation switch

60 : 플립 -플롭 70 70' : 버퍼60: flip-flop 70 70 ': buffer

본 발명은 엔코더 펄스의 1/N분주회로에 관한것으로, 특히 엔코더가 부착된 모터를 제어할때 자신이 원하는 펄스의 수가 나오도록하는 1/N 분주회로를 만들어 원활힌 제어가 가능하도록된 앤코더 펄스의 1/N분주회로에 관한것이다.The present invention relates to the 1 / N division circuit of the encoder pulse, in particular, to control the encoder attached to the encoder to enable smooth control by making the 1 / N division circuit so that the desired number of pulses come out It is about a 1 / N division circuit of pulses.

이 경우, 서보드라이버와 연결된 서보모터의 앤코더 펄스는 각 모터에 따라 고정이 되어있다.In this case, the encoder pulse of the servomotor connected to the servo driver is fixed according to each motor.

이 펄스의 값(카운트/회전 : 1회전당 나오는 엔코터 펄스의 갯수)과 이 서보모터를 제어하는 콘트롤러에서 요구하는 펄스의 값이 다를때에는 그에 따른 제어가 불가능 하였다.When the value of this pulse (count / revolution: number of encoder pulses per revolution) and the value of the pulse required by the controller that controls this servomotor were different, the corresponding control was impossible.

따라서 본 발명에서는 사용자의 선택에 따라 앤코더 펄스를 1/n로 분주할 수 있게된 엔코더 펄스의 1/n분주회로를 제공함에 그 목적이 있는 것이다.Accordingly, an object of the present invention is to provide an encoder pulse 1 / n division circuit capable of dividing an encoder pulse at 1 / n according to a user's selection.

이하, 첨부된 도면을 참조하여 본 발명의 목적을 달성하기위한 기술적 구성 및 작용효과를 상세히 설명하면 다음과 같다.Hereinafter, with reference to the accompanying drawings will be described in detail the technical configuration and effect for achieving the object of the present invention.

엔코터펄스를 받아 업/다운 펄스를 내는 엔코더 카운터(10)와, 업/다운 펄스를 받아들이는 업/다운 카운터부(20)와, 사용자의 선택에 따른 펄스를 1/N로 분주하는 조작스위치(50), 조작스위치(50)를 통한 N값을 업/다운 카운터부(20) 펄스와 비교하는 비교기(30)와, 비교기를 통해 출력되는 펄스를 받아들여 변환된 펄스를 출력하는 업 /다운 카운터(40)와, 펄스값을 읽어들이는 버퍼(70)(70')와, 플립/-플롭(60)으로 구성된 것이다.Encoder counter 10 for receiving an encoder pulse and generating an up / down pulse, an up / down counter unit 20 for receiving an up / down pulse, and an operation switch for dividing a pulse according to a user's selection to 1 / N (50), the comparator 30 for comparing the N value through the operation switch 50 with the up / down counter 20 pulse, and the up / down for receiving the pulse output through the comparator and outputting the converted pulse. A counter 40, a buffer 70 and 70 'for reading the pulse value, and a flip / flop 60 are included.

이상과 같이 구성된 본 발명의 작용 및 효과를 상세히 설명하면 다음과 같다.Referring to the operation and effect of the present invention configured as described above in detail.

도면 도 1에서 보는 바와같이 본 발명은 앤코더 신호 A,B상(相)을 받아들여, 4체배 펄스 열과 업/다운 신호를 만들어 펄스의 갯수가, n과 같을때마다 다시 펄스를 발생시켜 원하는 1/n카운터를 만드는 것이다.As shown in FIG. 1, the present invention accepts encoder signals A and B phases, generates a quadrupled pulse train and an up / down signal, and generates pulses whenever the number of pulses is equal to n. To make a 1 / n counter.

즉, 엔코더 카운터(10)로 클록과 엔코더 펄스 A,B가 들어가면 4체배 펄스와 업/다운 펄스가 나오게된다.In other words, when the clock and encoder pulses A and B enter the encoder counter 10, a multiplication pulse and an up / down pulse are output.

이 엔코더 카운터(10)에서 4체배 펄스와 업/다운 펄스는 HCTL 2020의 엔코더 카운터(10) 대신에 TTL 로도 구성할 수 있으나, 회로의 규모가 커지게되므로 2020칩을 사용하였다.In the encoder counter 10, the multiplying pulse and the up / down pulse may be configured as TTL instead of the HCTL 2020 encoder counter 10. However, since the scale of the circuit is increased, 2020 chips are used.

또한, 도 2에서 보는 바와같이 도면 도 1의 A,B,C....P까지의 지점에서 도면 도 2의 A,B,C....P 까지의 과정이 일어나므로, 이를 연결하여보면 A,B로 엔코터 펄스가 들어가게 되고, C,D에 4체배 펄스와 업/다운 펄스가 나오게된다.In addition, as shown in FIG. 2, the process from A, B, C .... P of FIG. 1 to A, B, C .... P of FIG. As you can see, the encoder pulse enters A and B, and the multiplication pulse and the up / down pulse appear in C and D.

이를 74193 업/다운 카운터부(20)에 넣기 위하여 업/다운 펄스(D)를 이용하여 E와 F의 업/다운 펄스를 만들어낸다.In order to put this into the 74193 up / down counter unit 20, up / down pulses of E and F are generated using the up / down pulse D.

이때, 원래 4재배 펄스는와 같은 형태인데, 업,다운 펄스(E,F)는와 같은 펄스로 바뀌었다.At this time, the original four cultivation pulses It is the same form as the up and down pulses (E, F) Changed to a pulse such as

이와같은 펄스(E.F)가 74193카운터에 들어가면 카운터의 값(U35 3,2,6,7 과 U36 3,2,6,7)이 변하게된다.When this pulse (E.F) enters the 74193 counter, the counter values (U35 3,2,6,7 and U36 3,2,6,7) change.

사용자가 조작스위지(50)를 이용하여 원하는 1/N의 N값을 74688비교기(30)가 카운터값을 비교하여, 같아질때 P =Q (U37,19번출력) 펄스를 로우(low)로 만들게된다.When the user uses the operation switch 50, the 74688 comparator 30 compares the counter value with the desired N / N value of 1 / N so that the P = Q (outputs U37 and 19) pulses become low when they are equal. do.

이 펄스는 U43 74193 업/다운 카운터부(20)로 들어가서 원하는 1/N 펄스가 나오게되는것이다.This pulse enters the U43 74193 up / down counter section 20 to produce the desired 1 / N pulse.

그러나 지금까지의 설명은 카운터가 업(UP)할때의 설명이고 다운(DOWN)할때는 다음과 같은 과정을 거치게된다.However, the explanation so far is when the counter is UP, and when it is DOWN, the following process is performed.

조작스위치(50)의 세팅값은 U40의 74245의 버퍼(70')를 이용하여 마이컴에서 이 데이타를 읽어들여 이 숫자의 2'S보수(Complement)값을 U39 74373의 버퍼(70)로 내보내면 U38의 74688비교기의 값이 셋팅되게된다.The setting value of the control switch 50 reads this data from the microcomputer using the buffer 70 'of 74245 of U40, and exports the 2'S complement value of this number to the buffer 70 of U39 74373. 74688 The comparator's value is set.

U35,36의 74193 업/다운 카운터부(20)에 다운펄스가 들어와 카운터 값이 적어지다가 U39의 버퍼(70) 셋팅값과 같아지면 P = Q(U38의 19번출력)펄스가 나와서 U43업/다운 카운터(40)의 다운 카운트를 시키게된다.When the down pulse enters the 74193 up / down counter unit 20 of U35,36 and the counter value decreases and is equal to the setting value of the buffer 70 of U39, P = Q (output of U38 19) pulse appears and U43 up / down. The down counter 40 is to be counted down.

또한 비교기(30)의 출력포트에 P=Q펄스가 들때마다 U35,36 업/다운 카운터부(20)를 리셋시켜 다시 이러한 과정을 반복하게된다.In addition, each time P = Q pulse is applied to the output port of the comparator 30, the U35, 36 up / down counter unit 20 is reset, and this process is repeated again.

즉, 조작스위치(5)의 샛팅이 0000 0011로 셋팅되어 있다고 생각하면 버퍼(70)의 출력부분에는 1111 1100이 셋트되게된다.That is, when the setting of the operation switch 5 is set to 0000 0011, 1111 1100 is set at the output portion of the buffer 70.

도면 도 1의 A,B에 엔코더 펄스가 모터로 부터 들어오면, C,D에서 4체배 신호와 업/다운 신호가 나오고 E,F에서 두 신호가 분리되게된다.When encoder pulses are input from A and B of FIG. 1 from a motor, a quadrupling signal and an up / down signal are output from C and D, and two signals are separated from E and F. FIG.

이때, G신호는 비교기(30)의 동작(Enable)신호인데 4체배 신호(C)가 나와 업/다운 카운터부(20)에서 셋팅 될때까지 비교기(30)무능 (disab1e)시키고 , 셋팅된후 동작시키기 위한 지연신호이다.At this time, the G signal is an enable signal of the comparator 30, but the multiplier signal C comes out until the comparator 30 is set in the up / down counter unit 20, disabling (disab1e), and then operating. Delay signal.

이후 H 나 I 에서 비교기 신호가 뜨게되면 그 즉시 업/다운 카운터부(20)의 포트(LD)에 전달되어 카운터값이 다시 0으로 셋팅된다.Then, when the comparator signal appears in H or I, it is immediately transmitted to the port LD of the up / down counter unit 20 and the counter value is set back to zero.

또한 업/다운 카운터(40)로 전달되어 이 카운터 값으로 다시 인코더 펄스를 만들어 낸다.(M,N)It is also passed to the up / down counter 40 to generate an encoder pulse again with this counter value. (M, N)

그러나 카운터(U43의 3,2) 값이 동시에 변할때 NOR게이트(7486,U44)에 오동작신호가 발생하여 이를 플립 - 플롭(6)을 통하여 완전히 변환시킨후 파형을 만들어 낸다.(O, P)However, when the value of the counter U43 (3, 2) changes at the same time, a malfunction signal is generated at the NOR gates 7486 and U44, and it is completely converted through the flip-flop (6) to produce a waveform. (O, P)

이를 위하여 플립 - 플롭(6)을 지연시켜 플립 플롭의 클록을 발생시킨다.To this end, the flip-flop 6 is delayed to generate the clock of the flip flop.

결론적으로 이 회로는 n = 127 까지의 앤코더 펄스를 분주시킬수 있는 능력을 갖는것이다.In conclusion, this circuit has the ability to divide encoder pulses up to n = 127.

이상에서 본 바와같이 본 발명은 서보드라이버와 연결된 서보모터의 엔코더의 펄스 갯수는 각 모터에 따라 고정이 되어있고, 이 펄스의 값과, 서보모터를 제어하는 제어기에서 요구하는 펄스의 값이 다를때 이회로를 이용하여 사용자가 원하는 엔코더 펄스를 만들어 낼수 있게된 발명인 것이다.As described above, in the present invention, the number of pulses of the encoder of the servo motor connected to the servo driver is fixed according to each motor, and when the value of the pulse and the value of the pulse required by the controller controlling the servo motor are different. By using this circuit, the user can generate the desired encoder pulse.

Claims (1)

엔코더 펄스를 받아 4체배, 업/다운 펄스를 내는 인코더 카운터(10 )와 , 업/다운 펄스를 받아들이는 업/다운 카운터부(20)와, 업/다운 펄스와 분주된 N값의 펄스를 비교하는 비교기(30)와, 사용자의 선택에 따른 펄스를 1/n 로 분주하는 조작스위치(50), 분주된 펄스를 출력하는 업/다운 카운터(40)와 버퍼(70)(70'), 플립 -플롭(60)으로 조합되어 모터제어에 따른 펄스의 값을 1/N 로 분주할수 있도록됨을 특징으로 하는 앤코더펄스의 1/N분주회로.The encoder counter 10 that receives an encoder pulse and generates an up / down pulse 4 times, the up / down counter unit 20 that receives up / down pulses, and the up / down pulses and the pulses of the divided N values are compared. A comparator 30 to operate, an operation switch 50 for dividing a pulse according to a user's selection at 1 / n, an up / down counter 40 for outputting the divided pulse, a buffer 70, 70 'and a flip -1 / N frequency division circuit of the encoder pulse, characterized in that combined with the flop (60) to divide the pulse value according to the motor control to 1 / N.
KR1019920011270A 1992-06-26 1992-06-26 Encoder pulse 1/n dividing circuit KR0184892B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920011270A KR0184892B1 (en) 1992-06-26 1992-06-26 Encoder pulse 1/n dividing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920011270A KR0184892B1 (en) 1992-06-26 1992-06-26 Encoder pulse 1/n dividing circuit

Publications (2)

Publication Number Publication Date
KR940001569A KR940001569A (en) 1994-01-11
KR0184892B1 true KR0184892B1 (en) 1999-04-15

Family

ID=19335356

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920011270A KR0184892B1 (en) 1992-06-26 1992-06-26 Encoder pulse 1/n dividing circuit

Country Status (1)

Country Link
KR (1) KR0184892B1 (en)

Also Published As

Publication number Publication date
KR940001569A (en) 1994-01-11

Similar Documents

Publication Publication Date Title
JPS55123326A (en) Fuel injection system
KR0184892B1 (en) Encoder pulse 1/n dividing circuit
JPS5725025A (en) Program signal generator
SU1119175A1 (en) Frequency divider
SU783993A1 (en) Controllable frequency divider
SU993446A1 (en) Function generator
SU888335A1 (en) Digital filter
SU1334388A1 (en) Device for regenerating telegraph pulses
SU790199A1 (en) Pulse duration shaper
JPS5674746A (en) Data processing unit
SU828407A1 (en) Device for shaping difference frequency pulses
KR920007300Y1 (en) Printer head driving pulse generation circuit
SU632065A1 (en) Pulse-frequency functional generator
SU1001453A1 (en) Pulse duration forming device
SU515262A1 (en) Single pulse shaper
SU790305A1 (en) Switching-over device
SU645155A1 (en) Square-rooting arrangement
SU1698967A1 (en) Pulse shaper
SU944098A1 (en) Pulse-width modulator
SU615609A1 (en) Multiplying counter
SU750434A1 (en) Digital-analogue follow-up system
SU541146A1 (en) Device for setting speed in numerical control systems
SU1394416A1 (en) Pulse driver
SU834936A1 (en) Repetition rate scaller with variable countdown
SU1003355A2 (en) Rate scaler with variable countdown ratio

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20041129

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee