INSTRUCTION METHOD FOR ROBOT OPERATION PROGRAM

Abstract: An instruction method for a robot operation program capable of easily making a program. Required one of the standard operation programs (61 ⁻ 6n) for operating a robot in a typical operation pattern is read out from a memory (31c) of a robot controller (30) and is displayed on the screen of an instruction operation board (57). An operator operates the instruction operation board, adds position and speed data, etc, into the standard operation program on the display screen or corrects the data described in advance in the standard operation program. Therefore, operation programs (71, 72) for operating the robot in the typical operation pattern or similar patterns can be generated easily.

Description: This invention relates to a method of creating a robot motion program, more particularly, to a method of teaching a robot motion program, which facilitates the preparation of a robot motion program for operating a robot in accordance with regular or stereotyped motion patterns or motion patterns similar thereto. Generally, motion programs used for operating a robot are made up of a series of program statements described in a programming language, and are created by a manual operation of the keyboard of a programming system. For example, a motion program, partly shown in FIG. 1, for transporting a workpiece inside a pallet to the outside of same by a robot is described using a programming language. In FIG. 1, reference numerals 81 to 86 denote data blocks respectively specified by block numbers "N0000" to "N0005", symbol "BE" denotes a block end, and symbol "P" denotes identical or different coordinate positions which are defined separately. During an operation of the robot in accordance with the palletizing program shown in FIG. 1, a robot hand first moves at a steady-state speed in accordance with a command "P F100%" included in the first block 81 of the program, and then moves to the vicinity of the pallet at 80% of the steady-state speed in accordance with the command in the second block 82. If, thereafter, a workpiece pickup permission signal "2" is issued within a predetermined period of time, the robot takes out the workpiece from the pallet; if the signal "2" is not issued during the predetermined period, the program jumps to a label "10" indicating an instruction (not shown) included in the program. Subsequently, the robot hand moves at a 60% speed and opens in accordance with the command in the third block 83, and then moves at a 20% speed to close in accordance with the command in the fourth block 84. Then, the robot hand moves successively at 20% and 60% speeds in accordance with the commands in the fifth and sixth blocks 85 and 86, respectively. The robot motion program is described in a programming language, as described above. There are a variety of programming languages differing depending on their manufacturers or robot types, and various programming systems also differing in their operating methods depending on their applications. Accordingly, each individual robot user must learn one or more programming languages and one or more programming system operation methods, thus requiring a considerable time for training. Furthermore, when creating a program, a sequence of program statements must be successively input to the programming system through the keyboard, which requires considerable time and labor for the program preparation. However, certain types of robots, e.g., robots for feeding a workpiece to an NC lathe, are operated in accordance with basically fixed motion patterns. DE-A-3545957 discloses a process and circuit arrangement for the complex processing of setting-up functions in numerical control devices, to be carried out before the beginning of a processing program. The aim is to input setting-up functions in predeterminable sequences as parameterised setting-up programs from a data input unit and, in dependence upon setting-up parameters, to supply machine-specific data and signals triggered by operating elements by means of a processing unit to the machine control members. EP-A-0177164 discloses an apparatus and method for creating and revising programs for numerically controlled machines, wherein machine control instruction block signals are produced in response to generalised data block signals representating sets of alphanumerical words describing machine member motions. US-A-4390954 discloses an override control apparatus and method for parameter adjustment of digitally based welding process programmers for making modifications to a pre-programmed weld parameter schedule during real time welding. EP-A-0298128 discloses a robot controller having memory means for storing a plurality of robot hand approach patterns from which an approach pattern can be selected for computing a robot hand motion path for stacking or unstacking workpieces. An object of this invention is to provide a method of teaching a robot motion program which facilitates the preparation of a robot motion program, particularly a robot motion program for operating a robot in accordance with regular motion patterns or motion patterns similar thereto. To achieve the above object, this invention comprises the steps of: (a) storing into a storage device, a previously created standard motion program for a robot operation where a robot is operated in accordance with a regular motion pattern; (b) displaying the standard motion program read from the storage device on a display screen; and (c) editing the standard motion program on the display screen by means of manually inputting required robot motion data through a data input device, thereby creating a required robot motion program by the editing of the standard robot operation motion program. Preferably, the editing step (c) includes a substep for correcting data contained in the standard motion program on the display screen through the data input device. As described above, according to this invention, the previously created standard motion program is edited on-screen by manually inputting data through the data input device, to thereby create a required robot motion program, so that manually inputting only required data, such as position data or speed data related to teaching points will be sufficient to create a robot motion program. Accordingly, the operator is required only to learn the data input operation, and thus even an unskilled operator having no knowledge of programming languages can readily create a robot motion program. For a skilled operator, this teaching method is useful in that the time required for the program preparation can be reduced substantially. Brief Description of the Drawings FIG. 1 is a diagram showing, by way of example, part of a robot motion program; FIG. 2 is a diagram illustrating the concept underlying a method of teaching a robot motion program according to this invention; FIG. 3 is a perspective view showing a body of a robot to which a program teaching method according to one embodiment of this invention is applied, together with an NC lathe; FIG. 4 is a block diagram showing a robot control device for controlling the operation of the robot; FIG. 5 is a diagram exemplarily showing a first input menu for selecting a required standard motion program etc.; FIG. 6 is a diagram exemplarily showing a second input menu displaying a message requesting a registration of data input according to the first input menu; FIG. 7 is a diagram exemplarily showing a third input menu displaying a message indicating a completion of data registration; and FIG. 8 is a diagram exemplarily showing a fourth input menu permitting an input of position and speed data. Referring to FIG. 2, the concept underlying a method of teaching a robot motion program according to this invention will be described. First to Nth standard motion programs for operating a robot in accordance with stereotyped motion patterns (only the first, second and Nth standard motion programs are shown at 61, 62 and 6n, respectively) are previously created and stored in a memory, e.g., a random-access memory (RAM) 31c, of a robot control device 30. When preparing a motion program, a required one of the standard motion programs is read from the RAM 31c and displayed on an input display or input menu provided by a display device on a teaching control panel 57. The operator then operates the teaching control panel 57 so as to input, on the screen, required data to the standard motion program, or modify, on the screen, the data contained in the standard motion program, whereby a motion program for an actual robot operation is created. Created motion programs (only first and second motion programs are shown at 71 and 72, respectively) are stored in the RAM 31c. Referring now to FIGS. 3 and 4, an NC lathe to which a method of teaching a robot motion program according to an embodiment of this invention is applied will be described. An NC lathe 2, which includes actuators and sensors (not shown), is arranged to operate under the control of a numerical control device 3. A body 1 of a four-axis robot installed in the NC lathe 2 comprises actuators, including four servomotors 51 to 54 as drive sources for the individual axes, and sensors, and is operable under the control of the robot control device 30 so as to feed a workpiece from a workpiece feeder (not shown) to a chuck 4 of the NC lathe 2. The robot control device 30, which cooperates with the robot body 1 to form a robot, includes a processor board 31 on which a processor 31a and a read-only memory (ROM) 31b storing a system program are mounted together with the aforementioned RAM 31c, the ROM 31b and the RAM 31c being connected to the processor 31a via a bus 39. The processor 31a is arranged to globally control the robot control device 30 in accordance with the system program. The RAM 31c includes a nonvolatile memory area 31c' (FIG. 2) for storing the first to Nth standard motion programs 61 to 6n, the motion programs 71, 72, ... for actual robot operations, and a program for creating motion programs. Connected to the processor 31a via the bus 39 are a digital servo control circuit 32, a serial port 34, a digital input/output circuit 35, an analog input/output circuit 37, and a large-capacity memory 38 comprising a hard disk. The digital servo control circuit 32 is arranged to control the operation of the servomotors 51 to 54 through a servo amplifier 33 in accordance with commands supplied from the processor 31a. The serial port 34 is connected to a CRT display device 36a of a manual data input device forming part of the robot control device 30, to the teaching control panel 57 with a display device, and also to an RS-232C device 58, which are external devices of the robot control device 30. The teaching control panel 57 includes a keyboard having numeric keys and character keys, and is arranged to allow numeric and character data and commands to be manually input to the robot control device 30 through key-in operations by the operator. Soft keys are provided at the display device of the teaching control panel 57. Various input menus or input displays are displayed when predetermined soft keys are operated, and the soft keys are individually assigned for different functions corresponding to the kinds of input menus. A control panel 36b of the manual data input device is connected to the digital input/output circuit 35. The digital and analog input/output circuits 35 and 37 are connected to the actuators, sensors, etc. of the body 1 of the robot. A procedure for creating a motion program will be described with reference to FIGS. 5 through 8. A motion program is prepared in an interactive mode between the robot control device 30 operated in accordance with the program for creating motion programs and the operator operating the teaching control panel 57. First, when the operator operates a soft key for a program creation command of the teaching control panel 57, the processor 31a of the robot control device 30 detects this, and reads out the motion program creation program from the nonvolatile memory area 31c' of the RAM 31c. Then, when a manual operation of a menu selection soft key is detected by the processor 31a, a first input menu 10a (FIG. 5) is displayed on the display device of the teaching control panel 57. Displayed in the menu 10a are a field 11 for specifying or selecting one of the first to Nth standard motion programs 61 to 6n, a field 12 for specifying the program number representative of a motion program for actual robot operation which is to be created based on the standard motion program specified in the field 11, a field 13 for specifying the foremost register number for the execution of the motion program, a field 14 for specifying the maximum number of workpiece piles, a field 15 for specifying the number of workpiece layers in one pile and a field 16 for displaying a message and data which is input in response to the message. FIG. 5 shows a state in which the first standard motion program 61, the motion program number "01001", the first register number "0" and the maximum number "7" of workpiece piles have been specified by the first input menu 10a and "5", as the number of workpiece layers in one pile, has just been inputted in the field 16 of the menu 10a in response to the message "INPUT NUMBER OF LAYERS." In this case, a prompt 19 appears at the data input position of the layer selection field 15. When, thereafter, a soft key which is assigned for a registration function is operated to complete the data input through the first input menu 10a, the first input menu 10a of FIG. 5 switches to a second input menu 10b shown in FIG. 6. In the menu 10b, a message 17 requesting a depression of a register key will be displayed. When the operator operates a registration soft key in answer to the message 17, the input data shown in FIG. 5 is stored in the RAM 31c of the robot control device 30, then the second input menu 10b of FIG. 6 switches to a third input menu 10c shown in FIG. 7, and a message 18 notifying the completion of the registration of the data will be displayed. Thereafter, upon operation of the menu selection soft key by the operator, the third input menu 10c of FIG. 7 switches to a fourth input menu 20, shown in FIG. 8, for position and speed data input. Displayed in the menu 20 are fields 21 to 24 into which moving speeds F (expressed in percentage based on a steady-state speed) of the robot hand for the robot hand movement toward a required number of teaching points, e.g., four teaching points P001 to P004, and coordinate values B, Z, A and α along B, Z, A and α axes of the four-axis robot at the respective teaching points P are to be inputted, and a field 25 for displaying a message concerning the teaching point at which a cursor 29 is then positioned. In the fourth input menu 20 exemplarily shown in FIG. 8, moving speeds F and coordinate values B, Z, A and α with respect to the teaching points P001, P002 and P004, which are suitable for the motion program (in the illustrated example, a palletizing program) to be created based on the first standard motion program 61 (FIG. 2), are first displayed in the three fields 21, 22 and 24. On the other hand, the moving speed F and the coordinate values B, Z, A and α in the field 23 relating to the teaching point P003 are undefined, and hence a mark "***" indicating that these values are required to be set by the operator will be displayed for each item. At first, the cursor 29 is positioned at the first field 21 relating to the teaching point P001, and a message "TEACH PALLETIZING START POSITION" relating to this teaching point P001 will be displayed at the message field 25. Accordingly, the operator operates a cursor key on the teaching control panel 57 to move the cursor 29 to the third field 23. As a result, a message (not shown) requesting an input of the moving speed and coordinate values with respect to the teaching point P003 is displayed in the message field 25. The operator operates numeric keys etc. on the teaching control panel 57 to manually input the moving speed F and coordinate values B, Z, A and α related to the teaching point P003. If necessary, the operator modifies the moving speed and/or coordinate values of the teaching points P001, P002 and/or P004, which have previously been described in the standard motion program as shown in FIG. 8, by operating the control panel 57. In this case, as the cursor 29 is moved to one of the fields 21 to 24, a message explaining the corresponding data to be inputted, which will be determined by the cursor position, is displayed in the field 25. As mentioned above, the operator adds necessary data to or modifies the previously described data in the standard motion program, referring to the various messages displayed at the field 25. When the data input is complete, the operator operates the registration soft key, whereby the input data is stored in the RAM 31c. Based on the standard motion program and the input data, the processor 31a creates a motion program for robot operation, e.g., a palletizing program, and causes the created program to be stored in the RAM 31c to end the motion program creation process. This invention is not limited to the above-described embodiment, and various modifications thereof may be made. For example, although the embodiment is described with reference to the creation of a motion program for a four-axis robot used in combination with an NC lathe, this invention can be applied to the creation of motion programs for various robots which perform stereotyped motions. The contents of the display shown in FIGS. 5 to 8, which are related to a palletizing program, may be modified in various ways. Instead of inputting position data through the keyboard of the teaching control panel 57, the robot operating part such as the robot hand may first be moved to the teaching point by means of a jog feed, and position data may be inputted by operating a position data input key (not shown) of the teaching control panel 57, with the robot operating part positioned at the teaching point. In this case, sensor outputs representing the coordinate values along the respective axes of the robot at the teaching point are automatically inputted in response to the key-in operation. Further, an additional input menu for an input of data such as the number of workpieces and the size of a pallet for receiving workpieces may be provided to permit such data entry. Furthermore, although in the embodiment, the standard motion programs and the motion program creation program are stored in the RAM 31c, they may be stored in the ROM 31b or the hard disk 38. In the case wherein a large number of standard motion programs must be prepared or the amount of information related to the messages and other data to be contained in the standard motion programs is large, the programs are preferably stored in the hard disk 38. The hard disk 38 may be provided as an external device of the robot control device 30. Further, a menu for starting the created motion program may be provided to enable an operation check and modification of the motion program.

