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
- Install Fanuc FOCAS library (fwlib30.dll) on the Windows host.
- Install the FOCAS Agent and point it at each CNC IP.
- Configure poll rate; 1s for status, 250ms for spindle load.
- Point it at the MQTT broker and publish.
- 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.