Main shaft detection method, controller, storage medium, program product and machining equipment

By using a slant detection device of an optical transmitter and an optical receiver in a PCB processing equipment, the slant electrical signal of the spindle is detected, and the problem of low spindle detection accuracy in the prior art is solved, and a higher precision spindle slant detection is achieved.

CN119502053APending Publication Date: 2025-02-25HANS CNC SCI & TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411472960.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing spindle detection methods have the problem of low detection accuracy and cannot effectively reflect the degree of spindle slant.

Method used

By using a slant detection device of the light emitter and the light receiver in the PCB processing equipment, the spindle is controlled to clamp the target slant rod and move it between the light emitter and the light receiver. The spindle drives the slant rod to rotate according to the preset rotation speed value to form a slant beam, and the slant electric signal obtained by the slant beam reflects the degree of slant of the spindle.

Benefits of technology

The accuracy of spindle detection is improved, and the degree of spindle slant can be more accurately reflected, so as to timely determine whether the spindle needs to be debugged or replaced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119502053A_ABST
    Figure CN119502053A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of equipment detection, and discloses a main shaft detection method, a controller, a storage medium, a program product and PCB processing equipment. A main shaft is controlled to clamp a target deflection rod to move to a target position between a light emitter and a light receiver; and then the main shaft is controlled to drive the target deflection rod to rotate at the target position according to a preset first rotating speed value, so that the target deflection rod shields part of the detection light beam, a deflection light beam is formed and irradiated to the light receiver, a deflection electric signal of the main shaft is obtained according to the deflection light beam, and a main shaft detection result of the main shaft is obtained according to the deflection electric signal. Therefore, the deflection degree of the main shaft is reflected according to the magnitude of the deflection electric signal detected by the deflection detection device, then the main shaft detection result is obtained, and compared with the prior art, the purpose of improving the detection precision of the main shaft can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment detection, and in particular to a spindle detection method, a controller, a storage medium, a program product and PCB processing equipment. Background Art

[0002] With the continuous development of science and technology, PCB drilling technology is constantly developing towards high precision, high density and high efficiency. As one of the main equipment for PCB drilling processing, the processing accuracy of the drilling machine directly determines the processing quality of the PCB board. During the drilling process of the PCB board, the main shaft of the drilling machine needs to clamp the tool and rotate at high speed to drill the PCB board through the tool.

[0003] However, after the spindle of the drilling machine is worn out due to long-term operation or aging, the spindle is prone to insufficient speed or excessive deflection, which will directly affect the forming quality of the holes drilled on the PCB board. Therefore, it is necessary to detect the spindle to determine the degree of deflection of the spindle, and then judge whether the spindle needs to be debugged or replaced based on the degree of deflection of the spindle.

[0004] At present, the existing technology usually detects the spindle deflection by detecting the shading frequency when the spindle deflects through an infrared sensor. However, the shading frequency mainly reflects the number of spindle deflections. Therefore, the existing spindle detection method has the problem of low detection accuracy.

[0005] Therefore, a high-precision spindle detection method is urgently needed. Summary of the invention

[0006] The embodiments of the present invention provide a spindle detection method, a controller, a storage medium, a program product and a PCB processing device to solve the problem of low spindle detection accuracy.

[0007] A spindle detection method is applied to PCB processing equipment, the PCB processing equipment includes a spindle and a deflection detection device, the deflection detection device includes a light transmitter and a light receiver, and is characterized in that the spindle detection method includes: Controlling the spindle to clamp the target deflection rod and move it to a target position between the light transmitter and the light receiver, so that the target deflection rod contacts the detection light beam emitted by the light transmitter; Controlling the main shaft to drive the target deflection rod to rotate at the target position according to a preset first speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver; Obtaining a deflection electrical signal of the spindle according to the deflection light beam, wherein the magnitude of the deflection electrical signal reflects the deflection degree of the spindle; A spindle detection result of the spindle is obtained according to the deflection electrical signal.

[0008] In the above method, optionally, the optical receiver includes a first receiver and a second receiver, the first receiver and the second receiver are symmetrically arranged relative to the main axis, and the optical transmitter simultaneously transmits the detection light beam to the first receiver and the second receiver; The step of obtaining the deflection electrical signal of the main axis according to the deflection light beam comprises: Acquire a first electrical signal obtained by the first receiver based on the detection light beam, and a second electrical signal obtained by the second receiver based on the detection light beam, wherein the first electrical signal is obtained by the first receiver through photoelectric conversion of a first optical signal obtained based on the detection light beam, and the second electrical signal is obtained by the second receiver through photoelectric conversion of a second optical signal obtained based on the detection light beam; The deflection electrical signal is obtained according to the first electrical signal and the second electrical signal.

