KR100435588B1 - encoder multiplier using express micom and the method for multiplying encoder - Google Patents

encoder multiplier using express micom and the method for multiplying encoder Download PDF

Info

Publication number
KR100435588B1
KR100435588B1 KR10-2000-0053596A KR20000053596A KR100435588B1 KR 100435588 B1 KR100435588 B1 KR 100435588B1 KR 20000053596 A KR20000053596 A KR 20000053596A KR 100435588 B1 KR100435588 B1 KR 100435588B1
Authority
KR
South Korea
Prior art keywords
phase
encoder
voltage
multiplier
output
Prior art date
Application number
KR10-2000-0053596A
Other languages
Korean (ko)
Other versions
KR20020020444A (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 KR10-2000-0053596A priority Critical patent/KR100435588B1/en
Publication of KR20020020444A publication Critical patent/KR20020020444A/en
Application granted granted Critical
Publication of KR100435588B1 publication Critical patent/KR100435588B1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • G05B19/21Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path using an incremental digital measuring device
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K23/00Pulse counters comprising counting chains; Frequency dividers comprising counting chains
    • H03K23/64Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
    • H03K23/66Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

본 발명은 입력 신호의 최대치, 최소치를 측정하여 엔코더 체배하기 때문에 조정하기 용이하고, 체배수(수십∼수백체배)에 비해 회로가 극히 간단하며, 사인(sin)파의 원만한 곡선에서의 수치오차 및 떨림을 방지하고 정확한 길이 카운팅이 가능토록 한 고속 마이컴을 이용한 엔코더 체배기에 관한 것으로서, 이러한 본 발명은, 슬립(Sleep) 여부를 확인하고, 그 결과 슬립 상태가 아니면 입력되는 사인파의 변화 여부를 체크하고, 체크 결과 입력되는 사인파에 변화가 발생한 경우에는 어느 상이 변화했는지를 체크하고, 체크 결과 B상 변화일 경우에는 A상을 체크하여 A상 최대치 및 최소치를 측정하며, 체크 결과 A상 변화일 경우에는 B상을 체크하여 B상 최대치 및 최소치를 측정하고, 레벨을 체크한 후 그 결과 일그러진 파형으로 레벨 체크가 어려울 경우에는 에러임을 알리고, 레벨 체크가 정상적으로 이루어진 경우에는 상기 측정한 각 상의 최대치 및 최소치를 저장하고, 파형의 중심치를 산출한다. 또한, +및 -를 산출하고, 진행 방향을 판단하고, 그 진행 방향이 역방향이면 이동 거리를 산출하고, 그 이동 거리에 따른 X체배수를 산출하며, 진행 방향이 순방향일 경우에는 이동 거리를 산출하고, 그 이동 거리에 따른 X체배수를 산출하는 단계를 수행하여, 정확하게 엔코더 출력파형을 체배하게 된다.The present invention is easy to adjust because the encoder multiplies the encoder by measuring the maximum value and the minimum value of the input signal, and the circuit is extremely simple compared to the multiplier (several to several hundreds), and the numerical error in the smooth curve of the sin wave The present invention relates to an encoder multiplier using a high speed microcomputer to prevent tremor and allow accurate counting. The present invention checks whether a slip is performed and, as a result, checks whether an input sine wave is changed. If the result is a change in the input sine wave, check which phase has changed.If the result is a change in phase B, check the phase A to measure the maximum and minimum values of phase A. Check the B phase to measure the maximum and minimum of the B phase and check the level. Indicates an error, and when the level check is normally performed, the measured maximum and minimum values of each phase are stored, and the center value of the waveform is calculated. Also, + And- Calculate the travel direction, and if the travel direction is the reverse direction, calculate the travel distance, calculate the X multiplier according to the travel distance; if the travel direction is the forward direction, calculate the travel distance, and the travel distance By calculating the X-multiplier according to the multiplication, the encoder output waveform is multiplied correctly.

Description

고속 마이컴을 이용한 엔코더 체배기 및 엔코더 체배 방법 {encoder multiplier using express micom and the method for multiplying encoder}Encoder multiplier using express micom and the method for multiplying encoder}

본 발명은 고속 마이컴을 이용한 엔코더 체배기에 관한 것으로,The present invention relates to an encoder multiplier using a high speed microcomputer,

특히 입력 신호의 최대치, 최소치를 측정하여 체배하기 때문에 조정하기 용이하고, 체배수에 비해 회로가 극히 용이하며, 사인(sin)파의 원만한 곡선에서의 수치오차 및 떨림을 방지하고 정확한 길이 카운팅이 가능토록 한 고속 마이컴을 이용한 엔코더 체배기에 관한 것이다.In particular, it is easy to adjust because it measures and multiplies the maximum and minimum values of the input signal, and the circuit is extremely easy compared to the multiplier, and it prevents numerical errors and vibrations on smooth curves of sin waves and enables accurate length counting. The present invention relates to an encoder multiplier using a high speed microcomputer.

일반적으로 목공기계, 재단 기계에서는 위치 제어 등을 위해서 엔코더 체배기를 사용한다. 이러한 엔코더 체배기는 소수점 정보까지 처리 가능해야하며, 저속 영역에서 발생되는 리플(riffle)의 영향을 감소시켜야만 위치를 정밀하게 측정할 수 있다.In general, encoder multipliers are used for position control in woodworking and cutting machines. These encoder multipliers must be able to process even decimal point information, and the position can be precisely measured only by reducing the influence of the ripple generated in the low speed region.

종래의 엔코더 체배기를 살펴 보면 다음과 같다.Looking at the conventional encoder multiplier as follows.

