Motor controlling method, control device and machine tool
10324449 ยท 2019-06-18
Assignee
Inventors
Cpc classification
G05B2219/41398
PHYSICS
G05B19/404
PHYSICS
G05B19/416
PHYSICS
B23Q5/34
PERFORMING OPERATIONS; TRANSPORTING
G01M1/28
PHYSICS
B23Q11/0891
PERFORMING OPERATIONS; TRANSPORTING
B23Q11/0028
PERFORMING OPERATIONS; TRANSPORTING
B23Q16/025
PERFORMING OPERATIONS; TRANSPORTING
G05B19/402
PHYSICS
B23Q17/00
PERFORMING OPERATIONS; TRANSPORTING
B23Q3/15526
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/22
PERFORMING OPERATIONS; TRANSPORTING
International classification
G05B19/416
PHYSICS
B23Q17/22
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/00
PERFORMING OPERATIONS; TRANSPORTING
G05B19/402
PHYSICS
B23Q11/08
PERFORMING OPERATIONS; TRANSPORTING
G05B19/404
PHYSICS
B23Q5/34
PERFORMING OPERATIONS; TRANSPORTING
B23Q11/00
PERFORMING OPERATIONS; TRANSPORTING
Abstract
A method for controlling the motor of a tool magazine that rotates around a horizontal rotation axis is configured so that: at least two indexing positions for the tool magazine are determined; the load torque acting on the tool magazine when stopped at said indexing positions is measured; an unbalance torque, which is the load torque when stopped at the indexing position at which the load torque when stopped is maximal, is calculated from multiple load torques when stopped; and the servo motor for the tool magazine is controlled on the basis of the unbalance torque.
Claims
1. A method of controlling a motor of a rotating shaft apparatus configured to rotate about a horizontal or inclined rotational axis, comprising the steps of: positioning the rotating shaft apparatus at two rotational positions which are apart from each other by 90 around the rotational axis; measuring stopping load torque acting on the rotating shaft apparatus at each of the rotational positions; calculating unbalance torque which is the stopping load torque at one of the rotational positions where the stopping load torque is the maximum, as a square root of a sum of squares of the stopping load torques at the two rotational positions; and controlling the motor of the rotating shaft apparatus based on the calculated unbalance torque.
2. The method of controlling a motor according to claim 1, wherein the rotational position, where the stopping load torque is the maximum, is determined based on the measured stopping load torque, wherein the stopping load torque is calculated at each rotational phase of the rotating shaft apparatus, wherein the unbalance torque at each rotational phase is subtracted from the measured load torque on motion, whereby moment of inertia of the rotating shaft apparatus is calculated based on the load torque on motion excluding the unbalance torque.
3. The method of controlling a motor according to claim 2, wherein moment of inertia correction value, which is precedingly set, is added to the calculated motion of inertia, according to the value of the unbalance torque, wherein the acceleration/deceleration parameter of the rotating shaft apparatus is determined based on the motion of inertia to which the correction value is added.
4. The method of controlling a motor according to claim 1, wherein alarm or caution is generated when the unbalance torque exceeds a predetermined threshold value.
5. A device for controlling a motor of a rotating shaft apparatus configured to rotate about a horizontal or inclined rotational axis, the device comprising a non-transitory storage medium storing a program, the program, when executed by a computer, performing the steps of: positioning the rotating shaft apparatus at two rotational positions which are apart from each other by 90 around the rotational axis; measuring stopping load torque acting on the rotating shaft apparatus at each of the rotational positions; calculating unbalance torque which is the stopping load torque at one of the rotational positions where the stopping load torque is the maximum, as a square root of a sum of squares of the stopping load torques at the two rotational positions; and controlling the motor of the rotating shaft apparatus based on the calculated unbalance torque.
6. A machine tool comprising a tool magazine controlled by the device for controlling a motor according to claim 5.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION OF THE INVENTION
(9) With reference to the drawings, a preferred embodiment of the invention will be described below.
(10) With reference to
(11) With reference to
(12) The cover 130 comprises a partition 132 configured to divide the interior space of the cover into a processing chamber 134 and a tool accommodating chamber 136. The machine tool 100 is placed in the processing chamber for machining a workpiece, while the tool magazine and the tool changer 140 are placed in the tool accommodating chamber 136. The partition 132 defines an opening 132a allowing a tool to be transported between the processing chamber 134 and the tool accommodating chamber 136. The partition 132 is provided with a shutter 132b configured to open and close the opening 132a. The cover 130 defines an opening 138a for allowing an operator to access the tool accommodating chamber 136 to mount tools onto the tool magazine 120 and to remove tools from the tool magazine. The opening 138a is opened and closed by an ATC door 138b. New tools are mounted to the tool magazine 120, and used tools are removed from the tool magazine 120 by an operator of the machine tool 100, after opening the ATC door 138b of the cover 130, whereby the tools are exchanged.
(13) The tool magazine 120 comprises a base member 122 in the formed of a circular plate. The base member 122 has a plurality of receptacles 124 of recesses which open outwardly in the radial directions, and are equally disposed at an angle in the peripheral direction. A tool is held in each of the receptacles 124 via a tool holder 126. The tool magazine 120 is supported, for rotating within a vertical plane, by a supporting structure such as a frame (not shown) via a rotating shaft 120a which is held horizontally. The rotating shaft 120a is coupled with an output shaft of a servomotor 18 (
(14) The tool changer 140 is disposed between the tool magazine 120 and the machine tool 100, and provided with a changing arm 142 and a shifter 144. Provided at the either ends of the changing arm 142 are grippers 142a and 142b each of which is configured to hold a tool. The changing arm 142 is capable of liner movement, i.e., advancing and retracting along the rotational axis O.sub.s of the spindle 110, and rotational movement, i.e., rotating by 90 or 180 within a plane perpendicular to the rotational axis O.sub.s of the spindle 110.
(15) The shifter 144 is configured to horizontally reciprocate between the tool magazine 120 and the changing arm 142. The shifter 144 receives a tool, which is located at a waiting position 121 of the tool magazine 120, from the tool magazine 120 and transfers the tool to a tool handover position 146. Further, the shifter 144 receives a tool at the handover position 146 from the changing arm 142 and inserts the tool into one of the receptacles 124 positioned at the waiting position 121.
(16)
(17) The control device 10 performs a feedback control similar to typical servo-controlling devices. The reading and interpreting section 12 reads and interprets an NC program which is input through input means 11, for example a network means such as a LAN, a key board, or a touch panel, and outputs operation commands 12a to the interpolating section 14. The operation commands 12a include a movement command for moving the receptacle 124, into which a tool need for the next process is inserted, to the waiting position. The interpolating section 14 interpolates the received operation commands 12a based on a interpolative function, and outputs position commands (pulse position commands) 14a suitable for a predetermined rotational velocity to the servo-controlling section 16. The servo-controlling section 16 outputs, based on the received position commands 14, an electric current value as a torque command for rotating the tool magazine 120 to the servomotor 18. The rotational position and velocity 20a of the servomotor 18 are fed back to the servo-controlling section 16 from an encoder (rotary encoder) 20 of the servomotor 18.
(18) During the above described replacement of the tools, an operator does not consider the positions of the tools in the peripheral direction of the tool magazine 120, whereby the tools are not distributed evenly in the peripheral direction of the tool magazine 120, and the tools are often mounted biasedly in the peripheral direction of the tool magazine 120 as shown in
(19) With reference to
(20)
(21) When the tool magazine 120, to which the tools are attached unevenly in the peripheral direction (
(22) In order to solve such problems, according to the embodiment, the unbalance torque calculating section 22 receives torque command or electric current value 16b, output from the servo-controlling section 16, and position information 20b output from the encoder 20, and calculates the unbalance torque acting on the tool magazine 120. Then, the unbalance torque canceling section 24 receives the unbalance torque 22a, calculated by the unbalance toque calculating section 22, the torque command or the electric current value 16c from the servo-controlling section 16, and the position and velocity information 20c from the encoder 20, and corrects the torque 16b so as to cancel the unbalance torque. The acceleration/deceleration parameter modifying section 28 receives, from the unbalance section canceling section 24, the torque 24a corrected by the unbalance torque canceling section 24 and the position and velocity information 20c which the unbalance torque canceling section 24 has received from the encoder 20, and calculates the moment of inertia of the tool magazine 120 based on the corrected torque 24a. The acceleration/deceleration modifying section 28 receives the moment of inertia of the tool magazine 120 from the moment of inertia calculating section 26, and outputs acceleration/deceleration parameter to the servo-controlling section 16, after modifying (correcting) the acceleration/deceleration parameter, whereby the electric current value 16a, output from the servo-controlling section 16 to the servomotor 18, is optimized. Further, the control device 10 may be provided with an alarm presenting section 30 configured to present acoustic or visual alarm or caution when the unbalance torque calculated by the unbalance torque calculating section 22 exceeds a predetermined upper limit.
(23) With reference to
(24) As shown in
(25) Here,
(26) T.sub.1: Unbalance torque
(27) L: Length from the center of tool magazine 120 to the center of gravity.
(28) Referring to
T=T.sub.0 cos (1)
(29) Therefore, when stopped at a position rotated by =.sub.1 from the rotational angle of =0, the stopping load torque T.sub.1 applied to the tool magazine 120 can be calculated by the following equation.
T.sub.1=T.sub.0 cos .sub.1(2)
(30) When tool magazine 120 is stopped at a position further rotated 90 from the rotational position =, the stopping load torque T.sub.2 applied to the tool magazine 120 can be calculated by the following equation.
T.sub.2=T.sub.0 cos(.sub.1+90)=T.sub.0 sin .sub.1(3)
(31) Further, the formula of triangular function gives the following equation.
sin.sup.2.sub.1+cos.sup.2 .sub.1=1(4)
(32) Therefore, based on the equations (1)-(4), the unbalance torque T.sub.0 or the maximum stopping load torque can be calculated from the following equation.
T.sub.0=(T.sub.1.sup.2+T.sub.2.sup.2).sup.1/2(5)
(33) Furthermore, from equation (2), the initial phase .sub.1 is obtained from the following equation.
.sub.1=arccos(T.sub.1/T.sub.0)(6)
(34) In this connection, it should be noted that although the stopping load torque is measure at two measuring points which are apart from each other by 90 in the peripheral direction about the center of the rotating shaft 120a in the present embodiment, the invention is not limited to this configuration. The measuring points may be apart from each other by an angle greater than 90. Further, the measuring point is not limited to a single point, and the measurement may be carried out at a the stopping load torque may be measured at a plurality of points.
(35) With reference to the flow chart show in
(36) The unbalance torque may be measured and calculated when tools are replaced as described above. When the operator of the machine tool 100 starts to replace the tools (Step S10), the tool accommodating chamber 136 is put into a state allowing manual intervention by the operator (Step S12). This may be carried out by depressing a press button (not shown) provided on an operating panel (not shown) of the machine tool 100, whereby an automatic movement of the machine tool 100, which is not anticipated by the operator, is inhibited when the operator accesses the tool magazine 120.
(37) Then, after the operator opens the ATC door 138a (Step S14), the operator accesses the tool magazine 120 in order to replace the tools (Step S16). Then, after the ATC door 138a is closed (Step S18), the intervention to the NC device is disengaged (Step S20) by depressing a press button provided on the operating panel (not shown) of the machine tool 100.
(38) After the intervention to the NC device is disengaged, the NC device reads a program for measuring the unbalance torque of the tool magazine 120 to start the measurement of the unbalance torque. The unbalance torque calculating section 22 reads the electric current value 16b presently supplied to the servomotor 18, which keeps the tool magazine 120 stopped (Step S22). The torque (T.sub.1) (stopping load torque) necessary to keep the tool magazine stopped against the unbalance torque can be obtained based on the read electric current value 16b. Then, after the tool magazine 120 is rotated by 90 (Step S24), the electric current value 16b, necessary to keep the tool magazine 120 at the rotational position, is read from the servo-controlling section 16 (Step S26). The torque (T.sub.2) (stopping load torque) necessary to keep the tool magazine stopped against the unbalance torque can be obtained based on the read electric current value 16b.
(39) Then, at Step S28, the unbalance torque calculating section 22 calculates the maximum unbalance toque T.sub.0, from equation (6), based on the two torque values (T.sub.1, T.sub.2) and equation (5), and the initial phase .sub.1.
(40) Then, the torque canceling section 24 calculates, based on unbalance torque T.sub.0 calculated by the unbalance toque calculating section 22, the initial phase .sub.1 and the position information read from the encoder 20, the stopping load torque T from following equation (7), when the tool magazine 120 is at an angular position .
T=T.sub.0 cos(.sub.1+)(7)
(41) The unbalance torque canceling section 24 further receives the electric current value or the torque value 16c, supplied to the servomotor 18 of the tool magazine 120, from the servo-controlling section 16, and calculates torque by subtracting the unbalance torque T.sub.0 therefrom.
(42) Furthermore, at Step S28, the moment of inertia calculating section 26 calculates total moment of inertia J of the tool magazine 120, including the base member 122 and the tools attached to the base member 122, based on the following method.
(43) Following equation (8) presents the relation between the torque (load torque on motion) and the moment of inertia of the tool magazine 120, when the servomotor 18 rotates.
=J+DV+Fu(8)
Here,
J: Moment of Inertia
: Angular Acceleration
D: Viscous Damping Coefficient
V: Angular Velocity
F: Coulomb Friction Torque
u: Unit Vector Indicating the Direction of Velocity
(44) The angular velocity V and the angular acceleration can be calculated by the moment of inertia calculating section 26 based on the rotational velocity 20d of the servomotor 18. The unit vector u indicating the direction of velocity is positive when the tool magazine 120 rotates in one of the two rotational directions, and negative when rotating in the other direction. The variables to be obtained, when the tool magazine 120 rotates, are presented by the following equations.
(.sub.n)=(.sub.0,.sub.1,.sub.2 . . . .sub.k,.sub.k+1 . . . .sub.m)(n=0m)(9)
(V.sub.n)=(V.sub.0,V.sub.1,V.sub.2 . . . V.sub.k,V.sub.k+1 . . . V.sub.m)(n=0m)(10)
(.sub.n)=(.sub.0,.sub.1,.sub.2 . . . .sub.k,.sub.k+1 . . . .sub.m)(n=0m)(11)
(u.sub.n)=(u.sub.0,u.sub.1,u.sub.2. . . u.sub.k,u.sub.k+1 . . . u.sub.m)(n=0m)(12)
(45) Accordingly, the values of the torque (load torque on motion) , the values of the angular velocity V, the values of the angular acceleration , and the unit vectors u indicating the velocity directions can be read by the moment of inertia calculating section 26 at Steps S22 to S26. Then, the moment of inertia J, the viscous damping coefficient D and the coulomb friction torque F of the tool magazine 120 are calculated so that the difference between the sum of squares of the torque .sub.n, presented by equation (9), and the sum of squares of the torque which is obtained by substituting the variables presented by equations (10), (11) and (12) into equation (8) is the minimum. Accordingly, these variables are calculated by a least squares method. Thus, the moment of inertia J of the tool magazine 120 is calculated by the moment of inertia calculating section 26. The moment of inertia J, calculated by the moment of inertia calculating section 26, includes the moment of inertia based on the masses of the base member 122 of the tool magazine 120 and the tools mounted to the tool magazine 120.
(46) Then, at Step S30, it is determined as to whether or not the unbalance torque T.sub.0 exceeds a predetermined threshold value T.sub.s. If the unbalance torque T.sub.0 exceeds the predetermined threshold value Ts (NO at Step S30), then the acceleration/deceleration parameter modifying section 28 maximizes the acceleration/deceleration parameter, outputs it to the servo-controlling section 16, and outputs a command to the alarm presenting section 30 to present acoustic or visual alarm or caution indicating that the unbalance torque T.sub.0 exceeds the predetermined threshold value. The acceleration/deceleration parameter includes the acceleration or gain.
(47) If the unbalance torque does not exceeds the predetermined threshold value Ts (YES at Step S30), then the acceleration/deceleration parameter modifying section 28 outputs modified acceleration/deceleration parameter to the servo-controlling section 16. The modification of the acceleration/deceleration parameter is performed similar to the modification which is performed when the moment of inertia is increased, wherein the increase in the value of the unbalance torque T.sub.0 of the tool magazine 120 is interpreted into the increase in the moment of inertia of the tool magazine 120. In particular, moment of inertial correction values are associated with the respective values of the unbalance torque T.sub.0, and stored in the form of a table in a memory region of the control device 10, whereby the moment of inertial correction value is read from the table according to the value of the unbalance torque T.sub.0. The moment of inertial correction values to be added to the moment of inertia according to the increase in the unbalance torque T.sub.0 may be precedingly and experimentally obtained, and a table may be created and stored so as to associate the values of the unbalance torque T.sub.0 with the moment of inertia correction values. The acceleration/deceleration parameters are associated with respective values obtained by adding the moment of inertial correction values to the moments of inertia, and stored in the form of a table in a memory region of the control device 10, whereby the acceleration/deceleration parameter is read from the table according to the value obtained by adding the moment of inertial correction value to the moment of inertia. The acceleration/deceleration parameter is modified according to the values of the moment of inertia and the unbalance torque T.sub.0, whereby enabling more quick acceleration/deceleration, when the moment of inertia and the unbalance toque T.sub.0 are small, and whereby the tool magazine 120 can be positioned in a shorter time.
(48) In the above described embodiment, while the motor controlling method according to the invention controls the drive motor for the tool magazine, the invention is not limited to this, and can be applied to a rotary feed shaft rotating about a horizontal or inclined rotational axis. For example, in a machine tool shown in
REFERENCE SIGNS LIST
(49) 10 Control Device
(50) 18 Servomotor
(51) 20 Encoder
(52) 20a Rotating Velocity
(53) 20b Position Information
(54) 20c Velocity Information and Position Information
(55) 20d Rotating Velocity
(56) 22 Unbalance Torque Calculating Section
(57) 22a Unbalance Torque
(58) 24 Unbalance Torque Canceling Section
(59) 100 Machine Tool
(60) 120 Tool Magazine
(61) 120a Rotating Shaft
(62) 136 Tool Accommodating Chamber