Claims: A method of teaching a robot motion program, characterised by the steps of: (a) storing into a storage device (31c) a previously created standard motion program (I to N) for a robot operation where a robot (1) is operated in accordance with a regular motion pattern; (b) displaying the standard motion program (I to N) read from the storage device (31c) on a display screen; and (c) editing the standard motion program (I to N) on the display screen by means of manually inputting required robot motion data through a data input device (57), thereby creating a required robot motion program (A,B) by the editing of the standard robot operation motion program (I to N). The method of teaching a robot motion program according to claim 1, wherein said editing step (c) includes a substep for correcting data contained in the standard motion program (I to N) on the display screen through the data input device (57). The method of teaching a robot motion program according to claim 1 or 2, wherein said editing step (c) includes a substep for inputting position data and speed data to be added to the standard motion program (I to N) through the data input device (57). The method of teaching a robot motion program according to claim 2, or claim 3 when appended to claim 2, wherein said editing step (c) includes a substep for correcting position data and speed data previously described in the standard motion program (I to N). The method of teaching a robot motion program according to any preceding claim, wherein said step (b) includes a substep for displaying a message relating to a data entry, together with the standard motion program (I to N). The method of teaching a robot motion program according to claim 3, or claim 4 or 5 when appended to claim 3, wherein said data input device (57) is operated with a movable part of the robot (1) positioned at a teaching point by means of a jog feed, thereby inputting position data detected by a robot sensor. The method of teaching a robot motion program according to any preceding claim, wherein said method is used to create a motion program (A,B) for a robot (1) to be used in combination with an NC lathe (2). The method of teaching a robot motion program according to any of claims 1 to 6, wherein said method is used to create a palletizing program. The method of teaching a robot motion program according to claim 8, wherein said editing step (c) includes a substep for inputting data representing number of workpieces and data representing size of a pallet for receiving the workpieces. The method of teaching a robot motion program according to any preceding claim, wherein the storage device (31c) comprises a large-capacity memory arranged internally or externally of a robot control device. The method of teaching a robot motion program according to any preceding claim, wherein a menu for starting a created motion program is displayed on the display screen, thereby permitting an execution of the created motion program for an operation check thereof.

Inventors: KARAKAMA TATSUO, MIURA TAKENOBU, MIZUNO TOHRU, NIHEI RYO ROOM, KARAKAMA, TATSUO, MIURA, TAKENOBU, MIZUNO, TOHRU, NIHEI, RYO ROOM, KARAKAMA, TATSUO FANUC DAI-3 VIRA-KARAMATSU, MIURA, TAKENOBU 782-52, MISAWA, MIZUNO, TOHRU ROOM 901, NIHEI, RYO ROOM 7-210 FANUC MANSHION HARIMOMI
Applicants: FANUC LTD, FANUC LTD.
Application year: 1991
Main classification: G05B19
IPC codes: B25J9, G05B19