Numerical controller

10549369 ยท 2020-02-04

Assignee

Inventors

Cpc classification

International classification

Abstract

The numerical controller creates a machining path on which a wire electrode is moved by analyzing blocks of a machining program, and creates interpolation data indicating an amount of movement for each interpolation period on the machining path. Further, the numerical controller calculates a length of the wire electrode used for machining (machined surface length) for each interpolation period, calculates a consumption amount of the wire electrode for each interpolation period, calculates a compensation amount for compensating the amount of movement based on the interpolation data, on the basis of the calculated consumption amount and compensates the amount of movement indicated by the interpolation data, based on the calculated compensation amount.

Claims

1. A numerical controller for controlling a wire electric discharge machine based on a machining program to move a wire electrode with respect to a workpiece, thereby machining the workpiece using the wire electrode, the numerical controller comprising: a processor configured to: create a machining path to move the wire electrode by analyzing blocks of the machining program; create interpolation data indicating an amount of movement for each interpolation period on the machining path based on the machining path; calculate a machined surface length corresponding to a length of the workpiece to be machined by the wire electrode for each interpolation period, the machined surface length calculated based on a thickness of the workpiece and an angle of the wire electrode relative to the workpiece; calculate a consumption amount of the wire electrode for each interpolation period based on the machined surface length for each interpolation period; and calculate a compensation amount for compensating the amount of movement according to the interpolation data based on the consumption amount of the wire electrode for each interpolation period, wherein the wire electrode is moved on the basis of the amount of movement based on the interpolation data that is compensated by the compensation amount.

2. The numerical controller according to claim 1, wherein the wire electric discharge machine includes an upper guide and a lower guide supporting the wire electrode, and the compensation amount corresponds to compensation amounts of amounts of movement of the upper guide and the lower guide for each interpolation period.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a diagram illustrating an outline of a wire electrode compensation method of the invention;

(2) FIG. 2 is a schematic hardware configuration diagram of a numerical controller according to an embodiment of the invention;

(3) FIG. 3 is a schematic function block diagram of the numerical controller according to the embodiment of the invention;

(4) FIG. 4 is a diagram for description of a method of calculating a machined surface length h.sub.i by the numerical controller according to the embodiment of the invention;

(5) FIG. 5 is a diagram for description of a method of calculating a compensation amount D by the numerical controller according to the embodiment of the invention;

(6) FIG. 6 is a diagram for description of a method of calculating an upper guide compensation amount and a lower guide compensation amount by the numerical controller according to the embodiment of the invention;

(7) FIG. 7 is a diagram for description of a problem that an uncut portion is generated due to wire electrode consumption;

(8) FIG. 8 is a diagram for description of a method of solving an uncut portion problem due to wire electrode consumption according to a conventional technology;

(9) FIG. 9 is a diagram (1) for description of an uncut portion problem due to wire electrode consumption which could not be solved by a conventional technology;

(10) FIG. 10A and FIG. 10B are diagrams (2) for description of an uncut portion problem due to wire electrode consumption which could not be solved by a conventional technology; and

(11) FIG. 11 is a diagram (3) for description of an uncut portion problem: due to wire electrode consumption which could not be solved by a conventional technology,

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

(12) FIG. 2 is a hardware configuration diagram illustrating a main part of a numerical controller according to an embodiment of the invention.

(13) A central processing unit (CPU) 11 included in a numerical controller 1 is a processor that controls the numerical controller 1 as a whole. The CPU 11 reads a system program stored in a read only memory (ROM) 12 via a bus 20, and controls the entire numerical controller 1 according to the system program. A random access memory (RAM) 13 stores temporary calculation data or display data, various data input by an operator via a display/manual data input (MDI) unit 70 described below, etc.

(14) A nonvolatile memory 14 is configured as a memory maintained in a storage state even when a power supply of the numerical controller 1 is turned OFF, for example, by being backed up by a battery (not illustrated). The nonvolatile memory 14 stores a machining program read via an interface 15 or a machining program input via the display/MDI unit 70 described below. The nonvolatile memory 14 further stores a machining program operation machining program, etc. used to execute the machining program, and these programs are developed in the RAM 13 at the time of execution. In addition, various system programs (including a system program of wire electrode compensation) necessary to control a wire electric discharge machine are written to the ROM 12 in advance.