먼저 전류 루우프(LOOP)를 사용하는 경우, 엔코더로부터 발생되는 펄스를 전류 루우프시간에서 검출하여 제어 주기마다 평균을 취하여 체배하는 방식이 있다.First, in the case of using the current loop (LOOP), there is a method of detecting the pulse generated from the encoder in the current loop time to take an average for each control period and multiply.

또한 다른 엔코더 체배기로는 외부의 엔코더(해당 기기의 소정 위치에 장착될 수 있음)로부터의 출력되는 펄스 신호를 입력받아 정수배로 체배하는 엔코더 체배기가 있다. 그러나 이러한 종래의 엔코더 체배기는 조정이 복잡하고, 회로가 복잡하며, 사인(sin)파의 원만한 곡선에서의 수치오차 및 떨림이 발생하고, 정확한 카운팅이 불가능한 문제점이 발생하였다.Another encoder multiplier includes an encoder multiplier that receives a pulse signal output from an external encoder (which can be mounted at a predetermined position of the device) and multiplies by an integer multiple. However, these conventional encoder multipliers have complicated adjustments, complicated circuits, numerical errors and tremors in smooth curves of sin waves, and accurate counting is not possible.

이에 본 발명은 상기와 같은 종래 엔코더 체배회로의 제반 문제점을 해결하기 위해서 제안된 것으로서,Accordingly, the present invention has been proposed to solve all the problems of the conventional encoder multiplication circuit as described above,

본 발명의 목적은, 입력 신호의 최대치, 최소치를 측정하여 체배를 선택하기 때문에 조정하기 용이하고, 체배수에 비해 회로가 극히 간단하며, 사인(sin)파의 원만한 곡선에서의 수치오차 및 떨림을 방지하고 정확한 길이 카운팅이 가능토록 한 고속 마이컴을 이용한 엔코더 체배기를 제공하는 데 있다.The object of the present invention is to adjust the multiplication by measuring the maximum and minimum values of the input signal, making it easy to adjust, the circuit being extremely simple compared to the multiplication factor, and the numerical error and tremor in smooth curves of sin waves. It is to provide an encoder multiplier using a high speed microcomputer to prevent and to accurately count the length.

상기와 같은 목적을 달성하기 위한 본 발명에 의한 고속 마이컴을 이용한 체배기는,Multiplier using a high speed microcomputer according to the present invention for achieving the above object,

입력되는 사인파의 A상에 대한 과전압을 차단하는 제1 과전압 보호부와;A first overvoltage protection unit for blocking an overvoltage on an A phase of an input sine wave;

상기 입력되는 사인파의 B상에 대한 과전압을 차단하는 제2 과전압 보호부와;A second overvoltage protection unit for blocking an overvoltage on the B-phase of the input sine wave;

상기 제1 및 제2 과전압 보호부를 통한 전압을 적절히 조절하여 기준전압을 발생하는 기준전압 발생부와;A reference voltage generator for generating a reference voltage by appropriately adjusting voltages through the first and second overvoltage protection units;

상기 제1 과전압 보호부 및 제2 과전압 보호부에서 각각 출력되는 전압을 후단의 A/D변환기의 입력에 알맞게 각각 분배해주는 제1 및 제2 전압 분배부와;First and second voltage distribution units for respectively distributing the voltages output from the first and second overvoltage protection units to the inputs of the A / D converters of the subsequent stages;

상기 제1 및 제2 전압 분배부에서 출력되는 전압을 디지털 신호로 변환하는 상기 아날로그/디지털 변환기와;The analog / digital converter for converting the voltages output from the first and second voltage dividers into digital signals;

상기 제1 과전압 보호부에서 출력되는 전압과 상기 기준전압 발생부에서 발생된 전압을 비교하고 그 결과에 따라 인터럽트를 발생하는 제1 전압 비교기와;A first voltage comparator for comparing the voltage output from the first overvoltage protection unit with the voltage generated from the reference voltage generator and generating an interrupt according to the result;

상기 제2 과전압 보호부에서 출력되는 전압과 상기 기준전압 발생부에서 발생된 전압을 비교하고 그 결과에 따라 인터럽트를 발생하는 제2 전압 비교기와;A second voltage comparator comparing the voltage output from the second overvoltage protection unit with the voltage generated from the reference voltage generator and generating an interrupt according to the result;

상기 아날로그/디지털 변환기에서 출력되는 신호를 동기 클록으로 입력받아 동작하고, 상기 제1 및 제2 전압 비교기에서 출력되는 인터럽트에 따라 입력 신호를 체배한 펄스를 출력하고, 동작 모드 제어신호를 처리하는 마이컴과;A microcomputer that operates by receiving a signal output from the analog / digital converter as a synchronous clock, outputs a pulse obtained by multiplying an input signal according to an interrupt output from the first and second voltage comparators, and processes an operation mode control signal. and;

정전시 상기 마이컴이 데이터 백-업 기능을 유지하도록 일정시간 마이컴에 전원을 공급해주는 백-업 전원 공급부로 구성됨을 특징으로 한다.The microcomputer is configured as a backup power supply for supplying power to the microcomputer for a predetermined time to maintain the data back-up function in case of power failure.

도 1은 본 발명에 의한 고속 마이컴을 이용한 엔코더 체배기의 회로 구성도이고,1 is a circuit configuration diagram of an encoder multiplier using a high speed microcomputer according to the present invention,

도 2는 예로써 400체배기 경우(체배수는 100)의 도 1에 대한 각부 타이밍도이고,FIG. 2 is a timing diagram of each part of FIG. 1 in the case of 400 multiplier (multiplier is 100),

도 3은 인터럽트에 의한 최대, 최소치, 중심치 +,-계산 및 저장과 체배수 가감산의 동작 흐름을 보인 순서도이고,3 is the maximum, minimum, center + by the interrupt ,- Is a flow chart showing the operation flow of calculation, storage and multiplication and subtraction,

