Numerical control system and numerical control method

The system dynamically adjusts acceleration and time constant based on workpiece mass and other factors to optimize machining efficiency and prevent overloads, addressing inefficiencies in existing numerical control systems.

DE112013007679B4Inactive Publication Date: 2024-12-05MITSUBISHI ELECTRIC CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
DE112013007679
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2013-12-13
Publication Date
2024-12-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing numerical control systems fail to dynamically adjust the time constant and acceleration based on the changing mass of a workpiece during machining, leading to inefficiencies in cycle time and potential vibrations or overloads.

Method used

The system dynamically adjusts acceleration and time constant based on real-time estimation of the workpiece mass and other state variables, such as load or acceleration-deceleration factors, without requiring trial runs of the machining program.

Benefits of technology

This approach reduces cycle time, suppresses vibrations, and prevents overloads by optimizing acceleration and time constant adjustments during machining, enhancing operational efficiency and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Numerical control system (1; 1a; 1b; 1c, 1d) which controls a motor (3) according to a program (6) which specifies a path for a drive target of the motor (3), wherein the numerical control system (1; 1a; 1b; 1c, 1d) comprises: an acceleration-deceleration processing unit (12), which, based on a target acceleration value at that time, applies an acceleration-deceleration procedure to a speed at which the drive target is moved along the path, and which outputs a speed obtained using the acceleration-deceleration method; an interpolation unit (11, 13), which calculates one position command per control cycle for the motor (3) in order to operate the motor (3) at the speed obtained by the acceleration-deceleration method; a unit of change (14; 14a; 14b; 14c, 14d), which monitors a state variable related to the motor (3) while the motor (3) is being controlled, and which changes the acceleration setpoint based on the state variable while the motor (3) is being controlled, where the unit of change (14; 14a; 14b; 14c, 14d) reads out an acceleration candidate value based on the state variable, a distance required to reduce the speed of the drive target from a current value to a speed at the target position, which is specified in the program (6), using the acceleration candidate value, determines, based on the required distance and a distance between the current position of the drive target and the target position, whether it is possible to move the drive target to a target position with the acceleration candidate value, changes the acceleration setpoint to the acceleration candidate value if it has been determined that it is possible to move the drive target to the target position with the acceleration candidate value, and The acceleration target value remains unchanged if it has been determined that it is impossible for the drive target to be moved to the target position with the acceleration candidate value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The present invention relates to a numerical control system (NC system) and a numerical control method. background

[0002] Traditionally, when machining a workpiece with a large mass (weight) using numerical control on a machine tool, a time constant is set according to the maximum mass ratio in the numerical control system, and the time constant remains unchanged until the machining is complete. Therefore, if the mass is reduced by cutting or other machining, this accounts for further acceleration or deceleration of a motor. However, since the time constant remains constant, the cycle time cannot be reduced. Therefore, a method for selecting an optimal time constant according to the weight of a workpiece has been proposed (see, for example, JP 2010 - 211 467 A).

[0003] Document DE 10 2009 048 252 A1 discloses a collision prevention device built into a numerically controlled machine with - a function generation unit that generates an adjustment setpoint, - an acceleration / deceleration processing unit that performs acceleration / deceleration processing for the setpoint adjustment value generated by the function generation unit for each axis in order to mitigate shocks such as those that can occur when a machine tool is operating, - a unit that performs a collision check on a target path in advance and, if it is determined that a collision may occur, prevents any collision by preventing the function generation unit from generating the adjustment setpoint, - an acceleration / deceleration simulation unit that performs acceleration / deceleration processing on the setpoint generated by the function generation unit according to a method similar to that used by the acceleration / deceleration processing unit, and that receives an adjustment path resulting from the acceleration / deceleration processing, - a collision detection unit that performs a collision check between a moving element and a collision object along the adjustment path generated by the acceleration / deceleration simulation unit and determines whether a collision can occur, - a delay unit that continuously stores adjustment setpoints generated by the function generation unit and continuously outputs an adjustment setpoint as it was stored a predetermined time earlier, and - a setpoint blocking unit that delivers the setpoint output by the deceleration unit to the acceleration / deceleration processing unit when the collision detection unit determines that no collision will occur, and that prevents the setpoint from being delivered from the deceleration unit to the acceleration / deceleration processing unit when the collision detection unit determines that a collision may occur. This collision prevention device performs the collision check not only for the target path but also for the adjustment path output by the acceleration / deceleration simulation unit. Brief description of the technical problem

[0004] According to the technique described above in JP 2010 - 211 467 A, an NC system drives a machine tool based on a machining program. The NC system estimates the weight of a workpiece and derives an optimal time constant based on this estimate. The NC system stores the derived time constant along with the machining program. When the NC system drives the machine tool again based on the same machining program, it uses the stored time constant to drive the machine tool. Therefore, the problem arises that every time the machining program or the weight of a workpiece is changed, an estimate of the workpiece weight and a derivation of the time constant are required.

