Pneumatic-electric linkage detection light source control method and system, detection light source and medium
By using a pneumatic-electric linkage detection light source control method, which utilizes airflow state signals to trigger light source control and introduces a delay timing mechanism, the problem of the separation between pneumatic execution and optical illumination timing is solved, achieving an efficient detection process and operational continuity.
Patent Information
- Application Number
- CN202611531689.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-03
AI Technical Summary
In the fields of high-end precision manufacturing and machine vision inspection, the control logic of the pneumatic actuator and the optical illumination unit in the existing technology is independent of each other, which makes it impossible to seamlessly connect the purging process and the re-inspection process. There is a lack of a delay maintenance mechanism for the light source after the airflow is cut off, which affects the inspection efficiency and the continuity of operation.
By using a pneumatic-electric linkage detection and light source control method, the light source control logic is triggered by the airflow state signal. A delay timing mechanism is introduced to ensure that the light source is maintained for a delay after the airflow is cut off, thereby realizing the timing linkage between pneumatic execution and optical illumination.
It realizes the time-linked control of pneumatic actuation and optical illumination, which improves detection efficiency, ensures the continuity of re-inspection process, and reduces the interruption of detection process and operator burden caused by equipment switching.
Smart Images

Figure CN123035583A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of light source control technology, specifically to a pneumatic-electric linkage detection light source control method, system, detection light source, and medium. Background Technology
[0002] In the fields of high-end precision manufacturing and machine vision inspection, the cleanliness of tiny particles on the product surface directly affects the system yield. In current routine inspection operations, operators usually need to alternate between using independent inspection light sources and cleaning air guns. That is, they first hold the light source to illuminate and search for dust, and after finding a defect, they put down the light source, switch to the air gun to blow air to clean it, and finally pick up the light source again for a second inspection.
[0003] However, this traditional operating mode based on physical isolation equipment cannot achieve seamless connection between the purging process and the re-inspection process because the hardware control logic separates the timing interaction between pneumatic execution and optical illumination. Furthermore, it lacks the necessary light source delay maintenance mechanism for the manual re-inspection stage after the airflow is cut off, which seriously affects the overall detection efficiency. Summary of the Invention
[0004] In view of the aforementioned problems, this application is made to provide a pneumatic-electric linkage detection light source control method, system, detection light source, and medium that overcomes or at least partially solves the aforementioned problems, comprising: The above-mentioned objective of this application is achieved through the following technical solution: A method for controlling a detection light source using a pneumatic-electric linkage, comprising the following steps: Obtain the detection configuration parameters and extract the emission delay parameter based on the detection configuration parameters; The status signal fed back from the airflow trigger end is acquired. When the status signal indicates that the airflow to be controlled has entered the jet execution stage, a drive signal is generated to control the target light-emitting end to perform the illumination action. When the status signal indicates that the airflow to be controlled has entered the injection stop stage, the delay timing process is activated based on the light emission delay parameter. When the timing value of the delay process reaches the light-emitting delay parameter, a drive signal is generated to turn off the lighting action.
[0005] The second objective of this invention is achieved through the following technical solution: A pneumatic-electric linkage detection light source control system, comprising: The parameter acquisition module is used to acquire detection configuration parameters and extract the emission delay parameter based on the detection configuration parameters; The lighting drive module is used to acquire the status signal fed back from the airflow trigger end. When the status signal indicates that the airflow to be controlled has entered the jet execution stage, a drive signal is generated to control the target light-emitting end to perform the lighting action. The timing activation module is used to activate the delay timing process based on the light emission delay parameter when the status signal indicates that the airflow to be controlled has entered the injection stop stage. The lighting termination module is used to generate a drive signal to turn off the lighting action when the timing value of the delay timing process reaches the light emission delay parameter.
[0006] This application also relates to a detection light source, including: a connecting bracket; A light source body is used to emit a detection light source, and the light source body is mounted on the connecting bracket; An air gun, which is mounted on the connecting bracket; An airflow control switch is connected to the air gun; the airflow control switch is used to control the operation of the air gun and synchronously feed back a status signal to the controller. The controller is connected to the light source body and the air gun, and the controller is configured to perform the steps of the above-described pneumatic-electric linkage detection light source control method.
[0007] This application also relates to a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described pneumatic-electric linkage detection light source control method.
[0008] This application has the following advantages: In the embodiments of this application, a pneumatic-electric linkage detection light source control method, system, detection light source and medium are provided. By triggering the light source control logic through the airflow state signal and introducing a delay timing mechanism, the timing linkage between pneumatic execution and optical illumination is realized. This ensures that the light source delay is maintained after the airflow is cut off to support the re-inspection process. It has the effect of realizing the timing linkage control between pneumatic execution and optical illumination, ensuring that the light source delay is maintained after the airflow is cut off, and improving detection efficiency. Attached Figure Description
[0009] Figure 1 This is a flowchart of an embodiment of a pneumatic-electric linkage detection light source control method of this application; Figure 2 This is a schematic diagram of multiple controllers using an RS485 interface in an embodiment of a pneumatic-electric linkage detection light source control method of this application; Figure 3 This is a schematic block diagram of an embodiment of a pneumatic-electric linkage detection light source control system according to this application; Figure 4 This is a schematic diagram of the structure of a detection light source based on an embodiment of the pneumatic-electric linkage of this application. Figure 5 This is an exploded view of the structure of an embodiment of a pneumatic-electric linkage detection light source according to this application; Figure 6 yes Figure 4 Schematic diagram of the inclined connector; Figure 7 yes Figure 4 A schematic diagram of the vertical connector. Detailed Implementation
[0010] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0011] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0012] All terms used in this application, including technical or scientific terms, have the same meaning as understood by one of ordinary skill in the art to which this application pertains, unless otherwise specifically defined. It should also be understood that terms defined in a general dictionary, such as a common dictionary, should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as having an idealized or highly formalized meaning, unless expressly defined herein.
[0013] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment shall be considered part of the specification.
[0014] First, some nouns or terms that appear in the description of the embodiments of this application shall be interpreted as follows: Detection configuration parameters refer to the set of parameters set or determined before conducting a detection operation, based on the detection object, detection environment, detection task, and the status of the detection device. Detection configuration parameters may include illumination intensity, light source spectrum type, airflow jet duration, detection area range, air source pressure, nozzle specifications, detection distance, ambient temperature and humidity, camera acquisition mode, image acquisition timing parameters, and light emission delay-related parameters, etc.
[0015] The emission delay parameters can be fixed delay values preset by the operator, or delay values determined based on the type of object being detected, airflow parameters, spatial arrangement parameters, historical calibration data, or image acquisition parameters. The emission delay parameter limits the duration of illumination at the target emission end after the controlled airflow stops outputting. Its purpose is to provide illumination for post-purge re-inspection or image acquisition, rather than to guarantee that every suspended particle has left the detection area.
[0016] The light emission delay parameter refers to the extra time that the detection light source needs to continue illuminating after a specific event occurs, such as when the airflow stops. It is used to ensure that after the airflow stops, the operator or machine vision system still has enough time to observe or acquire images of the area being inspected in order to complete the re-inspection or data recording.
[0017] An airflow trigger terminal refers to a sensor or control interface used to monitor and provide feedback on the state of the airflow to be controlled. Specifically, the airflow trigger terminal can detect in real time whether the airflow is in a jetting or stopped state, and output the corresponding state information as a signal, which serves as the basis for controlling the action of the detection light source.
[0018] A status signal is an electrical or logical signal fed back from the airflow trigger terminal, indicating the current operating state of the airflow to be controlled. Status signals typically include high or low levels, corresponding to the airflow injection execution phase and injection stop phase, respectively.
[0019] The jetting execution phase refers to the period during which the controlled airflow is activated and continuously jetted towards the target area. During this phase, the airflow is typically used to clean or blow away the surface of the object being inspected to remove dust or particles.
[0020] The jet cessation phase refers to the period when the controlled airflow stops being jetted. This phase usually occurs after the cleaning or purging task is completed and is a transition period for subsequent testing or re-inspection operations.
[0021] A driving signal is an electrical signal used to control the target's light-emitting end to turn on, off, or adjust its brightness. Its generation or truncation directly determines the illumination action of the target's light-emitting end.
[0022] The target light-emitting end refers to the physical light source device that provides illumination during the detection process, such as LED light arrays, halogen lamps, or laser light sources. It executes or terminates the illumination action by receiving drive signals.
[0023] Illumination action refers to the behavior of the target's light-emitting end emitting light to illuminate the detection area according to the instruction of the driving signal.
[0024] A time-delay timing process typically refers to a timer implemented in software or hardware, used to measure the time interval from the start of a specific event to the end of a preset light-emitting delay parameter.
[0025] The timing value refers to the time value currently recorded in the delay timing process. This timing value will accumulate over time until it reaches the preset light emission delay parameter.
[0026] Generating a drive signal refers to the operation of causing the target light-emitting end to perform or stop the lighting action by generating or changing the output of the drive signal. The drive signals for performing lighting and stopping lighting are different.
[0027] The "lighting off" action refers to the state in which the target light-emitting end stops emitting light and ends its lighting function.
[0028] Through research, the inventors discovered that in the fields of high-precision manufacturing and machine vision inspection, the cleanliness detection of tiny particles on product surfaces suffers from a disconnect in the timing of airflow injection and light source illumination due to the independent control logic of existing pneumatic actuators and optical illumination units. Specifically, the purging and re-inspection processes cannot be seamlessly integrated, and the lack of a delay mechanism to maintain the light source after airflow interruption leads to interruptions in the inspection process and loss of field of view, thus affecting inspection efficiency and operational continuity.
[0029] Based on this, in one embodiment, reference is made to Figure 1 This application discloses a pneumatic-electric linkage detection light source control method, which specifically includes the following steps: S10: Obtain the detection configuration parameters and extract the emission delay parameter based on the detection configuration parameters; In the embodiments of this application, the detection configuration parameters can be obtained in various ways. For example, they can be obtained by manually inputting preset values on the control interface, or by reading a configuration file stored in local memory, which may include information such as the detection task type and the characteristics of the material being tested. Based on the detection configuration parameters, a suitable emission delay parameter can be determined. One implementation is that the operator can set a fixed delay duration as the emission delay parameter based on experience, according to the detection configuration parameters. Another approach is to map a specific identifier in the detection configuration parameters to a predefined emission delay value, such as "fine detection" or "rough surface detection," according to a preset lookup table.
[0030] S20: Obtain the status signal fed back from the airflow trigger end. When the status signal indicates that the airflow to be controlled has entered the jet execution stage, generate a drive signal to control the target light-emitting end to perform the illumination action. In embodiments of this application, the airflow trigger terminal is used to provide a status signal characterizing the actual output state of the airflow to be controlled. The airflow trigger terminal may include a pressure sensor, flow sensor, differential pressure sensor, or a combination thereof disposed in the air path; in some embodiments, the airflow trigger terminal may also include a stroke detection element linked to the airflow control switch. The stage of the airflow to be controlled can be determined based on the detected airflow value and preset judgment conditions. For example, when the detected air path pressure value reaches the working pressure threshold and the duration reaches a first stable duration, or when the detected air path flow value reaches the working flow threshold and the duration reaches a first stable duration, it is determined that the airflow to be controlled has entered the injection execution stage; when the detected air path pressure value is lower than the stop pressure threshold, or the detected air path flow value is lower than the stop flow threshold and the duration reaches a second stable duration, it is determined that the airflow to be controlled has entered the injection stop stage. The first and second stable durations are used to suppress misjudgments caused by air path pressure fluctuations, sensor noise, or switch jitter. The action signal of the airflow control switch can be used as a pre-trigger signal or an auxiliary judgment signal. However, in the implementation method that uses air pressure or flow detection, the airflow detection value meeting the preset conditions is used as the basis for determining whether the airflow to be controlled actually enters the injection execution stage or the injection stop stage.
[0031] S30: When the status signal indicates that the airflow to be controlled has entered the injection stop stage, the delay timing process is activated based on the light emission delay parameter; In the embodiments of this application, when the status signal fed back from the airflow trigger changes, indicating that the airflow has stopped, the system responds immediately. For example, when the pressure sensor detects that the air pressure has dropped back to the ambient pressure level, or the flow sensor detects that the airflow has stopped flowing, it is determined that the injection has entered the stop phase. At this time, a delay timing process is started, wherein the activation of this delay timing process is based on the previously extracted light emission delay parameter. For example, a software timer can be started, and its target timing value can be set as the light emission delay parameter.
[0032] S40: When the timing value of the delay timing process reaches the light emission delay parameter, a drive signal is generated to turn off the lighting action.
[0033] In the embodiments of this application, after the delay timing process is activated, it continuously accumulates the timing value. When this timing value reaches the preset light emission delay parameter, the control system executes the operation of generating a drive signal. In this way, the illumination action of the target light-emitting end is terminated.
[0034] It should be noted that, to improve the correspondence between the illuminated area and the purging area, the light source and the air gun can be mounted via a connecting bracket, so that the area covered by the illumination field output by the light source at least partially overlaps with the main area of action of the airflow from the air gun. In one embodiment, a preset angle is formed between the light emission direction of the light source and the spray direction of the air gun. This preset angle can be an acute angle, a right angle, or an obtuse angle, and can be adjusted according to the detection distance, nozzle diffusion angle, light source divergence angle, workpiece surface shape, and camera field of view. For embodiments such as long-distance illumination, line light source illumination, coaxial illumination, or non-imaging illumination, the illumination area can cover the area to be re-inspected by adjusting the light source mounting position, illumination angle, optical diffusion structure, or bracket position. This improves the visibility and detection consistency of the purging area when operators or machine vision systems re-inspect the area.
[0035] For example, as a specific implementation, suppose in a machine vision inspection workstation, user A needs to inspect the surface cleanliness of a batch of precision parts. In this case, the workstation is equipped with an integrated pneumatic-electric linkage inspection light source, which includes at least one air gun and at least one LED inspection light source. The air gun is used to blow away dust from the surface of the parts, and the LED inspection light source is used for illumination.
[0036] First, User A selects the "Precision Parts Inspection" mode on the control system interface. Based on the preset parameters for this mode, the system obtains the corresponding inspection configuration parameters. For example, this mode requires the light source to maintain illumination for an additional 2 seconds after the airflow stops so that the machine vision system can acquire images. Therefore, the light emission delay parameter is extracted as 2 seconds.
[0037] Furthermore, User A operates the integrated detection light source, using an air gun to blow air onto the surface of a part. When the trigger of the air gun is pulled and the airflow begins to spray, the airflow trigger terminal connected to the air circuit detects that the airflow has entered the spray execution phase and sends a high-level status signal back to the control system. This airflow trigger terminal can be, for example, a microswitch or a pressure sensor. Upon receiving this high-level status signal, the control system immediately generates a corresponding drive signal and sends it to the LED detection light source. Upon receiving the drive signal, the LED detection light source begins to emit light to illuminate the part surface. Additionally, since the LED's light emission direction in the integrated detection light source can be set to a preset angle with the airflow direction of the air gun, such as an acute angle, when the LED detection light source receives the drive signal and emits light, this light can accurately cover the same target area blown by the airflow. At this time, the operator or machine vision system can clearly observe the blowing process.
[0038] When user A releases the air gun trigger and the airflow stops, the airflow trigger detects that the airflow has entered the stop-flow phase and sends a low-level status signal to the control system. Upon receiving this low-level status signal, the control system does not immediately turn off the light source; instead, it activates a delay timer based on the extracted 2-second light-emitting delay parameter. During this time, the LED detection light source remains illuminated.
[0039] The delay timing process starts from zero and continuously accumulates the time value. During the timing, the LED detection light source continuously illuminates the surface of the part. This 2-second delay illumination is crucial for user A's visual inspection or for image acquisition by the machine vision system, because even after the airflow stops, small particles may still be suspended in the air, or a final confirmation of the cleaned surface may be required. When the delay timing reaches the 2-second illumination delay parameter, the control system generates a new drive signal for the LED detection light source. Upon receiving the drive signal, the LED detection light source stops emitting light, and its illumination action ceases.
[0040] As can be seen from the above example, the solution in this embodiment achieves the linkage between airflow injection and the illumination action of the detection light source. During airflow injection, the light source provides illumination; after the airflow stops, the light source does not immediately turn off, but continues to illuminate for a period of time according to a preset delay parameter, providing the necessary lighting conditions for subsequent detection or re-inspection, and finally turns off the light source after the delay ends.
[0041] Based on the above examples, the pneumatic-electric linkage detection light source control method proposed in this application has significant technical contributions compared to existing technologies. In traditional detection operations, operators need to frequently switch between independent light sources and air guns, leading to interruptions in the detection process, cumbersome operations, and low efficiency. For example, after user A completes purging, if the traditional method is used, the air gun needs to be put down and the light source picked up again for re-inspection, which is not only time-consuming but may also lead to the loss of the detection field of view. The solution of this embodiment can effectively solve this problem by sequentially associating pneumatic execution with optical illumination. Specifically, during the airflow jet execution phase, the light source is simultaneously turned on to ensure the visibility of the purging process. More importantly, after the airflow enters the jet stopping phase, a delay timing process based on the light emission delay parameter is introduced, allowing the light source to continue illuminating for a period of time. Through this delayed illumination mechanism, such as the 2-second delay in the example, a necessary re-inspection window is provided for the operator or machine vision system without immediate equipment switching. This contrasts with the situation in existing technologies where the light source is immediately turned off after the airflow is cut off, improving the continuity and efficiency of the detection.
[0042] Furthermore, by controlling the generation of drive signals, this application achieves seamless integration of lighting actions and airflow status. This coordinated control solves problems such as prolonged inspection cycle time, increased labor costs, and operator fatigue caused by equipment switching in traditional modes. For example, after purging, user A can perform a preliminary re-inspection during the delayed lighting period without putting down the air gun, thereby reducing unnecessary action switching. Overall, the solution in this embodiment, through intelligent timing control, has the technical effects of optimizing the inspection process, improving work efficiency, and reducing the operator's burden.
[0043] The following will further explain a pneumatic-electric linkage detection light source control method in this exemplary embodiment.
[0044] In one embodiment, step S10, "obtaining detection configuration parameters and extracting emission delay parameters based on the detection configuration parameters," specifically includes: Receive and unpack the configuration data packet to obtain the detection configuration parameters; In embodiments of this application, the configuration data packet can be a data stream received via wired or wireless communication. The unpacking process involves parsing the received raw data. For example, if the data packet uses JSON, XML, or a custom binary protocol format, a corresponding parser is needed to convert it into a data structure that can be processed internally by the system, thereby obtaining structured detection configuration parameters.
[0045] Determine the detection scenario and detection task, and extract the target delay value corresponding to the detection task and / or detection scenario from the detection configuration parameters as the emission delay parameter.
[0046] In the embodiments of this application, the steps of determining the detection scenario and detection task are used to identify the specific environment in which the current detection operation takes place and the specific objectives to be achieved. The detection scenario can refer to the type of object to be detected, ambient light conditions, detection location, etc., while the detection task can include surface foreign object detection, surface particle cleanliness detection, surface scratch detection, surface defect detection, reflective appearance detection, edge contour detection, or other detection tasks that require illuminating the workpiece surface through a target light-emitting end and performing re-inspection. In embodiments where the target light-emitting end is a visible light or near-infrared illumination source, the detection object is mainly an appearance feature that can be obtained through reflection, scattering, contour, or surface texture imaging. The step of extracting the target delay value corresponding to the detection task and / or detection scenario from the detection configuration parameters involves searching or calculating the most suitable light emission delay parameter for the current situation from the acquired detection configuration parameters based on the currently determined detection scenario and detection task. For example, the detection configuration parameters may include a mapping table that associates different detection scenarios and tasks with specific delay values; or, the system can dynamically calculate the target delay value based on a combination of detection scenarios and tasks using a preset algorithm. This process ensures that the emission delay parameter can be dynamically adjusted according to actual needs, rather than using a single fixed value.
[0047] For example, as a specific implementation, in an automated inspection system, the control unit can receive a configuration data packet sent from a host computer via an Ethernet interface. This configuration data packet may be a JSON-formatted string containing multiple inspection scenarios, such as "surface scratch detection" and "internal bubble detection," as well as the corresponding inspection task for each scenario, such as "high-precision mode" and "fast scanning mode," and the corresponding light emission delay value.
[0048] After receiving the data packet, the control unit can call the built-in JSON parsing library to unpack it, thereby obtaining structured detection configuration parameters. For example, the detection configuration parameters may contain a list of key-value pairs. Based on the "surface scratch detection" scenario and "high-precision mode" task selected by the current operator, the system searches for matching items from the parsed detection configuration parameters and extracts the corresponding 800 milliseconds as the emission delay parameter. Subsequently, this emission delay parameter is sent to the light source control module to control the continuous illumination time of the target emitting end after the airflow stops.
[0049] Through the above technical solution, this application enables dynamic configuration of the emission delay parameter in the detection light source control method. By receiving and unpacking configuration data packets and flexibly extracting the corresponding target delay value according to the specific detection scenario and task, the system can break free from the limitations of fixed delay parameters, allowing the illumination action of the light source to more accurately match the airflow jet cycle under different detection requirements. Based on this, the solution of this embodiment improves the adaptability and intelligence level of detection light source control, ensuring that the light source can provide appropriate illumination timing in diverse detection tasks, thereby improving the accuracy and efficiency of detection.
[0050] In one embodiment, after step S20, which involves "acquiring a status signal fed back from the airflow trigger end, and generating a drive signal to control the target light-emitting end to perform an illumination action when the status signal indicates that the airflow to be controlled has entered the jet execution stage", the method further includes: Start the error-proof timing corresponding to the spraying execution phase; In the embodiments of this application, activating the error-proof timing corresponding to the injection execution phase refers to simultaneously starting a timer to monitor the injection duration when the controlled airflow begins injection execution. This timer can be a software timer, driven by a clock interrupt within the controller, periodically updating the timing value; or it can be a hardware timer, implemented through a dedicated timing chip or module, offering higher timing accuracy and real-time performance. Its function is to set a maximum allowable duration for the injection execution phase to prevent indefinite injection due to system failure or external anomalies.
[0051] When the value of the error prevention timer reaches the preset working duration threshold, and the acquired status signal still indicates that the injection execution phase is maintained, a cutoff command is generated to cut off the output of the controlled airflow and activate the delay timer process.
[0052] In the embodiments of this application, when the value of the working error prevention timer reaches a preset working duration threshold, it indicates that the duration of the jetting execution phase has exceeded the normal range. This preset working duration threshold can be set according to specific application scenarios and device characteristics, for example, by loading it through system configuration parameters or by embedding it in the memory at the factory. The acquired status signal still indicates that the jetting execution phase is maintained, meaning that even when the working error prevention timer reaches the threshold, the signal fed back from the airflow trigger end still indicates that the airflow is in a jetting state, thus confirming the occurrence of abnormally long-duration jetting. Generating a cutoff command to cut off the output of the controlled airflow means that after confirming the abnormality, a control command is issued to forcibly stop the supply of the controlled airflow. Specifically, this can be achieved by sending a shut-off signal to the pneumatic actuator or by controlling the air pump to stop working to cut off the air source. Activating the delay timing process means that while forcibly cutting off the controlled airflow, a timing process for controlling the illumination delay of the target light-emitting end is started, thereby ensuring that even if the airflow is abnormally terminated, the target light-emitting end can continue to illuminate according to the preset illumination delay parameters in order to complete the necessary visual inspection or image acquisition tasks.
[0053] In one embodiment, the controlled air path includes an air source, a controlled shut-off valve, an air gun, and a pipeline connecting the air source, the controlled shut-off valve, and the air gun. The controlled shut-off valve can be a normally closed solenoid shut-off valve, an electric ball valve, a proportional valve, or other valves capable of changing the on / off state of the air path according to the control signal output by the controller. The controlled shut-off valve is located between the air source and the air gun and is electrically connected to the controller. When the value of the working error prevention timer reaches a preset working duration threshold, and the status signal fed back from the airflow trigger end still indicates that the controlled airflow is in the injection execution stage, the controller outputs a cut-off command to the controlled shut-off valve to cut off or limit the output of the controlled airflow. After outputting the cut-off command, the controller can continue to acquire the status signal fed back by the pressure sensor or flow sensor; when the status signal meets the determination condition of the injection stop stage, the delay timer process is activated.
[0054] In an alternative implementation, if the airflow to be controlled is not detected to enter the injection stop phase within a preset confirmation time, the controller records the abnormal state of the air path and outputs an abnormality warning signal and / or shuts down the target light-emitting end to avoid the target light-emitting end being in an unexpected lighting state due to valve failure, pipeline leakage or sensor abnormality.
[0055] For example, as a specific implementation, suppose on an automated production line, a nozzle needs to briefly spray a workpiece, and the spraying quality is inspected by a machine vision system. When the control system receives the spraying start command and obtains a status signal from the airflow trigger indicating that the controlled airflow has entered the spraying execution stage, in addition to sending a drive signal to the target light-emitting end to start illuminating it, it also starts a work error-proof timer. This error-proof timer can be a software counter that increments every 10 milliseconds. A preset working duration threshold is set, for example, to 5 seconds. During the spraying process, the system continuously monitors the status signal from the airflow trigger. If, when the timer reaches 5 seconds, the status signal still indicates that the airflow is in the spraying execution stage (e.g., the solenoid valve's opening signal is still high), the system immediately sends a closing command to the solenoid valve controller to forcibly close the solenoid valve, thereby cutting off the output of the controlled airflow. Simultaneously, the system activates an independent delay timing process, which controls the target light-emitting end to continue illuminating according to a preset light-emitting delay parameter, ensuring that the machine vision system can capture the image after the spraying is completed.
[0056] Through the above technical solution, this application can effectively solve the problems of resource waste and equipment damage that may result from prolonged abnormal jetting of the controlled airflow. By introducing a fault-prevention timing mechanism, the system can intervene when abnormal jetting is detected, forcibly terminating the airflow output, thereby protecting the equipment and the object being inspected. Furthermore, activating the delay timing process while forcibly terminating the airflow ensures that even under abnormal conditions, the target light-emitting end can still provide necessary illumination, enabling the machine vision system to complete image acquisition, avoiding the loss of detection data, and improving the reliability of the detection process.
[0057] In one embodiment, after step S30, which states "when the status signal indicates that the airflow to be controlled has entered the injection stop stage, activate the delay timing process based on the light emission delay parameter", the method further includes: During the execution of the delay timing process, the status signal fed back from the airflow trigger end is continuously monitored; In the embodiments of this application, this step aims to ensure that the system can perceive the latest state of the controlled airflow in real time during the delay phase before the lighting action is about to end. Continuous monitoring can be achieved in various ways. For example, the control system can be configured with a dedicated hardware interrupt pin, which immediately triggers an interrupt service routine to handle changes in the state signal of the airflow trigger end; or, the control system can employ a periodic polling mechanism to read the state signal of the airflow trigger end at a preset frequency, thereby promptly capturing any changes in its state.
[0058] If, before the timing value of the delay timing process reaches the light emission delay parameter, a status signal is detected indicating that the controlled airflow is entering the injection execution stage again, then the current delay timing process is reset and suspended. In the embodiments of this application, during the execution of the delay timing process, the controller continuously acquires the status signal fed back from the airflow trigger end. If, before the timing value of the delay timing process reaches the light emission delay parameter, it is detected that the controlled airflow once again meets the determination condition of the injection execution stage, the controller cancels the current delay timing process and maintains or re-executes the illumination action of the target light-emitting end. Subsequently, when the controlled airflow once again meets the determination condition of the injection stop stage, the controller uses the confirmation time of this injection stop stage as the new timing starting point and reactivates the delay timing process. Thus, in cases of continuous point spraying, intermittent purging, or short-term repeated triggering of the air gun by the operator, the target light-emitting end can be prevented from erroneously closing during subsequent spraying or before the start of subsequent re-inspection windows. When the status signal once again indicates that the controlled airflow has entered the injection stop stage, the delay timing process is reactivated.
[0059] In the embodiments of this application, this step further improves the control logic for intermittent airflow. After the delay timing process is cleared and suspended, if the status signal at the airflow trigger end indicates again that the controlled airflow has entered the jet stop phase, it means that the intermittent jetting of the airflow has ended and the delay timing needs to be restarted to prepare for the lighting shutdown action. At this time, the system will reactivate the aforementioned suspended delay timing process, causing it to start timing again from zero until the timing value reaches the light emission delay parameter, thereby ensuring that the lighting action is terminated only after the airflow has stabilized and stopped, following the correct delay timing.
[0060] As an example, in one specific implementation, a microcontroller can be used to implement the above control logic, such as an embedded processor based on the ARM Cortex-M series. One GPIO pin of this microcontroller is configured in input mode and connected to the airflow trigger terminal to receive status signals. When this GPIO pin detects a transition from high to low, a timer module inside the microcontroller is configured and started, and its counting period is set to the light emission delay parameter.
[0061] After the timer starts, the microcontroller continuously monitors the status of this GPIO pin through interrupt service routines or periodic polling. If, before the timer's count reaches the illumination delay parameter, this GPIO pin detects a low-to-high transition again, indicating that the controlled airflow has entered the injection execution phase, the interrupt service routine performs the following operations: First, it clears the timer's count register; second, it suspends the timer's counting function by setting the corresponding control bit. Subsequently, if this GPIO pin detects a high-to-low transition again, indicating that the controlled airflow has entered the injection stop phase, the interrupt service routine clears the previous control bit and restarts the timer, starting the count from zero. When the timer's count finally reaches the illumination delay parameter, the microcontroller generates a new drive signal through another GPIO pin to terminate the illumination action of the target light-emitting end.
[0062] Through the above technical solution, this application can effectively solve the problem of premature termination of illumination action caused by the controllable airflow rapidly resuming after a brief pause in the control of the pneumatic-electric linkage detection light source. Specifically, by continuously monitoring the airflow status during the delay timing process and introducing a mechanism for resetting, suspending, and reactivating the delay timing process, it is ensured that even if the airflow is intermittently interrupted, the illumination action of the target light-emitting end can remain continuous, avoiding unnecessary illumination interruptions or flickering. Based on this, the solution of this embodiment can improve the stability and reliability of the detection process, ensuring that the machine vision system or operator can obtain continuous and accurate visual information throughout the entire effective working cycle, thereby improving detection efficiency and data acquisition quality.
[0063] Furthermore, in the aforementioned pneumatic-electric linkage detection light source control method, the illumination action of the detection light source is controlled based on the airflow state signal, and the illumination is maintained through a delayed timing process after the airflow stops. However, in practical applications, if it is necessary to cooperate with an external machine vision image acquisition system for image capture, there may be a timing mismatch between the illumination action of the light source and the exposure window of the image acquisition system, resulting in poor image acquisition effect, or even failure to effectively capture a clear image of the target area, affecting the detection accuracy.
[0064] In one feasible embodiment, after the step of activating the delay timing process based on the light emission delay parameter when the status signal indicates that the controlled airflow has entered the injection stop phase, the method further includes: In response to the activation event of the delayed timing process, a hard trigger level signal is synchronously sent to the external machine vision image acquisition system through a preset hardware output port; The pulse width of the hard trigger level signal is mapped to the emission delay parameter to provide an acquisition trigger reference for the machine vision image acquisition system. In addition, the illumination window of the target emission end is configured to cover and be slightly longer than the camera's exposure window.
[0065] The activation event of the delay timing process refers to the instant when the delay timing process used to control the duration of lighting actions within the system is started. This activation event is typically triggered by a status signal fed back from the airflow trigger end, indicating that the controlled airflow has entered the jet stop phase. It can be implemented by marking the start of the delay timing process through software interrupts, hardware triggers, or state machine transitions.
[0066] A pre-defined hardware output port refers to a physical interface on the controller specifically designed for sending electrical signals to the outside world. This hardware output port can be a general-purpose input / output pin, a dedicated synchronous output interface such as pulse width modulation (PWM) output, SPI, I2C, or an output via an optocoupler-isolated relay. Its function is to provide a low-latency physical channel to convert internal control signals into electrical signals that can be recognized by the external system.
[0067] An external machine vision image acquisition system refers to a collection of devices independent of the light source control system, used to capture images and perform subsequent processing. This system typically includes components such as an industrial camera, image processor, and data transmission interface. Its function is to open the shutter within a specific time window based on a received trigger signal to expose the image, and then transmit the captured image data to the backend for analysis.
[0068] A hard trigger level signal is a signal that triggers the action of an external device through a change in physical voltage level. This hard trigger level signal typically has a distinct rising or falling edge and is used to indicate the occurrence of an event. It can be implemented as a single pulse signal, a continuous level signal, or an coded pulse sequence, and its function is to provide a precise timing synchronization reference for an external machine vision image acquisition system.
[0069] The mapping between pulse width and emission delay parameter refers to a direct and calculable correspondence between the duration of the hard trigger level signal and the preset emission delay parameter. This mapping can be linear, such as the pulse width being directly equal to the emission delay parameter, or it can be converted through a scaling factor. Its function is to ensure that the external system can accurately determine the illumination duration of the light source based on the received trigger signal.
[0070] The temporal alignment of the exposure window and the illumination action performed by the target light-emitting end means that the time period for image exposure by the machine vision image acquisition system and the time period for the actual illumination action performed by the target light-emitting end are completely coincident or highly consistent on the time axis. This alignment indicates that the start and end times of the exposure window are precisely synchronized with the start and end times of the illumination action. Its purpose is to ensure image capture during effective illumination by the light source, thereby obtaining optimal image quality and detection results.
[0071] The solution in this embodiment can be implemented as follows: In the above-described pneumatic-electric linkage detection light source control method, when the status signal indicates that the controlled airflow has entered the jet stop stage, the system activates a delay timing process based on the light emission delay parameter to maintain the illumination action of the target light-emitting end. Based on this, in response to the activation event of this delay timing process, the system synchronously sends a hard trigger level signal to the external machine vision image acquisition system through a preset hardware output port. The pulse width of this hard trigger level signal is designed to map to the light emission delay parameter. After receiving this hard trigger level signal, the external machine vision image acquisition system opens and closes its own exposure window according to its pulse width. Through this method, the illumination action performed by the target light-emitting end and the exposure window of the machine vision image acquisition system can be strictly aligned in the time domain. Based on this, the solution in this embodiment, through this synchronization mechanism, ensures that the image acquisition system exposes only within the precise time period during which the target area is effectively illuminated, thereby avoiding problems such as image blurring, underexposure, or overexposure caused by timing mismatch, and improving the quality and reliability of the detected image.
[0072] As a specific implementation method, the above-mentioned technical means can be implemented with reference to the following example. The control system can employ a high-performance embedded controller, such as a microcontroller based on an ARM Cortex-M series processor. When the status signal fed back from the airflow trigger indicates that the controlled airflow has entered the injection stop phase, the timer module inside this microcontroller is activated and begins the delay timing process. At the same time, a general-purpose input / output pin of the microcontroller is configured as a hardware output port and immediately outputs a high-level hard trigger signal. The pulse width of this hard trigger signal is set to be consistent with the current light emission delay parameter. For example, if the light emission delay parameter is 50 milliseconds, this general-purpose input / output pin will output a high-level pulse lasting 50 milliseconds.
[0073] Furthermore, this general-purpose input / output pin is connected to an external machine vision image acquisition system, such as an industrial-grade CCD or CMOS camera, via a shielded cable. It is configured for external trigger mode. If the camera supports level-gated exposure, its exposure window responds to the rising and falling edges of a hard-trigger level signal. For edge-triggered mode, the camera exposure time is determined by internal parameters, and the light source illumination window should cover this exposure window. In this way, the camera's exposure window is precisely synchronized in time with the illumination action performed by the target light-emitting end, ensuring image capture throughout the entire effective illumination period.
[0074] In one embodiment, the method is applied to a control system including at least one main air path and multiple branch air paths connected to the main air path. Step S20, "acquiring the status signal fed back from the airflow trigger end, and generating a drive signal to control the target light-emitting end to perform an illumination action when the status signal indicates that the airflow to be controlled has entered the injection execution stage," specifically includes: Obtain the set of sub-state signals returned by multiple airflow trigger terminals corresponding to multiple branch and main air paths; In the embodiments of this application, the main air path is the supply bus of the air source, while the multiple branch air paths are paths branching off from the main air path, each independently or semi-independently performing the spraying task. This type of system is commonly found in automated production lines, precision cleaning, dispensing, or spraying equipment, where independent or coordinated airflow operations are required for multiple target areas. For example, the control system can be an integrated PLC or industrial PC, controlling the on / off state of the air paths through actuators such as solenoid valves. Alternatively, it can be a distributed control system, with multiple independent microcontroller units controlling different branch air paths and communicating via a bus. The sub-state signal set refers to the set of signals independently fed back by the airflow trigger terminals on each branch air path, such as pressure sensors, flow sensors, and proximity switches. The sub-state signal set can reflect the current operating state of the corresponding branch airflow, such as whether spraying is in progress, spray pressure, and flow rate. One implementation is that each branch air path is equipped with an independent pressure sensor; when the airflow pressure reaches a preset threshold, the sensor outputs a high-level signal, forming a digital signal set. Another approach is to indirectly obtain sub-state signals by monitoring the drive signal of the control solenoid valve. For example, when the solenoid valve is open, it is assumed that the corresponding branch airflow is in the injection execution phase.
[0075] Identify the target airflow trigger end that is in the effective state of signal transition based on the set of sub-state signals; In embodiments of this application, this step aims to identify the specific airflow trigger from multiple airflow trigger signals that is currently undergoing a state change and instructs the injection to proceed. Here, a valid signal transition state typically refers to the transition from a non-injection state to an injection state. Identifying the target airflow trigger is fundamental to achieving precise one-to-one or one-to-many control. Specifically, this can be achieved by continuously monitoring the set of sub-state signals through polling or interrupt mechanisms. When a sub-state signal transitions from a low level to a high level and remains so for a period of time, it is identified as being in a valid signal transition state. Alternatively, the system can maintain a historical state table, comparing the current state with the previous state to detect changed signals and determining whether they are valid states based on preset logic.
[0076] Based on the preset endpoint mapping table, the target light-emitting end corresponding to the target airflow trigger end is determined, and a drive signal is sent to the target light-emitting end.
[0077] In the embodiments of this application, this step involves associating the identified specific airflow trigger with the corresponding lighting device and issuing control commands. The endpoint mapping table is a pre-configured data structure that defines the correspondence between each airflow trigger and one or more light-emitting terminals. This mapping can be a fixed one-to-one relationship, or a complex one-to-many or many-to-one relationship to adapt to different detection requirements. The endpoint mapping table can be stored in the controller's non-volatile memory in the form of key-value pairs. Once the target airflow trigger is identified, the corresponding target light-emitting terminal ID is obtained by querying the endpoint mapping table, and then a drive signal can be sent to the target light-emitting terminal through the digital output port or communication interface. Alternatively, the mapping table can be dynamically generated and updated through a software configuration interface, allowing users to flexibly adjust the linkage between airflow and the light source according to actual applications.
[0078] For example, as a specific implementation, suppose there are three branch air lines on an automated assembly line, each used to clean parts at three different workstations. Each workstation is equipped with an independent detection light source. The control system can be an industrial PC connected to three pressure sensors as airflow triggers, each mounted on one of the three branch air lines, and three LED light sources as light emitters, each mounted above one of the three workstations. When a part at a certain workstation needs cleaning, the solenoid valve on the corresponding air line A opens, pressure sensor A detects the increased air pressure, and sends a high-level sub-state signal to the industrial PC.
[0079] The industrial PC receives a set of sub-state signals and identifies that pressure sensor A is in a signal transition active state, which is the target airflow trigger point. Additionally, the endpoint mapping table stored internally by the industrial PC may be defined as "pressure sensor A → LED light source A", "pressure sensor B → LED light source B", and "pressure sensor C → LED light source C". Based on the endpoint mapping table, the industrial PC determines that the target light-emitting end is LED light source A and immediately sends a drive signal to LED light source A to start illumination. When purging is complete and the signal of pressure sensor A returns to a low level, the industrial PC can then activate a delay timing process based on the light emission delay parameter, and generate a drive signal to turn off LED light source A after the timing ends, thus terminating the illumination.
[0080] Through the above technical solution, this application can be effectively applied to complex control systems containing multiple branch and main air paths, realizing one-to-one or many-to-one linkage control between the airflow trigger end and the target light-emitting end. Based on this, the solution of this embodiment solves the technical problem of how to accurately identify the trigger source and control the corresponding light source in a multi-airflow scenario. It can avoid the false triggering or control ambiguity that may occur in traditional solutions, and enable the illumination action of the detection light source to be closely synchronized with the jetting task of a specific airflow, thereby improving the accuracy, reliability and overall system operating efficiency of detection. It is especially suitable for automated production environments that require precise visual inspection of multiple independent areas.
[0081] In other implementations, when applied to control systems including multiple branch and main air paths, it is necessary to acquire the set of sub-state signals returned by multiple airflow trigger terminals corresponding to the multiple branch and main air paths, identify the target airflow trigger terminal based on this, and then determine the target light-emitting terminal according to a preset endpoint mapping table and send a drive signal. However, in practical applications, when multiple airflow trigger terminals enter the injection execution stage almost simultaneously, multiple target light-emitting terminals may start simultaneously in a very short time, resulting in transient start-up surge spikes on the power supply bus. This phenomenon may cause excessive impact on the power supply system and even affect the stability and reliability of the system.
[0082] In one feasible embodiment, the step of determining the target light-emitting end corresponding to the target airflow trigger end based on a preset endpoint mapping table and sending a drive signal to the target light-emitting end may further include: Extract the timestamps of each target airflow trigger end entering the effective state of signal transition from the sub-state signal set; If the absolute time difference between at least two timestamps is less than the preset concurrent collision tolerance, an electrical surge suppression queuing queue is introduced. An incremental stepped delay time is assigned to each target light-emitting end that generates the collision, and the drive signal is output in staggered order according to the stepped delay time, so as to disperse the transient startup surge peak on the power supply bus to different time windows.
[0083] The extraction of timestamps from the sub-state signal set for each target airflow trigger end entering the effective signal transition state aims to record the moment when each target airflow trigger end switches from the non-jet state to the jet execution state, providing a time basis for determining whether concurrent startup exists. This step can be implemented by capturing the signal transition edge with a hardware interrupt and recording the corresponding nanosecond or microsecond time value by the system clock; or by using software polling to read the current system counter value as a timestamp when a signal state change is detected. When the timestamps of multiple target airflow trigger ends are very close to each other, it indicates that the target light-emitting ends corresponding to these airflow trigger ends may start simultaneously, causing a transient high current surge on the power supply bus. In this case, an electrical surge suppression queue can be introduced. This queue is a mechanism for managing and scheduling the drive signals of multiple target light-emitting ends that are about to start. It can be implemented using a first-in-first-out queue or a queue based on priority or timestamp sorting, used to store the target light-emitting ends that need to be delayed in starting and their corresponding drive signals. Once a concurrent collision risk is identified, the system stops sending drive signals simultaneously and instead allocates different incremental delay times to the target light-emitting terminals that are about to start. Furthermore, these delay times are typically in the millisecond range to ensure that they do not visually affect the detection effect, but are sufficient to stagger the start-up times of each light-emitting terminal. This step can be implemented by using a software timer to set an independent delay counter for each target light-emitting terminal; when the counter reaches the allocated stepped delay time, the corresponding drive signal is output. Alternatively, a hardware sequence generator can be used to preset the delay sequence of each output, allowing the hardware to automatically handle peak-shifting output. Ultimately, by dispersing the start-up times of multiple target light-emitting terminals, the transient start-up current spikes that might otherwise overlap are separated, thus preventing the power supply bus from experiencing excessive current surges at any given moment. This can be achieved by controlling the start-up sequence of each light-emitting terminal to ensure that only a few terminals are in the start-up phase within any extremely short time window, effectively reducing the instantaneous load on the power supply bus.
[0084] This embodiment's solution monitors the status of multiple airflow triggering ends in the aforementioned pneumatic-electric linkage detection light source control method when the system is applied to a multi-branch airflow path scenario. To avoid the power supply system being impacted by the simultaneous activation of multiple target light-emitting ends, the system first records the moment when each target airflow triggering end in the sub-state signal set enters the signal transition effective state, i.e., extracts its timestamp. These timestamps reflect the actual start time of each airflow jet action. Subsequently, these timestamps are analyzed to determine whether there are at least two timestamps whose absolute time difference is less than a preset concurrent collision tolerance. This concurrent collision tolerance value is preset based on the power supply bus's capacity and the activation characteristics of the light-emitting ends, used to define the scope of simultaneous activation. Once a potential concurrent collision is detected, an electrical surge suppression queue is introduced to include all target light-emitting ends that may activate simultaneously under management. Based on this, the system allocates an increasing stepped delay duration to the target light-emitting ends that generate collisions. That is, the first triggered light-emitting end may activate immediately or with only a slight delay, the second light-emitting end will be delayed by one step duration compared to the first, the third by two step durations, and so on.
[0085] Ultimately, the system will output the corresponding drive signals sequentially and in staggered manner according to the allocated stepped delay duration. In this way, the multiple light-emitting terminal startup current spikes that might have superimposed at the same instant are effectively dispersed into different time windows, thereby reducing the peak current pressure on the power supply bus during transient startup, ensuring the stability and reliability of the entire control system, and effectively solving the electrical impact problem caused by multiple concurrent startups while maintaining the response speed of the detection light source.
[0086] In one embodiment, step S30, "when the status signal indicates that the airflow to be controlled has entered the injection stop stage, activate the delay timing process based on the light emission delay parameter," specifically includes: The number of parallel branch gas paths currently in the injection execution phase is extracted based on the set of sub-state signals. In the embodiments of this application, the sub-state signal set refers to the set of respective state signals returned by the airflow triggers corresponding to multiple branch air paths, reflecting the current working state of each branch air path, such as injection execution or injection stoppage. The number of parallel branch air paths refers to the number of branch air paths that are simultaneously in the injection execution phase at a specific moment. The number of parallel branch air paths can be extracted by the control system continuously receiving and parsing the sub-state signals from all airflow triggers, and counting the number of high-level signals through logical judgment. Alternatively, each airflow trigger sends an event signal when switching states, and the control system maintains a counter to update the number of parallel branch air paths in real time based on the event signals.
[0087] Determine whether the number of parallel branch gas paths exceeds the preset threshold for the number of interfering gas paths; In the embodiments of this application, the threshold for the number of interfering air paths is a pre-set value used to define how many branch airflows, when injected simultaneously, will have a significant enough fluid interference effect to affect the accuracy of the illumination delay. The extracted number of parallel branch air paths is compared with the threshold for the number of interfering air paths pre-stored in the system memory to assess the potential impact of the current concurrent multi-airflow state on the accuracy of the illumination delay. The threshold for the number of interfering air paths can be set according to the actual application scenario and accuracy requirements, or it can be dynamically adjusted based on historical data or experimental results.
[0088] If the number of interfering gas paths exceeds the threshold, the light emission delay parameter is corrected by a preset fluid compensation coefficient, and the delay timing process is activated based on the corrected light emission delay parameter.
[0089] In the embodiments of this application, the fluid compensation coefficient is an amplification factor greater than 1, used to multiply and correct the luminescence delay parameter. In some embodiments, compensation can also be performed by additive offset or by looking up a table, with the specific compensation mode specified by the detection configuration parameters. When the number of parallel branch gas paths exceeds the threshold for the number of interfering gas paths, the system determines that fluid interference exists and calls the preset fluid compensation coefficient to correct the luminescence delay parameter. This fluid compensation coefficient can be obtained through actual purging tests, smoke flow field tests, particle tracer tests, or historical detection data calibration, or it can be obtained by looking up a table based on the number of parallel branch gas paths, the main pipe pressure drop gradient, or the airflow parameter calibration curve.
[0090] In a preferred embodiment, in a multi-branch air path implementation, the controller can pre-store the correlation between the branch air paths and the detection area. This correlation characterizes whether the jet flow of each branch air path may cause flow field interference to the detection area corresponding to the target light-emitting end. This correlation can be determined based on nozzle position, jet direction, distance between the nozzle and the detection area, obstruction relationship of the workpiece or fixture, and a pre-calibrated airflow influence range. When the number of parallel branch air paths exceeds a threshold for the number of interfering air paths, and the target branch air path enters the jetting stop phase, the controller can further determine the associated branch air paths in the jetting execution phase from the sub-state signal set. Based on at least one of the following: the number of associated branch air paths, jet pressure, flow rate, nozzle specifications, spatial position parameters, and continuous jetting duration, the controller determines the corresponding interference index. When the interference index exceeds a preset interference threshold, the controller can call the fluid compensation coefficient corresponding to the interference index to correct the light-emitting delay parameter and activate the delay timing process based on the corrected light-emitting delay parameter.
[0091] In this preferred embodiment, not all simultaneously injected branch gas paths are considered sources of interference. Instead, the associated branch gas paths that may affect the target detection area are further identified based on the correlation between the branch gas paths and the target detection area, so as to improve the targeting of the delay correction.
[0092] Furthermore, it should be understood that the number of parallel branch gas paths exceeding the threshold of the number of interfering gas paths constitutes a sufficient condition for triggering fluid compensation. This preferred embodiment further refines the value of the fluid compensation coefficient based on the associated branch gas paths and the interference index under the premise that this sufficient condition is met, rather than using whether the interference index exceeds the preset interference threshold as the condition for starting compensation.
[0093] One specific implementation method involves correction based on a fluid compensation coefficient. When multiple branch gas paths operate concurrently or when the main gas source experiences pressure fluctuations, the dynamic pressure of the airflow acting on the detection area will nonlinearly decrease, leading to a reduction in the displacement acceleration of the purged material, and some residual particles may be in a low-speed free state. In this case, the fluid compensation coefficient is set as an amplification factor positively correlated with the real-time pressure attenuation.
[0094] In practice, the system acquires the actual air pressure value collected by the air pressure sensor in real time. And compare it with the rated standard air pressure value in the test configuration parameters. Perform a comparison. If... Then it can be done through the formula Calculate the fluid compensation coefficient greater than 1. ,in It is a natural logarithmic function used to fit the gas kinetic energy dissipation curve.
[0095] In addition, fluid compensation coefficient It should also be subject to the maximum compensation limit to avoid the detection cycle being affected by excessive luminescence delay parameters caused by a severe drop in gas source.
[0096] Additionally, it should be noted that the above compensation coefficient formula is an empirical fitting coefficient for this scenario, not a theoretical analytical formula. It can be replaced with table lookup, linear correction, etc., based on the actual system calibration.
[0097] Furthermore, this fluid compensation coefficient is utilized. The original emission delay parameter is modulated by multiplication, meaning the final delay is the product of the original delay and the fluid compensation coefficient. Through this correction mechanism, when the purging kinetic energy of the physical gas path degrades, the system can automatically compensate across the physical domain by extending the optical window time, thereby ensuring that the final detection reliability is not affected by gas source fluctuations.
[0098] It should be noted that in a centralized air supply system where multiple workstations or multiple air guns share a single main air path, when the number of parallel branch air paths in the spraying stage exceeds the threshold for the number of interfering air paths, the total flow load of the main air supply pipe surges, causing a transient pressure drop in the main air supply pipe. This results in the effective purging velocity and impact kinetic energy of the target branch air path before it stops being lower than the rated nominal operating condition. Insufficient purging kinetic energy can easily lead to the incomplete removal of tiny impurity particles from the surface of the workpiece being tested, or only their removal to the critical area near the workpiece surface. Simultaneously, the synchronous high-speed spraying of multiple branch air guns within a localized area of the workshop can generate severe environmental airflow turbulence, prolonging the natural settling period of suspended dust particles in the air, thus increasing the risk of particles falling back and reattaching after the airflow stops. Therefore, in this embodiment, the fluid compensation coefficient is set to a delay amplification coefficient greater than 1, the value of which can be obtained by referring to a table based on the calibration curve of the number of parallel branch air paths and the pressure drop gradient of the main pipe. The emission delay parameter is positively amplified and corrected by a preset fluid compensation coefficient. This means the corrected delay is the product of the original emission delay parameter and the fluid compensation coefficient, allowing the target emission end to maintain a longer delay illumination window after the airflow is cut off. Based on this, it provides ample time for manual visual secondary search to detect more potentially residual particles caused by the attenuation of kinetic energy from the preceding purging. It also provides the necessary time delay window for the machine vision system to avoid interference from suspended impurities caused by incomplete turbulence and to capture high signal-to-noise ratio static images after aerosol dissipation.
[0099] For example, as a specific implementation, the control system can be configured with an embedded microcontroller. This microcontroller is connected to multiple airflow triggers via digital input ports, each corresponding to a branch airflow path. The microcontroller continuously reads the status of these digital input ports to obtain a set of sub-status signals. When the microcontroller detects that the status signal of a certain airflow trigger changes from high to low, it immediately iterates through all digital input ports and counts the number of branch airflow paths that are still in a high-level state, i.e., the number of parallel branch airflow paths. Assuming the system's preset threshold for the number of interfering airflow paths is 2, and at this time 3 branch airflow paths are found to be still injecting, the microcontroller will determine that the threshold for the number of interfering airflow paths has been exceeded.
[0100] At this point, the microcontroller reads a preset fluid compensation coefficient from its internal non-volatile memory. Based on this, the microcontroller multiplies the original light emission delay parameter by the fluid compensation coefficient to obtain the corrected light emission delay parameter. Subsequently, the microcontroller writes this corrected light emission delay parameter into the compare register of a hardware timer module and starts the hardware timer. When the timer reaches the corrected light emission delay parameter, an interrupt is triggered. The microcontroller responds to this interrupt and immediately pulls the drive signal of the target light-emitting end low or generates a new drive signal, thereby terminating the illumination action of the target light-emitting end.
[0101] Through the above technical solution, this application can effectively address the fluid interference problem caused by the concurrent injection of multiple branch airflows. Specifically, when the simultaneous operation of multiple airflows complicates fluid dynamics and may affect the actual stopping time of the airflow, the number of parallel branch airflows is monitored in real time and judged according to a preset threshold. Once potential interference is identified, the light emission delay parameter is corrected in a timely manner. Based on this, the solution of this embodiment ensures, through this correction mechanism, that even in complex fluid environments, the termination of the illumination action can be precisely synchronized with the actual stopping of the airflow, avoiding premature or late extinguishing of the light source due to fluid interference, thereby improving the accuracy and reliability of the detection light source control. Especially in machine vision inspection scenarios with extremely high requirements for time synchronization, the solution of this embodiment can ensure the accuracy and consistency of image acquisition.
[0102] In one embodiment, step S40, "when the timing value of the delay timing process reaches the light emission delay parameter, a drive signal is generated to turn off the lighting action," specifically includes: When the timing value of the delay timing process reaches the light emission delay parameter, the exposure level signal currently returned by the image acquisition terminal is obtained; In the embodiments of this application, the image acquisition end refers to a device used to capture images of the object to be detected, such as an industrial camera, CCD sensor, or CMOS sensor. Its function is to convert optical images into electrical signals for subsequent processing and analysis. The exposure level signal is a signal output by the image acquisition end that indicates its current working state. It can be a digital logic level, for example, a high level indicates that exposure is in progress during the shutter opening window, and a low level indicates that exposure has ended or has not started; or it can be an analog voltage signal whose amplitude changes reflect the exposure state and are used by external systems to synchronize the exposure timing of the image acquisition end.
[0103] If the exposure level signal indicates that the current shutter opening window for image frame acquisition is within the current window, then the generation of the drive signal will be suspended. In the embodiments of this application, the shutter opening window period refers to the entire time period from when the sensor array at the image acquisition end begins to receive light and accumulate charge until the charge readout is completed. During this period, the sensor is sensitive to light, and any change in illumination will directly affect the image quality. The suspension of the drive signal generation action means that when the condition for terminating illumination is met, the drive signal generation operation is not executed immediately, but rather temporarily delayed. This suspension mechanism allows the system to wait for a certain external condition to be met before continuing execution.
[0104] The illumination operation of the target light-emitting end is maintained until the falling edge characteristic of the exposure level signal transitioning from the effective state to the ineffective state is captured, at which point the drive signal generation operation is executed.
[0105] In the embodiments of this application, the falling edge characteristic of the transition from the effective state to the ineffective state refers to the instant when the exposure level signal changes from the effective state, which indicates that the shutter is open or the exposure is in progress, to the ineffective state, which indicates that the shutter is closed or the exposure is over. The falling edge usually indicates that the image acquisition end has completed a complete exposure cycle.
[0106] Furthermore, if the exposure end edge is not detected even after exceeding the maximum waiting threshold, the lights need to be forcibly turned off and an anomaly reported.
[0107] It should be noted that, based on its control logic on the target light-emitting end, the driving signal is specifically divided into a first driving signal, namely the light-on driving signal, and a second driving signal, namely the light-off / turn-off driving signal. Therefore, the driving signal to turn on the target light-emitting end is the first driving signal, such as a high-level enable signal or PWM constant current drive excitation; while the driving signal to turn off the target light-emitting end is the second driving signal, such as a low-level turn-off signal or cutoff pulse.
[0108] When the timing value of the delay process reaches the emission delay parameter, the controller does not immediately issue a light-off command. Instead, it prioritizes reading the exposure level signal from the image acquisition end. If the exposure level is in a valid high-level state at this time, it indicates that the camera shutter is within the physical light-sensing integration window. The controller forcibly interrupts and suspends the generation process of the second drive signal used to turn off the illumination, and the target light-emitting end maintains the original power illumination. Only when the exposure level signal is detected to jump from a valid state to an invalid state, i.e., a falling edge characteristic appears, confirming that the current frame's exposure and light-sensing process has been completely completed, will the controller immediately release and execute the generation of the second drive signal, completely cutting off the light source output of the target light-emitting end.
[0109] For example, as a specific implementation, the control system can employ a high-performance microcontroller to execute the above method. In this case, the microcontroller is connected to the "exposure complete" or "frame valid" output port of the image acquisition terminal via a high-speed digital input pin. This port outputs a high level during camera exposure and a low level after exposure. When the timing value of the delay process reaches the emission delay parameter, the microcontroller immediately reads the state of this digital input pin. If the pin state is high, indicating that the image acquisition terminal is exposing, the microcontroller enters a wait loop, continuously monitoring this pin. Once the pin state transitions from high to low (i.e., a falling edge is captured), the microcontroller immediately sets the drive signal of the target emission terminal to zero or updates it with a new drive signal through its PWM output port or digital output port, thereby turning off the illumination operation. If the pin state is already low when the timing value reaches the emission delay parameter, the microcontroller directly executes the drive signal generation operation without waiting.
[0110] Through the above technical solution, this application can effectively solve the problem of asynchronous illumination termination timing and machine vision image acquisition in pneumatic-electric linkage detection light source control. Specifically, the solution of this embodiment can ensure that the illumination action of the target light-emitting end always completely covers the exposure window of the image acquisition end, avoiding defects such as incomplete image exposure, uneven brightness, or artifacts caused by premature interruption of illumination. Based on this, the solution of this embodiment can improve the quality and stability of images acquired by the machine vision system, thereby improving the accuracy and reliability of detection results, and is especially suitable for precision detection scenarios with extremely high image quality requirements.
[0111] In some other embodiments, this application proposes to control the illumination action of the target light-emitting end through airflow state signals and to perform delayed illumination after the airflow stops. However, in machine vision automatic acquisition scenarios, when the airflow to be controlled is in the jet execution stage, the fluid impact may generate a large number of suspended particles. If the target light-emitting end is illuminated with high illuminance at this time, these suspended particles will cause severe backscatter glare to the vision acquisition system, thereby affecting the image acquisition quality and detection accuracy.
[0112] In one feasible embodiment, the step of generating a driving signal to control the target light-emitting end to perform an illumination action when the scene is a machine vision-automated acquisition scene includes: During the period when the status signal indicates that the airflow to be controlled is in the jet execution phase, the drive signal of the first drive parameter is output to the target light-emitting end to maintain low-light standby illumination and avoid backscattering glare caused by suspended particles generated by fluid impact on visual acquisition. When the status signal indicates that the airflow to be controlled has entered the injection stop stage, and the delay timing process is activated, the drive signal is stepped up from the first drive parameter to the second drive parameter, wherein the effective power value of the second drive parameter is greater than the effective power value of the first drive parameter.
[0113] It should be noted that during the active phase of airflow jetting, the target light-emitting end is not completely turned off, but operates at a lower brightness. This low-light standby illumination mode reduces energy consumption and avoids potential visual interference during jetting. The driving signal for the first driving parameter can be implemented in various ways. For example, a square wave signal with specific driving parameters can be generated by a pulse width modulation controller. This square wave signal directly drives the power module of the target light-emitting end, causing its output current or voltage to decrease proportionally, thereby achieving low-light output. Alternatively, a low-level analog voltage signal can be output through a digital-to-analog converter. This analog voltage signal, after being amplified by a current-driven circuit, drives the target light-emitting end with a low constant current, achieving low-light output.
[0114] At the moment the airflow jet ends and detection is ready, the brightness of the target's light-emitting end rapidly increases to the high brightness level required for detection. This step-up ensures strict synchronization between high-intensity illumination and detection timing. Specifically, the step-up of the drive signal's driving parameters can be achieved by the controller immediately modifying the PWM controller's drive parameter register value after receiving a status signal indicating that jetting has stopped and the delay timing process has started, rapidly switching it from the first drive parameter to the second drive parameter. Alternatively, a high-speed switching circuit can be used to switch the drive signal from a PWM source with low drive parameters to a PWM source with high drive parameters at a specific moment, or directly switch to a constant high-level drive, to achieve the step-up of the drive parameters.
[0115] As described above, in machine vision automated acquisition scenarios, optimized linkage between airflow jetting and detection illumination can be achieved by managing the illumination intensity of the target emitting end. When the controlled airflow is in the jetting execution phase, a drive signal for the first driving parameter is output to the target emitting end, maintaining low-light standby illumination. This low-intensity illumination mode effectively avoids backscattering glare caused by suspended particles generated during airflow jetting, thus ensuring the clarity of visual acquisition. Simultaneously, this phased illumination strategy reduces the energy consumption and heat load of the target emitting end during non-critical detection periods. Subsequently, when the status signal indicates that the controlled airflow has entered the jetting stop phase, and the delay timing process is activated, the drive parameter of the drive signal is immediately stepped up from the first drive parameter to the second drive parameter. Since the second drive parameter is greater than the first drive parameter, the target emitting end quickly switches to a high-illuminance illumination state, providing sufficient light for subsequent detection. Based on this, through such precise timing control, it can be ensured that high-intensity lighting is provided only during the critical window period of actual testing needs, thereby improving the accuracy and reliability of testing, and further optimizing energy efficiency and equipment lifespan.
[0116] The following is a concrete example. For instance, in a machine vision inspection system, this scheme can be implemented by an embedded controller, such as a control board based on an STM32 microcontroller. When the status signal from the airflow trigger indicates that the controlled airflow has entered the injection execution phase, the microcontroller outputs a drive signal with a low drive parameter, such as 15%, through its PWM module. This PWM signal then passes through an LED driver chip, controlling a high-brightness LED array, acting as the target light source, to operate in low-light mode. At this time, the light intensity emitted by the LED array is low, sufficient to provide basic background illumination, but insufficient to cause strong reflections from suspended particles. When the airflow trigger detects that the airflow has stopped injecting and feeds back a status signal to the microcontroller, and simultaneously the internal delay timing process is activated, the microcontroller immediately updates the drive parameter register of the PWM module, rapidly increasing it from 15% to a higher drive parameter, such as 95%. Upon receiving the new PWM signal, the LED driver chip increases the supply current to the LED array, causing the LED array to emit high-brightness light, providing clear and sufficient illumination for the machine vision system to perform image acquisition and defect detection at precise moments after the airflow stops.
[0117] For example, the driving parameter can be the duty cycle of the PWM signal, that is, the first duty cycle is output during low-light standby and the second duty cycle is stepped to during delayed lighting; in another embodiment, for the analog dimming control system, the driving parameter can also be the driving current amplitude or the driving voltage amplitude, and this application does not impose an absolute limitation on this.
[0118] Furthermore, to achieve the timing and physical model calculations in the above method embodiments, refer to Figure 2 This paper illustrates a multi-unit control architecture using an RS485 interface as an example. In scenarios such as dust detection using machine vision, to meet the parallel detection requirements of large areas or multiple workstations, this control system can adopt this master-slave RS485 industrial bus topology. Specifically, the control system includes a master gateway and multiple slave node controllers connected to the RS485 bus. Each slave node controller maps and controls the corresponding target light-emitting end and the airflow control switch or its control terminal on the branch air path. The pneumatic part distributes airflow to each branch air path through a multi-pipe connector from the main air path. When the airflow control switch of any branch air path is triggered, the corresponding sub-state signal is reported to the master gateway via the RS485 bus in differential signal form. The master gateway, based on a preset endpoint mapping table, issues broadcast frames or addressing commands, thereby realizing synchronous illumination or independent control of multiple target light-emitting ends.
[0119] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0120] Reference Figure 3 This application also provides a pneumatic-electric linkage detection light source control system, including: The parameter acquisition module is used to acquire detection configuration parameters and extract the emission delay parameter based on the detection configuration parameters; The lighting drive module is used to acquire the status signal fed back from the airflow trigger end. When the status signal indicates that the airflow to be controlled has entered the jet execution stage, a drive signal is generated to control the target light-emitting end to perform the lighting action. The timing activation module is used to activate the delay timing process based on the light emission delay parameter when the status signal indicates that the airflow to be controlled has entered the injection stop stage. The lighting termination module is used to generate a drive signal to turn off the lighting action when the timing value of the delay timing process reaches the light emission delay parameter.
[0121] As described above, it is understood that each component of the pneumatic-electric linkage detection light source control system proposed in this application can realize the function of any of the pneumatic-electric linkage detection light source control methods described above, and the specific structure will not be described in detail.
[0122] This disclosure also provides a detection light source, with reference to... Figure 4 Includes: connecting bracket 100; The light source body 200 is used to emit a detection light source, and the light source body 200 is mounted on the connecting bracket 100. Air gun 300, air gun 300 is mounted on connecting bracket 100; The airflow control switch 400 is connected to the air gun 300; the airflow control switch 400 is used to control the operation of the air gun 300 and synchronously feed back the status signal to the controller. A controller (not shown in the figure) is connected to the light source body 200 and the air gun 300. The controller is configured to perform the steps of the detection light source control method described above, which can be applied to any embodiment.
[0123] In addition, Figure 4 In the example provided, the airflow control switch can also be an air gun trigger, a push-button switch, or other operating component used to control the on / off state of the air gun's air path. The airflow control switch can be equipped with a stroke detection element to provide feedback a switch action signal to the controller. The detection light source can further include an airflow detection unit, which includes a pressure sensor, a flow sensor, a differential pressure sensor, or a combination thereof, for providing feedback a status signal to the controller that characterizes the actual output state of the controlled airflow.
[0124] In embodiments that include a fail-safe function, the detection light source may further include a controlled shut-off valve disposed between the air source and the air gun, the controlled shut-off valve being electrically connected to the controller. The controller controls the illumination action of the light source body based on the status signal fed back by the airflow detection unit, and controls the controlled shut-off valve to cut off the output of the controlled airflow when the fail-safe condition is met. The controller may include a microcontroller, a programmable logic controller, an embedded processor, or an industrial computer; the controller is communicatively or electrically connected to the light source driving module, the airflow detection unit, the controlled shut-off valve, and the image acquisition terminal.
[0125] In one embodiment, the detection light source provided in this disclosure may further include the following features: Reference Figures 4-7 The pneumatic-electric linkage detection light source includes: a connecting bracket 100, a light source body 200, an air gun 300, and an airflow control switch 400. The connecting bracket 100 serves as the supporting frame of the entire device and can be made of alloy materials or engineering plastics. To ensure the stability of the connecting bracket 100 structure, in this embodiment, the connecting bracket 100 is made of stainless steel. Furthermore, the connecting bracket has a vertical connector 110 and an inclined connector 120 located on the side of the vertical connector 110. The vertical connector 110 is mainly used to mount the air gun 300, while the inclined connector 120 is used to mount the light source body 200. Additionally, the airflow control switch 400 can be implemented using existing common control switches and is used to control the operation of the air gun 300.
[0126] Furthermore, the light source body 200 is used to emit a detection light source, which can specifically be a strip light source or a ring light source composed of multiple high-brightness LED beads, used to illuminate the area to be detected so that operators or image recognition systems can clearly observe tiny particles such as dust. The light source body 200 is detachably mounted on the inclined connector 120, for example, by means of snap-fit, threaded fastening, or bolt fixing, to facilitate later maintenance and replacement. It should be noted that the camera of the image recognition system can be integrated with the light source body 200 and installed in a single housing to form a component with combined imaging and illumination functions.
[0127] Additionally, the air gun 300 has a handle end 310 and an air outlet end 320. The handle end 310 is used to connect to an external air supply pipe (such as a compressed air pipe) and is held by the operator. When used on an automated production line, the handle end 310 can also be fixedly installed above the production line. The air supply pipe of the air gun 300 is opened and closed by a controller (not shown). The air outlet end 320 faces the product to be inspected, and its port is used to spray a high-speed airflow to blow away dust. The air gun 300 is detachably mounted on the vertical connector 110, for example, by means of a clamping ring, a clamp, or a quick-release structure.
[0128] In this embodiment, the direction in which the light source 200 emits the detection light source is set at an acute angle to the air outlet direction of the air gun 300's outlet end 320. This acute angle (e.g., between 15 and 45 degrees) ensures that when the outlet end 320 is aligned with the surface to be tested, the light emitted by the light source 200 can illuminate the corresponding blowing area at a specific tilt angle. Thus, when the operator is performing detection or the camera is capturing images, the light source and air gun form a fixed working unit, eliminating the need for switching.
[0129] Through the above technical solution, the pneumatic-electric linkage light source of this embodiment is provided with a connecting bracket 100 that simultaneously supports the light source body 200 and the air gun 300, and the specific layout of the inclined connecting member 120 and the vertical connecting member 110 is used to make the irradiation direction of the light source and the blowing direction of the air gun 300 form an acute angle.
[0130] First, the air gun 300 can be aimed at the area to be tested and the switch on the air gun 300 can be pressed to blow air. Subsequently, the light source body 200 will be activated to illuminate the blown area for testing. Alternatively, the air gun 300 can be automatically controlled by the controller to blow air, and the air outlet 320 of the air gun 300 can be used to blow air and clean the same area. After cleaning, since the light source body 200 is always in standby mode and its direction is close to the blowing direction, it can automatically illuminate the area for testing while cleaning. This integrated structural design can shorten the switching time between testing and cleaning, eliminate tool changing steps, improve the continuity and efficiency of testing operations, and reduce the labor intensity of operators.
[0131] To achieve height adjustment of the connecting bracket 100 to adapt to different working surface heights, in some embodiments, the inclined connecting member 120 is slidably connected to the vertical connecting member 110, and the inclined connecting member 120 can slide relative to the vertical connecting member 110 in the vertical direction. This sliding connection method, through the cooperation of guide rails and sliding grooves, allows the light source body 200 and the air outlet end 320 of the air gun 300 to rise and fall synchronously as a whole, ensuring that the acute angle relationship between the light source illumination direction and the air gun 300 blowing direction remains unchanged at different heights, thus improving the adaptability of the equipment.
[0132] Please see Figure 4 and Figure 6In some specific embodiments, the inclined connector 120 includes a vertical arm 121 and an inclined arm 122. The vertical arm 121 is parallel to the air outlet direction of the air gun 300's air outlet 320, meaning that the vertical arm 121 is approximately vertical after installation. The vertical arm 121 is slidably connected to the vertical connector 110 to achieve height adjustment. One end of the inclined arm 122 is connected to the end of the vertical arm 121 away from the air outlet 320 of the air gun 300 (i.e., the upper end of the vertical arm 121), and the other end of the inclined arm 122 extends downwards at an angle away from the air gun 300. It is understood that the inclined arm 122 and the vertical arm 121 can be an integrally formed structure, or they can be fixed together by welding or bolts. The downward angle of the inclined arm 122 allows the light source body 200 mounted on it to naturally tilt downwards and focus on the area in front of the air outlet 320 of the air gun 300, thereby ensuring the formation of an acute angle.
[0133] Furthermore, to achieve simple and reliable sliding adjustment and locking between the vertical arm 121 and the vertical connector 110, please refer to... Figures 4 to 7 In some embodiments, the vertical arm 121 is provided with a first sliding groove 1211. The vertical connector 110 is provided with a connecting rib 111 that overlaps with the vertical arm 121. The connecting rib 111 is provided with a first threaded hole 112, which is located inside the first sliding groove 1211. The connecting bracket 100 also includes a first bolt 140, which is threadedly connected to the first threaded hole 112. During assembly, the screw of the first bolt 140 passes through the first sliding groove 1211 and is screwed into the first threaded hole 112. When the height needs to be adjusted, the first bolt 140 is loosened, and the vertical arm 121 can move up and down along the direction of the first sliding groove 1211; after adjustment, the first bolt 140 is tightened, and its head presses against the surface of the vertical arm 121 to achieve fixation. This structure not only has fewer parts but also a larger operating space, making it easy to use tools for locking.
[0134] To prevent the vertical arm 121 from sliding out relative to the vertical connector 110 and tilting during height adjustment, in some embodiments, the connecting rib 111 is provided with a second threaded hole 113, which is spaced apart from the first threaded hole 112 in the vertical direction. Typically, the second threaded hole 113 is located above the first threaded hole 112. The connecting bracket 100 includes a screw 150, which connects to the second threaded hole 113 and at least partially extends into the first sliding groove 1211. The end of the screw 150 extends into the path of the first sliding groove 1211 but does not completely lock the sliding of the vertical arm 121. When the vertical arm 121 slides up and down, because the end of the screw 150 remains within the first sliding groove 1211, the vertical arm 121 will not rotate or tilt, ensuring that the vertical arm 121 is confined within its vertical sliding path.
[0135] To further fine-tune the illumination position of the light source body 200, enabling its emitting surface to more precisely cover the blowing point of the air gun 300, in some embodiments, the light source body 200 is slidably mounted on the inclined arm 122. By sliding and adjusting, the position of the light source body 200 relative to the inclined arm 122 can be changed, thereby altering the position of the light spot on the object being measured. This allows the light source to adaptively adjust according to the size of the object and the detection distance, ensuring optimal illumination.
[0136] Specifically, in some embodiments, the inclined arm 122 is provided with a second sliding groove 1221, the light source body 200 is provided with a third threaded hole 210, and the connecting bracket 100 includes a second bolt 160. The second bolt 160 passes through the second sliding groove 1221 and is threadedly connected to the third threaded hole 210 so that the light source body 200 can be fixed relative to the inclined arm 122. This structure is similar to the height adjustment principle described above. By utilizing the sliding and locking of the bolt in the sliding groove, stepless position adjustment of the light source body 200 along the extension direction of the inclined arm 122 is achieved. This connection method makes the installation and adjustment of the light source simple and convenient, and ensures a secure fixation.
[0137] See Figure 4 and Figure 7 Regarding the installation structure of the air gun 300, in some embodiments, the vertical connector 110 is provided with a retaining ring 130, which is detachably connected to the air outlet 320 of the air gun 300. The retaining ring 130 can be an open or closed ring structure, and its inner diameter is adapted to the outer diameter of the air outlet 320 of the air gun 300. The air outlet 320 of the air gun 300 can be installed by passing through the retaining ring 130. The retaining ring 130 makes the air gun 300 very convenient to install and remove, and can provide stable radial support for the air outlet 320 of the air gun.
[0138] To further enhance the clamping force of the retaining ring 130 on the air gun 300 and ensure that the air gun 300 does not shift or shake when high-pressure gas passes through, in some embodiments, the retaining ring 130 is provided with a plurality of fourth threaded holes 131 penetrating the circumferential wall of the retaining ring 130. The fourth threaded holes 131 are spaced apart along the circumference of the retaining ring 130, for example, three holes can be spaced 120 degrees apart. The connecting bracket 100 includes a third bolt 170, which is threadedly connected to the fourth threaded holes 131 and abuts against the outer circumferential wall of the air gun 300's outlet end 320. By uniformly tightening the plurality of third bolts 170, a uniform clamping force can be applied to the air gun 300 circumferentially, ensuring that the air gun 300's outlet end 320 remains stably within the retaining ring 130, preventing the air gun 300 from shaking or shifting when discharging air. It should be noted that the air outlet 320 can also be equipped with an airflow regulating control valve. The operator can adjust the airflow of the air outlet 320 of the air gun 300 according to the actual situation through the airflow regulating control valve to adapt to different product testing.
[0139] Additionally, it should be noted that the air gun 300 is not limited to the traditional air gun with purely mechanical on / off switching. The control connection between the airflow control switch 400 and the air gun 300, as well as the electrical connection between the controller and the air gun 300, can be achieved through an electro-pneumatic circuit. The airflow control switch 400 can be an electrically triggered switch, such as a micro-button, a magnetic Hall effect switch, or a tactile limit switch. When the operator presses or pulls the airflow control switch 400, it not only mechanically or electrically opens the airflow channel, but also synchronously sends a status signal indicating that the jetting execution stage has been entered to the controller. Furthermore, an electrically controlled actuator (not shown in the figure) directly controlled by the controller can be connected in series in the internal air passage of the air gun 300, such as a normally closed high-speed pneumatic solenoid valve or a proportional valve. In the normal purging mode, the controller is triggered by the airflow control switch 400 to control the conduction of the electronic actuator. In particular, for the work error prevention control logic, when the work error prevention timer reaches the preset working time threshold, and the airflow control switch 400 remains in the triggered state due to operator misoperation, mechanical jamming, or improper long press, the cutoff command generated by the controller is specifically manifested as forcibly cutting off the excitation current output to the electronic actuator. This causes the electronic actuator to be forcibly shut off the air circuit by spring reset when the electromagnetic force disappears, thereby achieving forced cutoff of the airflow to be controlled at the hardware level. Subsequently, the delay timer process is activated to maintain the light source illumination, avoiding air source waste and excessive impact damage to the workpiece surface from high-pressure airflow.
[0140] To achieve automated control, in some embodiments, the controller is electrically connected to the air gun 300 and the light source body 200. The controller can be a simple time-delay relay module or a logic controller integrated with an MCU, such as a PLC or microcontroller. It should be noted that in actual testing, the controller can control multiple pneumatic-electric linkage light sources on the production line. That is, the controller is electrically connected to multiple air guns 300 and light source bodies 200 on the production line. After each air gun 300 switch is pressed, the controller can control the valve on the air gun 300 to open and ventilate, and control the corresponding light source body 200 to power on for illumination testing.
[0141] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements a pneumatic-electric linkage detection light source control method.
[0142] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0143] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0144] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A pneumatic-electric linkage detection light source control method, characterized in that, Including the following steps: Obtain the detection configuration parameters and extract the emission delay parameter based on the detection configuration parameters; The status signal fed back from the airflow trigger end is acquired. When the status signal indicates that the airflow to be controlled has entered the jet execution stage, a drive signal is generated to control the target light-emitting end to perform the illumination action. When the status signal indicates that the airflow to be controlled has entered the injection stop stage, the delay timing process is activated based on the light emission delay parameter. When the timing value of the delay process reaches the light-emitting delay parameter, a drive signal is generated to turn off the lighting action.
2. The pneumatic-electric linkage detection light source control method according to claim 1, characterized in that, The steps of obtaining detection configuration parameters and extracting emission delay parameters based on the detection configuration parameters specifically include: Receive and unpack the configuration data packet to obtain the detection configuration parameters; Determine the detection scenario and detection task, and extract the target delay value corresponding to the detection task and / or detection scenario from the detection configuration parameters as the emission delay parameter.
3. The pneumatic-electric linkage detection light source control method according to claim 1, characterized in that, After the step of acquiring the status signal fed back from the airflow trigger end, and generating a drive signal to control the target light-emitting end to perform the illumination action when the status signal indicates that the airflow to be controlled has entered the jet execution stage, the method further includes: Start the error-proof timing corresponding to the spraying execution phase; When the value of the error prevention timer reaches the preset working duration threshold, and the acquired status signal still indicates that the injection execution phase is maintained, a cutoff command is generated to cut off the output of the controlled airflow and activate the delay timer process.
4. The pneumatic-electric linkage detection light source control method according to claim 1, characterized in that, After the step of activating the delay timing process based on the light emission delay parameter when the status signal indicates that the controlled airflow has entered the injection stop stage, the method further includes: During the execution of the delay timing process, the status signal fed back from the airflow trigger end is continuously monitored; If, before the timing value of the delay timing process reaches the light emission delay parameter, a status signal is detected indicating that the controlled airflow is entering the injection execution stage again, then the current delay timing process is reset and suspended. When the status signal re-indicates that the controlled airflow has entered the injection stop phase, the delay timing process is reactivated.
5. The pneumatic-electric linkage detection light source control method according to claim 1, characterized in that, The method is applied to a control system including at least one main air path and multiple branch air paths connected to the main air path. The steps of acquiring the status signal fed back from the airflow trigger end, and generating a drive signal to control the target light-emitting end to perform an illumination action when the status signal indicates that the airflow to be controlled has entered the injection execution stage, specifically include: Obtain the set of sub-state signals returned by multiple airflow trigger terminals corresponding to multiple branch and main air paths; Identify the target airflow trigger end that is in the effective state of signal transition based on the set of sub-state signals; Based on the preset endpoint mapping table, the target light-emitting end corresponding to the target airflow trigger end is determined, and a drive signal is sent to the target light-emitting end.
6. The pneumatic-electric linkage detection light source control method according to claim 5, characterized in that, The step of activating the delay timing process based on the light emission delay parameter when the status signal indicates that the controlled airflow has entered the injection stop stage specifically includes: The number of parallel branch gas paths currently in the injection execution phase is extracted based on the set of sub-state signals. Determine whether the number of parallel branch gas paths exceeds the preset threshold for the number of interfering gas paths; If the number of interfering gas paths exceeds the threshold, the light emission delay parameter is corrected by a preset fluid compensation coefficient, and the delay timing process is activated based on the corrected light emission delay parameter.
7. The pneumatic-electric linkage detection light source control method according to claim 1, characterized in that, The step of generating a drive signal to turn off the lighting action when the timing value of the delay timing process reaches the light emission delay parameter specifically includes: When the timing value of the delay timing process reaches the light emission delay parameter, the exposure level signal currently returned by the image acquisition terminal is obtained; If the exposure level signal indicates that the current shutter opening window for image frame acquisition is within the current window, then the generation of the drive signal will be suspended. The illumination operation of the target light-emitting end is maintained until the falling edge characteristic of the exposure level signal transitioning from the effective state to the ineffective state is captured, at which point the drive signal generation operation is executed.
8. A pneumatic-electric linkage detection light source control system, characterized in that, include: The parameter acquisition module is used to acquire detection configuration parameters and extract the emission delay parameter based on the detection configuration parameters; The lighting drive module is used to acquire the status signal fed back from the airflow trigger end. When the status signal indicates that the airflow to be controlled has entered the jet execution stage, a drive signal is generated to control the target light-emitting end to perform the lighting action. The timing activation module is used to activate the delay timing process based on the light emission delay parameter when the status signal indicates that the airflow to be controlled has entered the injection stop stage. The lighting termination module is used to generate a drive signal to turn off the lighting action when the timing value of the delay timing process reaches the light emission delay parameter.
9. A detection light source, characterized in that, The detection light source includes: Connecting bracket; A light source body is used to emit a detection light source, and the light source body is mounted on the connecting bracket; An air gun, which is mounted on the connecting bracket; An airflow control switch is connected to the air gun; the airflow control switch is used to control the operation of the air gun and synchronously feed back a status signal to the controller. And a controller connected to the light source body and the air gun, the controller being configured to perform the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 7.