[0009] In the above method, optionally, the spindle detection result includes a runout value and a second speed value of the spindle, and the second speed value is an actual speed value of the spindle; The step of obtaining a spindle detection result of the spindle according to the deflection electrical signal comprises: Determining the deflection value according to the amplitude of the deflection electrical signal; The second rotation speed value is determined according to the cycle time of the deflection electrical signal.

[0010] The above method, optionally, after obtaining the spindle detection result of the spindle according to the deflection electrical signal, the method further includes: Determine whether the deflection value exceeds a preset deflection threshold, and determine whether a speed difference between the second speed value and the first speed value is greater than a preset difference threshold; If the deflection value exceeds the deflection threshold, and / or the speed difference is greater than the difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the deflection value and the second speed value are displayed in real time on a display screen of the PCB processing equipment; If the deflection value does not exceed the deflection threshold, and the rotational speed difference is less than or equal to the difference threshold, the deflection value and the second rotational speed value are displayed in real time on a display screen of the PCB processing equipment.

[0011] In the above method, optionally, the PCB processing equipment further comprises a deflection rod box, in which the target deflection rod is placed; Before controlling the spindle to clamp the target deflection rod and move it to a target position between the light emitter and the light receiver so that the target deflection rod contacts the detection light beam emitted by the light emitter, the method further includes: When receiving the spindle detection instruction, the spindle of the drilling machine is controlled to move to the yaw rod box position to clamp the target yaw rod placed in the yaw rod box.

[0012] The above method, optionally, after controlling the spindle to clamp the target yaw rod and enter the target position between the light transmitter and the light receiver, controls the spindle to rotate according to the first speed value, or controls the spindle to clamp the target yaw rod and rotate according to the first speed value, and during the rotation of the spindle, controls the spindle to enter the target position between the light transmitter and the light receiver.

[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 spindle 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 detection methods described above.

[0015] A computer program product includes a computer program, wherein the computer program implements any of the above-mentioned spindle detection methods when executed by a processor.

[0016] A PCB processing device comprises the spindle and the deflection detection device as described in any one of the above items, wherein the deflection detection device comprises a light transmitter and a light receiver.

[0017] The above spindle detection method, controller, storage medium, program product and PCB processing equipment control the spindle to clamp the target deflection rod and move it to the target position between the optical transmitter and the optical receiver, and then control the spindle to drive the target deflection rod to rotate at the target position according to the preset first speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver, and the spindle deflection electrical signal is obtained according to the deflection light beam, and the spindle detection result of the spindle is obtained according to the deflection electrical signal. It can be seen that the present invention reflects the deflection degree of the spindle according to the size of the deflection electrical signal detected by the deflection detection device, and then obtains the spindle detection result. Compared with the prior art, the purpose of improving the spindle detection accuracy can be 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 for realizing a spindle detection method disclosed in an embodiment of the present invention; Figure 2 It is a structural schematic diagram of a PCB processing device disclosed in an embodiment of the present invention; Figure 3 It is a structural schematic diagram of a deflection detection device and a main shaft disclosed in an embodiment of the present invention; Figure 4 It is a partial implementation flow chart of a spindle detection method disclosed in an embodiment of the present invention; Figure 5 It is a partial implementation flow chart of a spindle detection method disclosed in an embodiment of the present invention; Figure 6 It is another structural schematic diagram of a deflection detection device and a main shaft disclosed in an embodiment of the present invention; Figure 7 is another implementation flow chart of a spindle detection method disclosed in an embodiment of the present invention; Figure 8 is another implementation flow chart of a spindle detection method disclosed in an embodiment of the present invention; Fig. 9 It is a structural schematic diagram of a controller 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] As used in the present specification and the appended claims, the term "if" can be interpreted as "when" or "uponce" 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" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0024] 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.

[0025] 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.

[0026] The present invention discloses a spindle detection method, controller, storage medium, program product and PCB processing equipment. The spindle is controlled to clamp a target deflection rod and move it to a target position between a light transmitter and a light receiver. Then, the spindle is controlled to drive the target deflection rod to rotate at the target position according to a preset first speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver. The spindle deflection electrical signal is obtained according to the deflection light beam, and the spindle detection result of the spindle is obtained according to the deflection electrical signal. It can be seen that the present invention reflects the deflection degree of the spindle according to the size of the deflection electrical signal detected by the deflection detection device, and then obtains the spindle detection result. Compared with the prior art, the purpose of improving the spindle detection accuracy can be achieved. The following is an explanation through specific embodiments.

[0027] like Figure 1As shown, it is a flowchart of implementing a spindle detection method disclosed in an embodiment of the present invention. The method is applicable to numerical control equipment with data processing capabilities, such as PCB processing equipment. The method in this embodiment specifically includes the following steps: S101: Control the main shaft to clamp the target deflection rod and move it to the target position between the light transmitter and the light receiver, so that the target deflection rod contacts the detection light beam emitted by the transmitter.

