Connect FANUC Series 30i / 31i / 32i / 35i (A, B, B Plus)
The 30i family is read over FOCAS2 on Ethernet (TCP 8193 by default). On 30i/31i/32i-MODEL B Plus, FOCAS/Ethernet, FL-net, EtherNet/IP and PROFINET come as standard without an extra Ethernet board. The collector needs the FOCAS2 library A02B-0207-K737. FANUC MTConnect Server supports 30i/31i/32i-MODEL A and B.
At a glance
| Native protocols | FOCAS2 over Ethernet; FOCAS over HSSB |
|---|---|
| Default port | TCP 8193 |
| Licence on the collector | FOCAS2 library A02B-0207-K737 |
| B Plus networks | FOCAS/Ethernet, FL-net, EtherNet/IP, PROFINET standard |
| MTConnect | FANUC MTConnect Server (30i/31i/32i-A and B) |
| OPC UA | Through a FOCAS gateway or OPC server |
Connection paths
The standard path. 30i-family functions such as reading the executing program name and axis data are available on this series.
PC-based agent; requires a CNC option; 30-day trial.
Softing edgeConnector/SDEX list 30i, 31i, 31i-B, 31i-B5, 32i-B and 35i-B.
Fibre link to a PC with an HSSB card; used where an HMI PC is already attached by HSSB.
Licences and options
| Item | Option / part number | Paid? | Note |
|---|---|---|---|
| FOCAS2 library (Ethernet + HSSB) | A02B-0207-K737 | Paid | Collector side |
| FOCAS Ethernet function | Standard on B Plus; part number not published for others | Depends | Confirm with the builder |
| FANUC MTConnect Server | CNC option, name not published | Paid | 30-day trial |
Ports
| Port | Protocol | Note |
|---|---|---|
8193 | TCP | FOCAS2/Ethernet default |
8196 | TCP | Unsolicited messaging, Fast Ethernet board, firmware 6567/E2 or later |
5000 | HTTP | Typical MTConnect agent |
Software versions
- 30i/31i/32i-MODEL B Plus (2020): FOCAS/Ethernet, FL-net, EtherNet/IP and PROFINET standard without an Ethernet board.
- FOCAS2 library covers FS30i/31i/32i/35i in 32- and 64-bit builds.
- Unsolicited messaging requires Fast Ethernet firmware 6567/E2 or later and parameter 904 bit 4 = 1 plus ladder support.
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
- Port capacity differs by hardware: Fast Ethernet board up to 20 clients, Ethernet board 10, embedded Ethernet 5 clients with 1 PC recommended.
- On 31i, open-source MTConnect adapters often reuse the 30i adapter.
- Unsolicited data areas are read-only, limited to three areas and about 1.4 kB in total.
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 | — |
- An OPC UA server running on the 30i CNC itself (FANUC's 2020 OPC UA announcement concerns robot controllers, not CNCs)
Questions engineers ask
Is OPC UA built into the FANUC 31i-B?
FANUC's OPC UA server products we found are for robot controllers. For a 31i-B CNC, OPC UA is provided by a gateway or OPC server that reads FOCAS.
What is new on 30i-B Plus for connectivity?
FOCAS/Ethernet, FL-net, EtherNet/IP and PROFINET are standard without adding an Ethernet board.
Sources
Facts on this page come from these documents, opened on 27 October 2026.
- FANUC — 30i/31i/32i-MODEL B Plus release (2020)
- FANUC America — FOCAS2 library
- 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
- FANUC America — FANUC MTConnect Server
- Softing — edgeConnector
- Fanuc-MTConnect-Agent (open source)
- Cybus — Connecting a FANUC CNC via FOCAS
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.