Workpiece detection method, device, equipment and medium
By implementing workpiece detection methods on the EDM machine and using detection instructions and probes for point detection, the problems of detection error and inefficiency in the prior art are solved, and efficient workpiece detection and report generation are achieved.
Patent Information
- Application Number
- CN202411903174.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The existing EDM machines lack detection functions, which leads to moving to the three-coordinate measuring machine when inspecting the workpiece, which may lead to repeated positioning errors and inefficient processing efficiency.
A workpiece detection method is provided, which obtains the preset point information and detection probe of the point to be measured through the workpiece detection command, detects whether there are adjacent points at the point to be measured, generates a point detection path, and performs point detection through current touch sensing to generate a detection report.
It avoids detection errors caused by repeated positioning, shortens processing time, improves processing efficiency, and realizes the storage and display of point detection reports.
Smart Images

Figure CN119794484A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mold processing, and in particular to a workpiece detection method, device, equipment and medium. Background Art
[0002] At present, EDM (Electrical Discharge Machining Machine, referred to as EDM) machines do not have a detection function. If you want to detect the discharge effect of the workpiece to determine whether there is a lack of position or overcut, you need to move the workpiece on the EDM machine to a three-dimensional coordinate measuring machine for detection. This operation will cause the workpiece to be repeatedly positioned and divided, resulting in possible deviations in the coordinates of the workpiece twice, which will lead to errors in the detection results. At the same time, the workpiece transfer detection operation will also waste time, resulting in low processing efficiency. Therefore, there is an urgent need for a workpiece detection technology to solve the above problems. Summary of the invention
[0003] The embodiments of the present invention provide a workpiece detection method, device and medium to solve the problems of errors caused by moving the workpiece for detection and low processing efficiency in the prior art.
[0004] A workpiece detection method, comprising: After processing the processing points in the mold workpiece, if a workpiece detection instruction is received, the preset point information and the detection probe corresponding to each point to be measured are obtained according to the workpiece detection instruction; According to all the preset point information, detect whether there are adjacent points for all the points to be measured, and if there are no adjacent points, obtain the point detection path corresponding to each of the points to be measured; Simulate whether there is path interference according to all the point detection paths; if there is no path interference, perform point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain point detection results corresponding to each of the points to be tested; Obtaining target point information corresponding to each of the points to be measured, determining a point detection report corresponding to the point to be measured according to the target point information and the point detection result corresponding to the same point to be measured, and storing the point detection report in a preset location; The point detection report is captured from a preset position through the transaction middleware, and the point detection report is parsed to present all the point detection reports on the front-end page.
[0005] In one embodiment, before acquiring the preset point information and the detection probe corresponding to each point to be tested according to the workpiece detection instruction, the method further includes: Obtaining point marking information corresponding to the mold workpiece and each of the processing points, classifying all of the processing points through the electric spark machine and the point marking information, and obtaining point classification results corresponding to each of the processing points; Performing color rendering on all the processing points according to the point classification result to obtain a rendering area corresponding to the point classification result; The points to be measured in all the point classification results are determined according to the rendering area.
[0006] In one embodiment, the process of classifying all the processing points by using the electric spark machine and the point marking information to obtain the point classification results corresponding to each processing point further includes: Determine the point coordinates according to the point marking information; According to all the point coordinates, determine the three-axis coordinate differences and coordinate distances between the points corresponding to the point coordinates; According to all the three-axis coordinate differences and all the coordinate distances, detecting whether the point corresponding to each of the point coordinates is reasonable; If all the points are reasonable, the point corresponding to the point coordinates is determined as the processing point; If there is at least one unreasonable point, after issuing an alarm message and feeding back a point reference range, new point coordinates are received, and the point corresponding to the new point coordinates is determined as the processing point.
[0007] In one embodiment, after detecting whether all the points to be tested have adjacent points, the method further includes: If there are adjacent points, generating adjacent detection paths corresponding to the adjacent points according to all the adjacent points corresponding to the point to be tested; Point detection is performed on all the adjacent points through the detection probe and the adjacent detection path to obtain point detection results corresponding to each of the adjacent points.
[0008] In one embodiment, the step of detecting whether there are adjacent points among all the points to be tested includes: Determine the three-axis coordinate differences and coordinate distances between all the points to be measured according to the preset point information of all the points to be measured; Acquire an adjacent specified range, compare the three-axis coordinate difference and coordinate distance between the points to be measured with the adjacent specified range, and obtain a range comparison result; When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are within the adjacent specified range, determining that the point to be measured is an adjacent point; When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are outside the adjacent specified range, it is determined that the point to be measured is not an adjacent point.
[0009] In one embodiment, the point detection of the mold workpiece is performed based on the point detection path and the detection probe by current touch sensing to obtain point detection results corresponding to each of the points to be measured, including: Obtaining a preset safety distance, and controlling the detection probe to move to the point to be measured to the preset safety distance at a first moving speed through the point detection path; When the detection probe moves to the preset safety 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 a point detection result; the first moving speed is greater than the second moving speed.
[0010] In one embodiment, determining a point detection report corresponding to the point to be measured based on the target point information and the point detection result corresponding to the same point to be measured includes: Comparing 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; The point detection report is generated according to the coordinate comparison information of the point to be measured.
[0011] A workpiece detection device, comprising: An instruction acquisition module is used for acquiring preset point information and a detection probe 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; A path determination module is used to detect whether there are adjacent points for all the points to be measured according to all the preset point information, and if there are no adjacent points, obtain a point detection path corresponding to each of the points to be measured; A point detection module, used for simulating whether there is path interference according to all the point detection paths, and if there is no path interference, performing point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain point detection results corresponding to each of the points to be tested; A report generation module, used for obtaining target point information corresponding to each of the points to be measured, determining a point detection report corresponding to the point to be measured according to the target point information and the point detection result corresponding to the same point to be measured, and storing the point detection report to a preset location; The report display module is used to grab the point detection report from a preset position through the transaction middleware, and parse the point detection report to present all the point detection reports on the front-end page.
[0012] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the workpiece detection method.
[0013] A computer-readable storage medium stores a computer program, and the computer program implements the workpiece detection method when executed by a processor.
[0014] The above-mentioned workpiece detection method, device, equipment and medium, in the workpiece detection method of the present invention, through the workpiece detection instruction, the determination of the point to be tested and the determination of the preset point information are realized, so as to determine the probe to be used for detection, thereby realizing the detection of adjacent points, and then realizing the determination of the point detection path. Through the point detection path and the detection probe, the point detection according to the current touch induction is realized, and then the acquisition of the point detection result is realized, and the detection of the mold workpiece on the EDM machine is realized, avoiding the error in the detection result caused by repeated positioning, thereby shortening the processing time and improving the processing efficiency. Through the target point information and point detection results corresponding to the same point to be tested, the generation of point detection reports for different points to be tested is realized, thereby realizing the storage of the point detection report, and then realizing the presentation of the point detection report in the front-end page. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0016] Figure 1 is a flow chart of a workpiece detection method in one embodiment of the present invention; Figure 2 It is a principle block diagram of a workpiece detection device in one embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] In one embodiment, if Figure 1 As shown, a workpiece detection method is provided, comprising the following steps: S10: After processing the processing points in the mold workpiece, if a workpiece detection instruction is received, the preset point information and the detection probe corresponding to each point to be measured are obtained according to the workpiece detection instruction.
[0019] Understandably, a mold workpiece refers to a component that is processed by various processing techniques during the mold manufacturing process to form the final shape and structure of the mold. Processing points refer to locations on the mold workpiece that require discharge processing. Workpiece detection instructions are instructions for detecting the processing effect of the mold workpiece after discharge processing. The workpiece detection instructions include the points to be measured and the probes used to detect the points. Preset point information refers to information related to the points to be measured, such as the coordinates of the points to be measured. The detection probe is a tool used to detect the points to be measured, such as a probe, a reference ball, etc.
[0020] Specifically, after processing the processing points in the mold workpiece, if a workpiece detection instruction is received, the preset point information and detection probe corresponding to each point to be measured are obtained according to the workpiece detection instruction. That is, after the processing of the mold workpiece is completed, it is detected whether the workpiece detection instruction for the mold workpiece is received. When the workpiece detection instruction is received, the preset point information corresponding to each point to be measured is obtained from the information storage location through the point to be measured in the workpiece detection instruction, and the detection probe corresponding to each point to be measured is obtained from the workpiece detection instruction.
[0021] S20: According to all the preset point information, detect whether there are adjacent points to all the points to be measured, and if there are no adjacent points, obtain a point detection path corresponding to each of the points to be measured.
[0022] It can be understood that adjacent points refer to two or more points to be tested whose processing difference and point distance meet the requirements. The point detection path refers to the movement path of the detection probe when detecting the point.
[0023] Specifically, according to all preset point information, all the points to be measured are detected whether there are adjacent points, that is, the coordinate difference and point distance between the points to be measured are calculated respectively, and then the adjacent specified range is obtained, and the coordinate difference between the points to be measured is compared with the difference range in the adjacent specified range. At the same time, the point distance between the points to be measured is compared with the distance range in the adjacent specified range. If the coordinate difference between the two points to be measured is within the difference range, and the point distance between the two points to be measured is within the distance range, then the two points to be measured are determined to be adjacent points. If one of the conditions is not met, that is, the coordinate difference between the two points to be measured is not within the difference range, or the point distance between the two points to be measured is not within the distance range, then it is determined that they are not adjacent. If there are no adjacent points, the point detection path corresponding to each point to be measured is obtained, that is, when there are no adjacent points in the points to be measured, the point detection path corresponding to each point to be measured is obtained respectively.
[0024] In another embodiment, if there are some adjacent points and some non-adjacent points among all the points to be tested, they are processed separately in different ways, and adjacent detection paths are obtained for adjacent points, and point detection paths corresponding to each point to be tested are obtained for non-adjacent points.
[0025] S30: Simulate whether there is path interference based on all the point detection paths. If there is no path interference, perform point detection on the mold workpiece through current touch sensing based on the point detection path and the detection probe to obtain point detection results corresponding to each of the points to be tested.
[0026] Understandably, path interference refers to whether there is any collision or interference between the motion path of the detection probe and the structure, fixture or other obstacles of the mold workpiece during the point detection of the mold workpiece. Current touch sensing refers to the acquisition of relevant information by the principle of electromagnetic induction through physical contact between the detection element and the current-carrying conductor. The point detection result refers to the coordinate information of each point to be tested.
[0027] Specifically, whether there is path interference according to the simulation of all point detection paths, that is, obtain the three-dimensional geometric model corresponding to the mold workpiece, the three-dimensional geometric model corresponding to the detection probe, the three-dimensional geometric model corresponding to the fixture, and the three-dimensional geometric model corresponding to the platform, and then use the collision detection algorithm in computer graphics to simulate whether the detection path will interfere. For example, the bounding box algorithm creates 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 process, it is determined whether these bounding boxes intersect. If the bounding boxes intersect, further accurate geometric collision detection is performed. If there is no path interference, based on the point detection path and the detection probe, the mold workpiece is detected by current touch sensing, that is, the detection probe is controlled to approach the point to be measured on the mold workpiece according to the point detection path. When the position is reached, the current is turned on, and the coordinate detection of the point to be measured is performed by current touch sensing, so as to obtain the point detection result corresponding to the point to be measured. In this way, by performing coordinate detection on all the points to be measured in the above manner, the point detection results corresponding to each point to be measured can be obtained.
[0028] S40: Obtain target point information corresponding to each of the points to be measured, determine a point detection report corresponding to the point to be measured based on the target point information and point detection result corresponding to the same point to be measured, and store the point detection report to a preset location.
[0029] Understandably, the target point information refers to the processing requirements and coordinate positions of the processing position, for example, the accuracy requirements. The point detection report is an analysis record of the detection results of the points to be measured in the mold workpiece, including the coordinate positions of the points to be measured, the target point information, the point detection results, and the point comparison results. The preset position refers to a storage location set in advance for storing the point detection report.
[0030] Specifically, the target point information corresponding to each point to be measured is obtained, and then the target point information and point detection result corresponding to the same point to be measured are determined, and the target point information and point detection result corresponding to the same point to be measured are compared, that is, the difference between the target point information and the point detection result is calculated, so as to obtain the point comparison result corresponding to the point to be measured. Then, a point detection report is generated according to the point to be measured, the point comparison result, the target point information and the point detection result, and the point detection report is stored in a preset location according to a preset storage path.
[0031] S50: The point detection report is captured from a preset position through the transaction middleware, and the point detection report is parsed to present all the point detection reports on the front-end page.
[0032] Understandably, transactional 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 the scenario of grabbing EDM machine detection files, it can act as a middleware to coordinate file grabbing operations and ensure data integrity and accuracy. For example, when grabbing detection files from an EDM machine, MTS can treat the process as a transaction, thereby ensuring that the file grabbing operation (including establishing a connection, obtaining files, transferring files, and other steps) is either completed successfully or all failed and rolled back.
[0033] Specifically, the point detection report is captured from the preset location through the transaction middleware, that is, the point detection report is captured through the configured transaction middleware, and the captured point detection report is parsed, so that the parsed point detection report is presented on the front-end page. When the report is captured, the capture authority can be verified. If the authority is obtained, the preset folder is traversed, and the point detection report is filtered out according to conditions such as file name and file type, and the point detection report is parsed through the preset parsing tool.
[0034] In the workpiece detection method of the present invention, the determination of the points to be tested and the determination of the preset point information are realized through the workpiece detection instructions, so as to determine the probe to be used for detection, thereby realizing the detection of adjacent points, and then realizing the determination of the point detection path. Through the point detection path and the detection probe, the point detection according to the current touch induction is realized, and then the acquisition of the point detection results is realized, and the detection of the mold workpiece on the EDM machine is realized, and the error in the detection result caused by repeated positioning is avoided, thereby shortening the processing time and improving the processing efficiency. Through the target point information and point detection results corresponding to the same point to be tested, the generation of point detection reports for different points to be tested is realized, thereby realizing the storage of the point detection report, and then realizing the presentation of the point detection report in the front-end page.
[0035] In one embodiment, before step S10, that is, before obtaining the preset point information and the detection probe corresponding to each point to be tested according to the workpiece detection instruction, the method further includes: S101, obtaining point marking information corresponding to the mold workpiece and each processing point, classifying all the processing points through the electric spark machine and the point marking information, and obtaining point classification results corresponding to each processing point.
[0036] S102, performing color rendering on all the processing points according to the point classification result to obtain a rendering area corresponding to the point classification result.
[0037] S103, determining the points to be measured in all the point classification results according to the rendering area.
[0038] Understandably, point marking information refers to the information marked in the CAM (Computer-Aided Manufacturing) stage, such as the difficulty or focus of processing, the accuracy requirements during processing, etc. Point classification results refer to the classification level of processing points, such as Class I, Class II, and Class III. The rendering area refers to the processing point and the colored area within a certain range around it. Electrical Discharge Machining Machine (EDM) is a special processing machine tool. Its basic principle is to remove excess metal based on the electrical erosion phenomenon during pulsed spark discharge between the electrode and the workpiece, so as to achieve the purpose of processing the workpiece.
[0039] Specifically, before obtaining the preset point information and detection probe corresponding to each point to be tested according to the workpiece detection instruction, the point mark information corresponding to the mold workpiece and each processing point is obtained, and all processing points are classified and processed through the EDM machine and the point mark information, that is, the processing points are graded and classified according to the point mark information in the EDM machine, that is, the processing points are classified according to the requirements of processing position, processing accuracy, etc., so as to obtain the point classification results corresponding to each processing point. Among them, all processing points and point mark information can also be presented on the display screen of the EDM machine for the target personnel to classify the processing points, and receive the classification information, and determine the classification information as the point classification results corresponding to each processing point. Further, all processing points are color rendered according to the point classification results, that is, the preset rendering rules are obtained, and the processing points in the point classification results are color rendered according to the preset rendering rules, so as to obtain the rendering area corresponding to the point classification results. Next, the points to be tested in all point classification results are determined according to the rendering area, that is, the preset point detection rules are obtained, and some processing points are screened out from different rendering areas according to the preset point detection rules, and the processing points are determined as the points to be tested. Alternatively, the rendering area is presented in the front-end page, and the selected points in each rendering area fed back by the front-end page are received, and the fed-back processing points are determined as the points to be tested.
[0040] In this embodiment, through the point marking information and the electric spark machine, the classification of all processing points is realized, thereby realizing the acquisition of the point classification results, and then realizing the color rendering of the processing points, and realizing the determination of the rendering area. The selection of the points to be tested is realized through the rendering area, avoiding the detection of all processing points, and improving the efficiency of workpiece detection.
[0041] In one embodiment, before step S101, that is, before classifying all the processing points by the electric spark machine and the point mark information to obtain the point classification results corresponding to each of the processing points, it also includes: S1011, determining the point coordinates according to the point marking information.
[0042] S1012: Determine, based on all the point coordinates, the three-axis coordinate differences and coordinate distances between the points corresponding to the point coordinates.
[0043] S1013: Detect whether the point corresponding to each point coordinate is reasonable according to all the three-axis coordinate differences and all the coordinate distances.
[0044] S1014: If all the points are reasonable, the point corresponding to the point coordinates is determined as the processing point.
[0045] S1015: If at least one point is unreasonable, after issuing an alarm message and feeding back a point reference range, new point coordinates are received, and a point corresponding to the new point coordinates is determined as the processing point.
[0046] It can be understood that the point coordinates are used to characterize the position of the processing point in the processing surface. The point coordinates are determined relative to the workpiece or relative to the spark machine according to the actual situation. The three-axis coordinate difference refers to the difference in the coordinates of the processing point on the X-axis, Y-axis and Z-axis. The coordinate distance refers to the distance between two processing points, and the distance between the processing point and the edge of the workpiece.
[0047] Specifically, before classifying all the processing points, the point coordinates are determined according to the point marking information, that is, the point coordinates corresponding to each point are determined by the coordinate information in the point marking information. Then, according to all the point coordinates, the three-axis coordinate differences and coordinate distances between the points corresponding to the point coordinates are determined, that is, the difference between the coordinates of each two point is calculated, that is, the difference of the coordinates on the X-axis, Y-axis and Z-axis is calculated respectively, and the coordinate distance between the two point coordinates is calculated, and the coordinate distance between each point coordinate and the edge of the workpiece is calculated, so that the three-axis coordinate differences and coordinate distances between all the points can be obtained. Further, according to all three-axis coordinate differences and all coordinate distances, detect whether the points corresponding to the coordinates of each point are reasonable, that is, obtain a preset reasonable range, the preset reasonable range includes a difference range and a distance range, compare the three-axis coordinate difference and the coordinate distance with the difference range and the distance range in the preset reasonable range, that is, compare the three-axis coordinate difference with the difference range, so as to determine whether the three-axis coordinate difference is in the difference range, and compare the coordinate distance with the distance range, so as to determine whether the coordinate distance is in the distance range, and compare the coordinate distance of the point coordinate from the edge of the workpiece with the edge threshold. If the three-axis coordinate difference is not in the difference range, and the coordinate distance is not in the distance range, and the coordinate distance of the point coordinate is greater than the edge threshold, then the point is determined to be reasonable. If the three-axis coordinate difference is not in the difference range, the coordinate distance is in the distance range, or the three-axis coordinate difference is in the difference range, the coordinate distance is not in the distance range, or the three-axis coordinate difference is in the difference range, and the coordinate distance is in the distance range, and the coordinate distance of the point coordinate is less than or equal to the edge threshold, then the point is determined to be unreasonable. Among them, when the coordinate distance of the point coordinates is less than or equal to the edge threshold, the point can be determined to be unreasonable, and when the coordinate distance between the point and another point is within the distance range, and the coordinate distance of the point coordinates is less than or equal to the edge threshold, the point is deleted to retain another point. If all points are reasonable, the points corresponding to the coordinates of each point are determined as processing points. If there is at least one unreasonable point, an alarm message is issued according to the preset channel and the point reference range is fed back, and the new point coordinates fed back are received, and the point corresponding to the new point coordinates are determined as the processing point. In this way, all unreasonable points are changed so that all points are reasonable and the points corresponding to the new point coordinates are determined as processing points.
[0048] In this embodiment, the point coordinates are determined through the point marking information, and then the three-axis coordinate differences and coordinate distances between all points are calculated. By detecting whether the points corresponding to the coordinates of each point are reasonable based on all three-axis coordinate differences and all coordinate distances, the rationality of the points is evaluated, thereby determining the processing points and replacing the unreasonable points, thereby ensuring that all points are reasonable.
[0049] In one embodiment, in step S20, that is, detecting whether all the points to be tested have adjacent points, includes: S201, determining the three-axis coordinate differences and coordinate distances between all the points to be measured according to the preset point information of all the points to be measured.
[0050] S202, obtaining an adjacent specified range, comparing the three-axis coordinate difference and coordinate distance between the points to be measured with the adjacent specified range, and obtaining a range comparison result.
[0051] S203: When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are within the adjacent specified range, determine that the point to be measured is an adjacent point.
[0052] S204: When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are outside the adjacent specified range, determine that the point to be measured is not an adjacent point.
[0053] Understandably, the three-axis coordinate difference refers to the difference between each coordinate axis in the three-dimensional coordinate axis. The coordinate distance refers to the distance between two points to be measured. The adjacent specified range is used to evaluate whether the points to be measured are adjacent, including the three-axis difference range and the distance range.
[0054] Specifically, after obtaining the preset point information, the three-axis coordinate difference and coordinate distance between all the points to be measured are determined according to 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 out through the preset point information, that is, the preset point information on the same processing surface is divided into one category, and in this way, all the preset point information is divided, and then, the three-axis coordinate difference and coordinate distance between the preset point information on the same processing surface are calculated, that is, the coordinate difference between the X-axis, Y-axis and Z-axis between the preset point information of each pair is calculated respectively, and the distance between the two points to be measured is calculated respectively according to the preset point information, so that the three-axis coordinate difference and coordinate distance between all the points to be measured can be obtained. Further, the adjacent specified range is obtained, and the three-axis coordinate difference and the coordinate distance between the points to be measured are compared with the adjacent specified range, that is, the three-axis coordinate difference and the coordinate distance between the two points to be measured are compared with the three-axis difference range and the distance range of the adjacent specified range, that is, it is determined whether the three-axis coordinate difference is in the three-axis difference range, and whether the coordinate distance is in the distance range, so as to obtain the range comparison result. When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance are in the adjacent specified range, that is, the three-axis coordinate difference is in the three-axis difference range, and the coordinate distance is in the distance range, it is determined that the two points to be measured are adjacent points. When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance are outside the adjacent specified range, that is, the three-axis coordinate difference is not in the three-axis difference range and the coordinate distance is in the distance range, or the three-axis coordinate difference is in the three-axis difference range and the coordinate distance is not in the distance range, or the three-axis coordinate difference is not in the three-axis difference range and the coordinate distance is not in the distance range, it is determined that the two points to be measured are not adjacent points. Among them, it can be understood that adjacent points can be two or more points to be measured, not limited to two points to be measured. If the same point to be measured is respectively adjacent to the other two points to be measured, and the other two points to be measured are not adjacent, then the point to be measured is determined to be an adjacent point with a smaller three-axis coordinate difference and coordinate distance between the other two points to be measured. For example, point a is an adjacent point of point b and point c, and point b and point c are not adjacent points, then point a is determined to be an adjacent point with a smaller three-axis coordinate difference and coordinate distance between point b and point c.
[0055] In this embodiment, the three-axis coordinate difference and coordinate distance between two points to be measured are calculated through all preset point information. The three-axis coordinate difference and coordinate distance are compared with the adjacent specified range, thereby obtaining the range comparison result and further evaluating whether there are adjacent points.
[0056] In one embodiment, after step S20, that is, after detecting whether all the points to be tested have adjacent points, the method further includes: S60: If there are adjacent points, an adjacent detection path corresponding to the adjacent points is generated according to all the adjacent points corresponding to the point to be tested.
[0057] S70, performing point detection on all the adjacent points through the detection probe and the adjacent detection path to obtain point detection results corresponding to each of the adjacent points.
[0058] It can be understood that the adjacent detection path is used to detect the probe movement path of two adjacent points to be tested.
[0059] Specifically, after detecting whether there are adjacent points for all the points to be measured, if there are adjacent points, that is, the three-axis coordinate difference is within the three-axis difference range, and the coordinate distance is within the distance range, then, an adjacent detection path corresponding to the adjacent points is generated according to all the adjacent points corresponding to the points to be measured, that is, a path generation rule is obtained, and paths are planned for all adjacent points through the path generation rule and the coordinate information of all adjacent points, that is, the point detection order is planned according to the coordinate information, and then, paths are generated for all adjacent points through the point detection order and the path generation rule, thereby obtaining an adjacent detection path corresponding to the adjacent points. Furthermore, point detection is performed on all the adjacent points through the detection probe and the adjacent detection path, that is, the detection probe is controlled to detect the point coordinates of the adjacent points according to the adjacent detection path, that is, the detection probe is controlled to move a preset safety distance at a first moving speed, and then slowly approaches the adjacent point at a second moving speed to detect the adjacent point. After obtaining the point detection result, the detection probe is controlled to retreat to the preset safety distance, and the detection probe is controlled to move above another adjacent point at the preset safety distance, and the detection probe is controlled to slowly approach another adjacent point at the second moving speed to detect the adjacent point, and after obtaining the point detection result, the detection probe is retreated to the preset safety distance. If there are other adjacent points, the detection probe is controlled to move above them. If there are no other adjacent points, the detection probe is controlled to retreat to the safety point. In this way, by detecting the adjacent points in the above manner, the point detection results corresponding to each adjacent point can be obtained.
[0060] In a specific embodiment, there are two groups of adjacent points, one group is point a and point b, and the near points (i.e., points at a preset safety distance) corresponding to point a and point b are point A and point B, and the far points are point X and point Y. The detection probe is moved from the safety point to point X, and the detection probe is controlled to move to point A at a first moving speed along an adjacent detection path. Then, the speed of the detection probe is adjusted to a second moving speed, and the detection probe is controlled to move to point a at the second moving speed along an adjacent detection path, so as to perform coordinate detection of the adjacent points through current touch sensing, thereby obtaining a point detection result, and then the detection probe is controlled to retreat to point A at the second moving speed. Next, the detection probe is controlled to move from point A to point B, and the detection probe is controlled to move to point b at the second moving speed along an adjacent detection path, so as to perform coordinate detection of the adjacent points through current touch sensing, thereby obtaining a point detection result, and then the detection probe is controlled to retreat to point B at the second moving speed, and then the detection probe is controlled to retreat to point Y at the first moving speed. This embodiment is for illustration only and does not represent a limitation.
[0061] In this embodiment, when the points to be tested are adjacent points, the generation of adjacent detection paths is realized. The adjacent points are detected by the detection probe and the adjacent detection path, so that the point detection results are obtained, thereby avoiding the detection probe from returning to a far point to detect another adjacent point, improving the detection efficiency, and thus shortening the processing time.
[0062] In one embodiment, in step S30, based on the point detection path and the detection probe, the mold workpiece is subjected to point detection by current touch sensing to obtain point detection results corresponding to each of the points to be measured, including: S301, obtaining a preset safety distance, and controlling the detection probe to move to the point to be detected to the preset safety distance at a first moving speed through the point detection path.
[0063] S302, when the detection probe moves to the preset safety distance, obtain a second moving speed, control the moving speed of the detection probe to perform point detection on the mold workpiece at the second moving speed, and obtain a point detection result; the first moving speed is greater than the second moving speed.
[0064] Understandably, the preset safety distance is used to avoid the distance between the probe and the workpiece. The first moving speed refers to the moving speed of the probe before it moves to the safety distance. The second moving speed refers to the moving speed of the probe from the safety distance to the detection point. The first moving speed is greater than the second moving speed.
[0065] Specifically, when there is no path interference, a preset safety distance is obtained, and then the detection probe is controlled to move according to the point detection path, and moves toward the point to be measured at a first moving speed until the preset safety distance is reached. Next, when the detection probe moves to 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 toward the point to be measured, and after moving to the point to be measured, the coordinates of the point to be measured are detected by current touch sensing, so as to obtain the point detection result corresponding to the point to be measured. In this way, all the points to be measured are detected in the above manner, so as to obtain the point detection result corresponding to each point to be measured.
[0066] In a specific embodiment, there are a point a to be tested and a point c to be tested on the mold workpiece, there is a point b at a preset safety distance above point a, there is a point d at a preset safety distance above point c, and there are points e and f above points b and d, respectively. When the detection probe detects the point a to be tested and the point c to be tested, it moves from the safety point to point e, then quickly moves to point b at a first moving speed, then moves from point b to point a at a second moving speed for detection, and after the detection result is obtained, returns to point b at the second moving speed, and then returns to point e at the first moving speed after returning to point b. Then control the detection probe to move from point e to point f, then quickly moves to point d at the first moving speed, then moves from point d to point b at the second moving speed for detection, and after the detection result is obtained, returns to point d at the second moving speed, and then returns to point f at the first moving speed after returning to point d. In this way, the point detection of the point a to be tested and the point c to be tested is completed. This embodiment is for illustration only and does not represent a limitation.
[0067] In this embodiment, by presetting the safety distance and the second moving speed, the coordinates of the points to be measured are detected, thereby obtaining the point detection results, thereby avoiding the collision between the probe and the workpiece. The first moving speed enables the rapid movement of the probe, thereby improving the detection efficiency.
[0068] In one embodiment, in step S40, that is, according to the target point information and the point detection result corresponding to the same point to be measured, determining the point detection report corresponding to the point to be measured includes: S401, comparing 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.
[0069] S402: Generate the point detection report according to the coordinate comparison information of the point to be detected.
[0070] It can be understood that the coordinate comparison information refers to the difference between each coordinate position.
[0071] Specifically, after obtaining the target point information, the target point information and point detection results corresponding to each point to be measured are matched through the point to be measured, so as to determine the target point information and point detection results corresponding to the same point to be measured. Then, the coordinate information in the target point information corresponding to the same point to be measured and the coordinate information in the point detection result are compared, that is, the coordinate information in the target point information of the same point to be measured and the coordinate information in the point detection result are calculated by difference, so as to obtain the coordinate comparison information corresponding to the point to be measured. For example, if the target point information is (10, 22, 30) and the point detection result is (10, 21, 29), then the coordinate comparison information is (0, -1, -1). This embodiment is only used for illustration and does not represent the actual detection process. In this way, all points to be measured are detected, so as to obtain the coordinate comparison information corresponding to each point to be measured. 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 the points to be measured are sorted out to obtain a point detection report, or, 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.
[0072] 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 measured point, and then realizing the generation of the point detection report, so that the target personnel can clearly know the discharge effect.
[0073] It should be understood that the order of execution of the steps in the above embodiment does not necessarily 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 embodiment of the present invention.
[0074] In one embodiment, a workpiece detection device is provided, which corresponds one-to-one to the workpiece detection method in the above embodiment. Figure 2 As shown, the workpiece detection 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. The detailed description of each functional module is as follows: The instruction acquisition module 10 is used for acquiring preset point information and a detection probe 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; The path determination module 20 is used to detect whether there are adjacent points for all the points to be measured according to all the preset point information, and if there are no adjacent points, obtain the point detection path corresponding to each of the points to be measured; The point detection module 30 is used to simulate whether there is path interference according to all the point detection paths. If there is no path interference, the point detection of the mold workpiece is performed by current touch sensing based on the point detection path and the detection probe to obtain the point detection results corresponding to each of the points to be tested; The report generating module 40 is used to obtain the target point information corresponding to each of the points to be measured, determine the point detection report corresponding to the point to be measured according to the target point information and the point detection result corresponding to the same point to be measured, and store the point detection report to a preset location; The report display module 50 is used to capture the point detection report from a preset position through the transaction middleware, and parse the point detection report to present all the point detection reports on the front-end page.
[0075] In one embodiment, the instruction acquisition module 10 further includes: A point classification unit is used to obtain point marking information corresponding to the mold workpiece and each processing point, and classify all the processing points through the electric spark machine and the point marking information to obtain a point classification result corresponding to each processing point; A rendering area unit, used to perform color rendering on all the processing points according to the point classification result to obtain a rendering area corresponding to the point classification result; The point unit to be measured is used to determine the points to be measured in all the point classification results according to the rendering area.
[0076] In one embodiment, the point classification unit includes: A point coordinate subunit, used to determine the point coordinates according to the point marking information; A coordinate distance subunit, used to determine the three-axis coordinate difference and coordinate distance between the points corresponding to each of the point coordinates according to all the point coordinates; A point detection subunit, used for detecting whether the point corresponding to each point coordinate is reasonable according to all the three-axis coordinate differences and all the coordinate distances; A processing point subunit, used for determining the point corresponding to the point coordinates as the processing point if all the points are reasonable; The point replacement subunit is used to receive new point coordinates if at least one point is unreasonable, after issuing an alarm message and feeding back a point reference range, and determine the point corresponding to the new point coordinates as the processing point.
[0077] In one embodiment, the path determination module 20 includes: An adjacent detection path module, for generating an adjacent detection path corresponding to the adjacent point according to all the adjacent points corresponding to the point to be tested, if there are adjacent points; 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 to obtain point detection results corresponding to each adjacent point.
[0078] In one embodiment, the path determination module 20 further includes: A three-axis coordinate difference module, used to determine the three-axis coordinate difference and coordinate distance between all the points to be measured according to the preset point information of all the points to be measured; A specified range comparison module is used to obtain an adjacent specified range, compare the three-axis coordinate difference and coordinate distance between the points to be measured with the adjacent specified range, and obtain a range comparison result; An adjacent point determination module, configured to determine that the point to be measured is an adjacent point when the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are within the adjacent specified range; The not adjacent point 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 the coordinate distance thereof are outside the adjacent specified range.
[0079] In one embodiment, the point detection module 30 includes: A probe moving unit, used for obtaining a preset safety distance, and controlling the detection probe to move to the point to be detected to the preset safety distance at a first moving speed through the point detection path; The probe detection unit is used to obtain a second moving speed when the detection probe moves to the preset safety distance, control the moving speed of the detection probe to perform point detection on the mold workpiece at the second moving speed, and obtain a point detection result; the first moving speed is greater than the second moving speed.
[0080] In one embodiment, the report generation module 40 includes: A coordinate comparison information unit, 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; The point detection reporting unit is used to generate the point detection report according to the coordinate comparison information of the point to be measured.
[0081] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the workpiece detection method.
[0082] The specific definition of the computer device, processor and its units and modules can be found in the above definition of the workpiece detection method, which will not be repeated here. Each module in the above processor can be implemented in whole or in part by software, hardware and a combination thereof. Understandably, the processor includes a processor, a memory, a network interface and a database connected by a device bus. Each module of the processor can be embedded in or independent of the processor in hardware form, or can be stored in the memory in software form, so that the processor calls and executes the operations corresponding to the above modules. Among them, the processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating device and the computer program in the non-volatile storage medium. The database is used to store the data used by the workpiece detection method in the above embodiment. The network interface is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a workpiece detection method is implemented.
[0083] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned workpiece detection method is implemented.
[0084] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may 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 many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0085] Those skilled in the art 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. In actual applications, the above-mentioned functions can be distributed and 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.
[0086] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those 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 invention, and should all be included in the protection scope of the present invention.
Claims
1. A workpiece detection method, characterized in that: include: After processing the processing points in the mold workpiece, if a workpiece detection instruction is received, the preset point information and the detection probe corresponding to each point to be measured are obtained according to the workpiece detection instruction; According to all the preset point information, detect whether there are adjacent points for all the points to be measured, and if there are no adjacent points, obtain the point detection path corresponding to each of the points to be measured; Simulate whether there is path interference according to all the point detection paths; if there is no path interference, perform point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain point detection results corresponding to each of the points to be tested; Obtaining target point information corresponding to each of the points to be measured, determining a point detection report corresponding to the point to be measured according to the target point information and the point detection result corresponding to the same point to be measured, and storing the point detection report in a preset location; The point detection report is captured from a preset position through the transaction middleware, and the point detection report is parsed to present all the point detection reports on the front-end page.
2. The workpiece detection method according to claim 1, characterized in that: Before obtaining the preset point information and the detection probe corresponding to each point to be tested according to the workpiece detection instruction, the method further includes: Obtaining point marking information corresponding to the mold workpiece and each of the processing points, classifying all of the processing points through the electric spark machine and the point marking information, and obtaining point classification results corresponding to each of the processing points; Performing color rendering on all the processing points according to the point classification result to obtain a rendering area corresponding to the point classification result; The points to be measured in all the point classification results are determined according to the rendering area.
3. The workpiece detection method according to claim 2, characterized in that: Before classifying all the processing points by using the electric spark machine and the point mark information to obtain the point classification results corresponding to each processing point, the method further includes: Determine the point coordinates according to the point marking information; According to all the point coordinates, determine the three-axis coordinate differences and coordinate distances between the points corresponding to the point coordinates; According to all the three-axis coordinate differences and all the coordinate distances, detecting whether the point corresponding to each of the point coordinates is reasonable; If all the points are reasonable, the point corresponding to the point coordinates is determined as the processing point; If there is at least one unreasonable point, after issuing an alarm message and feeding back a point reference range, new point coordinates are received, and the point corresponding to the new point coordinates is determined as the processing point.
4. The workpiece detection method according to claim 1, characterized in that: After detecting whether all the points to be tested have adjacent points, the method further includes: If there are adjacent points, generating adjacent detection paths corresponding to the adjacent points according to all the adjacent points corresponding to the point to be tested; Point detection is performed on all the adjacent points through the detection probe and the adjacent detection path to obtain point detection results corresponding to each of the adjacent points.
5. The workpiece detection method according to claim 1, characterized in that: The detecting whether there are adjacent points among all the points to be tested comprises: Determine the three-axis coordinate differences and coordinate distances between all the points to be measured according to the preset point information of all the points to be measured; Acquire an adjacent specified range, compare the three-axis coordinate difference and coordinate distance between the points to be measured with the adjacent specified range, and obtain a range comparison result; When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are within the adjacent specified range, determining that the point to be measured is an adjacent point; When the range comparison result indicates that the three-axis coordinate difference and the coordinate distance thereof are outside the adjacent specified range, it is determined that the point to be measured is not an adjacent point.
6. The workpiece detection method according to claim 1, characterized in that: The point detection of the mold workpiece is performed based on the point detection path and the detection probe by current touch sensing to obtain point detection results corresponding to each point to be measured, including: Obtaining a preset safety distance, and controlling the detection probe to move to the point to be measured to the preset safety distance at a first moving speed through the point detection path; When the detection probe moves to the preset safety 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 a point detection result; the first moving speed is greater than the second moving speed.
7. The workpiece detection method according to claim 1, characterized in that: Determining a point detection report corresponding to the point to be measured based on the target point information and the point detection result corresponding to the same point to be measured includes: Comparing 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; The point detection report is generated according to the coordinate comparison information of the point to be measured.
8. A workpiece detection device, characterized in that: include: An instruction acquisition module is used for acquiring preset point information and a detection probe 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; A path determination module is used to detect whether there are adjacent points for all the points to be measured according to all the preset point information, and if there are no adjacent points, obtain a point detection path corresponding to each of the points to be measured; A point detection module, used for simulating whether there is path interference according to all the point detection paths, and if there is no path interference, performing point detection on the mold workpiece by current touch sensing based on the point detection path and the detection probe to obtain point detection results corresponding to each of the points to be tested; A report generation module, used for obtaining target point information corresponding to each of the points to be measured, determining a point detection report corresponding to the point to be measured according to the target point information and the point detection result corresponding to the same point to be measured, and storing the point detection report to a preset location; The report display module is used to grab the point detection report from a preset position through the transaction middleware, and parse the point detection report to present all the point detection reports on the front-end page.
9. A computer device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the workpiece detection method according to 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 a processor, the workpiece detection method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Electrosparking device, system and method
CN109108404A
Detection method and system, terminal equipment and computer readable storage medium
CN119148619A
Method and device for changing a tool or workpiece in a machine tool with a tool or workpiece characteristics detecting means
EP1510286A1
System and method for control of an EDM drilling process
EP3539705A1
EDM electrode position detection
US6417475B1