Subnet Mask: Have your IT support personnel set this to be the same as the controller.

Ping Test: To do a ping test, open a Command Prompt window and type "ping" followed by the IP address of the controller. When you press ENTER, the test will attempt to establish a temporary connection to the controller. If it fails you will see a "request timed out." message displayed in the command prompt window.

# Appendix A - Controller Configuration

Configuration of NcGage is normally done by the person who installs the probe hardware. These steps are for their reference. An NCGage Configuration Tool has been provided to help with the configuration of either a Fanuc or Okuma controller. It can be accessed from your NCGage program directory. The machine configuration tool is available as a shortcut in the program group for NC Gage after installation of the NC Gage software or by clicking on ConfigTool.exe in the NC Gage installation directory.

### Files

- The Okuma files are stored on the local D drive under D:\MD1\OKUMAMonitor.MIN.The machine setup for NC Gage is contained in an XML-based text file NcGage.dat.
  NcGage.dat is used by NcGage for the machine configuration.

- The Monitor CNC Macros are contained in OkumaMonitor.cnc FanucMonitor.cnc.
  This file is to be loaded onto the control.

- The file used to restore the Configuration Tool settings is OkumaMonitor.cnc.dat FanucMonitor.cnc.dat.

- The Header Script File and Controller Script File are defined for the Okuma Fanuc controller configuration and should not need to be changed.

The NcGage.dat name is fixed. The output file name may be changed in the Output File field of the tool. The restore file name is derived from the Output File name by appending '.dat'.

### Using the Tool

This page describes the NcGage Machine Configuration Tool (MCT) for the controller. The MCT will generate a set of probing macros for use on a Fanuc or Okuma Controller depending on which one is selected from the initial dialog screen. The machine tool will require FOCAS B and High Speed Skip options and be connected to the NC Gage system via an Ethernet cable. There also needs to be sufficient memory on the controller to contain the NC Gage macros.

When the Configuration Tool starts, the following screen will be displayed: Select Okuma Fanuc from the drop-down list.

These are the available tabs in the Configuration Tools screen:

General Tab

Parameters Tab

Axis Setup Tab

Probe Tab

Note: The Okuma controller must be configured using the A MTD mode and NOT the S MTD mode.

#### General Tab

Select the OK button to display the NcGage Configuration Tool - Okuma Fanuc Macro screen. The display will default to the General tab as shown.

Unit - Select the appropriate radio button for MM or Inch units of measure. These are the units setting on the machine. Note that NcGage will work in the unit settings of the controller.

Machine Name - This name may be any text without spaces or special characters. Use an underscore if you want separation between words

Controller Type - Use this list to select the type of controller that NC Gage will be interfacing with. Ethernet controls with the FOCAS interface are currently supported.

Connect to Simulator - Used when offline and need to connect to the simulator application.

IP Address – This is the Internet Protocol (IP) address of the controller. This unique address identifies the controller on your computer network. You must ensure that the computer uses the same subnet mask
as the controller by using a ping test
to verify connectivity. This can be tested by pinging the controller if NC Gage is installed on a separate computer. On some systems, the IP address of the computer must be only one digit different than the IP address of the machine tool. For example, if the machine tool's IP address is 192.168.0.1, then the computer's IP address will need to be set to 192.168.0.2.

Port – This defines the port number of the controller. Ports control what information is allowed from connected computers.

Tool Number > 200 - Mark this check box if the tool number is larger than 200.

Tool Offset Type - For Fanuc controls: A, B or C.

Output File - This is the name of the output macro file that will be created when Generate is pressed. Note that this file name with .dat extension is also the data file for the Restore button operation and should not be changed.

Coordinate Rotation Macro # - Checkbox used to specify a particular either the G68 or G68.2 macro code for use.

G68 - Mark this radio button if the G68 code is available on the controller.

G68.2 - Mark this radio button if the G68.2 code is available on the controller.

Spindle Positioning- Put the machine code here to orient the spindle. If the machine does not have the capability, clear out the contents of this field. A variable will be appended to the supplied code and will contain the angle. For example:

Supplied Code: M19S M19RS

Generated Code: M19S#1 M19RS#1

Communication Status & Directory - The top field is the Communication Status field. It will show messages regarding the success or failure of pressing the Read Machine or Upload Program buttons. The bottom field is the Directory field. On controllers that support loading macros into multiple directories this lets you specify which directory to use by typing the directory's pathway here.