(15) The interface 15 is an interface for connecting the numerical controller 1 to an external device 72 such as an adapter. A machining program, various parameters, etc. are read from the external device 72 side. In addition, a machining program edited in the numerical controller 1 can be stored in external storage means via the external device 72. A programmable machine controller (PMC) 16 outputs a signal to a peripheral device of the machining machine (for example, an actuator such as a robot hand for tool exchange) via an input/output (I/O) unit. 17 to control the peripheral device using a sequence program built in the numerical controller 1. In addition, the PMC 16 receives signals from various switches, etc. of an operator's panel provided in a main body of the machining machine, performs necessary signal processing, and then passes the signals to the CPU 11.

(16) The display/MDI unit 70 is a manual data input device including a display, a keyboard, etc. An interface 18 receives a command and data from the keyboard of the display/MDI unit 70 and passes the command and data to the CPU 11. An interface 19 is connected to an operator's panel 71 having a manual pulse generator, etc. used to manually drive each axis.

(17) An axis control circuit. 30 for controlling an axis included in the machining machine receives a movement command amount of the axis from the CPU 11, and outputs a command for the axis to a servo amplifier 40. The servo amplifier 40 receives this command, and drives a servomotor 50 that moves the axis included in the machining machine. The servomotor 50 of the axis incorporates a position/speed detector, and feeds back a position/speed feedback signal from the position/speed detector to the axis control circuit 30, thereby performing feedback control of a position/speed. In the hardware configuration diagram of FIG. 2, only one axis control circuit 30, one servo amplifier 40, and one servomotor 50 are illustrated. However, in practice, the number of axis control circuits 30, the number of servo amplifiers 40, and the number of servomotors 50 are the same as the number of axes included in the machining machine, respectively. For example, in the case of the numerical controller that controls the wire electric discharge machine of the present embodiment, the axis control circuits 30, the servo amplifiers 40, and the servomotors 50 are prepared to control an X axis, a Y axis, a Z axis, a U axis, a V axis, etc.

(18) FIG. 3 is a schematic function block diagram of the numerical controller according to the embodiment of the invention in a case in which a system program for implementing wire electrode compensation function in consideration of a machined surface length is mounted on the numerical controller 1 illustrated in FIG. 2.

(19) Each function block illustrated in FIG. 3 is implemented when the CPU 11 included in the numerical controller 1 illustrated in FIG. 2 executes a system program necessary to control the wire electric discharge machine and controls an operation of each unit of the numerical controller 1. The numerical controller 1 of the present embodiment includes a machining path creation unit 100, an interpolation unit 110, a machined surface length calculation unit 120, an electrode consumption amount calculation unit 130, a compensation amount calculation unit 140, a movement pulse addition unit 150, a coordinate update unit 160, and a servo control unit 170.

(20) The machining path creation unit 100 successively reads and analyzes blocks that command operation of the wire electric discharge machine to be controlled from a machining program 200 stored in a memory (not illustrated), and creates a machining path used for machining of a workpiece, based on an analysis result. Since a program path commanded by each block of the machining program 200 indicates a shape of the workpiece to be machined, the machining path creation unit 100 creates a machining path in which a diameter of a wire electrode and a gap amount between the wire electrode and the workpiece are taken into consideration, with respect to the program path. Although not described in FIG. 3, the machining path creation unit 100 uses information stored in a machining information storage unit 210 when creating the machining path.

(21) The interpolation unit 110 creates interpolation data (amount of movement of each axis for each interpolation period) indicating the amount of movement for each interpolation period on the machining path, based on the machining path created by the machining path creation unit 100.

(22) The machined surface length calculation unit 120 calculates a machined surface length h.sub.i in which machining is performed by the wire electrode for each interpolation period with respect to the interpolation data created by the interpolation unit 110. The machined surface length calculation unit 120 may acquire shape data of a workpiece which is currently being machined from CAD data stored in advance in the machining information storage unit 210, and acquire the machined surface length h.sub.i based on the acquire shape data of the workpiece and a position of the wire electrode in the corresponding interpolation period. In addition, when taper machining is performed, the machined surface length calculation unit 120 may calculate the machined surface length h.sub.i at the time of taper machining illustrated in FIG. 4 by Equation (1) below using a height h of the workpiece at an upper guide position and an angle formed by a line connecting the upper guide 3a and the lower guide 3b and a vertical direction. In FIG. 4 and Equation (1) , the machined surface length calculation unit 120 may further acquire the machined surface length h.sub.i using a machined surface length calculation method by CAD data and a method of calculating the machined surface length at the time of taper machining.

