Gas clamp deviation processing method, controller, medium, program product and drilling machine
By obtaining detection data when the air clamp debugging of the drilling machine is qualified and preset, and the deviation is compared and judged, the problem of low gas clamp detection efficiency in the prior art is solved, and the accuracy and working quality of the drilling machine are improved.
Patent Information
- Application Number
- CN202411251071.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-01-10
AI Technical Summary
The existing gas clamp detection methods are inefficient, which leads to cumbersome detection of the gas clamp position deviation after a long time of work, affecting the drilling accuracy.
When the air clamp debugging is qualified and when the preset detection conditions are met, the first detection data and the second detection data are obtained respectively, and the two are compared to judge the deviation. If the deviation is greater than the threshold, an alarm reminder is issued, indicating that re-debug is required.
Improve the efficiency of air clamp deviation detection to ensure the accuracy and working quality of the drilling machine.
Smart Images

Figure CN119283125A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment detection, and in particular to an air clamp deviation processing method, a controller, a storage medium, a program product and a drilling machine. Background Art
[0002] A drilling machine is a device used for drilling holes in circuit boards (PCBs). It has the advantages of high precision and high speed. However, after working for a long time, the drilling machine is prone to expansion and contraction, which causes the air clamp of the drilling machine to shift, that is, the position of the air clamp deviates. When the deviation of the air clamp position is large, the drilling accuracy of the drilling machine will drop significantly. It is necessary to detect the displacement change of the air clamp. At present, the drilling machine air clamp is generally detected manually, specifically by controlling the spindle to clamp the micrometer to draw a circle for each air clamp for detection. However, this detection method is cumbersome and inefficient. Therefore, the existing air clamp detection method has the problem of low efficiency. Summary of the invention
[0003] The embodiments of the present invention provide an air trap deviation processing method, a controller, a medium, a program product and a drilling machine to solve the problem of low air trap detection efficiency.
[0004] A method for processing air clamp deviation, comprising: Acquire first detection data of the drilling machine air clamp, wherein the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged to be qualified, and the air clamp detector is arranged on the air clamp; Acquiring second detection data of the air clamp, wherein the second detection data is obtained by controlling the spindle to clamp the standard pin and move it into the air clamp detector for detection when the air clamp reaches a preset detection condition; Determine whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold; If the detected deviation data is greater than the deviation data threshold, the drilling machine is controlled to issue an alarm reminder, wherein the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
[0005] In the above method, optionally, the first detection data includes first direction reference data and second direction reference data, and the air clamp detector includes a first direction detector and a second direction detector; the first direction reference data is obtained by detecting the first direction detector on the air clamp when the air clamp is debugged successfully, and the second direction reference data is obtained by detecting the second direction detector on the air clamp when the air clamp is debugged successfully.
[0006] In the above method, optionally, the second detection data includes first direction comparison data and second direction comparison data; The second detection data is obtained by: Control the spindle to clamp the standard pin and move it to the first direction detector for detection to obtain the first direction comparison data; The main shaft is controlled to clamp the standard pin and move it to the second direction detector for detection to obtain the second direction comparison data.
[0007] In the above method, optionally, the deviation data threshold includes a first deviation threshold and a second deviation threshold, and the detection deviation data includes first deviation data and second deviation data; The determining whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold includes: Determine whether first deviation data between the first direction reference data and the first direction comparison data is greater than a preset first deviation threshold; It is determined whether the second deviation data between the second direction reference data and the second direction comparison data is greater than the preset second deviation threshold.
[0008] In the above method, optionally, the air trap detector comprises a receiver and a transmitter, the transmitter is used to emit a detection light beam, and the receiver is used to receive the detection light beam emitted by the transmitter; The first detection data is obtained in the following manner: Controlling the standard pin to contact the detection light beam to record the first position data of the standard pin; When the standard pin is controlled to leave the detection light beam, second position data of the standard pin is recorded; The first detection data is obtained by calculation according to the first position data and the second position data.
[0009] In the above method, optionally, the step of determining whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold comprises: Determining whether the first detection data is equal to the second detection data; If the first detection data is not equal to the second detection data, acquiring detection deviation data of the first detection data and the second detection data; Determine whether the detection deviation data is greater than a preset deviation data threshold.
[0010] A detection controller comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the air clamp deviation processing method as described in any one of the above items when executing the computer program.
[0011] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the air trap deviation processing method as described in any one of the above items is implemented.
[0012] A computer program product comprises a computer program, which, when executed by a processor, implements any of the above-mentioned methods for processing air trap deviations.
[0013] A drilling machine, comprising the detection controller, standard pin, host computer, spindle, air clamp and air clamp detector arranged on the air clamp, wherein the spindle and the air clamp detector arranged on the air clamp are arranged opposite to each other; The detection controller is used to obtain first detection data of the drilling machine air clamp, the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged to be qualified, and the air clamp detector is arranged on the air clamp; obtain second detection data of the air clamp, the second detection data is obtained by controlling the main shaft to clamp the standard pin and move it to the air clamp detector for detection when the air clamp reaches a preset detection condition; judge whether the detection deviation data of the first detection data and the second detection data is greater than a preset deviation data threshold; if the detection deviation data is greater than the deviation data threshold, send the detection deviation data to the host computer; The host computer is used to control the drilling machine to issue an alarm reminder, and the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
[0014] The above-mentioned air clamp deviation processing method, controller, medium, program product and drilling machine, when the air clamp is debugged to be qualified, control the main shaft of the drilling machine to clamp the standard pin to enter the air clamp detector for detection, and obtain the first detection data, and when the air clamp reaches the preset detection condition, control the main shaft to clamp the standard pin to enter the air clamp detector for detection, and obtain the second detection data, and then compare the first detection data with the second detection data, so as to control the drilling machine to alarm when the difference between the first detection data and the second detection data is greater than the preset deviation data threshold. It can be seen that the present invention can achieve the purpose of improving the efficiency of air clamp deviation detection by obtaining the first detection data when the air clamp is debugged to be qualified, and obtaining the second detection data after the air clamp reaches the preset detection condition, and then realizing the position deviation detection of the air clamp through the first detection data and the second detection data. Compared with the prior art, the present invention can achieve the purpose of improving the efficiency of air clamp deviation detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0016] Figure 1 It is a flow chart of an implementation of a method for processing air clamp deviation disclosed in an embodiment of the present invention; Figure 2 It is a structural schematic diagram of a spindle, an air clamp and an air clamp detector disclosed in an embodiment of the present invention; Figure 3 It is a partial implementation flow chart of a method for processing air trap deviation disclosed in an embodiment of the present invention; Figure 4 It is a structural schematic diagram of an air trap and an air trap detector disclosed in an embodiment of the present invention; Figure 5 It is a partial implementation flow chart of a method for processing air trap deviation disclosed in an embodiment of the present invention; Figure 6 It is a structural schematic diagram of a drilling machine disclosed in an embodiment of the present invention; Figure 7 It is a partial implementation flow chart of a method for processing air trap deviation disclosed in an embodiment of the present invention; Figure 8 It is a partial implementation flow chart of a method for processing air trap deviation disclosed in an embodiment of the present invention; Fig. 9 It is a structural schematic diagram of a detection controller disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0019] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0020] As used in the present specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]", depending on the context.
[0021] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0022] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0023] The present invention discloses an air clamp deviation processing method, controller, medium, program product and drilling machine. When the air clamp is debugged to be qualified, the main shaft of the drilling machine is controlled to clamp the standard pin and enter the air clamp detector for detection to obtain the first detection data, and when the air clamp reaches the preset detection condition, the main shaft is controlled to clamp the standard pin and enter the air clamp detector for detection to obtain the second detection data, and then the first detection data and the second detection data are compared, so that when the difference between the first detection data and the second detection data is greater than the preset deviation data threshold, the drilling machine is controlled to alarm. It can be seen that the present invention obtains the first detection data when the air clamp is debugged to be qualified, and obtains the second detection data after the air clamp reaches the preset detection condition, and then realizes the deviation detection of the air clamp through the first detection data and the second detection data. Compared with the prior art, the purpose of improving the efficiency of air clamp deviation detection can be achieved. The following is an explanation through specific embodiments.
[0024] like Figure 1As shown, a method for processing air trap deviation disclosed in an embodiment of the present invention is applicable to a device having a controller or a control module, such as a drilling machine. The method for processing air trap deviation in this embodiment includes the following steps: S101: Acquire the first detection data of the drilling machine air clamp.
[0025] Among them, the first detection data is obtained by controlling the spindle clamp of the drilling machine to move the standard pin to the air clamp detector for detection when the air clamp is debugged and qualified, and the air clamp detector is set on the air clamp. Among them, the standard pin refers to a positioning tool used to cooperate with the air clamp detector to detect the deviation of the air clamp. In actual application, the standard pin can be equipped separately, or a spindle tool of a certain specification can be selected as the standard pin. The standard pin is not limited in this embodiment.
[0026] It should be understood that before the drilling machine is put into use, it is usually necessary to debug the drilling machine, including the debugging of the drilling machine air clamp. When the drilling machine is debugged qualified, the main shaft of the drilling machine is controlled to clamp the standard pin and move the standard pin to the air clamp detector for detection to obtain the first detection data of the air clamp.
[0027] like Figure 2 This is a schematic diagram of the positions of the spindle and the air clamp when the spindle in an embodiment of the present invention grabs the standard pin for detection in the air clamp detector, wherein 1 is the spindle, 2 is the standard pin, 3 is the air clamp detector, 4 is the detector mounting bracket, 5 is the air clamp, the air clamp detector 3 is installed on the air clamp 5 through the detector mounting bracket 4, and the spindle 1 grabs the standard pin 2 in the air clamp detector 2.
[0028] Furthermore, the air trap detector in this embodiment includes a receiver and a transmitter, the transmitter is used to emit a detection beam, and the receiver is used to receive the detection beam emitted by the transmitter. In this embodiment, the first detection data can be obtained by the following steps, such as Figure 3 As shown: S301: When the standard pin contacts the detection light beam, the first position data of the standard pin is recorded.
[0029] S302: When the standard pin is controlled to leave the detection light beam, the second position data of the standard pin is recorded.
[0030] When the spindle is controlled to grab the standard pin and moves it in the air clamp detector to contact the detection beam, the receiver cannot receive the detection beam emitted by the transmitter because the detection beam is blocked by the standard pin. At this time, the first position data of the standard pin is recorded. At the same time, after controlling the standard pin to contact the detection beam, the standard pin is continued to be controlled to move. When the standard pin leaves the detection beam, the detection beam is no longer blocked by the standard pin, and the receiver can normally receive the detection beam emitted by the transmitter. At this time, the second position data of the standard pin is recorded. In actual applications, in this embodiment, the first position data and the second position data of the standard pin can be read by the grating scale displacement sensor respectively when the standard pin contacts the detection beam and when the standard pin leaves the detection beam.
[0031] Specifically, in the implementation of this embodiment, the air clamp detector in this embodiment is in a normal state, that is, the transmitter can normally emit a detection beam, and the receiver can normally receive the detection beam emitted by the transmitter, the air clamp detector can continuously send a high-level signal. When the standard pin just contacts the detection beam, due to the shielding of the standard pin, the receiver cannot normally receive the detection beam emitted by the transmitter. At this time, the air clamp detector can send a low-level signal, and then obtain the first position data of the standard pin when receiving the low-level signal. When the standard pin leaves the detection beam, the receiver can normally receive the detection beam emitted by the transmitter. At this time, the air clamp detector can send a high-level signal, and then obtain the second position data of the standard pin when receiving the high-level signal, wherein the first position data is the displacement distance of the standard pin when the standard pin just contacts the detection beam; the second position data is the displacement distance of the standard pin when the standard pin leaves the detection beam. Based on this, the acquisition of the first position data and the second position data can be achieved.
[0032] S303: Calculate and obtain first detection data according to the first position data and the second position data.
[0033] In a specific implementation, in this embodiment, the first position data and the second position data can be recorded by the grating ruler displacement sensor. The first position data and the second position data are displacement distances of the standard pin in the same displacement direction. On this basis, the first detection data is obtained by subtracting the second position data from the first position data, that is, the displacement distance recorded by the second position data is subtracted from the displacement distance recorded by the first position data to obtain the displacement difference, and the absolute value of the displacement difference is the first detection data.
[0034] In summary, in this embodiment, the first detection data is obtained by detecting the displacement distance required for the standard pin to pass through the detection light beam, that is, by the first position data and the second position data. Compared with the prior art, the purpose of improving the air clamp detection efficiency can be achieved.
[0035] S102: Acquire second detection data of air clamp.
[0036] The second detection data is obtained when the air clamp reaches a preset detection condition and the main shaft is controlled to clamp the standard pin and move it into the air clamp detector for detection.
[0037] It should be understood that after the drilling machine has been working for a certain period of time, the air clamp will inevitably move forward and backward or left and right, resulting in a decrease in the machining accuracy of the drilling machine. Therefore, the air clamp needs to be inspected according to the preset detection conditions, that is, when the air clamp reaches the preset detection conditions, the spindle is controlled to clamp the standard pin and move it to the air clamp detector for detection.
[0038] In one embodiment, the detection condition in this embodiment can be that after the drilling machine reaches a preset first time length, the main shaft is controlled to grab the standard pin and enter the air clamp detector for detection, and the second detection data of the standard pin is obtained, so as to determine whether the air clamp moves according to the second detection data. The first time length includes but is not limited to 10 days, 20 days or 30 days.
[0039] In another embodiment, the detection condition in this embodiment can be that after the drilling machine replaces the air clamp, the main shaft is controlled to grab the standard pin and enter the air clamp detector for detection to obtain the second detection data of the standard pin, thereby detecting whether the position of the replaced air clamp meets the requirements.
[0040] It should be noted that the above are only two implementation methods of the detection conditions in this embodiment, which can also be implemented through other implementation methods. The content of the detection conditions is not limited in this embodiment.
[0041] S103: Determine whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold.
[0042] Calculate the detection deviation data of the first detection data and the second detection data, compare the detection deviation data field with the preset deviation data threshold, and when the detection deviation data is greater than the deviation data threshold, control the drilling machine to issue an alarm reminder; when the detection deviation data is less than or equal to the deviation data threshold, the process ends, and when the drilling machine reaches the preset detection condition next time, control the spindle to clamp the standard pin and move it to the air clamp detector to obtain new second detection data, and then determine whether the detection deviation data of the first detection data and the new second detection data is greater than the preset deviation data threshold, and so on, until the detection deviation data is greater than the deviation data threshold, control the drilling machine to issue an alarm reminder.
[0043] S104: If the detected deviation data is greater than the deviation data threshold, the drilling machine is controlled to issue an alarm.
[0044] The alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-adjusted. It should be understood that when the detection deviation data is greater than the deviation data threshold, it means that the air clamp of the drilling machine has been deviated to a large extent. If the air clamp is not debugged, the working quality of the drilling machine will be reduced.
[0045] In a specific implementation, the alarm reminder in this embodiment includes but is not limited to the voice alarm reminder, text alarm reminder and SMS reminder of the drilling machine.
[0046] In one embodiment, the voice alarm reminder in this embodiment can be achieved by controlling the voice equipment (such as a buzzer, a speaker, etc.) of the drilling machine through the control system of the drilling machine.
[0047] In another embodiment, the text alarm reminder in this embodiment can be realized by controlling the display device of the drilling machine (such as a central control display screen, etc.) through the control system of the drilling machine.
[0048] In another embodiment, the SMS reminder in this embodiment can send alarm data to a background server through the control system of the drilling machine, so that the background server sends the alarm data to a communication terminal of the drilling machine manager, such as a mobile phone.
[0049] In summary, the present invention discloses a method for processing air clamp deviation, which obtains first detection data by controlling the spindle of the drilling machine to clamp the standard pin and enter the air clamp detector for detection when the air clamp is debugged to be qualified, and obtains second detection data by controlling the spindle to clamp the standard pin and enter the air clamp detector for detection when the air clamp reaches the preset detection condition, and then compares the first detection data with the second detection data, so as to control the drilling machine to alarm when the difference between the first detection data and the second detection data is greater than the preset deviation data threshold. It can be seen that the present invention obtains the first detection data when the air clamp is debugged to be qualified, and obtains the second detection data after the air clamp reaches the preset detection condition, and then realizes air clamp deviation detection through the first detection data and the second detection data. Compared with the prior art, the purpose of improving the efficiency of air clamp deviation detection can be achieved.
[0050] based on Figure 1 In the specific implementation, in this embodiment, the first detection data includes first direction reference data and second direction reference data, and the air clamp detector includes a first direction detector and a second direction detector; the first direction reference data is obtained by detecting the first direction detector on the air clamp when the air clamp is debugged successfully, and the second direction reference data is obtained by detecting the second direction detector on the air clamp when the air clamp is debugged successfully.
[0051] In one embodiment, the first direction detector and the second direction detector in this embodiment can be two air clamp detectors arranged on the air clamp, the detection U-shaped opening of the first direction detector corresponds to the first direction of the drilling machine, and the detection U-shaped opening of the second direction detector corresponds to the second direction of the drilling machine. When the air clamp is debugged to be qualified, the control spindle clamps the standard pin to enter the detection U-shaped opening of the first direction detector for detection to obtain the first direction reference data, and the control spindle clamps the standard pin to enter the detection U-shaped opening of the second direction detector for detection to obtain the second direction reference data. Among them, the first direction can be the X-axis direction of the drilling machine, and the second direction can be the Y-axis direction of the drilling machine. In this embodiment, the first direction and the second direction are not specifically limited.
[0052] In another embodiment, the first direction detector and the second direction detector in this embodiment may be the same air clamp detector arranged on the air clamp, such as Figure 4 As shown, it is a schematic diagram of the structure of the air clamp and the air clamp detector, wherein 3 is the air clamp detector, 4 is the detector mounting bracket, 5 is the air clamp, 6 is the detection U-shaped opening, the air clamp 5 is movably mounted on the air clamp 5 through the detector mounting bracket 4, the air clamp detector 3 can be rotated 90° on the air clamp 5 through the detector mounting bracket 4, the detection U-shaped opening 6 is arranged on the air clamp detector 3, when the direction of the detection U-shaped opening 6 is perpendicular to the air clamp 5, the air clamp detector 3 is a first direction detector, the air clamp detector 3 is rotated 90°, and the direction of the detection U-shaped opening 6 after rotation is parallel to the air clamp 5, at this time, the air clamp detector 3 is a second direction detector. That is to say, after the air clamp is debugged and qualified, the control spindle clamps the standard pin to enter the detection U-shaped opening of the air clamp detector for detection, and obtains the first direction reference data, then, after the air clamp detector is rotated 90°, the control spindle clamps the standard pin to enter the detection U-shaped opening of the air clamp detector for detection, and obtains the second direction reference data. Among them, the method for rotating the detector mounting bracket 90° in this embodiment includes: manual control and electronic control. Among them, in this embodiment, the detector mounting bracket can be electronically controlled by installing a micro motor on the air clamp detector mounting bracket.
[0053] based on Figure 1 In the specific implementation, the second detection data in this embodiment includes the first direction comparison data and the second direction comparison data. On this basis, step S102 can be specifically implemented by the following steps: Figure 5 As shown: S501: Control the main shaft to clamp the standard pin and move it to the first direction detector for detection to obtain first direction comparison data.
[0054] S502: Control the main shaft to clamp the standard pin and move it to the second direction detector for detection to obtain second direction comparison data.
[0055] Wherein, the first direction detector and the second direction detector are both air clamp detectors, the first direction detector is an air clamp detector in the first direction, and the second direction detector is an air clamp detector in the second direction. Figure 6 As shown, it is a schematic diagram of the structure of the drilling machine in this embodiment, wherein 1 is a main shaft, 5 is an air clamp, 7 is a workbench, 8 is a first direction guide mechanism, 9 is a second direction guide mechanism, 10 is a third direction guide mechanism, the air clamp 5 is arranged on the processing table 7, and the main shaft 1 is arranged opposite to the processing table 7. Among them, the first guide mechanism 8 is used to control the left and right movement of the main shaft 1 relative to the workbench 7, the second direction guide mechanism 9 is used to control the front and back movement of the processing table 7 relative to the main shaft 1, and the third direction guide mechanism is used to control the up and down movement of the main shaft 1.
[0056] Specifically, in this embodiment, the first direction guide mechanism and the second direction guide mechanism on the drilling machine can be used to move the spindle for grabbing the standard pin to the top of the first direction detector, and then the standard pin is lowered into the detection U-shaped opening of the air clamp detector through the third direction guide mechanism, and finally the standard pin is controlled to move back and forth in the detection U-shaped opening of the air clamp detector through the first direction guide mechanism, and the first direction comparison data is detected. Similarly, the first direction guide mechanism and the second direction guide mechanism on the drilling machine can be used to move the spindle for grabbing the standard pin to the top of the second direction detector, and then the standard pin is lowered into the detection U-shaped opening of the air clamp detector through the third direction guide mechanism, and finally the standard pin is controlled to move back and forth in the detection U-shaped opening of the air clamp detector through the second direction guide mechanism, and the second direction comparison data is detected.
[0057] based on Figure 1 In the specific implementation, the deviation data threshold in this embodiment includes a first deviation threshold and a second deviation threshold, and the detection deviation data includes the first deviation data and the second deviation data. On this basis, step S103 can be implemented by the following steps: Figure 7 As shown: S701: Determine whether first deviation data between first direction reference data and first direction comparison data is greater than a preset first deviation threshold.
[0058] Calculate the first deviation data between the first direction reference data and the first direction comparison data, and determine whether the first deviation data is greater than the first deviation threshold. If the first deviation data is greater than the first deviation threshold, control the drilling machine to issue an alarm. If the first deviation data is less than or greater than the first deviation threshold, the process results in waiting for the drilling machine to reach the preset detection condition again, calculate the new first deviation data, and determine whether the first deviation data is greater than the preset first deviation threshold, and so on, until the first deviation data is greater than the first deviation threshold, control the drilling machine to issue an alarm.
[0059] S702: Determine whether the second deviation data between the second direction reference data and the second direction comparison data is greater than a preset second deviation threshold.
[0060] The second deviation data of the second direction reference data and the second direction comparison data is calculated, and it is determined whether the second deviation data is greater than the second deviation threshold. If the second deviation data is greater than the second deviation threshold, the drilling machine is controlled to issue an alarm reminder. If the second deviation data is less than or greater than the second deviation threshold, the process result is to wait for the drilling machine to reach the preset detection condition again, calculate the new second deviation data, and determine whether the second deviation data is greater than the preset second deviation threshold, and so on, until the second deviation data is greater than the second deviation threshold, and the drilling machine is controlled to issue an alarm reminder.
[0061] In summary, in this embodiment, the calibration accuracy of air trap deviation detection can be effectively improved through bidirectional detection in the first direction and the second direction.
[0062] based on Figure 1 In the specific implementation, step S103 in this embodiment can be implemented by the following steps: Figure 8 As shown: S801: Determine whether the first detection data is equal to the second detection data.
[0063] If the first detection data is equal to the second detection data, it means that the position of the air clamp has not moved and there is no need to debug the air clamp. If the first detection data is not equal to the second detection data, it means that the position of the air clamp has moved and further calculation is required for the first detection data and the second detection data.
[0064] S802: If the first detection data is not equal to the second detection data, obtain detection deviation data of the first detection data and the second detection data.
[0065] In a specific implementation, in this embodiment, the detection deviation data can be obtained by subtracting the first detection data from the second detection data.
[0066] S803: Determine whether the detected deviation data is greater than a preset deviation data threshold.
[0067] If the detected deviation data is greater than the preset deviation data threshold, the drilling machine is controlled to give an alarm reminder to remind that the air clamp of the drilling machine needs to be re-debugged; if the detected deviation data is less than or equal to the preset deviation data threshold, it means that the air clamp is only slightly offset and has almost no effect on the drilling machine, so there is no need to re-debug the air clamp.
[0068] In summary, in this embodiment, by comparing the detection deviation data with the deviation data threshold, it can be determined whether the air clamp needs to be re-debugged. Compared with the traditional technology, the purpose of improving the detection efficiency can be achieved.
[0069] In one embodiment, the present invention further discloses a detection controller, the internal structure of which can be shown as follows: Fig. 9 As shown. The detection controller includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the detection controller is used to provide computing and control capabilities. The memory of the detection controller includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the detection controller is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for processing air clamp deviation is implemented.
[0070] In one embodiment, a detection controller is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Acquire the first detection data of the drilling machine air clamp, the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged and qualified, and the air clamp detector is set on the air clamp; Acquire the second detection data of the air clamp, the second detection data is obtained when the air clamp reaches the preset detection condition, the main shaft is controlled to clamp the standard pin and move it to the air clamp detector for detection; Determine whether the detection deviation data of the first detection data and the second detection data is greater than a preset deviation data threshold; If the detected deviation data is greater than the deviation data threshold, the drilling machine is controlled to give an alarm reminder, and the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
[0071] In one implementation, the present application discloses a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor in a computer device, the computer device can execute the steps of any embodiment of a method for processing air trap deviation disclosed in the present invention. The computer-readable storage medium can be non-volatile or volatile.
[0072] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Acquire the first detection data of the drilling machine air clamp, the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged and qualified, and the air clamp detector is set on the air clamp; Acquire the second detection data of the air clamp, the second detection data is obtained when the air clamp reaches the preset detection condition, the main shaft is controlled to clamp the standard pin and move it to the air clamp detector for detection; Determine whether the detection deviation data of the first detection data and the second detection data is greater than a preset deviation data threshold; If the detected deviation data is greater than the deviation data threshold, the drilling machine is controlled to give an alarm reminder, and the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
[0073] In one embodiment, the present invention discloses a computer program product, including a computer program, which, when executed by a processor, implements the air trap deviation processing method disclosed in any one of the above embodiments.
[0074] In one embodiment, a computer program product is provided, and when the computer program product executes a computer program, the following steps are implemented: Acquire the first detection data of the drilling machine air clamp, the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged and qualified, and the air clamp detector is set on the air clamp; Acquire the second detection data of the air clamp, the second detection data is obtained when the air clamp reaches the preset detection condition, the main shaft is controlled to clamp the standard pin and move it to the air clamp detector for detection; Determine whether the detection deviation data of the first detection data and the second detection data is greater than a preset deviation data threshold; If the detected deviation data is greater than the deviation data threshold, the drilling machine is controlled to give an alarm reminder, and the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
[0075] In one embodiment, the present invention discloses a drilling machine, which includes a detection controller, a standard pin, a host computer, a spindle, an air clamp, and an air clamp detector arranged on the air clamp, wherein the spindle and the air clamp detector arranged on the air clamp are arranged opposite to each other; The detection controller is used to obtain the first detection data of the drilling machine air clamp, the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged and qualified, and the air clamp detector is arranged on the air clamp; obtain the second detection data of the air clamp, the second detection data is obtained by controlling the main shaft to clamp the standard pin and move it to the air clamp detector for detection when the air clamp reaches the preset detection condition; judge whether the detection deviation data of the first detection data and the second detection data is greater than the preset deviation data threshold; if the detection deviation data is greater than the deviation data threshold, send the detection deviation data to the host computer; The upper computer is used to control the drilling machine to issue an alarm reminder, and the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
[0076] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for processing air trap deviation, characterized in that: include: Acquire first detection data of the drilling machine air clamp, wherein the first detection data is obtained by controlling the main shaft of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged to be qualified, and the air clamp detector is arranged on the air clamp; Acquire second detection data of the air clamp, wherein the second detection data is obtained by controlling the spindle to clamp the standard pin and move it into the air clamp detector for detection when the air clamp reaches a preset detection condition; Determine whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold; If the detected deviation data is greater than the deviation data threshold, the drilling machine is controlled to issue an alarm reminder, wherein the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
2. The method for processing air trap deviation according to claim 1, characterized in that: The first detection data includes first direction reference data and second direction reference data, and the air clamp detector includes a first direction detector and a second direction detector; the first direction reference data is obtained by detecting the first direction detector on the air clamp when the air clamp is debugged successfully, and the second direction reference data is obtained by detecting the second direction detector on the air clamp when the air clamp is debugged successfully.
3. The method for processing air trap deviation according to claim 2, characterized in that: The second detection data includes first direction comparison data and second direction comparison data; The second detection data is obtained by: Control the spindle to clamp the standard pin and move it to the first direction detector for detection to obtain the first direction comparison data; The main shaft is controlled to clamp the standard pin and move it to the second direction detector for detection to obtain the second direction comparison data.
4. The method for processing air trap deviation according to claim 3, characterized in that: The deviation data threshold includes a first deviation threshold and a second deviation threshold, and the detection deviation data includes first deviation data and second deviation data; The determining whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold includes: Determine whether first deviation data between the first direction reference data and the first direction comparison data is greater than a preset first deviation threshold; It is determined whether the second deviation data between the second direction reference data and the second direction comparison data is greater than the preset second deviation threshold.
5. The method for processing air trap deviation according to any one of claims 1 to 4, characterized in that: The air trap detector comprises a receiver and a transmitter, wherein the transmitter is used to transmit a detection light beam, and the receiver is used to receive the detection light beam transmitted by the transmitter; The first detection data is obtained in the following manner: Controlling the standard pin to contact the detection light beam to record the first position data of the standard pin; When the standard pin is controlled to leave the detection light beam, second position data of the standard pin is recorded; The first detection data is obtained by calculation according to the first position data and the second position data.
6. The method for processing air trap deviation according to claim 1, characterized in that: The determining whether the detection deviation data between the first detection data and the second detection data is greater than a preset deviation data threshold includes: Determining whether the first detection data is equal to the second detection data; If the first detection data is not equal to the second detection data, acquiring detection deviation data of the first detection data and the second detection data; Determine whether the detection deviation data is greater than a preset deviation data threshold.
7. A detection controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the air trap deviation processing method according to any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the air trap deviation processing method according to any one of claims 1 to 6 is implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the air trap deviation processing method described in any one of claims 1 to 6 is implemented.
10. A drilling machine, characterized in that: The drilling machine comprises the detection controller as claimed in claim 7, a standard pin, a host computer, a spindle, an air clamp and an air clamp detector arranged on the air clamp, wherein the spindle and the air clamp detector arranged on the air clamp are arranged opposite to each other; The detection controller is used to obtain first detection data of the drilling machine air clamp, the first detection data is obtained by controlling the spindle of the drilling machine to clamp the standard pin and move it to the air clamp detector for detection when the air clamp is debugged to be qualified, and the air clamp detector is arranged on the air clamp; Acquire second detection data of the air clamp, the second detection data is obtained by controlling the spindle to clamp the standard pin and move it to the air clamp detector for detection when the air clamp reaches a preset detection condition; determine whether the detection deviation data of the first detection data and the second detection data is greater than a preset deviation data threshold; if the detection deviation data is greater than the deviation data threshold, send the detection deviation data to the host computer; The host computer is used to control the drilling machine to issue an alarm reminder, and the alarm reminder is used to indicate that the air clamp of the drilling machine needs to be re-debugged.
Citation Information
Patent Citations
Machine tool table board expansion and shrinkage detection method and device, and PCB drilling machine
CN111571707A
Automatic positioning and machining equipment for cylindrical part surface holes based on machine vision
CN116441934A
Adjusting method for positioning piece of machining equipment, machining equipment and storage medium
CN118354524A
Method for measuring and regulating dynamic eccentricity between molding die and punch in bottomed tubular molding machine and measuring punch
JP1995055454A
Device for boring hole in printed board and boring method using the same
JP1997183097A