A control system having a plurality of control apparatus

Abstract: A control system having a plurality of control apparatus (107, 114) connected by a data transmission path (515). Each of the control apparatus (107, 114) comprises a communication control section (106, 113), sequence control section (101, 108), and positioning control section (102, 109). The positioning control section (102, 109) of each control apparatus (107, 114) has a memory (103, 109a). A position controlling program (104) is stored in the memory (103) of a first one (107) of the control apparatus. The position controlling program (104) has codes, each of which to be used by a positioning control section (102, 109) of a particular control apparatus (107, 114), for controlling its respective servo motor (505, 512). The codes of the position controlling program (104) are transmitted from the first control apparatus (107) to another control apparatus (114) to cause the positioning control section (109) of that apparatus (114) to control its respective servo motor (512) in accordance with the codes.

Description: The present invention relates to a control system according to the preamble of claim 1, and a control method according to the preamble of claim 7. Fig. 8 is a block diagram showing a conventional control system. Control apparatus 507 includes a communication control section 506 which receives an signal transmitted through the transmission path 515 and converts the received signal into a signal to be used by the sequence control section 501. The sequence control section 501 has an internal memory (not shown) having a sequence program stored therein. Under control of this sequence program, the sequence control section 501 periodically monitors the received signal and performs predetermined processing in response to the received signal to perform operations such as, for example, outputting a predetermined output signal. The communication control section 506 also receives control information output by the sequence control section 501, converts that information into a signal transmittable by the transmission path 515, and transmits the signal to the transmission path 515. A positioning control section 502 is activated by a command from the sequence control section 501. Memory 503 is provided in the positioning control section 502 which stores a positioning program 504. A first motor 505, such as, for example, a servo motor, can be attached to an axis of an apparatus such as, for example, a solenoid valve. The first motor 505 can be driven by the positioning control section 502 as controlled by the positioning program 504. That is, the positioning control section 502 drives the servo motor 505 to perform predetermined positioning control and, for example, adjust the axis of the apparatus to align the apparatus at a predetermined position. Control apparatus 514 comprises a communication control section 513, which is coupled to the communication control section 506 by transmission'path 515. In a manner similar to the communication control section 506, the communication control section 513 converts a signal transmitted through the transmission path 515 into control information signals, and inputs those signals to the sequence control section 508. The sequence control section 508 also has a memory (not shown) for storing a sequence program. Also, the communication control section 513 converts control information output from the sequence control section 508 into a signal transmittable by the transmission path 515, and transmits that signal to the transmission path 515. Similar to the operation in the control apparatus 507, a positioning control section 509 is activated by a command from the sequence control section 508. Memory 510 is provided in the positioning control section 509 for storing a positioning program 511. A second motor 512, for example, a servo motor, can be driven by the positioning control section 509 as controlled in accordance with the positioning program 511. That is, the positioning control section 509 drives the servo motor 512 to carry out predetermined positioning control which, for example, controls solenoid valves, relays, etc. (not shown) in a predetermined sequence. The operation of the conventional control system, as described generally above, will now be described in more detail. The positioning control of the servo motor 505 is performed by the execution of the positioning program 504 having an instruction step filled with a code identifying the servo motor 505, and indicating a moving method, a positioning target position and a positioning travel speed for that servo motor 505. The positioning target position is hereinafter referred to as the address and the positioning travel speed as the speed. The memory 510 stores positioning programs, such as positioning program 511, which control driving of the servo motor 512 by the positioning control section 509, to perform positioning control. The positioning program 504 has an instruction step for starting execution of any of the positioning programs stored in memory 510. Hence, the execution of the positioning program 504, having such an instruction step, causes any of the positioning programs stored in memory 510 to be executed to drive servo motor 512 to exercise positioning control. That is, when the positioning program 504 is run to execute the instruction step for starting execution of the predetermined positioning program stored in the memory 510, predetermined control information is transmitted from the positioning control section 502 to the sequence control section 501. In accordance with this control information, the sequence control section 501 generates control information having a predetermined positioning program number. Note that each of the positioning programs stored in the memory 510 has an assigned positioning program number and thus, a positioning program to be executed is identified by this number. The control information generated by the sequence control section 501 is transferred from the sequence control section 501 to the communication control section 506 and converted into transmittable data by the communication control section. The converted control information is then transmitted through the transmission path 515, and is received by the communication control section 513. The sequence control section 508 receives the control information from the communication control section 513, and provides this control information to the positioning control section 509. The positioning control section 509 then begins executing the positioning program corresponding to the positioning program number designated by the control information. Accordingly, the movement of the servo motor 512 is controlled in accordance with this positioning program. Upon completion of the positioning control program, control information indicating this completion is transferred from the positioning control section 509 to the sequence control section 508, and to the communication control section 513. This control information is transmitted via transmission path 515 to the communication control section 506, which provides this control information to the sequence control section 501. The sequence control section 501 in turn provides the control information to the positioning control section 502. In accordance with this control information, the positioning program 504 progresses from the instruction step for starting execution of the positioning program stored in memory 510 (e.g., positioning program 511) which was currently being run to a next instruction step. The above detailed operation the conventional control system will now be described in accordance with Figs. 9-16. Fig. 9 shows the transfer paths of the control information. Fig. 10 shows part of the program list of an example of the positioning program 504 which is stored in the memory 503. This part of the positioning program 504 includes an instruction step 601 for driving the servo motor 505 to carry out positioning control, and an instruction step 602 for starting execution of a positioning program (e.g., positioning program 511) stored in memory 510 which controls driving of the servo motor 512. As shown in Fig. 10, instruction step 601 is written as follows: and instruction step 602 is written as follows: M50. In the instruction step 601, the first three digits represent a code which indicates a moving method. In the example shown in Fig. 10, this code is G01, indicating linear interpolation. The fourth digit represents a code which indicates a servo motor. Code X in this case indicates the servo motor 505. A space subsequent to X is filled with an address. F indicates that a space following F is filled with data representing the speed at which the servo motor is controlled to move. In instruction step 602, M in the first digit indicates that this instruction is a miscellaneous function instruction. A code written subsequent to M is referred to as the M code which causes a variety of predetermined operations to be performed. In this example, the M code is "50". M code "50" is an instruction for starting the predetermined positioning program which is designed to drive the servo motor 512 to carry out positioning control. As described above, the positioning program for driving the servo motor 512 to exercise positioning control is stored in the memory 510 of the control apparatus 514. Fig. 11 illustrates a flowchart of the operation of the conventional apparatus. When it is necessary, for example, for the sequence control section 501 to drive the servo motor 505 to exercise positioning control, the sequence control section 501 commands the control section 502 to begin executing the positioning program 504 which is stored in memory 503 as indicated in step S1101. In step S1102, when the positioning control section 502 executes instruction step 601, as shown in Fig. 10, of the positioning program 504, the positioning control section 502 performs feedback control and drives servo motor 505 to position a corresponding axis to a predetermined address at predetermined speed, thereby performing a linear interpolation operation. In step S1103, the instruction step 602, as shown in Fig. 10, is then executed by the positioning control section 502, which transmits the M code "50" and a synchronization signal, as shown in Fig. 12, to the sequence control section 501 as indicated by control information transfer path "a" in Fig. 9. This synchronization signal is a signal which is output by the positioning control section 502 to the sequence control section 501 to inform the sequence control section 501 of the timing at which the M code output by the positioning control section 502 can be read (hereafter, the synchronization signal shall mean a signal output by a transmission device to a receiving device to inform the receiving device of the timing at which the information output by the transmission device can be read). Upon reading the M code 801, as in step S1104, the sequence control section 501 determines if the M code is "50" in step S1105. If the M code is not "50", the sequence control section 501 executes other processing as specified by the M code 801. When the M code 801 is 50 as in this case, in step S1106, the sequence control section 501 outputs predetermined control information, as shown in Fig. 13 (the program number 901 and the synchronization signal 902), to the communication control section 506 as indicated by control information transfer path "b" in Fig. 9. The program number 901 is the number assigned to the positioning program stored in the memory 510 of the positioning control section 509 as described previously. In step S1107, the communication control section 506 converts the control information transmitted by the sequence control section 501 into a signal transmittable in the transmission path 515 and transmits the signal to the communication control section 513 via the transmission path 515 as shown by control information transfer path "c" in Fig. 9. In step S1108, the communication control section 513 receives the signal transmitted from the communication control section 506, converts this received signal into control information transmittable to the sequence control section 508, and outputs the information to the sequence control section 508 as shown by control information data transfer path "d". In accordance with this control information, in step S1109, the sequence control section 508 commands the positioning control section 509 to start the positioning program having the program number 901 stored in the memory 510 of the positioning control section 509 as indicated by control information transfer path "e". Fig. 14 shows the program list of the positioning program indicated by the program number 901. This positioning program is stored in the memory 510. This program list includes an instruction step 1001 for driving the servo motor 512 to perform positioning control, and an instruction code 1002 indicating the end of program number 901. The instruction step 1001 is written as follows: and instruction step 1002 is written as follows: M2. In the instruction step 1001, G01 represents linear interpolation. X here represents the servo motor 512, indicating that the axis is positioned to move to the address indicated by a value corresponding to data in a space subsequent to X at the speed indicated by a value corresponding to data in a space subsequent to F . As shown in step S1110 of Fig. 15, the positioning control section 509 executes the positioning program of the program number 901, and exercises feedback control on velocity and positioning of the servo motor to drive the servo motor 512 to exercise positioning control. Upon executing the instruction 1002 of program 901, as shown in step S1111, the positioning control section 509 terminates the execution of the selected positioning program. The miscellaneous function instruction of the M code "2" in instruction 1002 is an instruction which terminates the execution of the program. When the positioning is then complete, in step S1112, a completion signal 1101, as shown in Fig. 16, is transmitted from the positioning control section 509 to the sequence control section 508 as indicated by control information transfer path "f" in Fig. 9. When the completion signal 1101 is sent by the positioning control section 509 to the sequence control section 508, in step S1113, the sequence control section 508 further transmits the completion signal 1101 to the communication control section 513 as indicated by control information transfer path "g". In step S1114, the communication control section 513 further transmits the completion signal 1101 to the communication control section 506 in the control apparatus 507 via the transmission path 515 as shown by control information transfer path "h". After the completion signal 1101 is received by the communication control section 506, in step S1115, the communication control section 506 further sends the completion signal 1101 to the sequence control section 501 as indicated by control information transfer path "i". In step S1116, the sequence control section 501 further transmits the completion signal 1101 to the positioning control section 502 as indicated by control information transfer path "j". When the completion signal 1101 is provided to the positioning control section 502 by the sequence control section 501, the positioning control section 502 ends the execution of the instruction step 602 and advances to a next instruction step as indicated by step S1117. As described above, the servo motor 512 is driven under the command of the positioning control section 502 in the control apparatus 507 to exercise positioning control in accordance with a positioning program stored in memory 510. In a typical system having axes which are controlled by servo motors, the number of axes in the system is generally equal to the number of servo motors. Often it is necessary to add more control axes in a system. Therefore, additional servo motors and additional control apparatuses for controlling these servo motors are required. When it is necessary to add additional control apparatus for driving additional servo motors to perform further positioning control of the system effected by the additional axes, positioning programs having predetermined program numbers are similarly stored in the memory of each of those additional control apparatus. When the positioning control section 502 executes a positioning program having an instruction for starting any of the positioning programs, the corresponding servo motor is driven by its corresponding control apparatus to perform positioning control. In the conventional positioning system configured as described above, a program step for controlling the servo motor 512 must be present in the positioning program 504 of the positioning control section 502 in the control apparatus 507, and is also required to be included in the positioning program 511 of the positioning control section 509 in the control apparatus 514. Therefore, if the positioning of the servo motors 505 and 512 needs to be altered, and a peripheral device (not shown) is used to alter the positioning programs, the peripheral device must be connected to each control apparatus 507 and 514. The peripheral device is used, for example, for debugging, monitoring, etc. of the programs in the control apparatuses. For example, as shown in the flowchart in Fig. 17, in step S1701, the peripheral device is connected to the control apparatus 507. In step S1702, instruction 601 (see Fig. 10) of the positioning program 504 is corrected by the peripheral device. Then, in step S1703, the peripheral device is connected to control apparatus 514 and positioning program 511 is corrected in step S1704. Hence, at least four steps are required to correct positioning programs in two apparatuses. Also, since program numbers must be assigned to the positioning programs and positioning is carried out by specifying this program number, the programs are complicated and difficult to understand, requiring much time to write and correct them. The document DE-A-3 806 966 discloses a program controller for controlling six axes of a robot and an additional program controller for controlling four additional axes. Each of the two controllers comprises a microprocessor, a ROM-RAM module for storing a control program and storing data, a bus interface and a servo-interface. In operation, the main controller controls the overall operation of the robot, such that the positioning of the individual groups of axes controlled by the two individual controllers do not conflict with one another. The object of the present invention is to avoid the situation in which several separate positioning programs must be installed in the respective servo-controllers for each object to be controlled, for example each servomotor. As explained above, this can be a considerable number of programs to be installed. In addition, if the operation is to be modified, the programs in each of the controllers must be correspondingly modified simultaneously. This would require a peripheral device for reprogramming to be connected to each of the programmable controllers. The time and expense associated with program modification, debugging and monitoring is also high. Hence, the object underlying the present invention is to provide a system in which a single one of the programmable controllers contains the positioning program, the program being for all of the servomotors to be controlled, such that the program instructions can be easily written or easily modified with a peripheral device. This object is solved in an advantageous manner by a control system as defined in claim 1 and a control method as defined in claim 7. Advantageous further developments of the control system and the control method according to the invention are specified in claims 2 to 6 and 8 to 10, resp. According to the invention, a single positioning control program is provided in a single program controller, where the single program contains instruction codes for all of the servomotors to be controlled. With such an arrangement according to the invention, only one single positioning control program is written, installed, debugged and monitored in only one program controller. The instruction codes of the single program identify the motor to be controlled. If the motor is a motor other than the first program controller, the respective instruction codes are extracted and transmitted to the appropriate controller. In addition, the operation of the servomotor can be modified by connecting only one peripheral device to the first control apparatus and modifying the single positioning control program. The program modification is thus performed very easily. In the system according to the invention, each of the control apparatus comprises a communication control section, sequence control section, and positioning control section. The positioning control section of each control apparatus has a memory. A position controlling program is stored in the memory of one of the control apparatus. The position controlling program has codes, each of which is to be used by a positioning control section of a particular control apparatus, for controlling its respective servo motor. When the positioning controlling section of the first control apparatus is controlled by the sequence control section of that first control apparatus to begin executing the positioning controlling program stored in its memory, the position controlling section controls the first servo motor as specified in the controlling program, and also transfers codes in that program to the sequence control section. A memory in the sequence control section stores these codes. The sequence control section then transfers these codes via the communication control section and the data transmission path to another control apparatus. This second control apparatus receives the codes and stores them in a memory in its positioning controlling section. The position controlling section of this second control apparatus controls its respective servo motor in accordance with these stored codes. When control of the servo motor is completed, the second control apparatus provides a completion signal to the first control apparatus and the position controlling section begins executing another step of the position controlling program. BRIEF DESCRIPTION OF THE DRAWINGS These and other objects and advantages of the invention will become more apparent and more readily appreciated from the following detailed description of the presently preferred exemplary embodiments of the invention taken in conjunction with the accompanying drawings, of which: Fig. 1 is a block configuration diagram of a positioning system illustrating a preferred embodiment of the present invention; Fig. 2 illustrates a program list of an example of a positioning program according to the preferred embodiment of the present invention; Fig. 3 is a flowchart showing operations of an embodiment of the positioning system of the present invention; Fig. 4 illustrates control information according to the preferred embodiment of the present invention; Fig. 5 is a flowchart showing further operation of an embodiment of the positioning system of the present invention; Fig. 6 illustrates control information according to the preferred embodiment of the present invention; Fig. 7 illustrates the steps for using a peripheral device to change the positioning programs in the control apparatus of the present invention; Fig. 8 is a block configuration diagram of a conventional positioning system; Fig. 9 illustrates the transfer paths of the control information; Fig. 10 illustrates a program list of a conventional positioning program; Fig. 11 is a flowchart showing operations of the conventional positioning system; Fig. 12 illustrates control information in the conventional positioning system; Fig. 13 illustrates control information in the conventional positioning system; Fig. 14 illustrates a program list of the conventional positioning program; Fig. 15 is a flowchart showing further operations of the conventional positioning system; Fig. 16 illustrates control information in the conventional positioning system; and Fig. 17 illustrates the steps for using a peripheral device to change the positioning programs in the conventional control apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 1 is a block diagram of a control system showing an embodiment of the present invention. In this drawing, the numerals 505, 512 and 515 indicate parts identical to those shown in Fig. 8. Control apparatus 107 includes a communication control section 106 which receives a signal transmitted through the transmission path 515 and converts the received signal into a signal to be used by the sequence control section 101. The sequence control section 101 has an internal memory (not shown) having a sequence program stored therein, and a memory 101a (described later). Under control of this sequence program, the sequence control section 101 periodically monitors the received signal and performs predetermined processing in response to the received signal to carry out operations such as, for example, outputting a predetermined output signal. A positioning control section 102 is activated by a command from the sequence control section 101. Memory 103 is provided in the positioning control section 102 which stores a positioning program 104. A first motor 505, such as, for example, a servo motor, can be attached to an axis of an apparatus such as, for example, a solenoid valve. The first motor 505 can be driven by the positioning control section 102 as controlled by the positioning program 104. That is, the positioning control section 102 drives the servo motor 505 to perform predetermined positioning control and, for example, adjust the axis of the apparatus to align the apparatus at a predetermined position. The communication control section 106 also receives control information output by the sequence control section 101, converts that information into a signal transmittable by the transmission path 515, and transmits the signal to the transmission path 515. Control apparatus 114 comprises a communication control section 113, which is coupled to the communication control section 106 by transmission path 515. In a manner similar to the communication control section 106, the communication control section 113 converts a signal transmitted through the transmission path 515 into control information signals, and inputs those signals to the sequence control section 108. The sequence control section also has a memory (not shown) for storing a sequence program. Also, the communication control section 113 converts control information output from the sequence control section 108 into a signal transmittable by the transmission path 515, and transmits that signal to the transmission path 515. Similar to the operation in the control apparatus 107, a positioning control section 109 is activated by a command from the sequence control section 108. Memory 109a (described later) is provided in the positioning control section 109. A second motor 512, for example, a servo motor, can be driven by the positioning control section 109 as controlled by information which is stored in memory 109a as described below. That is, the positioning control section 109 drives the servo motor 512 to carry out predetermined positioning control which, for example, controls solenoid valves, relays, etc. (not shown) in a predetermined sequence. The positioning control of the servo motors 505 and 512 is exercised by the execution of the positioning program 104 having instruction steps including data codes for indicating the servo motors, and indicating a moving method, addresses and speeds of each respective servo motor. When the code indicating the servo motor indicates servo motor 505, the positioning control section 102 drives the servo motor 505. Alternatively, when the code indicating the servo motor indicates servo motor 512, the positioning control section 102 transmits the control information consisting of the address, speed and synchronization signal to the sequence control section 101. The sequence control section 101 then stores data representing the address and speed information in memory 101a. The control information comprising the address and speed data stored in memory 101a, and an appropriate synchronization signal is provided from the sequence control section 101 to the communication control section 106, which then provides that control information via the transmission path 515 to the communication control section 113. The communication control section 113 receives the control information and provides it to the sequence control section 108. The sequence control section 108 then provides the control information to the memory 109a of the positioning control section 109, which stores this information. The position control section 109 thus drives the servo motor 512 in accordance with that control information stored in the memory 109a to exercise positioning control. On completion of the positioning control, control information indicating the completion of positioning is transferred from the positioning control section 109 to the sequence control section 108, which further transfers this information to the communication control section 113. The communication control section 113 transfers this information to the communication control section 106 via transmission path 515. The communication control section 106 transfers this information to the sequence control section 101, which further transfers this control information to the positioning control section 102. In accordance with this control information, the positioning program 104 proceeds from the instruction step in execution to a next instruction step. Fig. 2 shows part of the program list of an example of the positioning program 104 which is stored in the memory 103. The exemplary positioning program 104 includes, for example, an instruction step 201 for driving the servo motor 505 to carry out positioning control and an instruction step 202 for driving the servo motor 512 to exercise positioning control. In Fig. 2, instruction step 201 is written as follows: and instruction step 202 is written as follows: The instruction step 201 is identical to the conventional instruction step 601, as shown in Fig. 10. Also, although the code indicating the servo motor in the fourth digit of the instruction step 202 is not X but L , the other parts of this code are identical to those of the conventional instruction step 1001 as shown in Fig. 14. L in the fourth digit represents the servo motor 512. The instruction step 201 carries out linear interpolation and drives the servo motor 505 to move and position the corresponding axis to the address indicated by a value represented by data present in a space subsequent to X at the speed indicated by a value represented by data present in a space subsequent to F . Similarly, the instruction step 202 carries out linear interpolation and represents that the servo motor 512 is driven to move and position the corresponding axis to the address indicated by a value represented by data present in a space subsequent to L at the speed indicated by a value represented by data present in a space subsequent to F . A sequence of control will now be described with reference to Figs. 2-6, and Fig. 9, which was used to describe the conventional art. In step S301, when the sequence control section 101 is required, for example, to drive the servo motor 505 to exercise positioning control, the sequence control section 101 commands the positioning control section 102 to start the positioning program 104. When the positioning control section 102 has started the positioning program 104 to execute the instruction step 201 shown in Fig. 2, as shown in step S302, positioning control section 102 exercises feedback control to drive the servo motor 505 to position the corresponding axis to the specified address at the specified speed to perform linear interpolation. In step S303, positioning control section 102 executes instruction step 202, and outputs the control information shown in Fig. 4 (the address 301, the speed 302 and the synchronization signal 303) to the sequence control section 101 as indicated by control information transfer path "a" in Fig. 9. The synchronization signal is a signal which is output by the positioning control section 102 to the sequence control section 101 to inform the sequence control section 101 of the timing at which the address and speed output by the positioning control section 102 can be read. The sequence control section 101 stores the address and speed data from among the control information output by the positioning control section 102 into the memory 101a and, in step S304, transmits the address and speed together with the synchronization signal to the communication control section 106 as indicated by control information transfer path "b". The communication control section 106 converts the control information output by the sequence control section 101 into a signal transmittable on the transmission path 515 and, in step S305, transmits the signal to the communication control section 113 via the transmission path 515 as indicated by control information transfer path "c". The communication control section 113 receives the signal transmitted by the communication control section 106, converts this signal into control information consisting of the address, speed and synchronization signal, and, in step S306, outputs the converted information to the sequence control section 108 as indicated by control information transfer path "d". In accordance with the control information output from the communication control section 113, in step S306, the sequence control section 108 transmits the control information consisting of the address, speed and synchronization signal to the positioning control section 109 as indicated by control information transfer path "e". The memory 109a of the positioning control section 109 stores the address and speed data in this control information. In step S307, the positioning control section 109 exercises feedback control and drives the servo motor 512, in accordance with the address and speed data in the control information transmitted from the sequence control section 108 and stored in memory 109a, to position the axis, thereby carrying out linear interpolation. When this positioning operation is then complete, as shown in step S309 of Fig. 5, a completion signal 401, such as that shown in Fig. 6, is transmitted from the positioning control section 109 to the sequence control section 108 as indicated by control information transfer path "f". When the completion signal 401 is sent by the positioning control section 109 to the sequence control section 108, in step S310, the sequence control section 108 further transmits the completion signal 401 to the communication control section 113 as indicated by control information data transfer path "g". After the completion signal 401 is sent to the communication control section 113 by the sequence control section 108, in step S311, the communication control section 113 converts the completion signal, if necessary, to transmittable format and further transmits the completion signal 401 to the communication control section 106 in the control apparatus 107 via the transmission path 515 as indicated by control information transfer path "h". When the completion signal 401 is sent to the communication control section 106 by the communication control section 113, in step S312, the communication control section 106 converts the completion signal, if necessary, to a format usable by the sequence control section 101 and further sends the completion signal 401 to the sequence control section 101 as indicated by control information transfer path "i". When the completion signal 401 is transmitted to the sequence control section 101 by the communication control section 106, in step S313, the sequence control section 101 further transmits the completion signal 401 to the positioning control section 102 as indicated by control information transfer path "j". When the completion signal 401 is sent to the positioning control section 102 by the sequence control section 101, the positioning control section 102 ends the execution of the instruction step 202 and advances to a subsequent instruction step as shown in step S314. As described above, the servo motor 512 is driven under the command of the positioning control section 102 in the control apparatus 107 to exercise positioning control. In a second embodiment of the invention, the control apparatus may be connected to control a plurality of servo motors. While only the address and speed are transmitted together with the synchronization signal from the control apparatus 107 to the control apparatus 114 in the first embodiment, a code (not shown) indicating a particular servo motor may also be transmitted to selectively control a plurality of servo motors controlled by the control apparatus 114 under the control of the control program stored in the control apparatus 107. In a third embodiment, in addition to transmitting the codes in the first and second embodiments, a code indicating the moving method may further be transmitted from the control apparatus 107 to the control apparatus 114. In this arrangement, it is possible to instruct the control apparatus 114 to move the axis in another moving method, without the moving method being limited to linear interpolation. In a fourth embodiment of the invention, the speed of the servo motor may be specified separately, and thus not transmitted from the control apparatus 107 to the control apparatus 114 as in the first three embodiments. Alternatively, if the control apparatus 114 needs no address specified by the control apparatus 107, the control apparatus 107 may transmit the speed without the address. It will be apparent from the above detailed description that the invention enables the operation of both servo motors to be modified by connecting a peripheral device only to the control apparatus 107. That is, as shown in step S701 in the flowchart of Fig. 7, a peripheral device for correcting positioning program 104 is connected to control apparatus 107. In step S702, instruction step 201 of the positioning program 104 is modified to modify the operation of servo motor 505. In step S703, instruction step 202 of the positioning program 104 is modified to modify the operation of servo motor 512. Thus, the peripheral device need not be removed from control apparatus 107 and connected to control apparatus 114 to modify movement of the servo motor 512. Accordingly, the program modification is performed much easier than in the conventional apparatus.