도 4는 본 발명에 의한 고속 마이컴을 이용한 체배기의 동작 흐름도 이다.4 is an operation flowchart of a multiplier using a high speed microcomputer according to the present invention.

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

100, 110 ..... 제1 및 제2 과전압 보호부100, 110 ..... First and second overvoltage protection

120 ..... 기준전압 발생부120 ..... Reference voltage generator

130, 140 ..... 제1 및 제2 전압 분배부130, 140 ..... First and second voltage divider

150, 160 ..... 제1 및 제2 전압 비교기150, 160 ..... First and second voltage comparators

170 ..... 아날로그/디지털 변환기170 ..... analog to digital converter

180 ..... 마이컴180 ..... MICOM

190 ..... 백-업 전원 공급부190 ..... Back-up power supply

이하 상기와 같은 기술적 사상에 따른 본 발명의 바람직한 실시예를 첨부한 도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, described in detail with reference to the accompanying drawings, preferred embodiments of the present invention according to the technical spirit as described above.

첨부한 도면 도 1은 본 발명에 의한 고속 마이컴을 이용한 체배기의 회로 구성을 보인 도면이다.1 is a diagram illustrating a circuit configuration of a multiplier using a high speed microcomputer according to the present invention.

여기서 참조부호 100은 입력되는 사인파의 A상에 대한 과전압을 차단하는 제1 과전압 보호부로서, 다이오드(Z1, Z2)로 구성되고, 참조부호 110은 상기 입력되는 사인파의 B상에 대한 과전압을 차단하는 제2 과전압 보호부로서, 다이오드(D4, D5)로 구성되며, 참조부호 120은 상기 제1 및 제2 과전압 보호부(100)(110)를 통한 전압을 적절히 조절하여 기준전압을 발생하는 기준전압 발생부로서, 저항(R6) 및 볼테지 레퍼런스(VOLTAGE REFERENCE)(Z7)로 구성된다.Here, reference numeral 100 denotes a first overvoltage protection unit for blocking an overvoltage on an A phase of an input sine wave, and includes diodes Z1 and Z2, and reference numeral 110 blocks an overvoltage on an input B phase of a sine wave. The second overvoltage protection unit is composed of diodes D4 and D5, and reference numeral 120 denotes a reference for generating a reference voltage by appropriately adjusting voltages through the first and second overvoltage protection units 100 and 110. As the voltage generator, it is composed of a resistor R6 and a voltage reference Z7.

또한 참조부호 130 및 140은 상기 제1 과전압 보호부(100) 및 제2 과전압 보호부(110)에서 각각 출력되는 전압을 후단의 A/D변환기(170)의 입력에 알맞게 각각분배해주는 제1 및 제2 전압 분배부로서, 각각 저항 R1, R2와 저항 R7, R8로 구성된다.In addition, reference numerals 130 and 140 denote first and second distributions of voltages output from the first overvoltage protection unit 100 and the second overvoltage protection unit 110, respectively, to suit the input of the A / D converter 170 at the rear stage. As the second voltage divider, resistors R1 and R2, and resistors R7 and R8, respectively.

또한, 참조부호 170은 상기 제1 및 제2 전압 분배부(130)(140)에서 각각 출력되는 전압을 디지털 신호로 변환하는 상기 아날로그/디지털 변환기를 나타낸다.In addition, reference numeral 170 denotes the analog-to-digital converter for converting the voltages output from the first and second voltage distribution units 130 and 140 into digital signals, respectively.

또한, 참조부호 150은 상기 제1 과전압 보호부(100)에서 출력되는 전압과 상기 기준전압 발생부(120)에서 발생된 전압을 비교하고 그 결과에 따라 인터럽트를 발생하는 제1 전압 비교기를 나타내고, 참조부호 160은 상기 제2 과전압 보호부(110)에서 출력되는 전압과 상기 기준전압 발생부(120)에서 발생된 전압을 비교하고 그 결과에 따라 인터럽트를 발생하는 제2 전압 비교기를 나타낸다.In addition, reference numeral 150 denotes a first voltage comparator for comparing the voltage output from the first overvoltage protection unit 100 with the voltage generated by the reference voltage generator 120 and generating an interrupt according to the result. Reference numeral 160 denotes a second voltage comparator for comparing the voltage output from the second overvoltage protection unit 110 with the voltage generated by the reference voltage generator 120 and generating an interrupt according to the result.

또한, 참조부호 180은 상기 아날로그/디지털 변환기(170)에서 출력되는 신호를 동기 클록으로 입력받아 동작하고, 상기 제1 및 제2 전압 비교기(150)(160)에서 출력되는 인터럽트에 따라 입력 신호를 체배한 펄스를 출력하고, 동작 모드 제어신호를 처리하는 마이컴을 나타내며, 참조부호 190은 정전시 상기 마이컴(180)이 데이터 백-업 기능을 유지하도록 일정시간 마이컴(180)에 전원을 공급해주는 백-업 전원 공급부로서, 다이오드(D1), 저항(R12), 콘덴서(C2)로 구성된다.In addition, the reference numeral 180 operates by receiving a signal output from the analog-to-digital converter 170 as a synchronous clock, and inputs an input signal according to the interrupts output from the first and second voltage comparators 150 and 160. The microcomputer outputs a multiplied pulse and processes an operation mode control signal, and reference numeral 190 denotes a microcomputer that supplies power to the microcomputer 180 for a predetermined time so that the microcomputer 180 maintains a data back-up function in case of power failure. The up-up power supply is composed of a diode D1, a resistor R12, and a capacitor C2.