[0028] In a specific implementation, in this embodiment, the coordinate position of the target position between the light emitter and the light receiver in the machine coordinate system of the PCB processing equipment is fixed. Therefore, in this embodiment, the spindle can be controlled to clamp the target deflection rod and move it to the target position between the light emitter and the light receiver according to the coordinate position of the target position. When the spindle is at the target position, the target deflection rod clamped by the spindle contacts the detection light beam emitted by the transmitter.

[0029] refer to Figure 2 FIG. 1 is a schematic diagram of the structure of the PCB processing equipment in this embodiment. Figure 2 It is a structural schematic diagram of the deflection detection device in this embodiment. The PCB processing equipment includes: a spindle 1, a deflection rod 2, a deflection detection device 3, a workbench 4, a deflection rod box 5, a cutter head 6, and a detection hole 7, wherein the detection hole 7 is the target position between the light transmitter and the light receiver. During the spindle detection process, the spindle 1 moves to the position of the deflection rod box 5, clamps the deflection rod 2 in the position 5 of the deflection rod box 5, and then moves to the deflection detection device 3, extends the deflection rod 2 into the detection hole 7 of the deflection detection device 3, controls the spindle 1 to drive the deflection rod 2 to rotate, and obtains the deflection electrical signal of the spindle 1 during the rotation process through the deflection detection device 3. It should be understood that the deflection detection device 3 directly obtains the deflection electrical signal of the deflection rod 2, and the deflection electrical signal of the deflection rod 2 reflects the deflection degree of the spindle 1.

[0030] refer to Figure 3 As shown, it is a structural schematic diagram of the deflection detection device in this embodiment. The deflection detection device includes: wherein 1 is the main shaft, 2 is the light transmitter, 3 is the light receiver, 4 is the target deflection rod, and 5 is the light beam. It can be seen that the light generator 2 transmits the detection light beam to the light receiver 3, and the detection light beam is blocked by the target deflection rod 4. At this time, when the main shaft does not deflect, the amount of light blocking the detection light beam by the target deflection rod is almost unchanged, and when the main shaft deflects, the amount of light blocking the detection light beam by the deflection rod will decrease with the occurrence of deflection, and the amount of light entering the light receiver will increase. Therefore, the size of the deflection light signal received by the light receiver will increase with the increase of the deflection degree. In a specific implementation, in this embodiment, the deflection light signal can be converted into a deflection electrical signal through photoelectric conversion, and then the detection result of the main shaft is determined according to the deflection electrical signal.

[0031] It should be noted that the above Figure 2 The PCB processing equipment structure in the embodiment is only an exemplary description, and does not limit the installation position of the deflection detection device and the target deflection rod on the PCB processing equipment. The deflection detection device in this embodiment can be fixedly installed on the PCB processing equipment at any position to which the spindle can move, so as to avoid the influence of frequent installation and debugging of the deflection detection device on the PCB processing equipment on the detection result every time the spindle deflection detection is performed. In addition, the deflection rod box in this embodiment can also be fixedly installed on the PCB processing equipment at any position to which the spindle can move, or even installed on the deflection detection device, so as to shorten the distance between the deflection rod box and the deflection detection device, and then shorten the time required for the spindle to move to the detection hole of the deflection detection device after grabbing the target deflection rod. In summary, the deflection detection device is fixedly installed on the PCB processing equipment, and the deflection rod box is fixedly installed on the deflection detection device, so as to achieve the purpose of improving the spindle deflection detection efficiency and improving the spindle deflection detection accuracy.

[0032] S102: Control the main shaft to drive the target deflection rod to rotate at the target position according to a preset first rotation speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver.

[0033] It should be understood that when the control spindle drives the target yaw rod to rotate at the target position according to the preset first speed value, if the spindle has a yaw problem, the target yaw rod clamped by the spindle will also yaw along with the spindle. Therefore, as the target yaw rod rotates, the blocking area of ​​the detection light beam blocked by the yawed target yaw rod will also change with the rotation angle. When the blocking area of ​​the detection light beam blocked by the target yaw rod gradually increases, the formed yaw light beam will gradually become weaker. When the blocking area of ​​the detection light beam blocked by the target yaw rod gradually becomes smaller, the formed yaw light beam will gradually become stronger. Therefore, the strength change of the light signal received by the optical receiver can reflect the degree of spindle yaw.

[0034] refer to Figure 3 As shown, when the control spindle drives the target yaw rod to rotate at the target position according to the first speed value, if the target yaw rod completely blocks the detection light beam, or the blocking area of ​​the target yaw rod blocking the detection light beam remains unchanged, the formed yaw beam hardly changes. If the blocking area of ​​the target yaw rod blocking the detection light beam changes with the rotation angle of the spindle, the formed yaw beam will become weaker as the blocking area continues to increase, or become stronger as the blocking area continues to decrease. Therefore, the change in the strength of the yaw beam received by the optical receiver can reflect the change in the yaw of the spindle.

