KR19990018440A - Robot Control Method - Google Patents

Robot Control Method Download PDF

Info

Publication number
KR19990018440A
KR19990018440A KR1019970041616A KR19970041616A KR19990018440A KR 19990018440 A KR19990018440 A KR 19990018440A KR 1019970041616 A KR1019970041616 A KR 1019970041616A KR 19970041616 A KR19970041616 A KR 19970041616A KR 19990018440 A KR19990018440 A KR 19990018440A
Authority
KR
South Korea
Prior art keywords
robot
frame
address
byte
data
Prior art date
Application number
KR1019970041616A
Other languages
Korean (ko)
Other versions
KR100224865B1 (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 KR1019970041616A priority Critical patent/KR100224865B1/en
Publication of KR19990018440A publication Critical patent/KR19990018440A/en
Application granted granted Critical
Publication of KR100224865B1 publication Critical patent/KR100224865B1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • 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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Numerical Control (AREA)
  • Manipulator (AREA)

Abstract

본 발명의 로봇 제어 방법은, (11) PC를 사용하여 로봇 제어 프로그램을 작성하는 단계를 포함한다. 다음에 (12) 작성된 로봇 제어 프로그램을 실행하여, 그 명령어들을 직렬 데이터 통신 규격에 따라 로봇 제어기에 전송한다. 다음에 (13) 로봇 제어기에 입력된 직렬 데이터 프레임이 로봇 구동 프레임에 해당되는지를 판별한다. (14) 직렬 데이터 프레임이 로봇 구동 프레임에 해당되면, 그중에서 로봇 구동에 사용되는 구동 데이터만을 추출하여, 순차적으로 램에 저장한다. 또한, (15) 램에 저장된 순서대로 구동 데이터를 판독하여, 이에 해당된 로봇 구동 루틴을 실행한다. (16) 직렬 데이터 프레임이 로봇 구동 프레임에 해당되지 않으면, 이에 해당된 서비스 루틴을 실행한다.The robot control method of the present invention includes (11) creating a robot control program using a PC. Next, (12) the created robot control program is executed and the instructions are transmitted to the robot controller according to the serial data communication standard. (13) Then, it is determined whether the serial data frame input to the robot controller corresponds to the robot drive frame. (14) When the serial data frame corresponds to the robot drive frame, only the drive data used for driving the robot is extracted therefrom and sequentially stored in the RAM. (15) The drive data is read in the order stored in the RAM, and the robot drive routine corresponding thereto is executed. (16) If the serial data frame does not correspond to the robot drive frame, the corresponding service routine is executed.

Description

로봇 제어 방법Robot Control Method

본 발명은 로봇 제어 방법에 관한 것이다.The present invention relates to a robot control method.

도 1에는 종래의 로봇 제어 방법이 개략적으로 도시되어 있다. 도면을 참조하여 종래의 로봇 제어 방법을 순차적으로 설명한다.1 schematically shows a conventional robot control method. Referring to the drawings, a conventional robot control method will be described in sequence.

먼저 사용자는 로봇 제어기(12)에 내장된 기본 제어 프로그램을 로딩한다. 다음에 로봇 전용 입력 장치인 티칭 팬던트(Teaching Pendant, 11)를 사용하여 로봇 제어 프로그램을 작성한다. 이때, 로봇 제어 프로그램의 작성 도중에 로봇(13)은 구동되지 않는다. 상기 기본 제어 프로그램은 로봇 시스템의 기종 별로 서로 다른 특수 언어로 작성되어 있고, 그 특성상 로봇(13)을 단계적으로 제어할 수 없다. 즉, 티칭 팬던트(11)에 의하여 기본 제어 프로그램이 완성됨으로써 그 실행이 가능하다. 따라서, 사용자는 로봇을 구동하지 못한 상태에서 로봇 제어 프로그램을 작성해야 한다. 이와 같이 완성된 로봇 제어 프로그램이 로봇 제어기(12)에서 로딩되고 실행됨으로써, 로봇(13)의 제어가 가능하다.First, the user loads the basic control program embedded in the robot controller 12. Next, a robot control program is created using a teaching pendant (11), which is a robot-only input device. At this time, the robot 13 is not driven during the creation of the robot control program. The basic control program is written in different special languages for each model of the robot system, and the robot 13 cannot be controlled step by step due to its characteristics. That is, the basic pendant program can be executed by the teaching pendant 11. Therefore, the user must write a robot control program in a state in which the robot cannot be driven. The robot control program thus completed is loaded and executed in the robot controller 12, thereby enabling the control of the robot 13.

상기와 같은 종래의 로봇 제어 방법은, 사용자가 로봇을 구동하지 못한 상태에서 로봇 제어 프로그램을 작성해야 하므로, 사용자의 경험 및 상상력에 의존하여 로봇 제어 프로그램이 작성된다. 이에 따라, 로봇 제어의 용이성, 정확도 및 정밀도가 떨어질 뿐만 아니라, 그 응용 범위가 제한된다.In the conventional robot control method as described above, the robot control program must be created in a state in which the user does not drive the robot, so that the robot control program is created depending on the user's experience and imagination. This not only reduces the ease, accuracy and precision of robot control, but also limits its application range.

본 발명의 목적은, PC를 사용하여 로봇을 단계적으로 제어할 수 있는 로봇 제어 방법을 제공하는 것이다.An object of the present invention is to provide a robot control method capable of controlling the robot step by step using a PC.

도 1은 종래의 로봇 제어 방법을 나타낸 개략적 블록도이다.1 is a schematic block diagram showing a conventional robot control method.

도 2는 본 발명에 따른 로봇 제어 방법을 나타낸 개략적 블록도이다.2 is a schematic block diagram showing a robot control method according to the present invention.

도 3은 도 2의 방법을 실현하기 위한 알고리듬의 흐름도이다.3 is a flowchart of an algorithm for realizing the method of FIG.

도 4는 도 3의 알고리듬에 적용되는 로봇 구동 프레임의 구성도이다.4 is a block diagram of a robot driving frame applied to the algorithm of FIG.

도 5는 도 3의 알고리듬에 적용되는 램의 제어 블록도이다.FIG. 5 is a control block diagram of a RAM applied to the algorithm of FIG. 3.

도 6은 도 3의 알고리듬에서 단계 34를 수행하기 위한 상세 알고리듬의 흐름도이다.6 is a flowchart of a detailed algorithm for performing step 34 in the algorithm of FIG.

도 7은 도 3의 알고리듬에서 단계 35를 수행하기 위한 상세 알고리듬의 흐름도이다.7 is a flowchart of a detailed algorithm for performing step 35 in the algorithm of FIG.

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

21...PC, 22...로봇 제어기,21 ... PC, 22 ... robot controller,

23...로봇, 41...로봇 구동 프레임,23 robot, 41 robot driven frame,

51...램, 52...실행 포인터,51 ... RAM, 52 ... execution pointer,

53...저장 포인터.53 ... storage pointer.

상기 목적을 달성하기 위한 본 발명의 로봇 제어 방법은, (11) PC를 사용하여 로봇 제어 프로그램을 작성하는 단계를 포함한다. 다음에 (12) 작성된 로봇 제어 프로그램을 실행하여, 그 명령어들을 직렬 데이터 통신 규격에 따라 로봇 제어기에 전송한다. 다음에 (13) 로봇 제어기에 입력된 직렬 데이터 프레임이 로봇 구동 프레임에 해당되는지를 판별한다. (14) 상기 직렬 데이터 프레임이 로봇 구동 프레임에 해당되면, 그중에서 로봇 구동에 사용되는 구동 데이터만을 추출하여, 순차적으로 램에 저장한다. 또한, (15) 상기 램에 저장된 순서대로 구동 데이터를 판독하여, 이에 해당된 로봇 구동 루틴을 실행한다. (16) 상기 직렬 데이터 프레임이 로봇 구동 프레임에 해당되지 않으면, 이에 해당된 서비스 루틴을 실행한다.The robot control method of the present invention for achieving the above object includes (11) creating a robot control program using a PC. Next, (12) the created robot control program is executed and the instructions are transmitted to the robot controller according to the serial data communication standard. (13) Then, it is determined whether the serial data frame input to the robot controller corresponds to the robot drive frame. (14) When the serial data frame corresponds to the robot drive frame, only the drive data used for driving the robot is extracted therefrom and sequentially stored in the RAM. (15) The drive data is read in the order stored in the RAM, and the robot driving routine corresponding thereto is executed. (16) If the serial data frame does not correspond to the robot drive frame, the corresponding service routine is executed.

본 발명에 따른 상기 로봇 제어 프로그램의 명령어들은 직렬 데이터 통신 규격에 따라 로봇 제어기에 전송되므로, PC에 의하여 로봇이 단계적으로 제어될 수 있다.Since the commands of the robot control program according to the present invention are transmitted to the robot controller according to the serial data communication standard, the robot can be controlled step by step by the PC.

바람직하게는, 상기 직렬 데이터 프레임은 헤더 바이트, 토큰 바이트, 텍스트 시작 바이트, 에러 정보 바이트, 데이터 바이트, 그룹 정보 바이트, 점검(checksum) 바이트 및 텍스트 종료 바이트가 직렬 연결된다. 상기 헤더 바이트는 프레임의 시작 위치를 알려준다. 상기 토큰 바이트는 프레임의 기능적 종류를 알려준다. 상기 텍스트 시작 바이트는 텍스트의 시작을 알려준다. 상기 에러 정보 바이트는 에러 발생시 에러 번호를 알려주기 위하여 마련된다. 상기 데이터 바이트에는 실제 유효 정보가 저장된다. 상기 그룹 정보 바이트는 프레임의 그룹 정보를 알려주기 위하여 마련된다. 상기 점검 바이트는 프레임의 통신 에러 유무를 확인할 때 사용된다. 상기 텍스트 종료 바이트는 텍스트의 종료를 알려준다.Advantageously, said serial data frame is serially concatenated with a header byte, token byte, text start byte, error information byte, data byte, group information byte, checksum byte and text end byte. The header byte indicates the start position of the frame. The token byte indicates the functional type of the frame. The text start byte indicates the start of the text. The error information byte is provided to inform the error number when an error occurs. Actual data is stored in the data byte. The group information byte is provided to inform group information of a frame. The check byte is used to confirm the communication error of the frame. The text end byte indicates the end of the text.

한편으로는, 상기 단계 (13)은 상기 토큰 바이트의 정보에 따라 수행된다. 상기 에러 정보 바이트 및 데이터 바이트는 각각 복수의 바이트들로 되어 있다. 상기 단계 (14) 및 (15)는 실행 포인터 및 저장 포인터를 사용하여 수행된다. 상기 실행 포인터는, 상기 램에 순차적으로 저장된 구동 데이터 중에서, 현재 실행될 구동 데이터의 어드레스를 가리킨다. 상기 저장 포인터는 상기 램에 현재 저장될 구동 데이터의 어드레스를 가리킨다.On the one hand, step (13) is performed according to the information of the token byte. The error information byte and the data byte each consist of a plurality of bytes. Steps (14) and (15) are performed using an execution pointer and a storage pointer. The execution pointer indicates an address of the drive data to be currently executed among the drive data sequentially stored in the RAM. The storage pointer indicates an address of driving data to be currently stored in the RAM.

상기 단계 (14)는, 상기 실행 포인터의 어드레스와 상기 저장 포인터의 어드레스와의 차를 계산하는 단계를 포함한다. 계산된 어드레스의 차가 상기 램의 최종 어드레스와 같으면, 용량 에러 신호를 상기 PC에 전송한다. 계산된 어드레스의 차가 상기 램의 최종 어드레스보다 적으면, 상기 저장 포인터의 어드레스에 상기 구동 데이터를 저장한다.Step 14 includes calculating a difference between the address of the execution pointer and the address of the storage pointer. If the difference of the calculated address is equal to the last address of the RAM, a capacity error signal is sent to the PC. If the difference of the calculated address is smaller than the last address of the RAM, the driving data is stored at an address of the storage pointer.

상기 단계 (15)는, 상기 실행 포인터가 가리킨 어드레스의 구동 데이터를 판독하는 단계를 포함한다. 다음에 상기 실행 포인터의 어드레스를 다음 어드레스로 증가시킨다. 다음에 판독된 구동 데이터에 해당되는 구동 루틴의 실행 가능 여부를 판단한다. 상기 구동 루틴의 실행이 불가능하다고 판단되면, 제1 실행 에러 신호를 상기 PC에 전송한다. 상기 구동 루틴의 실행이 가능하다고 판단되면 이를 실행한다. 상기 구동 루틴의 실행중에 에러가 발생되면, 제2 실행 에러 신호를 상기 PC에 전송한다.The step (15) includes reading drive data of an address indicated by the execution pointer. Next, the address of the execution pointer is incremented to the next address. Next, it is determined whether or not the driving routine corresponding to the read drive data is executable. If it is determined that execution of the driving routine is impossible, a first execution error signal is transmitted to the PC. If it is determined that the driving routine can be executed, it is executed. If an error occurs during execution of the drive routine, a second execution error signal is sent to the PC.

이하 본 발명에 따른 바람직한 실시예를 상세히 설명한다.Hereinafter, preferred embodiments of the present invention will be described in detail.

도 2를 참조하면, 본 발명에 따른 로봇 제어 방법은, PC(21)를 사용하여 로봇 제어 프로그램을 작성하는 단계를 포함한다. 다음에 작성된 로봇 제어 프로그램을 실행하여, 그 명령어들을 직렬 데이터 통신 규격에 따라 로봇 제어기(22)에 전송한다. 이에 따라 로봇 제어기(22)는, 아래에 설명되어 있는 알고리듬에 따라 로봇(23)을 단계적으로 제어할 수 있다.Referring to FIG. 2, the robot control method according to the present invention includes creating a robot control program using the PC 21. The robot control program created next is executed and the instructions are transmitted to the robot controller 22 according to the serial data communication standard. Accordingly, the robot controller 22 can control the robot 23 step by step according to the algorithm described below.

도 3에는 도 2의 방법을 실현하기 위한 알고리듬이 도시되어 있다. 이를 상술하면, 먼저 PC(21)를 사용하여 로봇 제어 프로그램을 작성한다(단계 31). 다음에 작성된 로봇 제어 프로그램을 실행하여, 그 명령어들을 직렬 데이터 통신 규격에 따라 로봇 제어기(22)에 전송한다(단계 32). 다음에 로봇 제어기(22)에 입력된 직렬 데이터 프레임이 로봇 구동 프레임에 해당되는지를 판별한다(단계 33). 직렬 데이터 프레임이 로봇 구동 프레임에 해당되면, 그중에서 로봇 구동에 사용되는 구동 데이터만을 추출하여, 순차적으로 램에 저장한다(단계 34). 또한, 램에 저장된 순서대로 구동 데이터를 판독하여, 이에 해당된 로봇 구동 루틴을 실행한다(단계 35). 직렬 데이터 프레임이 로봇 구동 프레임에 해당되지 않으면, 이에 해당된 서비스 루틴을 실행한다(단계 36). 상기 단계 33부터 36까지는 실행 종료 명령이 입력될 때까지 반복된다(단계 37).3 shows an algorithm for realizing the method of FIG. 2. In detail, first, the robot control program is created using the PC 21 (step 31). The robot control program created next is executed and the instructions are transmitted to the robot controller 22 according to the serial data communication standard (step 32). Next, it is determined whether the serial data frame input to the robot controller 22 corresponds to the robot drive frame (step 33). If the serial data frame corresponds to the robot drive frame, only the drive data used for driving the robot is extracted therefrom and sequentially stored in the RAM (step 34). In addition, the drive data is read in the order stored in the RAM, and the robot drive routine corresponding thereto is executed (step 35). If the serial data frame does not correspond to the robot drive frame, the corresponding service routine is executed (step 36). Steps 33 to 36 are repeated until the execution end command is input (step 37).

도 4에는 도 3의 알고리듬에 적용되는 로봇 구동 프레임의 구성이 도시되어 있다. 도 4를 참조하면, 본 발명에 따른 상기 직렬 데이터 프레임(41)은 헤더 바이트(SOH), 토큰 바이트(TOK), 텍스트 시작 바이트(STX), 에러 정보 바이트(ER1, ER2), 데이터 바이트(DATA), 그룹 정보 바이트(GS), 점검 바이트(CS) 및 텍스트 종료 바이트(ETX)가 직렬 연결된다. 헤더 바이트(SOH)는 프레임(41)의 시작 위치를 알려준다. 토큰 바이트(TOK)는 프레임(41)의 기능적 종류를 알려준다. 텍스트 시작 바이트(STX)는 텍스트의 시작을 알려준다. 에러 정보 바이트(ER1, ER2)는 에러 발생시 에러 번호를 알려주기 위하여 마련된다. 데이터 바이트(DATA)에는 실제 유효 정보가 저장된다. 그룹 정보 바이트(GS)는 프레임(41)의 그룹 정보를 알려주기 위하여 마련된다. 점검 바이트(CS)는 프레임(41)의 통신 에러 유무를 확인할 때 사용된다. 텍스트 종료 바이트(ETX)는 텍스트의 종료를 알려준다.4 shows the configuration of a robot drive frame applied to the algorithm of FIG. Referring to FIG. 4, the serial data frame 41 according to the present invention includes a header byte SOH, a token byte TOK, a text start byte STX, an error information byte ER1, ER2, and a data byte DATA. ), The group information byte GS, the check byte CS and the text end byte ETX are connected in series. The header byte SOH indicates the start position of the frame 41. The token byte TOK indicates the functional type of the frame 41. The text start byte (STX) indicates the start of the text. Error information bytes ER1 and ER2 are provided to inform the error number when an error occurs. Actual valid information is stored in the data byte DATA. The group information byte GS is provided to inform group information of the frame 41. The check byte CS is used to confirm the presence or absence of a communication error in the frame 41. The text end byte (ETX) indicates the end of the text.

