Machine tool and control device for machine tool
By detecting the current value and power supply voltage value of the machine tool servo motor and dynamically adjusting the acceleration and deceleration time constant, the problem of large position error of the servo motor when the machine tool is reduced is solved, and the alarm of excessive error is avoided and the stability of the machine tool is improved.
Patent Information
- Application Number
- CN202380029524.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-24
- Filing Date
- 2023-01-26
- Publication Date
- 2024-11-19
AI Technical Summary
When the power supply voltage of the machine tool decreases, there is a large error between the actual position of the servo motor and the command value, resulting in an alarm with excessive error, and the prior art has failed to effectively avoid this problem.
By referring to the state of the driving spindle, the current value and power supply voltage value of the servo motor are detected, and the acceleration and deceleration time constant is dynamically adjusted to ensure the acceleration and deceleration control of the servo motor and avoid the occurrence of excessive error alarms.
It effectively avoids the occurrence of excessive error alarms and improves the stability and reliability of the machine tool under the conditions of power supply voltage fluctuation.
Smart Images

Figure CN118984978A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a machine tool and a control device of the machine tool. Background Art
[0002] Generally, there is known a machine tool including a spindle that rotatably supports a workpiece and a tool for machining the workpiece, etc. A servo motor is provided in a tool driving mechanism of the machine tool, and the tool of the machine tool can be operated by inputting a predetermined current to the servo motor.
[0003] However, when the power supply voltage of the machine tool decreases, there is a problem that an excessive error alarm is generated because the actual position of the servo motor differs from the command value of the position.
[0004] In Japanese Patent No. 3252114, a control is performed to increase or decrease the acceleration / deceleration time constant for adjusting the responsiveness of the motor acceleration / deceleration according to the change of the input voltage, thereby realizing the stable operation of the motor. In Japanese Patent No. 5149410, a limit value of the motor output that does not adversely affect the drive of the motor is calculated based on the voltage of the AC power supply input to the motor, and a control parameter of the acceleration / deceleration time constant or the feed rate for performing the limit is determined. Summary of the invention
[0005] The power supply voltage fluctuation of the machine tool is mostly caused by the spindle drive unit that consumes the most power, especially when the spindle drive unit is started. However, the acceleration and deceleration time constant of the servo motor that drives the tool is not controlled by the control of the spindle drive unit.
[0006] An object of the present invention is to provide a machine tool and a control device for the machine tool, which can easily avoid the occurrence of an excessive error alarm by referring to the state of a driving unit that drives a main spindle.
[0007] In the machine tool of the embodiment of the present disclosure, there are: a drive unit, which drives a spindle that can rotatably hold a workpiece; a servo motor, which drives a tool to process the workpiece held by the spindle; a power supply, which supplies power to at least the drive unit and the servo motor; a current detection unit, which detects the current value input to the servo motor; a storage unit, which stores the upper limit current value input to the servo motor; and a control unit, which controls the servo motor to perform drive control of the tool. After the spindle is just started, when the current value detected by the current detection unit exceeds the upper limit current value, the control unit changes the acceleration and deceleration time constant from a first time constant to a second time constant whose power consumption is lower than the first time constant, and performs control of the servo motor.
[0008] In the machine tool of the embodiment of the present disclosure, it is preferred that there is also a voltage detection unit for detecting the power supply voltage value input from the power supply. After the spindle is just started, when the current value detected by the current detection unit is below the upper limit current value and the power supply voltage value detected by the voltage detection unit is below the threshold voltage value, the control unit changes the acceleration and deceleration time constant from the first time constant to a third time constant having lower power consumption than the first time constant and higher power consumption than the second time constant, so as to control the servo motor.
[0009] In the control device of the machine tool of the embodiment of the present disclosure, the machine tool includes: a drive unit, which drives a spindle that can rotatably hold a workpiece; a servo motor, which drives a tool to process the workpiece held by the spindle; and a power supply, which supplies power to at least the drive unit and the servo motor. The control device of the machine tool has: a current detection unit, which detects the current value input to the servo motor; a storage unit, which stores the upper limit current value input to the servo motor; and a control unit, which controls the servo motor to perform drive control of the tool. After the spindle is just started, when the current value detected by the current detection unit exceeds the upper limit current value, the control unit changes the acceleration and deceleration time constant from the first time constant to the second time constant whose power consumption is lower than the first time constant, and performs control of the servo motor.
[0010] In the control device of the machine tool of the embodiment of the present disclosure, it is preferably further provided with a voltage detection unit for detecting the power supply voltage value input from the power supply. After the spindle is just started, when the current value detected by the current detection unit is below the upper limit current value and the power supply voltage value detected by the voltage detection unit is below the threshold voltage value, the control unit changes the acceleration and deceleration time constant from the first time constant to a third time constant having lower power consumption than the first time constant and higher power consumption than the second time constant, so as to control the servo motor.
[0011] According to the machine tool of the embodiment of the present disclosure, it is possible to provide a machine tool and a control device for the machine tool that can easily avoid the occurrence of an excessive error alarm by referring to the state of a driving unit that drives a main spindle. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a partial perspective view of the machine tool according to the present embodiment. Figure 2 Yes means Figure 1 The block diagram of the internal structure of the machine tool is shown. Figure 3 This is a flowchart showing a series of workpiece machining steps executed in the machine tool according to the present embodiment. Figure 4 Yes means Figure 3 The flowchart of the time constant determination process of the servo motor in a series of workpiece processing steps is shown. Figure 5 Yes means through Figure 4 1 is a waveform diagram showing an example of a temporal change in the rotation speed of a servo motor that changes by controlling the current value shown. DETAILED DESCRIPTION
[0013] Hereinafter, a machine tool according to the present embodiment will be described with reference to the drawings. However, it should be noted that the scope of the present disclosure is not limited to these embodiments, but extends to the inventions described in the claims and their equivalents.
[0014] Figure 1 It is a partial perspective view of the machine tool 1 according to the present embodiment. Figure 1 The machine tool 1 shown is a device for processing a workpiece W that is a long bar in the shape of a round bar. The machine tool 1 includes a spindle 2 that rotatably supports the workpiece W, a rotary tool drive device 13 including a B-axis rotary tool device 3, and a numerical control (NC) device 5 described later.
[0015] The spindle 2 is disposed on the support table 6. The spindle 2 holds the workpiece W rotatably around the Z axis with the Z axis as the axis, and holds the workpiece W so that it can move toward the front side of the support table 6 by using the power generated by the spindle motor (fourth servo motor) MT4 constituting the drive unit DU. The support table 6 is fixedly supported on the bed 7.
[0016] A guide rail 8 extending along the X-axis direction (also referred to as the horizontal direction) orthogonal to the Z-axis direction is provided on the front side of the support table 6. A base 10 is mounted on the rail 8, and the base 10 slides in the direction of the arrow α1 by the power generated by the first servo motor MT1. A rail 11 extending along the Y-axis direction (also referred to as the vertical direction) orthogonal to the Z-axis direction and the X-axis direction is provided on the base 10. A rotary tool driving device 13 is mounted on the rail 11, and the rotary tool driving device 13 slides in the direction of the arrow α2 by the power generated by the second servo motor MT2.
[0017] The rotary tool drive device 13 is a device for holding a tool for machining a workpiece W. The rotary tool drive device 13 has tools 131, 132 and a B-axis rotary tool device 3 having a first tool 31 and a second tool 32. The tools 131, 132 are arranged side by side along the X-axis direction with the top ends facing downward. The first tool 31 and the second tool 32 are rotatably held on a B-axis rotary tool body 33 constituting the B-axis rotary tool device 3, and are arranged side by side along the X-axis direction with the top ends facing sideways. The machine tool 1 of this embodiment can use a specified tool to machine the workpiece W by moving the workpiece W along the Z-axis direction using the spindle 2 and moving the rotary tool drive device 13 in the direction of the arrow α1 or the arrow α2. The B-axis rotary tool body 33 can be supported to rotate in the direction of the arrow α3 with the rotation axis A of the rotary motor MT3 as the center by the power generated by the rotary motor (third servo motor) MT3.
[0018] Each servomotor MT1 to MT4 provided in machine tool 1 is operated by power supplied from power source PS. Power source PS converts power supplied from a household or commercial power source into power usable in machine tool 1 of the present embodiment, and supplies the converted power to at least each servomotor MT1 to MT4.
[0019] Figure 2 Yes means Figure 1 The block diagram of the internal structure of the machine tool 1 is shown in FIG. Figure 2 As shown, the B-axis rotary tool device 3 includes a B-axis rotary tool body 33, a horizontal direction moving mechanism M1, a first servo motor MT1, a vertical direction moving mechanism M2, a second servo motor MT2, a rotating mechanism M3, and a rotating motor MT3.
[0020] The horizontal moving mechanism M1 can move the rotary tool driving device 13 including the B-axis rotary tool main body 33 in the direction of the arrow α1 as a whole. The first servo motor MT1 converts the input current into mechanical output (torque and rotation speed and other power) and provides it to the horizontal moving mechanism M1. As a result, the horizontal moving mechanism M1 moves the B-axis rotary tool main body 33 forward and backward in the direction of the arrow α1. The operation of the first servo motor MT1 is controlled by the motion controller C1.
[0021] The motion controller C1 receives power supply from the power supply PS, and inputs a specified current to the first servo motor MT1 according to a control signal transmitted from the NC device 5 described later. The control signal transmitted to the motion controller C1 includes at least the rotation amount (rad or number of steps) and the rotation speed (rpm) of the first servo motor MT1. A sensor Se1 is provided on the first servo motor MT1, and the sensor Se1 detects the actual rotation amount and the actual rotation speed of the first servo motor MT1 and transmits them to the motion controller C1. The motion controller C1 compares the numerical values of the rotation amount and the actual rotation speed of the first servo motor MT1 contained in the control signal with the numerical values of the actual rotation amount and the actual rotation speed of the first servo motor MT1 detected by the sensor Se1, and inputs a specified current to the first servo motor MT1 to eliminate the deviation of these numerical values. In the following, since the control method of the motion controllers C2 to C4 is the same as the control method of the motion controller C1, the detailed description is omitted.
[0022] The vertical moving mechanism M2 can move the rotary tool drive device 13 including the B-axis rotary tool body 33 up and down as a whole in the direction of the arrow α2. The second servo motor MT2 generates power for actuating the vertical moving mechanism M2. The action of the second servo motor MT2 is controlled by the motion controller C2. The control method of the second servo motor MT2 by the motion controller C2 is the same as the control method of the first servo motor MT1 by the motion controller C1, so detailed description is omitted.
[0023] The rotating mechanism M3 can rotate the B-axis rotating tool body 33 in the direction of arrow α3 around the rotating axis A of the rotating motor MT3. The rotating motor MT3 generates power for actuating the rotating mechanism M3. The actuation of the rotating motor MT3 is controlled by the motion controller C3. The control method of the rotating motor MT3 by the motion controller C3 is the same as the control method of the first servo motor MT1 by the motion controller C1, so detailed description is omitted.
[0024] like Figure 2As shown, the spindle 2 includes a spindle drive mechanism M4 constituting a drive unit DU, and a spindle motor MT4. The spindle drive mechanism M4 supports the workpiece W rotatably around the Z-axis direction and the Z-axis as the center, and supports the workpiece W so that it can move toward the front side of the support table 6 by using the power generated by the spindle motor MT4. The spindle motor MT4 generates power for actuating the spindle drive mechanism M4. The action of the spindle motor MT4 is controlled by the motion controller C4. The control method of the spindle motor MT4 performed by the motion controller C4 is the same as the control method of the first servo motor MT1 performed by the motion controller C1, so detailed description is omitted. In addition, as long as stable rotation can be obtained, the spindle motor MT4 may not be a servo motor.
[0025] The NC device 5 is a device for controlling the respective operations of the main spindle 2 and the B-axis rotary tool device 3. Figure 2 As shown, the NC device 5 includes an interface unit 51, a storage unit 52, an input unit 53, an output unit 54, a current detection unit 55, a voltage detection unit 56, and a control unit 57. The interface unit 51, the storage unit 52, the input unit 53, the output unit 54, the current detection unit 55, the voltage detection unit 56, and the control unit 57 are connected to each other via a bus 58. Various control signals from the control unit 57 are transmitted to the motion controllers C1 to C5 via the interface unit 51. A plurality of current values output from the motion controllers C1 to C4 to the corresponding servo motors MT1 to MT4 are transmitted to the current detection unit 55 via the interface unit 51.
[0026] The storage unit 52 includes, for example, a semiconductor storage device, and stores programs and data used in the processing of the control unit 57. The storage unit 52 stores at least a program for causing the control unit 57 to execute a series of workpiece processing steps performed by the spindle 2 and the B-axis rotary tool device 3. The program can also be installed in the storage unit 52 from a computer-readable removable recording medium such as a CD-ROM using a well-known installation program or the like.
[0027] The storage unit 52 stores in advance the upper limit current value input from the motion controllers C1 to C4 to the servomotors MT1 to MT4. The upper limit current value is a current value at which the servomotors may be damaged.
[0028] Input unit 53 may be any generally known device as long as it can input data, and generates a signal corresponding to an operation of an operator of machine tool 1. The generated signal is provided to control unit 57 as an instruction of the operator.
[0029] The output unit 54 may be any generally known device as long as it can display video or images, and displays video corresponding to video data supplied from the control unit 57 , images corresponding to image data, and the like.
[0030] The current detection unit 55 detects the current value input from the motion controllers C1 to C4 to the servomotors MT1 to MT4, and transmits the detection result to the control unit 57. The voltage detection unit 56 detects the power supply voltage value input from the power supply PS to the spindle 2 and the B-axis rotary tool device 3, and transmits the detection result to the control unit 57.
[0031] The control unit 57 controls the overall operation of the machine tool 1, such as a central processing unit (CPU). The control unit 57 executes a series of workpiece processing steps according to the program stored in the storage unit 52. The control unit 57 transmits control signals for executing a series of workpiece processing steps to the motion controllers C1 to C4 through the interface unit 51, thereby controlling the servo motors MT1 to MT4 to execute the drive control of the tool. The control signal includes the rotation amount (rad or number of steps) and the rotation speed (rpm) of each servo motor.
[0032] Figure 3 This is a flowchart showing a series of workpiece machining steps executed in the machine tool 1 according to the present embodiment.
[0033] If the instruction for workpiece processing is input in a prescribed order, the control unit 57 initially executes the motion control of the spindle 2 according to the program stored in the storage unit 52 (step S10). Specifically, the control unit 57 transmits the prescribed control signal (the rotation amount (rad or number of steps) and the rotation speed (rpm) of the spindle motor MT4) to the motion controller C4 via the interface unit 51. The motion controller C4 controls the spindle motor MT4 according to the control signal transmitted from the control unit 57, and drives the spindle drive mechanism M4 to rotate the workpiece W around the Z axis, so that the workpiece W moves toward the front side of the support table 6.
[0034] Next, the control unit 57 performs the motion control of the tool (step S11). Specifically, the control unit 57 controls at least one of the servo motors MT1 and MT2 to move the B-axis rotary tool device 3 and move the B-axis rotary tool body 33 in the direction of the arrow α1 or the arrow α2. Thus, the machine tool 1 of this embodiment can push the tools 131, 132 and the first tool 31 and the second tool 32 onto the rotating workpiece W, thereby processing the workpiece W.
[0035] Finally, the control unit 57 determines whether a series of workpiece processing steps are completed (step S12). If the workpiece processing steps are not completed ("No" in step S12), the control unit 57 returns to step S10. If a series of workpiece processing steps are completed ("Yes" in step S12), the series of workpiece processing steps are completed.
[0036] Figure 4 Yes means Figure 3Flowchart of the time constant determination process of the second servo motor MT2 in a series of workpiece machining steps shown. Figure 4 The processing shown in Figure 3 The series of workpiece processing steps shown are performed at certain time intervals. Figure 4 In the description, the second thermomotor MT2 is described as an example, but the same processing can also be performed on the other servomotors MT1 and MT3.
[0037] Initially, the control unit 57 determines whether the spindle 2 has just started (step S20). In the present embodiment, the so-called "just after the spindle 2 has started" refers to the period from when the control signal for starting the rotation of the spindle 2 is input to the motion controller C4 to when the spindle 2 starts the rated operation. If the spindle 2 has not just started ("No" in step S20), the acceleration and deceleration time constant is set to the first time constant (step S23), and a series of processing is terminated.
[0038] When the spindle 2 has just started ("Yes" in step S20), the control unit 57 determines whether the current value supplied to the second servo motor MT2 detected by the current detection unit 55 exceeds the upper limit current value stored in the storage unit 52 (step S21). When the current value of the second servo motor MT2 exceeds the upper limit current value ("Yes" in step S21), since the second servo motor MT2 may be damaged, the control unit 57 sets the acceleration and deceleration time constant to the second time constant (step S25), and ends a series of processing.
[0039] Next, when the current value of the second servo motor MT2 does not exceed the upper limit current value ("No" in step S21), the control unit 57 determines whether the power supply voltage value of the power supply PS detected by the voltage detection unit 56 is below the threshold voltage value (that is, whether a voltage drop occurs in the power supply PS) (step S22). When the power supply voltage value of the power supply PS exceeds the threshold voltage value ("No" in step S22), the second servo motor MT2 is not damaged and no voltage drop occurs in the power supply PS, so the control unit 57 sets the acceleration and deceleration time constant to the first time constant (step S23), and ends a series of processing.
[0040] Next, when the power supply voltage value of the power supply PS is less than the threshold voltage value ("Yes" in step S22), although there is no concern about the second servo motor MT2 being damaged, since a voltage drop occurs in the power supply PS, the control unit 57 sets the acceleration / deceleration time constant to the third time constant (step S24). The series of processing ends.
[0041] Here, the acceleration / deceleration time constant refers to a value corresponding to the time it takes for the rotation speed of the servo motor to reach the set rotation speed. The first time constant corresponds to the time it takes for the rotation speed of the second servo motor MT2 to reach the set rotation speed in the shortest time during normal operation. With respect to the second time constant, the time it takes for the rotation speed of the second servo motor MT2 to reach the set rotation speed is slower than the first time constant, and as a result, the power consumption per unit time of the second servo motor MT2 is lower than that of the first time constant. With respect to the third time constant, the time it takes for the rotation speed of the second servo motor MT2 to reach the set rotation speed is slower than the first time constant and faster than the second time constant, and as a result, the power consumption per unit time of the second servo motor MT2 is lower than that of the first time constant and higher than that of the second time constant.
[0042] according to Figure 4 In the processing flow shown, regarding the second servo motor MT2, the first time constant is set at times other than immediately after the spindle 2 is started. Immediately after the spindle 2 is started, one of the first to third time constants is set based on the current value or power supply voltage value supplied to the second servo motor MT2.
[0043] Figure 5 Yes means through Figure 4 The waveform diagram is an example of the time-dependent change in the rotation speed of the second servo motor MT2 that changes with the control of the current value shown. Figure 4 In FIG. 1 , the horizontal axis represents time (time t1 to t3 ) (ms), and the vertical axis represents the rotation speed (r / min) of the servo motor.
[0044] exist Figure 3 In the series of workpiece processing steps shown, when controlling the second servo motor MT2, the control unit 57 generates a control signal based on the time constant set at this time and transmits it to the motion controller C2. The motion controller C2 adjusts the current value input to the second servo motor MT2 according to the transmitted control signal. As a result, the machine tool 1 of this embodiment can operate the second servo motor MT2 without worrying about the fluctuation of the input voltage value and the power supply voltage value.
[0045] Figure 5 A solid line 61 shows the temporal change in the rotation speed of the second servo motor MT2 corresponding to the first time constant. For example, when the first time constant is set until the rotation speed P (r / min) is reached, t1 = 70 ms is required from the start of the operation. Figure 5 A dashed line 62 indicates a temporal change in the rotation speed of the second servomotor MT2 corresponding to the second time constant. For example, t2 = 100 ms is required from the start of the operation until the rotation speed reaches P (r / min). Figure 5A dotted line 63 shows the temporal change in the rotation speed of the second servo motor MT2 corresponding to the third time constant. For example, when the third time constant is set until the rotation speed P (r / min) is reached, t3 = 90 ms is required from the start of the operation.
[0046] Compared with the case where the first time constant is set, when the second time constant is set, the rotation speed of the second servo motor MT2 does not need to be increased sharply, so the supplied current value does not exceed the upper limit current value. As a result, compared with the case where the first time constant is set, when the second time constant is set, the possibility of damage to the second servo motor MT2 and the occurrence of an excessive error alarm is reduced. Similarly, compared with the case where the first time constant is set, when the third time constant is set, the increase in the rotation speed of the second servo motor MT2 can be set slowly, so the supplied current value does not exceed the upper limit current value. As a result, compared with the case where the first time constant is set, when the third time constant is set, the possibility of damage to the second servo motor MT2 and the occurrence of an excessive error alarm is further reduced.
[0047] Here, in the machine tool 1 of the present embodiment, the second servo motor MT2 is described as an example, but the same applies to the other servo motors MT1 and MT3 .
[0048] In the machine tool 1 of the present embodiment, three time constants are shown as acceleration and deceleration time constants, but two or four or more time constants may be set according to parameters such as the current value of the servo motor and the power supply voltage value of the power supply PS.
[0049] In the machine tool 1 of the present embodiment, the servomotors MT1 to MT4 that operate the main spindle 2 and the B-axis rotary tool device 3 are mainly described, but the above control can be applied to other servomotors such as the servomotor that drives the tool.
[0050] The above describes the embodiments, but all the examples and conditions described here are recorded to help understand the concepts of the invention applicable to the invention and technology. The embodiments and conditions described in particular are not intended to limit the scope of the invention, and the composition of such embodiments in the specification does not represent the advantages and disadvantages of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that various modifications, substitutions and deformations can be made without departing from the spirit and scope of the present invention.
Claims
1. A machine tool, characterized in that: have: a driving unit that drives a spindle that rotatably holds a workpiece; a servo motor driving a tool for machining the workpiece held by the spindle; a power source that supplies power to at least the drive unit and the servo motor; a current detection unit that detects a current value input to the servo motor; a storage unit storing an upper limit current value input to the servo motor; as well as a control unit that controls the servo motor to perform drive control of the tool, When the current value detected by the current detection unit exceeds the upper limit current value immediately after the spindle is started, the control unit changes the acceleration / deceleration time constant from a first time constant to a second time constant having lower power consumption than the first time constant to control the servomotor.
2. The machine tool according to claim 1, characterized in that: further comprising a voltage detection unit for detecting a power supply voltage value input from the power supply, After the spindle is just started, when the current value detected by the current detection unit is below the upper limit current value and the power supply voltage value detected by the voltage detection unit is below the threshold voltage value, the control unit changes the acceleration / deceleration time constant from the first time constant to a third time constant having lower power consumption than the first time constant and higher power consumption than the second time constant, so as to control the servo motor.
3. A control device for a machine tool, characterized in that: The machine tool includes: a drive unit that drives a spindle that rotatably holds a workpiece; a servo motor that drives a tool to process the workpiece held by the spindle; and a power supply that supplies power to at least the drive unit and the servo motor. The control device of the machine tool comprises: a current detection unit that detects a current value input to the servo motor; a storage unit that stores an upper limit current value input to the servo motor; and a control unit that controls the servo motor to perform drive control of the tool, When the current value detected by the current detection unit exceeds the upper limit current value immediately after the spindle is started, the control unit changes the acceleration / deceleration time constant from a first time constant to a second time constant having lower power consumption than the first time constant to control the servomotor.
4. The control device for a machine tool according to claim 3, characterized in that: further comprising a voltage detection unit for detecting a power supply voltage value input from the power supply, After the spindle is just started, when the current value detected by the current detection unit is below the upper limit current value and the power supply voltage value detected by the voltage detection unit is below the threshold voltage value, the control unit changes the acceleration / deceleration time constant from the first time constant to a third time constant having lower power consumption than the first time constant and higher power consumption than the second time constant, so as to control the servo motor.