Claims: A control system comprising: a first programmable controller (107) including a positioning control section (102) for controlling a first motor (505) in accordance with instruction codes (201) of a positioning control program stored in a first memory (103); and a second programmable controller (114) including a positioning control section (109) for controlling a second motor (512) in accordance with instruction codes (202) of a positioning control program; characterized in that the instruction codes (201, 202) for controlling said first and second motors (505, 512) are contained in a single positioning control program (104) stored in said first memory (103) of said first programmable controller (107); and said first programmable controller (107) is adapted to identify the instruction codes (202) from said single control program (104) for said second motor (512) and to transmit these codes (202) to the positioning control section (109) of said second programmable controller (114) to control said second motor (512). The system according to Claim 1, wherein the first programmable controller (107) further comprises: a second memory (101a) for storing the codes of the control program (104) to be transmitted; and a communication control section (106) for transmitting the stored codes to the second programmable controller (114). The system according to Claim 1 or 2, wherein the second programmable controller (114) further comprises: a memory (109a) for storing the codes of the control program (104) transmitted from the first programmable controller (107) to the second programmable controller (114); the second programmable controller (114) controlling the second motor (512) in accordance with the transmitted codes. The system according to any one of Claims 1 to 3, wherein the transmitted codes of the control program (104) include data (301) for identifying a positioning target address to which the second motor (512) is to move, and speed data (302) representing the speed at which the second motor (512) is to move to the positioning target address. The system according to any one of Claims 1 to 4, wherein the second programmable controller (114) supplies a completion signal (401) to the first programmable controller (107) when the driving of the second motor (512) is completed. The system according to Claim 1, wherein the first programmable controller (107) further comprises: a sequence control section (101) having a memory (101a) for storing the codes to be transmitted of the control program (104); and a communication control section (106) for transmitting the codes to the second programmable controller (114); wherein the second programmable controller (114) further comprises: a memory (109a) for storing the transmitted codes from the first programmable controller (107), the second programmable controller (114) controlling the second motor (512) in accordance with the transmitted codes; and wherein the transferred codes include data (301) for identifying a positioning target address to which the second motor (512) is to move, and speed data (302) representing the speed at which the second motor is to move to the positioning target address. A control method of operating a first and second programmable controller (107, 114) for controlling first and second motors (505, 512) in accordance with instruction codes (201, 202) of a positioning control program, said method characterized by the steps of: a) storing a single positioning control program (104) containing instruction codes (201, 202) for controlling said first and second motors (505, 512) in a first memory (103) of said first programmable controller (107); b) when running said single positioning control program (104), identifying in said first programmable controller (107) the instruction codes (202) for said second motor (512); and c) transmitting the identified codes (202) to a positioning control section (109) of said second programmable controller (114) to control said second motor (512). The method according to Claim 7, further comprising the step of: causing the first programmable controller (107) to extract the codes to be transmitted from the control program (104) and to store the extracted codes. The method according to Claim 7 or 8, further comprising the steps of: storing the transmitted codes in a memory (109a) in the second programmable controller (114); and causing the second programmable controller (114) to control the second motor (512) in accordance with the stored codes. The method according to any one of Claims 7 to 9, further comprising the step of: providing a completion signal (401), indicating completion of control of the second motor (512), from the second programmable controller (114) to the first programmable controller (107) to cause the first programmable controller (107) to execute the next instruction step of the control program (104).

Inventors: NISHIMURA MAKOTO, NISHIMURA, MAKOTO, NISHIMURA, MAKOTO, C/O MITSUBISHI DENKI K.K.
Applicants: MITSUBISHI ELECTRIC CORP, MITSUBISHI DENKI KABUSHIKI KAISHA
Application year: 1994
Main classification: G05B19
IPC codes: G05B19