# US 2015/0103156 A1 · System and method for controlling a tracking autofocus (taf) sensor in a machine vision inspection system

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

- Number: US 2015/0103156 A1
- Document ID: US20150103156A1
- Status: Published application
- Kind: A1
- Application number: 14/052,579
- Filed: 2013-10-11
- Published: 2015-04-16
- Earliest claimed: 2013-10-11
- Assignees: Mitutoyo Corporation
- Applicants: Mitutoyo Corporation
- Inventors: Ryan Northrup; Dahai Yu; Hirato Sonobe
- Web page: https://patentgrep.com/patent/US20150103156A1

## CPC

- H04N 23/62: Control of parameters via user interfaces
- G01B 9/04: Measuring microscopes
- G01B 11/005: {coordinate measuring machines}
- G02B 21/244: {using image analysis techniques}
- G02B 21/365: {Control or image processing arrangements for digital or video microscopes (G02B21/361, G02B21/362 take precedence)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G01B: MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS

## Abstract

A method is provided for controlling a Tracking AutoFocus (TAF) portion of a machine vision inspection system including an imaging portion, a movable workpiece stage, a control portion, and graphical user interface (GUI). The TAF portion automatically adjusts a focus position of the imaging portion to focus at a Z height corresponding to a current surface height of the workpiece. The method includes providing the TAF portion, and providing TAF enable and disable operations, wherein: the TAF disable operations comprise a first set of TAF automatic interrupt operations that are automatically triggered by user-initiated operations that include changing the Z height, and the TAF disable operations may further comprise automatic interrupt operations that are automatically triggered based on at least one respective TAF Z height surface tracking characteristic exceeding a previously set TAF disable limit for that respective TAF Z height surface tracking characteristic.

## Claims

### Claim 1

A method for controlling operation of a Tracking AutoFocus (TAF) portion of a machine vision inspection system including an imaging portion, a movable stage for holding one or more workpieces in a field of view of the imaging portion, a control portion, and graphical user interface (GUI), wherein the TAF portion operates to automatically adjust a focus position of the imaging portion to focus at a Z height corresponding to a current surface height of the workpiece in the field of view, the method comprising:
(A) providing the TAF portion, comprising a focus sensor and a motion control portion that is responsive to a focus signal derived from the focus sensor to focus the imaging portion at the Z height corresponding to the current surface height, when TAF is enabled;
(B) providing TAF enable and disable operations,
wherein:
(B1) the TAF disable operations comprise a first set of TAF automatic interrupt operations that are automatically triggered by user-initiated operations that include changing the Z height.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first set of TAF automatic interrupt operations comprises operations that terminate TAF adjustments of the Z height, wherein there are no conditions under which the TAF portion automatically resumes Z height adjustments without a user-initiated instruction which restarts TAF Z height control operations.

### Claim 3 (depends on 1)

The method of claim 1, wherein the user-initiated operations that include changing the Z height comprise at least one of a) an explicit Z height adjustment operation and b) operations associated with an image-based autofocus video tool that is included in the machine vision inspection system.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
(B2) the TAF disable operations further comprise a second set of TAF automatic interrupt operations that are automatically triggered based on at least one respective TAF Z height surface tracking characteristic exceeding a previously set TAF disable limit for that respective TAF Z height surface tracking characteristic.

### Claim 5 (depends on 4)

The method of claim 4, wherein the method further comprises providing a TAF disable limit definition element in the GUI, operating the GUI to provide the TAF disable limit definition, and setting the previously set TAF disable limit based on the provided TAF disable limit definition.

### Claim 6 (depends on 4)

The method of claim 4, wherein:
the at least one respective TAF Z height surface tracking characteristic comprises at least one of a) the Z height as controlled by the TAF portion, b) the rate of change of the Z height as a function of time, and c) the rate of change of the Z height as a function of distance along an X-Y direction, d) a surface tracking error comprising a difference between the current Z height at a current XY position and an indication of the required TAF focus Z height at the current XY position, and e) a TAF deviation signal that is indicative of a difference between the current Z height at a current XY position and the required TAF focus Z height at the current XY position, and
the previously set TAF disable limit for that TAF Z height surface tracking characteristic comprises at least one of f) an absolute Z height limit, g) a relative Z height limit defined relative to a current baseline Z height of the TAF portion, h) a limit on the rate of change of the Z height as a function of time, i) a limit on the rate of change of the Z height as a function of distance along an X-Y direction, j) a limit on the surface tracking error, and k) a limit on the TAF deviation signal.

### Claim 7 (depends on 6)

The method of claim 6, wherein the current baseline Z height of the TAF portion is one of a) a fixed Z height defined for a current instance of TAF Z height adjustment operations, and b) an adaptively changing baseline Z height determined based on a set of recent Z heights as controlled by the TAF portion.

