Controller · FANUC

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 protocolsFOCAS2 over Ethernet; FOCAS over HSSB
Default portTCP 8193
Licence on the collectorFOCAS2 library A02B-0207-K737
B Plus networksFOCAS/Ethernet, FL-net, EtherNet/IP, PROFINET standard
MTConnectFANUC MTConnect Server (30i/31i/32i-A and B)
OPC UAThrough a FOCAS gateway or OPC server

Connection paths

FANUC MTConnect ServerAlternative

PC-based agent; requires a CNC option; 30-day trial.

OPC UA via gatewayAlternative

Softing edgeConnector/SDEX list 30i, 31i, 31i-B, 31i-B5, 32i-B and 35i-B.

HSSBSpecial case

Fibre link to a PC with an HSSB card; used where an HMI PC is already attached by HSSB.

Licences and options

ItemOption / part numberPaid?Note
FOCAS2 library (Ethernet + HSSB)A02B-0207-K737PaidCollector side
FOCAS Ethernet functionStandard on B Plus; part number not published for othersDependsConfirm with the builder
FANUC MTConnect ServerCNC option, name not publishedPaid30-day trial

Ports

PortProtocolNote
8193TCPFOCAS2/Ethernet default
8196TCPUnsolicited messaging, Fast Ethernet board, firmware 6567/E2 or later
5000HTTPTypical 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

  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

  • 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

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.
  • 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.

  1. FANUC — 30i/31i/32i-MODEL B Plus release (2020)
  2. FANUC America — FOCAS2 library
  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. FANUC America — FANUC MTConnect Server
  8. Softing — edgeConnector
  9. Fanuc-MTConnect-Agent (open source)
  10. 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.

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 →