A dynamic error identification method and device for encoder position latching and exposure recovery

By using encoder position latching and exposure retrieval, the problems of synchronous acquisition and abnormal data retention in existing aerial photography detection devices are solved, achieving high-accuracy camera aerial photography performance detection and reducing chip mounting risks and labor costs.

CN123185347APending Publication Date: 2026-11-27深圳市谱汇智能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611692415.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing aerial photography testing devices have limitations in terms of synchronous acquisition methods, triggering benchmarks, abnormal data retention, and evaluation dimensions. They are unable to meet the testing requirements of semiconductor packaging and testing equipment for camera aerial photography performance. The test results deviate significantly from the actual working conditions, abnormal data is easily lost, and errors are difficult to identify.

Method used

By employing encoder position latching and exposure retrieval, the grating encoder position, camera exposure signal, and image output timestamp are synchronously acquired under the same time base to establish a closed-loop detection process. The trigger exposure delay, exposure position error, and exposure delay jitter are calculated to form an integrated detection process.

Benefits of technology

It improves the accuracy of aerial photography synchronization performance measurement, can accurately identify exposure position offset and positioning drift defects, reduce the risk of chip mounting scrap, realize automated inspection, reduce labor costs, and provide a highly consistent inspection standard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185347A_ABST
    Figure CN123185347A_ABST
Patent Text Reader

Abstract

The application relates to a dynamic error identification method and device for encoder position latching and exposure recovery, and belongs to the technical field of industrial camera imaging performance detection. The application is characterized in that: preset point coordinates, a qualified threshold and a cycle number are input, and the same time base is used for timing; encoder position pulses are received and coordinates are converted, the preset point coordinates are compared, a trigger signal is output to the camera when matching, and the trigger time and the trigger position are latched; the exposure effective signal of the camera is recovered, the exposure start and stop time is recorded according to the level jump edge, the position pulse in the exposure interval is continuously latched and the coordinates are converted; the trigger exposure delay and the exposure position error are obtained according to the time and the coordinate difference, the cycle number is repeated, the standard deviation of each trigger exposure delay is used as the exposure delay jitter, the three results are compared with the qualified threshold, the camera error identification result is obtained and stored. When any result exceeds the threshold, the current time and the coordinates are latched as an abnormal data packet under the same time base, and the abnormal data packet is used for fault tracing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial camera imaging performance testing technology, and in particular to a method and apparatus for dynamic error identification of encoder position latching and exposure retrieval. Background Technology

[0002] Semiconductor packaging and testing equipment commonly employs high-speed aerial imaging technology for die bonding and wire bonding. During robotic arm movement, camera exposure is synchronously triggered, and the synchronization accuracy directly impacts chip placement yield. However, existing aerial imaging testing devices still have the following shortcomings in practical use: First, existing devices use open-loop triggering and acquisition, failing to form a closed-loop synchronous acquisition system. They typically only record the trigger signal's issuance time (t_trigger), without synchronously acquiring the real-time position of the encoder, the actual exposure level output from the camera's ExposureActive port, and the image output timestamp. This makes it impossible to obtain real physical quantities such as the exposure start and end times (t_exposure), the trigger instant coordinate (x_trigger), the exposure interval coordinates (x_exposure), and the corresponding imaging coordinates (x_image). Synchronization errors can only be estimated based on theoretical timing, resulting in significant deviations between the test results and actual production line conditions. Second, existing devices use motion initiation as the trigger reference, without setting a step for matching encoder coordinates with preset points before triggering. This contradicts the packaging and testing equipment's process of "running to a specified coordinate before triggering exposure." Dynamic displacement, motion blur, and dynamic MTF are difficult to accurately reflect, limiting the reference value of the test data. Abnormal data lacks a unified hardware time base latch. Existing solutions mainly rely on host computer software to cache images. When frame drops, timing errors, or image shifts occur, it is impossible to synchronously latch frame IDs, encoder coordinates, trigger timing, exposure feedback, light source parameters, and the camera's original configuration under a unified hardware time base. Software caching suffers from latency and packet loss, making it easy to lose original abnormal operating condition data, and the root cause of performance degradation is difficult to pinpoint. Performance quantification is limited. Existing detection methods generally only count two basic parameters: frame rate and frame drop rate. They have not established an integrated detection process covering trigger delay, latency jitter, exposure position error, dynamic image displacement, motion blur length, dynamic MTF, and other indicators, making it difficult to comprehensively measure the camera's overall imaging capabilities under high-speed shooting conditions.

[0003] In summary, existing aerial photography testing devices have limitations in terms of synchronous acquisition methods, triggering benchmarks, abnormal data retention, and evaluation dimensions, making it difficult to meet the testing requirements of semiconductor packaging and testing equipment for camera aerial photography performance. Summary of the Invention

[0004] The main objective of this invention is to provide a dynamic error identification method and device for encoder position latching and exposure retrieval, aiming to solve the problems of existing aerial photography detection relying on theoretical timing calculations, large deviations between the results and actual working conditions, easy loss of abnormal data, and difficulty in identifying errors.

