Current Help System: PC-DMIS Laser (View Core Help)

## Handling Laser Probe Errors Using ONERROR

You can tell PC-DMIS to skip commands that generate certain laser probe-related errors during execution by using the ONERROR command. To do this, choose Insert | Flow Control Command | On Error. The On Error dialog box appears:

On Error dialog box

The information in this topic is specific to Laser configurations. For more information on this dialog box, see the "Branching On an Error" topic of the PC-DMIS Core documentation.

The Error mode area contains two options:

- Off - The command is not skipped. If PC-DMIS encounters and error in this mode, execution stops completely.

- Skip - Execution continues, and commands are skipped if they generate any of the following errors:

- No laser stripes found for feature execution

- No scan data

- Feature calculation error

The ONERROR command will be ignored if any other laser errors are encountered, and part program execution will stop.

When you choose SKIP and click OK, PC-DMIS inserts this command into the Edit window:

ONERROR/LASER_ERROR,SKIP