상기 단계 33(도 3을 참조)은 토큰 바이트(TOK)의 정보에 따라 수행된다. 한편, 에러 정보 바이트(ER1, ER2) 및 데이터 바이트(DATA)는 각각 복수의 바이트들로 되어 있다.Step 33 (see FIG. 3) is performed according to the information of the token byte TOK. On the other hand, the error information bytes ER1 and ER2 and the data byte DATA each consist of a plurality of bytes.

도 5를 참조하면, 도 3의 알고리듬에서 단계 (34) 및 (35)는 실행 포인터(52) 및 저장 포인터(53)를 사용하여 수행된다. 실행 포인터(52)는, 램(51)에 순차적으로 저장된 구동 데이터 중에서, 현재 실행될 구동 데이터의 어드레스를 가리킨다. 저장 포인터(53)는 램(51)에 현재 저장될 구동 데이터의 어드레스를 가리킨다.Referring to FIG. 5, steps 34 and 35 in the algorithm of FIG. 3 are performed using an execution pointer 52 and a storage pointer 53. The execution pointer 52 indicates an address of the drive data to be executed currently among the drive data sequentially stored in the RAM 51. The storage pointer 53 indicates the address of the drive data to be currently stored in the RAM 51.

도 6에는 도 3의 알고리듬에서 단계 34를 수행하기 위한 상세 알고리듬이 도시되어 있다. 이를 상술하면, 먼저 실행 포인터(도 5의 52)의 어드레스와 저장 포인터(도 5의 53)의 어드레스와의 차를 계산한다(단계 341). 계산된 어드레스의 차가 램(도 5의 51)의 최종 어드레스와 같으면, 용량 에러 신호를 PC(도 2의 21)에 전송한다(단계 342 및 344). 계산된 어드레스의 차가 램(51)의 최종 어드레스보다 적으면, 저장 포인터(53)의 어드레스에 상기 구동 데이터를 저장한다.6 shows a detailed algorithm for performing step 34 in the algorithm of FIG. In detail, first, the difference between the address of the execution pointer (52 in FIG. 5) and the address of the storage pointer (53 in FIG. 5) is calculated (step 341). If the difference in the calculated addresses is equal to the final address of the RAM (51 in FIG. 5), a capacitance error signal is transmitted to the PC (21 in FIG. 2) (steps 342 and 344). If the difference of the calculated address is smaller than the final address of the RAM 51, the drive data is stored in the address of the storage pointer 53.