[0005] To achieve the above objectives, the present invention provides a dynamic error identification method for encoder position latching and exposure retrieval, comprising the following steps:

[0006] Enter the coordinates of the preset points, the preset number of cycles, and the acceptable thresholds for various errors, and start timing with the same time base;

[0007] The encoder receives position pulses output in real time, converts the position pulses into encoder coordinates, and continuously compares the encoder coordinates with the coordinates of the preset point.

[0008] When the encoder coordinates match the coordinates of the preset point, a trigger signal is output to the camera, and the trigger time and the trigger position corresponding to the trigger time are latched in the same time base.

[0009] The camera outputs an effective exposure signal, and based on the level transition edge of the effective exposure signal, the exposure start time and exposure end time are recorded under the same time base.

[0010] From the start time of the exposure to the end time of the exposure, the position pulses output by the encoder are continuously latched to calculate the encoder coordinates within the exposure range;

[0011] The trigger exposure delay is obtained based on the difference between the trigger time and the exposure start time, and the exposure position error is obtained based on the difference between the encoder coordinates within the exposure range and the coordinates of the preset point.

[0012] Repeat the above comparison, triggering, retrieval, calculation and latching process a preset number of cycles to obtain a number of trigger exposure delays and a number of exposure position errors. Calculate the average value of the number of trigger exposure delays as the final trigger exposure delay, calculate the average value of the absolute values ​​of the number of exposure position errors as the final exposure position error, and calculate the standard deviation of the number of trigger exposure delays as the exposure delay jitter.

[0013] The final trigger exposure delay, the final exposure position error, and the exposure delay jitter are compared with their respective qualified thresholds to obtain and store the camera's error identification results.

[0014] Furthermore, the step of recording the coordinates of the preset point and the acceptable thresholds for each error, and starting timing with the same time base, includes:

[0015] The motion speed, acceleration, and preset number of cycles are recorded. The motion speed and acceleration are used to control the movement of the moving parts and drive the encoder to generate the position pulses. The preset number of cycles is the number of times the comparison, triggering, retrieval, calculation, and latching processes are repeated.

[0016] The output path for the trigger signal, the recovery path for the effective exposure signal, and the receiving path for the position pulse;

[0017] The same time base is cleared to zero, the previously latched trigger time, trigger position, exposure start time, exposure end time and encoder coordinates are cleared, and the moving part where the encoder is located is reset to the initial position.

[0018] Further, the steps of receiving position pulses output by the encoder in real time, converting the position pulses into encoder coordinates, and continuously comparing the encoder coordinates with the coordinates of the preset point include:

[0019] The position pulses are counted one by one, and the encoder coordinates are obtained by accumulating the count values. The position pulses are micrometer-level position pulses.

[0020] Continuously calculate the coordinate difference between the encoder coordinates and the coordinates of the preset point;

[0021] When the coordinate difference falls within a preset matching range, it is determined that the encoder coordinates match the coordinates of the preset point.

[0022] Furthermore, the step of outputting a trigger signal to the camera when the encoder coordinates match the coordinates of the preset point, and simultaneously latching the trigger time and the trigger position corresponding to the trigger time under the same time base, includes:

[0023] The trigger signal is output to the camera in the form of a TTL trigger pulse;

[0024] At the same time as the TTL trigger pulse is output, the trigger time is recorded under the same time base;

[0025] The position pulse output by the encoder is latched at the trigger time and converted to obtain the trigger position, which is the encoder coordinate corresponding to the trigger time.

[0026] Further, the step of sampling the valid exposure signal output by the camera and recording the exposure start time and exposure end time under the same time base according to the level transition edge of the valid exposure signal includes:

[0027] When the exposure valid signal has a rising edge, the exposure start time is recorded under the same time base;

[0028] When the exposure valid signal has a falling edge, the exposure end time is recorded under the same time base;

[0029] The exposure valid signal remains valid from the rising edge to the falling edge, and the actual exposure duration is obtained from the difference between the exposure end time and the exposure start time.

[0030] Further, the step of continuously latching the position pulses output by the encoder from the start time of exposure to the end time of exposure, and calculating the encoder coordinates within the exposure interval, includes:

[0031] Starting from the exposure start time, the position pulses are counted one by one and converted into encoder coordinates. By the exposure end time, several encoder coordinates within the exposure interval are obtained.

[0032] The average value of several encoder coordinates within the exposure range is taken to obtain the average coordinate of the exposure range, and the average coordinate of the exposure range is used as the encoder coordinate of the exposure range.

[0033] Further, the steps of obtaining the trigger exposure delay based on the difference between the trigger time and the exposure start time, and obtaining the exposure position error based on the difference between the encoder coordinates within the exposure interval and the coordinates of the preset point, include:

[0034] The trigger exposure delay is obtained by subtracting the trigger time from the exposure start time, where the trigger exposure delay is the time from the output of the trigger signal to the exposure start time.

