Abstract:
A robot control apparatus programmably controls a taught/playback-type robot. The control apparatus has processing control means (CPU) which converts a group of position data contained in a plurality of robot command data inputted from a teaching panel into set-type command data together with other robot command data, stores the converted command data in a data memory (RAM), and creates a robot motion program by editing the command data.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     This invention relates to a robot control apparatus for programmably controlling a taught/playback-type robot. 
     2. Description of the Related Art 
     In order to programmably control a robot having a plurality of controlled axes along a predetermined motion path, it is usually required that the robot be taught designated points successively and that the points be stored in a data memory. In the teaching of such robot command data, addresses indicating which of the locations of the data memory the taught data are to be stored are set and displayed, and target positions at which motions are to be performed as well as motion velocities are designated while actually moving a robot hand by a teaching panel or the like. The taught position data are usually stored upon naming them, as shown at P 1 , P 2 , . . . in FIG. 5(a) and P k-1 , P k  , . . . in FIG. 5(b). 
     It has recently become possible to have robots execute complicated activities. For this reason, the above-mentioned conventional method of storing taught points involves a large number of taught target points and increased program length. When a motion program is to be modified, moreover, it is difficult to visualize the correspondence between the program and the motion paths, thus a particular inconvenience is that rewriting position data requires a great amount of time. 
     SUMMARY OF THE INVENTION 
     The present invention has been devised to solve these problems and its object is to provide a robot control apparatus in which motion commands and position data in a robot motion program can be easily visualized and which is readily manageable robot command data can be created. 
     In accordance with the present invention, there is provided a robot control apparatus including a teaching panel for teaching motion target positions and motion velocities, data converting means for converting a position data group contained in robot command data input from the teaching panel into set-type command data together with other robot command data, a data memory for storing the converted command data, and processing control means for creating robot motion data by editing the command data in the data memory. 
     Thus, the robot control apparatus of the present invention converts a group of position data contained in robot command data into set-type command data together with other robot command data and stores the converted command data. Therefore, by assigning suitable names to the converted command data, readily manageable robot command data can be created. Even if there are many taught points for robot motion, conversion is made into set-type data which simultaneously incorporates various information such as travelling velocity at these positions besides the position data, and these data are stored. This makes the robot command data easy to manage. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram illustrating the general construction of a robot control apparatus to which the present invention is applied,; 
     FIGS. 2(a), (b), and (c), FIGS. 3(a), (b), and (c), and FIGS. 4(a), and (b), are illustrations describing examples of the present invention,; and 
     FIGS. 5(a), and (b) are explanatory diagrams illustrating storage of position data in the prior art. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     An embodiment of the present invention will now be described in detail with reference to the drawings. 
     FIG. 1 is a block diagram illustrating the general construction of a robot control apparatus in which the present invention is applied. In FIG. 1, a memory (ROM) b, a memory (RAM) c, a teaching panel d, an axis controller e and a tape reader f are connected to a central processing unit (CPU) &#34;a&#34; via a bus line g. The tape reader f reads data input from a tape h, and the axis controller r outputs a predetermined command signal to a servo circuit i to control a servomotor j. 
     Various control programs to be executed by the CPU are stored in the memory (ROM) b. The memory (RAM) c stores command data input from the teaching panel d and tape reader f, as well as the results of processing executed by the CPU a and other data. 
     The present invention is characterized in that there is provided means for gathering together a position data group P 1 , P 2 , P 3 , P 4 , . . . and converting it into set-type command data &#34;PATH 1&#34;, setting various data between position data P 1 , P 2  as &#34;PATH 1(1) and various data between position data P 2 , P 3  as &#34;PATH 1(2), . . . , as shown in FIG. 4(a), and gathering together a position data group P K-1 , P K , P K+1 , P K+2 , . . . and converting it into set-type command data &#34;PATH 2&#34;, setting various data between position data P K-1 , P K  as &#34;PATH 2(1), setting various data between position data P K , P K+1  as &#34;PATH 2(2), . . . , as shown in FIG. 4(b), and thereafter editing these set-type command data (hereinafter referred to as &#34;set data&#34;) to create a robot motion program. 
     FIGS. 2(a)-(c) and FIGS. 3(a)-(c) are views for describing examples of the present invention. 
     FIG. 2(a) illustrates a main program. When a code Gab (where a, b each represent one integer from 0 to 9) is read out, the robot motion program edited into PATH 1 in FIG. 2(b), PATH 2 in FIG. 2(c), . . . is executed. This motion program is edited by the CPU a and stored in a specific area of the RAM c. 
     Next, the formation of the set data converted into &#34;PATH 1&#34; corresponding to FIG. 4(a) will be described in accordance with FIG. 2(b) and FIGS. 3(a), (b) and (c). 
     The &#34;PATH 1&#34; is composed of &#34;PATH 1(1)&#34; between position data P 1 , P 2 , &#34;PATH 1(2)&#34; between position data P 2 , P 3 , . . . , as described above. Of these, the &#34;PATH 1(1)&#34; is data composed of the position data P 1 , the travelling velocity A 11  between P 1  and P 2 , an instruction B 11  to be executed at position P 1  , such as an instruction for a specific motion of the robot hand, a path designation C 11  for the path between P 1  and P 2 , and an indication as to whether or not positioning at particular positions is to be neglected, etc. The indication regarding the neglecting of positioning is a command which simply causes the robot to pass by the vicinity of a position without a robot motion based on positioning being performed at the position. 
     Similarly, the data of &#34;PATH 1(2)&#34; corresponding to the interval between the position data P 2 , and P 3  of FIG. 4(a) is composed of position data P 2 , travelling velocity A 12  an execution instruction B 12 , a path designation C 12 , . . . , and other information taught to the robot. 
     The set data &#34;PATH 2&#34; of FIG. 2(c) corresponding to FIG. 4(b) is composed of &#34;PATH 2(1)&#34;, &#34;PATH 2(2)&#34;, . . . , each of which is constituted by position data P K-1 , travelling velocity A K1 , execution instruction B K1 , path designation C K1 , . . . , etc. 
     More specifically, in the present invention, various data at each of the commanded positions are converted into set data &#34;PATH 1&#34;, which is composed of &#34;PATH 1(1)&#34;, &#34;PATH 2(1)&#34;, . . . , etc., the set data are stored in the RAM c, and the set data &#34;PATH 2&#34; . . . , etc. are similarly stored in the RAM c. From RAM c the set data is suitably edited to form a robot motion program. 
     Though an embodiment of the present invention has been described, the invention is not limited thereto and can be modified in a variety of ways without departing from the scope of the claims. 
     The robot control apparatus of the invention improves upon the conventional method of storing taught points. Even if there are many taught points for robot motion, conversion is made into set-type data which simultaneously incorporates various information such as travelling velocity at these positions besides the position data, and the data are stored. This makes the robot command data easy to manage.