[0005] The present invention was developed to solve the problems described above. One objective of the present invention is to provide cycle time reduction, vibration suppression, and overload prevention effects by estimating the mass of a workpiece, even while a program is running, and automatically changing the acceleration or time constant to an optimal value based on the estimation result while a machine tool is in operation. A further objective of the present invention is to provide cycle time reduction, vibration suppression, and overload prevention effects by automatically changing the acceleration or time constant according to a state variable, independent of the mass of a workpiece, such as a load or an acceleration-deceleration factor.

[0006] The present invention was developed to solve the above problems, and one objective of the present invention is to provide an NC machine and an NC method that can dynamically change the acceleration without a trial run of a machining program. Solution to the problem

[0007] The above problem is solved by combining the features of the independent claims. Preferred further developments are found in the dependent claims. Advantageous effects of the invention

[0008] The NC system according to the present invention changes the acceleration of a motor based on a state variable of the motor, even while the motor is being controlled. This makes it possible to dynamically change the acceleration without trial runs of a machining program. Brief description of the drawings Fig. Figure 1 is a diagram showing an embodiment of an NC system according to a first embodiment. Fig. Figure 2 is a flowchart describing the operation of a parameter change unit in the first embodiment. Fig. Figure 3 is a flowchart that describes the change procedure in the first embodiment. Fig. Figure 4 is a diagram showing an example of a curve representing the combined velocity. Fig. Figure 5 is a diagram showing an example of a curve representing the combined velocity. Fig. Figure 6 is a diagram showing an embodiment of an NC system according to a second embodiment. Fig. Figure 7 is a flowchart describing the operation of a parameter change unit according to the second embodiment. Fig. Figure 8 is a diagram showing an embodiment of an NC system according to a third embodiment. Fig. Figure 9 is a flowchart describing the operation of a parameter change unit according to the third embodiment. Fig. Figure 10 is a diagram showing an embodiment of an NC system according to a fourth embodiment. Fig. Figure 11 is a diagram showing an embodiment of an NC system according to a fifth embodiment. Description of the embodiments

[0009] Exemplary embodiments of an NC system and an NC process according to the present invention are described in detail below with reference to the accompanying drawings. The present invention is not limited to these embodiments. First embodiment

[0010] Fig. Figure 1 is a diagram showing an embodiment of an NC system according to a first embodiment. An NC system 1 is connected to an amplifier 2. The amplifier 2 supplies a drive current to a motor 3. A load 4 is connected to the motor 3 as a drive target. The motor 3 and the load 4 are referred to as the "mechanical system 5". The mechanical system 5 has one or more drive shafts (hereinafter simply "shafts") which drive the same load 4. The motor 3 and the amplifier 2 are provided for each of the shafts.

[0011] The NC system 1 has a program analysis unit 10, a first interpolation unit 11, a pre-interpolation acceleration-deceleration processing unit 12, a second interpolation unit 13, a parameter change unit 14 and a filter unit 15.

[0012] The program analysis unit 10 analyzes an externally entered machining program 6 and outputs the analysis result as analysis data. The machining program 6 is designed to contain several command blocks. The machining program 6 defines at least one path for the drive target. The path defined by the machining program 6 is referred to as the "command path." The analysis data is the necessary information for the movement of each of the command blocks and includes the amount of movement of each shaft, the command frequency, and command information (e.g., G-code).

[0013] The first interpolation unit 11 generates and outputs interpolation data based on the analysis data. In addition to the data showing the amount of movement per control cycle, the interpolation data also contains information used to generate a calculated value for a combined velocity (described later), e.g., a target velocity of an endpoint.

[0014] The parameter change unit 14 monitors a state variable relating to the motor 3 while the motor 3 is being controlled and changes a parameter to drive the motor 3 based on the state variable and the analysis data while the motor 3 is being controlled.

[0015] In the first embodiment, the parameter to be changed by the parameter change unit 14 is, in particular, an acceleration, and the state variable is, in particular, a mass ratio. The mass ratio is a ratio of the mass of the mechanical system 5 to the mass of the motor 3. The mass of the motor 3 is already known. In this example, the mass ratio is estimated by the amplifier 2. The parameter change unit 14 receives the mass ratio from the amplifier 2. It is possible to use any method as a mass ratio estimation method, as long as the mass ratio is estimated while a machining program is being executed.For example, it is possible to use a method that employs recursive least squares, as described in JP 2000-346738A, or a mass-ratio estimation method that calculates the mass ratio from the ratio between acceleration and torque during acceleration or deceleration. In this example, the acceleration can be a negative value.

[0016] The pre-interpolation acceleration-deceleration processing unit 12 applies an acceleration-deceleration procedure to a tangential velocity along an instruction path (i.e., a combined velocity) based on the interpolation data and an acceleration (i.e., an acceleration setpoint / fixed acceleration value) input by the parameter change unit 14. Specifically, if the acceleration setpoint has been changed by the parameter change unit 14, the pre-interpolation acceleration-deceleration processing unit 12 calculates a combined velocity (i.e., the calculated value of a combined velocity) to accelerate or decelerate the motor 3 with the changed acceleration setpoint. The pre-interpolation acceleration-deceleration processing unit 12 outputs the calculated value of the combined velocity.