### Claim 8 (depends on 6)

The method of claim 6, wherein the second set of TAF interrupt operations comprise a TAF holding mode that is automatically triggered, wherein the TAF holding mode includes discontinuing TAF adjustments of the Z height and further includes that if the at least one respective TAF Z height surface tracking characteristic returns below the previously set TAF disable limit for that respective TAF Z height surface tracking characteristic during the TAF holding mode, then TAF Z height adjustments are automatically resumed without a user-initiated instruction.

### Claim 9 (depends on 8)

The method of claim 8, wherein when the TAF Z height adjustments are automatically resumed, the current baseline Z height is automatically set to a new value based on a current actual Z height.

### Claim 10 (depends on 9)

The method of claim 9, wherein the new value of the current baseline Z height is based on the current actual Z height at the time of resuming plus a correction based on the TAF deviation signal, or is based on the current actual Z height at the time of resuming plus a correction based on the TAF adjustments of the Z height after resuming.

### Claim 11 (depends on 8)

The method of claim 8, wherein the method further comprises providing a TAF status indication on the GUI, the TAF status indication indicating at least one of TAF enabled or on, TAF disabled or off, and TAF suspended or holding mode.

### Claim 12 (depends on 1)

The method of claim 1, wherein the GUI comprises a part program editing window including part program instruction representations displayed during learn mode operations of the machine vision inspection system, and the method further comprises providing instruction representations corresponding to the TAF enable and disable operations.

### Claim 13 (depends on 12)

The method of claim 12, wherein during the learn mode of operation and when TAF is disabled, when it is attempted to enable TAF at an (X,Y) position:
the TAF portion attempts to adjust the Z height at that (X,Y) position;
if the Z height is successfully adjusted by the TAF portion at a Z height Zadj, then in the part program editing window a set of TAF enable instruction representations are displayed that firstly position the machine vision inspection system at the position (X,Y, Zadj) and that secondly enable TAF operations at that position.

### Claim 14 (depends on 13)

The method of claim 13, wherein during the learn mode of operation and when TAF is disabled, when it is attempted to enable TAF at an (X,Y) position:
the TAF portion attempts to adjust the Z height at that (X,Y) position;
if the Z height is not successfully adjusted by the TAF portion at that (X,Y) position, then the TAF enable attempt is cancelled and a set of TAF enable instruction representations are not displayed in the part program editing window.

### Claim 15 (depends on 12)

The method of claim 12, wherein:
the user-initiated operations that include changing the Z height comprise at least one of a) an explicit Z height adjustment operation and b) operations associated with an image-based autofocus video tool that is included in the machine vision inspection system;
the first set of TAF automatic interrupt operations comprises operations that terminate TAF adjustments of the Z height, wherein there are no conditions under which the TAF portion automatically resumes Z height adjustments without a user-initiated instruction which restarts TAF Z height control operations; and
during the learn mode of operation and when TAF is enabled, when user initiates one of the operations that include changing the Z height, then displaying in the part program editing window: (i) an instruction representation corresponding to terminating TAF adjustments of the Z height in a manner consistent with the first set of TAF automatic interrupt operations, and (ii) an instruction representation corresponding to the user-initiated one of the operations that include changing the Z height.

### Claim 16

A computer-readable non-transitory medium including computer-executable instructions, which are configured to be loaded onto a computer to control a machine vision inspection system including an imaging portion; a movable stage for holding one or more workpieces in a field of view of the imaging portion; a Tracking AutoFocus (TAF) portion that operates to automatically adjust a focus position of the imaging portion to focus at a Z height corresponding to a current surface height of the workpiece in the field of view, the TAF portion comprising a focus sensor and a motion control portion that is responsive to a focus signal derived from the focus sensor to focus the imaging portion at the Z height corresponding to the current surface height, when TAF is enabled; and a graphical user interface (GUI), the GUI under control of the computer-executable instructions being configured to:
display instruction representations corresponding to TAF enable and disable operations in a part program editing window including part program instruction representations displayed during learn mode operations of the machine vision inspection system,
wherein the TAF disable operations comprise a first set of TAF automatic interrupt operations that are automatically triggered by user-initiated operations that include changing the Z height.

### Claim 17 (depends on 16)

The computer-readable non-transitory medium of claim 16, wherein during the learn mode of operation and when TAF is disabled, when it is attempted to enable TAF at an (X,Y) position, the TAF portion attempts to adjust the Z height at that (X,Y) position, and
if the Z height is successfully adjusted by the TAF portion at a Z height Zadj, then the GUI displays in the part program editing window a set of TAF enable instruction representations that firstly position the machine vision inspection system at the position (X,Y, Zadj) and that secondly enable TAF operations at that position.

