Fanuc · Program
Fanuc alarm 010: Improper G-code
Most often: typing error in the number. First step: compare the code with the list in the machine manual.
On this page
What it means
The control does not know this G-code, or the option for it is not installed. On 0i-D, 0i-F and the 30i series the same alarm has the number PS0010.
Common causes
- Typing error in the number
- Program written for another machine
- Option not bought, for example G51.1, G68 or G05.1
- Lathe uses another G-code system (A, B or C)
How to clear it
- Compare the code with the list in the machine manual
- Ask the machine builder if the option exists
- Change the post processor to the right machine
- On lathes check which G-code system is active
Example
G71.5 X20.G01 X20. F200.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.
Tools that help
- G-Code CheckerPaste a CNC program and get a list of likely mistakes: missing G43, rapid moves below…
- G-Code GeneratorGenerate clean G-code for rectangular and circular pockets, facing, outside contours…
Same group: program
- Fanuc alarm 003: Too many digits
- Fanuc alarm 004: Address not found
- Fanuc alarm 005: No data after address
- Fanuc alarm 006: Illegal use of negative sign
- Fanuc alarm 007: Illegal use of decimal point
- Fanuc alarm 009: Illegal address input
- Fanuc alarm 011: No feedrate commanded
- Fanuc alarm 015: Too many axes commanded
- Fanuc alarm 028: Illegal plane select
- Fanuc alarm 046: Illegal reference return command
- Fanuc alarm 055: Missing move value in CHF/CNR
- Fanuc alarm 059: Program number not found
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