Scheduling method and device for order detection, terminal equipment and medium
By obtaining and analyzing the inspection path and speed information of the CMM parts, and estimating the inspection running time of the parts, the problem of large errors in the CMM running time estimation is solved, and reasonable order scheduling is achieved.
Patent Information
- Application Number
- CN202410524687.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-08-30
AI Technical Summary
The running time estimation error of the three-dimensional coordinate measuring instrument is large, resulting in the order being unable to be reasonably scheduled.
By obtaining the stylus detection path information, detection speed, rapid movement speed, number of needle changes, and number of corner turns in the part information, the detection running time of the target part is estimated, and based on this, the order to be scheduled is scheduled.
It reduces the influence of human subjective factors, reduces the error of time estimation, and ensures the reasonable scheduling of orders.
Smart Images

Figure CN118559504A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of numerical control machining technology, and in particular, relates to a scheduling method, device, terminal equipment and medium for order detection. Background Art
[0002] The three-dimensional coordinate measuring instrument is also called a three-dimensional coordinate measuring machine or a three-dimensional coordinate measuring bed. It is mainly composed of three axes: X-axis, Y-axis and Z-axis. These axes can move in three-dimensional space and measure the coordinate values of each point of the object through sensors. By calculating and analyzing these coordinate values, data such as the size, geometric shape and circular division of the object can be obtained.
[0003] At present, the running time of the three-coordinate program of the three-coordinate measuring machine is mainly determined by manually analyzing the detection points on the object. Affected by human subjective factors, the error of the estimated running time is large, resulting in the inability to reasonably schedule the orders to be inspected. Summary of the invention
[0004] The embodiments of the present application provide a scheduling method, apparatus, terminal device and medium for order inspection, which can solve the problem that the estimation error of the running time of the three-coordinate program is large, resulting in the inability to reasonably schedule the orders to be inspected.
[0005] In a first aspect, an embodiment of the present application provides a method for scheduling order detection, including:
[0006] Determine the parts information corresponding to the orders to be scheduled;
[0007] Acquire a part detection program based on the part type in the part information, wherein the part detection program includes probe detection path information, probe detection speed, probe rapid moving speed, probe replacement times and probe rotation times of the target part;
[0008] estimating the detection running time of the target part based on the stylus detection path information, the stylus detection speed, the stylus rapid moving speed, the number of stylus needle changes and the number of stylus angle rotations;
[0009] The to-be-scheduled orders are scheduled based on the detection running time.
[0010] In a second aspect, an embodiment of the present application provides a scheduling device for order detection, including:
[0011] A determination module is used to determine the parts information corresponding to the order to be scheduled;
[0012] An acquisition module, for acquiring a part detection program based on the part type in the part information, wherein the part detection program includes probe detection path information, probe detection speed, probe fast moving speed, probe replacement times and probe rotation times of the target part;
[0013] An estimation module, for estimating the detection running time of the target part based on the detection path information of the stylus, the detection speed of the stylus, the rapid moving speed of the stylus, the number of stylus changes and the number of stylus rotation angles;
[0014] A scheduling module is used to schedule the orders to be scheduled based on the detection running time.
[0015] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned order detection scheduling method when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the scheduling method for order detection as described above is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program part, which, when executed on a terminal device, enables the terminal device to execute the scheduling method for order detection described in any one of the above-mentioned first aspects.
[0018] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0019] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0020] Determine the part information corresponding to the order to be scheduled; obtain the part detection program based on the part type in the part information, the part detection program includes the probe detection path information, probe detection speed, probe rapid moving speed, probe change times and probe angle rotation times of the target part; estimate the detection running time of the target part based on the probe detection path information, probe detection speed, probe rapid moving speed, probe change times and probe angle rotation times; schedule the order to be scheduled based on the detection running time. The scheduling scheme for order detection provided in the present application estimates the detection running time of the target part based on the part detection program by obtaining the part detection program corresponding to the part type in the part information. It can be seen that the present application can automatically estimate the detection running time of the target part based on the probe detection path information, probe detection speed, probe rapid moving speed, probe change times and probe angle rotation times in the part detection program corresponding to the target part, so as to avoid the influence of human subjective factors, thereby reducing the error of time estimation, which is conducive to the reasonable scheduling of the orders to be scheduled. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0023] Figure 2 It is a flowchart of a scheduling method for order detection provided in an embodiment of the present application;
[0024] Figure 3 It is a schematic structural diagram of a detection probe of a three-dimensional coordinate measuring machine provided in an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of a detection path of a detection point of a target part provided in an embodiment of the present application;
[0026] Figure 5 It is a structural diagram of the scheduling device for order detection provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0028] The order detection scheduling method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices.
[0029] For example, the terminal device can be a personal digital assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a computer, a laptop computer, a handheld communication device, for example, a mobile terminal in a 5G network or a mobile terminal in a future evolved public land mobile network (PLMN) network, etc.
[0030] Figure 1 This is a schematic diagram of the structure of the scheduling device / terminal device for order detection provided in one embodiment of the present application. Figure 1 As shown, the order detection scheduling device / terminal device 20 of this embodiment includes: at least one processor 200 ( Figure 1 Only one is shown in the figure, a processor, a memory 210, and a computer program 220 stored in the memory 210 and executable on the at least one processor 200. When the processor 200 executes the computer program 220, the steps in any of the above-mentioned order detection scheduling method embodiments are implemented.
[0031] Figure 2 A schematic flowchart of the order detection scheduling method provided in the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned mobile phone 100 or terminal device 20.
[0032] S101: Determine the parts information corresponding to the order to be scheduled.
[0033] In fact, the order to be scheduled may be a parts order to be inspected by a three-dimensional coordinate measuring machine. The parts order may include one or more parts, each part corresponds to a part information, and the part information includes the quantity and model of each part. For example, the order to be scheduled includes a power strip, and the model of the power strip is AC063.
[0034] S102: Obtain a part inspection program based on the part type in the part information.
[0035] The part detection program includes the probe detection path information, the probe detection speed, the probe rapid moving speed, the number of probe changes and the number of probe rotations of the target part.
[0036] The part detection program can be based on applying the target part to the existing software to generate a virtual graphic corresponding to the target part, that is, to realize the secondary development of the software, and generate the part detection program based on the detection points, safety points, approach and retraction points, probe detection path information, probe detection speed, probe fast moving speed, probe change times, probe rotation times and other information on the virtual graphic and the virtual image. The software used can be NX software (also known as UG, Unigraphics, UG software), which has the advantages of simple operation and low cost. Among them, the probe detection speed of the detection point refers to the detection speed when the probe (detection probe) on the three-dimensional coordinate measuring machine detects the detection point.
[0037] S103: estimating the detection running time of the target part based on the stylus detection path information, the stylus detection speed, the stylus rapid movement speed, the number of stylus needle changes and the number of stylus angle rotations.
[0038] The probe detection path information includes first position information corresponding to the detection point, second position information corresponding to the approaching back-off point, and third position information corresponding to the safety point, and each detection point is connected in series according to the first sequence.
[0039] The detection running time includes the rapid movement time of the probe between the detection points on the target part, the detection time of each detection point, the probe change time, the probe corner rotation time and the probe safe movement time. It should be noted that in the part detection program, when the probe (detection probe) detects the detection points on the target part, it can move along the motion trajectory of the probe in the probe detection path information for detection. The terminal device can count the running time during the detection process, so as to obtain the detection running time of the target part.
[0040] In one possible implementation, the step of “estimating the detection running time of the target part based on the stylus detection path information, the stylus detection speed, the stylus rapid movement speed, the number of stylus needle changes and the number of stylus rotation angles” includes:
[0041] (11) determining a rapid movement time for the stylus to move between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed;
[0042] (12) determining the detection time of the stylus for detecting each of the detection points based on the stylus detection path information and the stylus detection speed;
[0043] (13) determining a needle changing time based on the number of needle changing times and the preset needle changing time;
[0044] (14) determining a stylus rotation time based on the stylus rotation times and the preset rotation time;
[0045] (15) obtaining a stylus safety movement time, wherein the stylus safety movement time represents the time for the stylus to move from a stylus origin to a target starting point of the target part and the time for the stylus to move from a target end point of the target part to the stylus origin;
[0046] (16) The detection operation time is determined based on the rapid movement time, the detection time, the needle replacement time, the stylus rotation angle time and the stylus safety movement time.
[0047] The rapid moving distance between every two adjacent detection points is calculated. The rapid moving distance includes the distance between the safety point and the approach backoff point corresponding to each detection point and the distance between the safety points corresponding to two adjacent detection points. Based on the rapid moving distance and the rapid moving speed of the stylus, the rapid moving time S of the stylus from the starting detection point to the last detection point of the target part is counted through the terminal device. It should be noted that the safety point is used to limit the distance between the stylus and the detection point. In the process of feature point measurement, in order to avoid abnormal collision between the stylus and the target part, a safety plane can be defined to surround the target part, so that the stylus will not have abnormal collision when moving along the surface of the safety plane.
[0048] The distance between the position information of each detection point and the approach back-off point, i.e., the approach back-off distance, is calculated. Based on the approach back-off distance and the probe detection speed, the detection time C from the starting detection point to the last detection point of the target part is counted through the terminal device, wherein the approach back-off point of each detection point can be pre-set and reflected in the part detection program.
[0049] The needle changing time is obtained by calculating the product of the needle changing times in the part detection program and the preset needle changing time. For example, assuming that the needle changing times is A and the preset needle changing time is 5 seconds, the needle changing time of the measuring needle D1 = A*5;
[0050] The stylus rotation time is obtained by calculating the product of the stylus rotation times in the part inspection program and the preset rotation time (such as 5 seconds). For example, assuming that the stylus rotation times are B and the stylus rotation time is 5 seconds, the three-coordinate stylus rotation time D2 = B*5;
[0051] like Figure 3 As shown, the detection probe of the three-dimensional coordinate measuring machine consists of two axes, A and B, which can form multiple composite angles to meet the detection angle requirements when detecting parts. It should be noted that since the hardware configurations of the A and B axes may be different, the A and B axes may not rotate at the same time, so that the time required for the rotation of the detection probe is different. For example, each rotation of the detection probe takes about 1 to 2 seconds, and the corresponding probe angle time is 1 to 2 seconds. The specific probe angle time can be set according to the actual application scenario and is not specifically limited here.
[0052] The stylus safety movement time indicates the time for the stylus to move from the stylus origin to the target starting point of the target part and the time for the stylus to move from the target end point of the target part to the stylus origin, wherein the target starting point of the target part refers to the position of the safety point corresponding to the first detection point in the stylus detection path information, the target end point of the target part refers to the position of the safety point corresponding to the last detection point in the stylus detection path information, and the stylus origin refers to the axis origin coordinates of the three-dimensional coordinate measuring machine. Optionally, the safety movement time D3 can be preset according to the model of the three-dimensional coordinate measuring machine in the real-life application scenario;
[0053] Finally, the detection running time T is obtained = rapid movement time S + detection time C + probe needle replacement time D1 + probe needle rotation time D2 + safety movement time D3.
[0054] In a possible implementation, the step of “determining the rapid movement time of the stylus between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed” includes:
[0055] (21) extracting the position information of each of the detection points from the stylus detection path information;
[0056] (22) The rapid movement time is determined based on the rapid movement speed of the stylus and the position information of each of the detection points.
[0057] The position information of each detection point includes a horizontal coordinate (X coordinate), a vertical coordinate (Y coordinate) and a vertical coordinate (Z coordinate). The first detection point to be detected among all detection points, i.e., the starting detection point, can be determined according to the detection path information of the probe. After the starting detection point is determined, the moving time of the starting detection point is calculated according to the following formula (1):
[0058] S1=2*ABS(Z1)*Fk (1)
[0059] Where S1 is the moving time of the starting detection point, ABS(Z1) is the absolute value of the vertical coordinate of the starting detection point, and FK is the fast moving speed.
[0060] It should be noted here that before the detection probe reaches the starting detection point, the probe of the three-dimensional coordinate measuring machine has stopped at the XY coordinate of the starting detection point after leaving the probe origin. When the probe starts to move, it only needs to deal with the Z axis of the starting detection point. At this time, the distance obtained is ABS (Z1), because the distance the probe moves from the safety point to the approach retraction point before detection and from the approach retraction point to the safety point after detection is equal, so the moving distance of the probe needs to be multiplied by 2.
[0061] The moving time corresponding to each detection point except the starting detection point is calculated according to the following formula (2):
[0062] Si=[sqrt((X i -X i-1 )*(X i -X i-1 ) / 1.0+((Y i -Y i-1 )*(Y i -Y i-1 ) / 1.0)+2*Abs(Z i )]*FK(2)
[0063] In the formula, Si is the moving time of the i-th detection point, X i is the horizontal coordinate of the i-th detection point, X i-1 is the horizontal coordinate of the i-1th detection point, Y i is the ordinate of the i-th detection point, Y i-1 is the ordinate of the i-1th detection point, Abs(Z i ) is the absolute value of the vertical coordinate of the i-th detection point, and FK is the fast moving speed.
[0064] Based on this, the fast moving time can be expressed according to the following formula (3):
[0065]
[0066] In the formula, S is the moving time, S1 is the moving time of the starting detection point, is the sum of the moving time durations corresponding to each detection point except the starting detection point, and n is the number of detection points.
[0067] Optionally, in a possible implementation, the step of “determining a rapid movement time of the stylus between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed” includes:
[0068] (31) extracting, from the stylus detection path information, a safety distance between a safety point corresponding to each detection point and an approaching retraction point corresponding to the safety point, as well as a moving distance between the safety points corresponding to two adjacent detection points;
[0069] (32) The rapid movement time is determined based on each of the safety distances, each of the movement distances, and the rapid movement speed of the stylus.
[0070] like Figure 4 As shown, the probe detection path information includes three detection points c, f, and i on the target part. c is the starting detection point, f is the second detection point, and i is the third detection point. The safety point corresponding to detection point i is g, and the approaching retraction point is h. The safety point corresponding to detection point f is d, and the approaching retraction point is e. The safety point corresponding to detection point c is a, and the approaching retraction point is b. Among them, the safety distance between point g and point h is the safety distance, the safety distance between point d and point e is the safety distance, the safety distance between point a and point b is the safety distance, the moving distance between point a and point d is the moving distance, and the moving distance between point d and point g is the moving distance. The probe detection path is: the probe moves from the probe origin (not shown) to the safety point a;
[0071] When starting to detect point c, quickly move from safety point a to approach retraction point b, detect from approach retraction point b to detection point c, after detecting detection point c, move back to approach retraction point b at the stylus detection speed, and then quickly move from approach retraction point B to point a;
[0072] When detecting point f, move quickly from point a to point d, then quickly move from point d to point e, detect from point e to point f, move back to point e after detecting point f, and then quickly move from point e to point d; when detecting point i, run quickly from point d to point g, then quickly run from point g to point h (fast movement), and detect from point h (approach / retreat point) to point i. After detecting point i, it moves back to point h, and then quickly moves to point g; it runs from point g to the probe origin (not shown in the figure). Based on this, the product of twice the safety distance between point a and point b and the rapid moving speed of the probe can be calculated to obtain the rapid moving time of point c; the product of the sum of the moving distance between point a and point b and twice the safety distance between point d and point e and the rapid moving speed of the probe is calculated to obtain the rapid moving time of point f; the product of the moving distance between point d and point g and twice the distance between point g and point h and the rapid moving speed of the probe is calculated to obtain the rapid moving time of point i; the rapid moving time of points i, c and f is added together to obtain the rapid moving time.
[0073] In one embodiment, the approach and retraction distance between point b and point c can be determined, and the product of the approach and retraction distance and the probe detection speed corresponding to point c can be calculated to obtain the detection time of point c. Similarly, the detection time of points f and i can be obtained. The detection time of points c, f and i can be added together to obtain the detection time.
[0074] Optionally, in a possible implementation, the step of “determining the detection time of the stylus for detecting each of the detection points based on the stylus detection path information and the stylus detection speed” includes:
[0075] (41) extracting the approach and retraction distance corresponding to each of the detection points from the stylus detection path information;
[0076] (42) determining the detection time of each detection point based on the approach and retraction distance of each detection point and the detection speed of the stylus;
[0077] (43) The detection time is obtained by adding up the detection durations.
[0078] The approach backoff distance refers to the distance between the approach backoff point and the detection point. The detection time of each detection point can be calculated according to the following formula (4):
[0079] Cj=2*Mj*Fj (4)
[0080] Where Cj represents the detection time of the jth detection point, Mj represents the approach and retreat distance of the jth detection point, and Fj represents the detection speed of the probe of the jth detection point.
[0081] After the detection time of each detection point is obtained by counting, the detection time corresponding to each detection point can be added to obtain the detection time. For example, Wherein, C is the detection time, n is the number of detection points, and Cj is the detection duration of the jth detection point.
[0082] Optionally, the different detection time lengths generated for each detection point are due to different approach and retraction distances Mj and probe detection speeds Fj set for each detection point.
[0083] S104: Scheduling the to-be-scheduled orders based on the detection running time.
[0084] When the part inspection program of the part is calculated through the terminal device, the inspection running time of each part in the order to be scheduled is obtained, thereby determining the total inspection time of the order to be scheduled, and then the order to be scheduled can be scheduled according to the total inspection time.
[0085] In a possible implementation, the step of “scheduling the to-be-scheduled orders based on the detection running time” includes:
[0086] (51) Obtain the current test schedule data table;
[0087] (52) determining a target time period for the inspection of the order to be scheduled in the inspection scheduling data table based on the inspection running time;
[0088] (53) Scheduling the orders to be scheduled based on the target time period.
[0089] The current inspection schedule data table includes the idle time period of the coordinate measuring machine, the time period in inspection, and the scheduled time period. The total inspection time can be calculated by the inspection running time, and the idle target time period can be found in the inspection schedule data table by the total inspection time, and the target time period is determined as the inspection time period of the order to be scheduled. For example, the inspection schedule data table includes Monday to Sunday. Assuming that the total inspection time is 120 minutes, an idle time period matching 120 minutes is found from Monday to Sunday as the target time period, such as 14:00 to 16:00 on Monday afternoon.
[0090] Optionally, in a possible implementation, the step of “determining a target time period for the inspection of the to-be-scheduled order in the inspection scheduling data table based on the inspection running time” includes:
[0091] If the time period in the detection scheduling data table that is closest to the current time and meets the detection running time has been scheduled, then an idle time period with a duration equal to the detection running time is matched in the detection scheduling data table according to a preset time order; if the idle time period is matched, then the idle time period is used as the target time period; if the idle time period is not matched, information that scheduling cannot be performed is generated and displayed.
[0092] For example, the current time is 14:00 on Saturday afternoon, and the time period that is closest to the current detection running time is 15:30 to 16:30, but this time period has been scheduled, then the idle time period with a duration equal to the detection running time is matched in the detection scheduling data table according to the preset time order. If the idle time period 17:00 to 18:00 is matched, then 17:00 to 18:00 is used as the target time period. If it is not matched, a scheduling failure information is generated, such as a prompt message such as "the day's schedule is full" and displayed.
[0093] In a possible implementation, the step of “obtaining a part inspection program of a target part corresponding to the order to be scheduled based on the part information” includes:
[0094] (61) acquiring file information of a target part based on the part information, and displaying a graphic corresponding to the target part according to the file information;
[0095] (62) identifying a plurality of detection points pre-set on the graphic surface, and obtaining a plurality of first position information corresponding to the plurality of detection points;
[0096] (63) calculating each of the first position information according to the approaching back-off distance to obtain each of the second position information corresponding to each of the first position information, and obtaining a plurality of the second position information corresponding to a plurality of approaching back-off points, wherein the approaching back-off point is a point separated from the surface of the graphic by a first safety distance, and the approaching back-off distance is greater than or equal to the first safety distance;
[0097] (64) calculating a plurality of vector directions corresponding to the plurality of detection points according to the plurality of first position information, wherein the plurality of first position information, the plurality of second position information and the plurality of vector directions constitute detection position information;
[0098] (65) obtaining a first sequence of a plurality of detection points, obtaining a preset second safety distance, and calculating third position information corresponding to each safety point according to the second safety distance, each approaching back-off point, and each second position information corresponding to each approaching back-off point; wherein the second safety distance is greater than the approaching back-off distance;
[0099] (66) generating a second sequence according to the first sequence, and connecting all the detection points, all the approaching back-off points, and all the safety points in series according to the second sequence to generate a motion trajectory; wherein the first sequence is an ordering of a plurality of the detection points pre-set in sequence on the surface of the graphic, and the second sequence is an ordering of all the detection points, all the approaching back-off points, and all the safety points;
[0100] (67) receiving type information of the numerical control device input by the user, displaying a list including a plurality of selectable analog detection probes according to the type information, and acquiring the analog detection probe selected from the list;
[0101] (68) performing simulation processing according to the simulated detection probe and the motion trajectory to detect whether the simulated detection probe collides with the graphic;
[0102] (69) If the simulation detection probe does not collide with the graphic, a part detection program including parameter information of the simulation detection probe and the detection position information is output.
[0103] Multiple detection points selected by the user on the surface of the graphic can be identified in the area to be processed of the graphic. The area to be processed of the graphic indicates the area that can be used as the detection point setting area. For example, when the graphic is a cube, the top face, left end face, front end face, back end face, and right end face of the cube are all areas to be processed, while the bottom face of the cube cannot be used as an area to be processed. Multiple first position information corresponding to the multiple detection points is obtained, and the first position information can be a coordinate value; for example, each coordinate value corresponding to each detection point can be obtained by establishing a coordinate system.
[0104] The multiple second position information corresponding to each approaching back-off point can be calculated based on the multiple first position information corresponding to each detection point. One detection point corresponds to one approaching back-off point. The approaching back-off point is a point separated from the surface of the figure by a first safety distance, and the first safety distance can be 5-10mm. The function of the approaching back-off point is to make the simulation detection probe have a safe distance from the figure when it leaves or approaches the detection point, so as to reduce the probability of collision with the figure corresponding to the part when the simulation detection probe moves along the generated trajectory. After obtaining multiple second position information, each approaching back-off point is identified in the first display interface according to each second position information.
[0105] Each detection point has a corresponding vector direction, which indicates the direction in which the detection probe moves from the detection point to the approach retraction point.
[0106] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0107] Corresponding to the order detection scheduling method described in the above embodiment, Figure 5 A structural block diagram of the scheduling device for order detection provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0108] Reference Figure 5 The order detection scheduling device 30 includes:
[0109] Determination module 301, used to determine the parts information corresponding to the order to be scheduled;
[0110] An acquisition module 302 is used to acquire a part detection program based on the part type in the part information, wherein the part detection program includes probe detection path information, probe detection speed, probe fast moving speed, probe replacement times and probe rotation times of the target part;
[0111] An estimation module 303 is used to estimate the detection running time of the target part based on the stylus detection path information, the stylus detection speed, the stylus fast moving speed, the number of stylus needle changes and the number of stylus rotation angles;
[0112] The scheduling module 304 is used to schedule the orders to be scheduled based on the detection running time.
[0113] Optionally, the estimation module 303 includes:
[0114] A first determination submodule, configured to determine a rapid movement time of the stylus between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed;
[0115] A second determination submodule is used to determine the detection time of each detection point detected by the stylus based on the stylus detection path information and the stylus detection speed;
[0116] A third determination submodule is used to determine the needle change time based on the number of needle changes and the preset needle change time;
[0117] A fourth determination submodule, used to determine the stylus rotation time based on the stylus rotation times and the preset rotation time;
[0118] An acquisition submodule, used for acquiring a stylus safety movement time, wherein the stylus safety movement time represents the time for the stylus to move from a stylus origin to a target starting point of the target part and for the stylus to move from a target end point of the target part to the stylus origin;
[0119] The fifth determination submodule is used to determine the detection running time based on the rapid movement time, the detection time, the needle replacement time, the probe rotation angle time and the probe safe movement time.
[0120] Optionally, the first determining submodule includes:
[0121] A first extraction unit, configured to extract position information of each detection point from the stylus detection path information;
[0122] The first determining unit is used to determine the rapid movement time based on the rapid movement speed of the probe and the position information of each of the detection points.
[0123] Optionally, the second determining submodule includes:
[0124] A second extraction unit is used to extract, from the stylus detection path information, a safety distance between a safety point corresponding to each detection point and an approaching back-off point corresponding to the safety point, and a moving distance between the safety points corresponding to two adjacent detection points;
[0125] The second determining unit is used to determine the rapid movement time based on each of the safety distances, each of the moving distances and the rapid movement speed of the stylus.
[0126] Optionally, the second determining submodule includes:
[0127] A third extraction unit, configured to extract an approaching and retracting distance corresponding to each of the detection points from the stylus detection path information;
[0128] A third determining unit, configured to determine a detection time length of each detection point based on the approaching and retreating distance of each detection point and the detection speed of the stylus;
[0129] An adding unit is used to add the detection durations to obtain the detection time.
[0130] Optionally, the scheduling module includes:
[0131] The second acquisition submodule is used to obtain the current test schedule data table;
[0132] A sixth determination submodule, configured to determine a target time period for the inspection of the to-be-scheduled order in the inspection scheduling data table based on the inspection running time;
[0133] The scheduling submodule is used to schedule the orders to be scheduled based on the target time period.
[0134] Optionally, the sixth determining submodule includes:
[0135] A matching unit, configured to match an idle time period in the detection scheduling data table with a duration equal to the detection running time in a preset time order if the time period in the detection scheduling data table that is closest to the current time and that meets the detection running time has been scheduled;
[0136] a fourth determining unit, configured to, if the idle time period is matched, use the idle time period as a target time period;
[0137] The generating unit is used to generate and display the information that the scheduling cannot be performed if the idle time period is not matched.
[0138] Optionally, the acquisition module 302 includes:
[0139] A display submodule, used for acquiring file information of the target part based on the part information, and displaying a graphic corresponding to the target part according to the file information;
[0140] an identification submodule, used for identifying a plurality of detection points pre-set on the graphic surface, and obtaining a plurality of first position information corresponding to the plurality of detection points;
[0141] A first calculation submodule, configured to calculate each of the first position information according to the approaching back-off distance to obtain each of the second position information corresponding to each of the first position information, and obtain multiple pieces of the second position information corresponding to multiple approaching back-off points, wherein the approaching back-off point is a point separated from the graphic surface by a first safety distance, and the approaching back-off distance is greater than or equal to the first safety distance;
[0142] A second calculation submodule, configured to calculate a plurality of vector directions corresponding to a plurality of the detection points according to a plurality of the first position information, wherein the plurality of the first position information, the plurality of the second position information and the plurality of the vector directions constitute detection position information;
[0143] A third acquisition submodule is used to acquire a first sequence of the plurality of detection points, acquire a preset second safety distance, and calculate third position information corresponding to each safety point according to the second safety distance, each approaching backoff point, and each second position information corresponding to each approaching backoff point; wherein the second safety distance is greater than the approaching backoff distance;
[0144] A series connection submodule is used to generate a second sequence according to the first sequence, and connect all the detection points, all the approximate back-off points and all the safety points in series according to the second sequence to generate a motion trajectory; wherein the first sequence is the sequence of a plurality of the detection points pre-set in sequence on the graphic surface, and the second sequence is the sequence of all the detection points, all the approximate back-off points and all the safety points;
[0145] A receiving submodule, configured to receive type information of a numerical control device input by a user, display a list of multiple selectable analog detection probes according to the type information, and obtain the analog detection probe selected from the list;
[0146] A detection submodule, used for performing simulation processing according to the simulation detection probe and the motion trajectory to detect whether the simulation detection probe collides with the graphic;
[0147] The output submodule is used for outputting a part detection program including parameter information of the simulation detection probe and the detection position information if the simulation detection probe does not collide with the graphic.
[0148] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0149] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0150] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0151] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0152] An embodiment of the present application provides a computer program part. When the computer program part runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program part.
[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent part, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0155] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0156] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0157] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0158] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for scheduling order detection, characterized in that: include: Determine the parts information corresponding to the orders to be scheduled; Acquire a part detection program based on the part type in the part information, wherein the part detection program includes probe detection path information, probe detection speed, probe rapid moving speed, probe replacement times and probe rotation times of the target part; estimating the detection running time of the target part based on the stylus detection path information, the stylus detection speed, the stylus rapid moving speed, the number of stylus needle changes and the number of stylus angle rotations; The to-be-scheduled orders are scheduled based on the detection running time.
2. The order detection scheduling method according to claim 1, characterized in that: The estimating the detection running time of the target part based on the stylus detection path information, the stylus detection speed, the stylus rapid moving speed, the number of stylus needle changes and the number of stylus rotation angles includes: Determine the rapid movement time of the stylus between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed; Determining the detection time of each detection point detected by the stylus based on the stylus detection path information and the stylus detection speed; Determining the needle changing time based on the number of needle changing times and the preset needle changing time; Determining the stylus rotation time based on the stylus rotation times and the preset rotation time; Acquire a stylus safety movement time, where the stylus safety movement time represents the time it takes for the stylus to move from a stylus origin to a target starting point of the target part and for the stylus to move from a target end point of the target part to the stylus origin; The detection operation time is determined based on the rapid movement time, the detection time, the needle replacement time, the stylus rotation angle time and the stylus safety movement time.
3. The order detection scheduling method according to claim 2, characterized in that: The method of determining the rapid movement time of the stylus between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed comprises: Extracting position information of each of the detection points from the stylus detection path information; The rapid movement time is determined based on the rapid movement speed of the stylus and the position information of each of the detection points.
4. The order detection scheduling method according to claim 2, characterized in that: The method of determining the rapid movement time of the stylus between the detection points on the target part based on the stylus detection path information and the stylus rapid movement speed comprises: Extracting, from the stylus detection path information, a safety distance between a safety point corresponding to each detection point and an approaching back-off point corresponding to the safety point, and a moving distance between the safety points corresponding to two adjacent detection points; The rapid movement time is determined based on each of the safety distances, each of the movement distances, and the stylus rapid movement speed.
5. The order detection scheduling method according to claim 2, characterized in that: The step of determining the detection time of each detection point detected by the stylus based on the stylus detection path information and the stylus detection speed comprises: Extracting the approaching and retracting distance corresponding to each of the detection points from the stylus detection path information; Determine the detection time of each detection point based on the approach and retraction distance of each detection point and the detection speed of the stylus; The detection time is obtained by adding up the detection durations.
6. The order detection scheduling method according to claim 1, characterized in that: The scheduling of the to-be-scheduled orders based on the detection running time includes: Get the current test schedule data table; Determining a target time period for the inspection of the to-be-scheduled order in the inspection scheduling data table based on the inspection running time; The to-be-scheduled orders are scheduled based on the target time period.
7. The order detection scheduling method according to any one of claims 1 to 6, characterized in that: The obtaining of a part detection program based on the part type in the part information includes: Acquire file information of a target part based on the part information, and display a graphic corresponding to the target part according to the file information; Identifying a plurality of detection points pre-set on the graphic surface, and obtaining a plurality of first position information corresponding to the plurality of detection points; Calculating each of the first position information respectively according to the approaching back-off distance to obtain a plurality of the second position information corresponding to a plurality of approaching back-off points, wherein the approaching back-off point is a point separated from the graphic surface by a first safety distance, and the approaching back-off distance is greater than or equal to the first safety distance; Calculating a plurality of vector directions corresponding to a plurality of the detection points according to a plurality of the first position information, wherein the plurality of the first position information, the plurality of the second position information and the plurality of the vector directions constitute detection position information; Acquire a first sequence of a plurality of detection points, acquire a preset second safety distance, and calculate third position information corresponding to each safety point according to the second safety distance, each approaching backoff point, and each second position information corresponding to each approaching backoff point; wherein the second safety distance is greater than the approaching backoff distance; Generate a second sequence according to the first sequence, and connect all the detection points, all the approximate back-off points, and all the safety points in series according to the second sequence to generate a motion trajectory; wherein the first sequence is an ordering of a plurality of the detection points pre-set in sequence on the graphic surface, and the second sequence is an ordering of all the detection points, all the approximate back-off points, and all the safety points; Receiving type information of the numerical control device input by the user, displaying a list containing a plurality of selectable analog detection probes according to the type information, and acquiring the analog detection probe selected from the list; Perform simulation processing according to the simulation detection probe and the motion trajectory to detect whether the simulation detection probe collides with the graphic; If the simulation detection probe does not collide with the graphic, a part detection program including parameter information of the simulation detection probe and the detection position information is output.
8. A scheduling device for order detection, characterized in that: include: A determination module is used to determine the parts information corresponding to the order to be scheduled; An acquisition module, for acquiring a part detection program based on the part type in the part information, wherein the part detection program includes probe detection path information, probe detection speed, probe fast moving speed, probe replacement times and probe rotation times of the target part; An estimation module, for estimating the detection running time of the target part based on the detection path information of the stylus, the detection speed of the stylus, the rapid moving speed of the stylus, the number of stylus changes and the number of stylus rotation angles; A scheduling module is used to schedule the orders to be scheduled based on the detection running time.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the order detection scheduling method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the order detection scheduling method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Production order arranging system and method
CN101556660A
Numerical control equipment on-machine detection program generation method and device and storage medium
CN113791580A
Target material detection method, device and equipment and storage medium
CN115356493A
Computing device and method for outputting programs of a workpiece
US20160147218A1
