Workpiece inspection methods, devices, equipment and media
By implementing a workpiece inspection method on the EDM machine, the problems of error and low efficiency caused by the lack of inspection function on the EDM machine are solved, and efficient workpiece inspection and report generation are achieved, thereby improving processing efficiency.
Patent Information
- Application Number
- CN202411903174.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2044-12-23
AI Technical Summary
Existing EDM machines lack inspection capabilities, requiring workpieces to be moved to a coordinate measuring machine for inspection, resulting in repeated positioning deviations and errors in inspection results, as well as low processing efficiency.
The workpiece inspection method is implemented on the EDM machine. By acquiring preset point information and detection probes, the method detects whether there are adjacent points, simulates path interference, uses current touch sensing to detect points, generates and stores point detection reports, and presents them on the front-end page.
It avoids detection errors caused by repeated positioning, improves processing efficiency, shortens processing time, and enables accurate storage and presentation of point detection reports.
Smart Images

Figure CN119794484B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mold processing technology, and in particular to a workpiece inspection method, apparatus, equipment and medium. Background Technology
[0002] Currently, EDM (Electrical Discharge Machining Machine) equipment lacks inspection capabilities. To inspect the discharge effect of a workpiece and determine if there are any issues like incomplete positioning or overcutting, the workpiece must be moved from the EDM machine to a coordinate measuring machine (CMM). This operation leads to repeated workpiece positioning and centering, potentially causing discrepancies in the workpiece coordinates between the two measurements, resulting in inaccurate inspection results. Furthermore, the workpiece transfer and inspection operation is time-consuming, leading to low processing efficiency. Therefore, a workpiece inspection technology is urgently needed to solve these problems. Summary of the Invention
[0003] This invention provides a workpiece inspection method, device, and medium to solve the problems of errors caused by moving the workpiece during inspection in the prior art, as well as the resulting low processing efficiency.
[0004] A workpiece inspection method, comprising:
[0005] After machining the machining points in the mold workpiece, if a workpiece inspection command is received, the preset point information and inspection probe corresponding to each point to be tested are obtained according to the workpiece inspection command.
[0006] Based on all the preset point information, detect whether there are adjacent points for all the points to be tested. If there are no adjacent points, obtain the point detection path corresponding to each of the points to be tested.
[0007] Based on the simulation of all the point detection paths, if there is no path interference, then based on the point detection path and the detection probe, the mold workpiece is detected by current touch sensing to obtain the point detection result corresponding to each of the points to be tested.
[0008] Obtain target point information corresponding to each of the test points; determine the point detection report corresponding to the test point based on the target point information and point detection results corresponding to the same test point; and store the point detection report in a preset location.
[0009] The point detection reports are retrieved from preset locations using a transaction middleware and parsed to present all the point detection reports on the front-end page.
[0010] In one embodiment, before obtaining the preset point information and detection probe corresponding to each test point according to the workpiece detection command, the method further includes:
[0011] Obtain the point mark information corresponding to each of the processing points of the mold workpiece, and classify all the processing points using an EDM machine and the point mark information to obtain the point classification result corresponding to each of the processing points;
[0012] The processing points are colored based on the point classification results to obtain the rendering area corresponding to the point classification results.
[0013] The test points are determined from all the point classification results based on the rendered area.
[0014] In one embodiment, before classifying all the processing points using an EDM machine and the point marking information to obtain the point classification result corresponding to each processing point, the method further includes:
[0015] Determine the coordinates of the points based on the point marker information;
[0016] Based on all the said point coordinates, determine the triaxial coordinate difference and coordinate distance between the points corresponding to each of the said point coordinates;
[0017] Based on all the three-axis coordinate differences and all the coordinate distances, detect whether the points corresponding to each of the point coordinates are reasonable;
[0018] If all points are reasonable, then the point corresponding to the coordinates of the point will be determined as the processing point.
[0019] If at least one point is unreasonable, after issuing an alarm message and providing the reference range for the point, the new point coordinates are received, and the point corresponding to the new point coordinates is determined as the processing point.
[0020] In one embodiment, after detecting whether there are adjacent points for all the points to be tested, the method further includes:
[0021] If there are adjacent points, then generate an adjacent detection path corresponding to the adjacent points based on all the adjacent points corresponding to the point to be tested;
[0022] The detection probe and the adjacent detection path are used to detect all the adjacent points to obtain the detection results corresponding to each of the adjacent points.
[0023] In one embodiment, detecting whether there are adjacent points among all the points to be tested includes:
[0024] Based on the preset point information of all the points to be measured, determine the triaxial coordinate difference and coordinate distance between all the points to be measured;
[0025] Obtain adjacent specified ranges, compare the triaxial coordinate difference and coordinate distance between the points to be measured with the adjacent specified ranges, and obtain the range comparison result;
[0026] When the range comparison result indicates that the three-axis coordinate difference and its coordinate distance are within the adjacent specified range, the point to be measured is determined to be an adjacent point;
[0027] When the range comparison result indicates that the difference between the three axes and the distance between them are outside the specified adjacent range, it is determined that the point to be measured is not an adjacent point.
[0028] In one embodiment, the step of performing point detection on the mold workpiece based on the point detection path and the detection probe through current touch sensing to obtain point detection results corresponding to each of the points to be measured includes:
[0029] A preset safe distance is obtained, and the detection probe is controlled to move to the point to be tested at a first moving speed to the preset safe distance through the point detection path;
[0030] When the detection probe moves to the preset safe distance, a second moving speed is obtained, and the moving speed of the detection probe is controlled to perform point detection on the mold workpiece at the second moving speed to obtain the point detection result; the first moving speed is greater than the second moving speed.
[0031] In one embodiment, determining the point detection report corresponding to the point to be measured based on the target point information and point detection results corresponding to the same point to be measured includes:
[0032] The coordinate information in the target point information corresponding to the same point to be measured is compared with the coordinate information in the point detection result to obtain coordinate comparison information;
[0033] A point detection report is generated based on the coordinate comparison information of the point to be tested.
[0034] A workpiece inspection device, comprising:
[0035] The instruction acquisition module is used to acquire preset point information and detection probes corresponding to each point to be tested according to the workpiece detection instruction if a workpiece detection instruction is received after machining the machining points in the mold workpiece.
[0036] The path determination module is used to detect whether there are adjacent points for all the preset point information. If there are no adjacent points, the module obtains the point detection path corresponding to each of the points to be tested.
[0037] The point detection module is used to simulate whether there is path interference based on all the point detection paths. If there is no path interference, the point detection module performs point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain the point detection result corresponding to each of the points to be tested.
[0038] The report generation module is used to obtain target point information corresponding to each of the test points, determine the point detection report corresponding to the test point based on the target point information and point detection results corresponding to the same test point, and store the point detection report in a preset location.
[0039] The report display module is used to retrieve the point detection reports from a preset location through a transaction middleware, parse the point detection reports, and present all the point detection reports on the front-end page.
[0040] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor being used to perform the workpiece inspection method described above.
[0041] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described workpiece inspection method.
[0042] The aforementioned workpiece inspection method, apparatus, equipment, and medium, in the workpiece inspection method of this invention, through workpiece inspection instructions, realize the determination of the points to be tested and the determination of preset point information, thereby determining the probe used for detection, thus realizing the detection of adjacent points, and further realizing the determination of the point detection path. Through the point detection path and the detection probe, the point detection is realized based on current touch sensing, thus realizing the acquisition of point detection results, realizing the inspection of mold workpieces on the EDM machine, avoiding errors in detection results caused by repeated positioning, thereby shortening processing time and improving processing efficiency. Through the target point information and point detection results corresponding to the same point to be tested, point detection reports for different points to be tested are generated, thus realizing the storage of point detection reports, and further realizing the presentation of point detection reports on the front-end page. Attached Figure Description
[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a flowchart of a workpiece inspection method according to an embodiment of the present invention;
[0045] Figure 2 This is a schematic diagram of a workpiece inspection device according to an embodiment of the present invention. Detailed Implementation
[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] In one embodiment, such as Figure 1 As shown, a workpiece inspection method is provided, including the following steps:
[0048] S10: After machining the machining points in the mold workpiece, if a workpiece inspection command is received, the preset point information and inspection probe corresponding to each test point are obtained according to the workpiece inspection command.
[0049] In essence, a mold workpiece refers to a component that undergoes various processing techniques during mold manufacturing to form the final shape and structure of the mold. A machining point refers to the location on the mold workpiece that requires electrical discharge machining (EDM). A workpiece inspection command is used to inspect the machining effect of the EDM-machined mold workpiece; the workpiece inspection command includes the point to be measured and the probe used to detect the point. Preset point information refers to information related to the point to be measured, such as the coordinates of the point. A detection probe is a tool used to detect the point to be measured, such as a probe or a reference ball.
[0050] Specifically, after machining the machining points in the mold workpiece, if a workpiece inspection command is received, the preset point information and inspection probe corresponding to each test point are obtained according to the workpiece inspection command. That is, after the mold workpiece is machined, it is checked whether a workpiece inspection command for the mold workpiece has been received. When a workpiece inspection command is received, the preset point information corresponding to each test point is obtained from the information storage location through the test points in the workpiece inspection command, and the inspection probe corresponding to each test point is obtained from the workpiece inspection command.
[0051] S20: Based on all the preset point information, detect whether there are adjacent points for all the points to be tested. If there are no adjacent points, obtain the point detection path corresponding to each of the points to be tested.
[0052] Understandably, adjacent points refer to two or more test points whose processing differences and point distances meet the requirements. The point detection path refers to the movement path of the detection probe when detecting a point.
[0053] Specifically, based on all preset point information, the system detects whether any of the test points are adjacent. This involves calculating the coordinate difference and distance between each pair of test points, then obtaining a specified adjacent range, and comparing the coordinate difference between each pair of test points with the difference range within that range. Simultaneously, the distance between each pair of test points is compared with the distance range within that range. If both the coordinate difference and the distance are within the specified distance range, the two test points are determined to be adjacent. If either condition is not met (i.e., the coordinate difference is not within the difference range, or the distance is not within the distance range), they are determined to be non-adjacent. If no adjacent points exist, a point detection path is obtained for each test point. In other words, when no adjacent points exist among the test points, a point detection path is obtained for each test point.
[0054] In another embodiment, if there are some adjacent points and some non-adjacent points among all the test points, they are processed in different ways: adjacent detection paths are obtained for adjacent points, and point detection paths corresponding to each test point are obtained for non-adjacent points.
[0055] S30: Simulate whether there is path interference based on all the point detection paths. If there is no path interference, then based on the point detection paths and the detection probe, perform point detection on the mold workpiece through current touch sensing to obtain the point detection results corresponding to each of the points to be tested.
[0056] Understandably, path interference refers to the situation where, during mold workpiece point detection, the movement path of the detection probe collides or interferes with the structure, fixtures, or other obstacles of the mold workpiece. Current contact sensing refers to obtaining relevant information by physically contacting a detection element with a current-carrying conductor and utilizing the principle of electromagnetic induction. Point detection results refer to the coordinate information of each measured point.
[0057] Specifically, the system simulates the existence of path interference based on all point detection paths. This involves acquiring three-dimensional geometric models corresponding to the mold workpiece, the detection probe, the fixture, and the platform. Then, collision detection algorithms from computer graphics are used to simulate whether interference will occur along the detection paths. For example, bounding box algorithms create bounding boxes (such as axis-aligned bounding boxes or directional bounding boxes) for each component of the mold workpiece and the detection system. During the detection path simulation, it is determined whether these bounding boxes intersect. If they intersect, further precise geometric collision detection is performed. If no path interference exists, point detection on the mold workpiece is performed using current-sensored detection based on the point detection paths and the detection probe. Specifically, the detection probe is controlled to approach the target point on the mold workpiece along the point detection path. When it reaches the target position, current is applied, and the coordinates of the target point are detected using current-sensored detection, thus obtaining the point detection result corresponding to that target point. By performing coordinate detection on all target points in this way, the point detection results corresponding to each target point can be obtained.
[0058] S40: Obtain target point information corresponding to each of the test points, determine the point detection report corresponding to the test point based on the target point information and point detection results corresponding to the same test point, and store the point detection report in a preset location.
[0059] Understandably, target point information refers to the machining requirements and coordinate positions of that location, such as accuracy requirements. A point detection report is an analysis and record of the detection results for the points to be measured in the mold workpiece, including the coordinate positions of the points to be measured, target point information, point detection results, and point comparison results. A preset position refers to a pre-set storage location used to store point detection reports.
[0060] Specifically, the system acquires target point information corresponding to each test point. Then, it determines the target point information and detection results corresponding to the same test point, and compares these two sets of information, i.e., calculating the difference between them, to obtain the point comparison result corresponding to that test point. Next, it generates a point detection report based on the test point, the point comparison result, the target point information, and the detection results, and stores the point detection report in a preset location according to a preset storage path.
[0061] S50: Retrieve the point detection reports from the preset location through the transaction middleware, parse the point detection reports, and present all the point detection reports on the front-end page.
[0062] In essence, transaction middleware refers to the MTS service. MTS (Microsoft Transaction Server) is a component-based transaction processing system used to manage and coordinate transactions in distributed applications. In scenarios involving fetching files from an EDM machine for testing, it can act as middleware to coordinate file fetching operations and ensure data integrity and accuracy. For example, when fetching testing files from an EDM machine, MTS can treat the process as a transaction, ensuring that the file fetching operation (including establishing connections, retrieving files, and transferring files) either completes entirely successfully or fails entirely and rolls back.
[0063] Specifically, point detection reports are retrieved from preset locations using a transaction middleware. This involves retrieving the reports via the configured middleware, parsing them, and then displaying the parsed reports on the front-end page. During report retrieval, access permissions can be verified. If permissions are granted, preset folders are traversed, and point detection reports are filtered based on criteria such as filename and file type. These reports are then parsed using a preset parsing tool.
[0064] In the workpiece inspection method of this invention, the determination of the test point and the preset point information are realized through workpiece inspection instructions, thereby determining the probe to be used for inspection, thus realizing the inspection of adjacent points, and further realizing the determination of the point inspection path. Through the point inspection path and the inspection probe, the point is detected based on current touch sensing, thus realizing the acquisition of point inspection results, enabling the inspection of mold workpieces on the EDM machine, avoiding errors in the inspection results caused by repeated positioning, thereby shortening processing time and improving processing efficiency. By using the target point information and point inspection results corresponding to the same test point, point inspection reports for different test points are generated, thus realizing the storage of point inspection reports, and finally realizing the presentation of the point inspection reports on the front-end page.
[0065] In one embodiment, before step S10, that is, before obtaining the preset point information and detection probe corresponding to each test point according to the workpiece detection instruction, the method further includes:
[0066] S101, obtain the point mark information corresponding to the mold workpiece and each of the processing points, and classify all the processing points using the EDM machine and the point mark information to obtain the point classification result corresponding to each of the processing points.
[0067] S102, color rendering is performed on all the processing points based on the point classification results to obtain the rendering area corresponding to the point classification results.
[0068] S103, determine the test points in all the point classification results based on the rendering area.
[0069] Understandably, point marking information refers to information marked during the CAM (Computer-Aided Manufacturing) stage, such as machining difficulties or key points, and precision requirements during machining. Point classification results refer to the classification level of machining points, such as Class I, Class II, and Class III. Rendering area refers to the colored area around the machining point and a certain surrounding area. An Electrical Discharge Machining Machine (EDM) is a special type of machine tool. Its basic principle is based on the electro-erosion phenomenon during pulsed spark discharge between the electrode and the workpiece to remove excess metal, thereby achieving the purpose of machining the workpiece.
[0070] Specifically, before acquiring the preset point information and detection probes corresponding to each test point according to the workpiece inspection instructions, the point marking information corresponding to each machining point of the mold workpiece is acquired. All machining points are then classified using the EDM machine and the point marking information. That is, the machining points are classified according to the point marking information in the EDM machine, based on requirements such as machining position and machining accuracy, thus obtaining the point classification results corresponding to each machining point. Furthermore, all machining points and point marking information can be displayed on the EDM machine's screen for personnel to classify the machining points, receive the classification information, and confirm the classification results as the point classification results corresponding to each machining point. Further, color rendering is applied to all machining points based on the point classification results; that is, preset rendering rules are acquired, and the machining points in the point classification results are color-rendered according to the preset rendering rules, thus obtaining the rendering area corresponding to the point classification results. Next, based on the rendering area, the test points are determined from all the point classification results. This involves obtaining preset point detection rules, and then using these rules to filter out a subset of processing points from different rendering areas, identifying these processed points as the test points. Alternatively, the rendering area can be displayed on the front-end page, and the selected points from each rendering area can be received from the front-end page; these processed points can then be identified as the test points.
[0071] In this embodiment, all machining points are classified using point marking information and an EDM machine, thereby obtaining the classification results and enabling color rendering of the machining points, thus determining the rendering area. The selection of the points to be tested is achieved through the rendering area, avoiding the need to inspect all machining points and improving the efficiency of workpiece inspection.
[0072] In one embodiment, before step S101, that is, before classifying all the processing points using the EDM machine and the point marking information to obtain the point classification result corresponding to each processing point, the method further includes:
[0073] S1011, Determine the coordinates of the point based on the point marker information.
[0074] S1012, Based on all the said point coordinates, determine the three-axis coordinate difference and coordinate distance between the points corresponding to each of the said point coordinates.
[0075] S1013, based on all the differences between the three axes and all the coordinate distances, detect whether the points corresponding to the coordinates of each point are reasonable.
[0076] S1014, if all points are reasonable, then the point corresponding to the coordinates of the point is determined as the processing point.
[0077] S1015, if at least one point is unreasonable, after issuing an alarm message and feeding back the point reference range, receive the new point coordinates, and determine the point corresponding to the new point coordinates as the processing point.
[0078] Understandably, point coordinates are used to characterize the position of a machining point on the machining surface. These coordinates are determined relative to the workpiece or relative to the EDM machine, depending on the actual situation. The three-axis coordinate difference refers to the difference in coordinates of the machining point along the X, Y, and Z axes. Coordinate distance refers to the distance between two machining points, and the distance of a machining point from the edge of the workpiece.
[0079] Specifically, before classifying all the processing points, the point coordinates are determined based on the point marker information, that is, the coordinates corresponding to each point are determined through the coordinate information in the point marker information. Then, based on all point coordinates, the three-axis coordinate differences and coordinate distances between the points corresponding to each point coordinate are determined, that is, the differences between each pair of point coordinates are calculated, specifically the differences in coordinates on the X-axis, Y-axis, and Z-axis, and the coordinate distance between two point coordinates is calculated. The coordinate distance from each point coordinate to the edge of the workpiece is also calculated. In this way, the three-axis coordinate differences and coordinate distances between all points can be obtained. Furthermore, based on all three-axis coordinate differences and all coordinate distances, the reasonableness of the points corresponding to each point coordinate is checked, i.e., a preset reasonable range is obtained. The preset reasonable range includes the difference range and the distance range. The three-axis coordinate differences and coordinate distances are compared with the difference range and distance range in the preset reasonable range, respectively. That is, the three-axis coordinate differences are compared with the difference range to determine whether the three-axis coordinate differences are within the difference range, and the coordinate distances are compared with the distance range to determine whether the coordinate distances are within the distance range. Finally, the coordinate distance of the point coordinates from the workpiece edge is compared with the edge threshold. If the three-axis coordinate differences are not within the difference range, and the coordinate distances are not within the distance range, and the coordinate distance of the point coordinates is greater than the edge threshold, then the point position is determined to be reasonable. If the three-axis coordinate differences are not within the difference range, but the coordinate distances are within the distance range; or, the three-axis coordinate differences are within the difference range, but the coordinate distances are not within the distance range; or, the three-axis coordinate differences are within the difference range, and the coordinate distances are within the distance range, and the coordinate distance of the point coordinates is less than or equal to the edge threshold, then the point position is determined to be unreasonable. Specifically, if the coordinate distance of a point is less than or equal to an edge threshold, the point is determined to be unreasonable. Furthermore, if the coordinate distance between this point and another point is within the specified range and the coordinate distance of this point is less than or equal to the edge threshold, the point is deleted to retain the other point. If all points are reasonable, the points corresponding to each point's coordinates are designated as processing points. If at least one point is unreasonable, an alarm message is issued through a preset channel, providing a reference range for the point. The new point coordinates are received, and the point corresponding to the new coordinates is designated as a processing point. This process is repeated to modify all unreasonable points until all points are reasonable and the points corresponding to the new coordinates are designated as processing points.
[0080] In this embodiment, the coordinates of the points are determined through point marking information, and then the differences in the three-axis coordinates and the distances between all points are calculated. By checking whether the points corresponding to each point coordinate are reasonable based on all the differences in the three-axis coordinates and all the distances, the reasonableness of the points is evaluated, thereby determining the processing points and replacing unreasonable points, thus ensuring that all points are reasonable.
[0081] In one embodiment, step S20, namely detecting whether there are adjacent points for all the points to be tested, includes:
[0082] S201, Based on the preset point information of all the points to be measured, determine the three-axis coordinate difference and coordinate distance between all the points to be measured.
[0083] S202, obtain the adjacent specified range, compare the triaxial coordinate difference and coordinate distance between the points to be measured with the adjacent specified range, and obtain the range comparison result.
[0084] S203, when the range comparison result indicates that the three-axis coordinate difference and its coordinate distance are within the adjacent specified range, the point to be measured is determined to be an adjacent point.
[0085] S204, when the range comparison result indicates that the three-axis coordinate difference and its coordinate distance are outside the adjacent specified range, it is determined that the point to be measured is not an adjacent point.
[0086] In essence, the three-axis coordinate difference refers to the difference between the values on each of the three coordinate axes. Coordinate distance refers to the distance between two points to be measured. The adjacent range is used to assess whether the points to be measured are adjacent, and includes the range of the three-axis difference and the range of the distance.
[0087] Specifically, after obtaining the preset point information, the three-axis coordinate differences and coordinate distances between all the points to be measured are determined based on the preset point information of all the points to be measured. That is, the points to be measured corresponding to the same processing surface are first found through the preset point information, and the preset point information on the same processing surface is divided into one category. In this way, all the preset point information is divided. Then, the three-axis coordinate differences and coordinate distances between the preset point information on the same processing surface are calculated. That is, the coordinate differences between the X-axis, Y-axis and Z-axis of each pair of preset point information are calculated respectively, and the distances between each pair of points to be measured are calculated according to the preset point information. Thus, the three-axis coordinate differences and coordinate distances between all the points to be measured can be obtained. Furthermore, adjacent specified ranges are obtained, and the triaxial coordinate differences and coordinate distances between the test points are compared with the adjacent specified ranges. Specifically, the triaxial coordinate differences and coordinate distances between each pair of test points are compared with the triaxial difference range and distance range of the adjacent specified ranges. This determines whether the triaxial coordinate differences are within the triaxial difference range and whether the coordinate distances are within the distance range, thus obtaining the range comparison results. When the range comparison results indicate that the triaxial coordinate differences and coordinate distances are within the adjacent specified ranges (i.e., the triaxial coordinate differences are within the triaxial difference range and the coordinate distances are within the distance range), the two test points are determined to be adjacent points. When the range comparison results indicate that the triaxial coordinate differences and coordinate distances are outside the adjacent specified ranges (i.e., the triaxial coordinate differences are not within the triaxial difference range and the coordinate distances are within the distance range, or the triaxial coordinate differences are within the triaxial difference range and the coordinate distances are not within the distance range), the two test points are determined to be not adjacent points. In this context, it can be understood that adjacent points can be two or more test points, without being limited to two. If the same test point meets the criteria for adjacent points of two other test points, and the other two test points are not adjacent points, then the test point with the smaller difference in its three-axis coordinates and its coordinate distance among the other two test points is identified as an adjacent point. For example, if point a is adjacent to both points b and c, and points b and c are not adjacent points, then point a is identified as an adjacent point with the smaller difference in its three-axis coordinates and its coordinate distance among points b and c.
[0088] In this embodiment, the triaxial coordinate difference and coordinate distance between any two test points are calculated using all preset point information. By comparing the triaxial coordinate difference and coordinate distance with adjacent specified ranges, the range comparison results are obtained, thereby enabling the assessment of whether adjacent points exist.
[0089] In one embodiment, after step S20, that is, after detecting whether there are adjacent points for all the points to be tested, the method further includes:
[0090] S60, if there are adjacent points, then generate an adjacent detection path corresponding to the adjacent points based on all the adjacent points corresponding to the point to be tested.
[0091] S70, all adjacent points are detected by the detection probe and the adjacent detection path to obtain the point detection result corresponding to each of the adjacent points.
[0092] Understandably, adjacent detection paths are used to detect the probe movement paths of two adjacent test points.
[0093] Specifically, after detecting whether there are adjacent points for all the points to be tested, if there are adjacent points, that is, the difference between the three axes is within the range of the three-axis difference value and the coordinate distance is within the range of the distance value, then, based on all the adjacent points corresponding to the points to be tested, adjacent detection paths corresponding to the adjacent points are generated, that is, the path generation rules are obtained. The paths for all adjacent points are planned according to the path generation rules and the coordinate information of all adjacent points, that is, the point detection order is planned according to the coordinate information. Then, the paths for all adjacent points are generated according to the point detection order and the path generation rules, thereby obtaining the adjacent detection paths corresponding to the adjacent points. Furthermore, all adjacent points are detected using a detection probe and adjacent detection paths. Specifically, the detection probe is controlled to detect the coordinates of adjacent points along the adjacent detection paths. The probe moves at a first speed and a preset safety distance, then slowly approaches the adjacent point at a second speed for detection. After obtaining the detection result, the probe retracts to the preset safety distance and moves above another adjacent point. It then slowly approaches this second adjacent point at the second speed for detection, and retracts again after obtaining the result. If there are other adjacent points, the probe moves above them; otherwise, it returns to a safe point. By detecting adjacent points in this way, the detection results corresponding to each adjacent point can be obtained.
[0094] In one specific embodiment, there are two sets of adjacent points: point a and point b. Points a and b are respectively located near (i.e., at a preset safe distance) at points A and B, and far from points X and Y. The detection probe is moved from the safe point to point X, and then controlled to move at a first speed along the adjacent detection path to point A. Next, the speed of the detection probe is adjusted to a second speed, and controlled to move at the second speed along the adjacent detection path to point a, to perform coordinate detection on the adjacent points using current-sensing touch sensing, thereby obtaining the point detection result. Then, the detection probe is controlled to return to point A at the second speed. Next, the detection probe is controlled to move from point A to point B, and then controlled to move at the second speed along the adjacent detection path to point b, to perform coordinate detection on the adjacent points using current-sensing touch sensing, thereby obtaining the point detection result. Then, the detection probe is controlled to return to point B at the second speed, and then controlled to return to point Y at the first speed. This embodiment is for illustration only and does not imply limitation.
[0095] In this embodiment, when the points to be tested are adjacent points, adjacent detection paths are generated. By using the detection probe and adjacent detection paths to detect adjacent points, the detection results are obtained, thus avoiding the need for the detection probe to retreat to a distant point to detect another adjacent point, improving detection efficiency and shortening processing time.
[0096] In one embodiment, step S30, namely, based on the point detection path and the detection probe, performs point detection on the mold workpiece through current touch sensing to obtain point detection results corresponding to each of the points to be measured, includes:
[0097] S301, Obtain a preset safety distance, and control the detection probe to move to the test point at a first moving speed to the preset safety distance through the point detection path.
[0098] S302, when the detection probe moves to the preset safe distance, a second moving speed is obtained, and the moving speed of the detection probe is controlled to perform point detection on the mold workpiece at the second moving speed to obtain the point detection result; the first moving speed is greater than the second moving speed.
[0099] Understandably, the preset safety distance is used to avoid collision between the probe and the workpiece. The first moving speed refers to the speed at which the probe moves to the safety distance. The second moving speed refers to the speed at which the probe moves from the safety distance to the detection point. The first moving speed is greater than the second moving speed.
[0100] Specifically, when there is no path interference, a preset safety distance is obtained. Then, the detection probe is controlled to move according to the point detection path, moving towards the point to be tested at a first moving speed until the preset safety distance is reached. Next, when the detection probe reaches the preset safety distance, a second moving speed is obtained, and the moving speed of the detection probe is changed from the first moving speed to the second moving speed, so that the detection probe moves slowly towards the point to be tested. After moving to the point to be tested, the coordinates of the point to be tested are detected by current touch sensing, thereby obtaining the point detection result corresponding to the point to be tested. In this way, all points to be tested are detected, thereby obtaining the point detection result corresponding to each point to be tested.
[0101] In one specific embodiment, there are two test points, a and c, on the mold workpiece. Point b is located at a preset safety distance above point a, and point d is located at a preset safety distance above point c. Points e and f are located above points b and d, respectively. When the detection probe detects test points a and c, it moves from the safety point to point e, then quickly moves to point b at a first speed. Next, it moves from point b to point a at a second speed for detection. After the detection result is obtained, it returns to point b at the second speed, and then returns to point e at the first speed. The detection probe is then controlled to move from point e to point f, then quickly moves to point d at the first speed. Next, it moves from point d to point b at the second speed for detection. After the detection result is obtained, it returns to point d at the second speed, and then returns to point f at the first speed. This completes the detection of test points a and c. This embodiment is for illustration only and does not imply limitation.
[0102] In this embodiment, by using a preset safety distance and a second moving speed, the coordinates of the point to be measured are detected, thereby obtaining the detection results and avoiding collisions between the probe and the workpiece. The first moving speed enables rapid probe movement, improving detection efficiency.
[0103] In one embodiment, step S40, namely determining the point detection report corresponding to the point to be tested based on the target point information and point detection results corresponding to the same point to be tested, includes:
[0104] S401, compare the coordinate information in the target point information corresponding to the same test point with the coordinate information in the point detection result to obtain coordinate comparison information.
[0105] S402, Generate the point detection report based on the coordinate comparison information of the point to be measured.
[0106] Understandably, coordinate comparison information refers to the difference between various coordinate positions.
[0107] Specifically, after obtaining the target point information, the target point information and detection results corresponding to each target point are matched with the points to be measured, thereby determining the target point information and detection results corresponding to the same target point. Then, the coordinate information in the target point information and the coordinate information in the detection results corresponding to the same target point are compared, that is, the difference between the coordinate information in the target point information and the coordinate information in the detection results is calculated to obtain the coordinate comparison information corresponding to that target point. For example, if the target point information is (10, 22, 30) and the detection results are (10, 21, 29), then the coordinate comparison information is (0, -1, -1). This embodiment is only for illustration and does not represent the actual detection process. In this way, all target points are detected to obtain the coordinate comparison information corresponding to each target point. Furthermore, a point detection report is generated based on the coordinate comparison information of the points to be measured. That is, the coordinate comparison information, point coordinates, target point information, and point detection results of all points to be measured are organized to obtain a point detection report. Alternatively, a preset report template is obtained, and the coordinate comparison information, point coordinates, target point information, and point detection results of the points to be measured are filled into the template. Or, the point coordinates, target point information, point detection results, and coordinate comparison information of the points to be measured are filled into the template to obtain a point detection report.
[0108] In this embodiment, by comparing the target point information and the point detection results, the coordinate comparison results are obtained, thereby realizing the detection of the processing effect of the point to be tested, and then realizing the generation of the point detection report, so that the target personnel can clearly know the discharge effect.
[0109] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0110] In one embodiment, a workpiece inspection device is provided, which corresponds one-to-one with the workpiece inspection method described in the above embodiments. For example... Figure 2 As shown, the workpiece inspection device includes an instruction acquisition module 10, a path determination module 20, a point detection module 30, a report generation module 40, and a report display module 50. Detailed descriptions of each functional module are as follows:
[0111] The instruction acquisition module 10 is used to acquire preset point information and detection probes corresponding to each point to be tested according to the workpiece detection instruction if a workpiece detection instruction is received after processing the processing points in the mold workpiece.
[0112] The path determination module 20 is used to detect whether there are adjacent points for all the preset point information. If there are no adjacent points, the point detection path corresponding to each of the points to be tested is obtained.
[0113] The point detection module 30 is used to simulate whether there is path interference based on all the point detection paths. If there is no path interference, the point detection module 30 performs point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain the point detection result corresponding to each of the points to be tested.
[0114] The report generation module 40 is used to obtain target point information corresponding to each of the test points, determine the point detection report corresponding to the test point based on the target point information and point detection results corresponding to the same test point, and store the point detection report in a preset location.
[0115] The report display module 50 is used to retrieve the point detection reports from a preset location through a transaction middleware, and parse the point detection reports to present all the point detection reports on the front-end page.
[0116] In one embodiment, the instruction acquisition module 10 further includes:
[0117] The point classification unit is used to obtain the point mark information corresponding to each of the processing points of the mold workpiece, and to classify all the processing points by the EDM machine and the point mark information to obtain the point classification result corresponding to each of the processing points.
[0118] A rendering area unit is used to perform color rendering on all the processing points based on the point classification results to obtain a rendering area corresponding to the point classification results.
[0119] The test point unit is used to determine the test point in all the point classification results based on the rendering area.
[0120] In one embodiment, the point classification unit includes:
[0121] The point coordinate subunit is used to determine the point coordinates based on the point marker information.
[0122] The coordinate distance sub-unit is used to determine the three-axis coordinate difference and coordinate distance between points corresponding to each of the said point coordinates, based on all the said point coordinates.
[0123] The point detection subunit is used to detect whether the point corresponding to each point coordinate is reasonable based on all the three-axis coordinate differences and all the coordinate distances.
[0124] The processing point subunit is used to determine the point corresponding to the coordinates of the point as the processing point if all points are reasonable.
[0125] The point replacement subunit is used to receive new point coordinates after issuing an alarm message and feeding back the point reference range if at least one point is unreasonable, and to determine the point corresponding to the new point coordinates as the processing point.
[0126] In one embodiment, the path determination module 20 includes:
[0127] The adjacent detection path module is used to generate an adjacent detection path corresponding to the adjacent point based on all the adjacent points corresponding to the point to be tested if there are adjacent points.
[0128] The point detection result module is used to perform point detection on all the adjacent points through the detection probe and the adjacent detection path, and obtain the point detection result corresponding to each of the adjacent points.
[0129] In one embodiment, the path determination module 20 further includes:
[0130] The three-axis coordinate difference module is used to determine the three-axis coordinate difference and coordinate distance between all the points to be measured based on the preset point information of all the points to be measured.
[0131] The specified range comparison module is used to obtain adjacent specified ranges, compare the triaxial coordinate difference and coordinate distance between the points to be measured with the adjacent specified ranges, and obtain the range comparison result;
[0132] The adjacent point determination module is used to determine the point to be measured as an adjacent point when the range comparison result indicates that the three-axis coordinate difference and its coordinate distance are within the adjacent specified range;
[0133] The "Not Adjacent Points" module is used to determine that the point to be measured is not an adjacent point when the range comparison result indicates that the three-axis coordinate difference and its coordinate distance are outside the specified adjacent range.
[0134] In one embodiment, the point detection module 30 includes:
[0135] The probe moving unit is used to obtain a preset safety distance and control the detection probe to move to the test point at a first moving speed to the preset safety distance through the point detection path;
[0136] The probe detection unit is used to acquire a second moving speed when the detection probe moves to the preset safe distance, control the moving speed of the detection probe to perform point detection on the mold workpiece at the second moving speed, and obtain the point detection result; the first moving speed is greater than the second moving speed.
[0137] In one embodiment, the report generation module 40 includes:
[0138] The coordinate comparison information unit is used to compare the coordinate information in the target point information corresponding to the same point to be measured with the coordinate information in the point detection result to obtain coordinate comparison information;
[0139] The point detection report unit is used to generate the point detection report based on the coordinate comparison information of the point to be tested.
[0140] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor being used to perform the workpiece inspection method described above.
[0141] Specific limitations regarding the computer equipment, processor, and their various units and modules can be found in the above description of the workpiece inspection method, and will not be repeated here. Each module in the aforementioned processor can be implemented entirely or partially through software, hardware, or a combination thereof. Understandably, the processor includes a processor, memory, network interface, and database connected via a device bus. Each module of the processor can be embedded in hardware or independent of the processor, or stored in memory as software, so that the processor can call and execute the operations corresponding to each module. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores operating devices, computer programs, and a database. The internal memory provides an environment for the operation of the operating devices and computer programs in the non-volatile storage media. The database stores the data used in the workpiece inspection method of the above embodiments. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a workpiece inspection method.
[0142] In one embodiment, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described workpiece inspection method.
[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0144] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0145] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A workpiece inspection method, characterized in that, include: After machining the machining points in the mold workpiece, if a workpiece inspection command is received, the preset point information and inspection probe corresponding to each point to be tested are obtained according to the workpiece inspection command. Based on all the preset point information, detect whether there are adjacent points for all the points to be tested. If there are no adjacent points, obtain the point detection path corresponding to each of the points to be tested. Based on the simulation of all the point detection paths, if there is no path interference, then based on the point detection path and the detection probe, the mold workpiece is detected by current touch sensing to obtain the point detection result corresponding to each of the points to be tested. Obtain target point information corresponding to each of the test points; determine the point detection report corresponding to the test point based on the target point information and point detection results corresponding to the same test point; and store the point detection report in a preset location. The point detection reports are retrieved from preset locations using a transaction middleware and parsed to present all the point detection reports on the front-end page.
2. The workpiece inspection method as described in claim 1, characterized in that, Before obtaining the preset point information and detection probe corresponding to each test point according to the workpiece detection command, the method further includes: Obtain the point mark information corresponding to each of the processing points of the mold workpiece, and classify all the processing points using an EDM machine and the point mark information to obtain the point classification result corresponding to each of the processing points; The processing points are colored based on the point classification results to obtain the rendering area corresponding to the point classification results. The test points are determined from all the point classification results based on the rendered area.
3. The workpiece inspection method as described in claim 2, characterized in that, Before classifying all the processing points using the EDM machine and the point marking information to obtain the point classification result corresponding to each processing point, the method further includes: Determine the coordinates of the points based on the point marker information; Based on all the said point coordinates, determine the triaxial coordinate difference and coordinate distance between the points corresponding to each of the said point coordinates; Based on all the three-axis coordinate differences and all the coordinate distances, detect whether the points corresponding to each of the point coordinates are reasonable; If all points are reasonable, then the point corresponding to the coordinates of the point will be determined as the processing point. If at least one point is unreasonable, after issuing an alarm message and providing the reference range for the point, the new point coordinates are received, and the point corresponding to the new point coordinates is determined as the processing point.
4. The workpiece inspection method as described in claim 1, characterized in that, After detecting whether there are adjacent points for all the points to be tested, the method further includes: If there are adjacent points, then generate an adjacent detection path corresponding to the adjacent points based on all the adjacent points corresponding to the point to be tested; The detection probe and the adjacent detection path are used to detect all the adjacent points to obtain the detection results corresponding to each of the adjacent points.
5. The workpiece inspection method as described in claim 1, characterized in that, The detection of whether there are adjacent points for all the points to be tested includes: Based on the preset point information of all the points to be measured, determine the triaxial coordinate difference and coordinate distance between all the points to be measured; Obtain adjacent specified ranges, compare the triaxial coordinate difference and coordinate distance between the points to be measured with the adjacent specified ranges, and obtain the range comparison result; When the range comparison result indicates that the three-axis coordinate difference and its coordinate distance are within the adjacent specified range, the point to be measured is determined to be an adjacent point; When the range comparison result indicates that the difference between the three axes and the distance between them are outside the specified adjacent range, it is determined that the point to be measured is not an adjacent point.
6. The workpiece inspection method as described in claim 1, characterized in that, The step of detecting points on the mold workpiece using current touch sensing based on the point detection path and the detection probe, and obtaining point detection results corresponding to each of the points to be measured, includes: A preset safe distance is obtained, and the detection probe is controlled to move to the point to be tested at a first moving speed to the preset safe distance through the point detection path; When the detection probe moves to the preset safe distance, a second moving speed is obtained, and the moving speed of the detection probe is controlled to perform point detection on the mold workpiece at the second moving speed to obtain the point detection result; the first moving speed is greater than the second moving speed.
7. The workpiece inspection method as described in claim 1, characterized in that, The step of determining the point detection report corresponding to the same point to be tested based on the target point information and point detection results includes: The coordinate information in the target point information corresponding to the same point to be measured is compared with the coordinate information in the point detection result to obtain coordinate comparison information; A point detection report is generated based on the coordinate comparison information of the point to be tested.
8. A workpiece inspection device, characterized in that, include: The instruction acquisition module is used to acquire preset point information and detection probes corresponding to each point to be tested according to the workpiece detection instruction if a workpiece detection instruction is received after machining the machining points in the mold workpiece. The path determination module is used to detect whether there are adjacent points for all the preset point information. If there are no adjacent points, the module obtains the point detection path corresponding to each of the points to be tested. The point detection module is used to simulate whether there is path interference based on all the point detection paths. If there is no path interference, the point detection module performs point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain the point detection result corresponding to each of the points to be tested. The report generation module is used to obtain target point information corresponding to each of the test points, determine the point detection report corresponding to the test point based on the target point information and point detection results corresponding to the same test point, and store the point detection report in a preset location. The report display module is used to retrieve the point detection reports from a preset location through a transaction middleware, parse the point detection reports, and present all the point detection reports on the front-end page.
9. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor being used to perform the workpiece inspection method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the workpiece inspection method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Detection method and system, terminal equipment and computer readable storage medium
CN119148619A
EDM electrode position detection
US6417475B1