Connect FANUC Series 0i (0i-D, 0i-F, 0i-F Plus)
FANUC 0i-D, 0i-F and 0i-F Plus are read over FOCAS2 on Ethernet, TCP port 8193 by default, from the embedded Ethernet port. The collector needs FANUC's FOCAS library (A02B-0207-K732 or K737). MTConnect is possible through FANUC's PC-based MTConnect Server, which also needs a CNC-side option. No FANUC page we checked documents an OPC UA server running on the CNC itself.
At a glance
| Native protocols | FOCAS2 over Ethernet; FOCAS over HSSB (fibre) |
|---|---|
| Default port | TCP 8193 (FOCAS2) |
| Licence on the collector | FOCAS library A02B-0207-K732 or A02B-0207-K737 |
| Licence on the CNC | FOCAS Ethernet function: standard on many 0i-D/F, an option on others |
| MTConnect | Via FANUC MTConnect Server (Windows PC) plus a CNC option |
| OPC UA | Through a gateway or OPC server that speaks FOCAS |
Connection paths
Read directly from the embedded port with a FOCAS driver, edge gateway or open-source collector. Richest data, lowest cost.
FANUC's Windows software exposes the CNC as an MTConnect agent. Supports 0i-D and 0i-F; requires a CNC option and offers a 30-day trial.
A gateway such as Softing edgeConnector or SDEX reads FOCAS and serves OPC UA and MQTT, so MES and SCADA see a standard interface.
If FOCAS cannot be enabled, wire run, alarm and part-count signals to an I/O module. Only state and counts, no program or alarm detail.
Licences and options
| Item | Option / part number | Paid? | Note |
|---|---|---|---|
| FOCAS1 library (Ethernet) | A02B-0207-K732 | Paid | Installed on the collector PC; from a FANUC distributor |
| FOCAS2 library (Ethernet + HSSB) | A02B-0207-K737 | Paid | Installed on the collector PC |
| FOCAS Ethernet function on the CNC | Part number not published | Depends | Present by default on many 0i-D/F; otherwise added by FANUC |
| FANUC MTConnect Server | CNC option, name not published | Paid | 30-day trial; Windows 7/10 |
Ports
| Port | Protocol | Note |
|---|---|---|
8193 | TCP | FOCAS2/Ethernet, default, configurable 5001 to 65535 |
8196 | TCP | Unsolicited messaging (Fast Ethernet board only) |
5000 | HTTP | Typical MTConnect agent port when an agent is added |
Software versions
- FOCAS2 library covers FS0i-D/F (32- and 64-bit); FOCAS1 covers older series (32-bit only).
- 0i-F Plus: embedded Ethernet is standard; Fast Ethernet with a dedicated communication processor is also offered.
- Integrator rule of thumb: controls about 10 to 15 years old or newer typically support FOCAS.
Data you can read
- Program: running main program number and name, program comment, current block and sequence number
- Status: mode, run state, emergency stop, alarm state, operator messages
- Feed and spindle: feedrate and spindle overrides, actual feed and spindle speed, spindle load
- Axes: machine, absolute and relative positions, distance to go, servo and spindle load
- Alarms and diagnostics: active alarm list, diagnostic data
- Macro variables: common #100 to #999, local #1 to #33, system #1000 to #9999
- PMC (ladder) areas such as R, D, G, F, X, Y, availability depending on the model
- Tool offsets, work offsets, parameters, tool life management, part count, modal G-codes, system information
Setting it up
- Confirm the control speaks FOCAS over EthernetOn most i-series controls FOCAS is present, but on some it must be added or enabled. Integrator documentation lists 0i-D/F, 16i-B/18i-B and the 30i family as including FOCAS by default; others can have it added by FANUC with software and, where needed, a Fast Ethernet board. Ask the machine builder or FANUC before you plan the job.
- Pick the Ethernet portUse the embedded Ethernet port (connector CD38A on the CNC unit) or an Ethernet / Fast Ethernet board if fitted. On the setting screen the active device must be the embedded port, not the memory card slot.
- Set the address on the CNCSYSTEM → [ETHER BOARD] or [EMBED PORT] (shown as ETHPRM / EMBDD on some screens) → [COMMON]: IP address, subnet mask, router. Use a fixed address agreed with plant IT.
- Set the FOCAS portSame screen → [FOCAS2]: TCP port 8193 is the usual default (allowed range 5001 to 65535). Leave the UDP port at 0 and the time interval at 0 for FOCAS2 use.
- Install the FOCAS library on the collectorFOCAS client software needs FANUC's FOCAS library: A02B-0207-K732 (FOCAS1, Ethernet) or A02B-0207-K737 (FOCAS2, Ethernet and HSSB), bought from a FANUC distributor. Commercial drivers will not run without it.
- Test from the plant networkOpen TCP 8193 from the collector to the CNC, connect with your driver and read a harmless value first: program number, mode, part count. Then add the rest of the tags.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Driver connects to nothing, CNC answers ping | FOCAS function not enabled, or the wrong port number in the driver | Check the [FOCAS2] TCP port on the CNC screen and confirm with the builder that the FOCAS Ethernet function is enabled. |
| Connection refused when a second PC connects | Client limit of the port in use | Embedded Ethernet is meant for few clients (one PC recommended); an Ethernet board accepts more and a Fast Ethernet board the most. Use one collector and share its data instead of letting every tool open its own connection. |
| Driver installed, project will not run | FOCAS library DLLs missing or wrong bitness | Install the FANUC library (K732 or K737). Commercial OPC drivers use the 32-bit DLLs (FWLIB32.DLL, FWLIBE1.DLL); file names must be in capitals. |
| Values written to a tag change a neighbouring value | Overlapping PMC or macro addresses with different data types | Map each PMC area once, with one data type, and keep writes in a reserved range agreed with the machine builder. |
| CNC feels slower while data collection runs | Embedded Ethernet is processed by the CNC CPU | Poll less often (500 ms is a sensible floor), read blocks instead of single values, or use an Ethernet board. |
Traps to avoid
- Embedded Ethernet runs on the CNC CPU: FANUC-related documentation recommends few clients on it (1 PC). Heavy polling can be felt by the control.
- Some builders lock FANUC screens behind their own HMI; reaching the Ethernet settings may need the builder's procedure.
- 0i-F Plus lists many industrial networks (EtherNet/IP, PROFINET, Modbus/TCP server, EtherCAT, CC-Link IE Field). The catalogue does not mark which are standard and which are options: confirm before you design around them.
Connectors that support this control
| Product | Vendor | Type | Outputs |
|---|---|---|---|
| Kepware Server — Fanuc Focas Ethernet / HSSB drivers | Velotic (formerly PTC Kepware) | OPC server / driver | OPC UA, OPC DA, A&E, SuiteLink |
| TOP Server — Fanuc Focas 1&2 Ethernet for CNCs | Software Toolbox | OPC server / driver | OPC UA, OPC DA, SuiteLink |
| edgeConnector (840D, FANUC CNC) | Softing | Gateway | OPC UA 1.04, MQTT 3.1/3.1.1/5 |
| SDEX Suite | Softing | Gateway | OPC UA, MQTT, REST |
| Connectware | Cybus | Edge platform | MQTT, OPC UA server |
| Litmus Edge | Litmus | Edge platform | Broker integrations |
| WebAccess/CNC | Advantech | Monitoring software | OPC UA/DA, Modbus, REST |
| fanuc-driver | Ladder99 (open source, Apache-2.0) | Open source | MQTT JSON, Sparkplug B, InfluxDB, MTConnect SHDR |
| FANUC MTConnect Server | FANUC | Control or machine maker | MTConnect |
| MT-LINKi | FANUC | Control or machine maker | CSV, REST API |
| pyfanuc | TU Wien (open source, MIT) | Open source | Python |
| StateMonitor | HEIDENHAIN | Control or machine maker | ERP/MES job interface |
| Predator MDC | Predator Software | Monitoring software | SQL / MES / ERP |
| FactoryWiz Monitoring | FactoryWiz | Monitoring software | — |
- Part number of the FOCAS Ethernet function on the CNC side
- An OPC UA server running on the 0i CNC itself (not documented on the FANUC pages we checked)
Questions engineers ask
Does FANUC 0i-F support OPC UA?
Not as a server on the CNC in any FANUC document we found. Engineers reach OPC UA by putting a FOCAS-to-OPC UA gateway or OPC server between the 0i-F and the client.
Which port does FOCAS use on a 0i-F?
TCP 8193 by default, set on the [FOCAS2] page of the Ethernet settings; any port from 5001 to 65535 is allowed.
Do I need to buy anything to read a 0i-F?
Usually the FOCAS library for the collector PC (A02B-0207-K732 or K737). On some machines the FOCAS Ethernet function must also be enabled on the CNC by FANUC or the builder.
Sources
Facts on this page come from these documents, opened on 27 October 2026.
- FANUC America — FOCAS2 library
- Software Toolbox — FAQ 1323 (FOCAS1 vs FOCAS2)
- Software Toolbox — Fanuc Focas Ethernet driver manual (PDF)
- Software Toolbox — FAQ 4098 (FOCAS libraries)
- Velotic (Kepware) — Fanuc Focas Ethernet driver
- deviceWISE — FANUC Ethernet board settings
- MachineMetrics support — Which FANUC models include FOCAS
- MachineMetrics — FOCAS protocol
- Cybus — Connecting a FANUC CNC via FOCAS
- FANUC — Series 0i-F Plus catalogue
- FANUC America — FANUC MTConnect Server
- Softing — edgeConnector
Last verified 27 October 2026 against vendor documentation. OPC UA Connect is an educational resource published by TEEPTRAK; it is not affiliated with the OPC Foundation, the MTConnect Institute or any control maker.