Machining path drawing apparatus for wire electric discharge machine
10016832 ยท 2018-07-10
Assignee
Inventors
Cpc classification
B23H7/065
PERFORMING OPERATIONS; TRANSPORTING
B23H7/20
PERFORMING OPERATIONS; TRANSPORTING
B23H7/06
PERFORMING OPERATIONS; TRANSPORTING
G05B19/4068
PHYSICS
International classification
B23H7/06
PERFORMING OPERATIONS; TRANSPORTING
G05B19/4068
PHYSICS
Abstract
A machining path drawing apparatus for a wire electric discharge machine that draws a machining path for the wire electric discharge machine having a core fixation function includes a machining shape information calculation unit for analyzing a machining program to determine machining shape information, a core fixation function operating region detection unit for determining a region where the core fixation function operates in the machining shape information, and a machining path drawing unit for drawing the region where the core fixation function operates with a display attribute changed when a machining path is drawn based on the machining shape information.
Claims
1. A machining path drawing apparatus for drawing a machining path for a wire electric discharge machine, the wire electric discharge machine being configured to, move a wire electrode and a workpiece relative to each other based on an instruction from a machining program, and machine the workpiece by using electric discharge produced between the wire electrode and the workpiece, and the wire electric discharge machine having a core fixation function of causing adhesion and deposition of machining waste produced by the electric discharge machining to fix a core produced by the electric discharge machining to the workpiece, the machining path drawing apparatus comprising a processor configured to: analyze the machining program to determine machining shape information, determine whether the core fixation function is enabled, in response to a determination that the core fixation function is enabled, determine, in the machining shape information, a region where the core fixation function operates, and draw the region where the core fixation function operates with a display attribute changed when a machining path is drawn based on the machining shape information, and in response to a determination that the core fixation function is disabled, not to determine the region where the core fixation function operates, and not to draw the region where the core fixation function operates, but to draw the machining path based on the machining shape information, wherein the processor is configured to determine whether the core fixation function is enabled in a machining block in the machining program by: reading the machining block in the machining program, calculating the machining shape, a machining distance and a machining terminal point, setting a value A by adding an accumulated machining distance and a machining shape distance in the machining block to each other, wherein the accumulated machining distance is accumulated from a beginning of the machining program to the machining block, setting a value B by adding a machining distance at a time when a previous core fixation function operation is completed and a predetermined distance over which the core fixation function operates to each other, determining that the core fixation function is enabled in response to a determination that the value A is greater than the value B, and determining that the core fixation function is disabled in response to a determination that the value A is not greater than the value B.
2. The machining path drawing apparatus according to claim 1, wherein the processor is further configured to determine the region where the core fixation function operates by analyzing the machining program including an instruction of causing the core fixation function to operate.
3. The machining path drawing apparatus according to claim 1, wherein the processor is further configured to, for each predetermined distance set along the machining path, determine the region where the core fixation function operates by analyzing a machining distance along the machining path.
4. The machining path drawing apparatus according to claim 1, wherein the processor is further configured to determine the region where the core fixation function operates by analyzing an initial point, a terminal point, or a middle point of the machining block in the machining program.
5. The machining path drawing apparatus according to claim 1, wherein the processor is further configured to determine the region where the core fixation function operates by analyzing, from the machining shape information, intersections where two straight lines, which pass through a center of gravity of a machining shape and intersect each other at a right angle, intersect the machining shape.
6. The machining path drawing apparatus according to claim 1, wherein the processor is further configured to determine the region where the core fixation function operates by analyzing, from the machining shape information, a position separated by a predetermined distance from at least one of an intersection of straight lines of a machining shape, an intersection of a straight line and a curved line of the machining shape, and a point of the machining shape where curvature changes.
7. The machining path drawing apparatus according to claim 1, wherein the display attribute is selected from one of a color and a type of a drawn line.
8. The machining path drawing apparatus according to claim 1, further comprising a display device configured to display the drawing of the machining path performed by the processor in a simulation of the processing of the machining program.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The object and feature of the present invention described above and other objects and features of the present invention will be apparent from the following description of an embodiment with reference to the accompanying drawings.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(19) A machining path drawing apparatus for a wire electric discharge machine in an embodiment of the prevent invention allows a worker to readily check how a core fixation function is operating. The machining path drawing apparatus of the present embodiment can be a drawing apparatus in a machining main body or a personal computer or any other external apparatus capable of the computation described above. Further, the drawing display attribute described above only needs to allow identification of a line segment and may be the color, type, thickness, and other factors of a drawn line.
(20) A numerical controller 10 is a controller that controls the wire electric discharge machine. A CPU 11 is connected to an axis controller 13, a PMC 14, an SRAM 15, a monitor 16, and a ROM 17 via a bus 12. The CPU 11 reads and analyzes a machining program stored in the SRAM 15, which is kept energized by a power supply and outputs a movement instruction to the axis controller 13, which drives and controls each axis. The axis controller 13 drives and controls each axis motor that is not shown based on the inputted movement instruction. The PMC 14 is a controller that controls a peripheral apparatus around the wire electric discharge machine. The monitor 16 is display unit for displaying the machining program and control data. The ROM 17 stores a program that controls the entire wire electric discharge machine. To use the numerical controller 10, which controls the wire electric discharge machine, as the machining path drawing apparatus for a wire electric discharge machine, the ROM 17 stores machining path drawing process software according to the present invention. The machining path drawing process software is executed by the CPU 11. A result of the drawing process is displayed on the monitor 16.
(21)
(22) Drawing performed in a machining path drawing apparatus is typically used as unit for checking a machining path. A drawing process of performing drawing is formed of two processes, a drawing process 1) of determining machining shape information from a machining block and a drawing process 2) of drawing a machining path based on the machining shape information.
(23) In the present embodiment, a portion where the core fixation function operates is drawn in the drawn machining path by using a drawing display attribute (color of drawn line, for example) different from that of the machining path to clearly show the portion where the core fixation function operates. As a result, the operation of the core fixation function is, of course, checked, and the relative position of the core fixation function operating portion is shown, whereby the worker can evaluate with no effort whether the core is sufficiently fixed. The drawing process is formed of the following processes:
(24) drawing process 1 of determining machining shape information from a machining block;
(25) drawing process 2 of evaluating based on the machining shape information whether a region of interest is a region where the core fixation function operates;
(26) drawing process 3 of changing the drawing display attribute when a result of the evaluation shows that the region of interest is a region where the core fixation function operates, whereas proceeding to a drawing process 6 when the drawing display attribute is not changed;
(27) drawing process 4 of drawing only the core fixation function operating region by using the changed display attribute;
(28) drawing process 5 of changing the drawing display attribute back to the original; and
(29) drawing process 6 of drawing the remaining machining path from the machining shape information.
(30)
(31) The machining path drawing apparatus for a wire electric discharge machine 30 is a drawing apparatus that draws a machining path for the wire electric discharge machine having a core fixation function of moving a wire electrode and a workpiece relative to each other based on an instruction from a machining program, causing the workpiece to undergo electric discharge machining by using discharge produced between the wire electrode and the workpiece, and causing adhesion and deposition of machining waste produced by the electric discharge machining to fix a core produced by the electric discharge machining to the workpiece.
(32) The machining path drawing apparatus for a wire electric discharge machine 30 includes machining shape information calculation unit 31 for analyzing the machining program to determine machining shape information, a core fixation function operating region detection unit 32 for determining a region where the core fixation function operates in the machining shape information, a machining path drawing unit 33 for drawing the region where the core fixation function operates with a display attribute changed when a machining path is drawn based on the machining shape information, and a display device 34, which displays a result of the drawing performed by the machining path drawing unit 33.
(33) A method for causing the core fixation function to operate will next be described. Primary examples of the method for causing the core fixation function to operate include the following five methods. It is noted that a core fixation distance is fixed at 2 (mm) by way of example.
(34) Operation method 1) a drawing process in a case where the core fixation function is caused to operate in response to an instruction from the machining program
(35)
(36) [Step S101] Read a machining block.
(37) [Step S102] Calculate a machining shape, a machining distance, and a machining terminal point.
(38) [Step S103] Evaluate whether or not a core fixation function operation instruction has been issued, and proceed to step S104 when the operation instruction has been issued, whereas proceeding to step S105 when no operation instruction has been issued.
(39) [Step S104] Carry out the process of drawing a core fixation section (see
(40) [Step S105] Carry out the process of drawing a machining path section (see
(41)
(42) In the machining program shown in
(43) An initial point (10, 10) and a terminal point (10, 10) lead to a vector (0, 20) (S702). The ratio of the division distance=2 to a machining shape distance=20 leads to a division distance vector (0, 2) (S703). The coordinates of the division are the initial point vector+the division distance vector=(10, 10)+(0, 2)=(10, 8) (S704, S709). A core fixation portion is therefore drawn from (10, 10) to (10, 8) (S104). The point (10, 8) is set to be an initial point of the following drawing (S510), and the machining shape distance=the machining shape distancethe division distance=202=18 (S512). A machining path portion is drawn from (10, 8) to (10, 10), which is the remaining path, (S105).
(44) Operation method 2) a drawing process in a case where the core fixation function is caused to operate for each a predetermined machining distance
(45) The core fixation function in this method corresponds to the invention according to claim 3 in Japanese Patent No. 5,426,733. The predetermined machining distance may be set as follows: A predetermined value is specified by a machining program; or the machining path drawing apparatus may be provided with a setting unit and an operator may input a predetermined value to the setting unit.
(46) [Step S201] Read a machining block in a machining program.
(47) [Step S202] Calculate a machining shape, a machining distance, and a machining terminal point.
(48) [Step S203] Add an accumulated machining distance and a machining shape distance in the current block to each other, and call the resultant value A. Add the machining distance at the time when the previous core fixation function operation is completed and the predetermined distance over which the core fixation function is caused to operate to each other and call the resultant value B.
(49) [Step S204] Evaluate whether or not A is greater than B. When A is greater than B (YES), proceed to step S205, whereas when A is not greater than B (NO), proceed to step S209.
(50) [Step S205] Add the predetermined distance over which the core fixation function is caused to operate to the machining distance at the time when the previous core fixation function operation is completed, subtract the accumulated machining distance from the value resulting from the addition, and set the division distance to be the value resulting from the subtraction.
(51) [Step S206] Carry out a drawing process until a core fixation portion (see
(52) [Step S207] Carry out the process of drawing the core fixation portion (see
(53) [Step S208] Set the sum of the machining distance at the time when the previous core fixation function operation is completed, the predetermined distance over which the core fixation function is caused to operate, and the core fixation distance to be the machining distance at the time when the previous core fixation function operation is completed.
(54) [Step S209] Carry out the process of drawing a machining path portion (see
(55) [Step S210] Add the machining shape distance in the current block to the accumulated machining distance, set the resultant value to be the accumulated machining distance, and terminate the entire process.
(56)
(57) The predetermined distance over which the core fixation function is caused to operate is set at 20. It is assumed in this example that an approach portion (block N202, block N208) is a drawing result that is not added to the accumulated machining distance. In a block N203, A=the accumulated machining distance+the machining shape distance in the current block=0+10, and B=the machining distance at the time when the previous core fixation function operation is completed+the predetermined distance over which the core fixation function is caused to operate=0+20, resulting in A<B. Therefore, the core fixation function operation is disabled, and the block N203 is drawn as a machining path portion (S203, S204).
(58) The accumulated machining distance=the accumulated machining distance+the machining shape distance in the current block=0+10=10 (S210). In a block N204, A=10+20 and B=0+20, resulting in A>B, so that the core fixation function operation is enabled (S203, S204). The division distance=the machining distance at the time when the previous core fixation function operation is completed+the predetermined distance over which the core fixation function is caused to operatethe accumulated machining distance=0+2010=10 (S205).
(59) First, in the drawing until a core fixation portion, an initial point (10, 10) and a terminal point (10, 10) lead to a vector (0, 20) (S702). The ratio of the division distance=10 to the machining shape distance=20 leads to a division distance vector (0, 10) (S703).
(60) The coordinates of the division are the initial point vector+the division distance vector=(10, 10)+(0, 10)=(10, 0) (S704, S709). The drawing until a core fixation portion is therefore performed from (10, 10) to (10, 0) (S206). The point (10, 0) is set to be an initial point in the following drawing (S407), and the machining shape distance=the machining shape distancethe division distance=2010=10 (S409).
(61) In the following core fixation portion drawing, the initial point (10, 0) and the terminal point (10, 10) lead to a vector (0, 10) (S702). The ratio of the division distance=the core fixation distance=2 to the machining shape distance=10 leads to a division distance vector (0, 2) (S703). The coordinates of the division are the initial point vector+the division distance vector=(10, 0)+(0, 2)=(10, 2) (S704, S709). A core fixation portion is therefore drawn from (10, 0) to (10, 2) (S207). The point (10, 2) is set to be an initial point in the following drawing (S510), and the machining shape distance=the machining shape distancethe division distance=102=8 (S512).
(62) The machining distance at the time when the previous core fixation function operation is completed=the machining distance at the time when the previous core fixation function operation is completed+the predetermined distance over which the core fixation function is caused to operate+the core fixation distance=0+20+2=22 (S208). A machining path portion is drawn from (10, 2) to (10, 10), which is the remaining path, (S209). The accumulated machining distance=the accumulated machining distance+the machining shape distance in the current machining block=10+20 (10+2+8)=30 (S210).
(63) Operation method 3) a drawing process in a case where the core fixation function is caused to operate from an initial point, a terminal point, or a middle point of a machining block
(64)
(65) [Step S301] Read a machining block.
(66) [Step S302] Calculate a machining shape, a machining distance, and a machining terminal point.
(67) [Step S303] Evaluate the machining shape distance, and enable the core fixation function operation and proceed to step S304 when the machining shape distance is not zero, whereas disabling the core fixation function operation and proceeding to step S307 when the machining shape distance is zero.
(68) [Step S304] Divide the machining shape distance by 2 and set the resultant value to be the division distance.
(69) [Step S305] Carry out a drawing process until a core fixation portion (see
(70) [Step S306] Carry out the process of drawing the core fixation portion (see
(71) [Step S307] Carry out the process of drawing a machining path portion and terminate the entire process (see
(72)
(73) The core fixation function is caused to operate from a middle point. Core fixation portions 7a, 7b, 7c, 7d, and 7e are drawn along a machining path, as shown in
(74) The core fixation function is caused to operate from a middle point. It is assumed in this example that an approach portion (block N202, block N208) is a result of the drawing in which the core fixation function is not caused to operate. In a block N203, since the machining shape distance is equal to 10, the core fixation function is caused to operate (S303). The division distance at the middle point is the machining shape distance/2=10/2=5 (S304). First, in the drawing until a core fixation portion, an initial point (0, 10) and a terminal point (10, 10) lead to a vector (10, 0) (S702). The ratio of the division distance=5 to the machining shape distance=10 leads to a division distance vector (5, 0) (S703). The coordinates of the division are the initial point vector+the division distance vector=(0, 10)+(5, 0)=(5, 10) (S704, S709).
(75) The drawing until a core fixation portion (machining path portion) is therefore performed from (0, 10) to (5, 10) (S305). The point (5, 10) is set to be an initial point in the following drawing (S407), and the machining shape distance=the machining shape distancethe division distance=105=5 (S409). In the following core fixation portion drawing, the initial point (5, 10) and the terminal point (10, 10) lead to a vector (5, 0) (S702). The ratio of the core fixation distance=the division distance=2 to the machining shape distance=5 leads to a division distance vector (2, 0) (S703).
(76) The coordinates of the division are the initial point vector+the division distance vector=(5, 10)+(2, 0)=(7, 10) (S704, S709). A core fixation portion is therefore drawn from (5, 10) to (7, 10) (S306). A machining path portion is drawn from (7, 10) to (10, 10), which is the remaining path, (S307).
(77) In this example, the core fixation function is caused to operate from a middle point. Instead, the core fixation function is allowed to operate from an initial point or a terminal point by changing the division distance (S304) until a core fixation portion. To allow the core fixation function to operate from an initial point, the division distance is set at zero.
(78) To complete the operation of the core fixation function at a terminal point, the division distance=the machining shape distancethe core fixation distance. To cause the core fixation function to operate in a central portion of a block, the division distance=(the machining shape distancethe core fixation distance)/2.
(79) Operation method 4) a drawing process in a case where the core fixation function is caused to operate at intersections where two straight lines that pass through the center of gravity of a machining shape and intersect each other at right angles intersect the machining shape
(80) The core fixation function in this method corresponds to the invention according to claim 1 in Japanese Patent No. 5,426,733. The operation method 4) can be performed based on the same idea as that for the operation method 2), in which the core fixation function is caused to operate for each predetermined machining distance.
(81) Operation method 5) a drawing process in a case where the core fixation function is caused to operate at a position separated by a predetermined distance from at least one of an intersection of straight lines of a machining shape, an intersection of a straight line and a curved line of the machining shape, and a point of the machining shape where curvature changes
(82) The core fixation function in this method corresponds to the invention according to claim 2 in Japanese Patent No. 5,426,733. The operation method 5) can be performed based on the same idea as that for the operation method 3), in which the core fixation function is caused to operate from an initial point or a terminal point.
(83)
(84) [Step S401] Save a terminal point.
(85) [Step S402] Calculate a division point (see
(86) [Step S403] Set the division point to be the terminal point.
(87) [Step S404] Read a drawing color of a machining path portion.
(88) [Step S405] Set the drawing color.
(89) [Step S406] Draw the machining path portion.
(90) [Step S407] Set the terminal point to be an initial point in the following drawing.
(91) [Step S408] Set the saved terminal point to be the terminal point.
(92) [Step S409] Subtract the division distance from the machining shape distance, set the resultant value to be the machining shape distance, and terminate the entire process.
(93) The process of drawing a core fixation portion will be described with reference to the flowcharts in
(94)
(95) [Step S501] Save a terminal point.
(96) [Step S502] Set the core fixation distance to be the division distance.
(97) [Step S503] Calculate the division point (see
(98) [Step S504] Set the division point to be the terminal point.
(99) [Step S505] Read a drawing color of a machining path portion.
(100) [Step S506] Evaluate the drawing color, and proceed to step S507 when the drawing color is white, whereas proceeding to step S508 when the drawing color is black.
(101) [Step S507] Set the drawing color to be black, and proceed to step S509.
(102) [Step S508] Set the drawing color to be white, and proceed to step S509.
(103) [Step S509] Draw a core fixation portion.
(104) [Step S510] Set the terminal point to be an initial point in the following drawing.
(105) [Step S511] Set the saved terminal point to be the terminal point.
(106) [Step S512] Subtract the division distance from the machining shape distance, set the resultant value to be the machining shape distance, and terminate the entire process.
(107)
(108) [Step S601] Read the drawing color of a machining path portion.
(109) [Step S602] Set the drawing color.
(110) [Step S603] Draw the machining path portion.
(111) [Step S604] Set a terminal point to be an initial point in the following drawing, and terminate the entire process.
(112)
(113) [Step S701] Evaluate a machining shape, and proceed to step S702 when the machining shape is a straight line, whereas proceeding to step S705 when the machining shape is an arc.
(114) [Step S702] Calculate a vector from an initial point to a terminal point.
(115) [Step S703] Calculate a division distance vector from the ratio of the division distance to the machining shape distance.
(116) [Step S704] Add the division distance vector to the initial point, and proceed to step S709.
(117) [Step S705] Calculate vectors from the center of the arc to an initial point and a terminal point.
(118) [Step S706] Calculate the angles between the vectors.
(119) [Step S707] Calculate each of the angles from the ratio of the division distance to the machining shape distance.
(120) [Step S708] Move the initial point vector by an angle corresponding to the division distance, and proceed to step S709.