Skip to content
Progres Anda0%
Lanjutan20 menit

Fanuc CNC via FOCAS Agent

Read Fanuc CNC axes, spindle, status, and alarms through the FOCAS Agent and into MQTT.

Fanuc CNC via FOCAS Agent

The FOCAS Agent is a Windows companion that talks to Fanuc controls through fwlib30.dll.

What It Reads

  • Axes — position, load, and feed per axis.
  • Spindle — rpm, load, direction.
  • Program status — running, idle, M30 count, current program number.
  • Alarms — active alarm numbers and messages.

Setup

  1. Install Fanuc FOCAS library (fwlib30.dll) on the Windows host.
  2. Install the FOCAS Agent and point it at each CNC IP.
  3. Configure poll rate; 1s for status, 250ms for spindle load.
  4. Point it at the MQTT broker and publish.
  5. Confirm in OpexMX that the cycle and alarm events arrive.

Tips

Fanuc alarms map cleanly to work-order triggers. Wire the top five alarms to maintenance templates first.