Numerical control method and apparatus the same

Information

  • Patent Grant
  • 5608640
  • Patent Number
    5,608,640
  • Date Filed
    Friday, December 23, 1994
    30 years ago
  • Date Issued
    Tuesday, March 4, 1997
    27 years ago
Abstract
To control the operation of an actuator in the minimum time and with a high efficiency for an operation of a short pitch. A numerical control method for controlling the operation of at least one actuator by a servo circuit having a certain characteristic. The numerical control method is characterized in that an eigen value (.beta.) by which an amount of movement up to an eigen acceleration and deceleration time (Tp) of the servo circuit becomes one-half of a target amount of movement (.DELTA..theta.) which is input and a step signal of a value (.beta..multidot..DELTA..theta.) obtained by multiplying this eigen value with the target amount of movement is input to the servo circuit, whereby the operation of the actuator during a time from at least the start of the operation to the eigen acceleration and deceleration time is controlled.
Description

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a numerical control method and a numerical control device for a servo system which is preferably applied to short pitch movement such as for example 50 mm or less.
2. Description of the Related Art
As one indicator considering the motion ability of a robot, there may be mentioned the "tact time". It is considered desirable that this time be shortened as much as possible and in addition that it not be accompanied with unnecessary vibration.
Among the techniques for trying to shorten the tact time for long pitch movement, conventionally (1) attempts to optimize the servo parameters, (2) attempts to optimize an acceleration and deceleration curve (hereinafter also referred to as an acceleration and deceleration pattern), and (3) attempts to optimize an acceleration and deceleration time Tp considering the actuator power (time from the acceleration start time t=0 to when the speed .omega. reaches a peak value .omega..sub.r, hereinafter also referred to as a peak time Tp) have been investigated.
For example, as a method of optimization of the acceleration and deceleration curve with respect to the above-described (2), there has been the proposal made in Japanese Patent Application No. 2-283867 (Japanese Unexamined Patent Publication No. 4-157508). As a method of optimization of the acceleration and deceleration time considering the actuator power with respect to the above-described (3), there has been the proposal in U.S. Pat. No. 5,331,542.
To shorten the movement time for short pitch movement of about 50 mm or less, a technique of raising the frequency characteristic of a servo loop, a technique of simply inputting a step signal .DELTA..theta. of an input position, a technique of adopting various cam curves for an instruction input, etc. have been used.
However, to raise the frequency characteristic of the servo loop, it is necessary to increase the speed of the computation time of the CPU and eliminate or moderate the resonance of the mechanical system in the robot, and therefore if suffers from the disadvantages in that the CPU becomes expensive and a long time is consumed for the attempts to eliminate or moderate the resonance of the mechanical system. Also, it suffers from the disadvantage in that the time for reaching the target position of .DELTA..theta. becomes extremely long if merely a step signal .DELTA..theta. of the input position is input to the servo circuit (in principle, an infinite time is required). Further, it suffers from the disadvantage in that, when various cam curves are adopted for the instruction input, a long time is required for the calculation of the related cam curve and the rising time becomes large in comparison with the eigen acceleration and deceleration time Tp in principle.
SUMMARY OF THE INVENTION
An object of the present invention is to provide method and apparatus of numerical control, enabling the control of the operation of an actuator with the shortest time and high efficiency for an operation of a short pitch.
According to the present invention, there is provided a numerical control method for controlling an operation of at least one actuator by a servo circuit having a certain characteristic, characterized in that an eigen value (.beta.) by which an amount of movement up to an eigen acceleration and deceleration time (Tp) of the servo circuit becomes one-half of a target amount of movement (.DELTA..theta.) which is input and a step signal of a value (.beta..multidot..DELTA..theta.) obtained by multiplying this eigen value with the target amount of movement is input to the servo circuit, whereby the operation of the actuator during a time from at least the start of the operation to the eigen acceleration and deceleration time is controlled.
In this case, preferably the operation of the actuator caused by inputting the step signal of a value (.beta..multidot..DELTA..theta.) obtained by multiplying the eigen value with the target amount of movement is stored at a predetermined time interval, this stored information is folded back about the eigen acceleration and deceleration time (Tp) as a symmetrical axis to produce operation information, and the operation of the actuator after the eigen acceleration and deceleration time is controlled based on this operation information.
Also, after the eigen acceleration and deceleration time, the operation of the actuator can be controlled by inputting the step signal of the target amount of movement (.DELTA..theta.) to the servo circuit.
Also, according the present invention, there is provided a numerical control apparatus in which a position instruction signal is transmitted to a servo circuit having a certain characteristic from an instruction value generation unit based on the input target position information and a position information from a position detection unit detecting the movement position of the actuator and the operation of at least one actuator is controlled by this servo circuit, characterized in that provision is made of a detected position storage unit which stores the operation position information of the actuator detected by the position detection unit and a storage reading unit which reads the operation position information stored in the detection position storage unit by folding the same at a middle point of the route based on the signal from the instruction value generation unit and transmits the same to the servo circuit.
In this case, preferably the transmission signal from the instruction value generation unit is a step signal of a value (.beta..multidot..DELTA..theta.) obtained by multiplying with the target amount of movement an eigen value (.beta.) found so that the amount of movement up to the eigen acceleration and deceleration time (Tp) of the servo circuit becomes one-half of the target amount of movement (.DELTA..theta.).
Also, the middle point of the route is the eigen acceleration and deceleration time (Tp) of the servo circuit, a point where the speed differential of the position information detected by the position detection unit becomes negative, or is calculated based on the target position information which is input.
Note that, it is also possible to control the operation of the actuator by an arbitrary movement time of 2Tp or more irrespective of the input target position information.
When the characteristic of the servo system is determined, the minimum acceleration and deceleration time Tp with respect to the target amount of movement .DELTA..theta. is determined unconditionally and also an eigen value .beta. whereby the amount of movement up to t=Tp becomes one-half of the target amount of movement is determined unconditionally.
In the present invention, attention is paid to this point. An eigen value .beta. whereby the amount of movement until t=Tp becomes one-half of the target amount of movement is found, and a step signal of a value .beta..multidot..DELTA..theta. obtained by multiplying this with the target amount of movement is input to the servo loop. By this, the operation of the actuator at the rising time up to t=Tp is controlled. Accordingly, the actuator can be controlled by the value of the limit of capability of the servo loop without a need for complex calculation in the CPU, and so a short tact time in a short pitch operation can be realized.
On the other hand, after t=Tp, the pattern of the actual operation of the actuator produced by inputting this step signal .beta..multidot..DELTA..theta. is stored. This pattern is found by folding the stored operation pattern at t=Tp. The operation of the actuator is controlled based on this position information (hereinafter also referred to as the step-exponential method). In this technique, the position instruction signal after t=Tp can be produced by just reading the stored information of the storage unit, and therefore it is not necessary to perform a complex calculation in the CPU and the sampling time of the stored information and the position instruction calculation interval of the servo loop coincide, which is ideal for control.
Moreover, as the control method after t=Tp, in addition to the above-mentioned step-exponential method, it is also possible to control the operation of the actuator by inputting a step signal of the target amount of movement .DELTA..theta. to the servo circuit (hereinafter also referred to as a step-step method). In this case, an error .DELTA..beta. of the eigen value .beta. possessed by the step-exponential method is not included. Therefore, this method is effective as an actual control method.
As the middle point of the route in the step-exponential method, step-step method, or the like, other than the usage of the eigen acceleration and deceleration time Tp, it is also possible if the speed is found by differentiating actual position information detected by the position detection unit (encoder) and if the point at which this speed differential is changed from positive to negative is defined as the middle point of the route. Alternatively, it is also possible to find the same by simply multiplying the target position information .DELTA..theta. to be input with for example one-half.
Further, while it can be said that the present invention is suitable for a short pitch operation, the present invention can be applied also to a case where the movement time is intentionally made longer or variable. Namely, concerning override, it is sufficient if the position instruction of an acceleration part and a deceleration part is produced by the above-mentioned procedure and a part between them is processed as a low speed part.





