Electrical discharge machining control unit

Abstract: An electrical discharge machine, which performs electrical discharge machining by applying a voltage pulse across an electrode (1) and a workpiece (2), includes an adaptive control unit (31a, 41) for maintaining the machine in a predetermined machining state at the start of the electrical discharge machining operation. The adaptive control unit (31a, 41) detects an electrical discharge machining fault during the start of the electrical discharge machining process, adaptively changes the machining conditions to avoid faults, and restores the original machining conditions thereafter.

Description: The present invention relates to an adaptive control unit for an electrical discharge machine, and more particularly to an adaptive control unit of an electrical discharge machine which maintains the machine in a desired machining state at the start of electrical discharge machining. Fig. 13 illustrates a conventional adaptive control unit for an electrical discharge machine, which is disclosed in JP-B 62-10769. The electrical discharge machine includes a machining electrode 1, a workpiece 2, a machining tank 3 filled with a dielectric 4, a spindle 5 for moving the machining electrode 1 in a Z direction, a drive motor 6 for driving the spindle 5, a speed/position detector 7 for detecting the travel speed and position of the spindle 5, an electrode position control section 21 for controlling the position of the machining electrode 1 by providing a drive command to the drive motor 6, a machining power supply 22 for supplying a machining voltage across the machining electrode 1 and workpiece 2, and a detected value processor 23, responsive to a detection signal from the position detector 7 and a machining gap voltage, for providing a feedback command to the electrode position control section 21 and to the machining power supply 22, and for providing an electrode bottom point raising command or machining command to an adaptive control section 31. The adaptive control section 31 transmits a machining command to the electrode position control section 21 and machining power supply 22 in accordance with the incoming command signal from the detected value processor 23. In operation, a pulse-shaped voltage is applied across the machining electrode 1 and workpiece 2 by the machining power supply 22 causing an electrical discharge to occur therebetween in the dielectric. The workpiece 2 is machined by the electrical discharge and the feed operation of the machining electrode 1. The electrode position control section 21 compares an average machining gap voltage provided by the detected value processor 23 with a reference voltage to maintain a predetermined machining gap between the machining electrode 1 and workpiece 2 for electrical discharge, and controls the drive motor 6 in accordance with the differential voltage ( i.e., the difference between the average machining gap voltage and the reference voltage) to control the position or feed rate of the machining electrode 1. The gap between the machining electrode 1 and workpiece 2 is generally in the range of about ten microns to several tens of microns. When the area to be machined is wide, it is difficult to remove the chips produced by the machining through this gap which, in turn, causes the chips to reside in the machining gap. Moreover, the amount of chips generated is more than what typically can be removed. As a result, a faulty electrical discharge ( e.g., electrical discharge concentrating in one area) is more likely to occur. This, however, can be prevented by detecting a faulty state and suppressing the amount of chips being produced or removing more chips. Figs. 14A and 14B illustrate the movement of the machining electrode 1, wherein Fig. 14A shows the movement of the electrode during normal machining, and Fig. 14B illustrates the electrode movement where a fault has occurred in the machining gap. In the machining process, the machining electrode 1 oscillates over a distance of about several microns to several tens of microns. During a normal machining operation, the electrode bottom point 101 ( i.e., where the machining electrode 1 switches from lowering to rising), gradually lowers in the course of machining. If a fault occurs in the machining gap, however, the electrode bottom point 101 tends to rise as shown in Fig. 14B. Hence, to prevent the rise of the electrode bottom point 101 and to suppress the amount of chips being produced, the width of the current pulse supplied by the machining power supply 22 is decreased, and the electrical discharge dwell width is increased. In order to remove more chips, the regular rising distance of the machining electrode 1 can be increased to increase the "pumping" action created by electrode movement and consequent dielectric flow. Referring back to Fig. 13, the detected value processor 23 detects the electrode bottom point 101 in accordance with the motion of the machining electrode 1 provided by the position detector 7 and puts out a signal to the adaptive control section 31 that indicates whether the electrode bottom point 101 is rising or lowering. When the bottom point rises above a predetermined threshold value, the adaptive control section 31 determines that a fault has occurred in the machining gap and transmits a command ( e.g., for decreasing the current pulse width and increasing the electrical discharge dwell width so as to suppress the amount of chips being produced or for raising the machining electrode 1 so as to enhance the chip removing capability), to the electrode position control section 21 and machining power supply 22. From the above description, it should be apparent that shortening the current pulse width or increasing the regular raising amount of the machining electrode 1 is necessary to prevent a faulty electrical discharge from occurring. A second conventional electrical discharge machine is described in JP-A 56-107831. This machine accurately determines the machining gap state during machining using an electrode position detecting means, which detects a difference between the deepest position of the electrode relative to the workpiece and the current electrode position. A machining gap state determining means detects an increase in the difference as a faulty machining gap state and outputs a signal accordingly. As described above, the adaptive control unit of a conventional electrical discharge machine determines that a fault has occurred in the machining gap when the electrode rises or when the difference between the deepest position of the electrode fed to the workpiece and the current position thereof has exceeded a predetermined threshold value. The adaptive control unit then reduces the current pulse width and elongates the electrical discharge width to suppress the stock removal ability ( i.e., in other words, the amount of chips being produced) or to raise the electrode for enhancing the chip removing capability. When electrical discharge machining is performed with a large machining electrode ( i.e., when the area to be machined is large, about 25 cm² or greater, at the start of electrical discharge machining), a conventional control unit can detect the occurrence of an arc phenomenon and conduct avoidant control of machining conditions. But the conventional device will sometimes erroneously determine that the arc phenomenon has occurred and perform avoidance control of the machining conditions, which reduces machining efficiency. That is, the machining time is increased by the operation of elongating the electrical discharge dwell width, reducing the electrode down time, increasing the electrode raising amount, etc . The arc phenomenon is liable to occur particularly when a machining electrode, made of copper, is used for electrical discharge machining without flushing dielectric through the machining gap. In addition, when a large machining electrode is used for electrical discharge machining, the known art determines that the electrical discharge machining state is faulty for a certain period of time and continues to perform avoidant control of the machining conditions because the difference between the deepest position of the electrode fed to the workpiece and the current position thereof increases at the start of electrical discharge machining. The difference between the deepest and current positions of the electrode is not eliminated immediately due to the large area to be removed by electrical discharge machining. SUMMARY OF THE INVENTION Accordingly, it is a general object of the present invention to provide, at least in some embodiments thereof, an adaptive control unit of an electrical discharge machine which detects an electrical discharge machining fault upon the start of the electrical discharge machining process, changes the adaptive machining condition to avoid any faults and restores the machining condition after avoidant control and which is free of the above-mentioned problems and disadvantage. According to the invention from one aspect, there is provided an adaptive control apparatus for electric discharge machining comprising: detecting means for detecting a relief amount of a machining electrode from a deepest position thereof, judging means for judging whether machining condition is normal or abnormal in response to an output of said detecting means, and adaptive control means for producing machining command to subjecting a machining power source to adaptive control in response to an output of said judging means, the judging means comprising: means for determining a certain period of time from the start of the electric discharge machining process, means for comparing the relief amount of the electrode with a first threshold level, means for comparing the relief amount of the electrode with a second threshold level, and storing means for storing predetermined machining conditions. According to the invention from another aspect, there is provided an adaptive control apparatus for electric discharge machining comprising: detecting means for detecting a relief amount of an electrode from a deepest position thereof, judging means for judging whether machining condition is normal or abnormal in response to an output of said detecting means, and adaptive control means for producing machining command to subjecting a machining power source to adaptive control in response to an output of said judging means, the judging means comprising: means for determining a certain period of time from the start of the electric discharge machining process, means for comparing the relief amount of the electrode with a first threshold level, means for comparing the relief amount of the electrode with an average value of the detected relief amount over several jumps of said electrode, and storing means for storing predetermined machining conditions. The above and other objects, features, and advantages of the invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram illustrating one embodiment of an adaptive control unit for an electrical discharge machine according to the present invention. Fig. 2 illustrates a detailed configuration of a fault determining section shown in Fig. 1. Fig. 3 illustrates the movement of a 100 mm square machining electrode employed for electrical discharge machining. Fig. 4 is a configuration diagram showing an embodiment of another machining start completion determining means. Fig. 5 illustrates the movement of a 100 mm square machining electrode employed for electrical discharge machining from when electrical discharge machining is started to when the relief amount of the machining electrode is zeroed. Figs. 6A, 6B, 6C, 6D, 6E, and 6F illustrate a timing chart for the movement of the machining electrode of Fig. 5, and the operation timing of the circuit shown in Fig. 2. Figs. 7A and 7B illustrate how the electrode position is adjusted during the avoidant control operation. Figs. 8A and 8B are flowcharts which illustrate the adaptive control operation when a fault is detected and the return to normal operation. Fig. 9 illustrates the movement of a 30 mm square machining electrode employed for electrical discharge machining. Fig. 10 shows another embodiment of a fault determining means. Fig. 11 is a graph showing the operation of the embodiment shown in Fig. 10. Figs. 12A, 12B, 12G, 12H, 12C, 12E, 12I, and 12J illustrate a timing chart showing the operation of the embodiment of Fig. 10. Fig. 13 illustrates an electrical discharge machine adaptive control unit of the prior art. Figs. 14A and 14B illustrate the movement of the machining electrode. Fig. 15 illustrates a flow chart for a software implementation of the embodiment of Fig. 2. DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 1 illustrates an embodiment of an adaptive control unit of an electrical discharge machine according to the present invention. In Fig. 1, reference numerals 1 to 7 and 21 to 23 designate components identical to those of the conventional adaptive control unit described above and will therefore not be described here. Reference numeral 31a indicates an adaptive control section for transmitting commands to the electrode position control section 21 and machining power supply 22 in accordance with a signal from a fault determining section 41. The fault determining section determines whether the electrical discharge machine is operating in a normal or faulty condition in accordance with an incoming signal from the detected value processor 23. The fault determining section 41, as shown in Fig. 2, includes a period setting means 51 for defining a period between the start of the electrical discharge machining process and the determination of whether electrical discharge machining is faulty or not, fault determining means 52 for determining whether electrical discharge machining is faulty or not, and machining start completion determining means 53 for determining whether the machining electrode 1 has discharged over its overall surface. The operation of the Fig. 1 embodiment will now be described. Fig. 3 illustrates the movement of a square-shaped (100 mm on each side) machining electrode employed for electrical discharge machining under the following conditions: - Machining electrode: 100 mm square, copper - Current peak value: 55 A - Current pulse width: 1024 µsec Curve a (Fig. 3) shows the movement of the machining electrode 1 when no arc occurs and curve b shows that of the machining electrode 1 in which an arc occurs. In a normal electrical discharge machining operation, the offset or relief amount of the machining electrode 1 gradually rises after the start of electrical discharge machining, after several jumps, as indicated by curve a in Fig. 3. However, when the machining conditions set at the start of the electrical discharge are severe, (which may cause arcing to occur), the size of the offset amount of the machining electrode rises rapidly beginning only several jumps after the start of electrical discharge machining and continues to rise thereafter, as indicated by curve b. Further, the amount of the rise (the relief from the deepest position of the machining electrode 1) is larger than what would normally occur during electrical discharge machining. An abnormal condition of the machining state at the beginning of machining may be distinguished on this basis. The size of the relief of the machining electrode 1 is caused to increase to enhance the chip removing capability. Alternatively, the lowering time of the machining electrode 1 may be reduced to suppress the amount of chips being generated. Other measures may include reducing the width of the current pulse supplied by the machining power supply 22 and/or increasing the electrical discharge dwell width. Any electrical discharge machining fault occurring within the period of 25 jumps from the start of electrical discharge machining ( i.e., at an early stage of the machining process) is detected by the fault determining section 41 shown in Fig. 1. An example of detection of the relief amount from the deepest position within 25 jumps after the start of the electrical discharge machining by means of the fault determining section 41 is shown in Fig. 2. The period setting means 51 determines whether the machining electrode 1 has approached the workpiece 2 and whether machining has started. The voltage across the machining electrode 1 and workpiece 2 is detected by a voltage divider 61. This detected voltage is entered into a comparator 63 where it is then compared with a voltage value set by a voltage setting device 62 ( e.g., 40 V or less). Specifically, when the voltage value detected by the voltage divider 61 has reached a voltage equivalent to 40 V or less, the comparator 63 outputs a "high" signal to a counter 64. The counter 64 then begins to count the number of jumps (one jump being equal to a sequence of a rise, a fall, and another rise of the machining electrode 1) of the machining electrode 1. The counter outputs a "high" signal to a determining circuit 65 at the start of counting and when the number of jumps reaches a predetermined value ( e.g., when the number of jumps is 25), a "low" signal is applied to the determining circuit 65 (Fig. 6A), thereby setting the period for determining a machining fault. A second input of the determining circuit 65 receives a signal from the fault determining means 52. The fault determination process employed by the fault determining means 52 uses the relief amount from the deepest position as a state amount. The relief amount from the deepest position computed by the detected value processor 23 and a threshold value of the relief amount, which is used as a reference and is stored in a setting device 66, are entered into a comparator 67. The comparator 67 outputs a "high" signal to the determining circuit 65 when the relief amount from the deepest position most recently computed exceeds the predetermined threshold value stored in the setting device 66. The determining circuit 65 detects a faulty machining operation and outputs a "high" signal when the respective outputs of the counter 64 and the comparator 67 are "high". (Fig. 6C) Upon detecting a faulty discharge, the determining circuit 65 outputs a set signal to an input S of a flip-flop 69 and transmits a command signal to cause the current machining conditions to be stored into a storage device 68. The storage device 68 stores the machining conditions so that, after the determination of machining start completion, the process can return to the original machining conditions defined before the fault. The storage device 68 then transmits a command signal to the adaptive control section 31a which sends a command signal to the electrode position control section 21 to reduce the lowering time of the machining electrode 1 and to increase the raising distance thereof. By performing avoidant control in this manner, faulty electrical discharge machining is more easily avoided. Referring to Fig. 8A, there is shown a flowchart illustrating the adaptive control process. When the adaptive control section 31a receives the command signal from the determining means 65, the avoidant control process begins in step 200. On the determination that there is an unstable operation in step 201, the current machining conditions, such as the electrode down time, electrode raising distance, off time, etc., are stored in a memory device. The process then proceeds on to steps 203, 204, and 205 where the current electrode down time (a) is judged. If the electrode down time is not very long, which is denoted in the flowchart as within the range of one to two, then the process proceeds to step 206. If the electrode down time is long, which is denoted in the flowchart as within the range of five to nine (step 205), then the process flows to step 208. Finally, if the electrode down time is somewhere in between, as determined by step 204, then the process proceeds on to step 207. In steps 206, 207, and 208, the electrode raising time (b₁) and in steps 207 and 208, the electrode down time (a₁) are adjusted accordingly so as to avoid unstable machining operations. For instance, in step 206, the electrode raising distance (b₁) is increased by two, and the electrode down time (a₁) is not adjusted. In step 207, the electrode down time (a₁) is decreased by two, and the electrode raising distance (b₁) is increased by one. In step 208, the adjustment is somewhat greater as the electrode down time (a₁) is decreased by three and the electrode raising distance (a₁) is increased by two. The electrode raising amount and electrode lowering time has been controlled under the following machining conditions on an experimental basis: The occurrence of arc could not be avoided in Experiment 1, but arc was avoided in Experiment 2. These experiments make clear that performing avoidance control as just described ( i . e ., by raising the electrode all at once, as illustrated in Figs. 7A and 7B, rather than bit by bit) has a greater effect than reducing the electrode lowering time and making an avoidant change in the electrode raising distance in a step by step manner. The machining electrode position was sampled by the detected value processor 23 every 20 msec. The deepest position was determined when the machining electrode 1 had advanced most from the initial position, and the relief amount of the machining electrode 1 from the deepest position was calculated by using the sampling data of the deepest position and current position. After avoidant changes have been made to the machining conditions, the machining electrode 1 relief amount temporarily rises but then gradually lowers as shown in Fig. 5. Fig. 5 illustrates the motion of a 100 mm square machining electrode 1, from when electrical discharge machining is initiated to when the relief amount of the machining electrode 1 from the deepest position reaches zero. Fig. 6 illustrates an operation timing chart of the circuit shown in Fig. 2. Generally, the machining conditions will be returned to the original conditions at the time when the relief amount of the electrode from the deepest position has been zeroed. However, since electrical discharge is evenly applied in the machining gap starting at a certain position between points a and b in Fig. 5, returning to the original machining conditions somewhat sooner (when the relief amount drops to about 50 microns) will enhance the stock removing capability, resulting in a higher overall machining speed. An example of determining when to return to the original machining conditions is shown in Fig. 2. Whether machining has been started is determined by the completion determining means 53. The relief amount from the deepest position computed by the detected value processor 23 and a threshold value of the relief amount from the deepest position (typically about 50 microns), which is stored in a setting device 70, are entered into a comparator 71. The comparator 71 outputs a "high" signal to a determining circuit 72 when the current computed relief amount from the deepest position drops below the predetermined threshold value stored in the setting device 70. (Fig. 6E) When the output Q of the flip-flop 69 is "high" and the output of the comparator 71 transitions to "high", the determining circuit 72 outputs a "high" signal indicating machining start completion. (Fig. 6F). At this point in time, the start-up phase of machining is complete, and return to the originally commanded machining parameters (stored in memory) is effected. When the occurrence of a faulty electrical discharge is determined at the beginning of machining, avoidant control is exercised, the machining start completion determination is subsequently made, and the determining circuit 72 transmits a command signal to the adaptive control section 31a to return to the pre-avoidance machining conditions. On the other hand, when faulty electrical discharge does not occur, a determining circuit 76 determines that the machining start is complete. After that, the present adaptive control is stopped and switchover is made to a known adaptive control technique ( e.g., similar to that performed by the conventional adaptive control unit described in Japanese Patent Publication No. 10769-1987 shown in Fig. 13). In the process of determining machining start completion, the electrode lowering time and electrode raising distance are controlled by the adaptive control section 31a, so that the machining conditions can be returned to the original setting ( i.e., machining conditions stored in the storage device 68) when the current relief amount of the electrode from the deepest position drops below the predetermined threshold value. With reference to Fig. 8B, there is shown the return operation and steps thereafter. The illustrated flowchart indicates the operation once the completion of the machining start has been detected. From the starting step 300, the operation flows to step 301 where the machining conditions stored in step 202 of Fig. 8A are restored. Specifically, the electrode down time (a₁), the electrode raising distance (b₁), and the off time (c₁) are restored to their state just prior to the avoidance operation. Next, in step 302, it is determined whether the machining operation is stable or unstable. If unstable, the process flows to step 303 where if the electrode down time (a₁) does not equal one, it (a₁) is reduced by one, and if the electrode down time (a₁) does equal one, then the electrode raising distance (b₁) is increased by one. The process then returns to step 301. On the other hand, if the machining operation is stable, the process flows to step 304 where a short delay is introduced. Next, in step 305, it is judged whether the electrode raising time (b₁) equals a value of (b) ( i.e., the electrode raising time just prior to performing the avoidance operation). If not, the process flows first to step 306 where the electrode raising distance (b₁) is reduced by one and then to step 301. If the electrode raising distance (b₁) does equal (b) then in step 307, it is judged whether the electrode down time (a₁) equals the value of (a) ( i.e., the value of the electrode down time just prior to performing the avoidance operation). If not, the process flows to step 308 where the electrode down time (a₁) is increased by one and then proceeds back to step 301. If the electrode down time (a₁) does equal (a) then the process flows to step 309 and ends. Another process of determining the machining start completion is now described. As shown in Fig. 4, a reference value of the relief amount of the electrode from the deepest position to determine whether the machining start is complete is selected by a circuit 81, and the resultant data is stored in a storage device 82. The current relief amount of the electrode from the deepest position put out by the detected value processor 23 is compared by a comparator 83 with the reference value of the relief amount of the electrode from the deepest position ( i.e., the resultant data) for determining machining start completion. A "high" signal is put out by the comparator 83 when the current relief amount is smaller than the threshold value. The circuit 81 determines the incoming machining electrode position from the detected value processor 23 ( e.g., the relief amount of the electrode from the deepest position, using a moving average over 10 jumps), multiples it by a coefficient A (A being typically in the range of 0.2 to 0.5), and stores the result in the storage device 82. The storage device 82 compares the magnitude of each incoming data from the operator 81 output per jump and stores the larger data. As compared to the previously described completion determining process, this completion determining process does not require the setting device 70 but allows flexible response because the relief amount of the electrode from the deepest position for determination of machining start completion varies in relation to the relief amount of the electrode from the deepest position in accordance with the machining electrode 1 area, machining conditions, dielectric treatment, etc . Further, an adaptive control unit as shown in Fig. 10 is yet another alternative. Unlike the previous control units, this control unit does not determine that electrical discharge machining is faulty when the machining electrode moves as shown in Fig. 9. That is, the unit does not consider the electrical discharge machining process faulty when the value of the relief amount from the deepest position first exceeds the determined reference value shortly after the start of electrical discharge machining. The unit includes a setting device 91, an operator 92, a comparator 93, and a determining circuit 94 in addition to the fault determining means which is shown in Fig. 2. The comparator 67 outputs a "high" signal to the determining circuit 94 when the relief amount of the machining electrode 1 from the deepest position computed by the detected value processor 23 exceeds the predetermined threshold value stored in the setting device 66. With reference to Fig. 12B, the operator 92 calculates the incoming machining electrode position data from the detected value processor 23, ( e.g., the relief amount of the electrode from the deepest position using the moving average per 10 jumps), which is represented by the plotted points in Fig. 9. The resultant value is compared by the comparator 93 with the predetermined threshold value stored in the setting device 91 which is identical to the value set by the setting device 66. When the electrode moves as shown in Fig. 9, the value outputted by the operator 92 does not exceed the predetermined value, and therefore the output of the comparator 93 is "low" (Fig. 12C) and the determining circuit 94 outputs a "low" signal (Fig. 12H). The determination that a faulty electrical discharge has occurred is made when the respective outputs of both comparators 67 and 93 put out "high" signals, at which time the determining circuit 94 outputs a "high" signal. When the determination that a faulty electrical discharge has occurred has not been made ( i.e., when the output of the determining circuit 65 in Fig. 2 is "low"), whether the electrical discharge start-up operation is complete is determined by the determining circuit 76. When electrical discharge machining is started, the flip-flop 73 is set and outputs a "high" signal to the determining circuit 74. The inverted signal of signal A output by the counter 64 is also entered into the determining circuit 74. The determining circuit 74 transmits a set signal to the flip-flop 75 when the output of the counter 64 is switched "low". This signal causes the flip-flop 75 to output a "high" signal to the determining circuit 76 (Fig. 12I). However, when the output Q signal of the flip-flop 69 is "high" ( i.e., when the electrical discharge machining has been determined faulty), the determining circuit 74 transmits a reset signal, which causes the output Q signal of the flip-flop 75 to be switched "low". The output of the comparator 71 is applied to the determining circuit 76 which outputs a "high" signal and transmits a command signal to the adaptive control section 31a to determine whether the machining start is complete. In the described embodiments, the predetermined period after the start of electrical discharge machining is set by counting the number of jumps. As an alternative, the predetermined period can be set by simply setting a time which should equal this number of jumps. Further, the computation of the relief amount of the electrode from the deepest position by the detected value processor 23, which is performed per sampling can be performed per jump ( i.e., a difference between the deepest position during the machining electrode 1 lowering time and the past deepest position of the electrode), or the moving average of the relief amount of the electrode from the deepest position found per jump can be determined after several jumps. The process of finding the relief amount of the electrode from the deepest position is applicable to the relief amount of the electrode from the deepest position employed for the determination of machining start completion stored in the storage device 71. The deepest position during the machining electrode lowering time may be either of the highest position or the lowest position during the lowering time because whether either position has been selected only slightly changes the threshold value of the relief amount of the electrode from the deepest position employed for determining a fault and does not pose any problem in determining whether an electrical discharge machining fault has occurred. The most effective avoidant control of the electrode lowering time and electrode raising distance by means of the adaptive control section 31 has been described. However, a similar result is obtained by performing avoidant control using the electrical discharge dwell width and electrical discharge pulse width supplied by the machining power supply 22 or by performing the avoidant control using two or more of the electrode lowering time, electrode raising distance, electrical discharge dwell width, and electrical discharge pulse width combined. The determination of machining start completion when the output value of the detected value processor 23 falls below the determination reference value is made by transmitting a completion determination command value to the adaptive control section 31a when an accumulative counter or a counter (which counts continuously) which is provided after the determining circuit 72 or 74 has counted to a preset number. The control of returning to the machining conditions prior to the avoidance of the current machining conditions after the determination of machining start completion ( i.e., returning to the set conditions), may be performed by switching to the adaptive control unit (as described in Japanese Patent Publication No. 10769-1987, or Japanese Patent Disclosure Publication No. 107831-1981) and by appropriately controlling the machining conditions in accordance with the determination of the machining conditions, without returning the machining conditions to the pre-avoidance machining conditions after the determination of the machining start completion. The period setting means, fault determining means, and completion determining means which include the comparator, determining circuit, etc., are implemented in hardware but can also be implemented in software. For the hardware implementation, the determination time of the determining means is shortened and, as a result, the command signal is transmitted to the adaptive control section slower, posing no problem to the present invention. Referring to Fig. 15, there is shown a flow chart illustrating the software implementation of the period setting means 51, fault determining means 52, and completion determining means 53. The process starts with step 100, including any necessary initialization. Next, the process flows to step 101 where the number of jumps of the electrode from the start of the machining is counted. In step 102, a predetermined value (typically, in the range of about 25) is set. The number of jumps counted is then compared with the predetermined value in step 103. From step 103, the process flows to either step 104 or step 105 depending on the results of the comparison. If the number of jumps counted is less than the predetermined number, the process flows to step 104 where data ( i.e., the relief amount from the deepest position of the electrode) is read out from the detection value processor 23. In step 107, a threshold value, which is used as a reference to detect a fault, is set. A comparison is then made in step 108 such that if the detected value is greater than or equal to the threshold value, the process flows to step 111. On the other hand, if the detected value is less than the threshold value, the process returns back to the beginning at step 101. In step 111, a command signal is sent to the adaptive control section 31a to perform avoidant operation. Returning back to step 103, if the number of jumps counted is greater than or equal to the predetermined number, the process flows to step 104 where data ( i.e., the relief amount from the deepest position of the electrode) is read out from the detection value processor 23. Next, a second threshold value is determined. In step 108, the detected value is compared with the threshold value wherein the process flows to either step 104 or step 110. If the detected value is less than or equal to the threshold value, in steps 110 and 112, the machining process returns to its previous operation by sending a command signal to the adaptive control section. Finally, the above process terminates, step 113. It will be apparent to those skilled in the art that the invention, as described above, achieves an adaptive control unit for an electrical discharge machine which allows the relief amount of an electrode from the deepest position to be detected during a predetermined period from the start of electrical discharge machining effected by the approach of the electrode to a workpiece, and an electrical discharge machining fault to be determined in accordance with the detected value. In particular, when an electrode area is large at the start of electrical discharge machining, the control unit detects a fault only because an arc has occurred and performs avoidant control. Hence, the control unit allows adaptive control to be performed at the start of electrical discharge machining without generating arc. In addition, the control unit does not perform the avoidant control unless the arc phenomenon occurs and therefore does not affect the electrical discharge machining speed. Further, the control unit allows machining to be performed without affecting the electrical discharge machining speed by determining that the start of electrical discharge machining is complete when the relief amount of the electrode from the deepest position detected in the course of machining drops below a predetermined threshold value after the avoidant control of the electrical discharge machining fault, and by performing the control of returning to the pre-avoidance machining conditions. There has thus been shown a novel adaptive control unit for an electrical discharge machine which fulfills all the objects and advantages sought therefor. Many changes, modifications, variations, and other uses and applications of the subject invention, will, however, become apparent to those skilled in the art after considering the specification and the accompanying drawings which disclose preferred embodiments thereof.

