Fanuc Focas 2 [portable] < SAFE • TRICKS >
Use ping and telnet commands from your PC to test basic connectivity to the CNC's IP address and port. A return code of EW_SOCKET indicates a network issue, while EW_VERSION suggests a library/CNC firmware mismatch.
, uses FOCAS 2 as a standard protocol to harvest data for Overall Equipment Effectiveness (OEE) dashboards, helping managers identify bottlenecks and reduce downtime. Connectivity and Implementation
| Feature | FOCAS1 (Legacy) | FOCAS2 (Modern) | | :--- | :--- | :--- | | | HSSB (High-Speed Serial Bus) | Ethernet TCP/IP | | Required Hardware | Dedicated FANUC HSSB card on CNC and PC | None —standard PC Ethernet port | | Deployment & Scale | Point-to-point, physically limited cable length. Hard to scale. | Can ride on existing plant networks, through switches, routers, and VPNs. Easy to scale. | | Target Controls | Older 0i, 16i, 18i, 21i series from the HSSB era. | All Ethernet-capable FANUC controls: 0i-F/MF, 30i/31i/32i families, and more. | | Functions & Features | Frozen API with limited documented functions. | Expanded functions including Data Server access, memory card management, multi-channel support, and more. | | Licensing | Licensed per CNC with HSSB hardware. | Licensed per CNC with the Ethernet FOCAS option enabled. |
: Ensure your CNC is configured for TCP/IP communication, not UDP, as FOCAS over UDP is not supported. The standard TCP port is 8193, but this may need adjustment if conflicts exist. Verify firewall settings allow FOCAS traffic through the designated port. fanuc focas 2
Despite its power, FOCAS 2 has quirks:
Remotely change parameters, upload/download part programs, and send PLC commands.
Read and write custom macro variables (#100–#999, #5000+, etc.) to coordinate complex automated tasks. Hardware and Connection Types Use ping and telnet commands from your PC
Beyond writing, it reads absolute/relative/machine positions, remaining distance to go, actual feedrate, tool life management data, and spindle data. Key Functions for this Feature: cnc_rdzofs : Read work zero offset value. cnc_wrfixofs : Write fixture offset values. cnc_wrmacror2 : Write custom macro variables. cnc_wrpdf_line : Write data to the CNC program. Application Scenario:
FOCAS 2 introduces functions tailored for multi-path and multi-axis machines, allowing complex turn-mill centers to be monitored seamlessly.
Collecting alarm history, operator messages, and waveform diagnosis data for maintenance. FOCAS 1 vs. FOCAS 2 Connectivity and Implementation | Feature | FOCAS1 (Legacy)
Enables automated cell controllers to change G-code programs based on the specific part entering the machine. Limitations and Considerations
FOCAS 2 provides real-time access to the physical condition of the machine tool. It allows applications to read current axis positions (absolute, relative, and machine coordinates), monitor spindle speeds, trace active feed rates, and track axis feed loads to detect mechanical binding or tool breakage. 2. CNC Program Management