BRIEF DESCRIPTION OF THE DRAWINGS
These and other objects and features of the present invention will become more apparent from the following more detailed description of the preferred embodiments with reference to the accompanying drawings, in which:
FIG. 1 is a view of an example of a configuration of a numerical control apparatus according to the present invention;
FIG. 2 is a line drawing of the signal flow showing a servo loop according to the present invention;
FIG. 3 is a graph of a position output/speed output when a step signal having a magnitude of .beta..DELTA..theta. is input as a position instruction to the servo loop of FIG. 2;
FIG. 4 is a graph of an ideal acceleration and deceleration curve in the servo loop of FIG. 2;
FIG. 5 is a line drawing of a signal flow a step signal of .beta..DELTA..theta. is input to the servo loop according to the present invention;
FIGS. 6A and 6B are graphs of the position output/speed output explaining the position instruction input processing of a step-exp method according to the present invention;
FIG. 7 is a graph of the position output for explaining the position instruction input processing of the step-exp method according to the present invention in the same way as the above;
FIG. 8 is a graph of the format for recording information in a detection position storage unit according to the present invention;
FIG. 9 is a graph of the position output for explaining a step of making the stored information in the storage reading unit symmetrical according to the present invention;
FIG. 10 is a graph of the position output in the step-exp method according to the present invention;
FIG. 11 is a graph of the position output in a ramp-exp method according to another embodiment of the present invention;
FIG. 12 is a graph of a relationship between a ramp rising time tp and an amount of movement .DELTA..theta. in an embodiment shown in FIG. 11;
FIG. 13 is a graph of the position output in a step-step method according to still another embodiment of the present invention;
FIG. 14 is a view for explaining the relationship between the step-exp method and an override according to the present invention;
FIG. 15 is a graph of an acceleration pattern for explaining an error in the step-exp method according to the present invention;
FIG. 16 is a graph of the acceleration pattern for explaining an error in the step-exp method according to the present invention in the same way as the above;
FIG. 17 is a graph of the acceleration pattern for explaining an error in the step-exp method according to the present invention in the same way as the above;
FIG. 18 is a line drawing of a signal flow showing the servo loop for explaining a difference of the servo frequency-characteristic in the present invention;
FIG. 19 is a graph of the position pattern for explaining a method of correction of an error in the step-exp method shown in FIG. 16;
FIG. 20 is an enlarged view of FIG. 19; and
FIG. 21 is a graph of the position pattern for explaining a method of correction of an error in the step-exp method shown in FIG. 17.





