NUMERICAL CONTROLLER

20170185073 ยท 2017-06-29

Assignee

Inventors

Cpc classification

International classification

Abstract

A numerical controller of the present invention includes a parameter setting unit which accepts settings of punch press parameters, an NC parameter calculating unit which calculates an axis control parameter in punch pressing based on the punch press parameters, a parameter storage unit which stores the punch press parameters and the axis control parameter, a command analyzing unit which analyzes a command block in the program to generate movement command data, an interpolating unit which generates interpolation data based on the movement command data, and an accelerating and decelerating unit which calculates a linear acceleration and deceleration time constant and a bell-shaped acceleration and deceleration time constant for use in axis control based on the punch press parameters, the axis control parameter, and a feed rate specified by the command block and performs post-interpolation acceleration or deceleration processing based on each of the calculated acceleration and deceleration time constants.

Claims

1. A numerical controller for controlling a machine which performs punch pressing based on a program, the numerical controller comprising: a parameter setting unit which accepts settings of punch press parameters regarding punch pressing; an NC parameter calculating unit which calculates an axis control parameter in punch pressing based on the punch press parameters accepted by the parameter setting unit; a parameter storage unit which stores the punch press parameters and the axis control parameter; a command analyzing unit which reads and analyzes a command block from the program to generate movement command data and outputs the generated movement command data; an interpolating unit which performs interpolation processing based on the movement command data to generate interpolation data and outputs the generated interpolation data; an accelerating and decelerating unit which calculates a linear acceleration and deceleration time constant and a bell-shaped acceleration and deceleration time constant for use in axis control based on the punch press parameters and the axis control parameter stored in the parameter storage unit and a feed rate specified by the command block, performs post-interpolation acceleration or deceleration processing on the interpolation data based on the calculated linear acceleration and deceleration time constant and the bell-shaped acceleration and deceleration time constant, and outputs the interpolation data to which the post-interpolation acceleration or deceleration processing is applied; and a servo control unit which controls an axis of the machine based on the interpolation data outputted from the accelerating and decelerating unit, the interpolation data to which the post-interpolation acceleration or deceleration processing is applied.

2. The numerical controller according to claim 1, wherein the punch press parameters include at least a time taken for one punch, a reference pitch and a target hit rate associated therewith, a minimum pitch and a target hit rate associated therewith, and a maximum acceleration torque and a linear acceleration and deceleration time constant dependent on a structure of the machine.

3. The numerical controller according to claim 1, wherein the axis control parameter includes at least a torque waveform for adjusting the linear acceleration and deceleration time constant.

4. The numerical controller according to claim 1, wherein the accelerating and decelerating unit calculates the bell-shaped acceleration and deceleration time constant which is linear with respect to the linear acceleration and deceleration time constant.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other objects and features of the present invention will become apparent from the following description of exemplary embodiments with reference to the accompanying drawings in which:

[0017] FIG. 1 is a diagram depicting a relation between parameters for used in punch press controlled by a numerical controller of the present invention;

[0018] FIG. 2 is a diagram for depicting feed rate-torque characteristics of a servo motor;

[0019] FIG. 3 is a diagram for depicting a relation between acceleration torque and feed rate;

[0020] FIG. 4 is a diagram for depicting calculation of a bell-shaped acceleration and deceleration time constant when a movement amount is small and a table axis arrived speed is short of a command speed;

[0021] FIG. 5 is a diagram for depicting calculation of a bell-shaped acceleration and deceleration time constant when the movement amount is large and the table axis arrived speed is a command speed;

[0022] FIG. 6 is a functional block diagram of a numerical controller according to an embodiment of the present invention;

[0023] FIG. 7 is a flowchart of processing regarding parameter settings to be performed on the numerical controller of FIG. 6;

[0024] FIG. 8 is a flowchart of control processing at the time of punch pressing to be performed on the numerical controller of FIG. 6;

[0025] FIG. 9 is a diagram for depicting settings of speed, acceleration and deceleration time constant, and position gain achieved by positioning with optimum acceleration in punch pressing in a prior art technique;

[0026] FIG. 10 is a diagram for depicting the technology disclosed in Japanese Patent Application Laid-Open No. 4-335410;

[0027] FIG. 11 is a diagram for depicting a problem raised upon applied the technology of Japanese Patent Application Laid-Open No. 4-335410 to punch pressing;

[0028] FIG. 12 is a diagram for depicting a problem when positioning with optimum acceleration in punch pressing in the prior art technique is used; and