[0035] The exposure position error is obtained by subtracting the coordinates of the preset point from the encoder coordinates within the exposure range. The exposure position error is positive or negative, respectively, indicating that the encoder coordinates within the exposure range are ahead or behind the coordinates of the preset point. The absolute value of the exposure position error is used as the error magnitude.

[0036] Further, the step of repeating the above comparison, triggering, retrieval, calculation, and latching process a preset number of cycles to obtain a number of trigger exposure delays, and calculating the standard deviation of the number of trigger exposure delays as exposure delay jitter, includes:

[0037] Calculate the average value of several trigger exposure delays, where the number of trigger exposure delays is equal to the preset number of cycles;

[0038] Calculate the difference between each trigger exposure delay and the average value, and sum the squared differences to obtain the sum of squares;

[0039] Divide the sum of squares by the preset number of cycles, take the square root of the quotient, and obtain the standard deviation. Use the standard deviation as the exposure delay jitter.

[0040] Further, the step of comparing the final triggered exposure delay, the final exposure position error, and the exposure delay jitter with their respective qualified thresholds to obtain and store the camera's error identification results includes:

[0041] The final trigger exposure delay, the final exposure position error, and the exposure delay jitter are each compared with their respective qualified thresholds.

[0042] When the final exposure delay, the final exposure position error, and the exposure delay jitter all do not exceed their respective qualified thresholds, the camera is deemed qualified; when any one of the three exceeds its corresponding qualified threshold, the camera is deemed unqualified, and the item that exceeds the threshold is marked.

[0043] The error identification result is associated with and stored with various data obtained in this detection, including the trigger time, the trigger position, the exposure start time, the exposure end time, and the encoder coordinates;

[0044] If any of the final trigger exposure delay, the final exposure position error, or the exposure delay jitter exceeds its corresponding qualified threshold, the trigger time, the trigger position, the exposure start time, the exposure end time, and the encoder coordinates within the exposure interval are latched as an abnormal data packet and stored under the same time base.

[0045] The present invention also provides a dynamic error identification device for encoder position latching and exposure retrieval, comprising:

[0046] The parameter configuration module is used to input the coordinates of preset points, the preset number of cycles, and the qualified thresholds for various errors, and to start timing with the same time base;

[0047] The coordinate conversion module is used to receive the position pulses output by the encoder in real time, convert the position pulses into encoder coordinates, and continuously compare the encoder coordinates with the coordinates of the preset point.

[0048] The trigger latch module is used to output a trigger signal to the camera when the encoder coordinates match the coordinates of the preset point, and simultaneously latch the trigger time and the trigger position corresponding to the trigger time under the same time base.

[0049] The exposure recovery module is used to recover the valid exposure signal output by the camera, and record the exposure start time and exposure end time under the same time base according to the level transition edge of the valid exposure signal;

[0050] The position latching module is used to continuously latch the position pulses output by the encoder from the start time of the exposure to the end time of the exposure, and calculate the encoder coordinates within the exposure range.

[0051] The error calculation module is used to obtain the trigger exposure delay based on the difference between the trigger time and the exposure start time, and to obtain the exposure position error based on the difference between the encoder coordinates within the exposure interval and the coordinates of the preset point.

[0052] The jitter calculation module is used to repeat the above comparison, triggering, retrieval, calculation and latching process according to a preset number of cycles to obtain a number of trigger exposure delays and a number of exposure position errors. The average value of the number of trigger exposure delays is calculated as the final trigger exposure delay. The average value of the absolute values ​​of the number of exposure position errors is calculated as the final exposure position error. The standard deviation of the number of trigger exposure delays is calculated as the exposure delay jitter.

[0053] The determination and storage module is used to compare the final trigger exposure delay, the final exposure position error, and the exposure delay jitter with the corresponding qualified thresholds to obtain and store the error identification results of the camera.

[0054] The present invention provides a dynamic error identification method and apparatus for encoder position latching and exposure retrieval, which has the following beneficial effects:

[0055] This invention establishes a closed-loop detection process that uses point coordinate matching triggering and synchronously collects the coordinates of trigger time, trigger position, exposure start time, exposure end time, and exposure interval. It abandons the traditional open-loop detection logic that only issues trigger commands. Based on the raw data of the camera's actual exposure and the slider's real-time position, it calculates dynamic errors such as trigger exposure delay and exposure position error, significantly improving the accuracy of the flying camera synchronization performance measurement. The detection results can be directly compared with the actual flying camera conditions in semiconductor production lines. The standardized hardware point triggering steps completely replicate the flying camera process with specified coordinates for die bonding and wire bonding equipment. It can accurately detect exposure position offset and positioning drift defects that cannot be identified by static detection and motion-start triggering processes, reducing the risk of chip scrapping after camera installation. The invention also features a unique synchronous snapshot latching process with the same source hardware time base. It synchronously retains the complete set of original working condition data the moment an anomaly occurs, without relying on the host computer software cache. This solves the industry's pain points of abnormal data loss and inability to trace faults back to their source from the process level.