이와 같이 구성된 본 발명에 의한 고속 마이컴을 이용한 엔코더 체배기의 동작을 첨부한 도면 도 2의 타이밍도를 참조하여 상세히 설명하면 다음과 같다.The operation of the encoder multiplier using the high speed microcomputer according to the present invention configured as described above will be described in detail with reference to the timing diagram of FIG. 2.

먼저 제1 과전압 보호부(100)는 다이오드(Z1, Z2)로 이루어져 도 2a와 같이 입력되는 사인파의 A상에 대한 과전압을 제거하여 과전압으로 후단의 기기가 손상되는 것을 미연에 방지한다.First, the first overvoltage protection unit 100 is composed of diodes Z1 and Z2 to remove the overvoltage on the A phase of the sine wave input as shown in FIG. 2A, thereby preventing damage to the latter device due to the overvoltage.

아울러 제2 과전압 보호부(110)도 다이오드(Z4, Z5)로 이루어져 도 2b와 같이 입력되는 사인파의 B상에 대한 과전압을 제거하여 과전압으로 후단의 기기가 손상되는 것을 미연에 방지한다.In addition, the second overvoltage protection unit 110 is also made of diodes Z4 and Z5 to remove the overvoltage on the B phase of the sine wave input as shown in FIG. 2B to prevent damage to the latter device due to the overvoltage.

다음으로, 기준전압 발생부(120)는 저항(R6) 및 제너 다이오드(Z7)로 이루어져 상기 제1 및 제2 과전압 보호부(100)(110)에서 각각 출력되는 전압을 알맞게 조절하여 기준이 되는 기준 전압을 발생하여 제1 전압 비교기(150) 및 제2 전압 비교기(160)에 각각 입력시키게 된다.Next, the reference voltage generator 120 is composed of a resistor (R6) and a zener diode (Z7) to properly adjust the voltages respectively output from the first and second overvoltage protection unit 100, 110 to be a reference The reference voltage is generated and input to the first voltage comparator 150 and the second voltage comparator 160, respectively.

한편, 제1 전압 분배부(130)는 전압 분배용 저항(R1, R2)으로 이루어져 상기 제1 과전압 보호부(100)에서 출력되는 전압을 후단의 아날로그/디지털 변환기(170)의 입력 전압에 알맞은 전압으로 분배하여 아날로그/디지털 변환기(170)의 일측 입력단으로 입력한다.On the other hand, the first voltage divider 130 is composed of voltage divider resistors R1 and R2 to match the voltage output from the first overvoltage protection unit 100 to the input voltage of the analog-to-digital converter 170 of the rear stage. The signal is divided by the voltage and input to one input terminal of the analog-to-digital converter 170.

마찬가지로 제2 전압 분배부(140)도 전압 분배용 저항(R7, R8)로 이루어져 상기 제2 과전압 보호부(110)에서 출력되는 전압을 후단의 아날로그/디지털 변환기(170)의 입력 전압에 알맞은 전압으로 분배하여 아날로그/디지털 변환기(170)의 타측 입력단으로 입력한다.Similarly, the second voltage divider 140 also includes voltage divider resistors R7 and R8 so that the voltage output from the second overvoltage protector 110 corresponds to the input voltage of the analog / digital converter 170 of the rear stage. And input to the other input terminal of the analog-to-digital converter 170.

이에 따라 상기 아날로그/디지털 변환기(170)는 입력되는 두 개의 아날로그 신호를 각각 디지털 신호로 변환하여 데이터(D0, D1)로서 상기 마이컴(180)에 입력하고, 동시에 칩 선택신호(CS) 및 동기 클럭(CLK)를 발생하여 상기 마이컴(180)에 전달한다.Accordingly, the analog-to-digital converter 170 converts two input analog signals into digital signals, respectively, and inputs them into the microcomputer 180 as data D0 and D1, and simultaneously selects a chip select signal CS and a synchronous clock. Generates and transmits the CLK to the microcomputer 180.

그리고 제1 전압 비교기(150)는 상기 제1 과전압 보호부(100)에서 출력되는전압과 상기 기준전압 발생부(120)에서 발생된 기준전압을 비교하여 그 결과에 따라 인터럽트를 발생하여 상기 마이컴(180)에 전달하게 되며, 이때 발생되는 인터럽트 형태는 도 2c와 같다.The first voltage comparator 150 compares the voltage output from the first overvoltage protection unit 100 with the reference voltage generated by the reference voltage generator 120 and generates an interrupt according to the result of the microcomputer ( 180), an interrupt type generated at this time is shown in FIG. 2C.

아울러 제2 전압 비교기(160)도 상기 제2 과전압 보호부(110)에서 출력되는 전압과 상기 기준전압 발생부(120)에서 발생된 기준전압을 비교하여 그 결과에 따라 인터럽트를 발생하여 상기 마이컴(180)에 전달하게 되며, 이때 발생되는 인터럽트 형태는 도 2d와 같다.In addition, the second voltage comparator 160 also compares the voltage output from the second overvoltage protection unit 110 with the reference voltage generated by the reference voltage generator 120 and generates an interrupt according to the result of the microcomputer ( 180), an interrupt type generated at this time is shown in FIG. 2D.

여기서 입력되는 사인파의 A상 및 B상이 도 2a 및 도 2b와 같은 경우, 상기 제1 및 제2 전압 비교기(150)(160)에서 각각 출력되는 인터럽트에 대응하여 상기 마이컴(180)에 구간별로 입력되는 인터럽트는 도 2e와 같은 형태이다.When the A and B phases of the sine wave input here are the same as those shown in FIGS. 2A and 2B, the sections are input to the microcomputer 180 in response to interrupts output from the first and second voltage comparators 150 and 160, respectively. The interrupt is a form as shown in Figure 2e.

