Abstract:
A device for positioning a first and second conductive elements and, in particular, detecting contact at a gap therebetween without causing damage to either element. A pulse voltage, having a low duty, is applied to the gap. The occurrence of a contact is identified by a voltage drop at the gap, which is detected by comparing the gap voltage to a reference. A control circuit, comprising a flip-flop or one-shot operative in synchronism with the source of pulse voltage, generates a contact identification signal in response to the detection of a voltage drop at the gap.

Description:
FIELD OF THE INVENTION 
     The present invention relates generally to a device for positioning two relatively movable elements by means of detecting contact therebetween. The invention finds specific application in the positioning of a tool electrode with respect to a workpiece, for use with a machine tool such as an electric discharge machining system (hereinafter referred to as an &#34;EDM&#34;). In particular, the invention as exemplified in the embodiments herein described concerns a contact detecting device for judging the relative position of a wire electrode and a workpiece on the basis of a predetermined reference contact point. The tool electrode and the workpiece are moved relative to each other to bring a reference surface of the workpiece and a surface of the tool electrode into contact with each other to establish the reference contact point. 
     DESCRIPTION OF THE PRIOR ART 
     Generally, in an EDM for cutting a workpiece with electrical discharge generated between an electrode and the workpiece, the cutting proceeds by changing the relative positions of the electrode and the workpiece in accordance with the commands of a numerical control (&#34;NC&#34;) unit. The relative positions of the electrode and the workpiece must be precisely maintained in order to provide high cutting accuracy. To satisfy such a requirement, contact detecting devices for use with an EDM have been developed. Such devices have a contact position determining function that detects a point of contact between the electrode and the workpiece to subsequently determine the relative positions thereof. This device requires that the electrode and the workpiece be moved into direct contact with each other. 
     A prior art contact detecting device applied to a wirecut EDM for cutting a workpiece (hereinafter referred to as the &#34;work&#34;) with a wire electrode (hereinafter referred to as the &#34;wire&#34;) is illustrated in FIG. 7, where wire 1 is provided with cutting power from power supply 3. A work 2 is positioned with respect to the wire by a movable table 40, operated by orthogonal positioning motors 42 (x-direction) and 43 (y-direction) under control of a numerical controller 41. The wire 1 is connected by a first electrode to the cutting power supply 3 and receives a discharge current in order to effect a cut. The wire 1 also is connected by a second electrode to a diode 30, located in series with resistors 31 and 32, followed by a comparator 33. 
     In the prior art device shown in FIG. 7, the work 2 is EDMed by applying a pulsed voltage of approximately -100 V, for example, to the wire 1 from the cutting power supply 3. During this EDMing operation, the voltage applied to the wire 1 is blocked by the diode 30 which keeps the comparator 33 from receiving the voltage. In positioning the wire 1 and the work 2, a low d.c. voltage -V (e.g., -5 V to -15 V) is applied to wire 1 via the resistors 31, 32, the diode 30 and the second electrode. This low voltage may be applied during movement of the wire 1 and the work 2 relative to each other and into contact with each other. Contact of the wire 1 and the work 2 changes the input to the comparator 33. If this change is compared with a reference voltage V L , the result of the comparison can be used to detect the contact of the wire 1 and the work 2, to thereby judge the relative positions of the wire 1 and the work 2. 
     In the prior art device, however, corrosion may occur at a contact surface of the work 2 when the wire 1 and the work 2 are brought into contact with each other and a low voltage is applied. Since the wire 1 and the work 2 are contacted with each other several times in order to judge their relative position, a significant amount of corrosion will be generated on the contact surface of the work 2. This corrosion will reduce the accuracy of the measurement and reduce repeatability. If there is corrosion, the change in voltage input to the comparator 33 as a result of a contact will be delayed because the layer of oxide built up by the corrosion will act as an insulator. As a result of the delay, the work 2 will be in contact with the wire 1 for a period longer than desired, and contact will not be detected until after it has occurred, leading to inaccuracy in the contact position detection. 
     This problem is particularly acute when water is used as a dielectric. In a wirecut EDM employing water as the EDMing dielectric, if positioning is effected in the water or with water drops on the wire 1 and/or the work 2, corrosion rapidly occurs on the contact surface(s). If this corrosion causes the wire 1 to rest for an extended period against the wire 2, due to the delay in detecting a voltage change, the contact surface(s) will be damaged by electrolysis and the water will become ionized. Also, as the corrosion increases and/or electrolysis occurs and the delay is changed, there is a further reduction in repeatability. 
     A device for resolving the disadvantages of the prior art system is shown in FIG. 8, which illustrates a device disclosed in Japanese Kokai 1985-29246. This publication generally describes a wirecut EDM equipped with a contact detecting device for applying a voltage across a gap between the wire 1 and the work 2 (hereinafter referred to as the &#34;gap&#34;) and detecting the contact of the wire 1 and the work 2 in accordance with the voltage variations at the gap. A moving table 40 mounts the work 2 and is movable in X-axis and Y-axis directions. An NC control unit 41 connects to motors 42, 43 for moving the table 40 in accordance with commands from the NC control unit 41. A contact detecting device 4 is operative to judge whether or not the wire 1 and the work 2 are making contact with each other and to send a corresponding signal to the NC control unit 41. The work 2 and the moving table 40 are electrically connected to each other. 
     The contact detecting device 4 applies a bipolar pulse voltage to the gap for purposes of contact detection. The bipolar voltage acts to reduce the occurrence of discharge traces, corrosion, electrolysis, etc., thereby improving the detection accuracy of contact. The bipolar pulse voltage to be detected is produced by circuit 5 including a transistor 50, whose gate is connected to a reference oscillation signal 51 for switching the transistor 50 on/off. As transistor 50 is operated, a voltage V +  from a source connected to a collector of transistor 50 is switched across the primary coil of pulse transformer 53. A diode 52 is connected across the primary coil of the pulse transformer 53 and a current limiting resistor 54 is connected across the secondary coil of the transformer. A switch 55 selectively connects the secondary coil to ground. A contact detecting circuit 44 determines if contact has been made at the gap in accordance with the level of the gap voltage and provides a corresponding signal to the NC unit 41. The contact detecting circuit 44 comprises an absolute value circuit (ABS) 45 for full wave-rectifying the gap voltage, a filter circuit 46 for smoothing the full wave-rectified voltage, and a comparator 47 for comparing the full wave-rectified and filtered gap voltage with a reference voltage V 1  and transmitting a corresponding signal to the NC unit (41). 
     The contact position determining operation conducted by means of the contact detecting device of the prior art can be understood with reference to FIGS. 9A-9F, which illustrate the contact judging operation of the contact detecting device 4 using voltage waveforms from within the circuit in FIG. 8. 
     Referring to FIG. 8, when a command to request the contact position determining operation is transmitted to the NC control unit 41, the switch 55 is closed and the bipolar pulse voltage is applied to the gap by the bipolar pulse voltage generating circuit 5. The approaching speeds and approaching directions of the wire 1 and the work 2 are determined and the wire 1 and the work 2 move toward each other. At this time, the gap voltage is full-wave rectified and smoothed by the contact judging circuit 44. The comparator 47 is operative to compare the detected voltage with the predetermined reference voltage V 1  and judge whether or not the wire 1 and the work 2 are making contact with each other. The full-wave rectified and smoothed gap voltage becomes smaller than the reference voltage V 1 , as the wire 1 and the work 2 approach and touch each other. When this occurs, a signal indicating the occurrence of contact is sent to the NC control unit 41 by the contact judging circuit 44. The control unit causes the relative wire and work movement at the gap to stop, and the contact position determining operation is complete. 
     FIG. 9A shows the &#34;open&#34; and &#34;contact&#34; state of the wire 1 and work 2 over a period of time. The gap voltage, as seen in FIG. 9B, will vary between a positive peak and a negative peak during the contact position determining operation with a crossing point at P1, so long as the transistor 50 is conducting, during period T on . When the transistor 50 is not conducting during period T off , the gap voltage is zero. As seen by a comparison of FIGS. 9A and 9B, the magnitude of the gap voltage during T on  is reduced as contact is made between the wire 1 and work 2, since the work is electrically connected to the table 40, which is at a lower voltage as seen in FIG. 8. The gap voltage changes as the wire 1 and work 2 are brought in and out of contact, and as the transistor 50 is switched ON and OFF. 
     As seen in FIGS. 9C and 9D, respectively, the gap voltage is rectified by the absolute value circuit 45 and smoothed by circuit 46 before being applied to the comparator 47. 
     As seen from FIG. 9E, the comparator will provide an output only when the filtered gap voltage is less than the reference voltage V 1 . Once this transition occurs, the contact detecting device judges that the wire 1 and work 2 are in contact, as seen in FIG. 9F. 
     However, as compared to actual gap changes, the judgment of the contact detecting device 44 as to whether or not the wire 1 and the work 2 are making contact with each other includes a delay, due to the absolute value circuit 45 and the filter circuit 46. In particular, an extremely large time constant must be set for the filter circuit 46 in order to avoid misjudging non-contact as contact during the time when the pulse voltage is not applied (T off ) and the time when the pulse voltage polarity is switched (P1). As a result, it is impossible to accurately and reliably judge subtle changes of the gap state, and it is inevitable that the wire will contact the work for some time before contact is detected, with the consequent disadvantages. 
     In order to decrease the time constants of the absolute value circuit 45 and filter circuit 46, for purposes of reducing the delay in contact determination, it is necessary to shorten the period T off  of the pulse voltage 51 and to reduce the peak to peak voltage thereof. But in such case, the duty of the detection pulse is high, the positive and negative sides of the bipolar pulse are nearly symmetrical, and a large current will flow due to electrolysis in water when the wire 1 and work 2 are adjacent to or in contact with each other. As a result, the wire 1 and work 2 will be damaged, resulting in poor positioning repeatability and unreliable contact detection. 
     A highly similar prior art circuit is shown in U.S. Pat. No. 4,654,497 to Obara. An extended discussion of this reference is not necessary because of its similarity to the FIG. 8 circuit and its concurrent disadvantages. 
     SUMMARY OF THE INVENTION 
     It is, accordingly, an object of the present invention to overcome the disadvantages of the prior art by providing a contact position determining device which will minimize damage to the elements to be contacted. 
     It is another object of the present invention to provide a contact position determining device that will ensure high detection sensitivity. 
     It is a further object of the present invention to provide a contact position determining device that will enable precision positioning at the time of contact position determination. 
     The foregoing objects are accomplished in the present invention by providing a contact detecting device that repeatedly applies an asymmetrical bipolar pulse voltage to a gap between a tool electrode and a workpiece and detects contact of the tool electrode and the workpiece in accordance with a change in the asymmetrical bipolar pulse voltage, the voltage being provided by a low-duty, asymmetrical bipolar pulse voltage generating current. 
     The above objects also are achieved by providing a contact detecting device, further comprising a contact judging circuit for detecting the high-peak level of an asymmetrical bipolar pulse voltage applied to the gap in synchronization with a cycle of the asymmetrical bipolar pulse voltage and for judging whether or not the tool electrode and the workpiece are making contact with each other. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a circuit diagram of a contact detecting device for use with a wirecut EDM according to one embodiment of the present invention. 
     FIG. 2 is a circuit diagram illustrating one embodiment of faulty pulse detecting means of the contact detecting device of the present invention. 
     FIGS. 3A-3G are operation diagrams and waveforms of the embodiment of the present invention illustrated in FIGS. 1 and 2. 
     FIG. 4 is a circuit diagram illustrating another embodiment of an interface of the faulty pulse detecting means of the present invention. 
     FIG. 5 is a circuit diagram illustrating another embodiment of a signal forming portion of the faulty pulse detecting means of the present invention. 
     FIGS. 6A-6F are operation diagrams and waveforms for an embodiment of the present invention. 
     FIG. 7 is a circuit diagram of a contact detecting device known in the prior art. 
     FIG. 8 is a circuit diagram of another prior art contact detecting device which solves some disadvantages of the prior art shown in FIG. 7. 
     FIGS. 9A-9F are operation diagrams and waveforms for the prior art circuit shown in FIG. 8. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     FIG. 1 illustrates one embodiment of the present invention and provides a general view of a wirecut EDM equipped with a wire-work contact detecting device. In FIG. 1, like numerals indicate like or corresponding parts in FIG. 8. FIG. 1 includes a faulty pulse detecting circuit 10, which detects the high-peak level of an asymmetrical bipolar pulse voltage applied to the gap, in synchronization with the cycle of the asymmetrical bipolar pulse voltage, judges whether the wire 1 and the work 2 are making contact with each other, and transmits a corresponding signal to the NC control unit (41). 
     FIG. 2 illustrates one embodiment of the faulty pulse detecting circuit 10. An interface 11 is used for converting an analog signal applied to the gap into a binary signal. A signal forming circuit 12 is used to determine if contact has been made at the gap, in accordance with the gap signal digitized by the interface 11, and to form a binary signal to be transmitted to the NC unit 41. In the interface 11, a comparator 21 compares the gap voltage, as seen in FIG. 3B, with the reference voltage V 2  and outputs a binary signal having &#34;high&#34; magnitude Vcc or &#34;low&#34; magnitude 0, as seen in FIG. 3C, denoting whether or not the gap voltage exceeds the threshold voltage V 2 . In the signal forming circuit 12, an inverter 22 is used to invert a reference oscillation signal 51A, having a magnitude Vcc, as seen in FIG. 3D. Signal 51A also controls the on/off switching of transistor 50 in FIG. 1. The inverted signal is seen in FIG. 3E. A flip-flop 23 forms signals identifying contact and non-contact at the gap, in synchronization with the detection pulse, as seen in FIG. 3F. Specifically, the output of flip-flop 23 at terminal Q is generated in accordance with the signal inverted by the inverter 22 (input to terminal T) and the signal binarized by the interface 11 (input to terminal D). The flip-flop 23 continues outputting the state of input D until the instant when the next leading edge of input T occurs, as seen in FIGS. 3E and 3F. 
     Operation of the embodiment will now be described with reference to FIGS. 1, 2 and 3A-3G. FIGS. 3A-3G illustrate operating conditions and waveforms relevant to the contact position determining operation in a wirecut EDM employing the contact detecting device shown in FIGS. 1 and 2. 
     Initially, when a command requesting conduct of the contact position determining operation is transmitted to the NC control unit 41, the switch 55 is closed. As a result, a low-duty, asymmetrical bipolar pulse voltage is applied to the gap by the bipolar pulse voltage generating circuit 5A. The asymmetrical bipolar pulse voltage is generated on the secondary side of the pulse transformer 53 by applying a single-polar pulse to a combination of the primary side of the pulse transformer 53 and the diode 52. The pulse leading edge side, i.e., the side on which voltage is not cut by the diode 52, has a high peak value. Approaching speeds and approaching directions for the wire 1 and the work 2 are determined, and movement proceeds. 
     At this time, the faulty pulse detecting circuit 10 periodically compares the gap voltage, i.e., the high-peak voltage of the asymmetrical bipolar pulse voltage (FIG. 3B), with reference voltage V 2  in synchronization with the leading edge of the single-polarity pulse applied to the primary side of the pulse transformer 53. If the actual contact condition of the wire and the work is represented by FIG. 3A, then a judgment of the contact detecting device as seen in FIG. 3G is desired, showing a relatively minor delay in identifying the contact. To this end, if the high-peak voltage of the asymmetrical bipolar pulse voltage is equal to or less than V 2 , as seen in FIG. 3B, the comparator fails to produce a pulse in response to the bipolar pulse voltage as seen in FIG. 3C. In the absence of this pulse a signal indicating a contact is sent to the NC unit 41 for the period of the detection pulse cycle only (FIG. 3F). The approaching of the wire 1 and the work 2 is stopped and the contact position determining operation is complete. 
     The contact is detected in complete synchronization with the asymmetrical bipolar pulse voltage, and the delay of detection is made less than the period of the detection pulse. Since the determination of the contact is only made at the high peak of the detection pulse applied to the gap, the pulse voltage no-application time T off  and the voltage at the low peak of the detection pulse are not a factor. This allows the detection pulse supplied to the gap to have a significantly lower duty. In other words, pulse width T on  can be reduced to a value of several μs or less, which is small as compared to the pulse cycle of up to ten ms or more. Further, the low-peak voltage of the detection pulse can be significantly low as compared to the high-peak voltage. Since the duty of the detection pulse supplied to the gap can be significantly lowered, only a small current flows due to electrolysis when the wire 1 and work 2 are adjacent to or in contact with each other. Accordingly, little if any damage to the wire 1 and work 2 will occur and the accuracy of the device is not degraded by repeated positioning. 
     The cycle of the detection pulse is another factor having great influence on the generation of damage and detection accuracy. It is assumed that as the pulse cycle becomes longer, the damage is less and the detection delay increases. When a typical table feed rate is used for general positioning, if the pulse cycle is less than about 10 msec, an error will rarely result from the delay and any subtle change in the gap may be detected. In addition, since the low peak voltage of the detection pulse can be held at a low level, the high-peak voltage can be increased to a relatively high level and the large voltage difference at the gap between an open gap and contact allows contact to be detected with higher sensitivity. 
     It will be appreciated that a negative peak voltage of the asymmetrical bipolar pulse may be applied to the wire 1 instead of a positive peak voltage as in the foregoing embodiment. 
     As another embodiment of the interface 11 shown in FIG. 2, a photocoupler illustrated in FIG. 4 may be utilized. In FIG. 4, a photocoupler 24 includes a transistor 24b that is connected to a voltage V cc  and is on/off controlled in accordance with the value of the current flowing in a diode 24b. A diode 25 serves to protect the photocoupler 24 from the application of excessive reverse voltage. A variable resistor 26 is used for controlling the current flowing in the diode 24a of the photocoupler 24 and determining a gap voltage value for changing the on/off state of the transistor 24b in the photocoupler 24. A resistor 27 connects the photocoupler transistor 24b to ground. 
     In operation, if the transistor 24b of the photocoupler 24 is switched ON when the value of the current flowing in the diode 24a of the photocoupler 24 is greater than I 2 , and the transistor is switched OFF when the value is smaller than I 2 , the resistance value of the variable resistor 26 is V 2  /I 2 . Then, a &#34;high&#34; signal appears at the output line 28 when the gap voltage value is greater than V 2 , a &#34;low&#34; signal appears at 28 when the value is smaller than V 2 , and the relationship between the gap voltage and the signal transmitted to the signal forming circuit 12 is the same as that shown in FIGS. 2 and 3. 
     As another embodiment of the signal forming circuit 12 shown in FIG. 2, a one-shot circuit 29 illustrated in FIG. 5 also may be utilized. In the one-shot circuit shown in FIG. 5, output Q is switched high when a leading edge signal enters input T and is held high for a predetermined period of time (T H ). When T H  has elapsed, output Q is switched low and held low until the leading edge signal enters input T again. If the leading edge signal enters input T when output Q is high, output Q is held high for T H  from that instant. Therefore, contact at the gap can be detected in synchronization with the cycle of the detection pulse without the input of a reference oscillation signal 3. Since the signal holding time T H  may be set to any value, a T H  value slightly longer than the detection pulse cycle will provide substantially equivalent operation to that shown in FIGS. 2 and 3. 
     If a contact judgment is not desired in response to subtle changes at the gap, resulting from, for example, minor vibration of the wire 1 or conductive materials attaching to the wire 1, the addition of another one-shot circuit to a subsequent stage of the faulty pulse detecting circuit 10 will retain the signal sent to the NC unit 41 at the time of a state change for a period several times longer than the period of the detection pulse applied to the gap. As a result, the speed of contact judgment may be lowered without varying the duty, frequency, peak voltage, etc. of the detection pulse, and contact/non-contact judgment may be avoided for subtle state changes in the gap. Additional one shot circuits may be placed in series where vibration is excessive. 
     FIGS. 6A-6F illustrate timing diagrams and operation charts for a circuit having a one-shot circuit at a subsequent stage of the faulty pulse detecting circuit 10, with a signal holding time T H  twice as long as the period T 1  of the asymmetrical alternating-current pulse voltage. In this case, FIG. 6A identifies the actual contact condition of the wire and the work while FIG. 6B illustrates the gap voltage, FIG. 6C the comparator output from circuit 11 and FIG. 6D the output from circuit 12. When a one shot is applied between the circuit 10 and the NC unit 41, the signal denoting a contact is not transmitted to the NC unit 41 unless contact is maintained for a continuous period of time twice the period of the detection pulse, as seen in FIG. 6E. The contact judgment timing is seen in FIG. 6F. 
     It will be recognized that the present invention may be used as a contact detector in an engraving EDM in addition to the wirecut EDM as described previously. Moreover, the invention may be applied to any other device requiring contact detection, so long as contact is detectable by electrical means. 
     It will be apparent that the present invention, as described above, can achieve a contact detecting device which will minimize damage to the contacting elements by applying a low-duty, asymmetrical bipolar pulse voltage to the gap between the elements, detecting the high-peak level of an asymmetrical bipolar pulse voltage by means of faulty pulse detecting means, and judging from the detection whether or not the elements are making contact with each other. The invention also lowers significantly the reduction of contact positioning accuracy by eliminating the occurrence of detection delay. 
     While the present invention has been described using several preferred embodiments, it is not intended to be limited thereto and its full scope is defined by the appended claims.