[0035] S103: Obtaining a deflection electrical signal of the main shaft according to the deflection light beam, wherein the magnitude of the deflection electrical signal reflects the deflection degree of the main shaft.

[0036] S104: Obtain the spindle detection result of the spindle according to the runout electrical signal.

[0037] It should be understood that when the optical receiver receives the deflected light beam, it converts the received optical signal (deflected light beam) into a corresponding deflected electrical signal, and then obtains the spindle detection result of the spindle based on the deflected electrical signal.

[0038] In one embodiment, the spindle detection result in this embodiment includes the spindle runout value and the second speed value, and the second speed value is the actual speed value of the spindle. The runout value and the second speed value can be calculated by the following steps. Figure 4 As shown: S401: Determine the deflection value according to the amplitude of the deflection electrical signal.

[0039] S402: Determine a second rotation speed value according to the cycle time of the yaw electrical signal.

[0040] It should be noted that the generated deflection electrical signal is a relatively regular periodic signal. By testing and analyzing the periodic signal, the corresponding relationship between the period of the deflection electrical signal and the spindle speed, as well as the relationship between the amplitude of the deflection electrical signal and the degree of spindle deflection are determined. Then, each time the deflection electrical signal is obtained, the deflection value and the second speed value are directly determined based on the period time and amplitude of the deflection electrical signal.

[0041] In summary, the present embodiment discloses a spindle detection method, which controls the spindle to clamp the target yaw rod and move it to the target position between the optical transmitter and the optical receiver, and then controls the spindle to drive the target yaw rod to rotate at the target position according to a preset first speed value, so that the target yaw rod blocks part of the detection light beam, forming a yaw beam to irradiate the light receiver, and obtains the spindle yaw electrical signal according to the yaw beam, and obtains the spindle detection result of the spindle according to the yaw electrical signal. It can be seen that the present invention reflects the spindle yaw degree according to the size of the yaw electrical signal detected by the yaw detection device, and then obtains the spindle detection result. Compared with the prior art, the present invention can achieve the purpose of improving the spindle detection accuracy.

[0042] based on Figure 1 In a specific implementation, the optical receiver includes a first receiver and a second receiver, the first receiver and the second receiver are symmetrically arranged relative to the main axis, and the optical transmitter simultaneously transmits a detection light beam to the first receiver and the second receiver. On this basis, step S103 in this embodiment can be implemented by the following steps, such as Figure 5 As shown: S501: Acquire a first electrical signal obtained by the first receiver based on the detection light beam, and a second electrical signal obtained by the second receiver based on the detection light beam.

[0043] The first electrical signal is obtained by the first receiver through photoelectric conversion of the first optical signal obtained based on the detection beam, and the second electrical signal is obtained by the second receiver through photoelectric conversion of the second optical signal obtained based on the detection beam. It can be understood that when the detection beam in this embodiment irradiates the first receiver and / or the second receiver, the first receiver and / or the second receiver can respectively obtain the first optical signal and the second optical signal based on the detection beam, and obtain the corresponding first electrical signal and the second electrical signal after photoelectric conversion of the first optical signal and the second optical signal.

[0044] In one embodiment, Figure 6 As shown, it is another structural schematic diagram of the deflection detection device and the main shaft in this embodiment, wherein 1 is the main shaft, 2 is the light transmitter, 3a is the first receiver, 3b is the second receiver, 4 is the target deflection rod, and 5 is the detection light beam. It can be seen that the light generator 2 simultaneously emits a detection beam to the first receiver 3a and the second receiver 3b, and the target deflection rod 4 simultaneously blocks the detection beam emitted by the light generator 2 to the first receiver 3a and the second receiver 3b. When the spindle 1 deflects toward the first receiver, the detection beam irradiated to the first receiver 3a will be blocked more as the deflection degree increases. At this time, the detection beam irradiated to the second receiver 3b will be blocked less as the deflection degree increases. Conversely, when the spindle 1 deflects toward the second receiver, the detection beam irradiated to the second receiver 3b will be blocked more as the deflection degree increases. At this time, the detection beam irradiated to the first receiver 3a will be blocked less as the deflection degree increases. Therefore, as the target deflection rod deflects, the first light signal received by the first receiver and the second light signal received by the second receiver are different, and the first electrical signal and the second electrical signal after photoelectric conversion are also different. Therefore, the spindle deflection electrical signal can be obtained based on the first electrical signal and the second electrical signal.

[0045] S502: Obtain a deflection electrical signal according to the first electrical signal and the second electrical signal.