[0017] The second interpolation unit 13 interpolates the amount of motion of each of the shafts based on the interpolation data and the calculated value of the combined velocity, thereby generating one position command per control cycle. Specifically, the second interpolation unit 13 generates, for example, each of the position commands so that the combined velocity based on the position commands is equal to the calculated value of the combined velocity. In other words, the second interpolation unit 13 generates each of the position commands to drive the motor 3 at a velocity obtained using the acceleration-deceleration method.

[0018] Filter unit 15 applies a filtering procedure to the corresponding position commands to smooth the velocity curve based on each of the position commands. Filter unit 15 then outputs a position command to amplifier 2 after the filtering procedure has been performed. The filtering procedure can be implemented using any method as long as it can at least smooth the velocity curve. For example, a moving average filter can be used as the filtering procedure.

[0019] The amplifier 2 drives the motor 3 so that the motor position or the position of the load 4 corresponds to an entered position command.

[0020] Fig. Figure 2 is a flowchart describing the operation of the parameter change unit 14 in the first embodiment. The parameter change unit 14 can store the mass ratio. The mass ratio stored in the parameter change unit 14 is referred to as the "stored value of the mass ratio".

[0021] First, the parameter change unit 14 receives a mass ratio from amplifier 2 (step S1). The parameter change unit 14 then determines whether the received mass ratio corresponds to the stored mass ratio value (step S2). If the received mass ratio does not correspond to the stored mass ratio value (NO in step S2), the parameter change unit 14 executes a modification procedure to change the set velocity value (step S3). The parameter change unit 14 then stores the received mass ratio in overwrite mode as the stored mass ratio value (step S4) and executes step S1 again. If the received mass ratio corresponds to the stored mass ratio value (YES in step S2), the parameter change unit 14 skips steps S3 and S4.

[0022] Fig. Figure 3 is a flowchart that describes the change procedure in the first embodiment.

[0023] First, parameter change unit 14 determines whether the interpolation mode is set to "Pre-interpolation mode" (step S11). Setting the interpolation mode is described in processing program 6. By referencing the analysis data, parameter change unit 14 can determine whether the interpolation mode is set to "Pre-interpolation mode." "Pre-interpolation mode" is a mode for performing acceleration / deceleration control before interpolation. If the interpolation mode is not set to "Pre-interpolation mode" (NO in step S11), parameter change unit 14 terminates the change process.

[0024] If the interpolation mode is set to "Pre-interpolation mode" (YES in step S11), the parameter change unit 14 calculates an acceleration candidate value (step S12). An acceleration candidate value A is calculated, for example, using the following equation (1): A=A0*(J0 / J)

[0025] In this equation, J denotes a mass ratio of the current value (i.e., the mass ratio obtained by the execution of step S1). Furthermore, A0 denotes an acceleration reference value, and J0 a mass ratio when the acceleration reference value is set (that is, a mass ratio reference value). The acceleration reference value A0 and the mass ratio reference value J0 are pre-stored in the parameter change unit 14. It is also possible to provide an embodiment in which a table is pre-stored in the parameter change unit 14, mapping the corresponding mass ratios and accelerations to each other. The parameter change unit 14 accesses this table using the obtained mass ratio as a search key to calculate a candidate acceleration value.

[0026] The parameter change unit 14 then calculates a residual distance from the current position to a target position using analysis data obtained from the program analysis unit 10 and a calculated value of a combined velocity obtained from the pre-interpolation acceleration-deceleration processing unit 12 (S13). The target position is specified, for example, in the processing program 6 and is therefore described in the analysis data. The parameter change unit 14 calculates the distance Ld required for deceleration using the acceleration candidate value (step S14). The distance Ld required for deceleration is the distance needed to reduce the velocity at the current position to the velocity at the target position.

[0027] Next, parameter change unit 14 determines whether the remaining distance Lm is greater than the distance Ld required for deceleration (step S15). In other words, in step S15, parameter change unit 14 determines whether it is possible to move a drive target to the target position with the acceleration candidate value. If the remaining distance Lm is shorter than the distance Ld required for deceleration (NO in step S15), parameter change unit 14 terminates the change procedure. If the remaining distance Lm is greater than the distance Ld required for deceleration (YES in step S15), parameter change unit 14 outputs the acceleration candidate value as the acceleration setpoint to pre-interpolation acceleration-deceleration processing unit 12 (step S16) and then terminates the change procedure.

[0028] Fig. 4 and Fig. Figure 5 shows diagrams illustrating examples of combined speed curves. Solid lines 101 and 103 indicate a combined speed transition according to the first embodiment. Dashed lines 102 and 104 indicate a combined speed transition when the first embodiment is not used.

[0029] As indicated by the solid line 101, acceleration begins at the acceleration setpoint A1. At time T1, while accelerating, a change in the mass ratio is detected. In this example, the mass ratio decreases. Therefore, the parameter change unit 14 changes the acceleration setpoint A1 to A2, which is greater than A1. The pre-interpolation acceleration-deceleration processing unit 12 calculates a combined velocity value using the acceleration setpoint A2 at time T1 and thereafter. Therefore, the combined velocity calculated during acceleration forms a velocity curve with faster acceleration.This speed curve, for example, during the execution of machining program 6, in a case where the mass of a workpiece is greatly reduced due to cutting operations, determines the calculated value of the combined speed, as shown in . Fig. As shown in Figure 4, this is automatically generated. Compared to the case where the acceleration setpoint A1 is always used, this makes it possible to generate a position command with a greater time reduction effect. Similarly, a command with a greater time reduction effect can also be generated at constant speed and during deceleration.