Read Machine - When supported, pressing this button will attempt to read machine variables from the control. The control must be connected via Ethernet to the NcGage computer. The Focas option must be enabled on the controller in order for this function to work (and for NC Gage to work). The IP address and FOCAS port number must be correct in Connection Parameters section.

Parameters that are read:

Tool Offset Type

Number of Axes

Axis Letters and Offset

Controller Type

Upload Program- When supported. pressing this button attempts to upload the generated macro set to the controller. The controller connection must be properly set as referenced in Read Machine and Connection Parameters. The controller must be in Edit mode. The Macro area chosen for generation must be able to be written.

#### Parameters Tab

Select the Parameters tab to display the following screen:

Speed Area

Fast Probing Feed Rate (mm/minute) - This is in mm/minute. This is the maximum speed the probe will move when Not probing. mm/minute is used regardless of controller operation in inch or mm.

Slow Probing Feed Rate (mm/minute) - This is in mm/minute. This is the speed the probe will move when searching for a surface.

Max Rotary Speed (Deg/Min) - This is in degrees/Minute. This is the speed for all rotary axes including spindle heads and rotary tables.

Address Area

Variables Base - This is the starting address for variables used by NcGage to transfer information. Currently, NcGage uses 31. The information in these variables need not be saved after loss of power.

Settings Base - This is the starting address for variables used by NcGage which establish constants for motion, probing and tools. NcGage currently uses 11. The information in these variables is expected to be saved after loss of power.

Program Number - This is the address for the generation of the monitor macro.

Probe Area

Enable Probe Macro # - Enter in this box the macro codes required to enable the probe.

Disable Probe Macro # - Enter in this box the macro codes required to disable the probe.

Probe Bit PLC Address - This is the address of the Probe Trigger PLC bit.

#### Axis Setup Tab

Select the Axis Setup tab to display the following screen:

Axis Enable Fields - For each axis, an Axis Enable Field must be set with a minimum of 3 axes are required. The known axes and axis letters will be populated by Read Machine when supported. The X, Y, and Z axes are always set and cannot be removed.

Axis Type - These may be Linear, Rotary Table, or Wrist. NC Gage 2.0 now supports Rotary Tables. To configure a rotary table in a system

- Mark the appropriate Axis Enable check box

- Select the Rotary Table option from the Axis Type drop-down list

- Select the Axis associated with each rotary table from the appropriate Axis column drop-down list. The options are A, B, C, U, V, W, X, Y, Z or NONE. Typically, linear systems are based on the X, Y and Z identifiers while rotary systems are identified by A, B and C.

- If a Stacked Rotary Table is used, select the order from the Rotary Table Stacking Order drop-down list. This option is not available unless more than one rotary table is defined.

Axis - Axis Identifier X, Y, Z, U, V, W, A, B, C and NONE.

Offset - This sets the offset in the axes map. For example, if a machine has XYZ linear axes and a B axis rotary table, the offsets might be 1, 2, 3, 4. Often, there are slave axes not included in the configuration which cause skips in the axes map so the same machine may have a map of 1, 3, 4, 5 for example.

Limit - The limit information is in machine coordinates. If these are not known, then they should be left blank. These are not used in V2.0.

Unlock/Lock Codes - These are used for rotary axes if required.

Rotary Table Stacking Order - Defines the order of multiple rotary tables.

For more information on setting up rotary tables, review the Kinematics Setup topic,

#### Probe Tab

Select the Probe tab to display the following screen:

Enable Probe Macro # - Enter in this box the macro codes required to enable the probe.

Load Probe Macro # - Enter in this box the macro codes required to load the probe.

Disable Probe Macro # - Enter in this box the macro codes required to disable the probe.

Move Test Macro # - Enter in this box the macro codes required to test that the probe is turned on and able to move.

Once all the screens have been configured as required for the system, select the Save Configuration button and then click on the Generate macro Program button.

The following buttons are available on all screens:

Use Default- This will recall the saved parameter set in <Output File Name>.dat or OkumaMonitor.cnc.dat FanucMonitor.cnc.dat by default.

Generate Macro Program - This will create a macro set in the file named in the Output File field.

Save Configuration - This will save the current parameter set for ConfigTool.exe in <Output File Name>.dat or OkumaMonitor.cnc.dat FanucMonitor.cnc.dat by default.

Exit - Exits the NcGage Configuration Tool.