이와 같이 하나의 구간에 대해서 두 개의 인터럽트가 입력되면, 마이컴(180)은 자체적으로 내장된 프로그램을 통해 최적의 사인파를 선택하고, 이를 수학적인 체배 알고리즘을 적용하여 최적의 체배 펄스를 생성한다.As such, when two interrupts are input for one section, the microcomputer 180 selects an optimal sine wave through a program embedded therein, and generates an optimal multiplication pulse by applying a mathematical multiplication algorithm.

여기서 출력 A상에 대해서 생성되는 체배 펄스는 도 2f와 같은 형태가 되고, 출력 B상에 대해서 생성되는 체배 펄스는 도 2g와 같은 형태가 된다.Here, the multiplication pulses generated for the output A phase have the form as shown in Fig. 2F, and the multiplication pulses generated for the output B phase have the form as shown in Fig. 2G.

만약 입력되는 두 개의 사인파가 너무 일그러진 파형이거나 너무 적어 체배가 불가능할 경우에는 로우(low)라는 에러 신호(ER)를 발생하여, 후단 기기에 알리게 된다.If the input two sine waves are too distorted or too small to multiply, an error signal (ER), which is low, is generated and notified to the subsequent device.

한편, 동작 중에 정전이 발생되면 마이컴(180)에서는 백-업 기능을 수행해야만 데이터 손실을 방지할 수 있으며, 이를 위해서 백-업 전원 공급부(190)는 다이오드(D1), 저항(R12), 콘덴서(C2)로 이루어져, 정전시 콘덴서(C2)에 충전된 전원을 상기 마이컴(180)에 일순간 공급해주어 정전이 발생하면 마이컴(180)에서 즉시 데이터 백-업 기능을 수행하도록 한다.Meanwhile, when a power failure occurs during operation, the microcomputer 180 may perform a back-up function to prevent data loss. For this purpose, the back-up power supply 190 may include a diode D1, a resistor R12, and a capacitor. (C2), when the power failure is supplied to the microcomputer 180 to supply the power charged in the capacitor (C2) for a moment to perform a data back-up function immediately in the microcomputer 180 when a power failure occurs.

이하에서는 상기 마이컴(180)에서 수학적 알고리즘을 통해서 체배 펄스를 발생하는 과정을 구체적으로 설명하면 다음과 같다.Hereinafter, a process of generating a multiplication pulse through a mathematical algorithm in the microcomputer 180 will be described in detail.

먼저 도 2e와 같이 구간별로 입력되는 두 개의 인터럽트에 대하여 체배 펄스를 발생하는 과정을 설명하면 다음과 같다.First, a process of generating a multiplication pulse for two interrupts input for each section as shown in FIG. 2E will be described below.

하기에서 a는 A상 현 측정치, b는 B상 현 측정치, MaxA는 A상 최대치, MinA는 A상 최저치, MaxB는 B상 최대치, MinB는 B상 최저치, CTA는 A상 중간치, CTB는 B상 중간치,A는 CTA의 상한치, -A는 CTA의 하한치,B는 CTB의 상한치, -B는 CTB의 하한치, ACCA는 현 X체배 등분에 대전값(범위 00x ~ xxx), K는 상수를 각각 나타낸다.In the following, a is A phase chord measurement, b is B phase chord measurement, M ax A is A phase maximum, M in A is A phase minimum, M ax B is B phase maximum, M in B is B phase minimum, CTA is Median A phase, CTB is median B phase, A is the upper limit of CTA,- A is the lower limit of the CTA, B is the upper limit of CTB,- B is the lower limit of CTB, ACCA is the current X multiplication equal to the charging value (range 00x to xxx), and K is the constant.

먼저, 임의의 구간에서 A=1, B=1, b <B일 경우, 하기와 같은 [수학식1]에 의거 체배 펄스를 발생한다.First, in any interval, A = 1, B = 1, b < In the case of B, a multiplication pulse is generated based on Equation 1 as follows.

또한 b >B일 경우, 하기와 같은 [수학식2]에 의거 체배 펄스를 발생한다.B> In the case of B, a multiplication pulse is generated based on Equation 2 as follows.

다음으로 임의의 구간에서 A=1, B=0이고 a <A일 경우, 하기와 같은 [수학식3]에 의거 체배 펄스를 발생한다.Next, in any interval, A = 1, B = 0 and a < In the case of A, a multiplication pulse is generated based on Equation 3 as follows.

아울러 a >A일 경우, 하기와 같은 [수학식4]에 의거 체배 펄스를 발생한다.And a> In the case of A, a multiplication pulse is generated based on Equation 4 as follows.

그 이외의 경우에서도 전술한 [수학식1] 내지 [수학식4]와 같은 수학식과 유사한 방법으로 체배 펄스를 발생하게 된다.In other cases, the multiplication pulse is generated by a method similar to the above-described equations [Equation 1] to [Equation 4].

첨부한 도면 도 3은 도2c,도2d의 변화에 의해 인터럽트가 시작되며, 최대치, 최소치, 중심치,-계산 및 저장과 체배수만을 가감산 동작을 보인 흐름도 이다.Figure 3 is an interrupt is started by the change of Figures 2c, 2d, maximum, minimum, center value ,- This is a flow chart showing the operation of adding and subtracting only the calculation, storage, and multiplication.

먼저 단계 S101에서는 슬립(Sleep) 여부를 확인한다. 여기서 슬립 상태는 정전시의 동작 모드 상태이다.First, in step S101 it is checked whether or not the sleep (Sleep). Here, the sleep state is an operation mode state at the time of power failure.

