Skip to main content

FANUC FOCAS

Device Not usable in 4.0.1 Ethernet

FANUC FOCAS Ethernet via the Site Runtime focas (port 8193).

PropertyValue
Console protocol idfocas
Site Runtime pluginfocas
TransportEthernet (TCP/UDP)
Readyes
Writeno
Subscribe—
Device familiesFANUC 0i, 30i, 31i, 32i, 35i
Default group interval1000 ms
MaturityNot usable in 4.0.1: the Console refuses tags of this protocol (see below)
Not usable in 4.0.1

The Site Runtime contains the FANUC FOCAS driver, but in 4.0.1 the Console refuses every tag of this protocol with MI-1005 (engine ... not hosted). You can save the device, not its tags. Contact support before you plan a FANUC FOCAS connection; this page describes the driver for the release that fixes it.

Create the device​

  1. Open Connectivity → Devices and click Add device.
  2. Pick FANUC FOCAS in the protocol list.
  3. Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
  4. Add a group (poll interval) and tags with the address formats below. See Devices and Groups and tags for the full walk-through.

Connection parameters​

Every field the Console shows for this protocol. Required fields must be set before the device can be saved.

ParameterTypeDefaultRange / optionsRequiredDescription
CNC IP Address
host
string—max 30 charsyesTarget CNC IPv4 address
CNC Port
port
int81931 – 65535yesTarget CNC port
Connection Timeout
timeout
int30003000 – 30000yesConnection send/receive timeout(ms)

Tag addresses and data types​

Supported data types: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, BIT, STRING. The Console validates each tag address against the pattern for its data type before it is saved:

Data typesAddress pattern (regular expression)
INT8 UINT8 INT16 UINT16 INT32 UINT32 INT64 UINT64 FLOAT DOUBLE BIT STRING

Addressing and notes​

Address syntax and examples​

A FOCAS address is either a name or a family with numbers:

<name>
<family>.<a>
<family>.<a>.<b>
<family>.<a>.<b>.<c>
AddressTypeMeaning
runStateINT16Run state of the CNC (status information)
controlModeINT16Control mode
mainProgramNoINT32Number of the main program
subProgramNoINT32Number of the sub program
programMainSTRINGMain program as O0001
seqNumINT32Current sequence number
absolute2.1DOUBLEAbsolute position of axis 1
relative2.2DOUBLERelative position of axis 2
machine.1DOUBLEMachine position of axis 1
distance.1DOUBLEDistance to go, axis 1
acts2.1DOUBLEFamily acts2 (actual values), item 1
svmeter.1DOUBLEServo meter, axis 1
toolOffset.1.1DOUBLETool offset, number 1, type 1
param.1815.0INT32Read parameter number 1815, axis 0
spmeter.1.0INT16Spindle meter, indexes 1 and 0
timer.0.0INT16Family timer, indexes 0 and 0
alarmMsg2.0.0, opmsg.0.0STRINGAlarm and operator messages

The names are runState, controlMode, mainProgramNo, subProgramNo, programMain (also programMainFile and execProg) and seqNum. The families are absolute2, relative2, machine, distance, acts2, svmeter (one number: the axis), toolOffset, tool, param, spmeter, timer, alarmMsg2 and opmsg (two or three numbers). Positions are converted from thousandths to units.

FOCAS is read only.

Endianness​

Not applicable. The runtime decodes the FOCAS answers itself.

Typical settings​

SettingTypicalNote
CNC IP AddressIP of the CNC's Ethernet board
CNC Port8193The FOCAS2 Ethernet port.
Connection Timeout30003000 to 30000 ms.

On the CNC the Ethernet function (embedded Ethernet or a data server) must be enabled and the FOCAS port released. Supported families: FANUC 0i, 30i, 31i, 32i, 35i. Poll group interval: 1000 ms.

Common errors​

SymptomCauseFix
Cannot connectFOCAS port 8193 closed, Ethernet function off, wrong IP.Enable it on the CNC. Check the firewall.
Only a few CNC models answerOlder controls or different options.Check that the control supports FOCAS2 over Ethernet.
Address refusedUnknown name or family.Use a name or family from the lists above.
Position in wrong unitsRaw values are in thousandths.The runtime already divides by 1000. Check the CNC's input unit.
Write refusedFOCAS is read only.Not available.