[0056] An integrated quantitative identification and calculation process for three core indicators—trigger exposure delay, exposure position error, and exposure delay jitter—is established to form a standardized industrial camera aerial shooting synchronization performance evaluation system. This unifies the testing and judgment standards and eliminates subjective errors caused by manual evaluation. The entire testing process is highly automated, requiring only one tooling assembly and parameter input at the beginning. Subsequent triggering, acquisition, latching, calculation, and archiving are all executed automatically, significantly reducing the labor costs of batch camera factory testing and ensuring strong testing consistency. Attached Figure Description

[0057] Figure 1 This is a flowchart illustrating a dynamic error identification method for encoder position latching and exposure retrieval in one embodiment of the present invention.

[0058] Figure 2 This is a structural block diagram of a dynamic error identification device for encoder position latching and exposure retrieval in one embodiment of the present invention.

[0059] Figure 3 This is a timing relationship diagram between the trigger signal and the effective exposure signal in one embodiment of the present invention;

[0060] Figure 4 This is a schematic diagram of the physical device in one embodiment of the present invention.

[0061] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0063] Reference Figure 1 This is a flowchart illustrating a dynamic error identification method for encoder position latching and exposure retrieval proposed in this invention, comprising the following steps:

[0064] S1, enter the coordinates of the preset points and the acceptable thresholds for various errors, and start timing with the same time base.

[0065] Reference Figure 4 A schematic diagram of the physical device in one embodiment of the present invention, wherein 1 is a high-speed linear motion platform, 11 is a grating encoder, 2 is a dynamic target, 3 is a camera fixture to be tested, 4 is an industrial camera to be tested, 5 is an electrical control box, 51 is a timing synchronous acquisition latch unit, 6 is a host computer analysis module, and 7 is a test platform base.

[0066] Specifically, before testing begins, the industrial camera under test is fixed to the cantilever above the test bench base using a camera under test fixture. The camera lens is positioned vertically downwards, directly facing the dynamic target mounted on the high-speed linear motion platform. The lens working distance, aperture, and focal length are adjusted and fixed to ensure clear image of the target. The high-speed linear motion platform is equipped with a grating encoder, which moves with the moving parts and outputs micron-level position pulses. Then, the wiring is completed. The trigger signal output of the timing synchronous acquisition latch unit is connected to the trigger input port of the industrial camera under test via a trigger line. The trigger signal uses TTL level. The ExposureActive output port of the industrial camera under test is connected to the exposure valid signal acquisition terminal of the timing synchronous acquisition latch unit via an Exposure exposure recovery line. The output of the grating encoder is connected to the position of the timing synchronous acquisition latch unit via a grating encoder line. At the pulse receiver, the timing synchronization acquisition and latching unit is based on the main control FPGA. The main control FPGA provides a globally unified time base and connects to the host computer analysis module via a communication interface. Then, the host computer analysis module inputs the coordinates of the preset point, the movement speed, the acceleration, the preset number of cycles, and the qualified thresholds for various errors. In this embodiment, the coordinates of the preset point are 100.000mm, the movement speed is 2m / s, the acceleration is 20m / s², the preset number of cycles is 50, the qualified threshold for trigger exposure delay is 50μs, the qualified threshold for exposure position error is 5μm, and the qualified threshold for exposure delay jitter is 10μs. At the same time as input, the main control FPGA clears the same time base, clears the previously latched trigger time, trigger position, exposure start time, exposure end time, and encoder coordinates, and resets the moving part to the initial position. After the parameters are checked and saved, timing starts with the same time base.

[0067] S2, receive the position pulses output by the encoder in real time, convert the position pulses into encoder coordinates, and continuously compare the encoder coordinates with the coordinates of the preset point.

[0068] Specifically, the high-speed linear motion platform operates according to the recorded motion speed and acceleration. The grating encoder moves with the platform and continuously outputs micron-level position pulses. After the position pulses are sent to the timing synchronization acquisition and latching unit via the grating encoder circuit, the counter inside the main control FPGA counts the position pulses one by one along the motion direction. The count value is multiplied by the displacement equivalent corresponding to a single position pulse, and the results are accumulated to obtain the real-time encoder coordinates. In this embodiment, the displacement equivalent corresponding to a single position pulse is taken as 1 μm. The count value increases or decreases accordingly when the motion direction changes. While obtaining the encoder coordinates, the main control FPGA continuously subtracts from the encoder coordinates... The coordinates of the preset point are used to obtain a signed coordinate difference value. A negative coordinate difference value indicates that the encoder coordinates have not yet reached the preset point, while a positive value indicates that the preset point has been exceeded. The main control FPGA continuously compares the absolute value of the coordinate difference value with a preset matching interval. In this embodiment, the preset matching interval is ±2μm. When the absolute value of the coordinate difference value is not greater than 2μm, that is, when the coordinate difference value falls into the preset matching interval, it is determined that the encoder coordinates and the coordinates of the preset point are matched, and the next triggering process is immediately initiated. If the coordinate difference value does not fall into the preset matching interval, the counter continues to count and repeats the above conversion and comparison until the two are matched.

[0069] S3, when the encoder coordinates match the coordinates of the preset point, output a trigger signal to the camera, and simultaneously latch the trigger time and the trigger position corresponding to the trigger time under the same time base.

[0070] Specifically, in S2, during the same clock cycle when the encoder coordinates match the coordinates of the preset point, the main control FPGA directly outputs a TTL trigger pulse to the trigger input port of the industrial camera under test via the trigger line, without going through the host computer analysis module. In this embodiment, the high-level width of the TTL trigger pulse is 10μs and the high-level voltage is 5V. At the same moment as the TTL trigger pulse is output, the main control FPGA latches the current timing value under the same globally unified time base as the trigger time for this aerial shooting, and at the same time reads the counter's count value at that moment, multiplies the count value by the displacement equivalent to convert it into coordinates, and uses it as the trigger position corresponding to the trigger time. Thus, the output of the TTL trigger pulse, the recording of the trigger time, and the latching of the trigger position are completed within the same clock cycle, avoiding timing deviations caused by the sequential actions. After the trigger time and trigger position are latched, they are temporarily stored in the timing synchronization acquisition latch unit for use in the calculation stage, and then the process of recovering the effective exposure signal begins.

[0071] S4, retrieve the valid exposure signal output by the camera, and record the exposure start time and exposure end time under the same time base according to the level transition edge of the valid exposure signal.

[0072] Specifically, such as Figure 3 As shown, Figure 3 This embodiment illustrates the timing relationship between the position pulse, trigger signal, and effective exposure signal under the same time base, with the horizontal axis representing time. The grating encoder continuously outputs micron-level position pulses along with the high-speed linear motion platform. Figure 3 The signal is represented by a continuous square wave. When the encoder coordinates match the coordinates of the preset point, the timing synchronization acquisition latch unit outputs a TTL trigger pulse to the industrial camera under test at the trigger time. In this embodiment, the trigger time is recorded as 0μs, and the pulse width of the TTL trigger pulse is 10μs. The timing synchronization acquisition latch unit re-acquires the exposure valid signal output by the industrial camera under test. The exposure valid signal first maintains an invalid level, and then a rising edge appears. The timing synchronization acquisition latch unit records the exposure start time at the time corresponding to the rising edge. In this embodiment, the exposure start time is 38μs. The exposure valid signal maintains an valid level from the rising edge until a falling edge appears, at which point it returns to an invalid level. The timing synchronization acquisition latch unit records the exposure end time at the time corresponding to the falling edge. In this embodiment, the exposure end time is 88μs. Subtracting the exposure start time from the exposure end time yields the actual exposure duration of 50μs, which is consistent with the recorded exposure duration setting. The exposure start time, exposure end time, and actual exposure duration are all latched under the same time base for subsequent error calculation.

[0073] S5. From the start time of the exposure to the end time of the exposure, the position pulse output by the encoder is continuously latched to calculate the encoder coordinates within the exposure range.

[0074] Specifically, when the main control FPGA detects the rising edge of the valid exposure signal and the start time of latching the exposure, it begins to continuously count the position pulses sent by the grating encoder through the grating encoder line. Within the exposure interval, each received position pulse is multiplied by the displacement equivalent to convert it into an encoder coordinate, which is then temporarily stored sequentially. In this embodiment, the displacement equivalent is 1 μm. Combined with a movement speed of 2 m / s and an actual exposure time of 50 μs, approximately 100 encoder coordinates can be obtained within a single exposure interval. When the main control FPGA detects the falling edge of the valid exposure signal and the end time of latching the exposure, it immediately stops counting the position pulses and converting the coordinates, thus ensuring that the latching interval of the position pulses coincides with the start and end of the camera's actual exposure interval. Subsequently, the main control FPGA sums the several encoder coordinates obtained within the exposure interval and divides by the number of coordinates to obtain the average coordinates of the exposure interval. In this embodiment, the average value of approximately 100 encoder coordinates is the average coordinates of the exposure interval, which is used as the encoder coordinates within the exposure interval for calculating the exposure position error.

[0075] S6, the trigger exposure delay is obtained based on the difference between the trigger time and the exposure start time, and the exposure position error is obtained based on the difference between the encoder coordinates within the exposure interval and the coordinates of the preset point.

[0076] Specifically, after the triggering and acquisition of a single aerial photograph are completed, the main control FPGA reads out the temporarily stored trigger time, exposure start time, and encoder coordinates within the exposure range expressed as the average coordinates of the exposure range. First, the trigger time is subtracted from the exposure start time to obtain the trigger exposure delay from the output TTL trigger pulse to the start of exposure. In this embodiment, the trigger exposure delay is measured to be 38μs. Then, the coordinates of the preset point are subtracted from the average coordinates of the exposure range to obtain the exposure position error. The absolute value of the exposure position error is taken as the error magnitude. In this embodiment, the average coordinates of the exposure range are 100.003mm, and the coordinates of the preset point are 100.000mm. The resulting exposure position error is +3μm, and the error magnitude is 3μm. A positive exposure position error indicates that the encoder coordinates within the exposure range are ahead of the preset point, and a negative one indicates that they are behind the preset point. The trigger exposure delay and exposure position error are temporarily stored along with all the data from this aerial photograph and are compared and judged together after all loops are completed.

