Shape restoration device and computer readable storage medium
By using a shape restoration device to process and separate the surface features in the machining surface data through a filter, the design shape of the workpiece can be extracted, which solves the problem that the design shape cannot be extracted in the existing technology and realizes the shape restoration of the machining surface data.
Patent Information
- Application Number
- CN202380100496.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2026-02-13
AI Technical Summary
Existing technologies cannot effectively extract workpiece design shape data from machined surface data containing surface features such as cutting marks.
A shape restoration device is used to generate a filter through a filter generation unit. The direction or coefficient of the filter processing is adjusted based on the trajectory information to separate the surface property components in the machining surface data and extract the design shape components of the workpiece.
It can extract the design shape data of the workpiece from the machining surface data, including cutting marks, restore the design shape of the machining surface, and adapt the workpiece shape restoration before actual machining.
Smart Images

Figure CN121532770A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to shape restoration apparatus and computer-readable storage media. Background Technology
[0002] Conventionally, machining programs are used to obtain data representing the unevenness of the machined surface of a workpiece. For example, when performing machining simulation using a machining program, machining surface data representing the unevenness of the machined surface can be obtained (e.g., Patent Document 1).
[0003] Existing technical documents
[0004] Patent documents
[0005] Patent Document 1: Japanese Patent Application Publication No. 2017-156170 Summary of the Invention
[0006] The problem that the invention aims to solve
[0007] However, the machining surface data generated through machining simulation also includes information about surface characteristics such as tool marks. That is, it is impossible to obtain machining surface data representing the workpiece's design shape without including tool marks during machining simulation. Therefore, a technique is desired that can extract machining surface data representing the workpiece's design shape from machining surface data containing information about surface characteristics such as tool marks.
[0008] Methods for solving problems
[0009] The shape restoration apparatus disclosed herein includes: an acquisition unit that acquires processing information indicating the conditions when a processing surface is processed by a tool, trajectory information indicating the trajectory when the processing surface is processed by a tool, and processing surface data indicating the state of the processing surface; a filter generation unit that generates a filter for extracting shape components of the processing surface from the processing surface data based on the processing information acquired by the acquisition unit; an adjustment unit that performs direction adjustment or filter coefficient adjustment for filtering the processing surface data using the filter based on the trajectory information; and a filtering processing unit that performs filtering processing based on the adjustment result of the adjustment unit.
[0010] The computer-readable storage medium of this disclosure stores commands that enable a computer to perform the following steps: acquiring machining information representing the conditions when machining a surface by means of a tool, trajectory information representing the trajectory when machining the surface by means of a tool, and machining surface data representing the state of the machining surface; generating a filter for extracting the shape components of the machining surface from the machining surface data based on the acquired machining information; adjusting the direction of the filtering process applied to the machining surface data using the filter, or adjusting the coefficients of the filter, based on the trajectory information; and performing the filtering process based on the adjustment result. Attached Figure Description
[0011] Figure 1 This is a block diagram illustrating an example of the hardware structure of a shape restoration device.
[0012] Figure 2 This is a block diagram illustrating an example of the function of a shape restoration device.
[0013] Figure 3A This is a diagram showing an example of a machining surface represented by machining surface data generated by the simulation unit.
[0014] Figure 3B This is a magnified view of a portion of the machined surface.
[0015] Figure 4 This is a diagram representing an example of processed surface data transformed into two-dimensional data.
[0016] Figure 5 This is a diagram illustrating an example of a one-dimensional filter generated by the filter generation unit.
[0017] Figure 6 This is a diagram used to illustrate the direction of the filtering process.
[0018] Figure 7 This is a diagram showing an example of a processed surface from which shape components have been extracted.
[0019] Figure 8 This is an example of a two-dimensional filter generated by the filter generation unit.
[0020] Figure 9 This is an example of a filter whose coefficients are adjusted by the adjustment unit.
[0021] Figure 10 This is a flowchart illustrating an example of the processing performed by the shape restoration device.
[0022] Figure 11 This is a block diagram illustrating an example of the function of a shape restoration device.
[0023] Figure 12 This is a diagram used to illustrate uniform sampling.
[0024] Figure 13 This is a diagram used to illustrate random sampling.
[0025] Figure 14A This is a diagram showing an example of a processed surface and a corrected surface that have undergone filtering.
[0026] Figure 14B This is a diagram showing an example of a processed surface and a corrected surface that have undergone filtering.
[0027] Figure 15AThis is a diagram used to illustrate the distance setting between the machined surface and the correction surface.
[0028] Figure 15B This is an example of a correction surface generated by the correction surface generation unit.
[0029] Figure 16 This is a diagram showing an example of a machined surface.
[0030] Figure 17 This is a flowchart illustrating an example of the processing performed by the shape restoration device. Detailed Implementation
[0031] Hereinafter, the shape restoration apparatus and computer-readable storage medium according to embodiments of the present disclosure will be described with reference to the accompanying drawings. Furthermore, in the following description, structures having the same or similar functions will be labeled with the same reference numerals. Also, repeated descriptions of these structures will sometimes be omitted.
[0032] In this application, "based on XX" means "at least based on XX," but also includes cases based on other elements besides XX. Furthermore, "based on XX" is not limited to directly using XX, but also includes content obtained by processing or manipulating XX. "XX" can be any element (e.g., any information).
[0033] A shape restoration apparatus is a device used to restore the shape of a machined surface from machined surface data. That is, a shape restoration apparatus is a device that extracts shape components from machined surface data to generate new machined surface data.
[0034] Machining surface data refers to the state of a machined surface. The state of a machined surface can be, for example, its uneven or concave shape.
[0035] Machining surface data, representing the state of the machined surface, is generated, for example, through machining simulation using a machining program. Machining simulation, for example, is a simulation of cutting operations performed by a machining machine.
[0036] Shape restoration devices can be installed, for example, in numerical control devices, PCs (Personal Computers), servers, and tablet terminals.
[0037] Figure 1 This is a block diagram illustrating an example of the hardware structure of a shape restoration device. The shape restoration device 1 includes, for example, a hardware processor 101, a bus 102, a ROM (Read Only Memory) 103, a RAM (Random Access Memory) 104, a non-volatile memory 105, and an input / output device 106.
[0038] The hardware processor 101 is a processor that uses a system program to control the entire shape restoration device 1. The hardware processor 101 reads the system program and the like stored in the ROM 103 via the bus 102. The hardware processor 101 is, for example, a CPU (Central Processing Unit) or an electronic circuit.
[0039] Bus 102 is a communication path that connects the various hardware components of shape restoration device 1 to each other. The various hardware components of shape restoration device 1 exchange data via bus 102.
[0040] ROM103 is a storage device for storing system programs, etc. ROM103 is a computer-readable storage medium.
[0041] RAM 104 is a storage device for temporary storage of various data. RAM 104 functions as a working area for the hardware processor 101 to process various data.
[0042] The non-volatile memory 105 is a storage device that retains data even when the power supply to the shape restoration device 1 is cut off. For example, the non-volatile memory 105 stores data about machined surfaces. The non-volatile memory 105 is a computer-readable storage medium. The non-volatile memory 105 may be, for example, a battery-backed memory or an SSD (Solid State Drive).
[0043] Input / output device 106 receives various data from hardware processor 101, for example, and displays various data on the display. Additionally, input / output device 106 accepts various data inputs and sends various data, for example, to hardware processor 101.
[0044] The input / output device 106 is, for example, a touch panel. When the input / output device 106 is a touch panel, it is, for example, a capacitive touch panel. The touch panel is not limited to capacitive touch panels; it can also be other types of touch panels.
[0045] Figure 2 This is a block diagram illustrating an example of the function of the shape restoration device 1. The shape restoration device 1 includes an analog unit 111, an acquisition unit 112, a filter generation unit 113, an adjustment unit 114, a filter processing unit 115, and an output unit 116. The analog unit 111, the acquisition unit 112, the filter generation unit 113, the adjustment unit 114, the filter processing unit 115, and the output unit 116 are implemented, for example, by a hardware processor 101 using a system program stored in ROM 103 and various programs and data stored in non-volatile memory 105 for computational processing.
[0046] The simulation unit 111 performs machining simulation to generate machining surface data. Machining simulation is a process that generates machining surface data based on a virtual model of the machining machine, machining program, and machining information. For example, the simulation unit 111 generates machining surface data based on a virtual model, machining program, and machining information stored in a storage unit (not shown).
[0047] Virtual models may include models of the structures that make up the machining machine and models of the workpieces. The models of the structures are generated based on information such as the shape, weight, strength, and material of the structures. The models of the workpieces are generated based on information such as the shape, weight, strength, and material of the workpieces.
[0048] Machining information refers to information about the conditions under which a tool is used to machine a surface. Machining information includes at least one of the following: tool radius, tool shape, number of cutting edges, maximum acceleration of the control axis, acceleration time of the control axis, time constant of the servo mechanism, gain of the servo mechanism, pick feed, and distance between points.
[0049] Information describing the shape of a tool includes information indicating the type of tool. Tool types include, for example, ball end mills and square end mills.
[0050] The information indicating the gain of the servo mechanism includes information on at least one of the servo mechanism's speed gain, current gain, position gain, and feedforward setting. Furthermore, the feedforward setting refers to the setting used to predict the delay of the servo mechanism's movement and to pre-indicate the amount of delay.
[0051] Periodic feed is the interval of a toolpath specified in CAM (Computer Aided Manufacturing). For example, when the first toolpath is parallel to a second toolpath adjacent to the first, the periodic feed is the distance between the first and second toolspaths. Point distance is the distance between multiple points used to specify a toolpath.
[0052] Machining surface data can be, for example, three-dimensional data representing the height of the machining surface. That is, machining surface data represents the three-dimensional shape of the machining surface. Machining surface data can also be two-dimensional data representing the height of the machining surface. Two-dimensional data representing the height of the machining surface is also called a height map.
[0053] The machining surface data generated by the simulation unit 111 contains multiple components. When the unevenness of the machining surface is regarded as a waveform, the multiple components are high-frequency and low-frequency components contained in the waveform.
[0054] High-frequency components are surface characteristic components. Surface characteristic components, for example, are components representing cutting marks. Surface characteristic components are also called roughness components.
[0055] The low-frequency component is the shape component. The shape component is the component that represents the designed shape of the workpiece.
[0056] Figure 3A This represents an example of a machining surface represented by machining surface data generated by the simulation unit 111. Figure 3B This is a magnified view of a portion of the machined surface.
[0057] exist Figure 3A In the example shown, the machined surface MS is a shape with large convexities and large concaveities along the X-axis. The convexities and concaveities along the X-axis are shape components.
[0058] In addition, the machined surface MS has multiple arc-shaped grooves that are continuous along the Y-axis. Figure 3B When considering multiple grooves continuously along the Y-axis as a waveform, the frequency of this waveform is higher than the frequency of the aforementioned undulations. The multiple grooves formed along the Y-axis are surface feature components. Additionally, the multiple grooves are cutting marks formed by a tool. Here, return... Figure 2 Explanation.
[0059] The acquisition unit 112 acquires machining information indicating the conditions when machining the machining surface MS using a tool, trajectory information indicating the trajectory when machining the machining surface MS using a tool, and machining surface data indicating the state of the machining surface MS.
[0060] The acquisition unit 112 acquires processing information, for example, from the processing information storage unit (not shown). In addition, the acquisition unit 112 acquires processing surface data generated by the simulation unit 111.
[0061] For example, the trajectory information is obtained from the machining surface data in part 112. Figure 3A and Figure 3B In the example shown, multiple arc-shaped grooves are formed parallel to the XZ plane. In this case, the acquisition unit 112 acquires, for example, trajectory information representing the trajectory of the tool along the X-axis.
[0062] The acquisition unit 112 can also acquire trajectory information representing the trajectory of the tool based on the machining program. That is, the acquisition unit 112 can also parse the machining program to acquire trajectory information representing the trajectory of the tool.
[0063] The processing surface data obtained by the acquisition unit 112 is converted into two-dimensional data.
[0064] Figure 4This is a diagram illustrating an example of machining surface data converted to two-dimensional data. The two-dimensional data records values N1, N2, and N3, representing the height of the machining surface, in association with each region divided into a grid. Although the diagram is omitted, the values representing the height of the machining surface are also recorded in association with other regions.
[0065] Two-dimensional data is generated by tracing the tool's path along rows or columns of the data. For example, in one row of the two-dimensional data, numerical values representing the height of a groove formed along the X-axis are recorded sequentially. Conversely, in another row of the two-dimensional data, numerical values representing the height of another groove formed along the X-axis are recorded. By generating the data by tracing the tool's path along rows or columns of the two-dimensional data, the filtering process described later can be performed effectively.
[0066] The filter generation unit 113 generates a filter for extracting the shape component of the machining surface MS from the machining surface data based on the machining information obtained by the acquisition unit 112.
[0067] A filter is at least one of a low-pass filter, a high-pass filter, a band-pass filter, and a band-stop filter. Examples of filters include Gaussian filters and Laplace filters. Furthermore, a filter can be a one-dimensional or two-dimensional filter.
[0068] The filter generation unit 113 sets the filter threshold, for example, based on the periodic feed indicated by the tool trajectory in the machining surface MS. The threshold set for the filter is a threshold used to extract specific components.
[0069] When the filter threshold is set based on the periodic feed, the filter threshold is used to separate the surface feature components of the machined surface (MS). The filter used to separate the surface feature components to extract the shape component is a low-pass filter. Additionally, the threshold is also called the cutoff value or nested index.
[0070] Figure 5 This diagram illustrates an example of a one-dimensional filter generated by the filter generation unit 113. The kernel width in the one-dimensional filter is, for example, 1×3. The filter coefficients are determined based on the threshold value.
[0071] Based on the trajectory information, the adjustment unit 114 performs directional adjustment on the machining surface data using a filter.
[0072] Filtering is a process of extracting specific components from processed surface data. For example, filtering can be used to extract shape components by separating surface feature components from processed surface data that contains both surface feature components and shape components.
[0073] Figure 6This describes the direction of the filtering process. The direction of the filtering process can be, for example, along the tool's trajectory or perpendicular to it. Figure 6 In the example shown, the direction along the tool's trajectory is along the X-axis. Figure 6 In the example shown, the direction orthogonal to the tool's trajectory is along the Y-axis.
[0074] Adjusting the direction of filtering refers to determining the direction of the filtering process used to extract specific components from the processed surface data. Specific components may be, for example, shape components.
[0075] exist Figure 6 In the machined surface data shown, surface feature components are not represented along the tool path direction. In this case, even if filtering is performed along the tool path direction, the surface feature components cannot be separated from the machined surface data.
[0076] On the other hand, surface features are exhibited in directions orthogonal to the tool's trajectory. In this case, by performing filtering in directions orthogonal to the tool's trajectory, the surface features can be separated from the machined surface data to extract the shape components. Therefore, the adjustment unit 114 determines the direction of the filtering process to be orthogonal to the tool's trajectory.
[0077] Figure 7 This illustrates an example of a processed surface where the shape component has been extracted by separating the surface property components. From Figure 7 The machined surface shown has had cutting marks removed. That is, the adjustment unit 114 determines the direction of the filtering process to be orthogonal to the tool trajectory, thereby obtaining machined surface data that only represents the shape components.
[0078] Figure 8 This is an example of a two-dimensional filter generated by the filter generation unit 113. The kernel width in the two-dimensional filter is, for example, 5×5. The filter coefficients are determined based on the threshold.
[0079] Figure 8 The filter shown has coefficients in the first row of 1 / 256, 4 / 256, 6 / 256, 4 / 256, and 1 / 256. That is, the ratio of each coefficient is 1:4:6:4:1. The ratios of the coefficients in the other rows and columns are the same. Figure 8 The filter shown has the same intensity along the row direction as it does along the column direction. Intensity is an indicator of the degree of accuracy with which a particular component can be extracted.
[0080] The adjustment unit 114 adjusts the coefficients of the filter based on the trajectory information.
[0081] Figure 9This is an example of a filter whose coefficients are adjusted via adjustment unit 114. The ratio of the coefficients arranged along the columns of the filter is 1:4:6:4:1. On the other hand, the ratio of the coefficients arranged along the rows of the filter is 6:15:20:15:6. That is, Figure 9 The filter shown has a higher intensity along the column direction than along the row direction.
[0082] In extraction Figure 3A In the case of the shape composition of the machining surface shown, the adjustment unit 114 adjusts the coefficient of the filter so that the intensity in the direction orthogonal to the tool trajectory increases.
[0083] The filtering processing unit 115 performs filtering processing based on the adjustment result of the adjustment unit 114. That is, the filtering processing unit 115 performs filtering processing on the machining surface MS based on the direction of the filtering processing adjusted by the adjustment unit 114.
[0084] When the filter is a one-dimensional filter, the adjustment unit 114 determines to perform filtering in a direction orthogonal to the tool trajectory. Therefore, the filtering unit 115 performs filtering in a direction orthogonal to the tool trajectory.
[0085] Therefore, the filtering processing unit 115 restores the shape of the processed surface MS. In other words, the filtering processing unit 115 separates the surface property components from the processed surface data to generate new processed surface data representing the shape components. The new processed surface data is either two-dimensional data generated by the filtering process or three-dimensional data transformed from the two-dimensional data.
[0086] When the filter is a two-dimensional filter, the adjustment unit 114 adjusts the filter coefficients to increase the intensity in the direction orthogonal to the tool path. Therefore, the filtering processing unit 115 performs filtering processing using a filter whose intensity in the direction orthogonal to the tool path is increased. As a result, the filtering processing unit 115 restores the shape of the machined surface MS. Here, return to... Figure 2 Explanation.
[0087] Output unit 116 outputs newly generated machining surface data by separating surface property components. Output unit 116 outputs the newly generated machining surface data, for example, to input / output device 106. Input / output device 106 displays the new machining surface data on a display.
[0088] Figure 10 This is a flowchart illustrating an example of the processing performed by the shape restoration device 1. In the shape restoration device 1, firstly, the simulation unit 111 performs a processing simulation (step SA1).
[0089] Next, the acquisition unit 112 acquires machining information, trajectory information, and machining surface data (step SA2). Next, the filter generation unit 113 generates a filter (step SA3).
[0090] Next, the adjustment unit 114 adjusts the direction of the filtering process or the coefficients of the filter (step SA4). Next, the filtering processing unit 115 performs the filtering process (step SA5). Finally, the output unit 116 outputs new machining surface data (step SA6), and the processing ends.
[0091] In the above embodiment, the machining surface data is generated by the simulation unit 111. However, the machining surface data may also be inspection data obtained by an inspection device that inspects the state of the machining surface MS. That is, the machining surface data may also be data representing the state of the machining surface MS actually machined in the machining machine. In this case, the acquisition unit 112 can acquire the inspection data obtained by the inspection device.
[0092] In the above embodiment, an example of forming a tool path along one direction throughout the entire machining surface MS was described. However, the tool path may also differ in different regions of the machining surface MS. In this case, the shape restoration device 1 performs filtering processing by generating and adjusting filters for each region where the tool path faces the same direction.
[0093] In the above embodiments, an example of extracting shape components by separating surface feature components from the processed surface data through filtering processing was described. However, when the processed surface represented by the processed surface data has defects such as stripes or patterns, these defects sometimes cannot be removed. In this case, the shape restoration apparatus 1 can also correct the processed surface data after filtering processing performed by the filtering processing unit 115.
[0094] Additionally, streaks refer to marks that are deeper than cutting marks on the machined surface. Streaks can be caused by defects in the machining program, for example, due to user errors in CAM operation. Furthermore, patterns appear when a tool is machining a curved surface, where the tool path is formed by multiple tiny line segments. That is, patterns can sometimes appear due to tolerance settings in the CAM.
[0095] Figure 11 This is a block diagram illustrating an example of the function of the shape restoration device 1. Figure 11 The shape restoration device 1 shown has, in addition to Figure 2 In addition to the functions of the shape restoration device 1 shown, it also includes a rejection processing unit 117, a correction surface generation unit 118, and a setting unit 119. The rejection processing unit 117, the correction surface generation unit 118, and the setting unit 119 are implemented, for example, by a hardware processor 101 using a system program stored in ROM 103 and various programs and data stored in non-volatile memory 105 for computational processing.
[0096] The rejection processing unit 117 determines whether the processed surface data that has undergone filtering needs to be corrected. In other words, the rejection processing unit 117 determines whether to perform rejection processing on the processed surface data that has undergone filtering.
[0097] The rejection processing unit 117 determines, for example, whether the machined surface data after filtering contains defects. For example, if the machined surface represented by the filtered machined surface data contains stripes of a predetermined depth or greater, the rejection processing unit 117 determines that rejection processing is required.
[0098] If it is determined that a rejection process is required, the rejection processing unit 117 performs a rejection process that removes a portion of the data from the processed surface data that has undergone filtering. For example, the rejection processing unit 117 performs the rejection process using at least one of uniform sampling, random sampling, and normal space sampling.
[0099] Figure 12 This describes uniform sampling. In uniform sampling, samples are taken at predetermined intervals on the machined surface. Figure 12 In the diagram, the black circle indicates the sampling location. That is, the rejection processing unit 117 rejects data from locations other than the sampled location.
[0100] Figure 13 This describes random sampling. In random sampling, samples are randomly taken from the machined surface. Figure 13 In the diagram, the black circle indicates the sampling location. That is, the rejection processing unit 117 rejects data from locations other than the sampled location.
[0101] In normal space sampling, the focus is on sampling data at locations where the direction of the normals on the machined surface changes significantly. Therefore, in normal space sampling, for example, the focus is on sampling data at locations where the shape of the machined surface changes significantly.
[0102] The correction surface generation unit 118 generates a correction surface for the machined surface based on the machined surface data after a portion of the data has been removed by the rejection processing unit 117. Correction refers to making the defects formed on the machined surface smooth and inconspicuous.
[0103] The correction surface generation unit 118 generates the correction surface using at least one of the following: linear interpolation surface approximation, cubic spline interpolation surface approximation, nearest point interpolation surface approximation, and interpolation approximation using radial basis functions.
[0104] The correction surface generation unit 118 generates a correction surface in such a way that the difference between the processed surface after filtering and the correction surface converges to a predetermined range.
[0105] Figure 14A and Figure 14BThis diagram shows an example of a machined surface and a corrected surface after filtering has been performed. Dashed lines represent machined surfaces, and solid lines represent corrected surfaces.
[0106] exist Figure 14A In the example shown, there are parts where the difference between the machined surface and the corrected surface is large. That is, the difference between the machined surface and the corrected surface does not converge to a predetermined range.
[0107] exist Figure 14B In the example shown, the difference between the machined surface and the corrected surface is generally small. That is, the difference between the machined surface and the corrected surface converges within a predetermined range.
[0108] If the difference between the generated correction surface and the machined surface does not converge within a predetermined range, the correction surface generation unit 118 can regenerate the correction surface in such a way that the difference between the machined surface and the correction surface converges within a predetermined range.
[0109] In the shape restoration apparatus 1, the distances between multiple positions in the processed surface data that have undergone rejection processing and the multiple corresponding positions in the correction surface that correspond to each of the multiple positions can be set individually. That is, the user can set the degree of correction to be performed on the processed surface represented by the processed surface data that has undergone filtering processing. In this case, the shape restoration apparatus 1 further includes a setting unit 119, which individually sets the distances between the multiple positions in the processed surface data that have undergone rejection processing and the multiple corresponding positions in the correction surface that correspond to each of the multiple positions.
[0110] Figure 15A This is used to specify the setting of the distance between the machining surface and the correction surface. For example, based on the user's operation of the input / output device 106, the setting unit 119 sets the distance between multiple positions on the machining surface and corresponding positions on the correction surface corresponding to these multiple positions.
[0111] The setting unit 119 sets the distance between the position P1 represented by the machining surface data and the correction surface to 0, for example.
[0112] The correction surface generation unit 118 generates a correction surface based on the distance set by the setting unit 119. Therefore, when the distance between position P1 contained in the machining surface data and the correction surface is set to 0, the correction surface generation unit 118 sets the distance between position P1 contained in the machining surface data and the correction surface to 0. That is, the correction surface generation unit 118 does not correct the position P1 represented by the machining surface data.
[0113] Alternatively, the setting unit 119 may set the distance between position P4 in the machining surface data and the correction surface to 0. In this case, the correction surface generation unit 118 does not correct position P4.
[0114] Furthermore, the setting unit 119 sets the distance between position P2 contained in the machining surface data and the correction surface to D1. The correction surface generation unit 118 generates the correction surface such that the distance between position P2 contained in the machining surface data and the correction surface is within D1.
[0115] Furthermore, the setting unit 119 sets the distance between position P3 contained in the machining surface data and the correction surface to D2. The correction surface generation unit 118 generates the correction surface in such a way that the distance between position P3 contained in the machining surface data and the correction surface is within D2.
[0116] Figure 15B This is an example of a modified surface generated by the modified surface generation unit 118. The modified surface generation unit 118 generates a modified surface without modifying positions P1 and P4.
[0117] On the other hand, the correction surface generation unit 118 corrects position P2 to position P2A. The distance between position P2A on the correction surface and position P2 on the machining surface is D1 or less.
[0118] Furthermore, the correction surface generation unit 118 corrects position P3 to position P3A. The distance between position P3A on the correction surface and position P3 on the machining surface is D2 or less.
[0119] The setting unit 119 can also set the distance between multiple positions of the machining surface and multiple corresponding positions of the correction surface individually based on the curvature of the machining surface represented by the machining surface data.
[0120] Figure 16 This shows an example of a machined surface. Dashed lines represent machined surfaces. Solid lines represent corrected surfaces. In Figure 16 In the machined surface shown, the curvature near positions P5 and P6 is greater than that at other positions.
[0121] The setting unit 119 sets the distance between a position on a machining surface with a curvature above a predetermined threshold and the corresponding position on a correction surface to 0, for example. Additionally, the setting unit 119 sets the distance between a position on a machining surface with a curvature below a predetermined threshold and the corresponding position on a correction surface to a range below a predetermined value.
[0122] If the curvature at positions P5 and P6 is above a predetermined threshold, the correction surface generation unit 118 does not correct the machining surface data at positions P5 and P6. Conversely, if the curvature at positions other than P5 and P6 is less than the predetermined threshold, the correction surface generation unit 118 corrects the machining surface data, ensuring that the correction amount at positions other than P5 and P6 is below a predetermined value.
[0123] Figure 17This is a flowchart illustrating an example of the processing performed by the shape restoration device 1. Figure 17 The processing steps SB1~SB5 in the process shown are related to... Figure 10 The processes shown in steps SA1 to SA5 are the same. Therefore, the explanation of the processes in steps SB1 to SB5 is omitted.
[0124] When the processing in step SB5 is completed, the rejection processing unit 117 determines whether to perform rejection processing of the processed surface data (step SB6). If it is determined that rejection processing should be performed by the rejection processing unit 117 (if "yes" is in step SB6), the rejection processing unit 117 performs rejection processing (step SB7).
[0125] Next, the correction surface generation unit 118 generates a correction surface that corrects the machined surface based on the machined surface data from which some data has been removed (step SB8). Finally, the output unit 116 outputs correction surface data representing the correction surface corrected by the correction surface generation unit 118 (step SB9), and the process ends.
[0126] On the other hand, if the rejection processing unit 117 determines that rejection processing will not be performed (in the case of "No" in step SB6), the output unit 116 outputs the new processing surface data generated by the filtering process (step SB9) and the processing ends.
[0127] As described above, the shape restoration device 1 includes: an acquisition unit 112 that acquires processing information indicating the conditions when the processing surface is processed by a tool, trajectory information indicating the trajectory when the processing surface is processed by a tool, and processing surface data indicating the state of the processing surface; a filter generation unit 113 that generates a filter for extracting the shape components of the processing surface from the processing surface data based on the processing information acquired by the acquisition unit 112; an adjustment unit 114 that performs direction adjustment or filter coefficient adjustment for the processing surface data using the filter based on the trajectory information; and a filtering processing unit 115 that performs filtering processing based on the adjustment result of the adjustment unit 114.
[0128] Therefore, the shape restoration device 1 can extract shape components from machining surface data including cutting marks, etc. In other words, the shape restoration device 1 can obtain machining surface data representing the design shape of the workpiece from machining surface data including cutting marks, etc. Therefore, even without design data representing the shape of the workpiece, the shape restoration device 1 can obtain machining surface data representing the design shape of the workpiece.
[0129] In addition, the shape restoration device 1 also includes a simulation unit 111 that performs machining simulation to generate machining surface data. Therefore, the shape restoration device 1 can restore the design shape of the machining surface MS using the machining surface data before actually machining the workpiece.
[0130] The machining surface data can be inspection data obtained by an inspection device that checks the state of the machining surface MS. Therefore, the shape restoration device 1 can restore the design shape of the machining surface MS based on the machining surface data of the actually machined machining surface MS.
[0131] Furthermore, the machining information includes at least one of the following: information representing the tool's radius, information representing the tool's shape, information representing the number of cutting edges of the tool, information representing the maximum acceleration of the control axis, information representing the acceleration time of the control axis, information representing the time constant of the servo mechanism, information representing the gain of the servo mechanism, information representing the periodic feed, and information representing the distance between points. Therefore, the shape restoration device 1 can generate a filter based on various types of information.
[0132] Furthermore, the shape restoration apparatus 1 also includes: a rejection processing unit 117 that performs rejection processing to remove a portion of the data from the processed surface data that has undergone filtering processing; and a correction surface generation unit 118 that generates a correction surface for the processed surface based on the processed surface data after a portion of the data has been removed by the rejection processing unit 117. In addition, the rejection processing unit 117 performs the rejection processing using at least one of uniform sampling, random sampling, and normal space sampling.
[0133] Therefore, even if the processed surface has defects such as stripes or patterns after filtering, the shape restoration device 1 can restore the shape of the processed surface.
[0134] Furthermore, the correction surface generation unit 118 generates the correction surface in such a way that the difference between the processed surface MS, which has undergone filtering, and the correction surface converges to a predetermined range. Therefore, the shape restoration device 1 can appropriately restore the shape of the processed surface.
[0135] The correction surface generation unit 118 generates the correction surface using at least one of the following: linear interpolation surface approximation, cubic spline interpolation surface approximation, nearest-point interpolation surface approximation, and interpolation approximation using radial basis functions. Therefore, the shape restoration device 1 can appropriately restore the shape of the processed surface.
[0136] Furthermore, the shape restoration device 1 also includes a setting unit 119, which individually sets the distances between multiple positions included in the processing surface data that have undergone rejection processing and multiple corresponding positions included in the correction surface that correspond to the multiple positions respectively. The correction surface generation unit 118 generates the correction surface based on the distances set by the setting unit 119. Therefore, the user can set how to correct the processing surface.
[0137] Furthermore, the setting unit 119 sets the distances between multiple positions and multiple corresponding positions individually based on the curvature of the machining surface represented by the machining surface data. For example, the setting unit 119 can be set to not correct the machining surface data of the portion with large curvature. In this case, the shape restoration device 1 can retain the shape of the corners represented by the shape components and the boundary lines between surfaces on the correction surface generated by the correction surface generation unit 118.
[0138] This disclosure has been described in detail, but it is not limited to the various embodiments described above. Various additions, substitutions, modifications, and partial deletions can be made to these embodiments without departing from the spirit of this disclosure, or from the spirit of this disclosure derived from the content described in the patent protection scope and its equivalents. Furthermore, these embodiments can also be implemented in combination.
[0139] The following are notes regarding embodiments of this disclosure.
[0140] Postscript [1]
[0141] A shape restoration apparatus includes: an acquisition unit that acquires processing information indicating conditions when a surface is processed by a tool, trajectory information indicating the trajectory of the surface being processed by the tool, and surface data indicating the state of the surface; a filter generation unit that generates a filter for extracting shape components of the surface from the surface data based on the processing information acquired by the acquisition unit; an adjustment unit that performs direction adjustment or coefficient adjustment of the filter applied to the surface data based on the trajectory information; and a filtering processing unit that performs the filtering processing based on the adjustment result of the adjustment unit.
[0142] Postscript [2]
[0143] According to the shape restoration apparatus described in Appendix [1], the shape restoration apparatus further includes a simulation unit that performs processing simulation to generate the processing surface data.
[0144] Postscript [3]
[0145] According to the shape restoration device described in Appendix [1], the processing surface data is inspection data obtained by an inspection device that inspects the state of the processing surface.
[0146] Postscript [4]
[0147] According to any one of the appendices [1] to [3], the shape restoration device includes at least one of the following: information indicating the radius of the tool, information indicating the shape of the tool, information indicating the number of cutting edges of the tool, information indicating the maximum acceleration of the control axis, information indicating the acceleration time of the control axis, information indicating the time constant of the servo mechanism, information indicating the gain of the servo mechanism, information indicating the periodic feed, and information indicating the distance between points.
[0148] Postscript [5]
[0149] The shape restoration apparatus according to any one of the appendices [1] to [4] further comprises: a rejection processing unit that performs rejection processing to remove a portion of the data from the processed surface data after the filtering processing has been performed; and a correction surface generation unit that generates a correction surface that corrects the processed surface based on the processed surface data after the rejection processing unit has removed the portion of the data.
[0150] Postscript [6]
[0151] According to the shape restoration apparatus described in Appendix [5], the rejection processing unit performs the rejection processing using at least one of uniform sampling, random sampling, and normal space sampling.
[0152] Postscript [7]
[0153] According to the shape restoration apparatus described in Appendix [5] or [6], the correction surface generation unit generates the correction surface in such a way that the difference between the processed surface after the filtering process and the correction surface converges within a predetermined range.
[0154] Postscript [8]
[0155] According to any one of the appendices [5] to [7], the shape restoration apparatus wherein the correction surface generation unit generates the correction surface using at least one of the following: linear interpolation surface approximation, cubic spline interpolation surface approximation, nearest point interpolation surface approximation, and interpolation approximation using radial basis functions.
[0156] Postscript [9]
[0157] The shape restoration apparatus according to any one of the appendices [5] to [8], wherein the shape restoration apparatus further comprises a setting unit that separately sets the distance between a plurality of positions contained in the processing surface data in which the rejection process is performed and a plurality of corresponding positions in the correction surface that correspond to the plurality of positions, and the correction surface generation unit generates the correction surface based on the distance set by the setting unit.
[0158] Postscript
[10]
[0159] According to the shape restoration device described in Appendix [9], the setting unit sets the distance between the plurality of positions and the plurality of corresponding positions individually based on the curvature of the processing surface represented by the processing surface data.
[0160] Postscript
[11]
[0161] A computer-readable storage medium stores commands that cause a computer to perform the following steps: acquiring machining information representing conditions when a machining surface is machined by a tool, trajectory information representing the trajectory when the machining surface is machined by the tool, and machining surface data representing the state of the machining surface; generating a filter for extracting shape components of the machining surface from the machining surface data based on the acquired machining information; adjusting the direction of filtering processing of the machining surface data using the filter, or adjusting the coefficients of the filter, based on the trajectory information; and performing the filtering processing based on the adjustment result.
[0162] Explanation of reference numerals in the attached figures
[0163] 1 Shape Restoration Device
[0164] 101 Hardware Processor
[0165] 102 bus
[0166] 103 ROM
[0167] 104 RAM
[0168] 105 non-volatile memory
[0169] 106 Input / Output Devices
[0170] 111 Simulation Department
[0171] 112 obtained the department
[0172] 113 Filter Generation Unit
[0173] 114 Adjustment Department
[0174] 115 Filter Processing Department
[0175] 116 Output Section
[0176] 117 Rejection Processing Department
[0177] 118 Correction Surface Generation Section
[0178] 119 Setting Department.
Claims
1. A shape restoration device, characterized in that, have: The acquisition unit acquires processing information indicating the conditions when the processing surface is processed by a tool, trajectory information indicating the trajectory when the processing surface is processed by the tool, and processing surface data indicating the state of the processing surface. A filter generation unit generates a filter for extracting the shape component of the processed surface from the processed surface data based on the processing information obtained by the acquisition unit. The adjustment unit, based on the trajectory information, performs adjustments to the direction of the filtering process applied to the machining surface data using the filter, or adjustments to the coefficients of the filter; as well as The filtering processing unit performs the filtering processing based on the adjustment result of the adjustment unit.
2. The shape restoration device according to claim 1, characterized in that, The shape restoration device also includes a simulation unit that performs processing simulation to generate the processing surface data.
3. The shape restoration device according to claim 1, characterized in that, The processed surface data is inspection data obtained by an inspection device that checks the condition of the processed surface.
4. The shape restoration device according to any one of claims 1 to 3, characterized in that, The machining information includes at least one of the following: information representing the radius of the tool, information representing the shape of the tool, information representing the number of cutting edges of the tool, information representing the maximum acceleration of the control axis, information representing the acceleration time of the control axis, information representing the time constant of the servo mechanism, information representing the gain of the servo mechanism, information representing the periodic feed, and information representing the distance between points.
5. The shape restoration device according to any one of claims 1 to 4, characterized in that, The shape restoration device also includes: The rejection processing unit performs a rejection process that removes a portion of the data from the processing surface data that has undergone the filtering process; and The correction surface generation unit generates a correction surface that corrects the processed surface based on the processed surface data after the portion of data has been removed by the rejection processing unit.
6. The shape restoration device according to claim 5, characterized in that, The rejection process unit performs the rejection process using at least one of uniform sampling, random sampling, and normal space sampling.
7. The shape restoration device according to claim 5 or 6, characterized in that, The correction surface generation unit generates the correction surface in such a way that the difference between the processed surface after the filtering process and the correction surface converges within a predetermined range.
8. The shape restoration device according to any one of claims 5 to 7, characterized in that, The correction surface generation unit uses at least one of the following to generate the correction surface: linear interpolation surface approximation, cubic spline interpolation surface approximation, nearest point interpolation surface approximation, and interpolation approximation using radial basis functions.
9. The shape restoration device according to any one of claims 5 to 8, characterized in that, The shape restoration device further includes a setting unit, which individually sets the distances between multiple positions included in the processed surface data after the rejection process and multiple corresponding positions included in the correction surface that correspond to the multiple positions. The correction surface generation unit generates the correction surface based on the distance set by the setting unit.
10. The shape restoration device according to claim 9, characterized in that, The setting unit sets the distance between the plurality of positions and the plurality of corresponding positions individually based on the curvature of the machining surface represented by the machining surface data.
11. A computer-readable storage medium, characterized in that, Store commands that cause the computer to perform the following steps: Obtain processing information representing the conditions when processing the surface using a tool, trajectory information representing the trajectory when processing the surface using the tool, and processing surface data representing the state of the surface; Based on the obtained processing information, a filter is generated for extracting the shape components of the processed surface from the processed surface data; Based on the trajectory information, the direction of the filtering process applied to the processing surface data using the filter is adjusted, or the coefficients of the filter are adjusted. as well as Based on the adjustment results, the filtering process is performed.
Citation Information
Patent Citations
Object surface correction method and working method of workpiece
JP2017156170A