Reference
CNC Alarm Codes — Fanuc and Grbl with Causes and Fixes
CNC alarm code list: Fanuc program, servo and overtravel alarms, Grbl errors and alarms. Meaning, causes and steps to clear them.
Type the number or a word from the screen. Every code has its own page with causes, steps and, where it helps, a wrong and a correct block.
Fanuc alarm codes
| Code | Message | Group | Meaning |
|---|---|---|---|
| 000 | PLEASE TURN OFF POWER | Parameters | A parameter was changed that the control reads only when it starts. |
| 003 | TOO MANY DIGITS | Program | A number has more digits than the control accepts for this address. |
| 004 | ADDRESS NOT FOUND | Program | A block starts with a number or a sign, but the letter in front of it is missing. |
| 005 | NO DATA AFTER ADDRESS | Program | A letter is there, but no number follows it. |
| 006 | ILLEGAL USE OF NEGATIVE SIGN | Program | A minus sign stands where it is not allowed, or twice. |
| 007 | ILLEGAL USE OF DECIMAL POINT | Program | A decimal point follows an address that only takes whole numbers, or a number has two points. |
| 009 | ILLEGAL ADDRESS INPUT | Program | The block contains a character that the control cannot read in this place. |
| 010 | IMPROPER G-CODE | Program | The control does not know this G-code, or the option for it is not installed. |
| 011 | NO FEEDRATE COMMANDED | Program | A cutting move has no feed, or the feed is zero. |
| 015 | TOO MANY AXES COMMANDED | Program | One block moves more axes at the same time than the control allows. |
| 020 | OVER TOLERANCE OF RADIUS | Arc | The start point and the end point of the arc do not have the same distance to the centre. |
| 021 | ILLEGAL PLANE AXIS COMMANDED | Arc | The arc uses an axis that does not belong to the active plane. |
| 022 | NO CIRCULAR RADIUS | Arc | The arc has an end point but neither R nor I, J, K. |
| 023 | ILLEGAL RADIUS COMMAND | Arc | A lathe does not accept a negative R. |
| 028 | ILLEGAL PLANE SELECT | Program | Two parallel axes stand in the plane command. |
| 029 | ILLEGAL OFFSET VALUE | Offsets | The value in the H offset is too big. |
| 030 | ILLEGAL OFFSET NUMBER | Offsets | The number behind D or H, or the P number of an extra work offset, does not exist. |
| 031 | ILLEGAL P COMMAND IN G10 | Offsets | The offset number P in a G10 block is missing or too big. |
| 033 | NO SOLUTION AT CRC | Cutter compensation | With the tool radius added, two neighbouring moves have no common point. |
| 034 | NO CIRC ALLOWED IN ST-UP /EXT BLK | Cutter compensation | Compensation starts or ends in an arc block. |
| 036 | CAN NOT COMMANDED G31 | Probing | A skip move (probing) was started while cutter compensation was on. |
| 037 | CAN NOT CHANGE PLANE IN CRC | Cutter compensation | G17, G18 or G19 changes the plane while compensation is active. |
| 038 | INTERFERENCE IN CIRCULAR BLOCK | Cutter compensation | The cutter would cut too deep at an arc because start or end point lies on the centre. |
| 041 | INTERFERENCE IN CRC | Cutter compensation | The control has looked ahead and sees that the cutter would damage the contour. |
| 044 | G27-G30 NOT ALLOWED IN FIXED CYC | Cycles | A reference return stands in the program while a drilling cycle is still active. |
| 045 | ADDRESS Q NOT FOUND (G73/G83) | Cycles | A peck cycle has no peck depth Q, or Q is zero. |
| 046 | ILLEGAL REFERENCE RETURN COMMAND | Program | G30 was called with a P number other than 2, 3 or 4. |
| 050 | CHF/CNR NOT ALLOWED IN THRD BLK | Turning cycles | A chamfer or corner radius stands in a threading block. |
| 055 | MISSING MOVE VALUE IN CHF/CNR | Program | The move is shorter than the chamfer or corner radius that should fit on it. |
| 059 | PROGRAM NUMBER NOT FOUND | Program | The control searched for a program number and did not find it. |
| 060 | SEQUENCE NUMBER NOT FOUND | Program | The N number you searched for does not exist. |
| 061 | ADDRESS P/Q NOT FOUND IN G70-G73 | Turning cycles | A lathe roughing or finishing cycle does not know where the contour starts and ends. |
| 062 | ILLEGAL COMMAND IN G71-G76 | Turning cycles | A value in the cycle is zero, negative or makes no sense. |
| 063 | SEQUENCE NUMBER NOT FOUND | Turning cycles | The N number in P or Q of G70 to G73 does not exist in the program. |
| 064 | SHAPE PROGRAM NOT MONOTONOUSLY | Turning cycles | The contour goes back in X or Z. Type I roughing cannot cut pockets. |
| 065 | ILLEGAL COMMAND IN G71-G73 | Turning cycles | The first contour block is not the right kind of move. |
| 066 | IMPROPER G-CODE IN G71-G73 | Turning cycles | A G-code that is not allowed stands between the blocks P and Q. |
| 070 | NO PROGRAM SPACE IN MEMORY | Memory and data | The program memory is full. |
| 071 | DATA NOT FOUND | Memory and data | A search found nothing. |
| 072 | TOO MANY PROGRAMS | Memory and data | The maximum number of programs is reached, even if there is memory left. |
| 073 | PROGRAM NUMBER ALREADY IN USE | Memory and data | You try to store a program with a number that already exists. |
| 074 | ILLEGAL PROGRAM NUMBER | Memory and data | The program number is outside the allowed range. |
| 075 | PROTECT | Memory and data | The program number is protected. |
| 076 | ADDRESS P NOT DEFINED | Subprogram and macro | A subprogram or macro call has no P number. |
| 077 | SUB PROGRAM NESTING ERROR | Subprogram and macro | Subprograms call each other too deep. |
| 078 | NUMBER NOT FOUND | Subprogram and macro | The program or N number that a call points to does not exist. |
| 085 | COMMUNICATION ERROR | Memory and data | Data was damaged on the serial line. Newer controls show it as SR0085. |
| 086 | DR SIGNAL OFF | Memory and data | The control does not see a ready device at the other end of the serial cable. |
| 087 | BUFFER OVERFLOW | Memory and data | The sender did not stop when the control asked for a pause. |
| 090 | REFERENCE RETURN INCOMPLETE | Reference and travel | The axis could not find its zero mark. |
| 092 | AXES NOT ON THE REFERENCE POINT | Reference and travel | G27 checked the position and the axis was not at the reference point. |
| 100 | PARAMETER WRITE ENABLE | Parameters | Not a fault: parameter writing is switched on. Newer controls show SW0100. |
| 101 | PLEASE CLEAR MEMORY | Memory and data | Power was lost while the control was writing program memory. |
| 112 | DIVIDED BY ZERO | Subprogram and macro | A macro calculation divides by zero, or uses the tangent of 90°. |
| 114 | FORMAT ERROR IN MACRO | Subprogram and macro | The macro line is written in a form the control does not understand. |
| 115 | ILLEGAL VARIABLE NUMBER | Subprogram and macro | The variable number does not exist on this control. |
| 124 | MISSING END STATEMENT | Subprogram and macro | A loop has no END, or END has another number than DO. |
| 128 | ILLEGAL MACRO SEQUENCE NUMBER | Subprogram and macro | GOTO points to an N number that does not exist. |
| 200 | ILLEGAL S CODE COMMAND | Rigid tapping | In rigid tapping the S value is missing or too high. |
| 201 | FEEDRATE NOT FOUND IN RIGID TAP | Rigid tapping | The rigid tapping cycle has no feed. |
| 203 | PROGRAM MISS AT RIGID TAPPING | Rigid tapping | M29 or S stands in the wrong place. |
| 224 | RETURN TO REFERENCE POINT | Reference and travel | Automatic mode was started before the axes had their reference return. |
| 300 | APC: n AXIS NEED ZRN | Encoder battery | The absolute encoder has lost its position. Newer controls show DS0300. |
| 307 | APC: BATTERY LOW | Encoder battery | The battery that keeps the absolute position is low. Newer controls show DS0307. |
| 401 | SERVO ALARM: VRDY OFF | Servo and drives | The servo amplifier is not ready. This is often the result of another alarm. |
| 410 | SERVO ALARM: EXCESS ERROR (STOP) | Servo and drives | The axis is too far from its target although it should stand still. |
| 411 | SERVO ALARM: EXCESS ERROR (MOVE) | Servo and drives | The axis does not follow the command while moving. |
| 417 | SERVO ALARM: PARAMETER INCORRECT | Servo and drives | A digital servo parameter has an impossible value. |
| 436 | SOFTTHERMAL (OVC) | Servo and drives | The software calculates that the motor is too hot. |
| 500 | OVER TRAVEL: +n | Reference and travel | The axis has reached its positive soft limit. Newer controls show OT0500. |
| 501 | OVER TRAVEL: -n | Reference and travel | The axis has reached its negative soft limit. Newer controls show OT0501. |
| 506 | OVER TRAVEL: +n (HARD LIMIT) | Reference and travel | The axis stands on the hardware limit switch. |
| 700 | OVERHEAT: CONTROL UNIT | Temperature | The control cabinet is too hot. Newer controls show OH0700. |
| 701 | OVERHEAT: FAN MOTOR | Temperature | A fan on the control has stopped. |
| 704 | OVERHEAT: SPINDLE | Temperature | The control has detected strong spindle speed fluctuation or overheating. |
| 740 | RIGID TAP ALARM: EXCESS ERROR | Rigid tapping | Spindle and Z axis were not synchronous enough while tapping. |
| 750 | SPINDLE SERIAL LINK START FAULT | Servo and drives | The control does not reach the spindle amplifier after power on. |
| 5010 | END OF RECORD | Memory and data | The control read the percent sign before the program was finished. |
Grbl error codes
| Code | Message | Group | Meaning |
|---|---|---|---|
| error 1 | Expected command letter | Text | A number came without a letter in front of it. |
| error 2 | Bad number format | Text | A letter came without a valid number. |
| error 3 | Invalid statement | System command | The $ command does not exist. |
| error 4 | Value < 0 | Settings | A setting needs a positive number. |
| error 5 | Setting disabled | Homing and limits | You asked for homing, but homing is switched off. |
| error 6 | Value < 3 usec | Settings | The step pulse must be at least 3 microseconds long. |
| error 7 | EEPROM read fail | Settings | Settings could not be read, default values were loaded. |
| error 8 | Not idle | System command | This $ command works only while the machine stands still. |
| error 9 | G-code lock | Homing and limits | G-code is locked because of an alarm or a jog. |
| error 10 | Homing not enabled | Homing and limits | Soft limits need homing. |
| error 11 | Line overflow | Text | The line is longer than the buffer. |
| error 12 | Step rate > 30kHz | Settings | Speed times steps per mm is more than the board can send. |
| error 13 | Check door | System command | The safety door input is active. |
| error 14 | Line length exceeded | Settings | A start-up line or build info is too long to be stored. |
| error 15 | Travel exceeded | Homing and limits | The jog target lies outside the travel. Nothing moves. |
| error 16 | Invalid jog command | System command | The jog line has no equal sign or contains a code that is not allowed. |
| error 17 | Laser mode requires PWM output | Settings | Laser mode needs a firmware with variable spindle output. |
| error 20 | Unsupported command | G-code | Grbl does not know this G- or M-code. |
| error 21 | Modal group violation | G-code | Two codes of the same group stand in one line. |
| error 22 | Undefined feed rate | G-code | A cutting move has no feed. |
| error 23 | Command requires an integer value | G-code | A code needs a whole number. |
| error 24 | Two commands use axis words | G-code | Two codes in the line both want the X, Y and Z values. |
| error 25 | Repeated word | G-code | The same letter stands twice in one line. |
| error 26 | No axis words found | G-code | The code needs an axis, but there is none. |
| error 27 | Invalid line number | G-code | The N number is wrong. |
| error 28 | Missing value word | G-code | A code needs a value that is not there. |
| error 29 | G59.x not supported | G-code | Grbl has only the work offsets G54 to G59. |
| error 30 | G53 only with G0 and G1 | G-code | Machine coordinates work only with straight moves. |
| error 31 | Axis words without command | G-code | There are axis values, but no active code uses them. |
| error 32 | Arc without axis word | G-code | An arc needs at least one end coordinate in the active plane. |
| error 33 | Invalid motion target | G-code | The end point of the arc or probe move is impossible. |
| error 34 | Invalid arc radius | G-code | R is too small to reach the end point. |
| error 35 | Arc without offset word | G-code | The arc has no R and no I, J or K of the active plane. |
| error 36 | Unused value words | G-code | The line has values that no code uses. |
| error 37 | G43.1 wrong axis | G-code | The dynamic tool length works only on the configured axis, normally Z. |
| error 38 | Tool number too high | G-code | The T number is above the maximum of the firmware. |
Grbl alarm codes
| Code | Message | Group | Meaning |
|---|---|---|---|
| ALARM 1 | Hard limit | Homing and limits | A limit switch was hit. The position is probably lost because the machine stopped at once. |
| ALARM 2 | Soft limit | Homing and limits | The program wants to leave the travel. The position is still right. |
| ALARM 3 | Abort during cycle | Homing and limits | Reset was pressed while the machine moved. |
| ALARM 4 | Probe fail: wrong start state | Probing | The probe was already closed before the move started. |
| ALARM 5 | Probe fail: no contact | Probing | The probe did not touch within the programmed distance. |
| ALARM 6 | Homing fail: reset | Homing and limits | Homing was stopped by a reset. |
| ALARM 7 | Homing fail: door | Homing and limits | The safety door opened during homing. |
| ALARM 8 | Homing fail: pull-off | Homing and limits | After touching the switch the machine could not leave it. |
| ALARM 9 | Homing fail: switch not found | Homing and limits | The axis moved, but no switch answered. |
Marlin 3D printer errors
| Code | Message | Group | Meaning |
|---|---|---|---|
| Marlin | THERMAL RUNAWAY | Heaters and thermistors | The temperature did not follow the heater: it fell or did not rise while the heater was on. Marlin stops everything because a loose thermistor could make the heater burn without limit. |
| Marlin | Heating failed, system stopped! Heater_ID: 0 | Heaters and thermistors | The heater did not get warm enough within the time set in the firmware (watch period). The ID shows which heater: 0 is the first hotend, "bed" the bed. |
| Marlin | MINTEMP triggered | Heaters and thermistors | The thermistor reads a temperature below the minimum (usually 5 °C). In nearly all cases the sensor circuit is open: a broken wire or a loose plug, not a cold room. |
| Marlin | MAXTEMP triggered | Heaters and thermistors | The thermistor reads a temperature above the maximum. Often a short circuit in the thermistor wires, which makes the reading jump very high. |
| Marlin | Printer halted. kill() called! | System | Marlin has stopped itself. The real reason is in the message before it (thermal error, probe error, emergency stop). The printer needs a reset. |
| Marlin | Probing Failed | Homing and limits | The probe moved down the full distance without a trigger, or the trigger came at an impossible point. |
| Marlin | Homing Failed | Homing and limits | An axis did not reach its endstop within the travel, or the switch did not trigger. |
| Marlin | echo: cold extrusion prevented | Extrusion | The firmware refused to move the extruder because the hotend is below the minimum extrusion temperature (default 170 °C). The print continues, but nothing comes out. |
| Marlin | Line Number is not Last Line Number+1 | Communication | Data from the host (USB) was lost or garbled. The host resends the line; many resends make blobs and pauses. |
| Marlin | echo:Unknown command: "M…" | Communication | The firmware does not know the command. It skips the line and continues. Common after copying start code from another printer. |
| Marlin | STOP called because of BLTouch error | Homing and limits | The BLTouch reported a fault (blinking red LED). Marlin stops because Z homing is not safe. |
| Marlin | Filament runout | Extrusion | The runout sensor reports no filament and Marlin starts the filament change (M600). |
Klipper 3D printer errors
| Code | Message | Group | Meaning |
|---|---|---|---|
| Klipper | Heater extruder not heating at expected rate | Heaters and thermistors | Klipper verify_heater found that the temperature did not rise as expected while the heater was on. It shuts down to prevent a fire. |
| Klipper | MCU 'mcu' shutdown: ADC out of range | Heaters and thermistors | A temperature reading is outside min_temp or max_temp. Same causes as MINTEMP/MAXTEMP in Marlin: open or shorted sensor, or wrong sensor type. |
| Klipper | Move out of range: X Y Z [E] | Homing and limits | A move in the G-code goes past position_min or position_max of an axis. Klipper refuses it and stops the print. |
| Klipper | Must home axis first | Homing and limits | A move was sent before the axes were homed. Klipper does not know the position yet. |
| Klipper | Extrude below minimum temp | Extrusion | The extruder was asked to move while the hotend is colder than min_extrude_temp (default 170 °C). The print stops. |
| Klipper | Extrude only move too long | Extrusion | A move with only E is longer than max_extrude_only_distance (default 50 mm). Klipper blocks it to protect the extruder from a wrong command. |
| Klipper | Move exceeds maximum extrusion | Extrusion | The extrusion of a move is much wider than the nozzle allows (max_extrude_cross_section). Klipper stops because something in the G-code is wrong. |
| Klipper | MCU 'mcu' shutdown: Timer too close | Communication | The microcontroller got a command too late to do it on time. The host was busy or the connection lagged. |
| Klipper | Lost communication with MCU 'mcu' | Communication | The host lost the USB or serial connection to a board. |
| Klipper | Probe triggered prior to movement | Homing and limits | The probe was already triggered when the probing move started. |
| Klipper | No trigger on probe after full movement | Homing and limits | The probe moved down the full distance without a trigger. |
| Klipper | Option '…' is not valid in section '…' | Configuration | printer.cfg has an option Klipper does not know in that section. Klipper does not start until it is fixed. |
| Klipper | Unknown command:"…" | Configuration | The G-code contains a command Klipper does not know: often a Marlin code without a Klipper equivalent (M900, M205, G29) or a macro that is not defined. |
How to read an alarm
- Read all messages. The first one is usually the cause, the others are results.
- Write down number, message, program block and what the machine did.
- Program alarms (the 000s, 100s and 200s) are solved in the program. Servo, travel and temperature alarms are solved at the machine.
- Numbers from 1000 upwards mostly belong to the machine builder.
- Press RESET only when you know the reason.
Practise without risk: the virtual CNC machine gives travel, reference and crash alarms, and the G-code checker finds many program alarms before the machine does.
Frequently asked questions
What is the difference between PS0010 and alarm 010?
Nothing in the meaning. Newer Fanuc controls put letters in front: PS for program errors, SV for servo, OT for overtravel, OH for overheat, SP for spindle, SW for parameter writing.
Can I clear an alarm with RESET?
Program alarms yes, after the correction. Servo alarms often need a power cycle. If the cause is still there, the alarm returns.
What is the difference between a Grbl error and a Grbl alarm?
An error means a line was refused, the machine keeps its position. An alarm is a stop for safety, and after some of them the position is lost and you have to home again.