상기 확인 결과 슬립 상태가 아니면, 단계 S102에서 입력되는 사인파의 변화 여부를 체크하고, 그 결과 입력되는 사인파에 변화가 발생한 경우에는 단계 S103에서 어느 상이 변화했는지를 체크한다.If the check result is not in the sleep state, it is checked whether or not the sine wave input in step S102 is changed. If the result is a change in the input sine wave, it is checked in step S103 which phase has changed.

이 체크 결과 B상 변화일 경우에는 단계 S104에서 A상을 체크하여 A상 최대치 및 최소치를 측정한다(단계 S105 ~ 단계 S106).If the result of the check is a change in phase B, phase A is checked in step S104 to measure the maximum and minimum values of phase A (steps S105 to S106).

상기 체크 결과 A상 변화일 경우에는 단계 S107에서 B상을 체크하여 B상 최대치 및 최소치를 측정한다(단계 S108 ~ 단계 S109).If the result of the check is a change in phase A, phase B is checked in step S107 to measure the maximum and minimum values of phase B (steps S108 to S109).

다음으로 단계 S110에서는 레벨을 체크하고, 그 결과 일그러진 파형 등으로 레벨 체크가 어려울 경우에는 단계 S111에서 에러임을 알린다.Next, in step S110, the level is checked. As a result, if it is difficult to check the level due to the distorted waveform or the like, it is notified in step S111 that it is an error.

이와는 달리 레벨 체크가 이루어진 경우에는 단계 S112에서 상기 측정한 각 상의 최대치 및 최소치를 저장하고, 파형의 중심치를 하기와 같은 [수학식5]로 산출하여 저장한다.On the other hand, when the level check is made, the maximum and minimum values of each phase measured in step S112 are stored, and the center value of the waveform is calculated and stored in Equation 5 as follows.

다음으로 단계 S113에서는 +및 -를 다음과 같은 [수학식6]으로 산출한다.Next, in step S113, And- Is calculated by Equation 6 as follows.

다음으로 단계 S114에서는 진행 방향을 판단하고, 그 진행 방향이 역방향이면 단계 S115에서 그 구간 거리에 따른 X체배수(예:100체배기면 100을 감산)를 출력 될 펄스수에 감산한다.Next, in step S114, the direction of travel is determined. If the direction of travel is the reverse direction, in step S115, the X-multiplier (e.g., subtract 100 of the 100-multiplier plane) according to the section distance is subtracted to the number of pulses to be output.

아울러 상기 진행 방향이 순 방향일 경우에는 단계 S116에서 그 구간 거리에 따른 X체배수를 출력 될 펄스수에 가산한다.In addition, when the traveling direction is the forward direction, in step S116, the X multiplier according to the interval distance is added to the number of pulses to be output.

첨부한 도면 도 4는 본 발명에 의한 고속 마이컴을 이용한 체배기의 진행 과정을 보인 흐름도이다.4 is a flowchart illustrating a process of a multiplier using a high speed microcomputer according to the present invention.

단계 S201에서는 초기치를 설정하고, 단계 S202에서는 A상 또는 B상을 측정하여 구간에 따른 체배수를 구한다. 즉 현 위치에 대한 구간내의 체배수(ACCA)를 구하게 된다.In step S201, an initial value is set, and in step S202, a multiplier for each section is obtained by measuring A phase or B phase. That is, the body multiplication factor (ACCA) in the section for the current position is obtained.

그리고 단계 S203에서는 인터럽트가 발생했는지를 체크하고, 단계 S204에서는 인터럽트가 발생하지 않았으면 슬립 여부를 체크하고, 그 결과 슬립 상태이면 단계 S205에서 슬립 모드로 진입한다.In step S203, it is checked whether an interrupt has occurred. In step S204, whether or not an interrupt has occurred, it is checked whether or not it sleeps. As a result, it enters a sleep mode in step S205.

그런 후 단계 S206에서는 현 위치에 대한 ACCA값에서 전 위치에 대한 값(AAA)를 감산하여 출력될 펄스 수에 가감산한다.Then, in step S206, the value AAA for the previous position is subtracted from the ACCA value for the current position and added and subtracted to the number of pulses to be output.

그리고 단계 S207에서는 상기 출력될 펄스 수만큼 A, B에 대해 진행 방향에 대한 값을 도1의 P8, P9을 통해 출력한다.In step S207, the values of the traveling directions for the A and the B are output by the number of pulses to be output through P8 and P9 of FIG.

아울러 단계 S208에서는 인터럽트 이외의 실행중 누락된 것이 발생된 것을 보정하는 기능을 수행한다.In addition, in step S208, a function of correcting that a missing thing occurred during execution other than an interrupt is performed.

이상에서 상술한 본 발명 "고속 마이컴을 이용한 체배기"에 따르면, 입력 신호의 최대치, 최소치를 측정하여 엔코더 체배하기 때문에 조정할 필요가 없거나 조정하기 용이한 이점이 있다.According to the present invention "multiplier using a high speed microcomputer" described above, since the encoder multiplies by measuring the maximum value and the minimum value of the input signal, there is an advantage that does not need to be adjusted or is easy to adjust.

또한, 체배수에 비해 회로가 극히 간단하다는 이점도 있다.It also has the advantage that the circuit is extremely simple compared to the multiplication factor.

또한, 사인(sin)파의 원만한 곡선에서의 수치오차 및 떨림을 방지하고 정확한 길이 카운팅이 가능한 이점도 있다.It also has the advantage of avoiding numerical errors and tremors on smooth curves of sin waves and allowing accurate length counting.

이러한 이점으로 인해 정밀성을 요구하는 공작 기계 등에 적용 가능한 장점이 있다.Due to these advantages, there is an advantage that can be applied to machine tools that require precision.

Claims (5)

