Controller · FANUC

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 protocolsFOCAS2 over Ethernet; FOCAS over HSSB (fibre)
Default portTCP 8193 (FOCAS2)
Licence on the collectorFOCAS library A02B-0207-K732 or A02B-0207-K737
Licence on the CNCFOCAS Ethernet function: standard on many 0i-D/F, an option on others
MTConnectVia FANUC MTConnect Server (Windows PC) plus a CNC option
OPC UAThrough a gateway or OPC server that speaks FOCAS

Connection paths

FANUC MTConnect ServerAlternative

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.

OPC UA via gatewayAlternative

A gateway such as Softing edgeConnector or SDEX reads FOCAS and serves OPC UA and MQTT, so MES and SCADA see a standard interface.

Discrete I/OFallback

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

ItemOption / part numberPaid?Note
FOCAS1 library (Ethernet)A02B-0207-K732PaidInstalled on the collector PC; from a FANUC distributor
FOCAS2 library (Ethernet + HSSB)A02B-0207-K737PaidInstalled on the collector PC
FOCAS Ethernet function on the CNCPart number not publishedDependsPresent by default on many 0i-D/F; otherwise added by FANUC
FANUC MTConnect ServerCNC option, name not publishedPaid30-day trial; Windows 7/10

Ports

PortProtocolNote
8193TCPFOCAS2/Ethernet, default, configurable 5001 to 65535
8196TCPUnsolicited messaging (Fast Ethernet board only)
5000HTTPTypical 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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

SymptomLikely causeFix
Driver connects to nothing, CNC answers pingFOCAS function not enabled, or the wrong port number in the driverCheck 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 connectsClient limit of the port in useEmbedded 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 runFOCAS library DLLs missing or wrong bitnessInstall 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 valueOverlapping PMC or macro addresses with different data typesMap 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 runsEmbedded Ethernet is processed by the CNC CPUPoll 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

ProductVendorTypeOutputs
Kepware Server — Fanuc Focas Ethernet / HSSB driversVelotic (formerly PTC Kepware)OPC server / driverOPC UA, OPC DA, A&E, SuiteLink
TOP Server — Fanuc Focas 1&2 Ethernet for CNCsSoftware ToolboxOPC server / driverOPC UA, OPC DA, SuiteLink
edgeConnector (840D, FANUC CNC)SoftingGatewayOPC UA 1.04, MQTT 3.1/3.1.1/5
SDEX SuiteSoftingGatewayOPC UA, MQTT, REST
ConnectwareCybusEdge platformMQTT, OPC UA server
Litmus EdgeLitmusEdge platformBroker integrations
WebAccess/CNCAdvantechMonitoring softwareOPC UA/DA, Modbus, REST
fanuc-driverLadder99 (open source, Apache-2.0)Open sourceMQTT JSON, Sparkplug B, InfluxDB, MTConnect SHDR
FANUC MTConnect ServerFANUCControl or machine makerMTConnect
MT-LINKiFANUCControl or machine makerCSV, REST API
pyfanucTU Wien (open source, MIT)Open sourcePython
StateMonitorHEIDENHAINControl or machine makerERP/MES job interface
Predator MDCPredator SoftwareMonitoring softwareSQL / MES / ERP
FactoryWiz MonitoringFactoryWizMonitoring software—

CNC connector directory →

Not published by the vendor. We could not find these in vendor documentation. Ask the control or machine maker before you rely on them.
  • 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.

  1. FANUC America — FOCAS2 library
  2. Software Toolbox — FAQ 1323 (FOCAS1 vs FOCAS2)
  3. Software Toolbox — Fanuc Focas Ethernet driver manual (PDF)
  4. Software Toolbox — FAQ 4098 (FOCAS libraries)
  5. Velotic (Kepware) — Fanuc Focas Ethernet driver
  6. deviceWISE — FANUC Ethernet board settings
  7. MachineMetrics support — Which FANUC models include FOCAS
  8. MachineMetrics — FOCAS protocol
  9. Cybus — Connecting a FANUC CNC via FOCAS
  10. FANUC — Series 0i-F Plus catalogue
  11. FANUC America — FANUC MTConnect Server
  12. 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.

CNC Connectivity Field Kit
Take the Field Kit to site
Every controller on one spreadsheet, with ports, licences, commissioning checklists and a firewall request template. Free with an engineer account.
Get the Field Kit →