Fanuc · Offsets
Fanuc alarm 031: Illegal P command in G10
Most often: P forgotten. First step: add the P number.
On this page
What it means
The offset number P in a G10 block is missing or too big. On 0i-D, 0i-F and the 30i series the same alarm has the number PS0031.
Common causes
- P forgotten
- P0 to P6 is for work offsets with L2, other L values use other ranges
How to clear it
- Add the P number
- Check L: L2 work offset, L10 to L13 tool offsets
Example
G90 G10 L2 X-300. Y-200.G90 G10 L2 P1 X-300. Y-200. (P1 = G54)Before you continue: After the correction do not start in the middle of the program. Go back to the last tool change, use single block and a low rapid override, and watch the distance to go.
Related codes
Same group: offsets
Number and message follow the Fanuc 0i, 16, 18 and 21 series. Wording can differ a little between models. Alarms from 1000 upwards and messages from 2000 upwards come from the machine builder in most cases: look in the manual of the machine, not of the control. Fanuc and Grbl are names of their owners. This site is independent.
The alarm comes back?
Post the block before the alarm, your control model and what you have checked.
Ask the community