Establishing an SMB share between a CNC controller and a Windows PC

Establishing an SMB share between a CNC controller and a Windows PC

A typical CNC machine can share files with a Windows PC using SMB (Server Message Block). This allows you to transfer programs and other files between the CNC and your computer. You'll need to configure both the CNC control and your Windows PC to enable this sharing. 

This could be a useful way to pass Offset data to CNC milling operation based on previous part inspection.  See details here to create custom text file compatible with your CNC machining center - CMM-Manager - VB Script - Create custom text / report file

Example on Haas CNC Controller

1. Haas CNC Setup:

Enable Network Connection:
  1. Ensure the Haas machine has a working network connection (wired or wireless) and that the status is "UP".

Net Share Settings:
  1. Navigate to the Net Share tab in the machine's settings.
  2. Give the CNC a unique network name (e.g., "HaasCNC").
  3. Enable Local Net Share and Local Net Share Security, setting them to ON.
  4. Set a username (default is "haas", but you can choose a password).
  5. Enter a password for the share.
  6. Press F4 to configure.
  7. Wait for the Local Net Share status to show "UP". 

2. Windows PC Setup:

Network Discovery and Sharing:
  1. Make sure your PC is connected to the same network as the Haas machine. 
  2. Enable network discovery and file & printer sharing in your PC's network settings. 
  3. In Windows features, verify that the SMB 1.0/CIFS File Sharing Support is enabled. 

Accessing the Share:
  1. Open File Explorer. 
  2. Type \\<CNC Network Name> (e.g., \\HaasCNC) in the address bar. 
  3. You'll be prompted for the username and password you set on the Haas. 
  4. Once authenticated, you'll see the CNC's User Data and other shared folders. 

Example on Fanuc CNC Controller

1. Network setup

Physical Connection:
Connect the FANUC CNC to your network using an Ethernet cable. For a direct connection between the PC and CNC, a crossover cable might be needed. Alternatively, you can use a router or network switch to connect both devices using standard Ethernet cables.

IP Addresses:
Assign static IP addresses to both the CNC and the Windows PC within the same subnet. For example, if your router uses 192.168.5.1, set the CNC to 192.168.5.x and the PC to 192.168.5.y (where x and y are different numbers).
Ensure the subnet mask is identical for both devices (e.g., 255.255.255.0).
Configure the router's IP address (gateway) on both the CNC and the PC if connected through a router.

FANUC CNC Ethernet Settings:
Access the CNC's Ethernet settings through the control panel. Navigate to the Ethernet settings menu (usually under System settings, then Ether Board or Embedded Port).
Configure the IP address, subnet mask, and router IP address (if applicable) within the FANUC CNC's network settings.
Disable DHCP (Dynamic Host Configuration Protocol) on the CNC to ensure a static IP address assignment.

Windows PC Network Settings:
In Windows, go to Control Panel > Network and Sharing Center > Advanced sharing settings.
Enable network discovery and file and printer sharing.
If necessary, configure a static IP address within the same subnet as the CNC. 

2. Windows folder sharing

Create a Shared Folder:
Create a new folder on your Windows PC that you intend to share with the CNC.

Configure Sharing Permissions:
Right-click on the newly created folder and select "Properties."
Go to the "Sharing" tab and click "Advanced Sharing."
Check "Share this folder" and configure appropriate permissions for the user account that the CNC will use to access the share.
For initial testing, you can grant "Everyone" full control, but it's recommended to limit access to a specific user account for better security.
Consider creating a dedicated local user account on your Windows PC for the CNC connection, granting it only the necessary permissions to access the shared folder, according to the Spiceworks Community.

Optional: Disable Password Protected Sharing:
If you're facing connection issues, consider temporarily disabling password protected sharing in Windows Advanced sharing settings. 

3. Accessing the share from the FANUC CNC

FANUC Control Panel:
On the FANUC CNC control panel, locate the function for accessing external storage or shared folders. This may vary depending on your specific FANUC model and software version.

Inputting Share Information:
Enter the network path to the shared folder on your Windows PC (e.g., \IP_Address\Shared_Folder_Name).

User Authentication (if applicable):
If you configured user authentication on the Windows shared folder, enter the username and password for the CNC to access the share. 
    • Related Articles

    • Reconnect Helmel PMAC controller after Windows Update

      Helmel DCC / PMAC controller Error: PMAC Error 999 - General PMAC Error See attached document from Helmel for help reconnecting PMAC controller after Windows Update.  
    • Recommended PC Specs / System Requirements

      Recommended PC Configuration * - CMM-Manager may run on Windows 7 and 8.1 however, these versions of Windows are outdated and no longer supported by Microsoft. QxSoft does not do any testing of CMM-Manager on Windows versions prior to Windows 10 and ...
    • Windows 11

      We have received several questions about Windows 11 and CMM-Manager. Renishaw has determined that they will not officially support Windows 11 until UCC Suite 5.9 at the earliest to allow sufficient time to fully test the drivers in Windows 11. We ...
    • Backup and Restore / Move to a New PC

      It is necessary to backup and restore CMM-Manager when porting CMM-Manager to another computer, or re-formatting the original computer CMM-Manager was installed on. This document serves as a guideline on how to backup and restore CMM-Manager, ...
    • Renishaw Controller / UCC Suite version support

      The following table lists the supported controllers and the versions of the UCC Suite required for each. The following UCC Suite versions are not supported: 5.6.x 5.7.0, 5.7.1 5.9.x 5.10.0 Windows 11 support begins with 5.9.0 however, as noted above, ...