[0030] As shown by the solid line 103 in Fig. When 5 is displayed, acceleration begins at a setpoint acceleration A3. The mass ratio is increased during acceleration, and at time T2, a change in the mass ratio is detected while accelerating. This causes the parameter change unit 14 to change the setpoint acceleration A3 to A4, which is smaller than A3. The pre-interpolation acceleration-deceleration processing unit 12 calculates a calculated value of the combined velocity using the setpoint acceleration A4 at time T2 and thereafter. Thus, while accelerating, the calculated value of the combined velocity forms a velocity curve with lower acceleration. This velocity curve, in a case where the mass is increased by replacing a light workpiece with a heavy one, generates the calculated value of the combined velocity, as shown in Fig. Figure 5 shows this. Thus, compared to the case where the acceleration setpoint A3 is always used, a command with higher vibration suppression and overload prevention effects can be generated. Similarly, a command with higher vibration suppression and overload prevention effects can also be generated at constant speed and during deceleration.

[0031] As described above, according to the first embodiment, the parameter change unit 14 modifies the acceleration of the motor 3 according to the mass ratio as a state variable of the motor 3. This makes it possible to reduce the cycle time if the mass of a workpiece is reduced during machining. Furthermore, it makes it possible to prevent the generation of vibrations and overload if the mass of a workpiece is increased during machining. That is to say, without having to change the acceleration once or repeatedly based on the results of trial runs of the machining program 6, it is possible to dynamically change the acceleration during the execution of the machining program 6.

[0032] Parameter change unit 14 calculates a candidate acceleration value based on the mass ratio and determines whether it is possible to move a drive target to a target position using the calculated candidate acceleration value. If parameter change unit 14 determines that it is possible to move a drive target to a target position using the calculated candidate acceleration value, it changes the setpoint acceleration to this candidate acceleration value. This prevents a drive target from being moved to a position beyond the target position.

[0033] The parameter change unit 14 receives the mass ratio of the mechanical system 5 as a state variable for changing the acceleration. It is also possible for the parameter change unit 14 to be configured such that the mass of the mechanical system 5 (or the load 4) is received by the amplifier 2 and converted into a mass ratio. It is also possible to configure the parameter change unit 14 to change the time constant instead of changing the acceleration.

[0034] The parameter change unit 14, as described here, calculates a candidate acceleration value according to equation (1). It is also possible to configure the parameter change unit 14 such that, when the mass ratio increases, it calculates a candidate acceleration value that is less than the target acceleration value at that time. It is also possible to configure the parameter change unit 14 such that, when the mass ratio decreases, it calculates a candidate acceleration value that is greater than the target acceleration value at that time. Furthermore, it is also possible to configure the parameter change unit 14 such that the target acceleration value changes in both cases, whether the mass ratio is increased or decreased.

[0035] If the NC system 1 drives several shafts synchronously, the parameter change unit 14 calculates a candidate acceleration value for each of the shafts. The parameter change unit 14 then uses the smallest of the candidate acceleration values ​​for each of the corresponding shafts to execute the change procedure. Second embodiment

[0036] Fig. Figure 6 is a diagram showing an embodiment of an NC system according to a second embodiment. In the description of the second and subsequent embodiments, components equivalent to those of the first embodiment are identified with the same designations and reference numerals, and superfluous descriptions of them are avoided.

[0037] An NC system 1a is connected to the amplifier 2. The amplifier 2 supplies a drive current to the motor 3, to which the load 4 is connected. The motor 3 and the load 4 form the mechanical system 5. The NC system 1a comprises the program analysis unit 10, the first interpolation unit 11, the pre-interpolation acceleration / deceleration processing unit 12, the second interpolation unit 13, a parameter change unit 14a, and a filter unit 15a.

[0038] The filter unit 15a is configured to externally modify the time constant (a fixed value of the time constant) of a filtering process. The parameter change unit 14a can modify the fixed value of the time constant according to a state variable. In this example, the state variable represents the mass ratio, just as in the first embodiment. When the fixed value of the time constant increases, the acceleration (more precisely, the absolute value of the acceleration) decreases. When the fixed value of the time constant decreases, the acceleration (more precisely, the absolute value of the acceleration) increases. As the mass ratio increases, the parameter change unit 14a calculates a new fixed value of the time constant such that, at that time, the time constant is greater than the fixed value of the time constant.When the mass ratio decreases, the parameter change unit 14a calculates a new fixed value of the time constant such that at that time the time constant is smaller than the fixed value of the time constant.

[0039] Fig. Figure 7 is a flowchart describing the operation of the parameter change unit 14a according to the second embodiment.

[0040] First, parameter change unit 14a determines whether the interpolation mode is set to "Pre-interpolation mode" (step S21). If the interpolation mode is set to "Pre-interpolation mode" (YES in step S21), operations from step S22 to step S26 are executed, each identical to steps S12 to step S16.

[0041] If the interpolation mode is not set to "Pre-interpolation mode" (NO in step S21), the parameter change unit 14a accesses a position command from the second interpolation unit 13 to determine whether the rotation of motor 3 is stopped (step S27). If the rotation of motor 3 is not stopped (NO in step S27), the parameter change unit 14a terminates the change procedure.

[0042] When the rotation of motor 3 is stopped (YES in step S27), the parameter change unit 14a calculates a fixed value of the time constant (step S28). A fixed value of the time constant tc is calculated, for example, by the following equation (2): tc=tc0*(J / J0)

[0043] In this equation, tc0 denotes a time constant reference value, which is a value set using the mass ratio reference value J0. The time constant reference value is predefined in parameter change unit 14a.

[0044] Then the parameter change unit 14a outputs the calculated fixed value of the time constant to the filter unit 15a (step S29) and then ends the change procedure.

[0045] As described above, according to the second embodiment, the parameter change unit 14a can change the acceleration by changing the time constant of the filtering process performed by the filter unit 15a.

[0046] In a case where the NC system 1a drives several shafts synchronously, the parameter change unit 14a calculates the defined value of the time constant tc for each of the shafts. The parameter change unit 14a then outputs the maximum value of the defined values ​​of the time constant tc for the corresponding shafts to the filter unit 15a. Third embodiment

[0047] Fig. Figure 8 is a diagram showing an embodiment of an NC system according to a third embodiment. An NC system 1b is connected to the amplifier 2. The amplifier 2 supplies a drive current to the motor 3, to which the load 4 is connected. The motor 3 and the load 4 form the mechanical system 5. The NC system 1b comprises the program analysis unit 10, the first interpolation unit 11, the pre-interpolation acceleration / deceleration processing unit 12, the second interpolation unit 13, a parameter change unit 14b, and the filter unit 15.

[0048] In the third embodiment, a current value output by amplifier 2 to motor 3 is used as a state variable for changing a parameter. The parameter change unit 14b converts the current value into a load value for motor 3. The load value of motor 3 is proportional to the square of the current value. The load value increases as the acceleration increases. Furthermore, the load value increases as the mass ratio increases. For example, attempting to drive the load 4 with a large mass at high acceleration will overload motor 3. If motor 3 is overloaded, it is possible that motor 3 or the mechanical system 5 will be damaged. In parameter change unit 14b, an overload threshold value Xth is predefined to determine whether motor 3 is overloaded. Upon detecting an overload, parameter change unit 14b changes the acceleration setpoint.

[0049] Fig. Figure 9 is a flowchart describing the operation of the parameter change unit 14b according to the third embodiment.

[0050] First, the parameter change unit 14b receives a current value from amplifier 2 (step S31). The parameter change unit 14b then calculates a load value X from the received current value (step S32). The parameter change unit 14b then determines whether the load value X is greater than the overload threshold value Xth (step S33). If the load value X is greater than the overload threshold value Xth (YES in step S33), the parameter change unit 14b performs the change procedure (step S34) and then repeats step S31. If the load value X is less than the overload threshold value Xth (NO in step S33), the parameter change unit 14b skips step S34.

[0051] The modification procedure in the third embodiment is carried out in the same way as in the first embodiment. In the modification procedure in the third embodiment, a candidate acceleration value is calculated that is at least less than the target acceleration value that was set immediately beforehand. It is also possible to use a predetermined value as the candidate acceleration value, which is set in such a way that it does not overload motor 3.

[0052] Conventionally, when an overload is detected, a procedure to stop the process is initiated. This increases the processing time. According to the third embodiment, the parameter change unit 14b modifies the acceleration setpoint according to the load value. According to the third embodiment, even if, for example, a light workpiece is replaced by a heavy one, the acceleration is changed while accelerating, before the motor 3 is overloaded. This makes it possible to prevent overloading, and the need to stop the process due to an overload is eliminated.

[0053] It is also possible to configure the system in such a way that, upon detection of an overload, the parameter change unit 14b changes the time constant of the filter procedure in the filter unit 15. Specifically, upon detection of an overload, the parameter change unit 14b changes the time constant to a higher value.

[0054] Furthermore, a configuration is possible in which, when the load value increases, the parameter change unit 14b changes the acceleration setpoint to a lower value. A configuration is also possible in which, when the load value decreases, the parameter change unit 14b changes the acceleration setpoint to a higher value. A further configuration is possible in which, when the load value increases, the parameter change unit 14b changes the time constant to a higher value. It is also possible that, when the load value decreases, the parameter change unit 14b changes the time constant to a lower value. Fourth embodiment

[0055] Fig. Figure 10 is a diagram showing an embodiment of an NC system according to a fourth embodiment. An NC system 1c is connected to the amplifier 2c. The amplifier 2c supplies a drive current to the motor 3, to which the load 4 is connected. The motor 3 and the load 4 form the mechanical system 5. The NC system 1c comprises the program analysis unit 10, the first interpolation unit 11, the pre-interpolation acceleration / deceleration processing unit 12, the second interpolation unit 13, a parameter change unit 14c, and the filter unit 15.

[0056] In the fourth embodiment, an acceleration-deceleration factor is used as a state variable to change the acceleration setpoint. In this example, amplifier 2c calculates and outputs an acceleration-deceleration factor. Upon detecting a change in the acceleration-deceleration factor, the parameter change unit 14c executes the change procedure. It is also possible to configure the system in which the acceleration-deceleration factor is input by a device other than amplifier 2c. For example, a user can manually input the acceleration-deceleration factor via a control panel.

[0057] The modification procedure in the fourth embodiment is carried out in the same way as in the first embodiment. In the modification procedure in the fourth embodiment, the parameter modification unit 14c multiplies the acceleration reference value A0 by the acceleration-deceleration factor to define the resulting value as an acceleration candidate value.

[0058] As described above, according to the fourth embodiment, the parameter change unit 14c modifies the acceleration to a value obtained by multiplying a predetermined acceleration reference value by an externally input acceleration-deceleration factor. This calculation makes it possible to change the acceleration according to the acceleration-deceleration factor even while the machining program 6 is executing.

[0059] It is also possible to configure the parameter change unit 14c in such a way that it modifies the time constant of the filtering process in filter unit 15 according to the acceleration-deceleration factor. For example, if the value of the acceleration-deceleration factor is greater than 1, the parameter change unit 14c changes the time constant to a value that is less than the time constant at that time. As another example, if the value of the acceleration-deceleration factor is less than 1, the parameter change unit 14c changes the time constant to a value that is greater than the time constant at that time. Furthermore, it is also possible to configure the parameter change unit 14c in such a way that a time constant factor is externally input, and the parameter change unit 14c then modifies the time constant of the filtering process in filter unit 15 according to this time constant factor.This means that the parameter change unit 14c calculates a new time constant based on the externally input parameter and the time constant that was set at that time, and then updates the time constant to the new time constant that was set at that time.

[0060] Furthermore, an embodiment is also possible in which at least two types of state variables, consisting of the mass ratio, the current value of motor 3, and the acceleration-deceleration factor, are input into the parameter change unit 14c. In particular, a determination condition and a priority are defined for each type of state variable. Step S2 corresponds to a determination condition for the mass ratio. Step S33 corresponds to a determination condition for the current value. A determination condition for the acceleration-deceleration factor is that the parameter change unit 14c detects a change in the acceleration-deceleration factor. It is possible that, if corresponding determination conditions for two or more types of state variables are met simultaneously, the parameter change unit 14c changes the acceleration or the time constant according to the state variable with the highest priority.In a case where a determination condition for the mass ratio of mechanical system 5 and a determination condition for the current value are simultaneously satisfied, for example, if it is desirable to assign a higher priority to stable operation, the acceleration or the time constant is changed based on the current value. This allows the vibration suppression and overload prevention effects to be maintained. The acceleration is then changed according to the mass ratio of mechanical system 5, and thus the time reduction effect can be achieved. Fifth embodiment

[0061] Fig.Figure 11 is a diagram showing an embodiment of an NC system according to a fifth embodiment. An NC system 1d is connected to the amplifier 2. The amplifier 2 supplies a drive current to the motor 3, to which the load 4 is connected. The motor 3 and the load 4 form the mechanical system 5. The NC system 1d comprises the program analysis unit 10, the first interpolation unit 11, the pre-interpolation acceleration / deceleration processing unit 12, the second interpolation unit 13, a parameter change unit 14d, and the filter unit 15.

[0062] In the fifth embodiment, the parameter change unit 14d can execute a reset procedure when a specific external signal is input to the parameter change unit 14d or when it reads a specific auxiliary program instruction. The reset procedure is a method for resetting the acceleration setpoint to a predetermined value. Any signal can be used as the external signal for the reset procedure, such as a reset signal, a signal from a single block, or a feed enable signal. An auxiliary program instruction for the reset procedure is specified in the machining program 6. The program analysis unit 10 writes the auxiliary program instruction specified in the machining program 6 into the analysis data. The parameter change unit 14d can read the auxiliary program instruction from the analysis data.

[0063] For example, if an auxiliary command is issued to replace a tool, the mass changes as a result of the tool replacement. Therefore, at the time of the next operation, the mass is estimated so that the acceleration is changed. The acceleration used in the operation where the mass is estimated is the acceleration setpoint before the change was performed. Therefore, there is a possibility of an overload or fluctuation depending on the acceleration setpoint. According to the fifth embodiment, when a command to replace a tool is issued, the parameter change unit 14d determines whether the reset procedure is being executed based on an auxiliary command issued along with the tool replacement command. If the parameter change unit 14d determines that the reset procedure is being executed, it changes the acceleration to the predetermined acceleration.An acceleration is predetermined, which is known in advance to cause no vibrations or overload. This makes it possible to suppress overload and fluctuations at the time of tool replacement.

[0064] It is also possible to configure the parameter change unit 14d in such a way that it performs a time constant reset procedure when a specific external signal is input into the parameter change unit 14d or when it reads a specific utility program instruction. The time constant reset procedure is a method for resetting the fixed value of the time constant to a predetermined value.