### Claim 18 (depends on 16)

The computer-readable non-transitory medium of claim 16, wherein:
the user-initiated operations that include changing the Z height comprise at least one of a) an explicit Z height adjustment operation and b) operations associated with an image-based autofocus video tool that is included in the machine vision inspection system;
the first set of TAF automatic interrupt operations comprises operations that terminate TAF adjustments of the Z height, wherein there are no conditions under which the TAF portion automatically resumes Z height adjustments without a user-initiated instruction which restarts TAF Z height control operations; and
during the learn mode of operation and when TAF is enabled, when user initiates one of the operations that include changing the Z height, then the GUI displays in the part program editing window: (i) an instruction representation corresponding to terminating TAF adjustments of the Z height in a manner consistent with the first set of TAF automatic interrupt operations, and (ii) an instruction representation corresponding to the user-initiated one of the operations that include changing the Z height.

### Claim 19 (depends on 16)

The computer-readable non-transitory medium of claim 16,
wherein the TAF disable operations further comprise a second set of TAF automatic interrupt operations that are automatically triggered based on at least one respective TAF Z height surface tracking characteristic exceeding a previously set TAF disable limit for that respective TAF Z height surface tracking characteristic, and
wherein the GUI is further configured to display a TAF disable limit definition element that operates to define the previously set TAF disable limit.

### Claim 20 (depends on 19)

The computer-readable non-transitory medium of claim 19, wherein the previously set TAF disable limit comprises i) a positive relative Z height limit defined relative to a current baseline Z height of the TAF portion to indicate a rising surface, and ii) a negative relative Z height limit defined relative to the current baseline Z height of the TAF portion to indicate a falling surface.

### Claim 21 (depends on 16)

The computer-readable non-transitory medium of claim 16,
wherein the TAF disable operations further comprise a second set of TAF automatic interrupt operations that are automatically triggered based on at least one respective TAF Z height surface tracking characteristic exceeding a previously set TAF disable limit for that respective TAF Z height surface tracking characteristic, and
wherein the GUI is further configured to display a TAF status indication indicating at least one of TAF enabled or on, TAF disabled or off, and TAF suspended or holding mode.

### Claim 22 (depends on 16)

The computer-readable non-transitory medium of claim 16,
wherein the GUI is further configured to display a TAF enable/disable selection element operable to receive user input to turn on/off the TAF portion.

### Claim 23

A machine vision inspection system including an imaging portion, a movable stage for holding one or more workpieces in a field of view of the imaging portion, a control portion, a Tracking AutoFocus (TAF) portion that operates to automatically adjust a focus position of the imaging portion to focus at a Z height corresponding to a current surface height of the workpiece in the field of view, the TAF portion comprising a focus sensor and a motion control portion that is responsive to a focus signal derived from the focus sensor to focus the imaging portion at the Z height corresponding to the current surface height, when TAF is enabled; and a graphical user interface (GUI), wherein the control portion is configured to:
provide TAF enable and disable operations,
wherein:
the TAF disable operations comprise a first set of TAF automatic interrupt operations that are automatically triggered by user-initiated operations that include changing the Z height.

### Claim 24 (depends on 23)

The system of claim 23, wherein the GUI comprises a part program editing window including part program instruction representations displayed during learn mode operations of the machine vision inspection system, and during the learn mode of operation and when TAF is disabled, when it is attempted to enable TAF at an (X,Y) position;
the TAF portion attempts to adjust the Z height at that (X,Y) position;
if the Z height is successfully adjusted by the TAF portion at a Z height Zadj, then the GUI displays in the part program editing window a set of TAF enable instruction representations that firstly position the machine vision inspection system at the position (X,Y, Zadj) and that secondly enable TAF operations at that position.

### Claim 25 (depends on 23)

The system of claim 23, wherein:
the user-initiated operations that include changing the Z height comprise at least one of a) an explicit Z height adjustment operation and b) operations associated with an image-based autofocus video tool that is included in the machine vision inspection system;
the first set of TAF automatic interrupt operations comprises operations that terminate TAF adjustments of the Z height, wherein there are no conditions under which the TAF portion automatically resumes Z height adjustments without a user-initiated instruction which restarts TAF Z height control operations; and
the GUI comprises a part program editing window including part program instruction representations displayed during learn mode operations of the machine vision inspection system, and during the learn mode of operation and when TAF is enabled, when user initiates one of the operations that include changing the Z height, then the GUI displays in the part program editing window: (i) an instruction representation corresponding to terminating TAF adjustments of the Z height in a manner consistent with the first set of TAF automatic interrupt operations, and (ii) an instruction representation corresponding to the user-initiated one of the operations that include changing the Z height.
