FANUC FOCAS
FANUC FOCAS Ethernet via the Site Runtime focas (port 8193).
| Property | Value |
|---|---|
| Console protocol id | focas |
| Site Runtime plugin | focas |
| Transport | Ethernet (TCP/UDP) |
| Read | yes |
| Write | no |
| Subscribe | — |
| Device families | FANUC 0i, 30i, 31i, 32i, 35i |
| Default group interval | 1000 ms |
| Maturity | Not usable in 4.0.1: the Console refuses tags of this protocol (see below) |
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
- Open Connectivity → Devices and click Add device.
- Pick FANUC FOCAS in the protocol list.
- Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
- 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.
| Parameter | Type | Default | Range / options | Required | Description |
|---|---|---|---|---|---|
CNC IP Addresshost | string | — | max 30 chars | yes | Target CNC IPv4 address |
CNC Portport | int | 8193 | 1 – 65535 | yes | Target CNC port |
Connection Timeouttimeout | int | 3000 | 3000 – 30000 | yes | Connection 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 types | Address 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>
| Address | Type | Meaning |
|---|---|---|
runState | INT16 | Run state of the CNC (status information) |
controlMode | INT16 | Control mode |
mainProgramNo | INT32 | Number of the main program |
subProgramNo | INT32 | Number of the sub program |
programMain | STRING | Main program as O0001 |
seqNum | INT32 | Current sequence number |
absolute2.1 | DOUBLE | Absolute position of axis 1 |
relative2.2 | DOUBLE | Relative position of axis 2 |
machine.1 | DOUBLE | Machine position of axis 1 |
distance.1 | DOUBLE | Distance to go, axis 1 |
acts2.1 | DOUBLE | Family acts2 (actual values), item 1 |
svmeter.1 | DOUBLE | Servo meter, axis 1 |
toolOffset.1.1 | DOUBLE | Tool offset, number 1, type 1 |
param.1815.0 | INT32 | Read parameter number 1815, axis 0 |
spmeter.1.0 | INT16 | Spindle meter, indexes 1 and 0 |
timer.0.0 | INT16 | Family timer, indexes 0 and 0 |
alarmMsg2.0.0, opmsg.0.0 | STRING | Alarm 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
| Setting | Typical | Note |
|---|---|---|
| CNC IP Address | IP of the CNC's Ethernet board | |
| CNC Port | 8193 | The FOCAS2 Ethernet port. |
| Connection Timeout | 3000 | 3000 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
| Symptom | Cause | Fix |
|---|---|---|
| Cannot connect | FOCAS port 8193 closed, Ethernet function off, wrong IP. | Enable it on the CNC. Check the firewall. |
| Only a few CNC models answer | Older controls or different options. | Check that the control supports FOCAS2 over Ethernet. |
| Address refused | Unknown name or family. | Use a name or family from the lists above. |
| Position in wrong units | Raw values are in thousandths. | The runtime already divides by 1000. Check the CNC's input unit. |
| Write refused | FOCAS is read only. | Not available. |