Main shaft deviation detection method, controller, medium, program product and machining equipment
By using a tool detector in the circuit board processing equipment to automatically detect the deviation of the spindle and perform compensation processing, the problem of reduced machining accuracy caused by the deviation of the spindle and workbench of the drilling machine is solved, and the detection efficiency and yield rate are improved.
Patent Information
- Application Number
- CN202411452827.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, after the drilling machine is processed or replaced by spindle parts for a long time, the relative positions of the spindle and the workbench are prone to deviation, resulting in a decrease in processing yield and low manual detection efficiency.
By setting up a tool detector in the circuit board processing equipment, the spindle grabs the spindle tool into the detection area of the detector for movement detection, obtains deviation detection data, and compares it with the reference detection data. If the preset deviation threshold value is exceeded, then performs Compensation processing.
It improves the efficiency of spindle deviation detection, reduces the dependence of manual inspection, and ensures the machining accuracy and yield of the drilling machine.
Smart Images

Figure CN119437036A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment detection, and in particular to a spindle deviation detection method, a controller, a medium, a program product and a circuit board processing device. Background Art
[0002] As one of the important components of electronic equipment, printed circuit boards (PCBs) have high processing accuracy requirements. At present, key process processes such as through-hole processing, deep hole processing and back drilling processing of printed circuit boards are usually achieved by drilling machines. However, when the drilling machine is processing for a long time or the spindle parts are replaced, it is easy to cause deviations in the relative position of the spindle and the worktable. When the relative position of the spindle and the worktable has a large deviation, the processing yield of the drilling machine will be reduced. Therefore, after the drilling machine has been working for a period of time or the spindle parts of the drilling machine have been replaced, the relative position of the spindle and the worktable of the drilling machine needs to be detected.
[0003] At present, it is usually detected by manual inspection whether there is a large deviation in the relative position of the spindle and the worktable, for example, manual measurement is performed by tools such as micrometers and standard circle PINs. However, manual inspection generally has the problem of low inspection efficiency. Therefore, an efficient spindle deviation detection method for the spindle and the worktable is urgently needed. Summary of the invention
[0004] The embodiments of the present invention provide a spindle deviation detection method, a controller, a medium, a program product and a circuit board processing device to solve the problem of low efficiency of manual spindle and workbench spindle deviation detection.
[0005] A spindle deviation detection method is applied to a circuit board processing device, wherein the circuit board processing device includes a spindle, a workbench and a tool detector, and the method includes: When a preset condition is met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain deviation detection data of the spindle; Determining whether detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold; If the detected deviation data exceeds the first deviation threshold, compensation processing is performed on the spindle according to the detected deviation data.
[0006] In the above method, optionally, the deviation detection data includes first detection data and second detection data; Wherein, the first detection data is obtained by detecting that the spindle grabs the spindle tool and moves along the first direction within the detection area; The second detection data is obtained by detecting that the spindle grabs the spindle tool and moves along a second direction within the detection area, and the first direction and the second direction are different directions.
[0007] In the above method, optionally, the tool detector includes a first detector in the first direction and a second detector in the second direction; The controlling the spindle to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain the deviation detection data of the spindle includes: Controlling the spindle to grab the spindle tool and enter the detection area of the first detector along the first direction for movement detection to obtain the first detection data of the spindle; The spindle is controlled to grab the spindle tool and enter the detection area of the second detector along the second direction for movement detection to obtain the second detection data of the spindle.
[0008] In the above method, optionally, the step of determining whether the detection deviation data between the deviation detection data and the reference detection data exceeds a preset first deviation threshold value comprises: Determining whether first deviation data between the first detection data and the reference detection data exceeds the first deviation threshold; If the first deviation data exceeds the first deviation threshold, performing compensation processing on the spindle according to the first deviation data; determining whether second deviation data between the second detection data and the reference detection data exceeds the first deviation threshold; If the second deviation data exceeds the first deviation threshold, compensation processing is performed on the main shaft according to the second deviation data.
[0009] In the above method, optionally, the benchmark detection data includes first benchmark data and second benchmark data; The determining whether the detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold comprises: Determine whether first deviation data between the first detection data and the first reference data exceeds the first deviation threshold; If the first deviation data exceeds the first deviation threshold, performing compensation processing on the spindle according to the first deviation data; Determine whether second deviation data between the second detection data and the second reference data exceeds the first deviation threshold; If the second deviation data exceeds the first deviation threshold, compensation processing is performed on the main shaft according to the second deviation data.
[0010] In the above method, optionally, the compensating the spindle according to the detected deviation data comprises: respectively determining whether the detection deviation data exceeds the first deviation threshold and is less than a second deviation threshold, and the second deviation threshold is greater than the first deviation threshold; If the detected deviation data exceeds the first deviation threshold and is less than the second deviation threshold, performing compensation processing on the spindle according to the detected deviation data; If the detected deviation data exceeds the second deviation threshold, the circuit board processing equipment is controlled to perform alarm processing.
[0011] In the above method, optionally, an air clamp is provided on the workbench, and the air clamp is used to fix the circuit board placed on the workbench; After performing compensation processing on the spindle according to the detection deviation data, the method further includes: The spindle is controlled to grab the spindle tool to process the circuit board.
[0012] In the above method, optionally, the tool detector comprises a receiver and a transmitter, 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 controlling the spindle to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain the deviation detection data of the spindle includes: When the spindle tool contacts the detection light beam in the detection area, the first position data of the spindle tool is recorded; When the spindle tool is controlled to leave the detection light beam, second position data of the spindle tool is recorded; The deviation detection data is calculated based on the first position data and the second position data.
[0013] 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 any one of the above-mentioned spindle deviation detection methods when executing the computer program.
[0014] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements any one of the spindle deviation detection methods described above.
[0015] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the spindle deviation detection method described in any one of the above items is implemented.
[0016] A circuit board processing equipment, characterized in that the circuit board processing equipment includes the spindle, worktable and tool detector described in any one of the above items, the spindle is movably connected to the worktable, an air clamp and a circuit board are provided on the worktable, the air clamp is installed on the worktable, and the circuit board is fixed on the worktable by the air clamp.
[0017] In summary, the present invention discloses a spindle deviation detection method, controller, medium, program product and circuit board processing equipment, which controls the spindle to grab the spindle tool and enter the detection area of the tool detector for mobile detection under the condition of meeting the preset conditions, obtains the deviation detection data of the spindle, judges whether the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold, and if the detection deviation data exceeds the first deviation threshold, performs compensation processing on the spindle according to the detection deviation data. It can be seen that the present invention uses the data obtained by the tool detector to detect the spindle tool as the deviation detection data of the spindle, and then realizes the deviation detection of the spindle according to the comparison of the deviation detection data and the reference detection data, and when the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold, performs compensation processing on the spindle according to the detection deviation data, and compared with the manual deviation detection of the spindle, the purpose of improving the deviation detection efficiency is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] 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.
[0019] Figure 1 It is a flow chart of an implementation of a spindle deviation detection method disclosed in an embodiment of the present invention; Figure 2 It is a partial implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Figure 3 It is a schematic diagram of the positions of a first detector and a second detector in a circuit board processing device disclosed in an embodiment of the present invention; Figure 4 is a schematic diagram of a main shaft disclosed in an embodiment of the present invention being detected in the detection areas of a first detector and a second detector respectively; Figure 5 It is a partial implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Figure 6 It is a partial implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Figure 7 It is a partial implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Figure 8 is another implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Fig. 9 It is a partial implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Fig.10 It is a partial implementation flow chart of a spindle deviation detection method disclosed in an embodiment of the present invention; Fig.11 is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention; Fig.12 It is a structural schematic diagram of a circuit board processing device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] In the description of the present invention, it should be understood that the terms "longitudinal", "radial", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0026] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the disclosure belongs. It will be further understood that the terms used herein should be interpreted as having a meaning consistent with their meaning in the context of this specification and the relevant technology, and will not be interpreted in an idealized or overly formal sense unless explicitly defined as such herein.
[0027] In order to fully understand the present invention, detailed structures and steps will be presented in the following description to illustrate the technical solutions proposed by the present invention. The preferred embodiments of the present invention are described in detail below, but in addition to these detailed descriptions, the present invention may also have other implementations.
[0028] The present invention discloses a spindle deviation detection method, controller, medium, program product and circuit board processing equipment. When a preset condition is met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for mobile detection to obtain the deviation detection data of the spindle, and it is judged whether the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold. If the detection deviation data exceeds the first deviation threshold, the spindle is compensated according to the detection deviation data. It can be seen that the present invention uses the tool detector to detect the spindle tool to obtain data as the deviation detection data of the spindle, and then realizes the deviation detection of the spindle according to the comparison of the deviation detection data and the reference detection data, and when the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold, the spindle is compensated according to the detection deviation data. Compared with the manual deviation detection of the spindle, the purpose of improving the deviation detection efficiency is achieved. The following is an explanation through specific embodiments.
[0029] like Figure 1 FIG. 1 is a flowchart of a spindle deviation detection method disclosed in an embodiment of the present invention. The method is applicable to processing equipment with a movable spindle and a worktable, such as a drilling machine, a guillotine cutter, etc. The spindle deviation detection method in this embodiment specifically includes the following steps: S101: When a preset condition is met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain the deviation detection data of the spindle.
[0030] It should be understood that after the circuit board processing equipment has been working for a certain period of time, errors will inevitably occur in the spindle and the worktable, resulting in reduced processing accuracy of the circuit board processing equipment. For example, the replacement of spindle parts of the circuit board processing equipment, the expansion and contraction of the spindle, and the aging of spindle parts may reduce the processing accuracy of the circuit board processing equipment. Therefore, the preset detection conditions in this embodiment may be as follows: The first detection condition is that after the circuit board processing equipment reaches a preset first time length, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for detection to obtain the deviation detection data of the spindle tool, so as to detect whether the spindle of the circuit board processing equipment is aged or expanded and shrunk due to long-term work, resulting in reduced processing accuracy of the circuit board processing equipment.
[0031] The second detection condition is to replace the spindle parts of the circuit board processing equipment, control the spindle to grab the spindle tool and enter the detection area of the tool detector for detection, and obtain the deviation detection data of the spindle tool, so as to detect the spindle of the circuit board processing equipment. After the parts are updated, the spindle becomes tilted, resulting in a decrease in the processing accuracy of the circuit board processing equipment.
[0032] S102: Determine whether the detection deviation data between the deviation detection data and the reference detection data exceeds a preset first deviation threshold.
[0033] The reference detection data may be detection data set manually as needed, or the reference detection data may be detection data obtained by controlling the spindle to grab the spindle tool and enter the detection area of the tool detector for detection after the circuit board processing equipment is debugged and qualified and the circuit board processing equipment enters the best working state. When the deviation detection data is equal to the reference detection data, or when the deviation detection data is very close to the reference detection data, the processing accuracy of the circuit board processing equipment can be guaranteed. Therefore, in this embodiment, the position deviation between the spindle and the workbench is detected by judging whether the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold.
[0034] When the detection deviation data of the deviation detection data and the benchmark detection data exceeds the preset first deviation threshold, the spindle is compensated according to the detection deviation data; when the detection deviation data of the deviation detection data and the benchmark detection data does not exceed the preset first deviation threshold, the process ends until the circuit board processing equipment reaches the preset detection condition next time, and the spindle is controlled again to grab the spindle tool and enter the detection area of the tool detector for detection to obtain the deviation detection data of the spindle tool, and then, it is judged again whether the detection deviation data of the deviation detection data and the benchmark detection data exceeds the preset first deviation threshold.
[0035] It should be noted that when the detection deviation data of the deviation detection data and the benchmark detection data does not exceed the preset first deviation threshold, the time for the next detection of the circuit board processing equipment can be shortened. For example, after the circuit board processing equipment has worked for a first period of time, the circuit board processing equipment is detected once to obtain deviation detection data. If the detection deviation data of the deviation detection data and the benchmark detection data does not exceed the preset first deviation threshold, the circuit board processing equipment is detected again after the circuit board processing equipment has worked for a second period of time to obtain new deviation detection data, wherein the second period of time is less than the first period of time, such as the first period of time is 30 days, the second period of time is 20 days, and so on. The third period of time is 10 days. Therefore, by gradually increasing the detection frequency of the circuit board processing equipment, it is beneficial to timely discover the deviation problems of the circuit board processing equipment.
[0036] S103: If the detected deviation data exceeds a first deviation threshold, a compensation process is performed on the spindle according to the detected deviation data.
[0037] In a specific implementation, in this embodiment, the detection deviation data can be sent to the control module of the circuit board processing equipment, so that the control module performs compensation processing on the spindle according to the detection deviation data. The control module can be a host computer of the circuit board processing equipment, and the host computer is used to control the circuit board processing equipment to perform the entire process of circuit board processing.
[0038] In summary, the present invention discloses a spindle deviation detection method, which controls the spindle to grab the spindle tool and enter the detection area of the tool detector for mobile detection under the condition of meeting the preset conditions, obtains the deviation detection data of the spindle, and judges whether the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold value. If the detection deviation data exceeds the first deviation threshold value, the spindle is compensated according to the detection deviation data. It can be seen that the present invention uses the data obtained by the tool detector to detect the spindle tool as the deviation detection data of the spindle, and then realizes the deviation detection of the spindle according to the comparison of the deviation detection data and the reference detection data, and when the detection deviation data of the deviation detection data and the reference detection data exceeds the preset first deviation threshold value, the spindle is compensated according to the detection deviation data. Compared with the manual deviation detection of the spindle, the purpose of improving the deviation detection efficiency is achieved.
[0039] In one embodiment, the deviation detection data in this embodiment includes first detection data and second detection data; wherein the first detection data is obtained by detecting that the spindle grabs the spindle tool and moves along the first direction in the detection area; The second detection data is obtained by detecting that the spindle grabs the spindle tool and moves along the second direction within the detection area, and the first direction and the second direction are different directions.
[0040] In one embodiment, the tool detector in this embodiment includes a detection area, which controls the spindle to grab the spindle tool and perform movement detection along a first direction within the detection area to obtain first detection data; and controls the spindle to grab the spindle tool and perform movement detection along a second direction within the detection area to obtain second detection data.
[0041] In one embodiment, the tool detector in this embodiment includes a first detection area in a first direction and a second detection area in a second direction. The spindle is controlled to grab the spindle tool and enter the first detection area along the first direction for mobile detection to obtain first detection data; the spindle is controlled to grab the spindle tool and enter the second detection area along the second direction for mobile detection to obtain second detection data.
[0042] In one embodiment, the tool detector in this embodiment includes a first detector and a second detector, and the first detector includes a detection area in a first direction. On this basis, step S101 can be implemented in the following manner: S201: Control the spindle to grab the spindle tool and enter the detection area of the first detector along the first direction for movement detection to obtain first detection data.
[0043] S202: Control the spindle to grab the spindle tool and move along the second direction into the detection area of the second detector for movement detection to obtain second detection data.
[0044] The first detector is a tool detector with the entrance of the detection area in the first direction, and the second detector is a tool detector with the entrance of the detection area in the second direction, that is, the installation positions and installation directions of the first detector and the second detector are different. Figure 3 As shown, it is a schematic diagram of the installation of the first detector and the second detector in an embodiment of the present invention, wherein 4a is the first detector, 4b is the second detector, 1 is the spindle, 3 is the workbench, 5 is the spindle tool, the first detector 4a and the second detector 4b are respectively arranged on the workbench 3, and the spindle tool 5 is clamped and fixed on the spindle 1.
[0045] In one embodiment, Figure 4 As shown, it is a schematic diagram of the deviation detection of the spindle in the first direction and the deviation detection in the second direction in this embodiment, wherein sub-figures a1 and a2 are schematic diagrams of the spindle grabbing the spindle tool for movement detection along the first direction, and sub-figures b1 and b2 are schematic diagrams of the spindle grabbing the spindle tool for movement detection along the second direction.
[0046] Specifically, the circuit board processing equipment in this embodiment is provided with a first direction motor and a second direction motor for controlling the movement of the spindle, wherein the first direction may refer to the front-back direction of the spindle, and the second direction may refer to the left-right direction of the spindle, and the specific orientations of the first direction and the second direction are not limited in this embodiment. The first direction motor is used to control the spindle to move along the first direction so as to enter the detection area of the first detector for detection, thereby obtaining first detection data of the spindle tool; the second direction motor is used to control the spindle to move along the second direction so as to enter the detection area of the second detector for detection, thereby obtaining second detection data of the spindle tool.
[0047] In summary, in this embodiment, by performing deviation detection on the spindle in two directions, compared with performing deviation detection on the spindle in the first direction, it is beneficial to improve the accuracy of spindle deviation detection.
[0048] based on Figure 1 In the specific implementation, step S102 in this embodiment can be implemented as follows: Figure 5 As shown: S501: Determine whether a first deviation data between the first detection data and the reference detection data exceeds a first deviation threshold.
[0049] S502: If the first deviation data exceeds a first deviation threshold, a compensation process is performed on the spindle according to the first deviation data.
[0050] In a specific implementation, when the first deviation data between the first detection data and the reference detection data exceeds a preset first deviation threshold, the spindle is compensated according to the first deviation data; when the first deviation data between the first detection data and the reference detection data does not exceed the preset first deviation threshold, the process ends until the circuit board processing equipment reaches the preset detection condition next time, and then the spindle is controlled again to grab the spindle tool and enter the detection area of the tool detector for detection to obtain the first detection data of the spindle tool, and then, it is determined again whether the first deviation data between the first detection data and the reference detection data exceeds the preset first deviation threshold, and so on.
[0051] S503: Determine whether the second deviation data between the second detection data and the reference detection data exceeds a second deviation threshold.
[0052] S504: If the second deviation data exceeds the second deviation threshold, compensation processing is performed on the spindle according to the second deviation data.
[0053] In a specific implementation, when the second deviation data between the second detection data and the benchmark detection data exceeds the preset first deviation threshold, the spindle is compensated according to the second deviation data; when the second deviation data between the second detection data and the benchmark detection data does not exceed the preset first deviation threshold, the process ends until the circuit board processing equipment reaches the preset detection condition next time, and then the spindle is controlled again to grab the spindle tool and enter the detection area of the tool detector for detection to obtain the second detection data of the spindle tool, and then, it is determined again whether the second deviation data between the second detection data and the benchmark detection data exceeds the preset first deviation threshold, and so on.
[0054] In summary, in this embodiment, by detecting the deviation of the spindle in two directions and performing compensation processing on the spindle in the two directions respectively, it is beneficial to improve the compensation accuracy of the spindle.
[0055] In one embodiment, the benchmark detection data in this embodiment includes first benchmark data and second benchmark data. On this basis, step S102 in this embodiment can also be implemented in the following manner: Figure 6 As shown: S601: Determine whether first deviation data between first detection data and first reference data exceeds a first deviation threshold.
[0056] S602: If the first deviation data exceeds a first deviation threshold, a compensation process is performed on the spindle according to the first deviation data.
[0057] The first reference value and the second reference value may be the same or different.
[0058] In a specific implementation, when the first deviation data between the first detection data and the first reference data exceeds a preset first deviation threshold, the spindle is compensated according to the first deviation data; when the first deviation data between the first detection data and the first reference data does not exceed the preset first deviation threshold, the process ends until the circuit board processing equipment meets the preset detection conditions next time, and then the spindle is controlled again to grab the spindle tool and enter the detection area of the tool detector for detection to obtain the first detection data of the spindle tool, and then, it is determined again whether the first deviation data between the first detection data and the first reference data exceeds the preset first deviation threshold, and so on.
[0059] S603: Determine whether the second deviation data between the second detection data and the second reference data exceeds the first deviation threshold.
[0060] S604: If the second deviation data exceeds the first deviation threshold, compensation processing is performed on the spindle according to the second deviation data.
[0061] In a specific implementation, when the second deviation data between the second detection data and the second reference data exceeds the preset first deviation threshold, the spindle is compensated according to the detection deviation data; when the detection deviation data of the second deviation data and the second reference data does not exceed the preset first deviation threshold, the process ends until the circuit board processing equipment reaches the preset detection condition next time, and the spindle is controlled again to grab the spindle tool and enter the detection area of the tool detector for detection to obtain the second deviation data of the spindle tool, and then, it is judged again whether the detection deviation data of the second deviation data and the second reference data exceeds the preset first deviation threshold.
[0062] In summary, in this embodiment, by setting corresponding reference values in two directions respectively, different deviation detection standards can be implemented in the two directions respectively, which is conducive to improving the rationality of spindle deviation detection.
[0063] based on Figure 1 In the specific implementation, step S103 in this embodiment can be implemented by the following steps: Figure 7 As shown: S701: Determine whether the detection deviation data exceeds a first deviation threshold and is less than a second deviation threshold.
[0064] The second deviation threshold is greater than the first deviation threshold.
[0065] S702: If the detected deviation data exceeds the first deviation threshold and is less than the second deviation threshold, compensation processing is performed on the spindle according to the detected deviation data.
[0066] S703: If the detected deviation data exceeds a second deviation threshold, the circuit board processing equipment is controlled to perform alarm processing.
[0067] If the first deviation data exceeds the first deviation threshold and is less than the second deviation threshold, the spindle is compensated according to the first deviation data; if the first deviation data is less than the first deviation threshold, the process ends; if the first deviation data exceeds the second deviation threshold, the circuit board processing equipment is controlled to perform alarm processing.
[0068] Further, when the detected deviation data includes the first deviation data detected in the first direction and the first deviation data detected in the second direction, if both the first deviation data and the second deviation data exceed the first deviation threshold and are less than the second deviation threshold, the spindle is compensated in the first direction according to the first deviation data, and the spindle is compensated in the second direction according to the second deviation data. If any one of the first deviation data and the second deviation data exceeds the second deviation threshold, or both the first deviation data and the second deviation data exceed the second deviation threshold, the circuit board processing equipment is controlled to perform an alarm process.
[0069] In one embodiment, the alarm processing in this embodiment includes but is not limited to voice alarm reminders, text alarm reminders, and SMS reminders of circuit board processing equipment.
[0070] Firstly, the voice alarm reminder in this embodiment can be realized by controlling the voice equipment (such as buzzer, speaker, etc.) of the circuit board processing equipment through the control system of the circuit board processing equipment.
[0071] Secondly, the text alarm reminder in this embodiment can be realized by controlling the display device (such as the central control display screen, etc.) of the circuit board processing equipment through the control system of the circuit board processing equipment.
[0072] Thirdly, the SMS reminder in this embodiment can send alarm data to the background server through the control system of the circuit board processing equipment, so that the background server sends the alarm data to the communication terminal of the person in charge of the circuit board processing equipment, such as a mobile phone.
[0073] The alarm processing is used to indicate that the spindle of the circuit board processing equipment needs to be re-debugged. It should be understood that when the first deviation data and / or the second deviation data is greater than the second deviation threshold, it indicates that the spindle of the circuit board processing equipment has a large degree of deviation. If the spindle is not debugged, the yield rate of the circuit board processing equipment will be reduced.
[0074] In one embodiment, the compensation processing in this embodiment includes: compensating the coordinates of the spindle center point in the machine coordinate system of the circuit board processing equipment according to the detection deviation data, or adjusting the coordinates of the worktable in the machine coordinate system of the circuit board processing equipment according to the detection deviation data to achieve compensation for the spindle center point.
[0075] based on Figure 1 In the specific implementation, an air clamp is provided on the workbench in this embodiment, and the air clamp is used to fix the circuit board placed on the workbench. On this basis, after step S103, the following steps are also included, such as Figure 8 As shown: S104: Control the spindle to grab the spindle tool to process the circuit board.
[0076] It should be understood that after the spindle is compensated, the processing accuracy of the spindle has been improved. Therefore, by controlling the spindle to grab the spindle tool to process the circuit board, a circuit board with higher accuracy can be obtained.
[0077] Among them, controlling the spindle to grab the spindle tool to process the circuit board includes but is not limited to drilling, milling, breakpoint processing, etc. In this embodiment, after the spindle is compensated, the type of processing of the circuit board by the spindle is not limited.
[0078] based on Figure 1 In the specific implementation, the tool detector 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. On this basis, step S101 in this embodiment can be implemented by the following steps: Fig. 9 As shown: S901: When the spindle tool contacts the detection light beam in the detection area, the first position data of the spindle tool is recorded.
[0079] S902: When the spindle tool is controlled to leave the detection light beam, the second position data of the spindle tool is recorded.
[0080] By controlling the spindle to grab the spindle tool and enter the detection area of the tool detector, when the spindle tool contacts the detection beam in the detection area, the detection beam is blocked by the spindle tool, and the receiver cannot receive the detection beam emitted by the transmitter. At this time, the first position data of the spindle tool is recorded. At the same time, after controlling the spindle tool to contact the detection beam, the spindle tool continues to be controlled to move. When the spindle tool leaves the detection beam, the detection beam is no longer blocked by the spindle tool, and the receiver can normally receive the detection beam emitted by the transmitter. At this time, the second position data of the spindle tool is recorded.
[0081] In one embodiment, Fig.10, which is a schematic diagram of the structure of the tool detector in this embodiment, wherein 1 is the spindle, 5 is the spindle tool, 6 is the transmitter, 7 is the receiver, and 8 is the detection beam. The spindle tool 5 is clamped and fixed on the spindle 1, the transmitter 6 and the receiver 7 are arranged oppositely, and the transmitter 6 transmits the detection beam 8 to the receiver 7.
[0082] In a specific implementation, in this embodiment, the first position data and the second position data of the spindle tool can be read through the grating ruler displacement sensor. When the tool detector 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 tool detector can continuously send a high-level signal. When the spindle tool just contacts the detection beam, due to the obstruction of the spindle tool, the receiver cannot normally receive the detection beam emitted by the transmitter. At this time, the tool detector can send a low-level signal, and then when receiving the low-level signal, the first position data of the spindle tool is read through the grating ruler displacement sensor. When the spindle tool leaves the detection beam, the receiver can normally receive the detection beam emitted by the transmitter. At this time, the tool detector can send a high-level signal, and then when receiving the high-level signal, the second position data of the spindle tool is read through the grating ruler displacement sensor. Based on this, the acquisition of the first position data and the second position data can be achieved.
[0083] S903: Calculate deviation detection data according to the first position data and the second position data.
[0084] In a specific implementation, the first position data can be recorded as 0, and the second position data can be recorded as the displacement distance relative to the first position data, that is, the displacement distance from the first position data to the second position data is recorded by the grating ruler displacement sensor. Alternatively, the first position data and the second position data are both the displacement distances of the spindle tool in the same displacement direction. On this basis, the deviation detection data can be obtained by subtracting the first position data from the second position data, or the deviation detection data can be obtained by subtracting the first position data from the second position data and calculating the average value. That is, the displacement distance recorded by the second position data is subtracted from the displacement distance recorded by the first position data, and then divided by 2 to obtain the deviation detection data.
[0085] In summary, in this embodiment, the deviation detection data is obtained by detecting the displacement distance required for the spindle tool to pass through the detection beam, that is, the first position data and the second position data. Compared with manual measurement, the purpose of improving the spindle tool detection efficiency can be achieved.
[0086] In one embodiment, the present invention further discloses a detection controller for circuit board processing equipment, the internal structure of which can be shown as follows: Fig.11As 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 position deviation detection method provided in the above embodiment is implemented.
[0087] 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: When the preset conditions are met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for mobile detection to obtain the deviation detection data of the spindle; Determine whether the detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold; If the detected deviation data exceeds the first deviation threshold, compensation processing is performed on the spindle according to the detected deviation data.
[0088] In one implementation, an embodiment of the present application discloses a computer-readable storage medium, and when instructions in the computer-readable storage medium are executed by a processor in a computer device, the computer device is enabled to perform the steps of any embodiment of a spindle deviation detection method disclosed in the present invention. The computer-readable storage medium may be non-volatile or volatile.
[0089] 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: When the preset conditions are met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for mobile detection to obtain the deviation detection data of the spindle; Determine whether the detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold; If the detected deviation data exceeds the first deviation threshold, compensation processing is performed on the spindle according to the detected deviation data.
[0090] In one embodiment, the present invention discloses a computer program product, including a computer program, which implements the spindle deviation detection method disclosed in any of the above embodiments when executed by a processor.
[0091] In one embodiment, a computer program product is provided, and when the computer program product executes a computer program, the following steps are implemented: When the preset conditions are met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for mobile detection to obtain the deviation detection data of the spindle; Determine whether the detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold; If the detected deviation data exceeds the first deviation threshold, compensation processing is performed on the spindle according to the detected deviation data.
[0092] In one embodiment, Fig.12 As shown, the present invention discloses a circuit board processing equipment, which includes the spindle, worktable and tool detector disclosed in any of the above embodiments, the spindle is movably connected with the worktable, an air clamp and a circuit board are provided on the worktable, the air clamp is installed on the worktable, and the circuit board is fixed on the worktable by the air clamp.
[0093] Among them, the spindle is used to process the circuit board on the workbench.
[0094] The above embodiments 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 be included in the protection scope of the present invention.
Claims
1. A spindle deviation detection method, characterized in that: Applied to a circuit board processing device, the circuit board processing device includes a spindle, a worktable and a tool detector, and the method includes: When a preset condition is met, the spindle is controlled to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain deviation detection data of the spindle; Determining whether detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold; If the detected deviation data exceeds the first deviation threshold, compensation processing is performed on the spindle according to the detected deviation data.
2. The spindle deviation detection method according to claim 1, characterized in that: The deviation detection data includes first detection data and second detection data; Wherein, the first detection data is obtained by detecting that the spindle grabs the spindle tool and moves along the first direction within the detection area; The second detection data is obtained by detecting that the spindle grabs the spindle tool and moves along a second direction within the detection area, and the first direction and the second direction are different directions.
3. The spindle deviation detection method according to claim 2, characterized in that: The tool detector comprises a first detector in the first direction and a second detector in the second direction; The controlling the spindle to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain the deviation detection data of the spindle includes: Controlling the spindle to grab the spindle tool and enter the detection area of the first detector along the first direction for movement detection to obtain the first detection data of the spindle; The spindle is controlled to grab the spindle tool and enter the detection area of the second detector along the second direction for movement detection to obtain the second detection data of the spindle.
4. The spindle deviation detection method according to claim 2, characterized in that: The determining whether the detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold comprises: Determining whether first deviation data between the first detection data and the reference detection data exceeds the first deviation threshold; If the first deviation data exceeds the first deviation threshold, performing compensation processing on the spindle according to the first deviation data; determining whether second deviation data between the second detection data and the reference detection data exceeds the first deviation threshold; If the second deviation data exceeds the first deviation threshold, compensation processing is performed on the main shaft according to the second deviation data.
5. The spindle deviation detection method according to claim 2, characterized in that: The benchmark detection data includes first benchmark data and second benchmark data; The determining whether the detection deviation data of the deviation detection data and the reference detection data exceeds a preset first deviation threshold comprises: Determine whether first deviation data between the first detection data and the first reference data exceeds the first deviation threshold; If the first deviation data exceeds the first deviation threshold, performing compensation processing on the spindle according to the first deviation data; Determine whether second deviation data between the second detection data and the second reference data exceeds the first deviation threshold; If the second deviation data exceeds the first deviation threshold, compensation processing is performed on the main shaft according to the second deviation data.
6. The spindle deviation detection method according to any one of claims 1 to 5, characterized in that: The compensating process for the spindle according to the detected deviation data includes: respectively determining whether the detection deviation data exceeds the first deviation threshold and is less than a second deviation threshold, and the second deviation threshold is greater than the first deviation threshold; If the detected deviation data exceeds the first deviation threshold and is less than the second deviation threshold, performing compensation processing on the spindle according to the detected deviation data; If the detected deviation data exceeds the second deviation threshold, the circuit board processing equipment is controlled to perform alarm processing.
7. The spindle deviation detection method according to any one of claims 1 to 5, characterized in that: The workbench is provided with an air clamp, and the air clamp is used to fix the circuit board placed on the workbench; After performing compensation processing on the spindle according to the detection deviation data, the method further includes: The spindle is controlled to grab the spindle tool to process the circuit board.
8. The spindle deviation detection method according to any one of claims 1 to 5, characterized in that: The tool 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 controlling the spindle to grab the spindle tool and enter the detection area of the tool detector for movement detection to obtain the deviation detection data of the spindle includes: When the spindle tool contacts the detection light beam in the detection area, the first position data of the spindle tool is recorded; When the spindle tool is controlled to leave the detection light beam, second position data of the spindle tool is recorded; The deviation detection data is calculated based on the first position data and the second position data.
9. 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 spindle deviation detection method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the spindle deviation detection method according to any one of claims 1 to 8 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the spindle deviation detection method according to any one of claims 1 to 8 is implemented.
12. A circuit board processing device, characterized in that: The circuit board processing equipment includes the spindle, workbench and tool detector according to any one of claims 1 to 8, the spindle is movably connected to the workbench, an air clamp and a circuit board are provided on the workbench, the air clamp is installed on the workbench, and the circuit board is fixed on the workbench by the air clamp.