목공기, 재단 기계 등의 각종 기계장치의 위치 제어를 위한 엔코더 체배 장치에 있어서,In the encoder multiplication device for position control of various machinery such as woodworking machine, cutting machine, 입력되는 사인파의 A상에 대한 과전압을 차단하는 제1 과전압 보호부와;A first overvoltage protection unit for blocking an overvoltage on an A phase of an input sine wave; 상기 입력되는 사인파의 B상에 대한 과전압을 차단하는 제2 과전압 보호부와;A second overvoltage protection unit for blocking an overvoltage on the B-phase of the input sine wave; 상기 제1 및 제2 과전압 보호부를 통한 전압을 조절하여 기준전압을 발생하는 기준전압 발생부와;A reference voltage generator for generating a reference voltage by adjusting voltages through the first and second overvoltage protection units; 상기 제1 과전압 보호부 및 제2 과전압 보호부에서 각각 출력되는 전압을 후단의 A/D변환기의 입력에 각각 분배해주는 제1 및 제2 전압 분배부와;First and second voltage distributors for respectively distributing voltages output from the first and second overvoltage protection units to inputs of a subsequent A / D converter; 상기 제1 및 제2 전압 분배부에서 출력되는 전압을 디지털 신호로 변환하는 상기 아날로그/디지털 변환기와;The analog / digital converter for converting the voltages output from the first and second voltage dividers into digital signals; 상기 제1 과전압 보호부에서 출력되는 전압과 상기 기준전압 발생부에서 발생된 전압을 비교하고 그 결과에 따라 인터럽트를 발생하는 제1 전압 비교기와;A first voltage comparator for comparing the voltage output from the first overvoltage protection unit with the voltage generated from the reference voltage generator and generating an interrupt according to the result; 상기 제2 과전압 보호부에서 출력되는 전압과 상기 기준전압 발생부에서 발생된 전압을 비교하고 그 결과에 따라 인터럽트를 발생하는 제2 전압 비교기와;A second voltage comparator comparing the voltage output from the second overvoltage protection unit with the voltage generated from the reference voltage generator and generating an interrupt according to the result; 상기 아날로그/디지털 변환기에서 출력되는 신호를 동기 클록으로 입력받아 동작하고, 상기 제1 및 제2 전압 비교기에서 출력되는 인터럽트에 따라 입력 신호를 체배한 펄스를 출력하고, 동작 모드 제어신호를 처리하는 마이컴과;A microcomputer that operates by receiving a signal output from the analog / digital converter as a synchronous clock, outputs a pulse obtained by multiplying an input signal according to an interrupt output from the first and second voltage comparators, and processes an operation mode control signal. and; 정전시 상기 마이컴이 데이터 백-업 기능을 유지하도록 일정시간 마이컴에 전원을 공급해주는 백-업 전원 공급부(또는 EEPROM 이용가능)를 포함하여 구성된 것을 특징으로 하는 고속 마이컴을 이용한 체배기.A multiplier using a high speed micom, characterized in that it comprises a back-up power supply (or EEPROM available) for supplying power to the microcomputer for a certain time to maintain the data back-up function in case of power failure. 목공기, 재단 기계 등의 각종 기계장치의 위치 제어를 위한 엔코더의 체배 방법에 있어서,In the method of multiplying the encoder for the position control of various machinery such as woodworking machine, cutting machine, 슬립(Sleep) 여부를 확인하고, 그 결과 슬립 상태가 아니면 입력되는 사인파의 변화 여부를 체크하고, 체크 결과 입력되는 사인파에 변화가 발생한 경우에는 어느 상이 변화했는지를 체크하는 단계와;Checking whether the device is in a sleep state, and as a result, checking whether or not the input sine wave is changed, and when the check result is changed, checking which phase is changed; 상기 체크 결과 B상 변화일 경우에는 A상을 체크하여 A상 최대치 및 최소치를 측정하는 단계와;Checking phase A to determine maximum and minimum A phases if the phase B changes; 상기 체크 결과 A상 변화일 경우에는 B상을 체크하여 B상 최대치 및 최소치를 측정하는 단계와;Checking phase B if the phase A change results in measuring the maximum and minimum B phases; 레벨을 체크하고, 그 결과 일그러진 파형으로 레벨 체크가 어려울 경우에는 에러임을 알리고, 레벨 체크가 정상적으로 이루어진 경우에는 상기 측정한 각 상의 최대치 및 최소치를 저장하고, 파형의 중심치를 산출하는 단계와;Checking the level and, if the level check is difficult, as a result of the distorted waveform, indicating an error, and if the level check is normally performed, storing the measured maximum and minimum values of each phase, and calculating the center of the waveform; 상기 단계 후 +및 -를 산출하는 단계와;After the above step + And- Calculating a; 상기 단계후 진행 방향을 판단하고, 그 진행 방향이 역방향이면 이동 거리를 산출하고, 그 이동 거리에 따른 X체배수를 산출하는 단계와;Determining a moving direction after the step, calculating a moving distance if the moving direction is in the reverse direction, and calculating an X multiplier according to the moving distance; 상기 진행 방향이 순방향일 경우에는 이동 거리를 산출하고, 그 이동 거리에 따른 X체배수를 산출하는 단계를 포함하여 이루어짐을 특징으로 하는 고속 마이컴을 이용한 엔코더 체배방법.If the traveling direction is the forward direction, calculating the moving distance, and calculating the X multiplier according to the moving distance comprising the step of multiplying the encoder using a high speed microcomputer. 제2항에 있어서, 상기 파형 중심치 산출은 아래와 같은 수학식에 의거 산출하는 것을 특징으로 하는 고속 마이컴을 이용한 체배방법.The method of claim 2, wherein the center value of the waveform is calculated based on the following equation. 제2항에 있어서, 상기 +및 -의 계산은 아래와 같은 수학식에 의거 산출하는 것을 특징으로 하는 고속 마이컴을 이용한 체배방법.The method of claim 2, wherein the + And- The multiplication method using a high speed microcomputer, characterized in that the calculation based on the following equation. 제2항에 있어서, 상기 슬립 상태 여부를 확인 결과, 슬립 상태로 판단되면,The method of claim 2, wherein if it is determined that the sleep state is a sleep state, 슬립 모드로 진입하는 단계와; 현 위치에 대한 ACCA값에서 전 위치에 대한 값(AAA)를 감산하여 출력될 펄스 수를 산출하는 단계와; 상기 출력될 펄스 수만큼 A, B에 대해 진행 방향에 대한 값을 출력하는 단계와; 인터럽트 이외의 실행중 누락된 것이 발생된 것을 보정하는 단계를 수행하는 것을 특징으로 하는 고속 마이컴을 이용한 엔코더 체배방법.Entering a sleep mode; Calculating the number of pulses to be output by subtracting the value AAA for all positions from the ACCA value for the current position; Outputting a value for a travel direction for A and B by the number of pulses to be output; Encoder multiplication method using a high-speed microcomputer, characterized in that for performing the step of correcting that something missing during execution other than interrupt.
KR10-2000-0053596A 2000-09-08 2000-09-08 encoder multiplier using express micom and the method for multiplying encoder KR100435588B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2000-0053596A KR100435588B1 (en) 2000-09-08 2000-09-08 encoder multiplier using express micom and the method for multiplying encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2000-0053596A KR100435588B1 (en) 2000-09-08 2000-09-08 encoder multiplier using express micom and the method for multiplying encoder

