KR20010036915A - Data generation apparatus for position measurement and data generation method for the same - Google Patents
Data generation apparatus for position measurement and data generation method for the same Download PDFInfo
- Publication number
- KR20010036915A KR20010036915A KR1019990044116A KR19990044116A KR20010036915A KR 20010036915 A KR20010036915 A KR 20010036915A KR 1019990044116 A KR1019990044116 A KR 1019990044116A KR 19990044116 A KR19990044116 A KR 19990044116A KR 20010036915 A KR20010036915 A KR 20010036915A
- Authority
- KR
- South Korea
- Prior art keywords
- signal
- input
- port
- error
- flag
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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/19—Numerical 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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/414—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
- G05B19/4142—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller characterised by the use of a microprocessor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Automation & Control Theory (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Abstract
Description
본 발명은 위치 측정용 데이터 생성장치 및 그 생성방법에 관한 것이다.The present invention relates to a data generating device for position measurement and a method of generating the same.
보다 상세하게는 복수의 센서로부터 입력되는 신호를 마이크로 컨트롤러를 입력받아 마이크로 컨트롤러에 저장된 프로그램을 이용하여 위치 측정용 데이터를 초고속으로 생성시키기 위한 위치 측정용 데이터 생성장치 및 그 생성방법에 관한 것이다.More specifically, the present invention relates to a position measuring data generating device for generating position measuring data at a high speed by using a program stored in a micro controller and receiving a signal input from a plurality of sensors, and a method of generating the same.
일반적으로 로봇(ROBOT) 또는 공작기계는 사용자에 의해 프로그램된 처리과정에 따라, 또는 사용자의 수동조작에 따라 소정 위치에서 일정한 위치까지 이동한 후 정해진 작업을 수행하고, 본래의 위치로 복귀하는 과정을 반복적으로 수행하면서 소정의 작업을 수행하도록 제작된 자동시스템이라 할 수 있다.In general, a robot or a machine tool moves from a predetermined position to a predetermined position according to a processing procedure programmed by a user or by a user's manual operation, performs a predetermined task, and then returns to the original position. It can be referred to as an automatic system designed to perform a predetermined task while repeatedly performing.
상술한 로봇 또는 공작기계의 작업수단이 본래의 위치에서 작업위치로, 작업위치에서 본래의 위치로 정확하게 이동시켜야 한다. 그러므로 로봇 또는 공작기계에서 상술한 작업과정을 수행할 수 있도록 하는 모터의 위치제어가 가장 중요한 제어과정이라 할 수 있다.The working means of the above-described robot or machine tool must be moved from the original position to the working position accurately from the working position to the original position. Therefore, the most important control process is the position control of the motor that enables the robot or machine tool to perform the above-described work process.
따라서, 상술한 모터의 위치제어를 하기 위해 위치 측정용 데이터를 생성해 내는 수단은 가장 중요한 구성 부품이라 할 수 있으며, 상술한 위치 측정용 데이터 생성 수단은 고속으로 위치 측정용 데이터를 생성해야만 한다.Therefore, the means for generating the position measuring data for the position control of the motor described above can be said to be the most important component, and the position measuring data generating means must generate the position measuring data at high speed.
위와 같은 고속으로 위치 측정용 데이터를 생성하는 수단을 구현하기 위해서는 일반적인 회로를 이용하여 구현하거나, 또는 ASIC 집적소자를 이용하여 구현하는 방법이 있다.In order to implement the means for generating the position measurement data at a high speed as described above, there is a method implemented using a general circuit or an ASIC integrated device.
그러나, 상술한 바와 같이 위치 측정용 데이터를 생성하는 수단을 일반적인 회로로 구성할 경우 그 회로 구성이 매우 복잡해져서 위치 측정용 데이터 생성 수단의 부품 자체의 사이즈가 커지게 된다.However, when the means for generating the position measuring data is constituted by a general circuit as described above, the circuit configuration becomes very complicated, and the size of the component itself of the position measuring data generating means becomes large.
한편, 위치 측정용 데이터 생성 수단의 크기를 최소화시키기 위해 하나의 ASIC소자로 구현하는 경우 개발 및 생산비용이 많이 소요된다는 문제점이 있었다.On the other hand, in order to minimize the size of the position measuring data generating means implemented in one ASIC device there was a problem that the development and production costs are high.
따라서, 본 발명의 목적은 전술한 문제점을 해결할 수 있도록 복수의 센서로부터 입력되는 신호를 마이크로 컨트롤러를 입력받아 마이크로 컨트롤러에 저장된 프로그램을 이용하여 위치 측정용 데이터를 초고속으로 생성시키기 위한 위치 측정용 데이터 생성장치 및 그 생성방법을 제공함에 있다.Accordingly, an object of the present invention is to generate a position measurement data for generating a position measurement data at a very high speed using a program stored in the microcontroller to receive a signal input from a plurality of sensors to solve the above problems An apparatus and a method of generating the same are provided.
도 1은 본 발명에 따른 위치 측정용 데이터 생성장치의 개략적인 블록도,1 is a schematic block diagram of an apparatus for generating position measurement data according to the present invention;
도 2는 도 1의 마이크로 컨트롤러에 의해 읽혀지는 신호를 임시로 저장하는 임시 메모리의 영역 표시도,2 is an area display diagram of a temporary memory that temporarily stores a signal read by the microcontroller of FIG. 1;
도 3은 도 1에 적용된 마이크로 컨트롤러로 입력되는 발진신호의 파형도,3 is a waveform diagram of an oscillation signal input to a microcontroller applied to FIG. 1;
도 4는 본 발명에 따른 위치 측정용 데이터 생성방법을 설명하기 위한 동작 흐름도,4 is an operation flowchart for explaining a method for generating position measurement data according to the present invention;
도 5는 도 4에 적용된 X축 처리과정의 상세 흐름도이다.FIG. 5 is a detailed flowchart of an X-axis process applied to FIG. 4.
*도면의 주요부분에 대한 부호설명** Description of Signs of Main Parts of Drawings *
10 : 발진회로부 20 : 마이크로 컨트롤러10: oscillation circuit 20: microcontroller
30 : 마이크로 프로세서 40 : 표시부30: microprocessor 40: display unit
이와 같은 목적을 달성하기 위한 본 발명의 장치는 소정의 위상차를 갖는 복수의 신호를 출력하는 복수의 센서와, 복수의 센서로부터 입력되는 신호를 카운트하여 위치 측정용 데이터를 생성하여 내부 메모리에 저장한 후 외부로부터 입력되는 제어신호에 응하여 일괄적으로 출력하는 마이크로 컨트롤러와, 마이크로 컨트롤러에서 생성된 위치 측정용 데이터를 외부로부터 입력되는 제어신호에 응하여 출력하는 복수의 표시부와, 마이크로 컨트롤러에서 생성된 위치 측정용 데이터를 일괄적으로 입력받을 수 있도록 상기 마이크로 컨트롤러로 제어신호를 출력하고, 상기 마이크로 컨트롤러에서 출력된 위치 측정용 데이터를 사용자가 볼 수 있도록 상기 복수의 표시부에 출력되도록 제어하며, 상기 마이크로 컨트롤러에 의해 에러신호가 입력되는 경우 전체 시스템의 구동이 정지되도록 제어하는 마이크로 프로세서를 포함한다.The apparatus of the present invention for achieving the above object is to generate a plurality of sensors for outputting a plurality of signals having a predetermined phase difference, the signal input from the plurality of sensors to generate position measurement data and to store in the internal memory A microcontroller which outputs collectively in response to a control signal input from the outside, a plurality of display units which output position measurement data generated by the microcontroller in response to a control signal input from the outside, and a position measurement generated by the microcontroller Outputs a control signal to the microcontroller so as to receive the data for a batch, and outputs the position measurement data output from the microcontroller to be output to the plurality of display units for the user to view, and to the microcontroller. When an error signal is input by And a microprocessor for controlling so that the operation of the entire system down.
또한, 상술한 목적을 달성하기 위한 본 발명의 방법은, (1) 초기 설정을 하는 과정과, (2) 각 센서의 출력단(XA)(XB)(YA)(YB)(ZA)(ZB)를 통해 포트(RB0∼RB5)로부터 입력되는 신호를 제 1 버퍼에 임시로 저장하는 과정과, (3) 제 1 버퍼와 제 2 버퍼에 저장된 신호를 비교하고, 비교결과 동일한 경우 제 3 버퍼에 제 1 신호를 저장하며, 비교결과 동일하지 않은 경우 제 3 버퍼에 제 2 신호를 저장시키는 과정과, (4) 모든 포트(RB0∼RB5)로 입력되는 신호가 변화되었는지를 판단하는 과정과, (5) 모든 포트(RB0∼RB5)로 입력되는 신호가 변화된 경우 X축 처리과정을 수행하고, X축 처리과정 수행 후 Y축 처리과정을 수행하며, Y축 처리과정 수행 후 Z 축 처리과정을 수행한 후 제 1 버퍼에 저장된 신호를 제 2 버퍼에 저장시키고 나서 상기 과정(2)부터 재수행하는 과정으로 이루어짐을 특징으로 한다.In addition, the method of the present invention for achieving the above object, (1) the process of initial setting, and (2) the output terminal XA (XB) (YA) (YB) (ZA) (ZB) of each sensor Temporarily storing signals input from the ports RB0 to RB5 through the first buffer, and (3) comparing the signals stored in the first buffer and the second buffer, Storing one signal and storing the second signal in a third buffer if the comparison is not the same; (4) determining whether the signals input to all ports RB0 to RB5 have changed; ) If the signals input to all ports (RB0 to RB5) are changed, the X-axis processing is performed, the Y-axis processing is performed after the X-axis processing, and the Z-axis processing is performed after the Y-axis processing. After that, the signal stored in the first buffer is stored in the second buffer, and then the process is performed again from step (2). And a gong.
이하, 첨부한 도면들을 참조하여 본 발명의 바람직한 실시예를 상세히 기술하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명에 따른 위치 측정용 데이터 생성장치의 개략적인 블록도이다.1 is a schematic block diagram of an apparatus for generating position measurement data according to the present invention.
도시된 바와 같이, 복수의 센서(X)(Y)(Z)는 첨부 도면 도 3에 도시된 바와 같이 상호간에 90°의 위상차를 갖는 복수의 신호(XA)(XB)(YA)(YB)(ZA)(ZB)를 출력한다.As shown, a plurality of sensors (X) (Y) (Z) have a plurality of signals (XA) (XB) (YA) (YB) having a phase difference of 90 ° from each other, as shown in FIG. Outputs (ZA) (ZB).
마이크로 컨트롤러(20)는 상술한 복수의 센서(X)(Y)(Z)로부터 출력되는 신호를 포트(RB0∼RB5)로 입력받아 각각 카운트하여 위치 측정용 데이터를 생성하여 첨부 도면 도 2에 도시된 내부 메모리에 저장한 후 마이크로 프로세서(30)로부터 입력되는 제어신호에 응하여 일괄적으로 마이크로 프로세서(30)로 출력한다.The microcontroller 20 receives the signals output from the plurality of sensors X, Y, and Z described above through the ports RB0 to RB5 and counts them respectively to generate position measurement data, as shown in FIG. 2. After storing in the internal memory, it is output to the microprocessor 30 collectively in response to the control signal input from the microprocessor 30.
상술한 마이크로 컨트롤러(20)는 에러신호가 입력되는 경우 전체 시스템의 구동이 정지되도록 제어한다.The microcontroller 20 controls the driving of the entire system to be stopped when an error signal is input.
상술한 내부 메모리는 첨부 도면 도 2에 도시된 바와 같이 X축 상에서 일의자리, 십의 자리, 백의 자리의 위치 데이터(BX0)(BX1)(BX2)를 저장하고, 이때 X축 상에서 발생하는 에러를 카운트하여 그 에러 카운트 회수(XERCNT)를 순차적으로 저장한다. 이때 물론 Y축 상에서 X축 상에서와 같이 생성된 데이터(BY0)(BY1)(BY2) 및 (YERCNT)와 Z축 상에서 생성된 데이터(BZ0(BZ1)(BZ2)(ZERCNT)가 그 아래 영역에 순차적으로 저장된다.The above-described internal memory stores position data BX0, BX1, and BX2 of one-digit, ten-digit, and hundred-digit positions on the X-axis as shown in FIG. Counts and stores the error count number XERCNT sequentially. At this time, of course, the data (BY0) (BY1) (BY2) and (YERCNT) generated on the Y axis and the data (BZ0 (BZ1) (BZ2) (ZERCNT) generated on the Z axis are sequentially in the region below it. Stored as.
그리고 그 아래 영역(XERCOU)(YERCOU)(ZERCOU)(XYZERCOU)에는 상술한 영역(BX0∼ZERCNT)에 저장된 데이터 및 에러 카운트를 클리어시킬 수 있는 신호를 저장한다. 즉, 마이크로 컨트롤러(20)는 상술한 영역(XERCOU) 또는 영역(YERCOU) 또는 영역(ZERCOU)에 각각 저장된 신호를 이용하여 센서(X) 또는 센서(Y) 또는 센서(Z)에 의해 각각 생성된 데이터 및 에러카운트를 클리어시킨다.In the lower area XERCOU (YERCOU) (ZERCOU) (XYZERCOU), data stored in the above-mentioned areas BX0 to ZERCNT and a signal for clearing an error count are stored. That is, the microcontroller 20 is generated by the sensor X or the sensor Y or the sensor Z, respectively, by using the signals stored in the above-described region XERCOU or YERCOU or ZERCOU. Clear the data and error counts.
그리고, 마이크로 컨트롤러(20)는 상술한 영역(XYZERCOU)에 저장된 신호를 이용하여 센서(X), 센서(Y) 및 센서(Z)에 의해 생성된 데이터 및 에러카운트를 모두 클리어시킨다.Then, the microcontroller 20 clears all data and error counts generated by the sensor X, the sensor Y, and the sensor Z using the signals stored in the above-described area XYZERCOU.
표시부(40)는 제 1, 제 2, 제 3 표시부(41)(42)(43)로 이루어져 있으며, 상술한 마이크로 컨트롤러(20)에서 생성된 X, Y, Z 위치 측정용 데이터를 마이크로 프로세서(30)로부터 입력되는 제어신호에 응하여 제 1, 제 2, 제 3 표시부(41)(42)(43)에 각각 출력하여 사용자가 볼 수 있도록 한다.The display unit 40 includes the first, second, and third display units 41, 42, and 43. The display unit 40 stores the X, Y, and Z position measurement data generated by the microcontroller 20 as described above. In response to a control signal input from 30, the first, second, and third display units 41, 42, 43 are respectively output to be viewed by the user.
마이크로 프로세서(30)는 상술한 마이크로 컨트롤러(20)에서 생성된 위치 측정용 데이터를 일괄적으로 입력받을 수 있도록 상술한 마이크로 컨트롤러(20)로 제어신호를 출력하고, 상술한 마이크로 컨트롤러(20)에서 출력된 위치 측정용 데이터를 사용자가 볼 수 있도록 상술한 표시부(40)에 출력되도록 제어한다.The microprocessor 30 outputs a control signal to the above-described microcontroller 20 so that the position measurement data generated by the above-described microcontroller 20 can be collectively input, and the microcontroller 20 The output position measurement data is controlled to be output to the display unit 40 described above so that the user can see it.
여기서, 마이크로 프로세서(30)는 패널측을 관장하는 제어수단으로서, 마이크로 컨트롤러(20)로부터 입력되는 위치측정 데이터 및 그 위치에서의 에러 데이터를 표시부(40)에 표시되도록 제어하여 위치측정을 관리하는 관리자가 알 수 있도록 한다.Here, the microprocessor 30 is a control unit for controlling the panel side, and controls the position measurement by controlling the position measurement data input from the micro controller 20 and the error data at the position to be displayed on the display unit 40. Let your administrator know.
미설명 도면 부호 10은 발진회로부로서, 마이크로 컨트롤러(20)가 정상적으로 동작할 수 있도록 발진신호를 발생, 출력한다.Reference numeral 10 denotes an oscillation circuit, which generates and outputs an oscillation signal so that the microcontroller 20 can operate normally.
이와 같이 구성된 본 발명에 따른 위치 측정용 데이터 생성장치의 동작을 첨부한 도면을 참조하여 좀 더 구체적으로 설명한다.The operation of the position measuring data generating apparatus according to the present invention configured as described above will be described in more detail with reference to the accompanying drawings.
도 4는 본 발명에 따른 위치 측정용 데이터 생성방법을 설명하기 위한 동작 흐름도이고, 도 5는 도 4에 적용된 X축 처리과정의 상세 흐름도이다.4 is a flowchart illustrating a method of generating position measurement data according to the present invention, and FIG. 5 is a detailed flowchart of an X-axis processing process applied to FIG. 4.
도시된 바와 같이, 먼저 마이크로 컨트롤러(20)는 단자(RA0∼RA3)를 통해 입력되는 마이크로 프로세서(30)의 제어신호에 응하여 내부 메모리의 어드레스를 설정하고, 내부 메모리에 저장된 데이터(BX0∼ZERCNT)를 출력포트(RC0∼RC7)을 통해 마이크로 프로세서(30)로 출력하고, 이후의 어드레스는 X, Y, Z의 에러카운트를 클리어 시키면서 초기 설정 과정(S200)을 수행한다.As shown, first, the microcontroller 20 sets the address of the internal memory in response to the control signal of the microprocessor 30 input through the terminals RA0 to RA3, and stores the data BX0 to ZERCNT stored in the internal memory. Is output to the microprocessor 30 through the output ports RC0 to RC7, and the subsequent address performs an initial setting process (S200) while clearing error counts of X, Y, and Z.
그리고, 마이크로 컨트롤러(20)는 각 센서(X)(Y)(Z)의 출력 포트(XA)(XB)(YA)(YB)(ZA)(ZB)를 통해 포트(RB0∼RB5)로부터 입력되는 신호를 제 1 버퍼(도면에 미도시)에 임시로 저장하고, 제 1 버퍼와 제 2 버퍼(도면에 미도시)에 저장된 신호를 비교하고, 비교결과 동일한 경우 제 3 버퍼에 '0'를 저장하며, 비교결과 동일하지 않은 경우 제 3 버퍼에 '1'을 저장시킨다(S250).The microcontroller 20 is input from the ports RB0 to RB5 through the output ports XA, XB, YA, YB, ZA, and ZB of the respective sensors X, Y, and Z. Temporarily store the signal in the first buffer (not shown), compare the signals stored in the first buffer with the second buffer (not shown), and if the comparison result is equal to '0' If it is not the same as a result of the comparison, store the '1' in the third buffer (S250).
여기서, 제 1 버퍼는 현재 입력되는 신호를 저장하는 버퍼이며, 제 2 버퍼는 이전에 입력된 신호를 저장하는 버퍼이며, 제 3 버퍼는 상술한 제 1 버퍼 및 제 2 버퍼에 저장된 신호에 대해 배타적 논리합 연산을 취하여 두 버퍼에 저장된 신호가 동일한 경우 제 3 버퍼에는 '0' 신호를 저장하고, 동일하지 않은 경우 '1'이라는 신호를 저장한다.Here, the first buffer is a buffer for storing the currently input signal, the second buffer is a buffer for storing the previously input signal, the third buffer is exclusive to the signals stored in the above-described first buffer and the second buffer. If the signals stored in the two buffers are the same by performing the OR operation, the third buffer stores the '0' signal, and if not, stores the signal '1'.
그리고 나서, 마이크로 컨트롤러(20)는 모든 포트(RB0∼RB5)로 입력되는 신호가 변화되었는지를 판단한다(S300).Then, the microcontroller 20 determines whether the signals input to all the ports RB0 to RB5 have changed (S300).
상술한 바와 같이, 모든 포트(RB0∼RB5)로 입력되는 신호가 변화된 경우 X축 처리과정(S350)을 수행하고, X축 처리과정 수행 후 Y축 처리과정(S400)을 수행하며, Y축 처리과정 수행 후 Z 축 처리과정(S450)을 수행한 후 제 1 버퍼에 저장된 신호를 제 2 버퍼에 저장(S500)시키고 나서 상기 과정(S250)부터 재수행한다.As described above, when signals input to all ports RB0 to RB5 are changed, the X-axis processing is performed (S350), the X-axis processing is performed, then the Y-axis processing is performed (S400), and the Y-axis processing is performed. After performing the Z-axis process (S450), the signal stored in the first buffer is stored in the second buffer (S500), and the process is performed again from the process (S250).
만약, 과정(S300)의 판단 결과, 모든 포트(RB0∼RB5)로 입력되는 신호가 변화되지 않은 경우, 스트로브 신호()가 'O'인지를 판단(S550)한다.If, as a result of the determination in step S300, the signals input to all the ports RB0 to RB5 have not changed, the strobe signal ( ) Determines whether 'O' (S550).
상술한 바와 같이 스트로브 신호()가 '0'인 경우 플래그(F)가 '1'인지를 판단(S600)하고, 상기 스트로브 신호()가 '0'가 아닌 경우 플래그(F)가 '0' 인지를 판단(S700)한다.As described above, the strobe signal ( In the case where 0 is '0', it is determined whether the flag F is '1' (S600), and the strobe signal ( If) is not '0', it is determined whether the flag F is '0' (S700).
만약, 상술한 스트로브 신호()가 '0'이면서 플래그(F)가 '1'이 아닌 경우 명령을 수행하여 X, Y, Z축 상에서의 위치 측정 데이터를 생성하고, 플래그(F)를 '1'로 세팅(S650)하고, 상술한 스트로브 신호()가 '0'이면서 플래그(F)가 '1'인 경우 상술한 과정(S250)부터 반복 수행한다.If the strobe signal described above ( If) is '0' and flag (F) is not '1', perform command to generate position measurement data on X, Y, Z axis, set flag (F) to '1' (S650) , The strobe signal described above ( If 0) and the flag F is '1', the process is repeated from step S250.
한편, 상술한 스트로브 신호()가 '0'이 아니면서 플래그(F)가 '1'인 경우 신호()를 '1'로 세팅하고, 플래그(F)를 '0'로 세팅(S750)한 후 상술한 과정(S250)부터 반복 수행한다.On the other hand, the strobe signal described above ( ) Is not '0' and the flag (F) is '1' ) Is set to '1', the flag F is set to '0' (S750), and the process is repeated from the above-described process (S250).
여기서, 상술한 X축, Y축, Z축 처리 과정(S350)(S400)(S450)은 각각 X측 상에서, Y축 상에서, Z축 상에서 데이터를 생성하게 되나, 그 처리과정은 동일하므로 여기서는 X축 처리과정(S350)을 대표적으로 설명하기로 한다.Here, the above-described X-axis, Y-axis, and Z-axis processing (S350), (S400) (S450) generates data on the X-side, on the Y-axis, and on the Z-axis, respectively, but because the processing is the same, here X Axis processing (S350) will be described as representative.
먼저, 포트(RB0)으로부터 입력되는 신호(XA)를 이전에 입력된 신호와 비교해 볼 때 변화되었는지를 판단(S311)하고, 판단 결과, 포트(RB0)로 입력되는 신호(XA)가 변화되는 경우 현재 포트(RB0)로 입력되는 신호(XA)가 '1'인지를 판단(S312)한다.First, when comparing the signal XA input from the port RB0 with a signal input previously, it is determined whether it has been changed (S311), and as a result of the determination, the signal XA input to the port RB0 is changed. In operation S312, it is determined whether the signal XA input to the current port RB0 is '1'.
포트(RB0)로 입력되는 신호(XA)가 '1'이 아닌 경우 현재 포트(RB1)로 입력되는 신호(XB)가 '1'인지를 판단(S313)한다.When the signal XA input to the port RB0 is not '1', it is determined whether the signal XB currently input to the port RB1 is '1' (S313).
상술한 포트(RB0)로 입력되는 신호(XA)가 '1'이 아니면서 포트(RB1)로 입력되는 신호(XB)가 '1'인 경우 포트(RB1)로 입력되는 신호(BX)에 대해 그 누적치를 하나씩 감소(S314)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.For the signal BX input to the port RB1 when the signal XA input to the port RB1 is '1' and the signal XA input to the port RB0 is not '1'. The cumulative value is decreased one by one (S314), and then an error is checked to set an error flag in error (S317).
이때, 신호(XA) 및 (XB)의 변화가 2회 연속되면 에러 플래그(F)를 '1'로 세트하게 된다. 그리고 다축일 경우 어느 한축에 에러가 있을 경우 그 이하축의 에러는 체크하지 않는다.At this time, if the change of the signals XA and XB is continuous twice, the error flag F is set to '1'. If there is an error in one axis in case of multiple axes, the error of the next axis is not checked.
즉, 수행속도 이상으로 입력이 변화하면 에러가 출력된다.That is, an error is output when the input changes beyond the execution speed.
상술한 포트(RB0)로 입력되는 신호(XA)가 '1'이면서 포트(RB1)로 입력되는 신호(XB)가 '1'인지를 판단(S315)하고, 상술한 포트(RB0)로 입력되는 신호(XA)가 '1'이면서 포트(RB1)로 입력되는 신호(XB)가 '1'인 경우 포트(RB1)로 입력되는 신호(XB)에 대해 그 누적치를 하나씩 증감(S316)(S314)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.It is determined whether the signal XA input to the port RB0 described above is '1' and the signal XB input to the port RB1 is '1' (S315), and the input signal is input to the port RB0 described above. When the signal XA is '1' and the signal XB input to the port RB1 is '1', the cumulative value is increased or decreased one by one with respect to the signal XB input to the port RB1 (S316) (S314). After checking, the error is checked and an error flag is set in error (S317).
상술한 포트(RB0)로 입력되는 신호(XA)가 '1'이면서 포트(RB1)로 입력되는 신호(XB)가 '1'이 아닌 경우 포트(RB1)로 입력되는 신호(BX)에 대해 그 누적치를 하나씩 증가(S316)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다. 포트(RB1)로 입력되는 신호(XB)에 대해 그 누적치를 하나씩 증감(S316),(S314)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.When the signal XA input to the port RB0 described above is '1' and the signal XB input to the port RB1 is not '1', the signal BX input to the port RB1 is determined. The cumulative value is increased one by one (S316) and then the error is checked to set an error flag in error (S317). The cumulative values of the signal XB input to the port RB1 are increased or decreased one by one (S316) and (S314), and then an error is checked to set an error flag upon an error (S317).
상술한 포트(RB0)로 입력되는 신호(XA)가 '1'이 아니면서 포트(RB1)로 입력되는 신호(XB)가 '1'이 아닌 경우 포트(RB1)로 입력되는 신호(BX)에 대해 그 누적치를 하나씩 감소(S314)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.When the signal XA input to the port RB0 is not '1' and the signal XB input to the port RB1 is not '1', the signal BX input to the port RB1 is input. The cumulative value is decreased one by one (S314), and then an error is checked to set an error flag in error (S317).
상술한 포트(RB0)로 입력되는 신호(XA)를 이전 신호와 비교할 때 같은 경우, 포트(RB1)로 입력되는 신호(XB)가 변화되었는지를 판단(S318)한다.When comparing the signal XA input to the port RB0 described above with the previous signal, it is determined whether the signal XB input to the port RB1 has changed (S318).
상술한 과정(S318)의 판단 결과, 포트(RB1)로 입력되는 신호(XB)가 변화된 경우 상술한 포트(RB1)로 입력되는 신호(XB)가 '1'인지를 판단(S319)하고, 판단 결과 신호가 '1'이 아닌 경우 포트(RB0)로 입력되는 신호(XA)가 '1'인지를 재 판단(S320)하여 포트(RB0)로 입력되는 신호(XA)가 '1'인 경우 포트(RB1)로 입력되는 신호(XB)에 대해 그 누적치를 하나씩 증가(S316)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.As a result of the determination in step S318, when the signal XB input to the port RB1 is changed, it is determined whether the signal XB input to the port RB1 described above is '1' (S319). When the resultant signal is not '1', when the signal XA input to the port RB0 is '1' by re-determining whether the signal XA input to the port RB0 is '1' (S320), the port is '1'. The cumulative value is incremented one by one (S316) for the signal XB inputted to (RB1), and then an error is checked to set an error flag in error (S317).
상술한 포트(RB1)로 입력되는 신호(XB)가 '1'이면서 포트(RB0)로 입력되는 신호(XA)가 '1'인 경우 포트(RB1)로 입력되는 신호(BX)에 대해 그 누적치를 하나씩 감소(S314)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.When the signal XB inputted to the port RB1 is '1' and the signal XA inputted to the port RB0 is '1', the cumulative value for the signal BX inputted to the port RB1 is set. Decrement by one (S314) and then check the error to set the error flag in error (S317).
상기 포트(RB1)로 입력되는 신호(XB)가 '1'이면서 포트(RB0)로 입력되는 신호(XA)가 '1'이 아닌 경우 포트(RB1)로 입력되는 신호(XB)에 대해 그 누적치를 하나씩 증가(S316)시킨 후 에러를 체크하여 에러시 에러 플래그를 세팅(S317)한다.When the signal XB input to the port RB1 is '1' and the signal XA input to the port RB0 is not '1', the cumulative value for the signal XB input to the port RB1 is Increase by one (S316) and then check the error to set an error flag in error (S317).
상술한 바와 같이 Y축 및 Z축 처리과정은 도 5의 흐름도에서 X축 처리과정에서 포트(RB0)(RB1)로 입력되는 신호에 대신에 포트(RB2)(RB3) 및 포트(RB4)(RB5)로 입력되는 신호(YA)(YB) 및 (ZA)(ZB)를 처리하여 누적치(BY) 및 (BZ)을 산출하여 위치 측정용 데이터를 생성하는 것으로서 그 상세한 설명은 생략하기로 한다.As described above, the Y-axis and Z-axis processing is performed on the ports RB2 and RB3 and RB4 and RB5 instead of the signals input to the ports RB0 and RB1 during the X-axis processing in the flowchart of FIG. 5. The cumulative values BY and BZ are calculated by processing the signals YA (YB) and (ZA) (ZB) inputted as), and thus the detailed description thereof will be omitted.
상술한 바와 같은 위치 측정용 데이터 생성장치는 일반 컴퓨터 칩과 인터페이스가 가능하도록 구성되어 있으며, 마이크로 칩을 이용하는 경우 버젼업이 용이하다.The position measuring data generating apparatus as described above is configured to interface with a general computer chip, and is easily upgraded when using a microchip.
따라서, 상술한 바와 같이 본 발명은 위치 조정용 데이터를 생성하는 엔코더를 별도의 프로그램을 내장하고, 이에 따라 모든 동작을 수행하는 마이크로 컨트롤러를 이용하여 구현함으로써 위치 조정용 데이터를 초고속으로 생성시킬 수 있음과 동시에 마이크로 컨트롤러의 부품 자체의 사이즈가 작아지게 될 뿐만 아니라 하나의 마이크로 컨트롤러를 구현하기 위해 소요되는 개발 및 생산비용이 현격히 감소된다는 효과를 제공한다.Therefore, as described above, the present invention can generate the positioning data at a high speed by implementing an encoder for generating the positioning data by using a microcontroller that incorporates a separate program and performs all operations accordingly. Not only will the components of the microcontroller itself become smaller, but the development and production costs required to implement a single microcontroller will be significantly reduced.
상기에서는 본 발명의 바람직한 실시 예를 참조하여 설명하였지만, 해당 기술분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경할 수 있음을 이해할 수 있을 것이다.Although described above with reference to a preferred embodiment of the present invention, those skilled in the art will be variously modified and changed within the scope of the invention without departing from the spirit and scope of the invention described in the claims below It will be appreciated.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990044116A KR100349440B1 (en) | 1999-10-12 | 1999-10-12 | Data generation apparatus for position measurement and data generation method for the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990044116A KR100349440B1 (en) | 1999-10-12 | 1999-10-12 | Data generation apparatus for position measurement and data generation method for the same |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20010036915A true KR20010036915A (en) | 2001-05-07 |
KR100349440B1 KR100349440B1 (en) | 2002-08-22 |
Family
ID=19615036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019990044116A KR100349440B1 (en) | 1999-10-12 | 1999-10-12 | Data generation apparatus for position measurement and data generation method for the same |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100349440B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086723A (en) * | 2018-12-12 | 2022-09-20 | 西安万像电子科技有限公司 | Data transmission method and system |
-
1999
- 1999-10-12 KR KR1019990044116A patent/KR100349440B1/en not_active IP Right Cessation
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086723A (en) * | 2018-12-12 | 2022-09-20 | 西安万像电子科技有限公司 | Data transmission method and system |
CN115086723B (en) * | 2018-12-12 | 2024-02-20 | 西安万像电子科技有限公司 | Data transmission method and system |
Also Published As
Publication number | Publication date |
---|---|
KR100349440B1 (en) | 2002-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61254792A (en) | Positioning device for boom of rock drill | |
US5291393A (en) | NC machine tool apparatus having means for producing NC work program and method thereof | |
US5619734A (en) | Programmable controller and method of operation thereof | |
KR100349440B1 (en) | Data generation apparatus for position measurement and data generation method for the same | |
CN101604276A (en) | Universal serial bus testing method | |
US5508721A (en) | Display unit having automatic testing function | |
CN111684373A (en) | Input/output control unit, programmable logic controller and inspection system | |
JPH0454629A (en) | Image display device | |
JP2002082133A (en) | Waveform display device | |
JP5184533B2 (en) | Controller for automatic control of machining parameters with full integration of gauge system into machine control | |
JPH1185446A (en) | Method for displaying trend graph | |
JPS61184606A (en) | Machine's position detector | |
EP0419672A1 (en) | Method of plotting tool shape | |
CN112446103A (en) | Machining program generation support device | |
JP3034583B2 (en) | Inspection order setting device for probe movable circuit board inspection device | |
EP4293449A1 (en) | Machine tool, machine tool control method, and machine tool control program | |
JPH0614330B2 (en) | Microprocessor device | |
JPH0519824A (en) | Numerical controller and work attitude detection device | |
JPS6063610A (en) | Numerical controller with graphic display device capable of drawing clamping device | |
JPS63116214A (en) | Programming device | |
JPH05318278A (en) | X-y table drive control device of machine tool | |
JP2707031B2 (en) | Method and apparatus for checking machining program | |
JP2733926B2 (en) | Production ratio control device | |
JP2000337316A (en) | Cylinder device with stroke sensor | |
CN114967813A (en) | Reference voltage calibration method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
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: 20100809 Year of fee payment: 9 |
|
LAPS | Lapse due to unpaid annual fee |