[0065] Another configuration is possible in which, when the parameter change unit 14d reads a specific operating command, it stops changing the acceleration or time constant during the operating period according to that command. For example, there are processes such as synchronized tapping or thread cutting where a change in acceleration is undesirable. In this case, a user can add auxiliary code to stop the acceleration change before such a process, as described. After reading the auxiliary code, the parameter change unit 14d stops or starts the acceleration change.

[0066] Furthermore, it is also possible that a specific operating command is configured such that it is defined in the processing program 6 or predefined in the parameter change unit 14d to stop the changing of the acceleration or the time constant during the execution period of the specific operating command. After reading the specific operating command, the parameter change unit 14d stops the changing of the acceleration or the time constant.

[0067] Each functional block comprising the NC system according to the first to fifth embodiments can be implemented either by hardware or software, or a combination of both. “Implementing each of the functional blocks by software” means that in a computer comprising an arithmetic unit and a memory unit, a program module corresponding to a component in the memory unit is stored, and the program module stored in the memory unit is executed by the arithmetic unit, thereby implementing a function of the component. List of reference symbols 1, 1a, 1b, 1c, 1d NC system, 2, 2c amplifiers, 3 Motor, 4 Last, 5 mechanical system, 6 Editing program, 10 Program analysis unit, 11 first interpolation unit, 12 Pre-interpolation acceleration-deceleration processing unit, 13 second interpolation unit, 14, 14a, 14b, 14c, 14d Parameter change unit, 15, 15a Filter unit, 101, 103 solid line, 102, 104 dashed line.

Claims