Publications (2)

Publication Number Publication Date
KR20020020444A KR20020020444A (en) 2002-03-15
KR100435588B1 true KR100435588B1 (en) 2004-06-10

Family

ID=19688332

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2000-0053596A KR100435588B1 (en) 2000-09-08 2000-09-08 encoder multiplier using express micom and the method for multiplying encoder

Country Status (1)

Country Link
KR (1) KR100435588B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100464824B1 (en) * 2002-10-30 2005-01-05 강창민 A position-measuring instrument by high-speed multiplying and error-compensation method of that

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102462132B1 (en) 2022-06-03 2022-11-03 주식회사 거원산업 The Reinforcement of Steel Columns
KR102474490B1 (en) 2022-06-03 2022-12-06 주식회사 거원산업 Steel structure with column-beam reinforcement joints
KR102508675B1 (en) 2022-06-03 2023-03-14 주식회사 거원산업 Connection Structure of Steel Column and Steel Beam

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR920005463Y1 (en) * 1989-06-05 1992-08-13 삼성전자 주식회사 Showcases having automatic closable door
JPH0682269A (en) * 1992-09-03 1994-03-22 Matsushita Electric Ind Co Ltd Encoder signal multiplication circuit
JPH0821743A (en) * 1994-07-07 1996-01-23 Olympus Optical Co Ltd Frequency multiplier for position detection signal
KR200151910Y1 (en) * 1996-06-12 1999-07-15 김재복 Four dividing and counting apparatus for encoder signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR920005463Y1 (en) * 1989-06-05 1992-08-13 삼성전자 주식회사 Showcases having automatic closable door
JPH0682269A (en) * 1992-09-03 1994-03-22 Matsushita Electric Ind Co Ltd Encoder signal multiplication circuit
JPH0821743A (en) * 1994-07-07 1996-01-23 Olympus Optical Co Ltd Frequency multiplier for position detection signal
KR200151910Y1 (en) * 1996-06-12 1999-07-15 김재복 Four dividing and counting apparatus for encoder signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100464824B1 (en) * 2002-10-30 2005-01-05 강창민 A position-measuring instrument by high-speed multiplying and error-compensation method of that

Also Published As

Publication number Publication date
KR20020020444A (en) 2002-03-15

Similar Documents

Publication Publication Date Title
CN1981444B (en) Device for the analog/digital conversion of a measuring voltage
EP0071439B1 (en) Quiescent battery testing method and apparatus
US4514694A (en) Quiescent battery testing method and apparatus
US9157939B2 (en) System and device for determining electric voltages
US8645020B2 (en) Channel diagnostic system for sent receiver
CN104339043A (en) Wire electric discharge machine including average discharge delay time calculating unit
US20170168118A1 (en) Power consumption monitoring device for a power source
CN1178393C (en) Method for deriving or calibrating frequency of pulse signal
US5798933A (en) High precision relative digital voltage measurement
US7619405B2 (en) Process for determining a time interval between two impulses by converting a measured analog impulse into a digital impulse
KR100435588B1 (en) encoder multiplier using express micom and the method for multiplying encoder
CN105102991A (en) Signal processing device
GB1603956A (en) Measuring apparatus for determining the cycle duration of an ac waveform
CN110780217A (en) Semiconductor device and method for detecting remaining amount of battery
JPH11271366A (en) Apparatus for detecting voltage drop
EP0607711A1 (en) Electricity meter with variable gain sigma-delta converter
US9896046B2 (en) Receiving arrangement for a control device in a vehicle, and method for generating a synchronization pulse
US4740860A (en) Method for generating a tripping signal as a function of the magnitude and duration of an overcurrent
JP2002286820A (en) Battery remainder-detecting apparatus
RU2229138C1 (en) Meter measuring parameters of harmonic processes
JPH0321076B2 (en)
Osolinskyy Research of interference immunity of the system for measuring the average energy consumption of microcontrollers
Kochan et al. Method of microprocessors average energy consumption measurements
JPH07301685A (en) Clock circuit
US20220085696A1 (en) Motor control device

Legal Events

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

Payment date: 20110531

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee