Target wheel switching device and target switching method thereof
By combining intelligent direction decision-making and rotation amount dictionary with photoelectric gate-assisted reset mechanism, the problem of low target wheel switching efficiency in thermal imager testing is solved, and the shortest path planning and rapid and accurate control of the target wheel are realized, thereby improving testing efficiency and response speed.
Patent Information
- Application Number
- CN202511035531.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-11-11
AI Technical Summary
In existing thermal imager performance testing, the target wheel switching device suffers from low switching efficiency and path redundancy. In particular, when switching between adjacent targets, it needs to rotate an extra turn, resulting in a bottleneck in testing efficiency and increased system downtime.
By combining intelligent direction decision-making and rotation amount dictionary with photoelectric gate-assisted reset mechanism, the target distance and rotation direction are dynamically calculated, and the target switching path is accurately located using the pre-stored rotation amount dictionary, so as to realize the shortest path planning and rapid control of the target wheel.
It significantly improves the overall efficiency and system response speed of thermal imaging testing, reduces system idling energy consumption, and meets the needs of high-frequency, continuous performance testing.
Smart Images

Figure CN120927137A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of thermal imaging testing technology, and in particular to a target wheel switching device and a target switching method thereof. Background Technology
[0002] In thermal imager performance testing, target wheel switching devices often employ a design combining worm gear transmission and photoelectric gate detection. This design offers advantages such as simple mechanical structure and easy implementation of control circuits and logic. However, existing devices generally use unidirectional rotation control logic, resulting in low target wheel switching efficiency, particularly when switching between adjacent targets, where significant drawbacks exist.
[0003] 1. Redundancy in switching paths: When switching to an adjacent target, the target wheel may rotate an extra full circle in a single direction (e.g., switching from target 1 to target 2 requires a 405° rotation instead of 45°), resulting in unnecessary overlapping of rotation paths and significantly increasing switching time.
[0004] 2. Testing efficiency bottleneck: In test scenarios that require frequent switching of adjacent targets (such as multi-target temperature field comparison analysis), the system downtime waiting time increases significantly, which seriously restricts the continuity and efficiency of the testing process.
[0005] This problem is particularly prominent in scenarios that require high-precision and high-frequency testing. It is urgent to improve the control algorithm to realize bidirectional rotation path planning of the target wheel and the shortest path priority strategy, thereby shortening the switching time, reducing the system idling energy consumption, and ultimately improving the overall efficiency of thermal imager performance testing. Summary of the Invention
[0006] To address the problems existing in the prior art, the present invention provides a target wheel switching device, comprising:
[0007] The target wheel has multiple targets arranged circumferentially along its outer ring, and the inner ring of the target wheel is provided with baffles.
[0008] A target wheel bracket, wherein the target wheel is rotatably mounted on the target wheel bracket, and the target wheel bracket is also provided with multiple photoelectric gates that can be blocked by the baffle;
[0009] The controller receives the target target input by the user, determines the rotation direction based on the current target, the target target, and the total number of targets, and then selects the corresponding rotation amount dictionary based on the rotation direction. When the current target and the target target are in the same photoelectric gate sub-dictionary in the rotation amount dictionary, the controller determines the target rotation amount from the current target to the target target based on the photoelectric gate sub-dictionary. When the current target and the target target are not in the same photoelectric gate dictionary, the controller resets the target wheel position based on the photoelectric gate and the baffle, determines the target rotation amount from the current target to the target target based on the photoelectric gate dictionary, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount to complete the target switching.
[0010] Preferably, the controller includes:
[0011] The direction determination module is used to calculate the target distance between the target input by the user and the current target, and to obtain the rotation direction of the target wheel based on the target distance and the total number of targets;
[0012] The first target switching module, connected to the direction determination module, is used to select a pre-configured rotation amount dictionary according to the rotation direction. When it is determined that the current target and the target target are simultaneously recorded in the same photoelectric sub-dictionary in the rotation amount dictionary, the module queries the photoelectric sub-dictionary for the target rotation amount from the current target to the target target, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount.
[0013] The second target switching module, connected to the direction determination module, is used to select a pre-configured rotation amount dictionary according to the rotation direction. When it is determined that the current target and the target target are not simultaneously recorded in the same photoelectric gate sub-dictionary in the rotation amount dictionary, the angular deviation of the target target recorded in the photoelectric gate dictionary is used as the target rotation amount. Then, the target wheel is controlled to rotate until the photoelectric gate corresponding to the photoelectric gate sub-dictionary of the target target is blocked by the baffle. Then, the target wheel is controlled to rotate according to the rotation direction and the target rotation amount.
[0014] Preferably, each target has a corresponding target number, and the direction determination module includes:
[0015] A distance calculation unit is used to calculate the difference between the target number of the target target and the target number of the current target as the target distance;
[0016] The direction determination unit, connected to the distance calculation unit, is used to determine the rotation direction as clockwise when the target distance is greater than half of the total number of targets, or greater than half of the total number of targets and negative but less than zero, and to determine the rotation direction as counterclockwise when the target distance is not greater than half of the total number of targets, or not greater than half of the total number of targets and negative.
[0017] Preferably, the baffle is located on the line connecting the center of one of the targets and the center of the target wheel.
[0018] Preferably, the photoelectric gate includes at least one photoelectric gate fixed to the top surface, left side and right side of the target wheel bracket, and each photoelectric gate is electrically connected to the controller.
[0019] Preferably, it also includes a photoelectric platform, on which a rotary actuator and the target wheel bracket are fixed. The rotary actuator is electrically connected to the controller and is also drive-connected to the target wheel.
[0020] Preferably, each of the photoelectric gates is located on the rotation trajectory of the baffle when the target wheel rotates.
[0021] The present invention also provides a target switching method for a target wheel switching device, applied to the aforementioned target wheel switching device, comprising:
[0022] Step S1: The controller calculates the target distance between the target input by the user and the current target, and processes the target distance and the total number of targets to obtain the rotation direction of the target wheel;
[0023] Step S2: The controller selects a pre-configured rotation amount dictionary based on the rotation direction and determines whether the current target and the target target are simultaneously recorded in the same photoelectric sub-dictionary in the rotation amount dictionary.
[0024] If so, proceed to step S3;
[0025] If not, proceed to step S4;
[0026] Step S3: The controller queries the optoelectronic sub-dictionary for the target rotation amount from the current target to the target target, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount;
[0027] In step S4, the controller uses the angular deviation of the target recorded in the photoelectric gate dictionary as the target rotation amount, and then controls the target wheel to rotate until the photoelectric gate corresponding to the photoelectric gate dictionary containing the target is blocked by the baffle. Then, the controller controls the target wheel to rotate in the rotation direction and the target rotation amount.
[0028] Preferably, each target has a corresponding target number, and step S1 includes:
[0029] Step S11, the controller calculates the difference between the target number of the target target and the target number of the current target as the target distance;
[0030] Step S12, the controller determines whether the target distance is greater than half of the total number of targets, or a negative value greater than half of the total number of targets but less than zero:
[0031] If so, the direction of rotation is clockwise;
[0032] If not, then the rotation direction is counterclockwise.
[0033] Preferably, the rotation amount dictionary stored in the controller includes a clockwise dictionary and a counterclockwise dictionary. Both the clockwise and counterclockwise dictionaries include multiple photoelectric gate sub-dictionaries corresponding to each of the photoelectric gates. The photoelectric gate sub-dictionaries record the angle deviation between the photoelectric gate and each of the targets associated with it.
[0034] Step S2 includes:
[0035] Step S21: The controller selects either the clockwise dictionary or the counterclockwise dictionary as the rotation amount dictionary according to the rotation direction;
[0036] Step S22: The controller searches the rotation amount dictionary for the photoelectric gate sub-dictionary that records the target target as the target sub-dictionary;
[0037] Step S23, the controller determines whether the target sub-dictionary records the angle deviation of the current target:
[0038] If so, proceed to step S3;
[0039] If not, proceed to step S4.
[0040] The above technical solution has the following advantages or beneficial effects: Through intelligent direction decision-making, precise positioning using a rotation dictionary, and photoelectric gate-assisted reset mechanism, the present invention achieves the shortest path planning and rapid and accurate control of target wheel switching, completely overcoming the shortcomings of low switching efficiency and path redundancy in existing technologies, and significantly improving the overall efficiency and system response speed of thermal imager testing. Attached Figure Description
[0041] Figure 1 A schematic diagram of the structure of a target wheel switching device is shown in a preferred embodiment of the present invention.
[0042] Figure 2 A schematic diagram of the target wheel structure of a target wheel switching device is provided in a preferred embodiment of the present invention.
[0043] Figure 3 A schematic diagram of the structure of a controller for a target wheel switching device is shown in a preferred embodiment of the present invention.
[0044] Figure 4 A flowchart illustrating a target switching method for a target wheel switching device, as described in a preferred embodiment of the present invention.
[0045] Figure 5 In a preferred embodiment of the present invention, a schematic diagram of step S1 of a target switching method for a target wheel switching device is provided. Detailed Implementation
[0046] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. The present invention is not limited to this embodiment; other embodiments that conform to the spirit of the present invention may also fall within the scope of the present invention.
[0047] In a preferred embodiment of the present invention, based on the above-mentioned problems existing in the prior art, a target wheel switching device is provided, such as... Figure 1 As shown, it includes:
[0048] The target wheel 4 has multiple targets arranged around its outer circumference, and the inner circumference of the target wheel 4 has a baffle 7.
[0049] The target wheel bracket 1 and the target wheel 4 are rotatably mounted on the target wheel bracket 1. The target wheel bracket 1 is also equipped with multiple photoelectric gates that can be blocked by baffles.
[0050] Controller 3 is used to receive the target target input by the user, determine the rotation direction based on the current target, the target target, and the total number of targets, and then select the corresponding rotation amount dictionary based on the rotation direction. When the current target and the target target are in the same photoelectric gate sub-dictionary in the rotation amount dictionary, the target rotation amount from the current target to the target target is determined based on the photoelectric gate sub-dictionary. When the current target and the target target are not in the same photoelectric gate dictionary, the target wheel is reset according to the photoelectric gate and the baffle, and the target rotation amount from the current target to the target target is determined based on the photoelectric gate dictionary. Then, the target wheel is controlled to rotate according to the rotation direction and the target rotation amount to complete the target switching.
[0051] In a preferred embodiment of the present invention, such as Figure 3 As shown, controller 3 includes:
[0052] The direction determination module 31 is used to calculate the target distance between the user-input target and the current target, and to obtain the rotation direction of the target wheel based on the target distance and the total number of targets.
[0053] The first target switching module 32 is connected to the direction determination module 31. It is used to select a pre-configured rotation amount dictionary according to the rotation direction. When it is determined that the current target and the target target are recorded in the same photoelectric sub-dictionary in the rotation amount dictionary, the target rotation amount from the current target to the target target is queried in the photoelectric sub-dictionary. Then, the target wheel is controlled to rotate according to the rotation direction and the target rotation amount.
[0054] The second target switching module 33 is connected to the direction determination module 31. It is used to select a pre-configured rotation amount dictionary according to the rotation direction. When it is determined that the current target and the target target are not simultaneously recorded in the same photoelectric gate sub-dictionary in the rotation amount dictionary, the angular deviation of the target target recorded in the photoelectric gate dictionary is used as the target rotation amount. Then, the target wheel is controlled to rotate until the photoelectric gate corresponding to the photoelectric gate sub-dictionary that records the target target is blocked by the baffle. Then, the target wheel is controlled to rotate according to the rotation direction and the target rotation amount.
[0055] In a preferred embodiment of the present invention, such as Figure 3 As shown, each target has a corresponding target number, such as Figure 3 As shown, the direction determination module 31 includes:
[0056] The distance calculation unit 311 is used to calculate the difference between the target number of the target target and the target number of the current target as the target distance;
[0057] The direction determination unit 312 is connected to the distance calculation unit 311. It is used to determine the rotation direction as clockwise when the target distance is greater than half of the total number of targets, or a negative value greater than half of the total number of targets and less than zero, and to determine the rotation direction as counterclockwise when the target distance is not greater than half of the total number of targets, or a negative value not greater than half of the total number of targets.
[0058] In a preferred embodiment of the present invention, the baffle is located on the line connecting the center of one of the targets and the center of the target wheel.
[0059] In a preferred embodiment of the present invention, the photoelectric gate includes at least photoelectric gates fixed on the top surface, left side and right side of the target wheel bracket, and each photoelectric gate is electrically connected to the controller.
[0060] In a preferred embodiment of the present invention, a photoelectric platform is further included. A rotary actuator and a target wheel bracket are fixed on the platform. The rotary actuator is electrically connected to the controller and is also drive-connected to the target wheel.
[0061] In a preferred embodiment of the present invention, each photogate is located on the rotation trajectory of the baffle when the target wheel rotates.
[0062] Specifically, the present invention provides a target wheel switching device and a target switching method thereof, which realizes the function of rapid target switching and overcomes the shortcomings of the prior art.
[0063] The target wheel switching device in this embodiment includes a target wheel bracket, a target wheel, a photoelectric gate, a target wheel rotation actuator, and a controller. It can quickly and accurately switch targets, so that any target can be precisely rotated to the highest point of the target wheel, that is, the center of the corresponding target hole is higher than the center of the target wheel, and the line segment formed with the center of the target wheel is perpendicular to the optical platform.
[0064] The photoelectric platform has a rotating actuator and a target wheel bracket fixed on its surface. The target wheel bracket is used to fix the target wheel, the photoelectric gate, and the target wheel rotating actuator.
[0065] The target wheel has multiple target holes of the same size, which are evenly distributed around the outer ring of the target wheel. A photoelectric gate baffle is installed at one of the target holes near the center of the target wheel, and the center of the baffle falls on the line connecting the center of the target wheel and the center of the target hole.
[0066] There are multiple photoelectric gates, which are installed on the target wheel bracket and fixed in position on the motion trajectory formed by the baffle as the target wheel rotates.
[0067] The controller connects the photoelectric gate and the target wheel rotation actuator, and detects the photoelectric gate signal, processes the information, and controls the rotation of the target wheel.
[0068] The specific description of the control logic in the controller is as follows:
[0069] 1. According to the photoelectric gates (number Nd) and the target hole positions (number Nt is an even number), measure the rotation amount O of the target numbers Ti (i takes 1, 2,..., Nt) that the photoelectric gates Di (i takes 1, 2,..., Nd) can locate when the target wheel rotates clockwise and counterclockwise respectively, and record them into the rotation amount dictionaries respectively, including the clockwise rotation amount dictionary DCij and the counterclockwise rotation amount dictionary DCCij (i takes 1, 2,..., Nd, j takes 1, 2,..., Nt).
[0070] 2. For the convenience of the following description, it is now assumed that the target hole positions are numbered from 1 to Nt in the clockwise direction along the circumference of the target wheel, and the target hole position at the highest point of the target wheel is recorded as number 1, as Figure 2 shown, and define the current target Tsrc as the target hole position number at the highest point of the target wheel before the target wheel switching, and the target target Tdest as the target hole position number at the highest point of the target wheel after the target wheel switching ends.
[0071] 3. Calculate the target distance Dist between the target target Tdest and the current target Tsrc.
[0072] 4. According to Dist, determine the rotation direction of the target wheel. The judgment basis is:
[0073] If Dist > Nt / 2 or -Nt / 2 < Dist < 0, that is, it means that the target target is in the counterclockwise half of the target wheel of the current target, then the rotation direction R is clockwise rotation;
[0074] If Dist ≤ Nt / 2 or Dist ≤ -Nt / 2, that is, it means that the target target is in the clockwise half of the target wheel of the current target, then the rotation direction R is counterclockwise rotation.
[0075] 5. According to the rotation direction R, select the corresponding rotation amount dictionary. The rotation amount dictionaries stored in the controller include the clockwise dictionary and the counterclockwise dictionary. Both the clockwise dictionary and the counterclockwise dictionary include multiple photoelectric gate sub-dictionaries corresponding to each photoelectric gate. The photoelectric gate sub-dictionaries record the angular deviation amounts between the photoelectric gates and the respective targets associated with them; search in the clockwise dictionary or the counterclockwise dictionary for the photoelectric gate sub-dictionary that records the target target Tdest. That is, if the rotation direction R is clockwise rotation, search in the DC dictionary for the photoelectric gate sub-dictionary DCdj that records the target target Tdest; if the rotation direction R is counterclockwise rotation, search in the DCC dictionary for the photoelectric gate sub-dictionary DCCdj that records the target target Tdest. Here, d is the number of the photoelectric gate, and j is the target number of the target target Tdest.
[0076] 6. Based on the found photoelectric gate dictionary (Dict), search whether it contains information about the current target (Tscr). Finally, process and control the rotating mechanism to rotate the target wheel to reach the target. The specific process includes:
[0077] If the photoelectric gate dictionary Dict records the information of the current target Tscr, then the absolute difference Oabs between the rotation amount Ot of the target Tsrc and the rotation amount Os of the current target Tsrc in the photoelectric gate dictionary is calculated, and then the rotation mechanism is controlled to rotate the target wheel by an angle Oabs in the rotation direction R.
[0078] If the photoelectric gate dictionary Dict does not record the information of the current target Tscr, the rotating mechanism is directly controlled to rotate in the rotation direction R, and the trigger signal of photoelectric gate d is detected in real time. When the trigger signal of photoelectric gate d is detected, it is equivalent to resetting the target wheel position by rotating the baffle at photoelectric gate d. Then, the rotating mechanism is controlled to continue rotating the target wheel by angle Ot in the original direction.
[0079] The target wheel switching device and control method proposed in this invention have the following significant advantages:
[0080] Efficient bidirectional path planning: By dynamically calculating the relative position of the target and the current target (target distance Dist) and the total number of targets (Nt), it intelligently selects either clockwise or counterclockwise rotation direction to ensure that the target wheel always rotates along the shortest path. This fundamentally solves the path redundancy problem caused by traditional unidirectional rotation (such as the need for an extra rotation when switching between adjacent targets).
[0081] Precise and rapid positioning (same sub-dictionary scenario): Utilizing a pre-stored rotation dictionary (including photoelectric sub-dictionary), when the current target (Tsrc) and the target target (Tdest) belong to the same photoelectric sub-dictionary, the precise angle difference (Oabs) is directly calculated and executed, achieving the shortest distance and redundant rotation between targets, greatly improving the switching speed of adjacent or close-range targets.
[0082] Reliable Position Reset (Cross-Sub-Dictionary Scenario): When two targets are not in the same sub-dictionary, the target wheel is first rotated until the target photogate is triggered (blocking by a baffle) to reset the position. Then, it rotates to the target target according to the pre-stored deviation (Ot). Although this method involves an extra reset step, it avoids long-distance blind rotation and is still significantly better than the traditional unidirectional multi-turn scheme, ensuring switching reliability.
[0083] Significantly improves testing efficiency and reduces energy consumption: Through the shortest path priority strategy and precise angle control, the switching time of any target (especially adjacent targets) is greatly shortened, reducing the energy consumption of system idling and invalid rotation, meeting the high-frequency and continuous performance testing requirements of thermal imagers, and solving the efficiency bottleneck problem of the testing process.
[0084] To further illustrate the effectiveness of the target switching device and target switching method provided by the present invention, a specific embodiment is given below.
[0085] Appendix Figure 1 This is a schematic diagram of the target wheel switching device of the thermal imaging test system provided in an embodiment of the present invention, including 1. a target wheel bracket; 2. a target wheel rotation actuator; 3. a controller; 4. a target wheel; 5. a target one; 6. a target two; 7. a baffle; 8. a photoelectric gate C; 9. a target three; 10. a target four; 11. a target five; 12. a target six; 13. a target seven; 14. a photoelectric gate B; 15. a photoelectric gate A; and 16. a target eight.
[0086] Specifically, the target wheel bracket 1 is used to fix the target wheel 4, photoelectric gate A15, photoelectric gate B14, photoelectric gate C8 and the target wheel rotation actuator 2.
[0087] The target wheel 4 has 8 target holes of the same size. They are evenly distributed on the target wheel 4 with the center of the target wheel as the center and the center of adjacent holes forming a 45-degree angle with the center of the target wheel. Target 1 5, Target 2 6, Target 3 9, Target 4 10, Target 5 11, Target 6 12, Target 7 13 and Target 8 16 are installed and fixed on the target holes. Among them, the baffle 7 is installed and fixed on the side of Target 1 5 that is biased towards the center of the target wheel 4, and its center is fixed on the line connecting the center of the target wheel 4 and the center of Target 15.
[0088] Photogates C8, A15, and B14 are mounted and fixed on the target wheel bracket 1. Their spatial positions are directly above, to the left, and to the right of the target wheel bracket 1, respectively. That is, the line connecting the center of photogate C8 and the center of photogate B14 is parallel to the optical platform, and the line connecting the center of photogate A15 and the center of the target wheel bracket 1 is perpendicular to the optical platform. Their centers fall on the trajectory line formed by the baffle 7 as the target wheel rotates 4.
[0089] The controller 3 connects to photoelectric gate C8, photoelectric gate A15, photoelectric gate B14 and target wheel rotation actuator 2, and detects the photoelectric gate trigger signal, processes the information and controls the target wheel rotation actuator 2 to rotate the target wheel 4.
[0090] Appendix Figure 2 It is a schematic diagram of the positions of the target wheel, baffle, and photoelectric gate, which facilitates the description of the switching principle and fast switching control algorithm of the target wheel switching device.
[0091] Target wheel switching device switching positioning principle:
[0092] As attached Figure 2As shown, the target wheel 4 has 8 target holes. The target hole at the highest point of the target wheel is designated as number 1. The target holes are numbered sequentially clockwise from one to eight. A baffle is fixed below target hole number 1. The baffle passes through three photogates A, B, and C as the target wheel rotates. The three photogates A, B, and C are fixed to the target wheel support, and their spatial positions do not change with the rotation of the target wheel. The positions of the photogates shown in the diagram are for indication only and are not their actual positions. Their actual positions are shown in the appendix. Figure 1 The purpose of using three photoelectric gates in this embodiment is to balance the system's repeatability and simple structure.
[0093] The target positioning principle of the target wheel is as follows: the baffle is located by detecting whether the baffle has reached the photoelectric gate (that is, when the baffle passes through the photoelectric gate, the photoelectric gate will send a trigger signal to indicate that the baffle has reached the gate), and then the target hole position corresponding to the baffle is located. By combining the adjacent angles between targets, the positions of other target holes can be calculated.
[0094] Assuming the target position is the highest point of the target wheel, i.e., the position shown by photogate A, then target wheel switching refers to rotating the target wheel to stop the target hole position with a specific number at the target position. For example, to switch the target wheel to target hole position two, the target wheel is rotated to stop target hole position two at the target position. Therefore, as shown in the attached... Figure 2 As shown, if the target wheel rotates clockwise, the photoelectric gate A can be used to switch the target hole positions of targets one and eight to the target positions (for ease of description in the following text, switching a target hole position to the target position is described as switching to a target).
[0095] The three and two targets can be switched using photogate B.
[0096] Targets seven, six, five, and four can be switched using photogate C.
[0097] If the target wheel rotates counterclockwise
[0098] Targets one and two can be switched using photogate A.
[0099] Targets three, four, five, and six can be switched using photogate B.
[0100] Targets seven and eight can be switched using photogate C.
[0101] Specific implementation of the algorithm:
[0102] 1. Measure and record the rotation amount of the target switching according to the specific installation of the photoelectric gate and target hole position.
[0103] Due to variations in machining and installation, errors may occur in the target hole positions and the positions between the baffles in the actual assembled target wheel switching device. Therefore, it is necessary to actually measure the angular deviation (rotation) of each target relative to the baffle when passing through the photoelectric gate. The measured values are recorded in two dictionary lists: a clockwise rotation dictionary (DC) stores the angular deviation information measured when the target wheel rotates clockwise, and a counterclockwise rotation dictionary (DCC) stores the angular deviation information measured when the target wheel rotates counterclockwise. The key in the dictionary records the target, and the value records the angular deviation.
[0104] Based on the aforementioned positioning and control principles of the target wheel switching device, the clockwise rotation quantity dictionary DC contains three photoelectric gate sub-dictionaries, namely DC_A, DC_B, and DC_C:
[0105] DC_A records the angular deviations of targets No. 1 and No. 8, which are positioned by photoelectric gate A, when the target wheel rotates clockwise. These deviations are Offset_A1 and Offset_A8, respectively.
[0106] DC_B records the angular deviations of targets No. 3 and No. 2, which are positioned by photoelectric gate B when the target wheel rotates clockwise. These deviations are Offset_B3 and Offset_B2, respectively.
[0107] DC_C records the angular deviations of targets seven, six, five, and four, which are positioned by photogate C when the target wheel rotates clockwise. These deviations are Offset_C7, Offset_C6, Offset_C5, and Offset_C4, respectively.
[0108] The counterclockwise rotation quantity dictionary DCC contains photoelectric gate sub-dictionaries, namely DCC_A, DCC_B, and DCC_C:
[0109] DCC_A records the angular deviations of the first and second targets, which are positioned by photogate A, when the target wheel rotates counterclockwise. These deviations are Offset_A1 and Offset_A2, respectively.
[0110] DCC_B records the angular deviations of targets three, four, five, and six, positioned by photogate B, when the target wheel rotates counterclockwise. These deviations are Offset_B3, Offset_B4, Offset_B5, and Offset_B6, respectively.
[0111] DCC_C records the angular deviations of targets number seven and eight, which are positioned by photogate C, when the target wheel rotates counterclockwise. These deviations are Offset_C7 and Offset_C8, respectively.
[0112] 2. Calculate the distance between the target Tdest and the current target Tsrc: Dist = Tdest - Tsrc.
[0113] 3. Determine the rotation direction of the target wheel based on Dist. The judgment basis is as follows:
[0114] If Dist > 4 or -4 < Dist < 0, the rotation direction R is clockwise rotation.
[0115] If Dist ≤ 4 or Dist ≤ -4, the rotation direction R is counterclockwise rotation.
[0116] 4. According to the rotation direction R, select the corresponding photoelectric gate sub-dictionary that records the target Tdest in the clockwise rotation amount dictionary DC or the counterclockwise rotation amount dictionary DCC. That is, if the rotation direction R is clockwise rotation, search for the photoelectric gate sub-dictionary DC_X (where X ranges from A, B, C) that records the key key as the target Tdest in the DC dictionary; if the rotation direction R is counterclockwise rotation, search for the photoelectric gate sub-dictionary DCC_X (where X ranges from A, B, C) that records the key key as the target Tdest in the DCC dictionary.
[0117] 5. Search whether the key key recorded inside exists for the current target Tsrc in the found photoelectric gate sub-dictionary DC_X / photoelectric gate sub-dictionary DCC_X, and finally process and control the rotation mechanism to rotate the target wheel to reach the target Tdest. The specific process includes:
[0118] If there exists a key key equal to the current target Tsrc in the photoelectric gate sub-dictionary DC_X / photoelectric gate sub-dictionary DCC_X, calculate the absolute difference Oabs between the rotation amount Ot of the target Tdest and the rotation amount Os of the current target Tsrc in the dictionary, and then control the rotation mechanism to rotate the target wheel by an angle of Oabs according to the rotation direction R.
[0119] If the key key in the photoelectric gate sub-dictionary DC_X / photoelectric gate sub-dictionary DCC_X does not have the current target Tsrc, directly control the rotation mechanism to rotate according to the rotation direction R, and detect the X photoelectric gate trigger signal in real time for target position reset. When the X photoelectric gate trigger signal is detected, control the rotation mechanism to continue rotating the target wheel by an angle of Ot in the original direction.
[0120] Through the above algorithm, the function of quickly switching targets can be realized, and the system test efficiency can be improved.
[0121] The present invention also provides a target switching method for a target wheel switching device, which is applied to the above target wheel switching device, as Figure 4 shown, including:
[0122] Step S1, the controller calculates the target distance between the target Tdest input by the user and the current target, and obtains the rotation direction of the target wheel according to the target distance and the total number of targets.
[0123] Step S2: The controller selects a pre-configured rotation amount dictionary based on the rotation direction and determines whether the current target and the target target are simultaneously recorded in the same photoelectric sub-dictionary of the rotation amount dictionary.
[0124] If so, proceed to step S3;
[0125] If not, proceed to step S4;
[0126] Step S3: The controller queries the photoelectric gate dictionary for the target rotation amount from the current target to the target target, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount;
[0127] In step S4, the controller uses the angular deviation of the target recorded in the photoelectric gate dictionary as the target rotation amount, and then controls the target wheel to rotate until the photoelectric gate corresponding to the photoelectric gate dictionary containing the target is blocked by the baffle. Then, the controller controls the target wheel to rotate in accordance with the rotation direction and the target rotation amount.
[0128] In a preferred embodiment of the present invention, each target is assigned a corresponding target number, such as... Figure 5 As shown, step S1 includes:
[0129] Step S11: The controller calculates the difference between the target number of the target target and the target number of the current target as the target distance;
[0130] Step S12: The controller determines whether the target distance is greater than half of the total number of targets, or a negative value greater than half of the total number of targets but less than zero.
[0131] If so, the rotation direction is clockwise;
[0132] If not, the rotation direction is counterclockwise.
[0133] In a preferred embodiment of the present invention, the rotation amount dictionary stored in the controller includes a clockwise dictionary and a counterclockwise dictionary. Both the clockwise and counterclockwise dictionaries include multiple photoelectric gate sub-dictionaries corresponding to each photoelectric gate. The photoelectric gate sub-dictionary records the angle deviation between the photoelectric gate and each target associated with it.
[0134] Step S2 includes:
[0135] Step S21: The controller selects either a clockwise or counterclockwise dictionary as the rotation amount dictionary based on the rotation direction.
[0136] Step S22: The controller searches the rotation amount dictionary for the photoelectric gate sub-dictionary that records the target as the target sub-dictionary;
[0137] Step S23: The controller determines whether the current target angle deviation is recorded in the target sub-dictionary.
[0138] If so, proceed to step S3;
[0139] If not, proceed to step S4.
[0140] The above are merely preferred embodiments of the present invention and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should recognize that any equivalent substitutions and obvious changes made using the content of this specification and illustrations should be included within the protection scope of the present invention.
Claims
1. A target wheel switching device, characterized in that, include: The target wheel has multiple targets arranged circumferentially along its outer ring, and the inner ring of the target wheel is provided with baffles. A target wheel bracket, wherein the target wheel is rotatably mounted on the target wheel bracket, and the target wheel bracket is also provided with multiple photoelectric gates that can be blocked by the baffle; The controller receives the target target input by the user, determines the rotation direction based on the current target, the target target, and the total number of targets, and then selects the corresponding rotation amount dictionary based on the rotation direction. When the current target and the target target are in the same photoelectric gate sub-dictionary in the rotation amount dictionary, the controller determines the target rotation amount from the current target to the target target based on the photoelectric gate sub-dictionary. When the current target and the target target are not in the same photoelectric gate dictionary, the controller resets the target wheel position based on the photoelectric gate and the baffle, determines the target rotation amount from the current target to the target target based on the photoelectric gate dictionary, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount to complete the target switching.
2. The target wheel switching device according to claim 1, characterized in that, The controller includes: The direction determination module is used to calculate the target distance between the target input by the user and the current target, and to obtain the rotation direction of the target wheel based on the target distance and the total number of targets; The first target switching module, connected to the direction determination module, is used to select a pre-configured rotation amount dictionary according to the rotation direction. When it is determined that the current target and the target target are simultaneously recorded in the same photoelectric sub-dictionary in the rotation amount dictionary, the module queries the photoelectric sub-dictionary for the target rotation amount from the current target to the target target, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount. The second target switching module, connected to the direction determination module, is used to select a pre-configured rotation amount dictionary according to the rotation direction. When it is determined that the current target and the target target are not simultaneously recorded in the same photoelectric gate sub-dictionary in the rotation amount dictionary, the angular deviation of the target target recorded in the photoelectric gate dictionary is used as the target rotation amount. Then, the target wheel is controlled to rotate until the photoelectric gate corresponding to the photoelectric gate sub-dictionary of the target target is blocked by the baffle. Then, the target wheel is controlled to rotate according to the rotation direction and the target rotation amount.
3. The target wheel switching device according to claim 2, characterized in that, Each target has a corresponding target number, and the direction determination module includes: A distance calculation unit is used to calculate the difference between the target number of the target target and the target number of the current target as the target distance; The direction determination unit, connected to the distance calculation unit, is used to determine the rotation direction as clockwise when the target distance is greater than half of the total number of targets, or greater than half of the total number of targets and negative but less than zero, and to determine the rotation direction as counterclockwise when the target distance is not greater than half of the total number of targets, or not greater than half of the total number of targets and negative.
4. The target wheel switching device according to claim 1, characterized in that, The baffle is located on the line connecting the center of one of the targets and the center of the target wheel.
5. The target wheel switching device according to claim 1, characterized in that, The photoelectric gate includes at least one photoelectric gate fixed to the top, left, and right sides of the target wheel bracket, and each photoelectric gate is electrically connected to the controller.
6. The target wheel switching device according to claim 1, characterized in that, It also includes a photoelectric platform, on which a rotary actuator and the target wheel bracket are fixed. The rotary actuator is electrically connected to the controller and is also drive-connected to the target wheel.
7. The target wheel switching device according to claim 1, characterized in that, Each of the photoelectric gates is located on the rotation trajectory of the baffle when the target wheel rotates.
8. A target switching method for a target wheel switching device, characterized in that, The target wheel switching device as described in any one of claims 1-7 includes: Step S1: The controller calculates the target distance between the target input by the user and the current target, and obtains the rotation direction of the target wheel based on the target distance and the total number of targets; Step S2: The controller selects a pre-configured rotation amount dictionary based on the rotation direction and determines whether the current target and the target target are simultaneously recorded in the same photoelectric sub-dictionary in the rotation amount dictionary. If so, proceed to step S3; If not, proceed to step S4; Step S3: The controller queries the optoelectronic sub-dictionary for the target rotation amount from the current target to the target target, and then controls the target wheel to rotate according to the rotation direction and the target rotation amount; In step S4, the controller uses the angular deviation of the target recorded in the photoelectric gate dictionary as the target rotation amount, and then controls the target wheel to rotate until the photoelectric gate corresponding to the photoelectric gate dictionary containing the target is blocked by the baffle. Then, the controller controls the target wheel to rotate in the rotation direction and the target rotation amount.
9. The target switching method according to claim 8, characterized in that, Each target has a corresponding target number, and step S1 includes: Step S11, the controller calculates the difference between the target number of the target target and the target number of the current target as the target distance; Step S12, the controller determines whether the target distance is greater than half of the total number of targets, or a negative value greater than half of the total number of targets but less than zero: If so, the direction of rotation is clockwise; If not, then the rotation direction is counterclockwise.
10. The target switching method according to claim 8, characterized in that, The rotation amount dictionary stored in the controller includes a clockwise dictionary and a counterclockwise dictionary. Each of the clockwise and counterclockwise dictionaries includes multiple photoelectric gate sub-dictionaries corresponding to each of the photoelectric gates. The photoelectric gate sub-dictionary records the angle deviation between the photoelectric gate and each of the targets associated with it. Step S2 includes: Step S21: The controller selects either the clockwise dictionary or the counterclockwise dictionary as the rotation amount dictionary according to the rotation direction; Step S22: The controller searches the rotation amount dictionary for the photoelectric gate sub-dictionary that records the target target as the target sub-dictionary; Step S23, the controller determines whether the target sub-dictionary records the angle deviation of the current target: If so, proceed to step S3; If not, proceed to step S4.