DESCRIPTION OF THE PREFERRED EMBODIMENTS
First of all, the principle of the present invention will be explained in the sections items referring to the figures.
Principle of the present invention
(1) Regarding eigen acceleration and deceleration time Tp
(1-1) Tp of third order servo loop
(1-2) Relationship between servo parameter and servo frequency-characteristic
(1-3) Relationship between Tp and servo frequency-characteristic
(2) Regarding position instruction input processing of step-exponential method
(2-1) Position instruction algorithm
(2-2) Long pitch movement and ramp-exponential method
(2-3) Step-step method
(2-4) Step-exponential method and override
(3) Error in step-exponential method
(3-1) Precision of .beta. and .delta.(Tp)
(3-2) Detection error of speed peak point t=Tp
(3-3) Difference of servo frequency-characteristic of respective axes
(4) Correction of error in step-exponential method
(4-1) Correction method of .beta. and .delta.(Tp) error
(4-2) Correction method of detection error of speed peak point t=Tp
(1) Regarding eigen acceleration and deceleration time Tp
First, since the present invention is a numerical control method utilizing a step response time Tp to the servo loop, an explanation will be made of this Tp.
(1-1) Tp of servo loop of third order
As shown in FIG. 2, the principle of the present invention will be explained using a third order servo loop as an example, but the following explanation should not be construed as losing its general nature. The principle of the present invention may similarly applied even if the servo loop is a fourth order or higher loop.
The parameters in FIG. 2 are as shown in the figure. The output function .theta..sub.o (S) of this third order system servo loop is expressed as the following equation 1-1 when defining the input instruction function as .theta..sub.r (S). ##EQU1##
The output function .theta..sub.o (S) of this third order servo loop is defined as in the following equation 1-2 using the time constants T.sub.1, T.sub.2, and T.sub.3. ##EQU2##
Here, when the step signal .beta..multidot..DELTA..theta. is input to the input instruction function .theta..sub.o (S), equation 1-2 can be expressed the following equation 1-3. ##EQU3##
When this equation 1-3 is subjected to a Laplace inverse transformation, it can be expressed as the following equation 1-4 for the position output, speed output, and acceleration degree output. ##EQU4##
When this circumstance, that is, the position output and speed output when the step signal .beta..multidot..DELTA..theta. is in input to the above-mentioned third order servo loop is illustrated, it becomes as in FIG. 3. The point which should be noted here is that the time Tp at which the speed output reaches the peak is always constant irrespective of the target amount of movement .DELTA..theta.. In other words, if the time constants T.sub.1, T.sub.2, and T.sub.3 are determined, that is, if the servo parameters Kp, K, and Ki are determined, this can be said to be the unconditionally determined eigen amount of the related servo loop. The time Tp at which the speed output reaches the peak can be found by solving the following equation 1-5 in the equation 1-4:
.theta.o(t.sub.v)=0 (1-5)
Note that, if equation 1--1 and equation 1-2 are used, as in the following equation 1-6, the relationships among the servo parameters p, K, and Ki and the time constants T.sub.1, T.sub.2, and T.sub.3 become clear. ##EQU5##
(1-2) Relationships between servo parameters and servo frequency characteristic
Next, the relationships among the servo parameters Kp, K, and Ki and the servo frequency-characteristics (0 dB cut frequency f.sub.0 or T.sub.0 =1/f.sub.0) are found. It is assumed that the target characteristic (transfer function) of the third order servo loop mentioned above is given as in the following equation 1-7: ##EQU6##
In this case, the coefficients a, b, and c (each given a bar above them) can be determined in accordance with the target characteristic, but since equation 1-7 is a third order, if the following is selected according to the coefficient of a Butterworth polynomial: ##EQU7## a Butterworth characteristic without overshoot is obtained. Moreover, it is also possible to obtain various characteristics by a slight shift from these values.
Note that, the coefficient of a Butterworth polynomial is disclosed on pp. 269 to 276 of "Gazo Denshi Kairo (Image Electronic Circuits)" (first edition) edited by the Television Society and published by Corona Ltd.
When equation 1-8 is substituted in equation 1-7, the following equation 1-9 is obtained: ##EQU8##
On the other hand, a loop open characteristic G.sub.OP (S) is expressed by the following equation 1-10: ##EQU9##
When comparing the second terms from this and equation 1-9, the following is obtained: ##EQU10##
The relationship between the corner frequency (-3 dB frequency) .omega..sub.c and 0 dB cut frequency .omega..sub.o is: ##EQU11## and therefore if equation 1-11 is solved using this equation 1-12, the following equation 1-13 is obtained: ##EQU12##
In this case, when it is assumed that the target characteristic is the Butterworth characteristic, from equation 1-8, the following is obtained: ##EQU13## (1-3) Relationship between Tp and servo frequency-characteristic T.sub.o
As already mentioned, Tp is the time of arrival up to the peak value of the speed output with respect to the input of the step signal and is an eigen value of the servo loop irrespective of the magnitude of the input of the step signal. As the input, there is no input faster than the input of the step signal, and therefore it can be said that Tp is the minimum rising time of the servo loop.
If energy dissipation such as friction can be ignored, the minimum movement time where this servo loop system is made to perform a PTP (point to point) operation of a smooth stoppage, that is, the minimum tack, will be 2Tp as shown in FIG. 4. Therefore, if the relationship between the servo loop frequency-characteristic and Tp is known, when the desired specification of the tact is determined, which degree of servo frequency-characteristic is needed can be decided conversely. For this reason, when the relationship between the servo loop frequency-characteristic and Tp is investigated, from equation 1-6 and equation 1-13, it becomes: ##EQU14## Accordingly, the following is obtained: ##EQU15##
By finding the time constants T.sub.1, T.sub.2, and T.sub.3 of equation 1-16, Tp is obtained, but as is clear from this equation, the time constant T.sub.i (i=1 to 3) is a solution of the next third order equation: ##EQU16## equation 1-9, which is an ideal target characteristic of the servo loop, is determined according to the target specification, the mechanical system of the robot, the condition of the actuator, etc. However, it is generally considered ideal if the Butterworth characteristic is one by which a dynamic range input to the actuator is sufficiently large, that is, one which is absolutely stable and satisfies a circle condition under a condition that the actuator input is not saturated (that is, overshoot will not occur). Note, as an actual characteristic, it is also possible even if the characteristic is slightly finely adjusted from this Butterworth characteristic, but theoretically no problem is caused by the Butterworth characteristic.
Therefore, by using the Butterworth characteristic as the ideal characteristic, the relationship between Tp and T.sub.0 is obtained.
From equation 1-8, equation 1-17 is rewritten as follows: ##EQU17##
When this is subjected to factor analysis, it becomes: ##EQU18##
Accordingly, the following is obtained: ##EQU19## and simultaneously coefficients .alpha. and .alpha. bar are defined as in equation 1-18.
Incidentally, it should be noted that -1/T.sub.1, -1/T.sub.2, and -1/T.sub.3 are poles of equation 1-2.
Next, when equation 1-18 is substituted in equation 1-4 and equation 1-5, the following equation 1-19 is obtained: ##EQU20##
When this equation 1-19 is cleaned up, the result is: ##EQU21## but the second term on the left side can be modified as in equation 1-21, and the third term on the left side can be modified as in equation 1-22. ##EQU22##
When this is substituted in equation 1-20, the result is: ##EQU23## when it is cleaned up for .tau..sub.p, the result is: ##EQU24##
By substituting a=1/2 and b=3/2 in this equation 1-24, the equation for .tau..sub.p is obtained: ##EQU25## this is the relationship between T.sub.o and 2 Tp.
Accordingly, when an intended tact 2 Tp is given, it can be estimated at least which degree of the servo loop frequency-characteristic (T.sub.o) is necessary.
Note that, "at least" is due to that fact that the prerequisite for deriving equation 1-27 is that the instruction value is input by a step signal. Namely, this is because it is not always necessary to input the step signal as the instruction value. It is also possible to use for example a triangle, synthetic sin, exponential and the other acceleration and deceleration patterns, and a servo delay is caused with these inputs. In actuality, it can be said that it is more preferable if about double the margin is ensured.
For example, where a tact 0.2 sec is necessary, it becomes T.sub.o =0.52.times.0.2=0.104 sec from equation 1-27, and accordingly f.sub.o =1/T.sub.o =9.6 Hz is obtained. When it is assumed that double the margin is ensured, in the end 19 Hz or more becomes necessary as the frequency-characteristic of the servo loop.
Note that, where the relationship of Tp and T.sub.o in the other characteristics is desired to be known, it is sufficient if concrete values of the coefficients of those characteristics, the a bar, b bar, and the c bar, are substituted in equation 1-17 to obtain equation 1-17'and the procedures as described above are followed.
(2) Regarding position instruction input processing of step-exponential method
Next, the step-exponential method of the numerical control method according to the present invention will be explained. According to the present method, the rising time until the speed reaches the peak is the same as the rising time Tp inherent in the servo loop and becomes the optimum. Also, there is almost no need for the calculation of instruction values usually performed by a host computer--which is complex and requires a long time--as in the conventional method. Further, the calculation interval of the instruction value (sampling time T.sub.RS) must be set as T.sub.SS <<T.sub.RS due to the computing power of the usual CPU, but according to the present method, it can be made the same as the sampling time T.sub.SS of the servo circuit, that is, T.sub.RS can be made equal to T.sub.SS and therefore is ideal. From this, it is suitable for particularly short pitch and short tact specifications.
(2-1) Position instruction algorithm
Below, an explanation will be made of the position instruction algorithm of the present invention. In the PTP operation explained here, it is assumed that the amount of movement is .DELTA..theta. and the value of .beta. is stored on the host computer side. Also, due to the short pitch, the peak speed of the motor is the highest speed of the motor or less and there is an acceleration and deceleration curve of the exponential type. Further, the servo side can deal only with integers, and the calculation interval of the instruction value (sampling time) T.sub.RS and the sampling time T.sub.SS of the servo circuit are defined as T.sub.SS <<T.sub.RS.
From the above assumption, first, the host computer transmits the amount of movement .DELTA..theta. and .beta..multidot..DELTA..theta. (integer) to the servo CPU before the start of the PTP operation. The host computer basically only performs this operation, and accordingly the operation can be made extremely simple. On the servo side receiving the transmission of this data, the received .beta..multidot..DELTA..theta. is input to the position instruction of the servo loop at every sampling time T.sub.SS of the servo circuit as shown in FIG. 5. By this, the motor starts the operation at a position and with a speed as shown in FIG. 6. At this time, the servo side reads out the .theta..sub.o of the output of an encoder (position detection unit) at every sampling time T.sub.SS of the servo circuit and stores this value in the memory (detected position storage unit). In parallel with this storage operation, the servo side calculates the speed differential .theta. dot using the encoder output and monitors an increase or decrease of this speed differential, that is, the peak point.
When the speed differential .theta. dot decreases (becomes negative), it means that the peak point is detected, and therefore thereafter the instruction value is calculated from .DELTA..theta. and the information of the memory and this is input to the servo loop. This situation is indicated by a one dot chain line of FIG. 6. The position pattern which has been stored in the memory is obtained by sampling the motion of the motor and load (arm) per se at every sampling time T.sub.SS of the servo circuit, and therefore it can be said that this is the most ideal curve in the third order exponential pattern. In addition, it can be obtained without any calculation and merely by reading the position information from the memory.
The production of the instruction value after the time Tp until the peak speed is reached is carried out in the following way. First, when it is assumed that the pattern shown in FIG. 7 is stored in the memory, after t=Tp, the servo input instruction value .theta..sub.1 (Tp+nTss) shown in FIG. 8 is calculated at every sampling time T.sub.SS of the servo circuit. By this servo input instruction value .theta..sub.i, as shown in FIG. 9, a pattern rotated by 180.degree. about the point (Tp, .theta..sub.ON) of FIG. 7 as the center will be prepared.
Note that, an ideal circumstance is assumed in the above explanation, but in reality there may be problems such as a case where Tp/T.sub.SS is not an integer, a case where the eigen amount .beta. is not strictly known, etc. If a pattern information before t=Tp is used for the pattern after t=Tp due to such problems, there is a concern that a slight step difference will be caused in n=1 and n=N. However, no large problems have been pointed out even if a triangular acceleration and deceleration pattern is used. In addition, there should be no problem in the operation of the motor due to the filtering effect of the servo circuit.
The above description was of the step-exponential method according to the present invention, which was illustrated as in FIG. 10. As already mentioned, .beta. is the eigen amount of the servo loop characteristic and is a value with which a distance of movement up to the time Tp when the step signal of .beta..multidot..DELTA..theta. is input becomes .DELTA..theta./2. Next, the position information until 0.ltoreq.t.ltoreq.Tp is stored in the memory. When Tp.ltoreq.t.ltoreq.2Tp, the position information is produced on the servo side based on the stored position information.
(2-2) Long pitch movement and ramp-exponential method
In the above-mentioned step-exponential method, the position step input is input to the servo loop, and therefore when the value .beta..multidot..DELTA..theta. of this step signal becomes large, also the motor current becomes large and there is a concern that it will exceed the peak current of the motor.
For this reason, preferably the following ramp-exponential method is used for example for long pitch movement. Note, the basic concept and algorithm of the ramp-exponential method are the same as the step-exponential method, and therefore a detailed explanation is partially omitted here by showing the situation of the position instruction corresponding to FIG. 10 in FIG. 11.
As shown in FIG. 11, the period until the rising time, i.e., 0.ltoreq.t.ltoreq.tp, is raised by a so-called ramp, but this ramp time tp is made to fluctuate in accordance with the movement distance so as to prevent the motor peak current from being exceeded. It is also possible to theoretically determine the ramp rising time tp, but desirably it is actually determined by collecting the data using .DELTA..theta. as the parameter. In this case, desirably a system is formed so that it can be determined by inputting the .DELTA..theta.-tp characteristics as shown in FIG. 12, for example a point (.DELTA..theta..sub.min,tp.sub.min) and a point (.DELTA..theta..sub.max, tp.sub.max) in FIG. 12 are input from a teaching pendant.
(2-3) Step-step method
Strictly speaking, the step-exponential method includes a problem concerning error mentioned later, and therefore really it is also possible to input the step signal of the target amount of movement .DELTA..theta. for the operation after t=Tp as shown in FIG. 13.
(2-4) Step-exponential method and override
As already mentioned, the step-exponential method according to the present invention is a preferred numerical control method for achieving a short tact with respect to short pitch movement, but where there is a request for override that can make the movement time variable, this can be processed by the following algorithm:
Note that, the symbols used in the following explanation are as follows:
.DELTA..theta.: Movement distance
2Tp: Movement time (Tp is an eigen time of the servo loop)
.beta.: Value with which the distance of movement from t =0 to t=Tp when the step signal of .beta..multidot..DELTA..theta. is input to the servo loop becomes .DELTA..theta./2 and an eigen amount of the servo loop (already known)
T.sub.RS : Acceleration and deceleration calculation cycle of the host CPU (sampling time)
T.sub.ss : Sampling time of the servo CPU
P: Override (%)
.omega..sub.p : Peak speed of the motor operating by the step-exponential method (speed when t=Tp)
.delta.(Tp): Constant satisfying .DELTA..theta.=.delta.(Tp).multidot..omega..sub.p, and an eigen amount of the servo loop (already known)
First, the following processing is carried out in the host computer. Namely, when the movement time is multiplied by the override P, the following equation 2-1 is obtained: ##EQU26##
The acceleration and deceleration instruction in this case can be divided into the acceleration and deceleration part and the low speed part as shown in FIG. 14. From this FIG. 14, in the override algorithm on the host computer side, first, .omega..sub.p -.delta.(Tp) is calculated by the following equation 2-2 and 2-3. ##EQU27##
Subsequently, respective values of the .DELTA..theta., .beta.-.omega..sub.p .multidot..delta.(Tp), and 2Tp (100/P-1), .omega..sub.p, .DELTA..theta.-.omega..sub.p .multidot..delta.(Tp) are transmitted to the servo side.
On the other hand, on the servo side, the step signal of the .beta..multidot..omega..sub.p .multidot..delta.(Tp)/s is input to the servo position input using the .beta..multidot..omega..sub.p .multidot..delta.(Tp) received from the host computer. Simultaneously with this, the motor position of 0.ltoreq.t.ltoreq.Tp is stored in the memory.
When t becomes equal to Tp, the instruction value is increased by increments of .omega..sub.p .multidot.T.sub.ss at every sampling time T.sub.ss of the servo circuit. By this, it will be increased by n-.omega..sub.p .multidot.T.sub.ss the n-th times. The negative/positive state of equation 2-4 is verified. Then, when this equation 2-4 becomes 0 or less, the motor position is read out from the memory at every sampling time T.sub.ss, and the processing of FIG. 8 is carried out.
{.DELTA..theta.-.omega..sub.p .multidot..delta.(T.sub.p)}-n.multidot..omega..sub.p .multidot.T.sub.ss(2-4)
(3) Error in step-exponential method
As mentioned above, the numerical control method by the step-exponential method is effective for effecting the short tact of a short pitch and operates sufficiently for practical use. Note, along with the higher precision of the controlled system, there sometimes occurs a case where satisfactory control cannot be carried out since an error is included in the above-described method. This point will be investigated.
(3-1) Precision of .beta. and .delta.(Tp)
The already mentioned constant .beta. and .delta.(Tp) are eigen values of the servo loop and are values defined by the following equation 3-1. ##EQU28##
In this case, .theta. and .theta. dot are given by equation 1-4. As is clear from the related equation 1-4, .theta. and .theta. dot are determined by the time constants T.sub.1, T.sub.2, and T.sub.3, and further these time constants are determined by the servo parameters Ki, Kp, and K. That is, .theta. and .theta. dot are determined by the servo tuning, and therefore strictly speaking, usually the constants .beta. and .delta.(Tp) become different values for every robot and for every axis.
However, if this is done, the operation becomes cumbersome, and therefore if the servo loop characteristic is tuned to for example the Butterworth characteristic of equation 1-9, .beta. and .delta.(Tp) of the same value can be adopted for every robot and for every axis. Note, even in this case, the viscosity and friction of the motor mechanical system differ for every robot and every axis, and these cannot be strictly managed, and therefore .beta. and .delta.(Tp) include error after all.
Concretely, in the step-exponential method, .beta..multidot..DELTA..theta. is transmitted from the host computer to the servo side, but when the error of .beta. at this time is defined as .DELTA..beta., the error of .DELTA..beta..multidot..DELTA..theta. will be generated. Accordingly, when .beta. bar is defined as a nominal value, the error .DELTA..beta..multidot..DELTA..theta. is expressed by the following equation 3-2. The amount of error of .DELTA..theta. can be estimated from this. ##EQU29## where, e.sub..beta. expresses an error of .beta. by % . . . (3-2)
In this way, if the error .DELTA..beta..multidot..DELTA..theta. exists in .DELTA..theta., there is a concern that the following inconvenience may occur. That is, in FIG. 15, ideally the surface area of the hatching part must be .DELTA..theta./2, but the input of the step signal is not:
.beta..multidot..DELTA..theta.
and the following is input: ##EQU30## and therefore the actual surface area of the hatching part becomes: ##EQU31##
Accordingly, after t=Tp, it is increased (decreased) exactly by: ##EQU32## and even if the processing shown in FIG. 8 is carried out, strictly speaking an ideal exponential curve is not exhibited, and an adverse influence will be exerted upon the motor operation. For this reason, in the actual servo input, it is necessary to input a value considering the error of .beta. and .delta.(Tp).
(3-2) Detection error of speed peak point t=Tp
On the servo side, the position of the motor is sampled at a T.sub.ss cycle (for example 2.5 msec), and therefore a sampling error is generated. As this sampling error, two types mentioned below can be considered. Note, an explanation will be made by assuming that an error of .beta. is not present.
First, in FIG. 16, the sampling point S.sub.i at every T.sub.ss cycle is indicated by ".DELTA.". Where:
.theta.(S.sub.-1).gtoreq..theta.(S.sub.1)
the passing of the peak point can be detected at a sampling point S.sub.1, but in the step-exponential method, S.sub.1, S.sub.2, . . . are determined according to FIG. 8 (".DELTA." of FIG. 16), and therefore it will be out of the ideal exponential pattern between the sampling points S.sub.-1 and S.sub.1. This is because Tp has not become a whole multiple of TSS, and t=Tp is deviated from the sampling point.
The other sampling error is the case shown in FIG. 17. That is, when:
.theta.(S.sub.-1)<.theta.(S.sub.1)
it has not yet been possible to perform the peak detection at the sampling point S1, the peak point is detected at first at S2, and the processing of the step-exponential method is entered from this point S2. For this reason, it becomes a point .DELTA. shown in FIG. 17, which is out of the ideal exp pattern.
In any case, the position instruction value deviates from the ideal instruction before or after t=Tp due to the sampling error, but the servo loop can be grasped as one type of filter (low pass filter), and therefore it can be considered that the actual adverse influence is small. Note, it is also possible to consider a case where this sampling error exceeds an allowable range, and therefore the algorithm of a method of correcting this will be mentioned later.
(3-3) Difference of servo frequency-characteristic of respective axes
An important element in the above-mentioned step-exp method is Tp. This Tp is a physical amount uniformly determined by the servo loop characteristic (pole arrangement). On the other hand, in the PTP operation of a multiple-axis robot, a simultaneous start and simultaneous stop are the rule, but to realize this by the step-exp method, it is necessary to make the servo characteristics of the respective axes (.theta.1, .theta.2, Z, R), that is, Tp, match. Unless this is done, if an orthogonal type robot is made to operate along the X and Y axes by the step-exp method, the end effect path is not the ideal straight line motion.
It is, however, impossible to make the servo loop characteristics of the respective axes completely match. To solve this problem, a loop construction which enables this to be done in principle is adopted. Namely, in the servo loop of the present invention, the left side from the line P--P in FIG. 18 has a control structure based on software, and the right side has a control structure based on hardware, and therefore if the values of the parameters K and Kp on the left side are made exactly the same values at the respective axes, exactly the same characteristics are exhibited in the respective axes. On the other hand, although the characteristic differs for every axis in the hardware part on the right side of the line P--P, if the difference is adjusted by the parameter Ki, it becomes possible to make all axes have the same characteristic after all.
(4) Correction of error in step-exp method
Next, one example of the correction algorithm of an error in the step-exp method of the present invention mentioned above will be explained.
(4-1) Correction method of .beta. and .delta.(Tp) error
According to the above-mentioned equation 3-3, if it is assumed that .beta. contains an error by exactly an amount of .+-..DELTA..beta. with respect to the nominal value .beta. bar, after t=Tp, an error of: ##EQU33## is contained. This value can be determined at a point of time of detecting t=Tp, and that value becomes equation 4-1: ##EQU34##
Here, .theta.(Tp) is an amount of movement until t=Tp. This value can be naturally determined by the servo side. Note that, this value is ideally .DELTA..theta./2.
So as to correct the error amount of equation 4-1 after t=Tp, proportional division is carried out based on a speed information .theta.(S-i) dot in a period of 0.ltoreq.t.ltoreq.Tp in accordance with the speed and correction is carried out in a period of Tp.ltoreq.t.ltoreq.2Tp. That is, when it is assumed that the correction amount at the sampling point Si is .DELTA..epsilon.i, it can be expressed by the following equation 4-2. ##EQU35##
When doing this, equation 4-1, which is the total error, is divided in proportion to the magnitude of speed of the exp speed pattern, and it will not exert a great influence upon the pattern after t=Tp. Note that, it is assumed that .DELTA..theta. is input as the instruction value without fail at a point of time when t=Tp, whereby error in calculation and other errors are absorbed.
(4-2) Correction method of detection error of speed peak point t=Tp
As already mentioned, there are two types of detection errors of the speed peak point t=Tp. Therefore an explanation will be made also of the correction method thereof for each of the two types of detection errors.
First, in the detection error of the type shown in FIG. 16, there was a problem that, if the step-exp method was applied according to FIG. 8 after the speed peak was clarified at S1 shown in the same figure, it became a point .DELTA. in FIG. 19, and the pattern was deviated from the ideal one. Then, the cause was that t=Tp and the sampling point were deviated.
Therefore, in the present correction method, this deviation in this time axis direction is corrected. Namely, from FIG. 19, the following can be decided:
.theta.(S.sub.-1).ltoreq..theta./2.ltoreq..theta.(S.sub.1) (4-3)
and therefore since the method of generation of the ideal position instruction is to produce an instruction which is point symmetrical relative to the peak point of t=Tp, point symmetry is exhibited using the value of the X point at a point S'-1 at which it becomes Tp-t (S'-1) from t (S1)-Tp=t2. However, the point S'-1 is not a real sampling point, and therefore it is necessary to perform interpolation using the values .theta.(S-1) and .theta.(S-2) stored at real sampling points S-1 and S-2. This is true also for a general point S'-1.
This linear interpolation is expressed as follows from FIG. 20: ##EQU36##
When this is solved for .theta.(S-1), it becomes: ##EQU37## and when it is generalized and .theta.(S-1) is obtained, it becomes: ##EQU38## After S1, it is sufficient if the instruction according to the step-exp method is calculated as in FIG. 8 using this .theta.(S'-1).
Next, the detection error of the type shown in FIG. 17 is basically the same as the detection error shown in FIG. 16, but it differs from the latter in that the speed peak is detected at first at the sampling point S2. Namely, as is clear also from FIG. 21, so as to distinguish the type of these detection errors, it is sufficient if the magnitude relative to the center point .DELTA..theta./2 of the movement distance is verified. That is, when: ##EQU39## it becomes the error of the latter type. In this case, it is sufficient if the correction method of the detection error of the former type equation 4-8 is used from i=2.
Thus, when an example of the device putting the above-described numerical control method into practice is illustrated, the configuration as in FIG. 1 is exhibited.
The numerical control device has an instruction value generation unit 1 as illustrated and transmits the control signal in relation to the position instruction value which was taught to a servo circuit 2 concerning an actuator M such as a motor or the like. In this case, a current position signal from an encoder (position detection unit) detecting the movement position of the actuator M is fetched into the instruction value generation unit 1.
Also, the detection position storage unit 4 and the storage reading unit 5 are in relation to the production of the deceleration pattern. That is, by transmitting the acceleration pattern obtained by the instruction value generation unit 1 via the servo circuit 2 to the actuator M, the pattern of the actuator M which actually operated is detected by the encoder 3 and this is transmitted to the detection position storage unit 4 and stored in the detection position storage unit 4 according to an order of the elapse of time. Then, after t=Tp, that is, at a time of deceleration, the speed value (obtained by differentiating the position information) stored in the detection position storage unit 4 is taken out by the storage reading unit 5 in an order inverse to the storage order to perform the pattern production. By this, a deceleration pattern obtained by reversing in time the speed elapse of the acceleration pattern is obtained. This is transmitted to the servo circuit 2.
Note that, the numerical control is carried out in parallel to the drive axes of the respective arms, and the control values obtained as the results of the pattern production are transmitted to the respective servo circuits. Also, the instruction value generation unit 1 and the storage reading unit 5 are realized by software processing in actuality, and the function thereof is visually indicated in the figure.
The embodiments explained above were described so as to facilitate understanding of the present invention and were not described so as to restrict the present invention. Accordingly, the elements disclosed in the above-described embodiments include all design changes and equivalents belonging to the technical range of the present invention.
As mentioned above, according to the present invention, an actuator can be controlled by the value of the *limit of capability possessed by the servo loop without a necessity of complex calculation in a CPU and a short tact in a short pitch operation can be realized. Also, after t=Tp, the position instruction signal can be produced merely by reading information stored in the detected position storage unit, and it is not necessary to perform a complex calculation in the CPU.
Further, this algorithm is theoretically clear, and there is no margin for interference due to the poor ability, experience, etc. of a designer. In addition, the cumbersome process of obtaining an enormous amount of individual experimental data for every robot and utilizing them for the control can be eliminated.
Claims
  • 1. A numerical control apparatus in which a position instruction signal is transmitted to a servo circuit having a certain characteristic from an instruction value generation unit based on input target position information and position information from a position detection unit detecting a movement position of an actuator and the operation of at least one actuator is controlled by this servo circuit;
  • said numerical control apparatus comprising:
  • detected position storage unit storing the operation position information of said actuator detected by said position detection unit;
  • a storage reading unit reading out the operation position information stored in said detection position storage unit by folding back the same at a middle point of the route based on a signal from said instruction value generation unit and transmits the same to said servo circuit:
  • wherein a transmission signal from said instruction value generation unit is a step signal of a value (.beta..multidot..DELTA..theta.) obtained by multiplying with the target amount of movement an eigen value (.beta.) obtained so that the amount of movement up to the eigen acceleration and decleration time (Tp) of said servo circuit becomes one-half of the target amount of movement (.DELTA..theta.).
  • 2. A numerical control apparatus as set forth in claim 1, wherein said middle point of the route is the eigen acceleration and deceleration time (Tp) of the aforesaid servo circuit.
  • 3. A numerical control apparatus as set forth in claim 1, wherein said middle point of the route is a point where the speed differential of the position information detected by said position detection unit becomes negative.
  • 4. A numerical control apparatus as set forth in claim 1, wherein said middle point of the route is calculated based on the target position information which is input.
  • 5. A numerical control apparatus as set forth in claim 1, wherein the operation of said actuator is controlled by an arbitrary movement time irrespective of said input target position information.
  • 6. A numerical control method for controlling the operation of at least one actuator by a servo circuit having a certain characteristic comprising the steps of:
  • determining an eigen value (.beta.) by which an amount of movement up to an eigen acceleration and deceleration time (Tp) of said servo circuit becomes one half of a target amount of movement (.DELTA..theta.) which is input;
  • determining a value (.beta..multidot..DELTA..theta.) by multiplying the eigen value with the target amount of movement; and
  • controlling the operation of said actuator during a time from at least the start of the operation to said eigen acceleration and deceleration time by inputting to the servo circuit a step signal of the value (.beta..multidot..DELTA..theta.).
  • 7. The numerical control method as set forth in claim 6, further comprising the steps of:
  • storing the operation of said actuator as information at a predetermined time interval;
  • folding back the stored information about said eigen acceleration and deceleration time (Tp) as a symmetrical axis to produce operation information; and
  • controlling the operation of said actuator after said eigen acceleration and deceleration time based on the operation information.
  • 8. The numerical control method as set forth in claim 6, further comprising the step of:
  • further controlling the operation of said actuator by inputting a step signal of the target amount of movement (.DELTA..theta.) to said servo circuit after said eigen acceleration and deceleration time.
  • 9. A numerical control apparatus in which a position instruction signal is transmitted to a servo circuit having a certain characteristic from an instruction value generation unit based on input target position information and position information from a position detection unit detecting movement position of the actuator and operation of at least one actuator controlled by this servo circuit, said numerical control apparatus comprising:
  • a detected position storage unit storing operation position information of said actuator detected by said position detection unit; and
  • a storage reading unit reading out the operation position information stored in said detection position storage unit by folding back the same at a middle point of the route based on a signal from said instruction value generation unit and transmitting same to said servo circuit;
  • wherein a transmission signal from said instruction value generation unit is a step signal of a value (.beta..multidot..DELTA..theta.) obtained by multiplying with the target amount of movement an eigen value (.beta.) obtained so that the amount of movement up to the eigen acceleration and deceleration time (Tp) of said servo circuit becomes one-half of the target amount of movement (.DELTA..theta.).
  • 10. The numerical control apparatus as set forth in claim 9, wherein said middle point of the route is the eigen acceleration and deceleration time (Tp) of the aforesaid servo circuit.
  • 11. The numerical control apparatus as set forth in claim 9, wherein said middle point of the route is a point where the speed differential of the position information detected by said position detection unit become negative.
  • 12. The numerical control apparatus as set forth in claim 9, wherein said middle point of the route is calculated based on the input target position information.
  • 13. The numerical control apparatus as set forth in claim 9, wherein the operation of said actuator is controlled by an arbitrary movement time irrespective of said input target position information.
  • 14. A numerical control method for controlling the operation of at least one actuator by a servo circuit having a certain characteristic comprising the steps of:
  • determining an eigen value (.beta.) by which an amount of movement up to an eigen acceleration and deceleration time (Tp) of said servo circuit becomes one half of a target amount of movement (.DELTA..theta.) which is input;
  • determining a value (.beta..multidot..DELTA..theta.) by multiplying the eigen value with the target amount of movement;
  • controlling the operation of said actuator during a time from at least the start of the operation to said eigen acceleration and deceleration time by inputting to the servo circuit a step signal of the value (.beta..multidot..DELTA..theta.);
  • storing the operation of said actuator as information at a predetermined time interval;
  • folding back the stored information about said eigen acceleration and deceleration time (Tp) as a symmetrical axis to produce operation information; and
  • controlling the operation of said actuator after said eigen acceleration and deceleration time based on the operation information.
Priority Claims (1)
Number Date Country Kind
5-335798 Dec 1993 JPX
US Referenced Citations (8)
Number Name Date Kind
4652804 Kawamura et al. Mar 1987
4829219 Penkar May 1989
4916636 Torii et al. Apr 1990
4994978 Kawamura et al. Feb 1991
5004968 Mizuno et al. Apr 1991
5057756 Hara Oct 1991
5331542 Itoh Jul 1994
5373439 Jeon Dec 1994
Foreign Referenced Citations (1)
Number Date Country
4-157508 May 1992 JPX