Code 031: ILLEGAL P COMMAND IN G10
Issue Description & Safety Warning
The Fanuc 16i/18i/21i CNC has triggered a critical ILLEGAL P COMMAND IN G10 alarm. Immediate attention from a qualified operator or maintenance technician is required to prevent secondary damage to the equipment or spoiled parts during the manufacturing cycle. Always ensure standard safety and LOTO procedures are followed before accessing electrical cabinets.
Official Troubleshooting Steps
In setting an offset amount by G10, the offset number following address P was excessive or it was not specified. Alternatively, the additional work coordinate number to be specified in a P code was too large. Modify the program.
Source: Fanuc Series 16i/18i/21i-B Operator's Manual, Appendix G Alarm List (B-63864EN/03)
Last reviewed: 2026-07-01 · Verified against the manufacturer’s official documentation.
About Fanuc 16i/18i/21i CNC Alarms
Fanuc controllers include extensive self-diagnostics that flag or halt the machine when a fault is detected. Error code 031 on the 16i/18i/21i CNC identifies one specific fault condition — its documented cause and the official corrective steps are listed above, sourced from Fanuc's service documentation. Always confirm against the manual for your exact machine configuration and follow LOTO procedures before servicing.
Complete Alarm List: 360 Fanuc 16i/18i/21i CNC codes.
Have a better solution?
Help the industrial community by sharing your repair experience for code 031.
Need a searchable reference for more Fanuc 16i/18i/21i CNC manuals?
We structure equipment manuals into searchable code, title, cause, solution, safety note, and source-reference data. Send a PDF and example searched codes when you need public pages, private search, or structured exports.
Space reserved for Google AdSense / Industrial Affiliate Links
Monetization target for 2026