#### Reset global settings when branching

If you select the Reset global settings when branching check box, PC-DMIS will reset the global values for state commands (see the list of commands below.) after encountering a branching statement. (For information on branching, see the "Branching by Using Flow Control " section for information on branching). Any state commands jumped over, because of a branching statement, will not be executed. This allows you to skip over sections of the program without having these settings change.

For example, suppose your part program has the following:

TIP /T1A0B0
MYLABEL=LABEL/

Measurements etc...

TIP/T1A90B90
GOTO/MYLABEL

If you select the check box,
When PC-DMIS reads the GOTO statement, it jumps to MYLABEL. And then searches up, using the first encountered TIP/ command: TIP/T1A0B0

Note: When returning from subroutines, any global setting modified by the subroutine will not be affected by the Reset global settings when branching flag. See "Pass Back Settings from Subroutine" for more information.

If you deselect this check box,
When PC-DMIS reads the GOTO statement, it jumps to MYLABEL. PC-DMIS won't reset global settings when encountering a branching statement. Instead, it uses the last executed TIP/ command: TIP/T1A90B90

PC-DMIS defaults to selecting the check box. In versions prior to version 3.25, PC-DMIS automatically reset the global values of the state commands. Now, PC-DMIS gives you the option to turn this option On or Off.

Commands Reset After Branching:

- Start/align

- Recall/align

- Mode/

- Rmeas /

- Workplane/

- Tip/

- Loadprobe/

- Retract/

- Check/

- Touchspeed/

- Movespeed/

- Polarvectorcomp/

- AutoTrigger/

- Triggerplane/

- TriggerTolerance/

- Videosetup/

- Displayprecision/

- ManRetract/

- Scanspeed/

- Prehit/

- Clamp/

- Clearp /

- Format/

- 132column/

- Gaponly/

- Retrolinearonly/

- Probecom/

- Array_indices/

- Fly/

- Positivereporting/

- Ignoremotionerrors/