Motor driving control apparatus

Abstract: Disclosed is a motor driving control apparatus (2) having a function for performing the individual test operation of a servomotor driving control apparatus or an inverter apparatus by generating a command in the inside of the control apparatus instead of a command of a higher-rank controller, whereby both the function check and performance check can be made to attain an improvement in reliability and handling property.

Description: BACKGROUND OF THE INVENTION The present invention relates to an apparatus for driving an electric motor according to a control command supplied from an external apparatus such as an external computer or the like so as to control at least one of the rotational position and rotational speed of the motor, and particularly relates to a motor driving control apparatus suitable for the driving control of a servomotor used in robots and various kind of numerically controlled machine tools. In general, in order to drive a servomotor used in robots and various kinds of machine tools, driving power is supplied to the motor through a servo amplifier and the result is fed back by means of an encoder so that motor control exactly corresponding to a control command given from the outside can be attained. An example of this type motor driving control apparatus can be found in JP-A-62-193585. In such a motor driving control apparatus, the control apparatus does not operate if no control command is supplied from the outside. In short, the motor cannot be driven with any control command. Accordingly, it is difficult for the apparatus per se to judge whether or not the function thereof is kept normal. In the above prior art, a test operation based on a feedback control pulse signal can be made. However, the prior art has no special consideration in making checking possible as to whether or not the function is kept normal with respect to the control command given from the outside. There arises therefore a problem in complete function maintenance check of the apparatus which has been not yet installed in a robot, a machine tool or the like. FR-A-2 580 091 discloses a motor driving control apparatus including the features of the first part of claim 1. According to this document a special diagnosis software is operated during the diagnosis mode in the motor. A similar diagnosis performance is described in JP-A-55-150012, JP-A-56-149614 and JP-A-61-022 281. SUMMARY OF THE INVENTION It is the object underlying the invention to provide a motor driving control apparatus and a method therefor which enables to check the function and the performance of the motor driving control apparatus as well as a motor before they are installed in a system such as a robot or a machine tool. This object is met by an apparatus according to claim 1 and a method according to claim 8. Preferred embodiments are disclosed in the dependent claims. The motor driving apparatus according to the present invention comprises: an internal control command generation means for generating a control command of a predetermined pattern to operate the motor; and a control command selection means for desiredly selecting one of an externally supplied control command and the control command supplied from the internal control command generation means to thereby control motor. According to the present invention, the control command selection means is operated so as to select a control command from the internal control command generation means so that the motor driving control apparatus can obtain a control command necessary for individually controlling the driving of the motor. Accordingly, the same operation as that in the case where a control command is supplied from the outside can be obtained, so that function check can be made easily. BRIEF DESCRIPTION OF THE DRAWINGS Other features and advantages of the present invention will be apparent from the following description taken in connection with the accompanying drawings, wherein: Fig. 1 is a block diagram showing a first embodiment of the motor driving control apparatus according to the present invention; Fig. 2 is a flow chart showing the details of a controlling processing; Fig. 3 is a block diagram showing a second embodiment of the present invention; Fig. 4 is a block diagram showing a third embodiment of the present invention; Fig. 5 is a block diagram showing a fourth embodiment of the present invention; Fig. 6 is a block diagram showing a fifth embodiment of the present invention; and Fig. 7 is a view of external appearance showing the relation of connection in the fifth embodiment of the present invention. DESCRIPTION OF THE PREFERRED EMBODIMENTS The motor driving control apparatus according to the present invention will be described hereunder more in detail with respect to the embodiments illustrated in the drawings. Fig. 1 shows an embodiment in which the present invention is applied to a servomotor driving control apparatus which is used in a robot, a numerically controlled machine tool, or the like. In Fig. 1, the reference numeral 1 designates a driving commander apparatus which is in a rank higher than the motor driving control apparatus. The driving commander apparatus 1 is constituted by a control computer, a programmable controller, a data setter for setting various kinds of data, a pulse-train generator, and so on. The reference numeral 2 designates a servo-controller, 3 a micro-computer (one-chip micro-computer) constituting the servo controller 2, 4 a current detector, 5 a servomotor, 6 an encoder and 7 a changeover switch. In the micro-computer 3, incorporated are functions, in the form of software, necessary for the servo controller, such as an automatic position control amplifier portion 3b, an automatic speed control amplifier portion 3c, an automatic current control amplifier portion 3d, etc. In the micro-computer 3, further incorporated, also in the form of software, are a command signal generation portion 3a and a state monitor portion 3g. Of course, though not shown, storage means such as a ROM, a RAM and the like are provided in the micro-computer 3. The current detector 4 serves to detect a value of current supplied to the servomotor 5 from the automatic current control amplifier portion 3d to thereby output the current value as a current feedback signal IF. The encoder 6 serves to detect the rotational position, the rotational speed and the like, of the servomotor 5 to thereby outputs them as a position feedback signal PF and a rotational speed feedback signal NF. The reference numeral 3f designates a switch constituted by a software function, such as for example an input port switching function, of the micro-computer 3. The switch 3f serves to select desired one, as a position command P* of the micro-computer 3, of the signal supplied from the external driving commander apparatus 1 and the signal supplied from the internal command signal generation portion 3a. The switch 3f is controlled by input operation by a human operator through a remote operation device 8 (which will be described later in detail). As shown in the embodiment of Fig. 5, a changeover switch 7 constituted by a snap switch or the like directly operated by a human operator may be provided to have a hardware function for switching the pattern of position command P*. The reference numeral 10 designates a power amplifier section. In the following, the operation of the apparatus in this embodiment is described. The operation of the motor driving control apparatus installed in a robot, a numerically controlled machine tool or the like after the switching position of the changeover switch 7 has been set to the external driving commander apparatus 1 is the same as that of the conventional apparatus. That is, the apparatus is operated according to a position command P* given from the driving commander apparatus 1, so that a speed command N* is generated in the automatic position control amplifier portion 3b. The speed command N* is fed to the automatic speed control amplifier portion 3c to form a current command I* to be fed to the automatic current control amplifier portion 3d. At this time, the current supplied to the servomotor 5 and the rotational position and rotational speed given by the servomotor 5 are fed back as feedback signals IF, PF and NF, respectively. Accordingly, exact control of the servomotor 5 in accordance with the position command P* supplied from the driving commander apparatus 1 is secured. In the case where function check is required as to whether all functions of the motor driving control apparatus are maintained or in the case where performance check is required before the apparatus is installed in a robot, a machine tool or the like, the switching portion 3f is operated to the position for inputting the signal from the internal command signal generation portion 3a. At this time, the position command P* generated from the command signal generation portion 3a is fed to the automatic position control amplifier portion 3b, so that the servomotor 5 can be operated individually by the motor driving control apparatus and in the operation form suitable to function check or performance check. Accordingly, function check or performance check can be made suitably and easily before the apparatus is installed in a robot, an NC machine tool or the like. Accordingly, failure, lowering of reliability, and the like, can be prevented from occurring. As described above, the command signal generation portion 3a is designed so as to generate a test-operation position command P* (or a speed command N*) of a predetermined pattern useful for function check or performance check of the whole of the motor driving control apparatus including the servomotor 5 by software processing of the micro-computer 3. Therefore, a program necessary for generating this pattern is stored in the micro-computer 3 in advance, so that the position command P* of this pattern is issued automatically. Further, a function for inputting programs through the remote operation device and a memory function necessary for storing the programs may be provided to generate and store this pattern suitably by a user or the like. An embodiment of processing, executed by the micro-computer 3, suitable for the aforementioned operation, will be described below with reference to Fig. 2. When processing starts, a judgment is made in Step 1 as to whether or not test operation is designated. The judgment can be made by examining the switching position of the changeover switch 7. When, for example, the changeover switch 7 is in the position to select the external driving commander apparatus, the situation of the processing is shifted to the execution of ordinary operation. Thereafter, the operation of a predetermined pattern is carried out according to the position command P* generated from the command signal generation portion 3a. When it is confirmed that the operation of this pattern is attained perfectly, the test operation is terminated. Occurrence of a trip (abnormal cutoff) is always monitored during the test operation so that a trip processing can be carried out preferentially. After the test operation is terminated, the current supplied to the servomotor 5 may be cut off soon or the state of current supply may be fixed after the movement of the servomotor 5 to the designated stop position so that operation check can be made in a so-called servo-lock state. Further, the apparatus may be designed to be suitable for the individual test operation of only the servo controller 2 without connecting the servomotor 5 to the servo controller 2. At this time, the judgment as to whether the test operation of the servomotor is normal or not may be performed based on the detection of an abnormality of an output signal of the encoder 6. Alternatively, the judgment may be performed based on the failure of switching elements such as transistors in the motor driving circuit without performing the detection of the abnormality of the output signal of the encoder 6. A test operation pattern suitable for giving accelerative and decelerative motion to the motor may be used. In this case, the current takes a maximum value (a limit value in a current control system) at each of the time of acceleration and the time of deceleration so that safety check can be made. It is a matter of course that the operation pattern may be provided so as to be suitable for performance check of the apparatus. The judgment as to whether the operation state is normal is made in the state monitor portion 3g in Fig. 1. Although the aforementioned embodiment has shown the case where the present invention is applied to a servomotor driving control apparatus, it is to be understood that the present invention may be applied to an inverter for driving an induction motor. In this case, the inverter corresponds to the servo controller 2 in Fig. 1. A specific example of the inverter is shown in Fig. 4. In Fig. 4, the reference numeral 3e designates an inverter control portion for controlling output voltage and frequency, 9 an AC motor and 11 an inverter apparatus. Like numerals in each of the drawings refer to like parts. In general, the inverter is operated on the basis of a control signal from the outside to perform the operation of the induction motor in a predetermined pattern. In this embodiment, a command signal generation portion 3a is provided in the inside of the apparatus. Accordingly, the inverter can be operated individually without any position command P* and any speed command N* issued from the external driving commander apparatus 1. Accordingly, function check and performance check can be made easily to attain an improvement in reliability. Fig. 5 shows an embodiment in which the parts 3c and 3d in Fig. 1 are replaced by a vector control portion 3h. The vector control is known so commonly that detailed description thereof can be omitted. A further embodiment will be described below with reference to Figs. 6 and 7. Fig. 6 shows internal block construction in this embodiment, and Fig. 7 shows external appearance in this embodiment. In Figs. 6 and 7, the reference numeral 8 designates a remote operation device having a on-line multi-bit display unit 8a. The remote operation device 8 serves to directly take in data, such as a position command P*, a speed command N*, and the like, given to the micro-computer 3 from the external driving commander apparatus 1, give a meaning to the "row", and "column" of the data and display the data. On the other hand, in this embodiment, the micro-computer has a predetermined communication function corresponding to the remote operation device 8, so that the data given from the outside and taken in the micro-computer 3 can be transmitted back to the remote operation device 8. In this embodiment, accordingly, data given from the outside can be confirmed bit by bit with eyes, so that the external data and the interface for inputting the external data can be checked to attain a greater improvement in reliability. In this embodiment, at that time, data are displayed and monitored by using the display unit 8a provided in the remote operation device 8 which is included in the motor driving control apparatus. Accordingly, there is little fear of increase in cost. Although the aforementioned embodiment also has shown the case where the present invention is applied to a servomotor driving control apparatus, it is to be understood that the present invention may be applied to an inverter for driving an induction motor. In short, the servo controller 2 may be replaced by an inverter so that data given to the inverter from the driving commander apparatus 1 can be displayed in the display unit 8a of the remote operation device 8. Also in this case, function check, inclusive of the check of an interface to the external apparatus, can be made to attain a sufficient improvement in reliability. In the embodiment as shown in Figs. 6 and 7, the display unit 8a of the remote operation device 8 is, in general, used at the time of generation of programs by means of the remote operation device 8. Accordingly, the display unit 8a is not always optimum for displaying data. In this case, therefore, an exclusive-use display unit may be further provided for the purpose of displaying data. According to the present invention, the test operation of the motor driving control apparatus can be carried out individually and desiredly even before the apparatus is installed in a system. Accordingly, both function check and performance check can be made easily to attain a sufficient improvement in reliability and handling property.

