Skip to main content

2023.1 HxGN NC Server with NC Gage

How To Call a Gaging Program from an NC Program

You can call gaging programs automatically from NC programs to perform automatic measurement and feedback to cutting programs. The instructions below describe how to use a gaging program in an NC program.

Instructions

1

image228.png

Save the gaging program with a numeric name.

  • The numeric program name can only contain numbers.

  • The value of the numeric program name can only be between 1 and 9999.

2

Return to the NC Gage Home screen.

3

Add the necessary lines to the NC program to load the probe.

4

Add a line to the NC program after the lines that load the probe.

For example, on Fanuc controls G65 P7001 H1234 or on Okuma controls CALL O7001 LPRG=1234.

  • The subprogram number “7001” cannot be the same on your machine. You can determine this number by the teach-in macro number from NC Gage + 1. For example, if you use "O7000" when you operate NC Gage for teach-in, then the automatic mode macro number is "7001".

  • Replace “1234” with the number you use to save the gaging program in step 1.

5

Start the NC program on the control.

6

When NC Gage executes the program line from step 4, the NC Gage home screen displays a Stop button, shows the gaging program and reports the results while executing.

Errors

If an error occurs during automatic measurement (for example, when probe collisions occur or a point is not found) press the Stop button on the home screen. This cancels the execution. If the machine tool is not able to initialize the probe, NC Gage returns you to the cutting macro.