[1] A numerical control system (1; 1a; 1b; 1c, 1d) that controls a motor (3) according to a program (6) that defines a path for a drive target of the motor (3), the numerical control system (1; 1a; 1b; 1c, 1d) comprising: an acceleration-deceleration processing unit (12), which, based on an acceleration command value at that time, applies an acceleration-deceleration method to a speed at which the drive target is moved on the path, and which outputs a speed obtained by the acceleration-deceleration method; an interpolation unit (11, 13), which calculates a position command per control cycle for the motor (3) in order to operate the motor (3) at the speed obtained by the acceleration-deceleration method; a change unit (14; 14a; 14b; 14c, 14d), which monitors a state variable related to the motor (3) while the motor (3) is controlled, and which changes the acceleration setpoint based on the state variable while the motor (3) is controlled, where the change unit (14; 14a; 14b; 14c, 14d) reads out an acceleration candidate value based on the state variable, obtains a distance required to reduce the speed of the drive target from a current value to a speed at the target position specified in the program (6) using the acceleration candidate value, determines whether it is possible to move the drive target to a target position using the acceleration candidate value based on the required distance and a distance between the current position of the drive target and the target position, changes the acceleration target value to the acceleration candidate value if it has been determined that it is possible for the drive target to be moved to the target position using the acceleration candidate value, and leaves the acceleration command value unchanged if it is determined that it is impossible for the drive target to be moved to the target position with the acceleration candidate value. [2] Numerical control system (1) according to claim 1, wherein the state variable is a mass ratio and the change unit (14) changes the acceleration setpoint to a lower value if the mass ratio has been changed to a higher value, or changes the acceleration setpoint to a higher value if the mass ratio has been changed to a lower value. [3] Numerical control system (1b) according to claim 1, wherein the state variable is a current value of the motor (3) and the change unit (14b) calculates a load value of the motor (3) based on the current value and, if the load value has been changed to a higher value, the changing unit (14b) changes the acceleration setpoint to a lower value, or, if the load value has been changed to a smaller value, the changing unit (14b) changes the acceleration setpoint to a higher value. [4] Numerical control system (1b) according to claim 1, wherein the state variable is a current value of the motor (3) and the change unit (14b) calculates a load value of the motor (3) based on the current value, and when the load value exceeds a predetermined overload threshold, changes the acceleration setpoint to a smaller value than the acceleration setpoint at the time at which the load value was exceeded. [5] Numerical control system (1c) according to claim 1, wherein the state variable is an acceleration-deceleration factor that is entered externally, and the changing unit (14c) changes the acceleration target value to a value obtained by multiplying a predetermined acceleration reference value by the acceleration-deceleration factor. [6] Numerical control system (1d) according to claim 1, wherein the state variables include at least two types of a mass ratio, an acceleration-deceleration factor which is input externally, and a current value of the motor (3), whose priorities are defined for each of the species and whose determination conditions are defined for each of the species, and wherein the changing unit (14d) changes the acceleration setpoint according to the type of state variable with higher priority when corresponding determination conditions for a plurality of state variables are met simultaneously. [7] A numerical control system (1a) that controls a motor (3) according to a program (6) that defines a path for a drive target of the motor (3), the numerical control system (1a) comprising: an acceleration-deceleration processing unit (12) that applies an acceleration-deceleration process to a speed at which the drive target is moved on the path based on an acceleration command value at that time, and that outputs a speed obtained after the acceleration-deceleration process; an interpolation unit (11, 13) which calculates a position command per control cycle for the motor (3) in order to operate the motor (3) at the speed obtained by the acceleration-deceleration method; a filter unit (15a) which applies a filtering method to the position command per control cycle; and a change unit (14a), which monitors a state variable related to the motor (3) while the motor (3) is controlled, and which determines whether the interpolation mode is set to “pre-interpolation mode”, changes the acceleration setpoint based on the state variable while controlling the motor (3) when the interpolation mode is set to the “pre-interpolation mode”, and which changes an acceleration by changing a time constant of the filtering method when the z interpolation mode is not set to the “pre-interpolation mode” wherein the changing unit (14a), when the interpolation mode is set to the “pre-interpolation mode”, reads out an acceleration candidate value based on the state variable, obtains a distance required to reduce the speed of the drive target from a current value to a speed at the target position specified in the program (6) using the acceleration candidate value, determines whether it is possible to move the drive target to a target position using the acceleration candidate value based on the required distance and a distance between the current position of the drive target and the target position, changes the acceleration target value to the acceleration candidate value if it has been determined that it is possible for the drive target to be moved to the target position using the acceleration candidate value, and leaves the acceleration target value unchanged if it is determined that it is impossible for the drive target to be moved to the target position with the acceleration candidate value; or wherein the changing unit (14a), when the interpolation mode is not set to the "pre-interpolation mode", changes a time constant of the filtering method based on the state quantity and then outputs it to the filtering unit (15a). [8] Numerical control system (1a) according to claim 7, wherein the state variable is a mass ratio and the change unit (14a) the time constant changes to a higher value when the mass ratio has been changed to a higher value, or the time constant changes to a lower value when the mass ratio is changed to a lower value. [9] Numerical control system (1a) according to claim 7, wherein the state variable is a current value of the motor (3) and the change unit (14a) calculates a load value of the motor (3) based on the current value and the change unit (14a) the time constant changes to a higher value when the load value has been changed to a higher value, or the time constant changes to a lower value when the load value has been changed to a lower value. [10] Numerical control system (1a) according to claim 7, wherein the state variable is a current value of the motor (3) and the change unit (14a) calculates a load value of the motor (3) based on the current value and the time constant, when the load value exceeds a predetermined overload threshold, changes to a value that is higher than the time constant at the time at which the load value was exceeded. [11] Numerical control system (1a) according to claim 7, wherein the state variable is an externally entered parameter and the change unit (14a) a new time constant is calculated based on the time constant and the parameter and the time constant before the calculation changes to the calculated new time constant. [12] Numerical control system (1a) according to claim 7, wherein the state variable consists of at least two types of a mass ratio, an acceleration-deceleration factor which is input externally and a current value of the motor (3), whose priority is defined for each of the species, and whose determination conditions are defined for each of the species, and wherein the changing unit (14a) changes the time constant according to a type of state variable with higher priority when corresponding determination conditions for a plurality of types of state variables are satisfied simultaneously. [13] Numerical control system (1; 1b; 1c, 1d) according to claim 1, wherein the changing unit (14; 14b; 14c, 14d) changes the acceleration set to a predetermined target value when the changing unit (14; 14b; 14c, 14d) receives an external signal or reads a preset program code stored in the program (6). [14] Numerical control system (1a) according to claim 7, wherein, when the interpolation mode is not set to the "pre-interpolation mode", and the changing unit (14a) receives an external signal or reads a preset program code stored in the program (6), the changing unit (14a) changes the time constant to a predetermined value. [15] Numerical control system (1; 1b; 1c, 1d) according to one of claims 1 to 14, wherein the changing unit (14; 14b; 14c, 14d) stops an operation of changing the acceleration command value when the changing unit (14; 14b; 14c, 14d) reads a preset program code stored in the program (6). [16] A numerical control method for a numerical control system (1; 1b; 1c, 1d) for controlling a motor (3) according to a program (6) specifying a path for a drive target of the motor (3), the numerical control method comprising: a first step of applying an acceleration-deceleration process to a speed at which the drive target is moved on the path based on an acceleration command value at that time, and outputting a speed obtained after the acceleration-deceleration process; a second step of calculating a position command per control cycle for the motor (3) to operate the motor (3) at the speed obtained by the acceleration-deceleration method; a third step of monitoring a state variable associated with the motor (3) while the motor (3) is controlled; and a fourth step of changing the acceleration command value based on the state quantity while controlling the motor (3); The fourth step includes: a step of reading out an acceleration candidate value based on the state variable, a step of obtaining a distance required for reducing the speed of the drive target from a current value to a speed at the target position specified in the program (6) using the acceleration candidate value, a step of determining whether the drive target is able to be moved to the target position with the acceleration candidate value based on the required distance and a distance between the current position of the drive target and the target position, and a step of Changing the acceleration command value to the acceleration candidate value when it is determined that it is possible for the drive target to be moved to the target position with the acceleration candidate value, and leaving the acceleration command value unchanged when it is determined that it is impossible for the drive target to be moved to the target position with the acceleration candidate value.

Citation Information

Patent Citations

  • Device for estimating machine constant of driving machine

    JP2000346738A

  • Numerical control equipment controlling machine tool having function of estimating weight of moving part

    JP2010211467A

  • Collision prevention device built into a numerically controlled machine

    DE102009048252A1