Need to set a static IP or do a FOCAS test? You're in the right place.

This guide walks through setting a static IP on Fanuc CNC controllers, covering the 0i-TF/PF, 30i/31i/32i, and 16i/18i/21i series. A static IP is the first step toward connecting your machine to monitoring software, DNC systems, or FOCAS-based data collection.

Note: Most Fanuc controllers manufactured after 2005 include embedded Ethernet as standard. Older machines may need an optional Ethernet board or PCMCIA card.

1. Check Your Hardware

Before configuring anything, confirm which Ethernet interface your controller has. Look at the back of the control unit for an RJ-45 port (standard network cable connector).

InterfaceFound OnMax Connections
Embedded Ethernet (standard)0i-D/F/TF/PF, all 30i, most 18i-B+5 clients
Fast Ethernet Board (option)Installed in option slot20 clients
PCMCIA Ethernet CardMemory card slot (temporary use)1 client

The embedded Ethernet port uses connector CD38A on the control unit or CD38S on the display unit. Plug in a standard Ethernet cable and confirm the link light is active.

2. Navigate to the Ethernet Settings

The menu path differs slightly depending on your controller series, but the concept is the same: get to the SYSTEM screen and find the Ethernet soft key.

Navigation path to Ethernet settings
Figure 1: Navigation path to reach Ethernet settings

0i-TF/PF and 30i/31i/32i Series

  1. Press the [SYSTEM] hard key on the operator panel
  2. Press the [+] continue key (right arrow) repeatedly
  3. Look for [EMBED] or [EMBED PORT] in the soft key bar
  4. Press it, then press [COMMON] to see IP settings

16i/18i/21i Series

  1. Press [SYSTEM], then scroll with the continue key
  2. Look for [ETHPRM] instead of [EMBED PORT]
  3. Press [ETHPRM], then [EMBEDD] for the embedded port

Note: On the 16i/18i/21i, the CNC must be in MDI mode to edit Ethernet settings.

3. Set the Static IP Address

Enable Parameter Write

Before making changes, go to the SETTING screen and set PWE (Parameter Write Enable) to 1. Without this, the controller will reject your edits.

Configure Key Parameters

Navigation path to Ethernet settings
Figure 2: Key parameters that must be set correctly

Set these parameters first:

Note: If the [EMBED] or [EMBED PORT] soft key is missing, Parameter 14880 Bit 0 is almost certainly set to 1. This is the most common issue reported by technicians.

Enter the IP Address

Navigate to the COMMON screen under EMBED PORT (or ETHPRM on 16i/18i/21i). You will see fields for IP Address, Subnet Mask, and Router IP Address.

Navigation path to Ethernet settings
Figure 3: The COMMON screen where you enter IP, subnet, and gateway

Use the MDI keys to type each octet and press [INPUT] after each field. A typical shop floor setup might look like:

FieldExample Value
IP Address192.168.1.100
Subnet Mask255.255.255.0
Router IP (Gateway)192.168.1.1

Coordinate with your IT department or network administrator to get an available IP address on your shop floor network. Make sure it does not conflict with any other device.

4. Configure the FOCAS2 Port

FOCAS (Fanuc Open CNC API Specification) is how monitoring software communicates with Fanuc controllers. It runs over TCP and needs a port number configured on the controller.

Navigation path to Ethernet settings
Figure 4: FOCAS2 settings screen with the default port 8193

Navigate to the [FOCAS2] soft key (under EMBED PORT) and set:

Note: Port 8193 must match what your monitoring or data collection software expects. Most FOCAS-based tools use 8193 by default.

5. Power Cycle the Controller

Changes to IP settings and parameters do not take effect until the controller is restarted. You have two options:

Note: A software restart will drop any active Ethernet connections. Do not use it while a DNC program is transferring.

6. Verify the Connection

After the controller restarts, verify that the network is working from both sides.

From the Fanuc Controller

Navigate to [EMBED PORT] > [PING]. Enter the IP address of a PC on the same network and press [P.EXEC]. A successful result displays "Response is received".

Navigation path to Ethernet settings
Figure 5: Built-in ping utility and PC-side verification commands

From a PC on the Same Network

Open a Command Prompt and run:

ping 192.168.1.100

Then verify the FOCAS port is reachable:

telnet 192.168.1.100 8193

If ping works but telnet fails, the FOCAS port is likely not set correctly, or the FOCAS option is not activated on the controller.

7. 16i/18i/21i Series Differences

If you are working with the older 16i, 18i, or 21i controllers, there are a few important differences to be aware of.

Navigation path to Ethernet settings
Figure 6: The ETHPRM screen used on 16i/18i/21i controllers

8. Troubleshooting

ProblemCauseFix
[EMBED] soft key missingParam 14880 Bit 0 = 1Set Bit 0 to 0 and power cycle
Ping fails from PCSubnet mismatchVerify CNC and PC are on the same subnet
Ping works but FOCAS failsPort not set or FOCAS not activatedSet FOCAS TCP port to 8193; confirm FOCAS option is enabled
DHCP ERROR on screenNo DHCP server foundSet Param 14880 Bit 6 = 1 for static IP
Intermittent connection dropsCNC on busy networkUse a dedicated subnet or VLAN for CNC machines
Windows PC cannot connectFirewall blocking portAdd inbound rule for TCP 8193 in Windows Firewall

9. Connect to Your Monitoring System

Once your Fanuc controller has a static IP and FOCAS is responding on port 8193, it is ready to add to a production monitoring system or SCADA.

Over FOCAS2, a monitoring platform can automatically read spindle speed, feed rates, axis positions, alarm states, part counts, cycle times, and program information. This data feeds into live dashboards, automated alerts, and historical trend analysis.

Conclusion

Setting a static IP on a Fanuc CNC is straightforward once you know where to look. The core steps are the same across all series: access the Ethernet screen under SYSTEM, enter your IP/subnet/gateway, set the FOCAS port to 8193, and power cycle. The 16i/18i/21i family uses a slightly different menu path ([ETHPRM] instead of [EMBED PORT]) and lacks DHCP, but the actual IP entry process is identical.

If you run into issues, start with Parameter 14880 Bit 0. That single bit being wrong accounts for the majority of connectivity problems on Fanuc machines.