[0046] The first electrical signal is subtracted from the second electrical signal to obtain a deflection electrical signal, which is approximately a sine wave. The deflection electrical signal is analyzed and processed to obtain a spindle detection result of the spindle.

[0047] It can be seen that in this embodiment, the spindle deflection is detected by a deflection detection device including two optical receivers to obtain the first electrical signal and the second electrical signal of the spindle, and then the deflection electrical signal that is approximately a sinusoidal wave is obtained by subtracting the first electrical signal from the second electrical signal. The amplitude and period of the sine wave can more intuitively reflect the deflection degree and rotation speed of the spindle, thereby obtaining more accurate deflection data.

[0048] In one embodiment, the method in this embodiment may further include the following steps: Figure 7 As shown: S105: Determine whether the runout value exceeds a preset runout threshold, and determine whether a speed difference between the second speed value and the first speed value is less than a preset difference threshold.

[0049] If the yaw value exceeds the preset yaw threshold, but the speed difference between the second speed value and the first speed value is less than or equal to the preset difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the yaw value and the second speed value are displayed in real time on the display screen of the PCB processing equipment; if the yaw value does not exceed the preset yaw threshold, but the speed difference between the second speed value and the first speed value is greater than the preset difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the yaw value and the second speed value are displayed in real time on the display screen of the PCB processing equipment; if the yaw value exceeds the preset yaw threshold, and the speed difference between the second speed value and the first speed value is greater than the preset difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the yaw value and the second speed value are displayed in real time on the display screen of the PCB processing equipment; if the yaw value does not exceed the preset yaw threshold, and the speed difference between the second speed value and the first speed value is less than or equal to the preset difference threshold, the yaw value and the second speed value are displayed in real time on the display screen of the PCB processing equipment. That is to say, the spindle warning will not be issued only when the runout value does not exceed the preset runout threshold and the speed difference is less than or equal to the preset difference threshold.

[0050] S106: If the runout value exceeds the runout threshold, and / or the speed difference is greater than a preset difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the runout value and the second speed value are displayed in real time on a display screen of the PCB processing equipment.

[0051] S107: If the runout value does not exceed the runout threshold, and the rotational speed difference is less than or equal to a preset difference threshold, the runout value and the second rotational speed value are displayed in real time on a display screen of the PCB processing equipment.

[0052] Among them, the spindle warning methods include but are not limited to graphic warning, voice warning, sound and light warning, etc. The real-time display of the runout value and the second speed value on the display screen of the PCB processing equipment helps the PCB processing equipment operator to understand the working status of the PCB processing equipment in real time. When the spindle warning occurs, it helps the staff to debug the spindle of the PCB processing equipment in time.

[0053] To sum up, in this embodiment, the spindle speed value and the spindle runout value are used as the triggering conditions of the spindle warning. When the spindle runout is too large or the spindle speed is abnormal, the spindle warning can be triggered, which is beneficial to improving the triggering accuracy of the spindle warning.

[0054] In one embodiment, in this embodiment, after the control spindle clamps the target yaw rod and enters the target position between the light transmitter and the light receiver, the control spindle rotates according to a first speed value, or the control spindle clamps the target yaw rod and rotates according to the first speed value, and during the spindle rotation, the control spindle enters the target position between the light transmitter and the light receiver.

[0055] In one embodiment, the PCB processing equipment further includes a deflection rod box, in which a target deflection rod is placed. On this basis, the present embodiment further includes the following steps before step S101: Figure 8 As shown: S108: upon receiving the spindle detection instruction, controlling the spindle of the PCB processing equipment to move to the yaw bar box position to clamp the target yaw bar placed in the yaw bar box.

[0056] The spindle detection instruction may be an instruction actively generated by the PCB processing equipment, or the spindle detection instruction may be an instruction passively generated by the PCB processing equipment.

[0057] In one embodiment, in this embodiment, a spindle detection instruction can be generated based on the detection control operation received in the spindle detection control interface of the PCB processing equipment. For example, the user selects the "immediate detection" control option in the spindle detection control interface output by the PCB processing equipment display screen, and then generates a spindle detection instruction, so that the PCB processing equipment detects the spindle according to the generated spindle detection instruction.

[0058] In another embodiment, in this embodiment, a trigger program for spindle detection can be pre-set in the control system of the PCB processing equipment, and when the trigger condition preset in the trigger program is reached, a spindle detection instruction is actively generated. For example, a timing detection program is set to generate a spindle detection instruction when the preset detection time is reached, or a spindle detection instruction is generated each time the PCB processing equipment is started. It should be understood that the above is only a partial implementation method of generating a spindle detection instruction in this embodiment, and other methods that can trigger spindle detection are also within the protection scope of this application.