[0029] FIG. 13 is a diagram depicting a linear acceleration and deceleration time constant and bell-shaped acceleration and deceleration time constants automatically calculated by the numerical controller of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0030] In the following, an embodiment of the present invention is described together with the drawings. First, each process in the numerical controller of the present invention is described.

Calculation of Table Axis Operation Time t From Target Hit Rate and Press Time

[0031] In the numerical controller of the present invention, from target hit rates and their associated reference and minimum pitches set by a machine manufacturer, a table axis operation time t (msec) capable of achieving each target hit rate is found. The table axis operation time t (msec) per press block in a processing program capable of achieving the target hit rates can be calculated by Equation 1 below, when a target reference hit rate is h (times/msec), an execution time per press block capable of achieving the target hit rate is t.sub.b (msec), and a time taken for one punch is t.sub.p (msec), as depicted in FIG. 1.

[00001] t b = 1 h , t = t b - t p , therefore , t = 1 h - t p [ Equation .Math. .Math. 1 ]

Relation Between Acceleration Torque and Acceleration

[0032] A relation between acceleration torque and acceleration of a servo motor is generally represented by Equation 2 below, and a relation between rotation speed and axis delivering speed of the motor is generally represented by Equation 3 below.

[00002] T a = V m 2 .Math. 60 1 t 1 ( J M + J L ) T a .Math. : .Math. acceleration .Math. .Math. torque .Math. .Math. ( Nm ) V m .Math. : .Math. motor .Math. .Math. rotation .Math. .Math. speed .Math. .Math. at .Math. .Math. rapid .Math. .Math. feed .Math. .Math. ( min - 1 ) t 1 .Math. : .Math. acceleration .Math. .Math. and .Math. .Math. deceleration .Math. .Math. time .Math. .Math. constant .Math. .Math. ( sec ) J m .Math. : .Math. rotor .Math. s .Math. .Math. moment .Math. .Math. of .Math. .Math. inertia .Math. .Math. ( kgm 2 ) J L .Math. : .Math. moment .Math. .Math. of .Math. .Math. inertia .Math. .Math. of .Math. .Math. load .Math. .Math. ( kgm 2 ) .Math. : .Math. mechanical .Math. .Math. efficiency [ Equation .Math. .Math. 2 ] Vm = V 1 P Z 1 Z 2 V .Math. : .Math. axis .Math. .Math. feed .Math. .Math. rate .Math. .Math. ( mm / min ) P .Math. : .Math. ball .Math. .Math. screw .Math. .Math. pitch Z 1 Z 2 .Math. : .Math. speed .Math. .Math. reduction .Math. .Math. ratio [ Equation .Math. .Math. 3 ]

[0033] Based on these Equations 2 and 3, the relation between acceleration torque and acceleration of the servo motor can be represented by Equation 4 below. Since the terms other than T.sub.a and t.sub.1 in this Equation 4 are constant terms defined by the specifications of the machine, it can be found that table axis acceleration V/t.sub.1 and the acceleration torque T.sub.a have a proportional relation.

[00003] Ta = V 1 P Z 1 Z 2 2 .Math. 60 1 t 1 ( J M + J L ) [ Equation .Math. .Math. 4 ]

Registration of Feed Rate-Torque Characteristics of Servo Motor

[0034] The servo motor has a predetermined feed rate-torque characteristics representing the relation between feed rate and torque (refer to FIG. 2). Features of these feed rate-torque characteristics (maximum acceleration torque T.sub.max, changing point F.sub.pc, and gradient A from the changing point) are registered in advance on a database so as to be linked to an allocated motor number of each servo motor. With the features of the feed rate-torque characteristics registered on the database in this manner, the feed rate-torque characteristics of each servo motor can be obtained only by designating a motor number. Note that for the use of a servo motor not registered on the database, the features of the feed rate-torque characteristics (maximum acceleration torque T.sub.max, changing point F.sub.pc, and gradient A from the changing point) may also be directly inputted. By allowing direct inputs, it is possible to flexibly support the use of a newly introduced servo motor, a servo motor of another manufacturer, and the like.

Calculation of Adjustment Torque Waveform for Linear Acceleration and Deceleration Time Constant

[0035] FIG. 3 depicts feed rate-torque characteristics of the servo motor. From FIG. 3, an upper-limit torque waveform of the feed rate-torque characteristics of the servo motor used in the punch press machine can be represented by Equation 5 below.