Claims: A motor driving control apparatus for driving a motor (5) comprising an internal control command generation means (3a) for generating an internal control command of a predetermined pattern; and a control command selection means (3f) for selecting a desired one of an external control command given from an external apparatus (1) and the internal control command given from said internal control command generation means (3a), wherein said motor is operated either in an external control command operation mode in accordance with the external control command or in an operation test mode in accordance with the internal control command, and wherein at least one of a rotational position and a rotational speed of the motor is controlled in accordance with either one of the control commands; characterised by means for executing a procedure which is incorporated in the motor driving control apparatus in response to the control command selected from said internal control command given from said internal control command generation means (3a) and said external control command given from said external apparatus (1), said procedure controlling at least one of the rotational position and the rotational speed of the motor. The control apparatus according to claim 1, further comprising an operation analysis means (3g) for analysing the contents of a control operation at the time of the individual control operation in accordance with the internal control command given from said internal control command generation means (3a), thereby providing a self-diagnosis function. The control apparatus according to claim 1 or 2, wherein said internal control command of a predetermined pattern generated from said internal control command generation means (3a) is set to be rewritable. The control apparatus according to any of claims 1 to 3, further comprising a remote operation device (8) including a data input means. The control apparatus according to claim 4, wherein said remote operation device (8) further comprises a monitor display means (8a) for monitoring and displaying data of the external control command given from said external apparatus (1). The control apparatus (2) according to any of claims 1 to 5, further comprising a power amplifier section (10); a change-over commander section (7); an automatic position control portion (3b); an automatic speed control portion (3c); an automatic current control portion (3d); and an operation analysis means (3g) for analysing the contents of a control operation at the time of the individual control operation in accordance with the internal control command given from said internal control command generation means (3a). The control apparatus according to any of claims 1 to 5, further comprising a power amplifier section (10); a change-over commander section (7); an automatic position control portion (3b); a vector control arithmetic operation portion (3h); and an operation analysis means (3g) for analysing the contents of a control operation at the time of the individual control operation in accordance with the internal control command given from said internal control command generation means (3a). A method of operating a motor driving control apparatus comprising the steps of making a judgement as to whether the operation mode to be executed is an external control command operation mode or a test operation mode; when it is determined that the operation mode is the external control command operation mode, executing a procedure which is incorporated in the motor driving control apparatus and which controls at least one of a rotational position and a rotational speed of a motor in accordance with an external control command from an external apparatus; and when it is determined that the operation mode is the test operation mode, executing, in accordance with an internal control command of a predetermined pattern generated by an internal control command generating means the procedure incorporated in the motor driving control apparatus to be executed in the operation mode by the external control command from said external apparatus, thereby to execute a test operation and to confirm that the executed operation condition coincides with the internal control command.

Inventors: KOBAYASHI SUMIO, NAKAGAWA KAZUYUKI, SUGAI HIROSHI, SUGIYAMA KAZUMASA, TOKASHIKI MUTUO, KOBAYASHI, SUMIO, NAKAGAWA, KAZUYUKI, SUGAI, HIROSHI, SUGIYAMA, KAZUMASA, TOKASHIKI, MUTUO
Applicants: HITACHI KEIYO ENG, HITACHI LTD, HITACHI KEIYO ENGINEERING CO., LTD., HITACHI, LTD.
Application year: 1990
Main classification: G05B19
IPC codes: H02P29, G05B19, G05B23