Claims: An adaptive control apparatus for electric discharge machining comprising: detecting means (7, 23) for detecting a relief amount of a machining electrode from a deepest position thereof; judging means (41) for judging whether machining condition is normal or abnormal in response to an output of said detecting means; and adaptive control means (31) for producing machining command to subjecting a machining power source (22) to adaptive control in response to an output of said judging means, the judging means comprising: means (51) for determining a certain period of time from the start of the electric discharge machining process; means (52) for comparing the relief amount of the electrode with a first threshold level; means (53) for comparing the relief amount of the electrode with a second threshold level; and storing means (58) for storing predetermined machining conditions. An adaptive control apparatus as claimed in Claim 1, wherein said judging means (41) comprises means (69, 72) for restoring said machining conditions when said detected relief amount falls below a predetermined ratio of a maximum relief amount. An adaptive control apparatus as claimed in Claim 1, wherein said second predetermined threshold value is less than said first predetermined threshold value. An adaptive control apparatus as claimed in Claim 2, wherein said predetermined machining conditions comprise machining conditions employed prior to the adaptive control means (31) responding to judgement of an abnormal machining condition by said judging means (41). An adaptive control apparatus as claimed in Claim 4, wherein said machining conditions comprise a down time and raising distance of said electrode. An adaptive control apparatus as claimed in any one of Claims 2 to 5, wherein said predetermined ratio is within the range of 0.2 to 0.5. An adaptive control apparatus for electric discharge machining comprising: detecting means (7, 23) for detecting a relief amount of an electrode from a deepest position thereof; judging means (41) for judging whether machining condition is normal or abnormal in response to an output of said detecting means; and adaptive control means (31) for producing machining command to subjecting a machining power source (22) to adaptive control in response to an output of said judging means, the judging means comprising: means (51) for determining a certain period of time from the start of the electric discharge machining process; means (52) for comparing the relief amount of the electrode with a first threshold level; means (53) for comparing the relief amount of the electrode with an average value of the detected relief amount over several jumps of said electrode; and storing means (58) for storing predetermined machining conditions. An adaptive control apparatus as claimed in any preceding claim, wherein said means (52) for comparing the relief amount of the electrode with a first threshold value further comprises means (93) for comparing an average value of the detected relief amount over several jumps of said electrode with a third threshold value, said judging means (41) being arranged to judge the machining condition as normal when both said average value exceeds said third threshold value and said relief amount exceeds said first threshold value. An adaptive control apparatus as claimed in any preceding claim, wherein said time period determining means (51) comprises: a voltage divider (61) to detect when the voltage across said electrode and the workpiece falls below a predetermined level; a memory for storing said predetermined level; a comparator (63) for comparing said voltage across said electrode and said workpiece with said predetermined level; and a counter (64), responsive to an output of said comparator (63), for counting a number of jumps of said electrode. An adaptive control apparatus as claimed in claim 9, wherein said predetermined level is approximately 40 volts. An adaptive control apparatus claimed in any preceding claim, wherein said means (52) for comparing the relief amount of the electrode with a first threshold value comprises: a first memory for storing said first threshold level; and a first comparator (67) for comparing said detected relief value with said first threshold level. An adaptive control apparatus as claimed in any one of claims 1 to 6 or claims 8 to 11 other than as appended to claim 7, wherein said means (53) for comparing the relief amount of the electrode with a second threshold level comprises: a second memory for storing said second threshold level; and a second comparator (71) for comparing said detected relief value with said second threshold level. An adaptive control apparatus as claimed in any preceding claim, wherein said first threshold value is greater than said second threshold value. An adaptive control apparatus as claimed in claim 12 or in claim 13 as appended to claim 12, wherein said means (53) for comparing the relief amount of the electrode with a second threshold level further comprises: means (70) for selecting said first predetermined threshold value; and wherein: said second comparator is not only for comparing said detected relief value with said first predetermined threshold value but also for outputting a signal to indicate completion of the electrical discharge machining start. An adaptive control apparatus as claimed in claim 8 or in any one of claims 9 to 14 when appended to claim 8, wherein said means (93) for comparing an average value of the detected relief amount over several jumps of said electrode with a third threshold value comprises a third comparator and said means (52) for comparing the relief amount of the electrode with a first threshold value further comprises: an operator to select said first threshold value; a third memory for storing said third threshold value; and an AND circuit (94) responsive to respective outputs of said first and third comparators (67, 93) for outputting a signal indicative of a machining fault. An adaptive control apparatus as claimed in any preceding claim, wherein said adaptive control means (31) is arranged to increase a raising distance of said electrode and decreasing a lowering time of said electrode all at once, in response to said judging means (41) judging an abnormal machining condition.

Inventors: SASAKI SHIRO C O MITSUBISHI DE, SASAKI, SHIRO, C/O MITSUBISHI DENKI K.K.
Applicants: MITSUBISHI ELECTRIC CORP, MITSUBISHI DENKI KABUSHIKI KAISHA
Application year: 1991
Main classification: B23H7
IPC codes: B23H7, B23H1