[0059] In a specific implementation, the spatial coordinates of the yaw bar box in the coordinate system of the PCB processing equipment in this embodiment are fixed. Therefore, when the spindle detection instruction is received, the spindle of the PCB processing equipment can be controlled to move to the yaw bar box position according to the spatial coordinates of the yaw bar box to clamp the target yaw bar placed in the yaw bar box. Alternatively, in this embodiment, the yaw bar box can also be photographed by a camera to obtain a detection image containing the yaw bar box, and then the spatial coordinates of the yaw bar box in the camera coordinate system are obtained from the detection image, and then the spatial coordinates of the yaw bar box in the PCB processing equipment coordinate system are calculated according to the spatial coordinates of the camera in the PCB processing equipment coordinate system and the spatial coordinates of the yaw bar box in the camera coordinate system.

[0060] It should be noted that the position of the deflection rod box can be any position that the spindle can reach, such as on the tool disc, on the deflection detection device, etc. The specific position of the deflection rod box on the PCB processing equipment is not limited in this embodiment.

[0061] In one embodiment, the present invention further discloses a controller for use in PCB processing equipment, the internal structure of which can be shown as follows: Fig. 9 As shown. The controller includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the controller is used to provide computing and control capabilities. The memory of the 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 controller is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a spindle detection method provided in the above embodiment is implemented.

[0062] In one embodiment, a 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: The control spindle clamps the target deflection rod and moves it to a target position between the light transmitter and the light receiver, so that the target deflection rod contacts the detection light beam emitted by the light transmitter; The control spindle drives the target deflection rod to rotate at the target position according to a preset first speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver; The deflection electrical signal of the spindle is obtained according to the deflection beam, and the magnitude of the deflection electrical signal reflects the deflection degree of the spindle; According to the deflection electrical signal, the spindle detection result of the spindle is obtained.

[0063] In one implementation, the optical receiver includes a first receiver and a second receiver, the first receiver and the second receiver are symmetrically arranged relative to the main axis, and the optical transmitter simultaneously transmits a detection light beam to the first receiver and the second receiver; The deflection electrical signal of the spindle is obtained according to the deflection beam, including: Acquire a first electrical signal obtained by the first receiver based on the detection light beam, and a second electrical signal obtained by the second receiver based on the detection light beam; A deflection electrical signal is obtained according to the first electrical signal and the second electrical signal.

[0064] In one implementation, the spindle detection result includes a runout value and a second speed value of the spindle, and the second speed value is an actual speed value of the spindle; According to the deflection electrical signal, the spindle detection results of the spindle are obtained, including: Determine the deflection value according to the amplitude of the deflection electrical signal; The second rotation speed value is determined according to the cycle time of the deflection electrical signal.

[0065] In one implementation, after obtaining the spindle detection result of the spindle according to the deflection electrical signal, the method further includes: Determine whether the yaw value exceeds a preset yaw threshold, and determine whether a speed difference between the second speed value and the first speed value is greater than a preset difference threshold; If the runout value exceeds the runout threshold, and / or the speed difference is greater than the difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the runout value and the second speed value are displayed in real time on a display screen of the PCB processing equipment; If the deflection value does not exceed the deflection threshold value, and the rotational speed difference value is less than or equal to the difference threshold value, the deflection value and the second rotational speed value are displayed in real time on the display screen of the PCB processing equipment.

[0066] In one implementation, after the control spindle clamps the target yaw rod, the control spindle rotates at a first speed value, or after the control spindle clamps the target yaw rod and enters the detection hole, the control spindle rotates at the first speed value.

[0067] In one implementation, the PCB processing equipment further includes a deflection rod box, in which a target deflection rod is placed; Before the control spindle clamps the target deflection rod and moves it to the target position between the light transmitter and the light receiver so that the target deflection rod contacts the detection light beam emitted by the light transmitter, the method further includes: When receiving the spindle detection instruction, the spindle of the drilling machine is controlled to move to the yaw rod box position to clamp the target yaw rod placed in the yaw rod box.

[0068] In one embodiment, 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 perform the steps of any embodiment of a spindle detection method disclosed in the present invention. The computer-readable storage medium can be non-volatile or volatile.

[0069] 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: The control spindle clamps the target deflection rod and moves it to a target position between the light transmitter and the light receiver, so that the target deflection rod contacts the detection light beam emitted by the light transmitter; The control spindle drives the target deflection rod to rotate at the target position according to a preset first speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver; The deflection electrical signal of the spindle is obtained according to the deflection beam, and the magnitude of the deflection electrical signal reflects the deflection degree of the spindle; According to the deflection electrical signal, the spindle detection result of the spindle is obtained.