[0077] S7, repeat the above comparison, triggering, retrieval, calculation and latching process according to the preset number of cycles to obtain a number of triggering exposure delays, calculate the standard deviation of the number of triggering exposure delays as the exposure delay jitter;

[0078] Specifically, after completing steps S2 to S6 in a single aerial photography session, the high-speed linear motion platform resets to its initial position and then restarts according to the recorded motion speed and acceleration, repeatedly executing coordinate comparison, trigger output, exposure recovery, error calculation, and various latching processes. Each aerial photography session yields a trigger exposure delay and a signed exposure position error. In this embodiment, the process is repeated 50 times according to a preset loop count, resulting in 50 trigger exposure delays and 50 exposure position errors. After all loops are completed, the main control FPGA first sums the 50 trigger exposure delays and divides them by 50 to obtain the average trigger exposure delay. In this embodiment, the average value is 40 μs, and this average value is used as the final value. The system triggers an exposure delay; then, it calculates the difference between each trigger exposure delay and the average value, squares each difference, sums the squares, divides the sum of squares by 50, and takes the square root of the quotient to obtain the standard deviation of the trigger exposure delay. In this embodiment, the standard deviation is 8 μs, and this standard deviation is used as the exposure delay jitter. Simultaneously, the main control FPGA takes the absolute values ​​of 50 exposure position errors, sums them, and divides them by 50 to obtain the average value of the absolute values ​​of the exposure position errors. In this embodiment, this average value is 3 μm, and this average value is used as the final exposure position error. The final trigger exposure delay, the final exposure position error, and the exposure delay jitter are temporarily stored together for final comparison and judgment.

[0079] S8, compare the final trigger exposure delay, the final exposure position error, and the exposure delay jitter with the corresponding qualified thresholds to obtain and store the camera's error identification results.

[0080] Specifically, after all cycles are completed, the main control FPGA compares the temporarily stored final trigger exposure delay, final exposure position error, and exposure delay jitter with the qualified error thresholds entered via the host computer one by one. In this embodiment, the final trigger exposure delay is 40 μs, the final exposure position error is 3 μm, and the exposure delay jitter is 8 μs, while the corresponding qualified thresholds for the three items are 50 μs, 5 μm, and 10 μs respectively. After comparison, the final trigger exposure delay of 40 μs is no greater than 50 μs, the final exposure position error of 3 μm is no greater than 5 μm, and the exposure delay jitter of 8 μs is no greater than 10 μs. All three items do not exceed their corresponding qualified thresholds, so the industrial camera under test is determined to be qualified. If any one of the three items exceeds its corresponding qualified threshold, the camera is determined to be unqualified, and the exceeding item is marked. After the determination is completed, the error identification result is stored in association with various data obtained from this detection. The various data include trigger time, trigger position, exposure start time, exposure end time, and encoder coordinates, which can be read and exported after storage. When any one of the final trigger exposure delay, the final exposure position error, or the exposure delay jitter exceeds its corresponding qualified threshold, the main control FPGA latches the current trigger time, trigger position, exposure start time, exposure end time, and encoder coordinates within the exposure interval as an abnormal data packet under the same time base, and locally stores the abnormal data packet in the timing synchronization acquisition and latch unit without being relayed by the analysis module of the host computer throughout the process. The abnormal data packet can be exported separately for fault tracing of unqualified cameras.

[0081] Referring to Figure 2 , it is a structural block diagram of a dynamic error identification device for encoder position latching and exposure re-acquisition according to an embodiment of the present invention, including:

[0082] a parameter configuration module, configured to enter coordinates of preset points, preset cycle times, and qualified thresholds for various errors, and start timing under the same time base;

[0083] a coordinate conversion module, configured to receive position pulses output by an encoder in real time, convert the position pulses into encoder coordinates, and continuously compare the encoder coordinates with the coordinates of the preset points;

[0084] a trigger latch module, configured to output a trigger signal to the camera when the encoder coordinate matches the coordinate of the preset point, and simultaneously latch the current trigger time and the trigger position corresponding to the trigger time under the same time base;

[0085] an exposure re-acquisition module, configured to re-acquire an exposure valid signal output by the camera, and record an exposure start time and an exposure end time under the same time base according to level transition edges of the exposure valid signal;

[0086] The position latching module is used to continuously latch the position pulses output by the encoder from the start time of the exposure to the end time of the exposure, and calculate the encoder coordinates within the exposure range.

[0087] The error calculation module is used to obtain the trigger exposure delay based on the difference between the trigger time and the exposure start time, and to obtain the exposure position error based on the difference between the encoder coordinates within the exposure interval and the coordinates of the preset point.

