Skip to main content

General

Connect FANUC CNC

Reference guide for FANUC CNC (Series 0i, 30i, etc.) communication via FOCAS.

Proxus connects to FANUC CNC systems using the FOCAS (FANUC Open CNC API Specifications) protocol over Ethernet.

Compatibility & Requirements

Not all FANUC CNCs are supported. Connection requires the FOCAS 1/2 Protocol over Ethernet.

Supported Series

Proxus explicitly identifies and supports the following controllers via FOCAS:

  • Series 0i (Models A, B, C, D, F)
  • Series 30i / 31i / 32i
  • Series 16 / 16i
  • Series 18 / 18i
  • Series 21 / 210i
  • Series 15 / 15i
  • Power Mate i-D / i-H

Supported Machine Types

The driver automatically detects the machine configuration:

  • M: Machining Center
  • T: Lathe (Turning)
  • L: Laser
  • P: Punch Press
  • W: Wire Cut

Hardware Requirements

  1. Physical Connection: The CNC must have an Ethernet port (Embedded Port or PCMCIA/Fast Ethernet Card).
  2. FOCAS Enabled: The FOCAS function must be active on the controller.

Configuration Examples

Example 1: Basic CNC Monitoring

Create a Device Profile with these Tags to monitor essential CNC data:

Tag NameAddressData TypePurpose
Alarm Statusalarm_statusIntMonitor alarm conditions
Active Programcurrent_programStringTrack running program
Spindle RPMspindle_speedDoubleMonitor spindle speed
Feed Ratefeed_rateDoubleMonitor feed rate
Tool Numbercutter_numberIntTrack active tool

Example 2: Production Tracking

For OEE and production monitoring:

Tag NameAddressData TypePurpose
Parts Madecurrent_produce_countIntActual production count
Parts Targetexpect_produce_countIntProduction goal
Machine Statusalarm_statusIntCheck if running or stopped
Current Jobcurrent_programStringJob identification

Example 3: Mixed PMC and Special Data

Combine PMC addresses with special methods:

Tag NameAddressData TypePurpose
Start ButtonX10BoolRead input signal (PMC)
Motor RunningY20BoolRead output signal (PMC)
Cycle CounterD100ShortRead PMC data register
Spindle RPMspindle_speedDoubleRead CNC data (Special)
Feed Ratefeed_rateDoubleRead CNC data (Special)
System Alarmsystem_alarmStringDetailed alarm info (Special)
lightbulb
Best Practice

Use PMC addresses for fast, direct memory access when available. Use Special addresses when you need CNC-specific data not accessible via PMC, such as program names, production counters, or system information.

Supported Protocols

Protocol TypeDescription
FanucSeries_0iFOCAS 1/2 Ethernet Interface

Connection Parameters

ParameterTypeRequiredDefaultDescription
HoststringYes-CNC IP Address
PortintNo8193FOCAS Ethernet Port
ConnectTimeoutintNo3000Connection timeout (ms)

Address Syntax

Proxus supports two types of addresses for FANUC CNC systems:

1. PMC Addresses (Standard Memory Access)

Direct access to PMC (Programmable Machine Controller) memory areas:

Address FormatMemory AreaData TypeExample
D100Data TableShortPMC data register #100
R50Internal RelayShort/StringInternal relay #50
G0Signal to PMCBoolPMC input signal #0
X10Input SignalBoolExternal input #10
Y20Output SignalBoolExternal output #20
A5, T5, K5, C5, E5, F5Other PMC AreasVariousSpecial PMC registers

2. Special Method Addresses (CNC-Specific Data)

Named addresses that map directly to FOCAS API functions for CNC-specific information:

AddressData TypeDescriptionExample Value
alarm_statusIntCurrent alarm status code0 (no alarm)
current_programStringCurrently running program nameO1234
current_produce_countIntActual production count150
expect_produce_countIntTarget production count1000
cutter_numberIntActive tool/cutter number5
current_datetimeStringCNC system date/timeISO 8601 format
current_foreground_dirStringActive directory path//CNC_MEM/USER/PATH1
languageUShortCNC language setting0 (English)
spindle_speedDoubleMain spindle speed (rpm)1500.5
feed_rateDoubleActual feed rate (mm/min)350.0
sys_infoStringComplete system informationText representation
sys_status_infoStringCurrent system statusText representation
sys_all_coorsStringAll coordinate systemsText representation
system_alarmStringDetailed alarm informationText representation
operator_messageStringOperator messagesText representation
system_programStringCurrent program detailsprogram=<name>;number=<id>
device_workpieces_sizeBytesWorkpiece dimensionsBinary data
fanuc_axis_loadBytesAxis load percentagesBinary data
info
Address Flexibility

Special addresses are case-insensitive and flexible with separators: alarm_status, ALARM_STATUS, alarm-status, and alarmstatus are all equivalent.


Troubleshooting

ErrorCauseSolution
Connection RefusedFOCAS not enabledVerify the "Ethernet Function" or "Embedded Ethernet" is configured on the CNC.
Port ClosedWrong PortDefault is 8193, but check CNC parameter 14880 or similar.
lightbulb
More Error Codes

For detailed Fanuc CNC error codes, see Fanuc CNC Error Codes. For general connectivity issues, see Gateway Issues.

Official Resources