Tool setting interface circuit with anti-interference function
By designing a tool-to-de-set interface circuit including isolation, filtering, free-current, discharge and current limiting modules, the problem of signal susceptible to noise interference in CNC systems is solved, and efficient anti-interference of tool-to-de-setting signals is achieved, and the stability and reliability of the system are enhanced.
Patent Information
- Application Number
- CN202421672739.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2034-07-15
AI Technical Summary
In CNC systems, signals are susceptible to noise interference during transmission, resulting in malfunction of the tool adjuster.
A tool adapter interface circuit with anti-interference function is designed, including a first isolation module, a first filter module, a free-current module, a first drain module and a first current limiting module. Through these modules, the tool adapter signal is isolated, filtered, free-current, drained and current limiting to enhance the anti-interference ability of the signal.
It effectively enhances the anti-interference ability of the knife signal, reduces the occurrence of malfunctions, ensures the stability and reliability of the circuit, and reduces the design and manufacturing costs.
Smart Images

Figure CN223024405U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of circuits, and particularly relates to a tool setting interface circuit with an anti-interference function. Background Art
[0002] In a numerical control system, a user can input a signal through an external device, and then, an FPGA chip receives the signal. The FPGA chip can control a tool setter based on the signal, so that the tool setter can perform tool setting operations, including tool direction identification, calculation, compensation, storage, etc. However, during the signal transmission process, the signal is vulnerable to noise interference, and thus the signal is likely to cause the tool setter to malfunction.
[0003] Therefore, it is necessary to provide a tool setting interface circuit with an anti-interference function to solve the above technical problems. Summary of the Utility Model
[0004] The utility model provides a tool setting interface circuit with an anti-interference function, which effectively solves the technical problem that the signal is likely to cause the tool setter to malfunction due to noise interference.
[0005] The utility model provides a tool setting interface circuit with an anti-interference function for transmitting a tool setting signal of an external device to an FPGA chip, and the FPGA chip is used to control a tool setter to perform tool setting operations based on the tool setting signal. The circuit includes:
[0006] A first isolation module, one end of which is connected to the external device and the other end is connected to the FPGA chip. The isolation module is used to isolate the tool setting signal and transmit the tool setting signal to the FPGA chip;
[0007] A first filtering module, which is connected in parallel with the first isolation module and is used to filter the tool setting signal;
[0008] A freewheeling module, which is connected in parallel with the isolation module and is used to perform freewheeling operation on the tool setting signal;
[0009] A first discharging module, which is connected in parallel with the isolation module and is used to discharge the interference current in the tool setting signal;
[0010] A first current limiting module, which is connected in series between the external device and the first isolation module and is used to limit the current of the tool setting signal.
[0011] Furthermore, the first isolation module includes a first high-speed optocoupler. The first high-speed optocoupler includes a first input pin and a first output pin. The first input pin is connected to the external device, and the first output pin is connected to the FPGA chip. The first high-speed optocoupler is used to isolate the tool setting signal.
[0012] Further, the first filtering module includes a first filtering capacitor, and the first filtering capacitor is connected in parallel with the first input pin.
[0013] Further, the first current limiting module includes a first current limiting resistor. One end of the first current limiting resistor is connected to the external device, and the other end of the first current limiting resistor is connected to the first input pin.
[0014] Further, the first discharging module includes a first discharging resistor, and the first discharging resistor is connected in parallel with the first current limiting resistor.
[0015] Further, the freewheeling module includes a fast recovery diode, and the fast recovery diode is connected in series with the first discharging resistor.
[0016] Further, the tool setting interface circuit with anti-interference function is used to transmit the sensor signal of the external device to the FPGA chip. The FPGA chip is used to match the type of the sensor based on the sensor signal. The tool setting interface circuit with anti-interference function further includes
[0017] a second isolation module, one end of which is connected to the external device and the other end is connected to the FPGA chip. The second isolation module is used to isolate the sensor signal and transmit the sensor signal to the FPGA chip;
[0018] a second filtering module, which is connected in parallel with the second isolation module and is used to filter the sensor signal;
[0019] a second discharging module, which is connected in parallel with the second isolation module and is used to discharge the interference current in the sensor signal;
[0020] a second current limiting module, which is connected in series between the external device and the second isolation module and is used to limit the current of the sensor signal.
[0021] Further, the second isolation module includes a second high-speed optocoupler. The second high-speed optocoupler includes a second input pin and a second output pin. The second input pin is connected to the external device, and the second output pin is connected to the FPGA chip. The second high-speed optocoupler is used to isolate the tool setting signal;
[0022] The second current limiting module includes a second current limiting resistor. One end of the second current limiting resistor is connected to the external device, and the other end of the second current limiting resistor is connected to the second input pin;
[0023] The second filtering module includes a second filtering capacitor, and the second filtering capacitor is connected in parallel with the second current-limiting resistor;
[0024] The second discharging module includes a second discharging resistor, and the second discharging resistor is connected in parallel with the second current-limiting resistor.
[0025] Further, the tool setting interface circuit with anti-interference function is used to transmit the over-travel signal of an external device to the FPGA chip, and the FPGA chip is used to control the tool setter to perform an over-travel operation based on the over-travel signal. The tool setting interface circuit with anti-interference function further includes,
[0026] A third isolation module, with one end connected to the external device and the other end connected to the FPGA chip. The third isolation module is used to isolate the over-travel signal and transmit the over-travel signal to the FPGA chip;
[0027] A third filtering module, connected in parallel with the third isolation module, for filtering the over-travel signal;
[0028] A third discharging module, connected in parallel with the third isolation module, for discharging the interference current in the over-travel signal;
[0029] A third current-limiting module, connected in series between the external device and the third isolation module, for limiting the current of the over-travel signal.
[0030] Further, the third isolation module includes a third high-speed optocoupler. The third high-speed optocoupler includes a third input pin and a third output pin. The third input pin is connected to the external device, and the third output pin is connected to the FPGA chip. The third high-speed optocoupler is used to isolate the over-travel signal;
[0031] The third current-limiting module includes a third current-limiting resistor. One end of the third current-limiting resistor is connected to the external device, and the other end of the third current-limiting resistor is connected to the third input pin;
[0032] The third filtering module includes a third filtering capacitor, and the third filtering capacitor is connected in parallel with the third current-limiting resistor;
[0033] The third discharging module includes a third discharging resistor, and the third discharging resistor is connected in parallel with the third current-limiting resistor.
[0034] Compared with the prior art, the beneficial effects of the present utility model are as follows: The present utility model provides a tool setting interface circuit with anti-interference function. The tool setting interface circuit is used to transmit the tool setting signal of an external device to an FPGA chip, and the FPGA chip is used to control a tool setter to perform tool setting operations based on the tool setting signal. Moreover, the tool setting interface circuit includes a first isolation module, a first filtering module, a freewheeling module, a first discharging module, and a first current limiting module. The freewheeling module can perform freewheeling operations on the tool setting signal, and the first current limiting module can limit the current of the tool setting signal. The first isolation module can perform isolation operations on the tool setting signal, the first filtering module filters out interference clutter of the tool setting signal, and the first discharging module can discharge the interference current of the tool setting signal. Therefore, the tool setting interface circuit with anti-interference function has strong anti-interference ability. The tool setting signal is transmitted through the tool setting interface circuit, which can enhance the anti-interference ability of the tool setting signal and ensure the stability and reliability of the overall circuit. Therefore, the risk of signal transmission through the tool setting interface circuit is small, it is effective, fast, and has strong real-time performance. And, the tool setting interface circuit with anti-interference function can effectively solve the technical problem that the tool setter is prone to malfunction due to noise interference of the signal. The circuit structure of the tool setting interface circuit is relatively simple, so the design and manufacturing costs of this circuit are also relatively low. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present utility model or the prior art, the following briefly introduces the drawings required to be used in the embodiments. The drawings described below are only the corresponding drawings of some embodiments of the present utility model.
[0036] Figure 1 It is a block diagram of an embodiment of the tool setting interface circuit with anti-interference function of the present utility model.
[0037] Figure 2 It is one of the circuit diagrams of an embodiment of the tool setting interface circuit with anti-interference function of the present utility model.
[0038] Figure 3 It is the second circuit diagram of an embodiment of the tool setting interface circuit with anti-interference function of the present utility model.
[0039] Figure 4 It is the third circuit diagram of an embodiment of the tool setting interface circuit with anti-interference function of the present utility model.
[0040] Figure 5 It is the fourth circuit diagram of an embodiment of the tool setting interface circuit with anti-interference function of the present utility model.
[0041] Figure 6 It is the fifth circuit diagram of an embodiment of the tool setting interface circuit with anti-interference function of the present utility model.
[0042] Figure 7 This is the sixth circuit diagram of the tool setting interface circuit with anti-interference function of the present utility model.
[0043] In the figure, 10 is the tool setting interface circuit; 11 is the first isolation module; 111 is the first input pin; 112 is the first input pin; 113 is the first input pin; 114 is the first input pin; 115 is the first output pin; 116 is the first output pin; 117 is the first output pin; 118 is the first output pin; 12 is the first filtering module; 13 is the freewheeling module; 14 is the first discharging module; 15 is the first current limiting module; 16 is the second isolation module; 161 is the second input pin; 162 is the second input pin; 163 is the second input pin; 164 is the second input pin; 165 is the second output pin; 166 is the second output pin; 167 is the second output pin; 168 is the second output pin; 17 is the second filtering module; 171 is the second discharging module; 172 is the second current limiting module; 18 is the third isolation module; 181 is the third input pin; 182 is the third input pin; 113 is the third input pin; 184 is the third input pin; 185 is the third output pin; 186 is the third output pin; 187 is the third output pin; 188 is the first output pin; 19 is the third filtering module; 191 is the third discharging module; 192 is the third current limiting module; 20 is the external device; 21 is the FPGA chip. Detailed implementation manners
[0044] Next, the technical solutions in the embodiments of the present utility model will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present utility model. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all the embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present utility model.
[0045] The directional terms mentioned in the present utility model, such as "up", "down", "front", "back", "left", "right", "inside", "outside", "side", "top" and "bottom", etc., are only references to the orientation of the accompanying drawings. The directional terms used are for explaining and understanding the present utility model, rather than for limiting the present utility model.
[0046] The terms "first", "second", etc. in the present utility model are only for descriptive purposes and cannot be understood as indicating or implying relative importance, nor as a limitation on the sequence.
[0047] In the figure, units with similar structures are denoted by the same reference numerals.
[0048] Please refer to Figure 1, the present utility model provides a tool setting interface circuit 10 with anti-interference function. The tool setting interface circuit 10 is used to transmit the tool setting signal of the external device 20 to the FPGA chip 21, and the FPGA chip 21 is used to control the tool setter to perform tool setting operations based on the tool setting signal. Moreover, the tool setting interface circuit 10 includes a first isolation module 11, a first filtering module 12, a freewheeling module 13, a first discharging module 14, and a first current limiting module 15.
[0049] Please refer to Figure 1 , one end of the first isolation module 11 is connected to the external device 20, and the other end of the first isolation module 11 is connected to the FPGA chip 21. The isolation module can perform isolation operations on the tool setting signal, and the isolation module transmits the tool setting signal to the FPGA chip 21. The first filtering module 12 is connected in parallel with the first isolation module 11, and the first filtering module 12 is used to filter the tool setting signal. The freewheeling module 13 is connected in parallel with the isolation module, and the freewheeling module 13 can perform freewheeling operations on the tool setting signal. The first discharging module 14 is connected in parallel with the isolation module, and the first discharging module 14 can discharge the interference current in the tool setting signal. The first current limiting module 15 is connected in series between the external device 20 and the first isolation module 11, and the first current limiting module 15 can perform current limiting operations on the tool setting signal.
[0050] Please refer to Figure 1 , the tool setting interface circuit 10 with anti-interference function can also transmit the sensor signal of the external device 20 to the FPGA chip 21, and the FPGA chip 21 is used to match the type of the sensor based on the sensor signal. Among them, the tool setting interface circuit 10 with anti-interference function further includes a second isolation module 16, a second filtering module 17, a second discharging module 171, and a second current limiting module 172. One end of the second isolation module 16 is connected to the external device 20, and the other end of the second isolation module 16 is connected to the FPGA chip 21. The second isolation module 16 can perform isolation operations on the sensor signal, and the second isolation module 16 transmits the sensor signal to the FPGA chip 21. The second filtering module 17 is connected in parallel with the second isolation module 16, and the second filtering module 17 can filter the sensor signal. The second discharging module 171 is connected in parallel with the second isolation module 16, and the second discharging module 171 is used to discharge the interference current in the sensor signal. The second current limiting module 172 is connected in series between the external device 20 and the second isolation module 16, and the second current limiting module 172 is used to perform current limiting operations on the sensor signal.
[0051] Please refer to Figure 1, The tool setting interface circuit 10 with anti-interference function is used to transmit the over-travel signal of the external device 20 to the FPGA chip 21, and the FPGA chip 21 is used to control the tool setter to perform over-travel operations based on the over-travel signal. Among them, the tool setting interface circuit 10 with anti-interference function further includes a third isolation module 18, a third filtering module 19, a third discharge module 191, and a third current limiting module 192. One end of the third isolation module 18 is connected to the external device 20, and the other end of the third isolation module 18 is connected to the FPGA chip 21. The third isolation module 18 can perform isolation operations on the over-travel signal and transmit the over-travel signal to the FPGA chip 21. The third filtering module 19 is connected in parallel with the third isolation module 18, and the third filtering module can perform filtering operations on the over-travel signal. The third discharge module 191 is connected in parallel with the third isolation module 18, and the third discharge module 191 can discharge the interference current in the over-travel signal. The third current limiting module 192 is connected in series between the external device 20 and the third isolation module 18, and the third current limiting module 192 is used to perform current limiting operations on the over-travel signal.
[0052] Please refer to Figures 2 to 7 , The following is a detailed description of the specific structure of the tool setting interface circuit 10:
[0053] Please refer to Figures 2 to 5 , The first isolation module 11 includes a first high-speed optocoupler, and the first high-speed optocoupler includes a first input pin and a first output pin. The first input pin is connected to the external device 20, and the first output pin is connected to the FPGA chip 21. The first high-speed optocoupler is used to perform isolation operations on the tool setting signal. Among them, the first high-speed optocoupler includes a first high-speed optocoupler U701, a first high-speed optocoupler U702, a first high-speed optocoupler U704, and a first high-speed optocoupler U705. The first input pin includes a first input pin 111, a first input pin 112, a first input pin 113, and a first input pin 114, and the first output pin includes a first output pin 115, a first output pin 116, a first output pin 117, and a first output pin 118.
[0054] The external device 20 can output a tool setting signal, and then the first input pin of the high-speed optocoupler can receive this tool setting signal. The high-speed optocoupler transmits electrical signals through light, and through the electro-optical-electrical conversion, the high-speed optocoupler can play the role of input and output isolation. Since the input and output of the high-speed optocoupler are isolated from each other, and the electrical signal transmission has characteristics such as unidirectionality, the high-speed optocoupler has good electrical insulation ability and anti-interference ability. The high-speed optocoupler can isolate the tool setting signal, completely isolating the power supply and the tool setting signal, effectively improving the reliability of the circuit. Moreover, the high-speed optocoupler can isolate the external device 20 from the FPGA chip 21, and can avoid damage to the PFGA chip due to the excessive voltage value of the tool setting signal. Furthermore, the tool setting signal after the isolation operation is transmitted to the FPGA chip 21 through the first output pin of the high-speed optocoupler.
[0055] Please refer to Figures 2 to 5 ., the first high-speed optocoupler is connected to the 5V power supply VCC5V and the 3.3V power supply VCC3.3. The tool setting interface circuit 10 with anti-interference function further includes pull-up resistors, and the pull-up resistors give a high level to the output end of the first high-speed optocoupler. Among them, the pull-up resistors include pull-up resistor R705, pull-up resistor R707, pull-up resistor R706, pull-up resistor R708, pull-up resistor R721, pull-up resistor R723, pull-up resistor R722, and pull-up resistor R724.
[0056] Please refer to Figures 2 to 5 ., the first filtering module 12 includes first filtering capacitors, and the first filtering capacitors are connected in parallel with the first input pin. Among them, the first filtering capacitors include first filtering capacitor C701, first filtering capacitor C702, first filtering capacitor C705, and first filtering capacitor C706. The first filtering capacitors can filter out interference components such as clutter and noise in the tool setting signal. Therefore, the tool setting signal can be stably input into the first high-speed optocoupler. The external device 20 can output a tool setting signal, and the tool setting signal after the filtering operation is input into the first high-speed optocoupler, and then the first high-speed optocoupler transmits the tool setting signal to the FPGA chip 21.
[0057] Please refer to Figures 2 to 5 ., the first current limiting module 15 includes first current limiting resistors, one end of the first current limiting resistor is connected to the external device 20, and the other end of the first current limiting resistor is connected to the first input pin. Among them, the first current limiting resistors include first current limiting resistor R702, first current limiting resistor R704, first current limiting resistor R718, and first current limiting resistor R720. The first current limiting resistor can perform a current limiting operation on the tool setting signal, so as to avoid damage to the first high-speed optocoupler and the FPGA chip 21 due to excessive current of the tool setting signal. The external device 20 can output a tool setting signal, and the tool setting signal after the current limiting operation is input into the first high-speed optocoupler, and then the first high-speed optocoupler transmits the tool setting signal to the FPGA chip 21.
[0058] Please refer to Figures 2 to 5 Figures 2 to 5 , the first discharge module 14 includes a first discharge resistor, and the first discharge resistor is connected in parallel with the first current-limiting resistor. Among them, the first discharge resistor includes a first discharge resistor R701, a first discharge resistor R703, a first discharge resistor R717, and a first discharge resistor R719. The setting of the first discharge resistor causes the conduction current on the input side of the first high-speed optocoupler to be equal to the conduction current plus the current flowing through the resistor, thereby increasing the threshold value of the conduction current of the first high-speed optocoupler. In the case where a small current in the environment may be sensed, the situation of mis-conduction can be effectively suppressed. The first discharge resistor can provide a path for the interfering weak current signal, discharge the interfering weak current, and prevent the first high-speed optocoupler from mis-conducting. Moreover, the first discharge resistor can also perform voltage division with the current-limiting resistor. The external device 20 can output a tool setting signal, and the tool setting signal after the discharge operation is input to the first high-speed optocoupler, and then the first high-speed optocoupler transmits the tool setting signal to the FPGA chip 21.
[0059] Please refer to Figures 2 to 5 Figures 2 to 5 , the freewheeling module 13 includes a fast recovery diode, and the fast recovery diode is connected in series with the first discharge resistor. Among them, the fast recovery diode includes a fast recovery diode D701, a fast recovery diode D702, a fast recovery diode D703, and a fast recovery diode D704. The fast recovery diode has the function of freewheeling, shortens the reverse recovery time of the tool setting signal, and effectively improves the response speed of the tool setting interface circuit 10, ensuring the overall stability and reliability of the tool setting interface circuit 10. The external device 20 can output a tool setting signal, and the tool setting signal after the freewheeling operation is input to the first high-speed optocoupler, and then the first high-speed optocoupler transmits the tool setting signal to the FPGA chip 21.
[0060] The core components of the tool setter consist of a high-precision probe, a tool setting probe with high hardness and high wear resistance, and a signal transmission interface. The tool setting probe is used to contact the tool, and through the flexible support rod installed under it, transmit the force to the high-precision probe. The probe can issue a on-off signal based on the tool setting signal of the external device 20, and this on-off signal can be transmitted to the numerical control system through the signal transmission interface. Thus, the numerical control system performs tool setting operations on the tool. Among them, the tool setting operations include tool direction recognition, calculation, compensation, storage, etc.
[0061] Please refer to Figure 6, the second isolation module 16 includes a second high-speed optocoupler. The second high-speed optocoupler includes a second input pin and a second output pin. The second input pin is connected to the external device 20. The second output pin is connected to the FPGA chip 21. The second high-speed optocoupler is used to isolate the tool setting signal. The second input pin is connected to the external device 20, and the second output pin is connected to the FPGA chip 21. The second high-speed optocoupler is used to isolate the sensor signal. Among them, the second high-speed optocoupler includes the second high-speed optocoupler U7031, the second high-speed optocoupler U7032, the second high-speed optocoupler U7033, and the second high-speed optocoupler U7034. The second input pin includes the second input pin 161, the second input pin 162, the second input pin 163, and the second input pin 164. The second output pin includes the second output pin 165, the second output pin 166, the second output pin 167, and the second output pin 168.
[0062] The external device 20 can output a sensor signal, and then the second input pin of the second high-speed optocoupler can receive the sensor signal. The second high-speed optocoupler transmits electrical signals through light, and through the electro-optical-electrical conversion, the second high-speed optocoupler can play the role of input and output isolation. Since the input and output of the second high-speed optocoupler are isolated from each other, and the electrical signal transmission has characteristics such as unidirectionality, the second high-speed optocoupler has good electrical insulation ability and anti-interference ability. The second high-speed optocoupler can isolate the sensor signal, completely isolate the power supply and the sensor signal, and effectively improve the reliability of the circuit. Moreover, the second high-speed optocoupler can isolate the external device 20 from the FPGA chip 21, and can avoid damage to the PFGA chip due to excessive voltage value of the sensor signal. Furthermore, the sensor signal after the isolation operation is transmitted to the FPGA chip 21 through the second output pin of the second high-speed optocoupler.
[0063] Please refer to Figure 1 , the second current-limiting module 172 includes a second current-limiting resistor. One end of the second current-limiting resistor is connected to the external device 20, and the other end of the second current-limiting resistor is connected to the second input pin. Among them, the second current-limiting resistor includes the second current-limiting resistor R711, the second current-limiting resistor R713, the second current-limiting resistor R727, and the second current-limiting resistor R729. The second current-limiting resistor can perform a current-limiting operation on the sensor signal, thereby avoiding damage to the second high-speed optocoupler and the FPGA chip 21 due to excessive current of the sensor signal. The external device 20 can output a sensor signal, and the sensor signal after the current-limiting operation is input to the second high-speed optocoupler, and then the second high-speed optocoupler transmits the sensor signal to the FPGA chip 21.
[0064] Please refer to Figure 6, the second filtering module 17 includes a second filtering capacitor, and the second filtering capacitor is connected in parallel with the second current-limiting resistor. Among them, the second filtering capacitor includes a second filtering capacitor C703, a second filtering capacitor C704, a second filtering capacitor C707, and a second filtering capacitor C708. The second filtering capacitor can filter out interference components such as clutter and noise in the sensor signal. Therefore, the sensor signal can be stably input to the second high-speed optocoupler. The external device 20 can output a sensor signal, and the sensor signal after the filtering operation is input to the second high-speed optocoupler, and then the second high-speed optocoupler transmits the sensor signal to the FPGA chip 21.
[0065] Please refer to Figure 6 , the second discharging module 171 includes a second discharging resistor, and the second discharging resistor is connected in parallel with the second current-limiting resistor. Among them, the second discharging resistor includes a second discharging resistor R715, a second discharging resistor R716, a second discharging resistor R731, and a second discharging resistor R732. The setting of the second discharging resistor causes the conduction current on the input side of the second high-speed optocoupler to be equal to the conduction current plus the current flowing through the resistor, thereby increasing the threshold value of the conduction current of the second high-speed optocoupler. In the case where a small current in the environment may be sensed, the situation of mis-conduction can be effectively suppressed. The second discharging resistor can provide a path for the interfering weak current signal to discharge the interfering weak current and prevent the second high-speed optocoupler from mis-conducting. Moreover, the second discharging resistor can also perform voltage division with the current-limiting resistor. The external device 20 can output a tool setting signal, and the tool setting signal after the discharging operation is input to the second high-speed optocoupler, and then the second high-speed optocoupler transmits the tool setting signal to the FPGA chip 21.
[0066] Please refer to Figure 6 , the sensor signal has the function of selecting a sensor, and the sensor signal can be used in cooperation with the tool setting signal to select the type of sensor. The second high-speed optocoupler is also connected to the 3.3V power supply VCC3.3, and the tool setting interface circuit 10 further includes a resistor R709, a resistor R710, a resistor R725, a resistor R726, a resistor R712, a resistor R714, a resistor R728, and a resistor R730.
[0067] Please refer to Figure 7, the third isolation module 18 includes a third high-speed optocoupler. The third high-speed optocoupler includes a third input pin and a third output pin. The third input pin is connected to the external device 20, and the third output pin is connected to the FPGA chip 21. The third high-speed optocoupler is used to isolate the over-travel signal. Among them, the third high-speed optocoupler includes the third high-speed optocoupler U7061, the third high-speed optocoupler U7062, the third high-speed optocoupler U7063, and the third high-speed optocoupler U7064. The third input pin includes the third input pin 181, the third input pin 182, the third input pin 183, and the third input pin 184. The third output pin includes the third output pin 185, the third output pin 186, the third output pin 187, and the third output pin 188.
[0068] The external device 20 can output a sensor signal, and then the third input pin of the third high-speed optocoupler can receive the sensor signal. The third high-speed optocoupler transmits the electrical signal through light, and through the electro-optical-electrical conversion, the third high-speed optocoupler can play the role of input and output isolation. Since the input and output of the third high-speed optocoupler are isolated from each other, and the electrical signal transmission has the characteristics of unidirectionality, etc., the third high-speed optocoupler has good electrical insulation ability and anti-interference ability. The third high-speed optocoupler can isolate the sensor signal, completely isolate the power supply and the sensor signal, and effectively improve the reliability of the lifting circuit. Moreover, the third high-speed optocoupler can isolate the external device 20 from the FPGA chip 21, and can avoid damage to the PFGA chip due to the excessive voltage value of the sensor signal. Furthermore, the sensor signal after the isolation operation is transmitted to the FPGA chip 21 through the third output pin of the third high-speed optocoupler.
[0069] Please refer to Figure 7 , the third current-limiting module 192 includes a third current-limiting resistor. One end of the third current-limiting resistor is connected to the external device 20, and the other end of the third current-limiting resistor is connected to the third input pin. Among them, the third current-limiting resistor includes the third current-limiting resistor R737, the third current-limiting resistor R740, the third current-limiting resistor R743, and the third current-limiting resistor R746. The third current-limiting resistor can perform a current-limiting operation on the sensor signal, thereby avoiding damage to the third high-speed optocoupler and the FPGA chip 21 due to excessive sensor signal current. The external device 20 can output a sensor signal, and the sensor signal after the current-limiting operation is input to the third high-speed optocoupler, and then the third high-speed optocoupler transmits the sensor signal to the FPGA chip 21.
[0070] Please refer to Figure 7, the third filtering module 19 includes a third filtering capacitor, and the third filtering capacitor is connected in parallel with the third current-limiting resistor. Among them, the third filtering capacitor includes third filtering capacitor C709, third filtering capacitor C710, third filtering capacitor C711, and third filtering capacitor C712. The third filtering capacitor can filter out interference components such as clutter and noise in the sensor signal. Therefore, the sensor signal can be stably input into the third high-speed optocoupler. The external device 20 can output the sensor signal, and the sensor signal after the filtering operation is input into the third high-speed optocoupler, and then the third high-speed optocoupler transmits the sensor signal to the FPGA chip 21.
[0071] Please refer to Figure 7 , the third discharging module 191 includes a third discharging resistor, and the third discharging resistor is connected in parallel with the third current-limiting resistor. Among them, the third discharging resistor includes third discharging resistor R738, third discharging resistor R741, third discharging resistor R744, and third discharging resistor R747. The setting of the third discharging resistor causes the conduction current on the input side of the third high-speed optocoupler to be equal to the conduction current plus the current flowing through the resistor, thereby increasing the threshold value of the conduction current of the first high-speed optocoupler. In the case where a small current in the environment may be sensed, the situation of mis-conduction can be effectively suppressed. The third discharging resistor can provide a path for the interfering weak current signal and discharge the interfering weak current to avoid mis-conduction of the third high-speed optocoupler. Moreover, the third discharging resistor can also perform voltage division with the current-limiting resistor. The external device 20 can output the tool setting signal, and the tool setting signal after the discharging operation is input into the third high-speed optocoupler, and then the third high-speed optocoupler transmits the tool setting signal to the FPGA chip 21. The sensor signal has the function of selecting a sensor, and the sensor signal can be used to cooperate with the tool setting signal to select the type of sensor.
[0072] Please refer to Figure 7 , the over-travel signal can implement over-travel control for the tool, and can ensure that the probe of the tool setter can still maintain a certain contact pressure after electrical wear, so that the switch contact of the probe can be ensured to be good. The third high-speed optocoupler is also connected to the 3.3V power supply VCC3.3, and the tool setting interface circuit 10 further includes resistor R733, resistor R734, resistor R735, resistor R736, resistor R739, resistor R742, resistor R745, and resistor R748.
[0073] The working principle of the present utility model is as follows: When the tool setting interface circuit 10 works, an external device 20 can output a tool setting signal, and the first input pin inputs the tool setting signal to the first high-speed optocoupler. The first high-speed optocoupler can isolate the tool setting signal, and then the first high-speed optocoupler can transmit the tool setting signal to the FPGA chip 21 through the first output pin. Subsequently, the FPGA chip 21 can control the tool setter to perform tool setting operations through the tool setting signal. In order to filter the tool setting signal, a first filtering module 12 is connected in parallel with the first isolation module 11. In order to perform a freewheeling operation on the tool setting signal, a freewheeling module 13 is connected in parallel with the first isolation module 11. In order to limit the current of the tool setting signal, a first current limiting module 15 is connected in series between the external device 20 and the first isolation module 11. Since the first discharging module 14 is connected in parallel with the isolation module, the first discharging module 14 can discharge the interference current in the tool setting signal.
[0074] Meanwhile, the external device 20 can output a sensor signal, and the second input pin inputs the sensor signal to the second high-speed optocoupler. The second high-speed optocoupler can isolate the sensor signal, and then the second high-speed optocoupler can transmit the sensor signal to the FPGA chip 21 through the second output pin. Subsequently, the FPGA chip 21 can match the type of the sensor through the sensor signal. In order to filter the sensor signal, a second filtering module 17 is connected in parallel with the second isolation module 16. In order to discharge the interference current of the sensor signal, a second discharging module 171 is connected in parallel with the second isolation module 16. In order to limit the current of the sensor signal, a second current limiting module 172 is connected in series between the external device 20 and the second isolation module 16.
[0075] Meanwhile, the external device 20 can output an over-travel signal, and the third input pin inputs the over-travel signal to the third high-speed optocoupler. The third high-speed optocoupler can isolate the over-travel signal, and then the third high-speed optocoupler can transmit the over-travel signal to the FPGA chip 21 through the third output pin. Subsequently, the FPGA chip 21 can control the tool setter to perform over-travel operations through the over-travel signal. In order to filter the over-travel signal, a third filtering module 19 is connected in parallel with the third isolation module 18. In order to discharge the interference current of the over-travel signal, a third discharging module 191 is connected in parallel with the third isolation module 18. In order to limit the current of the over-travel signal, a third current limiting module 192 is connected in series between the external device 20 and the third isolation module 18.
[0076] The present utility model provides a tool setting interface circuit with anti-interference function. The tool setting interface circuit is used to transmit the tool setting signal of an external device to an FPGA chip, and the FPGA chip is used to control a tool setter to perform tool setting operations based on the tool setting signal. Moreover, the tool setting interface circuit includes a first isolation module, a first filtering module, a freewheeling module, a first discharging module, and a first current limiting module. The freewheeling module can perform a freewheeling operation on the tool setting signal, and the first current limiting module can limit the current of the tool setting signal. The first isolation module can perform an isolation operation on the tool setting signal, the first filtering module filters out the interference clutter of the tool setting signal, and the first discharging module can discharge the interference current of the tool setting signal. Therefore, the tool setting interface circuit with anti-interference function has strong anti-interference ability. The tool setting signal is transmitted through the tool setting interface circuit, which can enhance the anti-interference ability of the tool setting signal and ensure the stability and reliability of the overall circuit. Therefore, the risk of signal transmission by the tool setting interface circuit is small, it is effective, fast, and has strong real-time performance. And, the tool setting interface circuit with anti-interference function can effectively solve the technical problem that the signal is easily interfered by noise and the tool setter is prone to malfunction. The circuit structure of the tool setting interface circuit is relatively simple, so the design and manufacturing costs of the circuit are also relatively low.
[0077] In summary, although the present utility model has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present utility model. Those of ordinary skill in the art can make various changes and modifications without departing from the spirit and scope of the present utility model. Therefore, the protection scope of the present utility model is subject to the scope defined by the claims.
Claims
1. A tool setting interface circuit with anti-interference function, characterized in that: The device is used to transmit a tool setting signal of an external device to an FPGA chip, and the FPGA chip is used to control a tool setting instrument to perform a tool setting operation based on the tool setting signal, and includes: A first isolation module, one end of which is connected to the external device and the other end of which is connected to the FPGA chip, wherein the isolation module is used to isolate the tool setting signal and transmit the tool setting signal to the FPGA chip; A first filtering module, connected in parallel with the first isolation module, and configured to perform a filtering operation on the tool setting signal; A freewheeling module, connected in parallel with the isolation module, and used for performing a freewheeling operation on the tool setting signal; A first discharge module, connected in parallel with the isolation module, for discharging interference current in the tool setting signal; The first current limiting module is connected in series between the external device and the first isolation module, and is used for performing a current limiting operation on the tool setting signal.
2. The tool setting interface circuit with anti-interference function according to claim 1, characterized in that: The first isolation module includes a first high-speed optocoupler, which includes a first input pin and a first output pin. The first input pin is connected to the external device, and the first output pin is connected to the FPGA chip. The first high-speed optocoupler is used to isolate the tool setting signal.
3. The tool setting interface circuit with anti-interference function according to claim 2, characterized in that: The first filtering module includes a first filtering capacitor, and the first filtering capacitor is connected in parallel with the first input pin.
4. The tool setting interface circuit with anti-interference function according to claim 2, characterized in that: The first current limiting module includes a first current limiting resistor, one end of the first current limiting resistor is connected to the external device, and the other end of the first current limiting resistor is connected to the first input pin.
5. The tool setting interface circuit with anti-interference function according to claim 4, characterized in that: The first discharge module includes a first discharge resistor, and the first discharge resistor is connected in parallel with the first current limiting resistor.
6. The tool setting interface circuit with anti-interference function according to claim 5, characterized in that: The freewheeling module includes a fast recovery diode, and the fast recovery diode is connected in series with the first discharge resistor.
7. The tool setting interface circuit with anti-interference function according to claim 1, characterized in that: The tool setting interface circuit with anti-interference function is used to transmit the sensor signal of the external device to the FPGA chip, and the FPGA chip is used to match the type of the sensor based on the sensor signal. The tool setting interface circuit with anti-interference function also includes: A second isolation module, one end of which is connected to the external device and the other end of which is connected to the FPGA chip, the second isolation module being used to perform an isolation operation on the sensor signal and transmit the sensor signal to the FPGA chip; A second filtering module, connected in parallel with the second isolation module, and configured to perform a filtering operation on the sensor signal; A second discharge module, connected in parallel with the second isolation module, and used for discharging interference current in the sensor signal; The second current limiting module is connected in series between the external device and the second isolation module, and is used for performing a current limiting operation on the sensor signal.
8. The tool setting interface circuit with anti-interference function according to claim 7, characterized in that: The second isolation module includes a second high-speed optocoupler, the second high-speed optocoupler includes a second input pin and a second output pin, the second input pin is connected to the external device, the second output pin is connected to the FPGA chip, and the second high-speed optocoupler is used to isolate the tool setting signal; The second current limiting module includes a second current limiting resistor, one end of the second current limiting resistor is connected to the external device, and the other end of the second current limiting resistor is connected to the second input pin; The second filtering module includes a second filtering capacitor, and the second filtering capacitor is connected in parallel with the second current limiting resistor; The second discharge module includes a second discharge resistor, and the second discharge resistor is connected in parallel with the second current limiting resistor.
9. The tool setting interface circuit with anti-interference function according to claim 1, characterized in that: The tool setting interface circuit with anti-interference function is used to transmit the overtravel signal of the external device to the FPGA chip, and the FPGA chip is used to control the tool setting instrument to perform overtravel operation based on the overtravel signal. The tool setting interface circuit with anti-interference function also includes: A third isolation module, one end of which is connected to the external device and the other end of which is connected to the FPGA chip, the third isolation module is used to perform an isolation operation on the over-travel signal and transmit the over-travel signal to the FPGA chip; a third filtering module, connected in parallel with the third isolation module, and configured to perform a filtering operation on the overtravel signal; a third discharge module, connected in parallel with the third isolation module, and used for discharging interference current in the overtravel signal; The third current limiting module is connected in series between the external device and the third isolation module, and is used for performing a current limiting operation on the overtravel signal.
10. The tool setting interface circuit with anti-interference function according to claim 9, characterized in that: The third isolation module includes a third high-speed optocoupler, the third high-speed optocoupler includes a third input pin and a third output pin, the third input pin is connected to the external device, the third output pin is connected to the FPGA chip, and the third high-speed optocoupler is used to isolate the overtravel signal; The third current limiting module comprises a third current limiting resistor, one end of the third current limiting resistor is connected to the external device, and the other end of the third current limiting resistor is connected to the third input pin; The third filtering module includes a third filtering capacitor, and the third filtering capacitor is connected in parallel with the third current limiting resistor; The third discharge module includes a third discharge resistor, and the third discharge resistor is connected in parallel with the third current limiting resistor.