Numerical control device and numerical control program

The numerical control device and program adjust speed profiles using pre-correction and post-correction time constants to address excessive speeds and accelerations, ensuring accurate and vibration-free movement paths.

JP7560653B2Active Publication Date: 2024-10-02FANUC LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023509122
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-03-24
Filing Date
2022-03-18
Publication Date
2024-10-02
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

Existing numerical control devices fail to account for the characteristics of the machining device, leading to excessive speeds and accelerations that exceed the capabilities of the drive shafts, causing vibrations and deviations in the movement path, particularly during circular arc movements.

Method used

A numerical control device and program that modify the speed profile of each drive axis by using pre-correction and post-correction time constants to ensure the speed is first accelerated from zero and then decelerated to zero, minimizing excessive speeds and accelerations while maintaining accuracy on the specified movement path.

Benefits of technology

The solution allows for precise movement along complex paths without requiring excessive speed or acceleration, reducing vibrations and path deviations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560653000001
    Figure 0007560653000001
  • Figure 0007560653000002
    Figure 0007560653000002
  • Figure 0007560653000003
    Figure 0007560653000003
Patent Text Reader

Abstract

A numerical control device 10 according to an aspect of the present disclosure does not require excessive speed and acceleration yet keeps errors in movement paths to a minimum, and in accordance with a machining program containing a plurality of command blocks that each specify a designated speed of a target, controls a machining device having a plurality of drive shafts for driving the target. The numerical control device 10 comprises: a synthetic speed computing unit 16 that, for at least a curve block which designates curve movement and which is from among the plurality of command blocks, computes a synthetic speed that is revised so that the designated speed is initially accelerated from zero by a pre-revision time constant and finally decelerated to zero by the pre-revision time constant; and a pre-revision speed computing unit 17 that computes a per-clock-time pre-revision speed for each drive shaft that realizes the synthetic speed.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a numerical control device and a numerical control program. [Background technology]

[0002] The numerical control device controls the machining device according to a machining program that represents the movement path of an object such as a workpiece or a tool by a plurality of specified coordinates through which the object should pass, the movement speed, etc. The numerical control device analyzes the machining program, performs an interpolation process to calculate the desired speed or position for each drive axis of the machining device at each time, and drives each drive axis based on the interpolated information.

[0003] Machining programs are created without considering the characteristics of machining devices. Therefore, when trying to execute the operations described in the machining program, a large speed or acceleration is required, which may exceed the capacity of the drive axis or cause vibration. For this reason, in the numerical control device, an acceleration / deceleration process may be performed to correct the moving speed of each block, which specifies the operation between two consecutive specified coordinates in the machining program, so that the speed is accelerated from zero at the beginning and decelerated to zero at the end. Usually, in the acceleration / deceleration process, the speed is increased at a constant acceleration from zero at the start point of the block, and the speed is decreased at a constant acceleration just before the end point of the block so that the speed becomes zero at the end point of the block. In this case, immediately after the start of each block, each drive axis is driven at a speed obtained by adding the speed data for increasing the speed from zero to the speed of the block and the speed data for decelerating and stopping at the end point of the previous block.

