Numerical control device and control method
The numerical control device optimizes spindle head movement by using coasting positions and speed adjustments to reduce the time between cutting positions, addressing the inefficiencies in existing systems and enhancing cutting process efficiency.
Patent Information
- Application Number
- JP2020162031
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-10
- Filing Date
- 2020-09-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-09-28
AI Technical Summary
Existing numerical control devices take a long time to move the spindle head between cutting positions, particularly when moving downward from the return position to the completion position during cutting operations, which prolongs the overall cutting process.
The device employs a control method that includes defining coasting positions and calculating optimal coasting distances and timings to maintain speed at the end position, allowing for efficient movement of the spindle head between positions using first and second axis motors, and adjusting speed based on time constants to maximize tool movement speed.
This approach significantly reduces the time required for cutting operations by optimizing the spindle head's movement, thereby enhancing the efficiency of the cutting process.
Smart Images

Figure 0007574590000014 
Figure 0007574590000015 
Figure 0007574590000016
Abstract
Description
[Technical field]
[0001] The present invention relates to a numerical control device and a control method. [Background technology]
[0002] In the numerical control device described in Patent Document 1, the Z-axis motor moves the spindle head upward from the completion position of the cutting operation toward the return position, and then coasts the spindle head upward to a position beyond the return position. At this time, the numerical control device maintains the speed of the Z-axis motor until the spindle head reaches the return position from the completion position. Therefore, the numerical control device can shorten the time it takes to move the spindle head from the completion position to the return position. The numerical control device moves the coasting spindle head horizontally to position it, and then moves the spindle head downward by the travel distance due to coasting to return it to the original return position. The numerical control device moves the spindle head from the return position downward to the completion position and performs the next cutting operation. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2009-237929 A Summary of the Invention [Problem to be solved by the invention]
[0004] To shorten the work time of cutting, it is effective to shorten not only the time to move the spindle head upward from the completion position to the return position, but also the time to move the spindle head downward from the return position to the completion position during cutting. In the numerical control device, the spindle head is stopped once at the return position, and then the Z-axis motor starts moving the spindle head, which moves it downward to the completion position. Therefore, since the time to move the spindle head downward from the return position to the completion position during cutting is relatively long, there are times when the work time of cutting cannot be shortened.
[0005] An object of the present invention is to provide a numerical control device and a control method capable of shortening the work time of cutting processing. [Means for solving the problem]
[0006] The numerical control device of the invention according to claim 1 is a numerical control device that drives a first axis motor that moves a tool relatively in a first axis direction with respect to a work table that holds a workpiece and a second axis motor that moves the tool relatively in a second axis direction perpendicular to the first axis direction, to control a cutting process for cutting the workpiece, and is provided with a memory unit that stores a program including commands for positioning the tool relative to the workpiece during the cutting process, and a control unit that positions the tool by controlling the first axis motor and the second axis motor based on the program, and the program a command to move the tool between an mth machining position (m is an integer of 1 or more), an mth end position, an m+1st start position, and an m+1st machining position which specify a position in the second axis direction, and an mth cutting position and an m+1st cutting position which specify a position in the second axis direction, the nth command (n is an integer of 1 or more) to relatively move the tool from the m cutting position to the m+1 cutting position along the second axis direction with respect to the work table; the control unit includes at least an n+1th command for relatively moving the tool to the m+1 machining position in the approaching direction along the first axis direction with respect to the work table, an n+2nd command for relatively moving the tool from the m+1 machining position to the m+1 end position in a moving away direction that is a direction away from the work table, and the control unit includes a first moving unit that drives the second axis motor based on the n command and relatively moves the tool in the second axial direction from the m cutting position toward the m+1 cutting position, and a n+3rd command for relatively moving the tool from the m cutting position to the m+1 cutting position by the first moving unit. a second movement unit that drives the first axis motor in the process of moving the tool relative to the m end position in the separating direction to a coasting position separated in the separating direction from the m end position; a first calculation unit that calculates a start time for starting relative movement of the tool from the coasting position in the approaching direction, by relatively moving the tool moved relative to the coasting position by the second movement unit from the coasting position in the approaching direction so that the tool moved relatively by the first movement unit reaches the m+1 cutting position when the tool passes the m end position;and a third moving unit that, when the start time calculated by the first calculation unit arrives, drives the first axis motor to relatively move the tool in the approaching direction from the coasting position to the (m+1) start position via the (m) end position.
[0007] The numerical control device can maintain the velocity at the m-th end position when the tool is moved downward relatively, and therefore the numerical control device can reduce the operation time required for cutting the workpiece by the tool.
[0008] The numerical control device of the invention according to claim 2 further comprises a second calculation unit which calculates the distance between the coasting position and the mth end position as a coasting distance, the second movement unit relatively moves the tool in the separating direction to the coasting position according to the coasting distance calculated by the second calculation unit, and the second calculation unit calculates the coasting distance based on an n+1th command distance which is the distance in the first axial direction between the mth end position and the m+1th start position, a maximum speed of the tool by driving the first axis motor, and a time constant during acceleration and deceleration of the tool. At this time, the numerical control device can maximize the speed of the tool passing downward through the mth end position, thereby further shortening the work time required for cutting.
[0009] The second calculation unit of the numerical control device according to the invention of claim 3 determines, when the velocity at the m end position is an elapsed velocity smaller than the maximum velocity, as the coasting position, a movement start position at which the moving object moves relatively in the approaching direction from the m end position by the n+1 command distance while decelerating based on the time constant and the velocity at the m end position is the elapsed velocity while accelerating based on the time constant, and calculates the distance between the determined coasting position and the m end position as the coasting distance based on the n+1 command distance. At this time, the numerical control device can easily calculate an appropriate coasting distance.
[0010] The third movement unit of the numerical control device according to the invention of claim 4 accelerates the speed of the tool while it moves relatively from the coasting position in the approaching direction by the coasting distance to the elapsed speed based on the time constant, and decelerates the speed of the tool while it moves relatively in the approaching direction by the (n+1) command distance from the elapsed speed based on the time constant. At this time, the numerical control device can maximize the tool speed within the range of the time constant and the elapsed speed. Therefore, the numerical control device can minimize the time required for the tool to relatively move from the mth end position to the (m+1)th start position.
[0011] The second calculation unit of the numerical control device according to the invention of claim 5 determines, when the speed at the m end position when moving relatively in the approaching direction from the m end position by the n+1 command distance while decelerating based on the time constant is the maximum speed, as the coasting position, a relative movement start position at which the maximum speed is achieved at the m end position when moving relatively in the approaching direction toward the m end position while accelerating based on the time constant, and calculates the distance between the determined coasting position and the m end position as the coasting distance based on the time constant and the maximum speed. At this time, the numerical control device can easily calculate an appropriate coasting distance.
[0012] The third movement unit of the numerical control device according to the invention of claim 6 accelerates the speed of the tool while it moves relatively from the coasting position in the approaching direction by the coasting distance to the maximum speed based on the time constant, and decelerates the speed of the tool while it moves relatively in the approaching direction by the (n+1) command distance from the maximum speed based on the time constant. At this time, the numerical control device can maximize the tool speed within the range of the time constant and the maximum speed. Therefore, the numerical control device can minimize the time required for the tool to move relatively from the mth end position to the (m+1)th start position.
[0013] A control method of the invention according to claim 7 is a control method for controlling a cutting process to cut the workpiece by controlling a first-axis motor which moves the tool relatively in the first axial direction with respect to the worktable and a second-axis motor which moves the tool relatively in the second axial direction with respect to the worktable, based on a program including at least an nth command (n is an integer of 1 or more) for moving the tool relatively from the mth cutting position (m is an integer of 1 or more) to the m+1th cutting position along the second axial direction with respect to a worktable that holds a workpiece, an n+1th command for moving the tool relatively from the mth end position to the m+1th start position in an approaching direction that is an orientation approaching the worktable along a first axial direction perpendicular to the second axial direction with respect to the worktable, and an n+2th command for moving the tool relatively in the approaching direction along the first axial direction with respect to the worktable to the m+1st processing position and then moving the tool relatively from the m+1st processing position to the m+1st end position in a away direction that is an orientation away from the worktable, the tool moving method includes a first moving step of relatively moving in the second axial direction toward a cutting position; a second moving step of driving the first axis motor during a process in which the tool moves relatively from the m cutting position to the m+1 cutting position by the first moving step, and relatively moving the tool in the separating direction to a coasting position separated in the separating direction from the m end position; a first calculation step of relatively moving the tool, which has been moved relatively to the coasting position by the second moving step, from the coasting position in the approaching direction to calculate a start time for starting the relative movement of the tool in the approaching direction from the coasting position so that the tool moved relatively by the first moving step reaches the m+1 cutting position when the tool passes the m end position; and a third moving step of driving the first axis motor when the tool reaches the coasting position by the second moving step and the start time calculated by the first calculation step arrives, and relatively moving the tool in the approaching direction from the coasting position to the m+1 start position via the m end position. At this time, it has the same effect as technical solution 1. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a left side view showing an overview of a machine tool 10. [Diagram 2] FIG. 2 is a block diagram showing the electrical configuration of the numerical control device 20 and the machine tool 10. [Diagram 3] FIG. 4 is a diagram showing a relative movement trajectory of a tool 4 that moves based on an nth command to an (n+2)th command. [Figure 4] Graph showing the movement speed of tool 4. [Diagram 5] A diagram showing the travel speed of tool 4 (X-axis direction). [Figure 6] 1 is a flow diagram of the main process. [Figure 7] Flow chart of the main process continued from FIG. [Figure 8] 11 is a flowchart of a first calculation process. [Figure 9] 13 is a flowchart of a second calculation process. [Figure 10] 13 is a flowchart of a third calculation process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] A machine tool 10 shown in Fig. 1 performs cutting and other processes on a workpiece W placed on a worktable 50 using a tool 4 attached to a spindle 9. A numerical control device 20 in Fig. 2 controls the operation of the machine tool 10. The front, rear, left, right, upper, and lower sides of the machine tool 10 correspond to the left, right, rear, near, upper, and lower sides in Fig. 1, respectively. The left-right direction, front-back direction, and up-down direction of the machine tool 10 are the X-axis direction, Y-axis direction, and Z-axis direction, respectively.
[0016] As shown in FIG. 1, the machine tool 10 comprises a base 2, a pillar 5, a spindle head 7, a spindle 9, a workbench device 40, and an operation panel 16 (see FIG. 2). In the machine tool 10, a workbench 50 of the workbench device 40 moves in two axial directions, the X-axis and the Y-axis. The base 2 is the foundation of the machine tool 10. The pillar 5 is fixed to the rear part of the upper surface of the base 2. The spindle head 7 moves in the Z-axis direction along the front surface of the pillar 5. The pillar 5 is provided with a Z-axis movement mechanism on its front surface. The Z-axis movement mechanism is driven by a Z-axis motor 11 (see FIG. 2). The Z-axis movement mechanism has the same structure as the Y-axis movement mechanism described below. The spindle head 7 has a rotatable spindle 9 provided inside it. The tool 4 is attached to a tool attachment hole provided at the lower end of the spindle 9.
[0017] The workbench device 40 is provided on the upper surface of the base 2 and below the spindle head 7. The workbench device 40 supports the workbench 50 so that it can move in two axial directions, the X-axis and the Y-axis. In the workbench device 40 shown in FIG. 1, only the Y-axis moving mechanism that moves the workbench 50 in the Y-axis direction is shown, and the X-axis moving mechanism is omitted. The workbench device 40 includes a bed 41, a Y-axis track 42, a Y-axis motor 14, a joint 43, a ball screw 44, a bearing portion 45, a nut 46, a workbench 50, and the like. The bed 41, the Y-axis track 42, the Y-axis motor 14, the joint 43, the ball screw 44, the bearing portion 45, and the nut 46 constitute the Y-axis moving mechanism. The bed 41 is installed on the upper surface of the base 2. The bed 41 has a long recess in the Y-axis direction in the center in the left-right direction, and most of the Y-axis moving mechanism is stored inside the recess. The Y-axis track 42 is provided on the upper part of the bed 41 and extends in the Y-axis direction. The Y-axis track 42 guides the workbench 50 so that it can move in the Y-axis direction. The Y-axis motor 14 is provided on the rear side of the recess of the bed 41. The ball screw 44 is provided inside the recess of the bed 41 and extends in the Y-axis direction. The joint 43 connects the output shaft of the Y-axis motor 14 and the rear end of the ball screw 44 to each other. The bearing part 45 rotatably supports the front end of the ball screw 44. Therefore, when the output shaft of the Y-axis motor 14 rotates, the ball screw 44 rotates via the joint 43. The nut 46 is fixed to the underside of the workbench 50 and is screwed into the ball screw 44. Therefore, as the ball screw 44 rotates, the workbench 50 moves in the Y-axis direction together with the nut 46. The workbench device 40 includes an X-axis movement mechanism in addition to the Y-axis movement mechanism. The X-axis movement mechanism supports the Y-axis movement mechanism so that it can move in the X-axis direction. The X-axis movement mechanism is driven by the X-axis motor 13 (see FIG. 2) and has the same structure as the Y-axis movement mechanism.
[0018] Hereinafter, moving the work table 50 holding the workpiece W in the X-axis direction relative to the tool 4 in response to the X-axis movement mechanism is referred to as moving the tool 4 in the X-axis direction (relative to the workpiece W). Moving the work table 50 holding the workpiece W in the Y-axis direction relative to the tool 4 in response to the Y-axis movement mechanism is referred to as moving the tool 4 in the Y-axis direction (relative to the workpiece W).
[0019] As shown in FIG. 2, the operation panel 16 has an input section 17 and a display section 18. The input section 17 is a device for performing various inputs, instructions, settings, etc. The display section 18 is a device for displaying various screens. The numerical control device 20 has a CPU 21, a ROM 22, a RAM 23, a storage device 24, an input / output section 25, and drive circuits 26-29. The CPU 21 controls the numerical control device 20. The ROM 22 stores programs and setting values for the CPU 21 to execute main processing. The RAM 23 stores various data during execution of various processing. The storage device 24 is a non-volatile memory, and stores various parameters in addition to the NC program. The NC program describes the operation of the machine tool 10 with a plurality of control commands in a predetermined program language. Each control command is a command for positioning the tool 4 during cutting processing by the machine tool 10, etc. The various parameters include a maximum speed Vxmax (maximum speed of the X-axis motor 13), Vymax (maximum speed of the Y-axis motor 14), Vzmax (maximum speed of the Z-axis motor 11), and time constants Cx, Cy, and Cz described later. The input / output unit 25 is connected to the operation panel 16, the CPU 21, the ROM 22, the RAM 23, the storage device 24, and the drive circuits 26-29. The drive circuits 26-29 are servo amplifiers. The Z-axis motor 11 is equipped with an encoder 11A. The spindle motor 12 is equipped with an encoder 12A. The X-axis motor 13 is equipped with an encoder 13A. The Y-axis motor 14 is equipped with an encoder 14A. The drive circuit 26 is connected to the Z-axis motor 11 and the encoder 11A. The drive circuit 27 is connected to the spindle motor 12 and the encoder 12A. The drive circuit 28 is connected to the X-axis motor 13 and the encoder 13A. The drive circuit 29 is connected to the Y-axis motor 14 and the encoder 14A. The drive circuits 26-29 are collectively referred to as a drive circuit 30. The Z-axis motor 11, the spindle motor 12, the X-axis motor 13, and the Y-axis motor 14 are collectively referred to as motors 15. The encoders 11A to 14A are collectively referred to as encoder 15A. The detection result output by the encoder 15A to the drive circuit 30 indicates the positional relationship between the tool 4 and the workpiece W in the X-axis, Y-axis, and Z-axis directions. The CPU 21 reads the NC program stored in the storage device 24, and transmits a drive signal to the drive circuit 30 for positioning the tool 4 at a target position based on a control command. The drive circuit 30 outputs a drive current to the corresponding motor 15 in response to the drive signal received from the CPU 21.A drive circuit 30 receives a feedback signal from the encoder 15A and controls the position and speed of the motor 15.
[0020] The figure shows the time when the machine tool 10 is driven based on NC program commands (called feed axis commands) to move the tool 4 in the X-axis, Y-axis, and Z-axis directions relative to the workpiece W. The following describes the time when the tool 4 is moved in the Z-axis direction relative to the workpiece W for machining. The same applies when the tool 4 is moved in the X-axis and Y-axis directions relative to the workpiece W for machining.
[0021] When the CPU 21 reads the feed axis command of the NC program, it generates time series data of the target position of the spindle head 7, which holds the spindle 9, in order to move the spindle head 7 to the position specified by the feed axis command. The CPU 21 outputs the target position data to the drive circuit 26 at a predetermined cycle. The drive circuit 26 drives the Z-axis motor 11 based on the target position data output by the CPU 21. The Z-axis motor 11 moves the tool 4 in the Z-axis direction via the spindle head 7 to the target position. Every time the CPU 21 inputs the target position data to the drive circuit 26, the drive circuit 26 drives the Z-axis motor 11. As a result, the tool 4 finally reaches the position specified by the feed axis command (called the command position). The control executed by the CPU 21 based on the feed axis command is called the feed axis control.
[0022] When generating time-series data of target positions, the CPU 21 first determines each target position so that the speed at which the tool 4 moves in the Z-axis direction to the command position remains constant. Next, the CPU 21 applies a moving average filter to a waveform (called a speed waveform) that indicates the time-series change in speed, and adjusts the acceleration / deceleration characteristics corresponding to the rising and falling characteristics of the speed waveform. The moving average filter is a digital filter that has a finite-time impulse response, i.e., an FIR filter. The process of adjusting the acceleration / deceleration characteristics by applying the moving average filter to the speed waveform is called acceleration / deceleration processing. The slopes of the rising and falling edges of the speed waveform after acceleration / deceleration processing correspond to the acceleration / deceleration at the start and end of rotation of the Z-axis motor 11, and vary based on the time constant Cz of the moving average filter.
[0023] The CPU 21 determines a target position for each predetermined period based on the velocity waveform that has undergone acceleration and deceleration processing. The CPU 21 outputs data of the determined target position to the drive circuit 26 at a predetermined period. At that time, the tool 4 moved by the Z-axis motor 11 driven by the drive circuit 26 accelerates at the start of the movement at an acceleration based on the time constant Cz of the moving average filter, and decelerates at the end of the movement at an acceleration based on the time constant Cz of the moving average filter. In the same manner as above, the time constant of the moving average filter applied when moving the work table 50 in the X-axis direction is called Cx, and the time constant of the moving average filter applied when moving the work table 50 in the Y-axis direction is called Cy.
[0024] As an example of the operation of the machine tool 10, an overview of drilling will be described. In drilling, the tool 4 is moved in the Z-axis direction relative to the workpiece W to form a hole in the workpiece W that extends parallel to the Z-axis direction. For example, an NC program for forming the (m+1)th hole (m is an integer equal to or greater than 0) in the workpiece W includes at least one of an nth command (n is an integer equal to or greater than 1), an n+1th command, and an n+2th command as feed axis commands. The nth command, the n+1th command, and the n+2th command are collectively referred to as an Nth command. The CPU 21 executes the commands in the order of the ordinal number N.
[0025] FIG. 3 shows the transition of the relative position of the tool 4 with respect to the work table 50 and the workpiece W, with the work table 50 and the workpiece W as the reference. As shown in FIG. 3, the machine tool 10 moves the tool 4 from the m-th cutting position to the m+1-th cutting position in the X- and Y-axis directions, and forms the m+1-th hole at the m+1-th cutting position in the X- and Y-axis directions. The m-th end position indicates the initial position of the tool 4. The m+1-th start position, the m+1-th processing position, and the m+1-th end position respectively indicate the command positions of the tool 4 to be positioned when forming the m+1-th hole. The m-th end position, the m+1-th start position, and the m+1-th end position are separated upward from the work table 50 in the Z-axis direction. The m+1-th processing position overlaps with the workpiece W in the Z-axis direction. The positional relationship in the Z-axis direction between the m-th end position and the m+1-th end position is not limited to that shown in FIG. 3.
[0026] The nth command is a command to move the tool 4 horizontally along at least one of the X- and Y-axis directions from the mth cutting position to the (m+1)th cutting position. Since the tool 4 moves horizontally, the position of the tool 4 in the Z-axis direction after the movement based on the nth command is the same mth end position as before the movement. In the following, it is assumed that the tool 4 moves in the X-axis direction based on the nth command, but does not move in the Y-axis direction. The movement distance of the tool 4 based on the nth command is referred to as the nth command distance Lxy. The (n+1)th command is a command to move the tool 4, which has moved from the mth cutting position to the (m+1)th cutting position based on the nth command, downward along the Z-axis direction from the mth end position to the (m+1)th start position. The movement distance of the tool 4 based on the (n+1)th command is called the (n+1)th command distance Lzdown. The n+2th command is a command to move the tool 4, which has moved downward to the m+1th start position based on the n+1th command, downward along the Z-axis direction from the m+1th start position to the m+1th processing position, and then upward along the Z-axis direction from the m+1th processing position to the m+1th end position. The n+2th command may include two control commands. At this time, the first command is a command to move the tool 4, which has moved downward to the m+1th start position, downward along the Z-axis direction from the m+1th start position to the m+1th processing position. The second command is a command to move upward along the Z-axis direction from the m+1th processing position to the m+1th end position.
[0027] The CPU 21 executes the feed axis control of the numerical control device 20 (see FIG. 3 and FIG. 4) based on an NC program that repeatedly includes the nth command, the n+1th command, and the n+2th command. At this time, the NC program includes at least the nth command, the n+1th command, and the n+2th command. In order to execute the drilling process in a short time, it is better that the time required for the tool 4 to move downward from the mth end position to the m+1th start position based on the n+1th command is short. Therefore, when the tool 4 starts to move downward from the mth end position, it is better that the initial speed is greater than 0. As shown in FIG. 3, when the CPU 21 moves the tool 4 in the X-axis direction from the mth cutting position to the m+1th cutting position based on the nth command, it simultaneously moves the tool 4 upward from the mth end position to a position above the mth end position (referred to as a coasting position). After the tool 4 reaches the coasting position, the CPU 21 moves the tool 4 downward from the coasting position to the mth end position before moving the tool 4 downward from the mth end position to the m+1th start position based on the n+1th command. At that time, the CPU 21 does not stop the tool 4 at the mth end position, but continues to move it downward to the m+1th start position. Therefore, the CPU 21 can reduce the time required for the tool 4 to move from the mth end position to the m+1th start position, and the drilling process can be performed in a short time.
[0028] The two operation types will be explained with reference to FIG.
[0029] In FIG. 4(a), the n+1th command distance Lzdown (indicated as command distance Lz) satisfies the relationship of formula (1-1). Cz is a time constant, and Vzmax is a maximum speed. The tool 4 moving based on the n+1th command moves downward from the mth end position (time t55) by the command distance Lz while decelerating based on the time constant Cz, and stops at the m+1th start position (time t56). At that time, the moving speed when the tool 4 passes the mth end position is an elapsed speed Vzdown which is smaller than the maximum speed Vzmax. The command distance Lz is the integral value of the speed line of the n+1th command between times t55 and t56. The time constant Cz is the same as the elapsed time from when the tool 4 starts moving until the moving speed reaches the maximum speed Vzmax, and the elapsed time from when the tool 4 starts decelerating from the maximum speed Vzmax until the tool 4 stops (the moving speed becomes 0).
number
[0030] When the tool 4 accelerates downward from the coasting position and reaches the elapsed speed Vzdown at the mth end position (time t55), time t54, which is the movement start time of the tool 4, is determined by the following method based on the acceleration according to the time constant Cz. The position of the tool 4 in the Z-axis direction at time t54 is the coasting position. The distance in the Z-axis direction between the coasting position and the mth end position (referred to as coasting distance Ld) is the integral value of the n+1th command speed line between times t54 and t55, and is equal to the command distance Lz (=n+1th command distance Lzdown). Therefore, the coasting distance Ld satisfies the relationship of formula (1-2).
number
[0031] When tool 4 moves upward from the mth end position to the coasting position, it accelerates from time t51 based on the time constant Cz (times t51 to t52). The moving speed of tool 4 is switched from acceleration to deceleration so that tool 4 moves a coasting distance Ld, reaches the coasting position, and stops (time t52). Tool 4 decelerates based on the time constant Cz and stops at the coasting position (time t53). When tool 4 starts moving upward toward the coasting position (time t51), it starts moving in the X-axis direction at the nth command. Tool 4 starts moving in the X-axis direction from the mth cutting position. Tool 4 reaches the (m+1)th cutting position at time t55 and stops.
[0032] The CPU 21 calculates the time (movement time Txy) required for the tool 4 to move from the m-th cutting position to the m+1-th cutting position. FIG. 5 is a graph showing the time change of the moving speed in the X-axis direction of the tool 4. The maximum speed Vxmax is the moving speed of the tool 4 when the X-axis motor 13 rotates at a predetermined maximum rotation speed. When the tool 4 starts moving in the X-axis direction, the moving speed of the tool 4 accelerates based on the time constant Cx. When the tool 4 stops moving, the moving speed of the tool 4 decelerates based on the time constant Cx. The time constant Cx is the same as the elapsed time from when the tool 4 starts moving in the X-axis direction until the moving speed reaches the maximum speed Vxmax, and the elapsed time from when the tool 4 starts decelerating from the maximum speed Vxmax until the tool 4 stops (the moving speed becomes 0). The area enclosed by the n-th command speed line and the horizontal axis is the n-th command distance Lxy. FIG. 5(a) shows the time when the moving speed of the tool 4 starts decelerating and returns to 0 before increasing from 0 to the maximum speed Vxmax. The acceleration time and deceleration time at that time are called Cx'. The maximum speed Vxmax shows the relationship of formula (1-3). The maximum speed during the movement of the tool 4 is called Vx.
number
[0033] At that time, the relationships Vxmax / Cx = Vx / Cx' and Lxy = Cx'Vx / 2 are satisfied. When Cx' is calculated from the two equations, Txy coincides with twice the value of Cx', which shows the relationship of equation (1-4).
number
[0034] Fig. 5(b) shows the time when the moving speed of the tool 4 increases from 0 to the maximum speed Vxmax, maintains it, and then starts to decelerate and returns to the moving speed 0. The maximum speed Vxmax satisfies the relationship of formula (1-5).
number
[0035] At that time, Txy shows the relationship of formula (1-6).
number
[0036] The CPU 21 determines the time (time t54) at which the tool 4 in the coasting position starts to move downward so that the time when the tool 4 moving in the X-axis direction by the nth command reaches the m+1th cutting position coincides with the time when the tool 4 moving downward from the coasting position passes the mth end position, as follows. As shown in FIG. 4, the time from when the tool 4 starts to move downward from the coasting position to when it passes the mth end position is called Tzdown. The ratio of the maximum speed Vzmax to the time constant Cz is equal to the ratio of the elapsed speed Vzdown to the time Tzdown. Therefore, the relationship of formula (1-7) is satisfied.
number
[0037] The (n+1)th command distance Lzdown is the integral value of the command line of the (n+1)th command between times t55 and t56, and therefore satisfies the relationship of formula (1-8).
number
[0038] From equations (1-7) and (1-8), the time Tzdown satisfies the relationship of equation (1-9).
number
number
[0039] In FIG. 4(b), the command distance Lz satisfies the relationship of formula (2-1).
number
[0040] When the tool 4 accelerates downward from the coasting position and reaches a maximum speed Vzmax at the mth end position (time t65), time t64, which is the movement start time of the tool 4, is determined by the following method based on the time constant Cz and the acceleration. The position of the tool 4 in the Z-axis direction at time t64 is the coasting position. The coasting distance Ld is the integral value of the speed line of the (n+1)th command between times t64 and t65, and satisfies the relationship of formula (2-2).
number
[0041] When the tool 4 moves upward from the mth end position to the coasting position, it accelerates from time t61 based on the time constant Cz (times t61 to t62). The tool 4 moves a coasting distance Ld, reaches the coasting position, and switches the moving speed from acceleration to deceleration so as to stop (time t62). The tool 4 starts deceleration based on the time constant Cz and stops at the coasting position (time t63). When the tool 4 starts moving upward toward the coasting position (time t61), it starts moving in the X-axis direction at the nth command. The tool 4 starts moving in the X-axis direction from the mth cutting position. The tool 4 reaches the m+1th cutting position at time t65. The time required for the tool 4 to move from the mth cutting position to the m+1th cutting position is the moving time Txy. At this time, the CPU 21 determines the time (time t64) at which the tool 4 at the coasting position starts to move downward so that the time when the tool 4 moving in the X-axis direction at the nth command reaches the m+1th cutting position coincides with the time when the tool 4 moving downward from the coasting position passes the mth end position, as follows: The delay time Tdelay from the time t61 at which the tool 4 starts to move at the nth command satisfies the relationship of formula (2-3).
number
[0042] The main processing will be described with reference to Figures 6 and 7. When the power supply to the machine tool 10 is turned on, the CPU 21 of the numerical control device 20 starts the main processing by reading and executing a program stored in the ROM 22. When the main processing starts, the CPU 21 sets the variable n stored in the RAM 23 to 1. As shown in Figure 6, the CPU 21 reads the nth command, the n+1th command, and the n+2th command from the NC program (S11). The CPU 21 judges whether the nth command is a control command for ending the cutting process (S13). When the CPU 21 judges that the nth command is a control command for ending the cutting process (S13: YES), the CPU 21 ends the main processing. When the CPU 21 judges that the nth command is not a control command for ending the cutting process (S13: NO), the CPU 21 judges whether the n+1th command is a feed axis command for moving the tool 4 downward along the Z-axis direction (referred to as a Z-axis downward command) (S15). When the CPU 21 determines that the n+1th command is not a Z-axis downward command (S15: NO), it controls the machine tool 10 based on the nth command (S41). The CPU 21 adds 1 to the variable n stored in the RAM 23 (S43) and returns the process to S11. The CPU 21 repeats the process based on the updated variable n. When the CPU 21 determines that the n+1th command is a Z-axis downward command (S15: YES), it determines whether the nth command is a feed axis command (referred to as an X-axis command) for moving the tool 4 along the X-axis direction (S17). When the CPU 21 determines that the nth command is not an X-axis command (S17: NO), it advances the process to S41. When the CPU 21 determines that the nth command is an X-axis command (S17: YES), it executes a first calculation process (see FIG. 8) to calculate the movement time Txy (S31).
[0043] The first calculation process will be described with reference to FIG. 8. The CPU 21 determines whether the tool 4 will start decelerating and return to 0 before the moving speed increases from 0 to the maximum speed Vxmax (S101). When the formula (1-3) is satisfied, the CPU 21 determines that the moving speed of the tool 4 will start decelerating and return to 0 before the moving speed increases from 0 to the maximum speed Vxmax (S101: YES). At that time, the CPU 21 determines the moving time Txy based on the formula (1-4) (S103) and ends the first calculation process. When the formula (1-3) is not satisfied, the CPU 21 determines that the tool 4 will increase from 0 to the maximum speed Vxmax and maintain it, then start decelerating and return to the moving speed 0 (S101: NO, see formula (1-5)). At that time, the CPU 21 determines the moving time Txy based on the formula (1-6) (S105) and ends the first calculation process.
[0044] As shown in FIG. 6, the CPU 21 executes the second calculation process (see FIG. 9) to calculate the coasting distance Ld (S33). The second calculation process will be described with reference to FIG. 9. The CPU 21 determines whether the tool 4 reaches the m-th end position before the moving speed of the tool 4 increases to the maximum speed Vzmax (S111). When the CPU 21 determines based on the formula (1-1) that the tool 4 reaches the m-th end position before the moving speed of the tool 4 increases to the maximum speed Vzmax (S111: YES), the CPU 21 determines the n+1-th command distance Lzdown (=Lz) as the coasting distance Ld based on the formula (1-2) (S113), and ends the second calculation process. When the CPU 21 determines that the tool 4 reaches the m-th end position after the moving speed of the tool 4 increases to the maximum speed Vzmax (S111: NO), the CPU 21 determines the coasting distance Ld based on the formula (2-2) (S115), and ends the second calculation process. As shown in Fig. 6, the CPU 21 executes a third calculation process (see Fig. 10) to calculate a time Tzdown (referred to as a coasting distance travel time) from when the tool 4 starts to move downward from the coasting position until it passes the mth end position (S35). The third calculation process will be described with reference to Fig. 10. The CPU 21 determines whether the tool 4 will reach the mth end position before the movement speed of the tool 4 increases to the maximum speed Vzmax (S121). Based on the formula (1-1), when the CPU 21 determines that the tool 4 will reach the mth end position before the movement speed of the tool 4 increases to the maximum speed Vzmax (S121: YES), the CPU 21 determines a coasting distance travel time Tzdown that satisfies the formula (1-9) (S123), and ends the third calculation process. Based on equation (2-1), when it is determined that the tool 4 reaches the mth end position after the moving speed of the tool 4 has increased to the maximum speed Vzmax (S121: NO), the CPU 21 determines the time constant Cz as the coasting distance moving time Tzdown (S125, see equation (2-3)), and terminates the third calculation process.
[0045] 6, the CPU 21 calculates a delay time (S21) to calculate the timing to start moving the tool 4 downward from the coasting position. The delay time Tdelay is calculated by subtracting the coasting distance movement time Tzdown calculated in the third calculation process (see S35) from the movement time Txy calculated in the first calculation process (see S31). The CPU 21 drives the X-axis motor 13 to start the operation of moving the tool 4 in the X-axis direction from the mth cutting position to the (m+1)th cutting position (S23). At the same time, the CPU 21 drives the Z-axis motor 11 to start the operation of moving the tool 4 upward from the mth end position to the coasting position (S23). The CPU 21 starts measuring the elapsed time from the start of the movement of the tool 4 in the X-axis direction (S29). The CPU 21 advances the process to S51 (see FIG. 7).
[0046] 7, the CPU 21 judges whether the tool 4, which has started moving upward in S23, has reached the coasting position and the elapsed time since measurement in S29 has started coincides with the delay time Tdelay and the start time has arrived (S51). When the CPU 21 judges that the tool 4 has not reached the coasting position corresponding to the coasting distance Ld calculated in the second calculation process (see S33) or that the elapsed time does not coincide with the delay time Tdelay calculated in S21 and the start time has not arrived (S51: NO), the process returns to S51. When the CPU 21 judges that the tool 4 has reached the coasting position and the elapsed time coincides with the delay time Tdelay and the start time has arrived (S51: YES), the CPU 21 starts the downward movement of the tool 4 from the coasting position toward the (m+1)th start position (S53). The moment when the tool 4, which has started moving along the X-axis direction in accordance with S23, reaches the (m+1)th cutting position coincides with the moment when the tool 4, which has started moving downward in accordance with S53, passes the (m)th end position.
[0047] The CPU 21 judges whether the tool 4, which has started moving along the X-axis direction in accordance with S23, has reached the m+1 cutting position and whether the tool 4, which has started moving downward in accordance with S53, has reached the m+1 start position (S55). When the tool 4 has not reached the m+1 cutting position or the tool 4 has not reached the m+1 start position (S55: NO), the CPU 21 returns the process to S55 and repeats the process. When the tool 4 has reached the m+1 cutting position and the tool 4 has reached the m+1 start position (S55: YES), the CPU 21 advances the process to S57. The CPU 21 moves the tool 4, which has moved downward to the m+1 start position in accordance with the n+2 command, downward along the Z-axis direction from the m+1 start position to the m+1 processing position. The CPU 21 moves the tool 4 upward along the Z-axis direction from the m+1 processing position to the m+1 end position (S57). The CPU 21 adds 2 to the variable n stored in the RAM 23 (S59), and returns the process to S11 (see FIG. 6).
[0048] The numerical controller 20 calculates the coasting distance Ld and the delay time Tdelay (S33, S21). The tool 4 is moved from the m-th cutting position to the m+1-th cutting position (S23), and at the same time, the tool 4 is moved upward to the coasting position (S23). When the delay time Tdelay has elapsed since the tool 4 reached the coasting position and started to move in the X-axis direction (S51: YES), the numerical controller 20 moves the tool 4 downward from the coasting position to the m+1-th start position via the m-th end position (S53). At that time, the numerical controller 20 can maintain the moving speed at the m-th end position when moving the tool 4 downward. Therefore, the numerical controller 20 can shorten the working time required for cutting the workpiece W by the tool 4.
[0049] When the moving speed of the tool 4 is maximum at the elapsed speed Vzdown which is smaller than the maximum speed Vzmax, the numerical controller 20 calculates the coasting distance Ld based on the (n+1)th command distance Lzdown (Equation (1-2)). At this time, the numerical controller 20 can easily calculate an appropriate coasting distance Ld. The numerical controller 20 accelerates the speed of the tool 4 while it moves downward from the coasting position by the coasting distance Ld to the elapsed speed Vzdown based on the time constant Cz. The numerical controller 20 decelerates the speed of the tool 4 while it moves downward by the (n+1)th command distance Lzdown from the elapsed speed Vzdown based on the time constant Cz. At this time, the numerical controller 20 can maximize the moving speed of the tool 4 within the range of the time constant Cz and the elapsed speed Vzdown. Therefore, the numerical controller 20 can minimize the time required for the tool to move from the mth end position to the (m+1)th start position.
[0050] When the moving speed of the tool 4 is maximized at the maximum speed Vzmax, the numerical controller 20 calculates the coasting distance Ld based on the time constant Cz and the maximum speed Vzmax (equation (2-2)). At this time, the numerical controller 20 can easily calculate an appropriate coasting distance Ld based on the time constant Cz and the maximum speed Vzmax. The numerical controller 20 accelerates the moving speed of the tool 4 while it moves downward from the coasting position by the coasting distance Ld to the maximum speed Vzmax based on the time constant Cz, and maintains it at the maximum speed Vzmax. Next, the numerical controller 20 decelerates the moving speed of the tool 4 while it moves downward by the n+1th command distance Lzdown from the maximum speed Vzmax based on the time constant Cz. At this time, the numerical controller 20 can maximize the moving speed of the tool 4 within the range of the time constant Cz and the maximum speed Vzmax. Therefore, the numerical controller 20 can minimize the time required for the tool 4 to move from the mth end position to the m+1th start position.
[0051] The present invention is not limited to the above embodiment. The numerical control device 20 may add a predetermined movement amount to the calculated coasting distance Ld to obtain the coasting distance. At that time, the coasting position is further away upward from the workpiece W than the position determined above.
[0052] The numerical controller 20 may determine the start time of moving the tool 4 downward from the coasting position based on a variable other than the delay time Tdelay. For example, the numerical controller 20 may determine the amount of movement of the tool 4 in the X-axis direction based on a signal obtained from the encoder 13A connected to the X-axis motor 13. The numerical controller 20 may determine the start time of moving the tool 4 downward when the determined amount of movement matches a predetermined threshold. The numerical controller 20 may calculate the predetermined threshold in advance based on the delay time Tdelay, the command distance of the nth command, the time constant Cz, and the maximum speed Vzmax. In this case, the numerical controller 20 can more accurately match the time when the tool 4 reaches the (m+1)th cutting position with the time when the tool 4 passes the mth end position, compared to when the start time is determined based on the delay time Tdelay.
[0053] The command distance of the nth command may be short. In such a case, even if the tool 4 moves downward immediately after moving to the coasting position, the tool 4 may move in the X-axis direction and reach the m+1th cutting position earlier than the tool 4 passes downward through the mth end position. In such a case, the cutting work time becomes longer, which is not preferable. In such a case, the coasting distance may be determined as the value obtained by subtracting a predetermined movement amount from the calculated coasting distance Ld.
[0054] The machine tool 1 may move the tool 4 in the X-axis and Y-axis directions, instead of the worktable 50, to move the tool 4 relative to the workpiece W in the X-axis and Y-axis directions, respectively. The machine tool 1 may move the worktable 50 in the Z-axis direction, instead of the spindle head 7, to move the tool 4 in the Z-axis direction relative to the workpiece W.
[0055] The Z-axis direction is an example of the first axis direction of the present invention. The Z-axis motor 11 is an example of the first axis motor of the present invention. The X-axis direction and the Y-axis direction are examples of the second axis direction of the present invention. The X-axis motor 13 and the Y-axis motor 14 are examples of the second axis motor of the present invention. The storage device 24 is an example of a storage unit of the present invention. The upward direction is an example of a separation direction of the present invention. The downward direction is an example of a close direction of the present invention. The CPU 21 that performs the processing of S21 is an example of a first calculation unit of the present invention. The CPU 21 that performs the processing of S33 is an example of a second calculation unit of the present invention. The CPU 21 that performs the processing of S23 is an example of a first movement unit and a second movement unit of the present invention. The CPU 21 that performs the processing of S53 is an example of a third movement unit of the present invention. The processing of S21 is an example of a first calculation step of the present invention. The processing of S33 is an example of a second calculation step of the present invention. The processing of S23 is an example of a first movement step and a second movement step of the present invention. The processing of S53 is an example of a third movement step of the present invention. [Explanation of symbols]
[0056] 4:Tools 9: Spindle 10: Machine tools 11: Z-axis motor 12: Main shaft motor 13: X-axis motor 14: Y-axis motor 20: Numerical control device 21: CPU 24:Storage device Cz: Time constant Ld:Coasting distance Vzmax: Maximum speed Vzup: Elapsed speed W: Work material
Claims
1. a numerical control device that drives a first axis motor that moves a tool relative to a work table that holds a workpiece in a first axis direction and a second axis motor that moves a tool relative to a worktable in a second axis direction perpendicular to the first axis direction, and controls a cutting process for cutting the workpiece, a storage unit that stores a program including an instruction for determining a relative position of the tool with respect to the workpiece during the cutting process; a control unit that controls the first axis motor and the second axis motor based on the program to position the tool; Equipped with The program is a command to move the tool among an m-th end position (m is an integer equal to or greater than 1) that defines a position in the first axis direction, an m+1-th start position, an m+1-th machining position, an m-th cutting position that defines a position in the second axis direction, and the m+1-th cutting position, an nth command (n is an integer equal to or greater than 1) for moving the tool relative to the worktable along the second axis from the m cutting position to the m+1 cutting position; an (n+1)th command to move the tool relative to the work table from the (m) end position to the (m+1) start position in an approaching direction along the first axis direction, the approaching direction being an orientation approaching the work table; The method includes at least an n+2 command to move the tool relative to the work table in the approaching direction along the first axis to the m+1 machining position, and to move the tool relative to the work table from the m+1 machining position to the m+1 end position in a moving away direction that is a direction away from the work table, The control unit is a first calculation unit that calculates, as a coasting distance, a distance between a coasting position separated from the m end position in the separation direction and the m end position, based on an n+1-th command distance that is a distance in the first axial direction between the m end position and the m+1 start position, a maximum speed of the tool caused by driving the first axis motor, and a time constant during acceleration and deceleration of the tool; a first moving unit that drives the second axis motor based on the n command and relatively moves the tool in the second axial direction from the m cutting position to the (m+1) cutting position; a second movement unit that drives the first axis motor during a process in which the tool is relatively moved from the m cutting position to the (m+1) cutting position by the first movement unit, and relatively moves the tool in the separating direction to the coasting position according to the coasting distance calculated by the first calculation unit; a second calculation unit that calculates a start time for starting relative movement of the tool from the coasting position in the approaching direction so that the tool, which has been moved relatively to the coasting position by the second moving unit, moves relatively from the coasting position in the approaching direction and reaches the (m+1) cutting position when the tool passes the m end position; a third movement unit that drives the first axis motor when the tool reaches the coasting position by the second movement unit and the start time calculated by the second calculation unit arrives, and relatively moves the tool in the approaching direction from the coasting position to the (m+1) start position via the (m) end position. A numerical control device comprising:
2. The first calculation unit, 2. The numerical control device according to claim 1, wherein when a velocity at the m end position for relatively moving in the approaching direction from the m end position by the n+1 command distance while decelerating based on the time constant and positioning at the m+1 start position becomes an elapsed velocity smaller than the maximum velocity, a movement start position where a relative movement in the approaching direction toward the m end position while accelerating based on the time constant becomes the elapsed velocity at the m end position is determined as the coasting position, and a distance between the determined coasting position and the m end position is calculated as the coasting distance based on the n+1 command distance.
3. The third moving portion is 3. The numerical control device according to claim 2, wherein a speed during which the tool moves relatively in the approach direction from the coasting position by the coasting distance is accelerated to the elapsed speed based on the time constant, and a speed during which the tool moves relatively in the approach direction by the n+1 command distance is decelerated from the elapsed speed based on the time constant.
4. The first calculation unit, 2. The numerical control device according to claim 1, wherein when a speed at the m end position for relatively moving in the approaching direction from the m end position by the n+1 command distance while decelerating based on the time constant and positioning at the m+1 start position becomes the maximum speed, a relative movement start position at which the maximum speed is achieved at the m end position when relatively moving in the approaching direction toward the m end position while accelerating based on the time constant is determined as the coasting position, and a distance between the determined coasting position and the m end position is calculated as the coasting distance based on the time constant and the maximum speed.
5. The third moving portion is 5. The numerical control device according to claim 4, wherein a speed of the tool while it moves relatively from the coasting position in the approaching direction by the coasting distance is accelerated up to the maximum speed based on the time constant, and a speed of the tool while it moves relatively in the approaching direction by the n+1 command distance is decelerated from the maximum speed based on the time constant.
6. a control method for controlling a cutting process for cutting the workpiece by controlling a first axis motor for moving the tool relatively in the first axial direction with respect to the worktable and a second axis motor for moving the tool relatively in the second axial direction with respect to the worktable, based on a program including at least an nth command (n is an integer of 1 or more) for moving the tool relatively along the second axial direction from an mth cutting position (m is an integer of 1 or more) to an m+1th cutting position with respect to a worktable that holds a workpiece, an n+1th command for moving the tool relatively from the mth end position to the m+1th start position in an approaching orientation that is an orientation approaching the worktable along a first axial direction perpendicular to the second axial direction with respect to the worktable, and an n+2th command for moving the tool relatively along the first axial direction with respect to the worktable in the approaching orientation to the m+1th processing position, and moving the tool relatively from the m+1st processing position to the m+1st end position in a away orientation that is an orientation away from the worktable, a first calculation step of calculating a coasting distance between a coasting position separated from the m end position in the separation direction and the m end position, based on an (n+1)th command distance which is a distance in the first axial direction between the m end position and the (m+1)th start position, a maximum speed of the tool caused by driving the first axis motor, and a time constant during acceleration and deceleration of the tool; a first moving step of driving the second axis motor based on the n command to relatively move the tool in the second axial direction from the m cutting position to the (m+1) cutting position; a second moving step of driving the first axis motor during a process in which the tool relatively moves from the m cutting position to the (m+1) cutting position by the first moving step, and relatively moving the tool in the separating direction to the coasting position according to the coasting distance calculated by the first calculation step; a second calculation step of calculating a start time for starting the relative movement of the tool from the coasting position in the approaching direction so that the tool, which has been moved relatively to the coasting position by the second movement step, reaches the (m+1) cutting position when the tool passes the m end position by relatively moving the tool from the coasting position in the approaching direction; a third moving step of driving the first axis motor when the tool reaches the coasting position by the second moving step and the start time calculated by the second calculating step arrives, and relatively moving the tool in the approaching direction from the coasting position to the (m+1) start position via the (m) end position; A control method comprising:
Citation Information
Patent Citations
High speed punching system
JP1989027838A
Fast feeding control method and device for machine tool
JP1994180605A
Drill tap working method
JP1997085535A
Numerical control device
JP2007200037A
Numerical controller, control program for numerical controller, and recording medium for numerical controller
JP2009237929A