(23) h i = h cos ( 1 )

(24) The electrode consumption amount calculation unit 130 calculates a wire electrode consumption amount d.sub.i for each interpolation period based on a wire electrode consumption amount table and the machined surface length h.sub.i for each interpolation period calculated by the machined surface length calculation unit 120, wherein the wire electrode consumption amount table is a table in which the wire electrode consumption amount is associated with the combination of information related to machining such as a workpiece thickness, a workpiece material, a type of a wire electrode, a diameter of the wire electrode, a machining condition, and the like, stored in advance in the machining information storage unit 210 and information related to machining such as a workpiece thickness, a workpiece material, a type of a wire electrode, a diameter of the wire electrode, a machining condition, and the like, stored in advance in a consumption amount storage unit 220. As a wire electrode is generally consumed in proportion to a machined surface length, wire electrode consumption amount d.sub.i in case where machined surface length is h.sub.i is expressed by the following Equation (2) if assumed that wire electrode consumption amount is d in case where tentative workpiece thickness is h.sub.v.

(25) d i = d h i h v ( 2 )

(26) The electrode consumption amount calculation unit 130 acquires wire electrode consumption amount d in case -where tentative workpiece thickness is h.sub.v from a wire electrode consumption amount table stored in advance in the consumption amount storage unit 220. The electrode consumption amount calculation unit 130 may set the tentative workpiece thickness h.sub.v to a height h of the workpiece included in the CAD data stored in the machining information storage unit 210 (a height of the workpiece at a position of the upper guide may be used when the height of the workpiece is different depending on the position). Alternatively, when a wire electrode consumption amount d corresponding to a combination of information related to machining matching the height h of the workpiece is not stored in the wire electrode consumption amount table, the electrode consumption amount calculation unit 130 may use a value closest to the height h of the workpiece among workpiece thicknesses registered in the wire electrode consumption amount table as the tentative workpiece thickness h.sub.v. Hereinafter, a description will be given on the assumption that the tentative workpiece thickness h.sub.v is equivalent to the height h of the workpiece at the position of the upper guide.

(27) The compensation amount calculation unit 140 calculates an upper guide compensation amount and a lower guide compensation amount for each interpolation period based on the wire electrode consumption amount d.sub.i for each interpolation period calculated by the electrode consumption amount calculation unit 130. As illustrated in FIG. 5, since the wire electrode 2 is consumed in a normal direction with respect to a wire electrode center line, a wire electrode compensation amount D may be obtained by Equation (3) below using the wire electrode consumption amount d.sub.i (corresponding to a consumption amount in the normal direction with respect to the wire electrode center line) (=0 when taper machining is not performed).

(28) D = d 2 cos 2 ( 3 )

(29) FIG. 6 illustrates the upper guide compensation amount and the lower guide compensation amount calculated by the compensation amount calculation unit 140.

(30) The compensation amount calculation unit 140 calculates an electrode consumption rate in a workpiece lower plane direction illustrated in FIG. 6. The compensation amount calculation unit 140 calculates the upper guide compensation amount and the lower guide compensation amount illustrated in FIG. 5 using Equation (4) shown below (=0 when taper machining is not performed).

(31) upper guide compensation amoumt = - ( D H 2 h ) = - ( d 2 cos 2 H 2 h ) lower guide compensation amoumt = D h + Hl h = d 2 cos 2 h + Hl h ( 4 )

(32) The movement pulse addition unit 150 adds a movement pulse corresponding to the compensation amounts to the interpolation data on the basis of the upper guide compensation amount and the lower guide compensation amount that are calculated by the compensation amount calculation unit 140.

(33) The coordinate update unit 160 updates a machine coordinate value of each axis of the wire electric discharge machine based on the movement amount to which the movement pulse based on the compensation amount in consideration of a machined surface length is added by the movement pulse addition unit 150.

(34) Further, the servo control unit 170 controls the servomotor 50 that drives an axis of the wire electric discharge machine to be controlled based on the machine coordinate value updated by the coordinate update unit 160.

(35) The embodiment of the invention has been described above. However, the invention is not limited only to an example of the embodiment described above, and may be implemented in various modes by making an appropriate change.

(36) For example, even though the compensation amount of the wire electrode considering the machined surface length is calculated as the compensation amounts of the upper guide and the lower guide in the above embodiment, the compensation amount may be calculated as the compensation amount with respect to one of the guides and compensation amounts with respect to the X axis, the Y axis, and the Z axis.