### Step 2: Generating the Monitor Program

A Monitor NC Program is used to communicate between PC-DMIS NCI and the NC Controller. The set of NC Programs includes the Monitor program and all of the support macro programs it requires to implement movement and single point measurement. Monitor programs may be custom generated using CncServer.exe.

To Generate a .CNC File:

1. Complete "Step 1: Install PC-DMIS NCI and Define a Machine" All parameters must be correctly set.

2. Verify correct settings in the MachineDefinition dialog box and click OK to close. Click OK to close the Define Machine dialog box to exit out to the main CNC Server screen. This will save your machine definition settings.

3. Open the Measure tab of the MachineDefinition dialog box. Click the Generate button to create a .cnc file for the control formatted as “Wilcox”<controller Base name>.cnc (ex. WilcoxFanuc.cnc).

4. Load the newly created .cnc file onto the NC machine. The name of the monitor set is WilcoxFanuc.cnc for Fanuc controls and WilcoxSiemens.cnc for Siemens controls.

Important considerations for generating your .CNC file:

- If the generated program requires modification to run, it is best to use the MachineDefinition dialog box to make changes. This will insure that you have a valid parameter set for automatic regeneration. Make the needed changes and exit out to the main screen of the CNC Server application.

- If you have edited the generated .cnc file using an editor such as Notepad, etc. and you do not update the MachineDefinition dialog box settings to match, then create backup copies of the modified Monitor program set from the control.

Note: You cannot change the Macro Variable addresses by editing the .cnc file because PC-DMIS NCI is using the information from the Machine Definition to define the addresses of these variables for communication.