도 7에는 도 3의 알고리듬에서 단계 35를 수행하기 위한 상세 알고리듬이 도시되어 있다. 이를 상술하면, 먼저 실행 포인터(도 5의 52)가 가리킨 어드레스의 구동 데이터를 판독한다(단계 351). 다음에 실행 포인터(52)의 어드레스를 다음 어드레스로 증가시킨다(단계 352). 다음에 판독된 구동 데이터에 해당되는 구동 루틴의 실행 가능 여부를 판단한다(단계 353). 해당되는 구동 루틴의 실행이 불가능하다고 판단되면, 제1 실행 에러 신호를 PC(도 2의 21)에 전송한다(단계 355). 해당되는 구동 루틴의 실행이 가능하다고 판단되면 이를 실행한다(단계 354). 상기 구동 루틴의 실행중에 에러가 발생되면(단계 356), 제2 실행 에러 신호를 PC(21)에 전송한다(단계 357).FIG. 7 shows a detailed algorithm for performing step 35 in the algorithm of FIG. 3. In detail, first, the drive data of the address indicated by the execution pointer (52 in Fig. 5) is read (step 351). Next, the address of the execution pointer 52 is incremented to the next address (step 352). Next, it is determined whether or not the driving routine corresponding to the read drive data is executable (step 353). If it is determined that execution of the corresponding driving routine is impossible, the first execution error signal is transmitted to the PC (21 in FIG. 2) (step 355). If it is determined that the corresponding driving routine can be executed, it is executed (step 354). If an error occurs during execution of the drive routine (step 356), a second execution error signal is sent to the PC 21 (step 357).

