BACKGROUND OF THE INVENTION
1. Field of the Invention
[0001] The present invention relates to a machine tool control apparatus which measures
not only the position/speed of a driven body but also the acceleration thereof and
which performs control by taking account of the acceleration.
2. Description of the Related Art
[0002] In a machine tool control apparatus, feedback control is performed by detecting the
position/speed of a driven body and by computing the amount of control based on the
difference between the detected position/speed and its command value. However, if
a low-rigidity part such as a joint is interposed between the driven body and the
detector, as is the case when the driven body is, for example, an indexing table,
the driven body may vibrate due to the presence of the low-rigidity part. To address
this problem, there is a need to perform control by detecting the acceleration of
the driven body and compensating the command value based, for example, on the detected
acceleration.
[0003] When installing an acceleration sensor for detecting the acceleration of the driven
body, the sensor must be mounted by orienting the acceleration detection element so
that its detection direction coincides with the direction in which the acceleration
is to be detected; otherwise, an error would be induced in the detected acceleration,
and the desired controlled condition could not be achieved.
SUMMARY OF THE INVENTION
[0004] Accordingly, it is an object of the present invention to provide a machine tool control
apparatus in which an acceleration detection error due to the mounting condition of
an acceleration sensor is reduced.
[0005] According to the present invention, there is provided a machine tool control apparatus
comprising: a position/speed detector detecting at least one of the speed and position
of a driven body; an acceleration detection element detecting the acceleration of
the driven body; a storage device storing a compensation value to be used for compensating
the acceleration detected in operation by the acceleration detection element; and
a control processor controlling the driving of the driven body based on a command
value for at least one of the speed and position of the driven body, a detection value
fed from the position/speed detector, and the compensated acceleration.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006]
Figure 1 is a block diagram showing one configuration example of a machine tool control
apparatus according to the present invention;
Figure 2 is a diagram for explaining a first example of acceleration compensation;
Figure 3 is a diagram for explaining a second example of acceleration compensation;
and
Figure 4 is a perspective view of a casing that contains an acceleration sensor.
DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] Figure 1 is a block diagram showing one example of a machine tool control apparatus
according to the present invention.
[0008] In Figure 1, data concerning the position detected by a position detector 32 connected
to a driver 30 is used as a position feedback signal and, from the difference (34)
between this signal and a position command, a position control processor 36 computes
a speed command value using, for example, a known PID operation. Data concerning the
speed detected by a speed detector 38 is used as a speed feedback signal and, from
the difference (40) between this signal and the speed command value, a speed control
processor 42 computes an electric current command value using, for example, a known
PID operation. Further, the electric current of the driver 30 is detected by an electric
current detector 43 and, from the difference (44) between the detected electric current
and the electric current command value, an electric current control processor 46 computes
an electric current control value using, for example, a known PID operation, and supplies
the control value to the driver 30.
[0009] An acceleration detector 54 comprising an acceleration sensor 50 and a storage device
52 is mounted on a driven body 48, which is connected to and driven by the driver
30, and detects the acceleration of the driven body 48. In a calculator 56, the acceleration
detection value output from the acceleration sensor 50 is compensated by using a compensation
value stored in the storage device 52. The compensated acceleration value is used
for the compensation (58) of the position command, the compensation (60) of the speed
command, and the compensation (62) of the electric current command, to suppress or
prevent the vibration that can occur due to the intervention of a low-rigidity part
between the driver 30 and the driven body 48.
[0010] Figure 2 is a diagram for explaining how the compensation is made when detecting
an acceleration in one axis direction by a one-axis acceleration sensor. If x' is
obtained as the measured value when a known acceleration x is applied in the direction
in which the acceleration is to be detected; then, a = x/x', for example, is stored
as the compensation value in the storage device 52. In operation, the acceleration
value output from the acceleration sensor 50 is multiplied by the compensation value,
a, read out of the storage device 52, to obtain the compensated true acceleration
value.
[0011] In the case of an acceleration sensor that detects accelerations in two axis directions,
it is assumed that measured values x' and y' are obtained when an acceleration x is
applied in a first direction in which the acceleration is to be detected and an acceleration
y in a second direction at right angles to the first direction, as shown in Figure
3. Then, assuming that there are no errors in the absolute values of the detected
accelerations, the relationship between the two can be expressed, using an angle θ,
as

Therefore, the angle θ is stored in the storage device 52, and the detected accelerations
are compensated as

In the case of a three-axis sensor, the angle is stored as the compensation value
in a similar manner.
[0012] The acceleration sensor 50 and the storage device 52 are preferably housed in a casing
64 having a flat datum plane 64, as shown in Figure 4. When installing the individual
sensor in the apparatus, the sensor is mounted by using the datum plane as a reference,
and the measured value output from the acceleration sensor 50 is compensated by using
the compensation value read out of the storage device 52; in this way, the properly
compensated acceleration value can be obtained. A nonvolatile memory such as an E
2PROM or a flash memory can be used as the storage device 52.
1. A machine tool control apparatus comprising:
a position/speed detector detecting at least one of the speed and position of a driven
body;
a control processor controlling the driving of said driven body based on a command
value for at least one of the speed and position of said driven body and on a detection
value fed from said position/speed detector;
an acceleration detection element detecting the acceleration of said driven body;
a storage device storing a compensation value to be used for compensating said acceleration
detected in operation by said acceleration detection element; and
a compensating means for compensating an acceleration detection value by using a measured
value output from said acceleration detection element and also using said compensation
value stored in said storage device, wherein
at least one command value, selected from among the command values for the speed and
position of said driven body and a command value for an electric current, is compensated
based on said acceleration compensated by said compensating means.
2. A machine tool control apparatus according to claim 1, wherein said compensation value
is a value for compensating the magnitude of said acceleration.
3. A machine tool control apparatus according to claim 1, wherein said compensation value
is a value for compensating the direction of said acceleration.
4. A machine tool control apparatus according to claim 1, further comprising a casing
for housing said acceleration detection element and said storage device, wherein at
least one of the outer faces of said casing is formed flat to provide a datum plane
that serves as a reference for mounting.