[00004] { l p ( f ) = T max f < F pc ( A .Math. : .Math. gradient ) l p ( f ) = Af + ( T max - AF pc ) f F pc [ Equation .Math. .Math. 5 ]

[0036] And, by using Equation 5 above and the maximum offset load torque (maximum acceleration torque) T.sub.a (Nm) determined from the structure of the machine, an adjustment torque waveform l(f) for linearly controlling the linear acceleration and deceleration time constant and a changing point F.sub.c (mm/min) of the waveform can be represented by Equations 6 and 7 below. Note that the adjustment torque waveform 1(f) is found from T.sub.a, the gradient A from the changing point F.sub.pc (mm/min) of l.sub.p(f), and a ratio X (%) with respect to the upper-limit torque waveform (this parameter is to prevent saturation of torque at the changing point F.sub.c onward).

[00005] { l ( f ) = T a when .Math. .Math. the .Math. .Math. feed .Math. .Math. rate .Math. .Math. f .Math. .Math. is .Math. equal .Math. .Math. to .Math. .Math. or .Math. .Math. smaller .Math. .Math. than .Math. .Math. F c l ( f ) = Af + X 100 .Math. ( T max - AF pc ) when .Math. .Math. the .Math. .Math. feed .Math. .Math. rate .Math. .Math. f is .Math. .Math. larger .Math. .Math. than .Math. .Math. F c [ Equation .Math. .Math. 6 ] F c = T a - X 100 .Math. ( T max - AF pc ) A [ Equation .Math. .Math. 7 ]

Calculation of Linear Acceleration and Deceleration Time Constant

[0037] The maximum toque T.sub.a at acceleration and deceleration and a maximum acceleration (linear acceleration and deceleration time constant t.sub.1m) are depend on the structure of the machine. However, since the upper-limit torque is decreased from the changing point F.sub.c of the adjustment torque waveform l(f), the linear acceleration and deceleration time constant has to be increased so that torque is not saturated. The linear acceleration and deceleration time constant t.sub.1 can be found by Equation 8 below, from the maximum torque T.sub.a, the adjustment torque waveform l(f), and the ratio X with respect to the upper-limit torque.

[00006] { t 1 = t 1 .Math. m when .Math. .Math. the .Math. .Math. feed .Math. .Math. rate .Math. .Math. f .Math. .Math. is .Math. equal .Math. .Math. to .Math. .Math. or .Math. .Math. smaller .Math. .Math. than .Math. .Math. F c t 1 = T a l ( f ) .Math. t 1 .Math. m when .Math. .Math. the .Math. .Math. feed .Math. .Math. rate .Math. .Math. f is .Math. .Math. larger .Math. .Math. than .Math. .Math. F c [ Equation .Math. .Math. 8 ]

Calculation of Bell-Shaped Acceleration and Deceleration Time Constants

[0038] Bell-shaped acceleration and deceleration time constants t.sub.2p and t.sub.2m are calculated from the above-calculated linear acceleration and deceleration time constant t.sub.1, the maximum allowable operation time t, and arrived speed. As depicted in FIG. 4, when a movement amount d is small and the table axis arrived speed is short of a command speed F, a bell-shaped acceleration and deceleration time constant t.sub.2 can be found as follows. That is, from FIG. 4, d=t.sub.0/2Ft.sub.0/2t.sub.1 holds. Therefore, when this equation is solved for a positioning time to only with the linear acceleration and deceleration time constant, t.sub.0=(4dt.sub.1/F) is obtained. Also, from t=t.sub.0+t.sub.2, t=(4dt.sub.1/F)+t.sub.2 is obtained. When this equation is solved for t.sub.2, t.sub.2=t(4dt.sub.1/F) is obtained, and therefore a bell-shaped acceleration and deceleration time constant with a reference pitch and a minimum pitch can be represented by Equation 9 below. Therefore, t.sub.2p and t.sub.2m can be calculated by Equation 10 below.

[00007] t 2 = t - 4 .Math. dt 1 F [ Equation .Math. .Math. 9 ] t 2 .Math. p = t - 4 .Math. d p .Math. t 1 F t 2 .Math. m = t - 4 .Math. d m .Math. t 1 F [ Equation .Math. .Math. 10 ]

[0039] Also, the bell-shaped acceleration and deceleration time constants t.sub.2p and t.sub.2m are calculated based on the above-described linear acceleration and deceleration time constant t.sub.1, maximum movable time t, and arrived speed. As depicted in FIG. 5, when the movement amount d is sufficiently large and the table axis arrived speed is the command speed F, the bell-shaped acceleration and deceleration time constant t.sub.2 can be represented by Equation 11 below. Therefore, t.sub.2p and t.sub.2m can be calculated by Equation 12 below.

[00008] t 2 = t - d F - t 1 [ Equation .Math. .Math. 11 ] t 2 .Math. p = t - d p F - t 1 t 2 .Math. m = t - d m F - t 1 [ Equation .Math. .Math. 12 ]

[0040] Then, with reference to the bell-shaped acceleration and deceleration time constants t.sub.2p and t.sub.2m with a table axis movement amount being the reference pitch d.sub.p and the minimum pitch d.sub.m, the bell-shaped acceleration and deceleration time constant is switched to the linear one in accordance with the table axis movement amount. An acceleration and deceleration time constant t.sub.2d (msec) with the movement amount d (mm) is calculated by Equation 13 below.

[00009] { t 2 .Math. d = t 2 .Math. m ( when .Math. .Math. d < d m ) t 2 .Math. d = t 2 .Math. p - t 2 .Math. m d p - d m .Math. d ( when .Math. .Math. d m d d p ) t 2 .Math. d = t 2 .Math. p ( when .Math. .Math. d p < d ) [ Equation .Math. .Math. 13 ]

[0041] In the numerical controller of the present invention, the linear acceleration and deceleration time constant t.sub.1 and the bell-shaped acceleration and deceleration time constant t.sub.2d are calculated through the above operation process, and by using these values, table axis movement control is performed.

[0042] FIG. 6 is a functional block diagram of the numerical controller according to an embodiment of the present invention. A numerical controller 1 of the present embodiment includes a parameter setting unit 10, an NC parameter calculating unit 11, a parameter storage unit 12, a command analyzing unit 13, an interpolating unit 14, an accelerating and decelerating unit 15, and a servo control unit 16.

[0043] The parameter setting unit 10 accepts settings of various parameters for use in processing by a punch press inputted based on operator's operation from a display/MDI unit (not depicted) included in the numerical controller 1. Examples of various parameters of the punch press include the time t.sub.p taken for one punch, the reference pitch d.sub.p and the target hit rate h.sub.p associated therewith, the minimum pitch d.sub.m and the target hit rate h.sub.m associated therewith, and the maximum acceleration torque T.sub.a and the linear acceleration and deceleration time constant t.sub.1m dependent on the structure of the machine.

[0044] Also, the parameter setting unit 10 accepts, as required, settings of the feed rate-torque characteristics of the servo motor based on the operator's operation.

[0045] Based on the settings of the various parameters for use in processing by the punch press set by the parameter setting unit 10, the NC parameter calculating unit 11 calculates the adjustment torque waveform l(f) for the linear acceleration and deceleration time constant by following the above-described calculation procedure, and stores, in the parameter storage unit 12, the calculated adjustment torque waveform l(f) for the linear acceleration and deceleration time constant together with the various parameters set by the parameter setting unit 10.

[0046] The command analyzing unit 13 analyzes a block of a process command included in a program read from memory not depicted to generate data regarding a movement command, and outputs the generated data regarding the movement command to the interpolating unit 14.

[0047] Based on the data regarding the movement command input from the command analyzing unit 13, the interpolating unit 14 generates interpolation data obtained by interpolation calculation of points on a command route specified by the data regarding the movement command at an interpolation cycle, and outputs the generated interpolation data and an arrived speed included in the data regarding the movement command to the accelerating and decelerating unit 15.

[0048] Based on the arrived speed input from the interpolating unit 14, the various parameters stored in the parameter storage unit 12, and the adjustment torque waveform l(f) for the linear acceleration and deceleration time constant, the accelerating and decelerating unit 15 calculates the linear acceleration and deceleration time constant t.sub.1 and the bell-shaped acceleration and deceleration time constants t.sub.2p and tem, and further calculates the bell-shaped acceleration and deceleration time constant t.sub.2d. Then, based on the calculated linear acceleration and deceleration time constant t.sub.1 and the bell-shaped acceleration and deceleration time constant t.sub.2d , the accelerating and decelerating unit 15 performs post-interpolation acceleration or deceleration processing on the interpolation data input from the interpolating unit 14 to calculate a speed for each drive axis at every interpolation cycle, and outputs, to the servo control unit 16, interpolation data after acceleration or deceleration processing to which the calculation result is applied.

[0049] Then, based on the output from the accelerating and decelerating unit 15, the servo control unit 16 controls the servo motor 2 which controls each axis to be controlled.

[0050] FIG. 7 is a flowchart of processing regarding parameter settings to be performed on the numerical controller 1 of the present invention.

[0051] [Step SA01] The parameter setting unit 10 accepts various parameters, by operator's operation, for use in processing by a punch press such as the time t.sub.p taken for one punch, the reference pitch d.sub.p and the target hit rate h.sub.p associated therewith, and the minimum pitch d.sub.m and the target hit rate h.sub.m associated therewith, and settings such as the maximum acceleration torque T.sub.a and the linear acceleration and deceleration time constant t.sub.1m dependent on the structure of the machine, and then outputs these parameters and settings to the NC parameter calculating unit 11.

[0052] [Step SA02] The parameter setting unit 10 accepts, as required, settings of the feed rate-torque characteristics of the servo motor by operator's operation, and outputs the settings to the NC parameter calculating unit 11.

[0053] [Step SA03] The NC parameter calculating unit 11 calculates the adjustment torque waveform l(f) for the linear acceleration and deceleration time constant based on the various setting values set by the operator at steps SA01 and SA02, and stores the calculated adjustment torque waveform l(f) for the linear acceleration and deceleration time constant in the parameter storage unit 12 together with the various setting values set at steps SA01 and SA02.

[0054] FIG. 8 is a flowchart of a control process effected at the time of punch pressing to be performed on the numerical controller 1 of the present invention.

[0055] [Step SB01] The command analyzing unit 13 reads a block from a program stored in memory not depicted.

[0056] [Step SB02] The command analyzing unit 13 analyzes the block read at step SB01 to generate data regarding a movement command, and outputs the generated data regarding the movement command to the interpolating unit 14.

[0057] [Step SB03] The interpolating unit 14 performs interpolation processing on the data regarding the movement command generated at step SB02 to generate interpolation data, and outputs the generated interpolation data and a feed rate (arrived speed) specified by the data regarding the movement command to the accelerating and decelerating unit 15.

[0058] [Step SB04] The accelerating and decelerating unit 15 calculates the linear acceleration and deceleration time constant t.sub.1 based on the arrived speed input from the interpolating unit 14, the various parameters stored in the parameter storage unit 12, and the adjustment torque waveform l(f) for the linear acceleration and deceleration time constant.

[0059] [Step SB05] The accelerating and decelerating unit 15 calculates the bell-shaped acceleration and deceleration time constants t.sub.2p and t.sub.2m based on the linear acceleration and deceleration time constant t.sub.1 calculated at step SB04 and the various parameters stored in the parameter storage unit 12.

[0060] [Step SB06] The accelerating and decelerating unit 15 determines whether the bell-shaped acceleration and deceleration time constants t.sub.2p and t.sub.2m calculated at step SB05 are both equal to or larger than 0. When both are equal to or larger than 0, the procedure proceeds to step SB08. When either one of them is smaller than 0, the procedure proceeds to step SB07.

[0061] [Step SB07] The accelerating and decelerating unit 15 outputs an alert that a target hit rate cannot be achieved, and interrupts the processing.

[0062] [Step SB08] The accelerating and decelerating unit 15 calculates the bell-shaped acceleration and deceleration time constants t.sub.2d based on the bell-shaped acceleration and deceleration time constants t.sub.2p and t.sub.2m calculated at step SB05 and the various parameters stored in the parameter storage unit 12.

[0063] [Step SB09] The accelerating and decelerating unit 15 performs post-interpolation acceleration or deceleration processing on the interpolation data input from the interpolating unit 14 based on the linear acceleration and deceleration time constant t.sub.1 calculated at step SB04 and the bell-shaped acceleration and deceleration time constant t.sub.2d calculated at step SB08, and outputs the processing result to the servo control unit 16.

[0064] [Step SB10] The servo control unit 16 controls the servo motor 2 which controls each axis to be controlled, based on the output from the accelerating and decelerating unit 15.

[0065] [Step SB11] Whether the program has ended is determined. If the program has ended, the processing ends. If the program has not ended, the procedure proceeds to step SB01.

[0066] While the embodiment of the present invention has been described above, the present invention is not restricted to the examples of the above-described embodiment, and can be implemented by other embodiments by adding modifications as appropriate.