이상 설명된 바와 같이, 본 발명에 따른 로봇 제어 방법에 의하면, PC를 사용하여 로봇을 단계적으로 제어할 수 있으므로, 로봇 제어의 사용성, 정확도 및 정밀도가 높아지고 그 응용 범위가 넓어진다.As described above, according to the robot control method according to the present invention, since the robot can be controlled step by step using a PC, the usability, accuracy and precision of the robot control is increased and its application range is widened.

본 발명은 상기 실시예에 한정되지 않고, 당업자의 수준에서 그 변형 및 개량이 가능하다.The present invention is not limited to the above embodiments, and modifications and improvements are possible at the level of those skilled in the art.

Claims (7)

(11) PC를 사용하여 로봇 제어 프로그램을 작성하는 단계;(11) creating a robot control program using a PC; (12) 작성된 로봇 제어 프로그램을 실행하여, 그 명령어들을 직렬 데이터 통신 규격에 따라 로봇 제어기에 전송하는 단계;(12) executing the created robot control program and transmitting the instructions to the robot controller according to the serial data communication standard; (13) 로봇 제어기에 입력된 직렬 데이터 프레임이 로봇 구동 프레임에 해당되는지를 판별하는 단계;(13) determining whether the serial data frame input to the robot controller corresponds to the robot drive frame; (14) 상기 직렬 데이터 프레임이 로봇 구동 프레임에 해당되면, 그중에서 로봇 구동에 사용되는 구동 데이터만을 추출하여, 순차적으로 램에 저장하는 단계;(14) if the serial data frame corresponds to a robot drive frame, extracting only drive data used for driving the robot from among the serial data frames, and sequentially storing the drive data in the RAM; (15) 상기 램에 저장된 순서대로 구동 데이터를 판독하여, 이에 해당된 로봇 구동 루틴을 실행하는 단계; 및(15) reading the drive data in the order stored in the RAM and executing a robot driving routine corresponding thereto; And (16) 상기 직렬 데이터 프레임이 로봇 구동 프레임에 해당되지 않으면, 이에 해당된 서비스 루틴을 실행하는 단계;를 포함한 것을 특징으로 하는 로봇 제어 방법.(16) if the serial data frame does not correspond to the robot drive frame, executing a service routine corresponding thereto. 제1항에 있어서, 상기 직렬 데이터 프레임은,The method of claim 1, wherein the serial data frame, 프레임의 시작 위치를 알려주는 헤더 바이트;A header byte indicating the start position of the frame; 프레임의 기능적 종류를 알려주는 토큰 바이트;A token byte indicating the functional type of the frame; 텍스트의 시작을 알려주는 텍스트 시작 바이트;A text start byte indicating the start of the text; 에러 발생시 에러 번호를 알려주기 위한 에러 정보 바이트;An error information byte for indicating an error number when an error occurs; 실제 유효 정보가 저장되는 데이터 바이트;A data byte in which actual valid information is stored; 프레임의 그룹 정보를 알려주기 위한 그룹 정보 바이트;Group information bytes for indicating group information of the frame; 프레임의 통신 에러 유무를 확인할 때 사용되는 점검 바이트; 및A check byte used to check whether a frame has a communication error; And 텍스트의 종료를 알려주는 텍스트 종료 바이트;가 직렬 연결된 것을 특징으로 하는 로봇 제어 방법.And a text end byte indicating the end of the text. 제2항에 있어서, 상기 단계 (13)은,The method of claim 2, wherein step (13) 상기 토큰 바이트의 정보에 따라 수행되는 것을 특징으로 하는 로봇 제어 방법.Robot control method, characterized in that performed according to the information of the token byte. 제2항에 있어서, 상기 에러 정보 바이트 및 데이터 바이트는,The method of claim 2, wherein the error information byte and data byte, 각각 복수의 바이트들로 된 것을 특징으로 하는 로봇 제어 방법.Robot control method, characterized in that each consisting of a plurality of bytes. 제1항에 있어서, 상기 단계 (14) 및 (15)는,The method of claim 1, wherein steps (14) and (15) 상기 램에 순차적으로 저장된 구동 데이터 중에서, 현재 실행될 구동 데이터의 어드레스를 가리키는 실행 포인터; 및An execution pointer indicating an address of the drive data to be currently executed among the drive data sequentially stored in the RAM; And 상기 램에 현재 저장될 구동 데이터의 어드레스를 가리키는 저장 포인터;를 사용하여 수행되는 것을 특징으로 하는 로봇 제어 방법.And a storage pointer indicating an address of driving data to be stored in the RAM. 제5항에 있어서, 상기 단계 (14)는,The method of claim 5, wherein step (14) comprises 상기 실행 포인터의 어드레스와 상기 저장 포인터의 어드레스와의 차를 계산하는 단계;Calculating a difference between an address of the execution pointer and an address of the storage pointer; 계산된 어드레스의 차가 상기 램의 최종 어드레스와 같으면, 용량 에러 신호를 상기 PC에 전송하는 단계; 및If the difference of the calculated address is equal to the last address of the RAM, sending a capacity error signal to the PC; And 계산된 어드레스의 차가 상기 램의 최종 어드레스보다 적으면, 상기 저장 포인터의 어드레스에 상기 구동 데이터를 저장하는 단계;를 포함한 것을 특징으로 하는 로봇 제어 방법.And storing the driving data at an address of the storage pointer if the difference of the calculated address is smaller than the final address of the RAM. 제5항에 있어서, 상기 단계 (15)는,The method of claim 5, wherein step (15) 상기 실행 포인터가 가리킨 어드레스의 구동 데이터를 판독하는 단계;Reading drive data of an address indicated by the execution pointer; 상기 실행 포인터의 어드레스를 다음 어드레스로 증가시키는 단계;Incrementing the address of the execution pointer to a next address; 판독된 구동 데이터에 해당되는 구동 루틴의 실행 가능 여부를 판단하는 단계;Determining whether the driving routine corresponding to the read driving data is executable; 상기 구동 루틴의 실행이 불가능하다고 판단되면, 제1 실행 에러 신호를 상기 PC에 전송하는 단계;If it is determined that execution of the driving routine is impossible, transmitting a first execution error signal to the PC; 상기 구동 루틴의 실행이 가능하다고 판단되면 이를 실행하는 단계; 및Executing the driving routine when it is determined that the execution routine is possible; And 상기 구동 루틴의 실행중에 에러가 발생되면, 제2 실행 에러 신호를 상기 PC에 전송하는 단계;를 포함한 것을 특징으로 하는 로봇 제어 방법.And if an error occurs during execution of the driving routine, transmitting a second execution error signal to the PC.
KR1019970041616A 1997-08-27 1997-08-27 Method for controlling a robot KR100224865B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970041616A KR100224865B1 (en) 1997-08-27 1997-08-27 Method for controlling a robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970041616A KR100224865B1 (en) 1997-08-27 1997-08-27 Method for controlling a robot