[0004] However, when such acceleration and deceleration processing is performed, the movement path of the object deviates from the path specified in the machining program. In particular, when the object is moved to draw an arc, it is known that the object passes through a path inside the path specified in the machining program when acceleration and deceleration processing is performed. For this reason, it has been proposed to reduce the error of the movement path by gradually decreasing the time constant (acceleration) of acceleration and deceleration at the start of a block that specifies a circular arc-shaped movement path (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Japanese Patent Application Publication No. 3-292508 Summary of the Invention [Problem to be solved by the invention]

[0006] If the time constant for acceleration / deceleration is made small at the start of a block, the speed data for increasing the speed immediately after the start of this block and the speed for decelerating and stopping at the end point of the previous block may be added together to require a speed that exceeds the capacity of the drive axis or excessive acceleration that generates vibrations. Therefore, a technology is desired that does not require excessive speed or acceleration while suppressing errors in the movement path. [Means for solving the problem]

[0007] A numerical control device according to one aspect of the present disclosure is a numerical control device that controls a machining device having a plurality of drive axes that drive an object in accordance with a machining program including a plurality of command blocks each specifying a specified speed of the object, and is equipped with a composite speed calculation unit that calculates a composite speed corrected for at least a curve block among the plurality of command blocks that specifies curved movement by first accelerating the specified speed from zero by a pre-correction time constant and finally decelerating to zero by the pre-correction time constant, and a pre-correction speed calculation unit that calculates the pre-correction speed for each time of each drive axis that realizes the composite speed.

[0008] A numerical control program according to one embodiment of the present disclosure is a numerical control program for controlling a machining device having a plurality of drive axes that drive an object in accordance with a machining program including a plurality of command blocks each specifying a specified speed of the object, and includes a composite speed calculation control unit that calculates a composite speed corrected for at least a curve block among the plurality of command blocks that specifies curved movement by first accelerating the specified speed from zero by a pre-correction time constant and finally decelerating to zero by the pre-correction time constant, and a pre-correction speed calculation control unit that calculates the pre-correction speed for each time of each drive axis that realizes the composite speed. Effect of the Invention

[0009] According to the present invention, it is possible to provide a numerical control device and a numerical control program that suppress errors in a movement path while not requiring excessive speed and acceleration. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram showing a configuration of a numerical control device according to an embodiment of the present disclosure. FIG. [Diagram 2] FIG. 11 is a diagram showing an example of a movement path specified by a machining program. [Diagram 3] 3 is a diagram showing various speeds calculated by the numerical control device of FIG. 1 to realize the movement path of FIG. 2. [Figure 4] 3 is a diagram showing the movement path in FIG. 2, a movement path in a case where a pre-correction speed is calculated for a curved block, and a movement path in a case where a post-correction speed is calculated for the curved block; FIG. [Diagram 5] 11 is a graph showing a change in moving speed over time when following a machining program, when a pre-correction speed is calculated, and when a post-correction speed is calculated. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing a configuration of a numerical control device 1 according to an embodiment of the present disclosure.

[0012] The numerical control device 10 controls a machining device having multiple drive axes for driving an object (e.g., a tool, a workpiece, etc.) according to a machining program including multiple command blocks each specifying a designated speed of the object. That is, the numerical control device 1 inputs command values ​​to a drive circuit (servo drive) 20 that drives the multiple drive axes of the machining device. In the machining program, the command block generally specifies the movement path of the object by specifying the coordinates of the start point and end point of the movement path and the movement speed.

[0013] The numerical control device 10 can be realized by causing a computer device having, for example, a CPU, a memory, an input / output interface, etc., to execute the numerical control program according to the present disclosure. The numerical control device 10 has a program reading unit 11, a pre-processing unit 12, a block discrimination unit 13, a reference speed calculation unit 14, a post-correction speed calculation unit 15, a composite speed calculation unit 16, a pre-correction speed calculation unit 17, and an output speed calculation unit 18. These components are classifications of the functions of the numerical control device 10, and do not necessarily have to be clearly distinguished in terms of the physical structure and the program structure.

[0014] The program reading unit 11 reads the machining program stored in the storage medium into the working memory for each command block. The program reading unit 11 may read in advance command blocks to be executed later, within the limits of the capacity of the storage area.

[0015] When a step-like speed change is specified at the beginning and end of a command block to be processed continuously in a machining program, the pre-processing unit 12 modifies the contents of the command block so that the speed change occurs at an acceleration within an allowable range.

[0016] The block discrimination unit 13 discriminates whether a command block is a straight line block that specifies a straight line movement of an object, or a curved line block that specifies a curved line movement of an object.

[0017] The reference speed calculation unit 14 calculates a reference speed, which is an ideal value of the speed of each drive axis per unit time that realizes a specified speed for a straight line block. In other words, the reference speed calculation unit 14 calculates an ideal value of the speed of each drive axis per unit time between the start point and the end point of the target movement path specified by the command block (a speed that reproduces movement faithful to the command block). For this reason, the reference speed calculation unit 14 performs a calculation to interpolate the speed command value between the start point and the end point of the command block.

[0018] The post-correction speed calculation unit 15 calculates a post-correction speed that corrects the reference speed calculated by the reference speed calculation unit 14 so that the reference speed is first accelerated from zero by the post-correction time constant and finally decelerated to zero by the post-correction time constant. Therefore, the post-correction speed has, in this order, an acceleration section where the speed gradually increases, a constant speed section where the speed is constant, and a deceleration section where the speed gradually decreases. The post-correction time constant is set in advance depending on the characteristics of the processing device, etc.

[0019] The post-correction speed calculation unit 15 calculates the post-correction speed as follows: Straight Block Accelerating from the start time, Straight Block It is preferable to determine that the vehicle speed is decelerated from the end point time of the following equation. Straight Block The speed of the drive shaft at the start time of is set to zero, Straight Block From the start time of the drive axis deceleration It is preferable to determine the initial time change of the post-correction speed in the command block by correcting the time change of the reference speed so as to start the following. Straight Block The speed of the drive shaft at the start time of the above is the speed calculated by the reference speed calculation unit 14, Straight Block It is preferable to determine the final time change of the post-correction speed in the command block by correcting the time change of the reference speed (adding a speed change after the end time) so that the deceleration of the drive axis starts from the start time of the command block. For example, such a post-correction speed can be calculated as the average value of the reference speed from a time that is the post-correction time constant before the time to the time.

[0020] The composite speed calculation unit 16 calculates a composite speed for the curved block by first accelerating the designated speed from zero by the previous correction time constant and finally decelerating to zero by the previous correction time constant. That is, before calculating the speed of the drive axis at each time, the composite speed calculation unit 16 corrects the moving speed of the object that is the basis for calculating the speed of the drive axis at each time. This composite speed calculation unit 16 accelerates and decelerates on the moving path specified by the curved block. That is, the composite speed calculation unit 16 calculates the acceleration and deceleration of the designated speed as a change in angular velocity.

[0021] The composite speed calculation unit 16 may set the pre-correction time constant of the acceleration section and the pre-correction time constant of the deceleration section to different values, and may set the pre-correction time constant to different values ​​for each command block. However, when the immediately preceding command block is a straight block, the composite speed calculation unit 16 preferably sets the pre-correction time constant equal to the post-correction time constant applied to the immediately preceding command block. This allows the deceleration of the initial moving speed of the curved block by the composite speed calculation unit 16 to be offset by the deceleration portion added to the end of the speed change of the immediately preceding straight block by the post-correction speed calculation unit 15. Therefore, no irregular speed change occurs at the boundary between the straight block and the curved block, and vibrations of the processing device are suppressed. In addition, when the curved blocks are consecutive and the moving direction at the end point of the previous curved block coincides with the moving direction at the start point of the subsequent curved block, the pre-correction time constant of the deceleration section of the previous curved block and the pre-processing time constant of the acceleration section of the subsequent curved block may be zero.

[0022] A pre-corrected speed calculation unit 17 calculates a pre-corrected speed, which is the speed of each drive axis per time that realizes the composite speed calculated by the composite speed calculation unit 16. In this way, by interpolating the speed change between the start point and the end point based on the composite speed that has been corrected so that the speed change based on the command block does not occur excessively near the start point and the end point, it is possible to reduce the deviation of the actual movement path of the object from the movement path specified by the command block.

[0023] The output speed calculation unit 18 calculates an output speed by adding the post-correction speed calculated by the post-correction speed calculation unit 15 and the pre-correction speed calculated by the pre-correction speed calculation unit 17. In other words, the output speed calculation unit 18 calculates an output speed that specifies the time change in the speed of each drive axis by connecting the post-correction speed or the pre-correction speed of each command block so that the end time of the previous command block and the start time of the next command block overlap. This makes it possible to input to the drive circuit 20 a command value that allows the target to be moved relatively accurately along a complex movement path specified by multiple command blocks without requiring excessive speed and acceleration.

[0024] As is clear from the above description, the numerical control program according to the present disclosure for realizing the numerical control device 10 includes a program reading control unit for realizing the program reading unit 11, a preprocessing control unit for realizing the preprocessing unit 12, a block discrimination control unit for realizing the block discrimination unit 13, a reference speed calculation control unit for realizing the reference speed calculation unit 14, a postcorrection speed calculation control unit for realizing the postcorrection speed calculation unit 15, a composite speed calculation control unit for realizing the composite speed calculation unit 16, a precorrection speed calculation control unit for realizing the precorrection speed calculation unit 17, and an output speed calculation control unit for realizing the output speed calculation unit 18. The numerical control program according to the present disclosure can be provided in a state stored in a storage medium that non-temporarily stores a program.

[0025] The calculation of the output speed from the machining program in the numerical control device 10 will be specifically described. As an example, a case will be described in which the machining program has a first straight block N1, a curved block N2, and a second straight block N3 successively in this order as shown in Fig. 2. In this example, the machining device has an X-direction drive axis that moves the object in the X-direction and a Y-direction drive axis that moves the object in the Y-direction, and moves the object on the XY plane.

[0026] Figure 3 shows the specified speed for each command block, and the composite speed, pre-correction speed, reference speed, post-correction speed, and output speed for each drive axis for the first straight block N1, curved block N2, and second straight block N3 in Figure 2. The markers in the figure indicate the points where the speed values ​​are specified.

[0027] In the illustrated example, the specified speeds (absolute values ​​of the moving speeds) in the first straight line block N1, curved line block N2, and second straight line block N3 do not change, only their directions change. Specifically, the first straight line block N1 specifies uniform speed movement in the X direction, the curved line block N2 specifies uniform speed movement that draws an arc with a central angle of 90°, and the second straight line block N3 specifies uniform speed movement in the Y direction.

[0028] The reference speed calculation unit 14 breaks down the speed of the first linear block N1 and the speed of the second linear block N3 into an X-direction component and a Y-direction component, respectively, and calculates (interpolates) the time-dependent values ​​of the X-direction component and the Y-direction component. This results in an X-axis reference speed, which is continuous data of the speed of the X-direction drive axis at each time, and a Y-axis reference speed, which is continuous data of the speed of the Y-direction drive axis at each time. The first linear block N1 is represented by an X-axis reference speed having a constant value and a Y-axis reference speed having no value (the speed is always zero). The second linear block N3 is represented by an X-axis reference speed having no value and a Y-axis reference speed having a constant value.

[0029] The post-correction speed calculation unit 15 calculates the X-axis post-correction speed and the Y-axis post-correction speed by correcting the X-axis reference speed and the Y-axis reference speed so as to accelerate and decelerate them with a predetermined post-correction time constant. In the illustrated example, the X-axis post-correction speed and the Y-axis post-correction speed are Straight Block Accelerate from the start time of Straight Block The speed is decelerated from the end point time of the first straight line block N1. As a result, the first straight line block N1 is represented by an X-axis post-correction speed that changes trapezoidally and a Y-axis post-correction speed that has no value. The second straight line block N3 is represented by an X-axis post-correction speed that has no value and a Y-axis post-correction speed that changes trapezoidally.

[0030] The composite speed calculation unit 16 corrects the designated speed of the curve block N2 to calculate a composite speed that first accelerates from zero with the pre-correction time constant and finally decelerates to zero with the pre-correction time constant. As a result, the curve block N2 is represented by a composite speed whose absolute value changes in a trapezoidal shape. The pre-correction time constant of the curve block N2 is set equal to the post-correction time constant applied to the immediately preceding first straight block N1.

[0031] The pre-correction speed calculation unit 17 calculates the X-axis pre-correction speed and the Y-axis pre-correction speed, which are the speeds of the X-direction driving axis and the Y-direction driving axis at each time that can realize the composite speed. If the angle from the start point position of the target position at that time as viewed from the center of the path of the curve block N2 is θ, the X-axis pre-correction speed is the composite speed multiplied by sinθ, and the Y-axis pre-correction speed is the composite speed multiplied by cosθ.

[0032] The output speed calculation unit 18 calculates the X-axis output speed, which is the operation command value of the X-direction drive shaft, by adding together the X-axis rear correction speed of the first straight block N1, the X-axis front correction speed of the curved block N2, and the X-axis rear correction speed of the second straight block N3, and calculates the Y-axis output speed, which is the operation command value of the Y-direction drive shaft, by adding together the Y-axis rear correction speed of the first straight block N1, the Y-axis front correction speed of the curved block N2, and the Y-axis rear correction speed of the second straight block N3.

[0033] Since the deceleration section of the X-axis rear correction speed of the first linear block N1 and the acceleration section of the X-axis front correction speed of the curved block N2 overlap in time, in this time range, the speed obtained by adding the X-axis rear correction speed of the first linear block N1 and the X-axis front correction speed of the curved block N2 becomes the X-axis output speed. Similarly, the deceleration section of the X-axis front correction speed of the curved block N2 and the acceleration section of the X-axis rear correction speed of the second linear block N3 are also added. Since the speed increase for adding the deceleration section and the speed decrease for forming the acceleration section cancel each other out, the X-axis output speed changes continuously without including excessively large speeds or accelerations, and errors in the target movement path are also suppressed. In addition, as with the X-axis output speed, the deceleration section and the acceleration section of the Y, axis rear correction speed, and Y-axis front correction speed are added together, and the change increases and decreases continuously without including excessively large speeds or accelerations, and errors in the target movement path are also suppressed.

[0034] Fig. 4 shows a moving path of an object specified in the machining program in Fig. 2, a path following the motion command values ​​of the numerical control device 10 (motion command values ​​when the pre-correction speed is calculated for the curved block N2 by the composite speed calculation unit 16 and the pre-correction speed calculation unit 17), and a path following the motion command values ​​when the post-correction speed is calculated for the curved block N2 by the reference speed calculation unit 14 and the post-correction speed calculation unit 15. Fig. 5 shows the time change of the moving speed of the object corresponding to Fig. 4.

[0035] In the movement path (solid line) when the pre-correction speed is calculated and the movement path (two-dot chain line) when the post-correction speed is calculated, acceleration in the Y-axis direction starts at arc movement start point A on the movement path (one-dot chain line) specified by the machining program, and ends at points C1 and C2. Acceleration distance L1 when the pre-correction speed is calculated is shorter than acceleration distance L2 when the post-correction speed is calculated. Therefore, the speed gradient when the pre-correction speed is calculated is greater than the speed gradient when the post-correction speed is calculated.

[0036] As described above, the numerical control device 10 calculates a composite speed by adding an acceleration section and a deceleration section to the specified speed of the curve block, and then calculates a pre-correction speed, which is the speed of each axis at each time, thereby suppressing errors in the movement path while not requiring excessive speed and acceleration.

[0037] Although the embodiments of the numerical control device and the numerical control program according to the present disclosure have been described above, the numerical control device and the numerical control program according to the present disclosure are not limited to the above-mentioned embodiments. Furthermore, the effects described in the above-mentioned embodiments are merely a list of the most preferable effects resulting from the numerical control device and the numerical control program according to the present disclosure, and the effects of the numerical control device and the numerical control program according to the present disclosure are not limited to those described in the above-mentioned embodiments.

[0038] In the numerical control device and numerical control program according to the present disclosure, the curve block is not limited to one that specifies a circular arc, but may be one that specifies a two-dimensional curve such as an elliptical curve, a spiral curve, or an involute curve, or a three-dimensional curve such as a helical curve.

[0039] The numerical control device and the numerical control program according to the present disclosure may be configured not to distinguish between curved blocks and straight line blocks, but to process the straight line blocks in the composite speed calculation unit and the pre-corrected speed calculation unit to calculate the pre-corrected speed. [Explanation of symbols]

[0040] 10 Numerical control device 11 Program Loading Section 12 Pretreatment section 13 Block discrimination section 14 Reference speed calculation section 15 Post-correction speed calculation section 16 Combined speed calculation section 17 Previous correction speed calculation section 18 Output speed calculation section 20 Drive circuit

Claims

1. A numerical control device that controls a machining device having a plurality of drive axes for driving an object according to a machining program including a plurality of command blocks each specifying a designated speed of the object, a combined speed calculation unit that calculates a combined speed by correcting the designated speed for at least a curved block that specifies curved movement among the plurality of command blocks so as to first accelerate the designated speed from zero by a pre-correction time constant and finally decelerate the designated speed to zero by the pre-correction time constant; a pre-correction speed calculation unit that calculates a pre-correction speed for each drive axis that realizes the composite speed; a block discrimination unit that discriminates whether the command block is the curved block or a straight block that specifies a straight line movement; a reference speed calculation unit that calculates a reference speed for each drive axis for realizing the specified speed for the straight line block; a post-correction speed calculation unit that calculates a post-correction speed that is corrected so that the reference speed is first accelerated from zero by a post-correction time constant and finally decelerated to zero by the post-correction time constant; an output speed calculation unit that calculates an output speed by adding the pre-correction speed and the post-correction speed; A numerical control device comprising:

2. the synthetic speed calculation unit determines the synthetic speed so as to accelerate from a start point time of the curved line block and to decelerate from an end point time of the curved line block; The numerical control device according to claim 1 , wherein the post-correction speed calculation unit determines the post-correction speed so as to accelerate from a start point time of the straight line block and to decelerate from an end point time of the straight line block.

3. 3. The numerical control device according to claim 1, wherein, when the immediately preceding command block is the straight-line block, the composite speed calculation unit sets the pre-correction time constant equal to the post-correction time constant applied to the immediately preceding straight-line block.

4. 1. A numerical control program for controlling a machining device having a plurality of drive axes for driving an object in accordance with a machining program including a plurality of command blocks each specifying a specified speed of the object, the program comprising: a combined speed calculation control unit that calculates a combined speed by correcting the designated speed for at least a curved block that specifies curved movement among the plurality of command blocks so as to first accelerate the designated speed from zero by a pre-correction time constant and finally decelerate the designated speed to zero by the pre-correction time constant; a pre-correction speed calculation control unit that calculates a pre-correction speed for each drive axis for realizing the composite speed; a block discrimination control unit that discriminates whether the command block is the curved block or a straight block that specifies a straight line movement; a reference speed calculation control unit that calculates a reference speed for each drive axis that realizes the specified speed for the straight line block; a post-correction speed calculation control unit that calculates a post-correction speed that is corrected so that the reference speed is first accelerated from zero by a post-correction time constant and finally decelerated to zero by the post-correction time constant; an output speed calculation control unit that calculates an output speed by adding the pre-correction speed and the post-correction speed; A numerical control program comprising:

Citation Information

Patent Citations

  • Robot controller

    JP1989099103A

  • Servo controller

    JP1991292508A

  • Position control method for machine tool

    JP1994110534A

  • Locus controller

    JP1994187026A

  • Robot control method

    JP2020019125A