[0088] The jitter calculation module is used to repeat the above comparison, triggering, retrieval, calculation and latching process according to a preset number of cycles to obtain a number of trigger exposure delays and a number of exposure position errors. The average value of the number of trigger exposure delays is calculated as the final trigger exposure delay. The average value of the absolute values ​​of the number of exposure position errors is calculated as the final exposure position error. The standard deviation of the number of trigger exposure delays is calculated as the exposure delay jitter.

[0089] The determination and storage module is used to compare the final trigger exposure delay, the final exposure position error, and the exposure delay jitter with the corresponding qualified thresholds to obtain and store the error identification results of the camera.

[0090] For the specific implementation of each module in the above device example, please refer to the above method embodiments, which will not be repeated here.

[0091] In summary, this invention relates to a dynamic error identification method and device for encoder position latching and exposure retrieval, belonging to the field of industrial camera imaging performance testing technology. This invention inputs preset point coordinates, preset number of cycles, and a pass threshold, using the same time base; receives encoder position pulses and converts them into coordinates, comparing them with the preset point coordinates; upon matching, outputs a trigger signal to the camera, latching the trigger time and trigger position; retrieval of valid camera exposure signals, recording the start and end times of exposure according to level transitions, continuously latching position pulses and converting coordinates within the exposure interval; from the above time and coordinate differences, the trigger exposure delay and exposure position error are obtained, repeated according to the number of cycles, with the average of each trigger exposure delay as the final trigger exposure delay, the average of the absolute values ​​of each exposure position error as the final exposure position error, and the standard deviation of each trigger exposure delay as the exposure delay jitter; these three results are compared with the pass threshold to obtain and store the camera error identification result.

[0092] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.

[0093] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for dynamic error identification in encoder position latching and exposure retrieval, characterized in that, Includes the following steps: Enter the coordinates of the preset points, the preset number of cycles, and the acceptable thresholds for various errors, and start timing with the same time base; The encoder receives position pulses output in real time, converts the position pulses into encoder coordinates, and continuously compares the encoder coordinates with the coordinates of the preset point. When the encoder coordinates match the coordinates of the preset point, a trigger signal is output to the camera, and the trigger time and the trigger position corresponding to the trigger time are latched in the same time base. The camera outputs an effective exposure signal, and based on the level transition edge of the effective exposure signal, the exposure start time and exposure end time are recorded under the same time base. From the start time of the exposure to the end time of the exposure, the position pulses output by the encoder are continuously latched to calculate the encoder coordinates within the exposure range; The trigger exposure delay is obtained based on the difference between the trigger time and the exposure start time, and the exposure position error is obtained based on the difference between the encoder coordinates within the exposure range and the coordinates of the preset point. Repeat the above comparison, triggering, retrieval, calculation and latching process a preset number of cycles to obtain a number of trigger exposure delays and a number of exposure position errors. Calculate the average value of the number of trigger exposure delays as the final trigger exposure delay, calculate the average value of the absolute values ​​of the number of exposure position errors as the final exposure position error, and calculate the standard deviation of the number of trigger exposure delays as the exposure delay jitter. The final trigger exposure delay, the final exposure position error, and the exposure delay jitter are compared with their respective qualified thresholds to obtain and store the camera's error identification results.

2. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The steps of inputting the coordinates of the preset points and the acceptable thresholds for each error, and starting timing with the same time base, include: The motion speed, acceleration, and preset number of cycles are recorded. The motion speed and acceleration are used to control the movement of the moving parts and drive the encoder to generate the position pulses. The preset number of cycles is the number of times the comparison, triggering, retrieval, calculation, and latching processes are repeated. The output path for the trigger signal, the recovery path for the effective exposure signal, and the receiving path for the position pulse; The same time base is cleared to zero, the previously latched trigger time, trigger position, exposure start time, exposure end time and encoder coordinates are cleared, and the moving part where the encoder is located is reset to the initial position.

3. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The steps of receiving position pulses output by the encoder in real time, converting the position pulses into encoder coordinates, and continuously comparing the encoder coordinates with the coordinates of the preset point include: The position pulses are counted one by one, and the encoder coordinates are obtained by accumulating the count values. The position pulses are micrometer-level position pulses. Continuously calculate the coordinate difference between the encoder coordinates and the coordinates of the preset point; When the coordinate difference falls within a preset matching range, it is determined that the encoder coordinates match the coordinates of the preset point.

4. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The step of outputting a trigger signal to the camera when the encoder coordinates match the coordinates of the preset point, and simultaneously latching the trigger time and the trigger position corresponding to the trigger time in the same time base, includes: The trigger signal is output to the camera in the form of a TTL trigger pulse; At the same time as the TTL trigger pulse is output, the trigger time is recorded under the same time base; The position pulse output by the encoder is latched at the trigger time and converted to obtain the trigger position, which is the encoder coordinate corresponding to the trigger time.

5. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The step of sampling the valid exposure signal output by the camera and recording the exposure start time and exposure end time under the same time base according to the level transition edge of the valid exposure signal includes: When the exposure valid signal has a rising edge, the exposure start time is recorded under the same time base; When the exposure valid signal has a falling edge, the exposure end time is recorded under the same time base; The exposure valid signal remains valid from the rising edge to the falling edge, and the actual exposure duration is obtained from the difference between the exposure end time and the exposure start time.

6. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The step of continuously latching the position pulses output by the encoder from the start time of exposure to the end time of exposure, and calculating the encoder coordinates within the exposure interval, includes: Starting from the exposure start time, the position pulses are counted one by one and converted into encoder coordinates. By the exposure end time, several encoder coordinates within the exposure interval are obtained. The average value of several encoder coordinates within the exposure range is taken to obtain the average coordinate of the exposure range, and the average coordinate of the exposure range is used as the encoder coordinate of the exposure range.

7. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The steps of obtaining the trigger exposure delay based on the difference between the trigger time and the exposure start time, and obtaining the exposure position error based on the difference between the encoder coordinates within the exposure interval and the coordinates of the preset point, include: The trigger exposure delay is obtained by subtracting the trigger time from the exposure start time, where the trigger exposure delay is the time from the output of the trigger signal to the exposure start time. The exposure position error is obtained by subtracting the coordinates of the preset point from the encoder coordinates within the exposure range. The exposure position error is positive or negative, respectively, indicating that the encoder coordinates within the exposure range are ahead or behind the coordinates of the preset point. The absolute value of the exposure position error is used as the error magnitude.

8. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The step of repeating the above comparison, triggering, retrieval, calculation, and latching process a preset number of cycles to obtain a number of trigger exposure delays, and calculating the standard deviation of the number of trigger exposure delays as exposure delay jitter, includes: Calculate the average value of several trigger exposure delays, where the number of trigger exposure delays is equal to the preset number of cycles; Calculate the difference between each trigger exposure delay and the average value, and sum the squared differences to obtain the sum of squares; Divide the sum of squares by the preset number of cycles, take the square root of the quotient, and obtain the standard deviation. Use the standard deviation as the exposure delay jitter.

9. The dynamic error identification method for encoder position latching and exposure retrieval according to claim 1, characterized in that, The step of comparing the final triggered exposure delay, the final exposure position error, and the exposure delay jitter with their respective qualified thresholds to obtain and store the camera's error identification results includes: The final trigger exposure delay, the final exposure position error, and the exposure delay jitter are each compared with their respective qualified thresholds. When the final exposure delay, the final exposure position error, and the exposure delay jitter all do not exceed their respective qualified thresholds, the camera is deemed qualified; when any one of the three exceeds its corresponding qualified threshold, the camera is deemed unqualified, and the item that exceeds the threshold is marked. The error identification result is associated with and stored with various data obtained in this detection, including the trigger time, the trigger position, the exposure start time, the exposure end time, and the encoder coordinates; If any of the final trigger exposure delay, the final exposure position error, or the exposure delay jitter exceeds its corresponding qualified threshold, the trigger time, the trigger position, the exposure start time, the exposure end time, and the encoder coordinates within the exposure interval are latched as an abnormal data packet and stored under the same time base.

10. A dynamic error identification device for encoder position latching and exposure retrieval, characterized in that, include: The parameter configuration module is used to input the coordinates of preset points, the preset number of cycles, and the qualified thresholds for various errors, and to start timing with the same time base; The coordinate conversion module is used to receive the position pulses output by the encoder in real time, convert the position pulses into encoder coordinates, and continuously compare the encoder coordinates with the coordinates of the preset point. The trigger latch module is used to output a trigger signal to the camera when the encoder coordinates match the coordinates of the preset point, and simultaneously latch the trigger time and the trigger position corresponding to the trigger time under the same time base. The exposure recovery module is used to recover the valid exposure signal output by the camera, and record the exposure start time and exposure end time under the same time base according to the level transition edge of the valid exposure signal; The position latching module is used to continuously latch the position pulses output by the encoder from the start time of the exposure to the end time of the exposure, and calculate the encoder coordinates within the exposure range. The error calculation module is used to obtain the trigger exposure delay based on the difference between the trigger time and the exposure start time, and to obtain the exposure position error based on the difference between the encoder coordinates within the exposure interval and the coordinates of the preset point. The jitter calculation module is used to repeat the above comparison, triggering, retrieval, calculation and latching process a preset number of cycles to obtain a number of trigger exposure delays and a number of exposure position errors. The average value of the number of trigger exposure delays is calculated as the final trigger exposure delay. The average value of the absolute values ​​of the number of exposure position errors is calculated as the final exposure position error. The standard deviation of the number of trigger exposure delays is calculated as the exposure delay jitter. The determination and storage module is used to compare the final trigger exposure delay, the final exposure position error, and the exposure delay jitter with the corresponding qualified thresholds to obtain and store the error identification results of the camera.