Publications (2)

Publication Number Publication Date
KR19990018440A true KR19990018440A (en) 1999-03-15
KR100224865B1 KR100224865B1 (en) 1999-10-15

Family

ID=19518902

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970041616A KR100224865B1 (en) 1997-08-27 1997-08-27 Method for controlling a robot

Country Status (1)

Country Link
KR (1) KR100224865B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100812986B1 (en) * 2006-08-08 2008-03-13 (주)다사로봇 Multi-channel Robot Control System

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100812986B1 (en) * 2006-08-08 2008-03-13 (주)다사로봇 Multi-channel Robot Control System

Also Published As

Publication number Publication date
KR100224865B1 (en) 1999-10-15

Similar Documents

Publication Publication Date Title
CN112131172A (en) PCIe equipment chip initialization method for reducing time delay
US7251706B2 (en) System and method for updating firmware in a non-volatile memory without using a processor
US8914602B2 (en) Display controller having an embedded non-volatile memory divided into a program code block and a data block and method for updating parameters of the same
JPS6160443B2 (en)
CN112925569A (en) Firmware data processing method, device, equipment and storage medium
US5295233A (en) Controller for printing apparatus
JPH01314177A (en) Printing apparatus
KR100224865B1 (en) Method for controlling a robot
US6182207B1 (en) Microcontroller with register system for the indirect accessing of internal memory via auxiliary register
JPH06187015A (en) Program converter for sequencer
JPH1173368A (en) Memory module, method for control information processor and recording medium
JPS6019538B2 (en) Program writing method
JPS6410854B2 (en)
JP2001125608A (en) Programmable logic controller
KR100290280B1 (en) Microcontroller with Programmable Flash Memory
JP4716929B2 (en) Program debug support processing apparatus, communication adapter, and program debug support processing program
JP2854301B2 (en) Memory access circuit
JP4037941B2 (en) Control device
KR100303649B1 (en) Flash memory write error prevention circuit
JP2932805B2 (en) Automatic execution device
KR100577793B1 (en) Nonvolatile memory device
KR200204986Y1 (en) Micro control board
JP2914538B2 (en) Programmable controller
JP2008176700A (en) Extended storage device for programmable logic controller, and programmable logic controller system
JPS63301338A (en) Memory with control memory

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: 20070628

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee