# US 11,119,465 B2 · Method for inspecting defects of machining path

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,465 B2
- Document ID: US11119465B2
- Status: Granted
- Kind: B2
- Application number: 15/930,949
- Filed: 2020-05-13
- Published: 2021-07-08
- Granted: 2021-09-14
- Earliest claimed: 2020-01-06
- Assignees: Industrial Technology Research Institute
- Applicants: Industrial Technology Research Institute
- Inventors: Cheng-Wei Wang; Kuo-Hua Chou; Chien-Chih Liao; Jen-Ji Wang
- Web page: https://patentgrep.com/patent/US11119465B2

## CPC

- G05B 19/4069: Simulating machining process on screen (G05B19/4068 takes precedence)
- G05B 19/4068: Verifying part program on screen, by drawing or other means
- G05B 19/41: characterised by interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that path (G05B19/25, G05B19/31, G05B19/37, G05B19/39, G05B19/40 take precedence)
- G06T 7/0004: {Industrial image inspection}
- G06T 17/20: Finite element generation, e.g. wire-frame surface description, {tesselation}
- G05B 2219/35106: Contour map, cutter moved along contour lines, terraces of part surface
- G05B 2219/35349: Display part, programmed locus and tool path, traject, dynamic locus
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for inspecting defects of a machining path is provided. The method includes the following steps. Firstly, a contour mold with a plurality of surface nodes is generated according to a machining program code. Next, a normal vector of each surface node of the contour mold is calculated. Then, a tangent vector of a block of the machining program code corresponding to the normal vector is calculated. Afterwards, an error information is obtained according to a relation between the normal vector and the tangent vector. When the error information is greater than a predetermined value, a defect information is shown on the contour mold.

## Claims

### Claim 1

A method for inspecting defects of a machining path, wherein the method is suitable to be performed by a computing device and comprises:
generating a contour mold with a plurality of surface nodes according to a machining program code;
calculating a normal vector of each of the surface nodes;
calculating a tangent vector of a block of the machining program code corresponding to each normal vector;
obtaining an error information according to a relation between the normal vector and the tangent vector; and
showing a defect information on the contour mold when the error information is greater than a predetermined value.

### Claim 2 (depends on 1)

The method for inspecting defects of the machining path according to claim 1, wherein the step of generating the contour mold according to the machining program code comprises:
drawing a 2D mesh with a plurality of mesh points;
locating two block nodes of one block adjacent to each of the mesh points, and performing interpolation on the mesh point along a coordinate axis according to the two block nodes to obtain a coordinate value corresponding to each of the mesh points, wherein a point having the coordinate value along the coordinate axis from the mesh point is the surface node; and
smoothing the surface nodes to generate the contour mold.

### Claim 3 (depends on 2)

The method for inspecting defects of the machining path according to claim 2, wherein the grid size of the 2D mesh is equivalent to the length of one block of the machining program code.

### Claim 4 (depends on 1)

The method for inspecting defects of the machining path according to claim 1, wherein the surface nodes further forma 3D mesh.

### Claim 5 (depends on 4)

The method for inspecting defects of the machining path according to claim 4, wherein the step of calculating the normal vector of each of the surface nodes comprises:
locating two vectors of the 3D mesh passing through each of the surface nodes; and
performing a vector cross product on the two vectors to obtain the normal vector of each of the surface nodes.

### Claim 6 (depends on 1)

The method for inspecting defects of the machining path according to claim 1, wherein the step of calculating the tangent vector of the block of the machining program code corresponding to each normal vector comprises:
locating two block nodes from the machining program code adjacent to the surface node having the normal vector; and
obtaining the tangent vector formed by the two block nodes.

### Claim 7 (depends on 1)

The method for inspecting defects of the machining path according to claim 1, wherein the error information is a difference between an angle formed between the normal vector and the tangent vector and a right angle.

### Claim 8 (depends on 7)

The method for inspecting defects of the machining path according to claim 7, further comprising:
correcting a corresponding defective block node of the machining program code according to the difference when the difference is greater than the predetermined value.

### Claim 9 (depends on 8)

The method for inspecting defects of the machining path according to claim 8, wherein the step of correcting the corresponding defective block node of the machining program code according to the difference comprises:
calculating an overcut amount according to the angle; and
moving the defective block node along the direction of the normal vector to compensate the overcut amount.

### Claim 10 (depends on 1)

The method for inspecting defects of the machining path according to claim 1, wherein the defect information is shown with different colors, brightness levels, gray levels or signs.