[0070] In one implementation, the optical receiver includes a first receiver and a second receiver, the first receiver and the second receiver are symmetrically arranged relative to the main axis, and the optical transmitter simultaneously transmits a detection light beam to the first receiver and the second receiver; The deflection electrical signal of the spindle is obtained according to the deflection beam, including: Acquire a first electrical signal obtained by the first receiver based on the detection light beam, and a second electrical signal obtained by the second receiver based on the detection light beam; A deflection electrical signal is obtained according to the first electrical signal and the second electrical signal.

[0071] In one implementation, the spindle detection result includes a runout value and a second speed value of the spindle, and the second speed value is an actual speed value of the spindle; According to the deflection electrical signal, the spindle detection results of the spindle are obtained, including: Determine the deflection value according to the amplitude of the deflection electrical signal; The second rotation speed value is determined according to the cycle time of the deflection electrical signal.

[0072] In one implementation, after obtaining the spindle detection result of the spindle according to the deflection electrical signal, the method further includes: Determine whether the yaw value exceeds a preset yaw threshold, and determine whether a speed difference between the second speed value and the first speed value is greater than a preset difference threshold; If the runout value exceeds the runout threshold, and / or the speed difference is greater than the difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the runout value and the second speed value are displayed in real time on a display screen of the PCB processing equipment; If the deflection value does not exceed the deflection threshold value, and the rotational speed difference value is less than or equal to the difference threshold value, the deflection value and the second rotational speed value are displayed in real time on the display screen of the PCB processing equipment.

[0073] In one implementation, after the control spindle clamps the target yaw rod, the control spindle rotates at a first speed value, or after the control spindle clamps the target yaw rod and enters the detection hole, the control spindle rotates at the first speed value.

[0074] In one implementation, the PCB processing equipment further includes a deflection rod box, in which a target deflection rod is placed; Before the control spindle clamps the target deflection rod and moves it to the target position between the light transmitter and the light receiver so that the target deflection rod contacts the detection light beam emitted by the light transmitter, the method further includes: When receiving the spindle detection instruction, the spindle of the drilling machine is controlled to move to the yaw rod box position to clamp the target yaw rod placed in the yaw rod box.

[0075] In one embodiment, the present invention discloses a computer program product, including a computer program, which implements the spindle detection method disclosed in any one of the above embodiments when executed by a processor.

[0076] In one embodiment, a computer program product is provided, and when the computer program product executes a computer program, the following steps are implemented: The control spindle clamps the target deflection rod and moves it to a target position between the light transmitter and the light receiver, so that the target deflection rod contacts the detection light beam emitted by the light transmitter; The control spindle drives the target deflection rod to rotate at the target position according to a preset first speed value, so that the target deflection rod blocks part of the detection light beam, forming a deflection light beam to irradiate the light receiver; The deflection electrical signal of the spindle is obtained according to the deflection beam, and the magnitude of the deflection electrical signal reflects the deflection degree of the spindle; According to the deflection electrical signal, the spindle detection result of the spindle is obtained.

[0077] In one implementation, the optical receiver includes a first receiver and a second receiver, the first receiver and the second receiver are symmetrically arranged relative to the main axis, and the optical transmitter simultaneously transmits a detection light beam to the first receiver and the second receiver; The deflection electrical signal of the spindle is obtained according to the deflection beam, including: Acquire a first electrical signal obtained by the first receiver based on the detection light beam, and a second electrical signal obtained by the second receiver based on the detection light beam; A deflection electrical signal is obtained according to the first electrical signal and the second electrical signal.

[0078] In one implementation, the spindle detection result includes a runout value and a second speed value of the spindle, and the second speed value is an actual speed value of the spindle; According to the deflection electrical signal, the spindle detection results of the spindle are obtained, including: Determine the deflection value according to the amplitude of the deflection electrical signal; The second rotation speed value is determined according to the cycle time of the deflection electrical signal.

[0079] In one implementation, after obtaining the spindle detection result of the spindle according to the deflection electrical signal, the method further includes: Determine whether the yaw value exceeds a preset yaw threshold, and determine whether a speed difference between the second speed value and the first speed value is greater than a preset difference threshold; If the runout value exceeds the runout threshold, and / or the speed difference is greater than the difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the runout value and the second speed value are displayed in real time on a display screen of the PCB processing equipment; If the deflection value does not exceed the deflection threshold value, and the rotational speed difference value is less than or equal to the difference threshold value, the deflection value and the second rotational speed value are displayed in real time on the display screen of the PCB processing equipment.

[0080] In one implementation, after the control spindle clamps the target yaw rod, the control spindle rotates at a first speed value, or after the control spindle clamps the target yaw rod and enters the detection hole, the control spindle rotates at the first speed value.

[0081] In one implementation, the PCB processing equipment further includes a deflection rod box, in which a target deflection rod is placed; Before the control spindle clamps the target deflection rod and moves it to the target position between the light transmitter and the light receiver so that the target deflection rod contacts the detection light beam emitted by the light transmitter, the method further includes: When receiving the spindle detection instruction, the spindle of the drilling machine is controlled to move to the yaw rod box position to clamp the target yaw rod placed in the yaw rod box.

[0082] In one embodiment, reference Figure 2As shown, the present invention discloses a PCB processing device, which includes the spindle and the deflection detection device disclosed in the above embodiment, and the deflection detection device includes a light transmitter and a light receiver; 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 spindle detection method, characterized in that: Applied to PCB processing equipment, the PCB processing equipment includes a spindle and a deflection detection device, the deflection detection device includes a light transmitter and a light receiver, and is characterized in that the spindle detection method includes: Controlling the spindle to clamp the target deflection rod and move it to a target position between the light transmitter and the light receiver, so that the target deflection rod contacts the detection light beam emitted by the light transmitter; Controlling the spindle to drive the target deflection rod to rotate at the target position according to a preset first speed value, so that the target deflection rod blocks part or all of the detection light beam, forming a deflection light beam to irradiate the light receiver; Obtaining a deflection electrical signal of the spindle according to the deflection light beam, wherein the magnitude of the deflection electrical signal reflects the deflection degree of the spindle; A spindle detection result of the spindle is obtained according to the deflection electrical signal.

2. The spindle detection method according to claim 1, characterized in that: The optical receiver comprises a first receiver and a second receiver, the first receiver and the second receiver are symmetrically arranged relative to the main axis, and the optical transmitter simultaneously transmits the detection light beam to the first receiver and the second receiver; The step of obtaining the deflection electrical signal of the main axis according to the deflection light beam comprises: Acquire a first electrical signal obtained by the first receiver based on the detection light beam and a second electrical signal obtained by the second receiver based on the detection light beam, wherein the first electrical signal is obtained by the first receiver through photoelectric conversion of a first optical signal obtained based on the detection light beam, and the second electrical signal is obtained by the second receiver through photoelectric conversion of a second optical signal obtained based on the detection light beam; The deflection electrical signal is obtained according to the first electrical signal and the second electrical signal.

3. The spindle detection method according to claim 1, characterized in that: The spindle detection result includes a runout value and a second speed value of the spindle, and the second speed value is an actual speed value of the spindle; The step of obtaining a spindle detection result of the spindle according to the deflection electrical signal comprises: Determining the deflection value according to the amplitude of the deflection electrical signal; The second rotation speed value is determined according to the cycle time of the deflection electrical signal.

4. The spindle detection method according to claim 3, characterized in that: After obtaining the spindle detection result of the spindle according to the deflection electrical signal, the method further includes: Determine whether the deflection value exceeds a preset deflection threshold, and determine whether a speed difference between the second speed value and the first speed value is greater than a preset difference threshold; If the deflection value exceeds the deflection threshold, and / or the speed difference is greater than the difference threshold, the PCB processing equipment is controlled to issue a spindle warning, and the deflection value and the second speed value are displayed in real time on a display screen of the PCB processing equipment; If the deflection value does not exceed the deflection threshold, and the rotational speed difference is less than or equal to the difference threshold, the deflection value and the second rotational speed value are displayed in real time on a display screen of the PCB processing equipment.

5. The spindle detection method according to claim 1, characterized in that: The PCB processing equipment further comprises a deflection rod box, in which the target deflection rod is placed; Before controlling the spindle to clamp the target deflection rod and move it to a target position between the light emitter and the light receiver so that the target deflection rod contacts the detection light beam emitted by the light emitter, the method further includes: When receiving the spindle detection instruction, the spindle of the drilling machine is controlled to move to the yaw rod box position to clamp the target yaw rod placed in the yaw rod box.

6. The spindle detection method according to any one of claims 1 to 5, characterized in that: After controlling the spindle to clamp the target yaw rod and enter the target position between the light transmitter and the light receiver, the spindle is controlled to rotate according to the first speed value, or the spindle is controlled to clamp the target yaw rod and rotate according to the first speed value, and during the rotation of the spindle, the spindle is controlled to enter the target position between the light transmitter and the light receiver.

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 spindle detection 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 spindle detection 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 spindle detection method according to any one of claims 1 to 6 is implemented.

10. A PCB processing device, characterized in that: The PCB processing equipment comprises a spindle and a deflection detection device as described in any one of claims 1 to 6, and the deflection detection device comprises a light transmitter and a light receiver.

Citation Information

Patent Citations

  • Spindle abnormity detection device

    CN111975449A

  • Main shaft detection device and circuit board processing equipment

    CN219829810U

  • Deflection detection device and PCB processing equipment

    CN223307508U

  • Control method for tool rotational runout

    JP1991019750A

  • Method and device for measuring rotary cutting tool

    JP2003170335A