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

CodeMessageGroupMeaning
000PLEASE TURN OFF POWERParametersA parameter was changed that the control reads only when it starts.
003TOO MANY DIGITSProgramA number has more digits than the control accepts for this address.
004ADDRESS NOT FOUNDProgramA block starts with a number or a sign, but the letter in front of it is missing.
005NO DATA AFTER ADDRESSProgramA letter is there, but no number follows it.
006ILLEGAL USE OF NEGATIVE SIGNProgramA minus sign stands where it is not allowed, or twice.
007ILLEGAL USE OF DECIMAL POINTProgramA decimal point follows an address that only takes whole numbers, or a number has two points.
009ILLEGAL ADDRESS INPUTProgramThe block contains a character that the control cannot read in this place.
010IMPROPER G-CODEProgramThe control does not know this G-code, or the option for it is not installed.
011NO FEEDRATE COMMANDEDProgramA cutting move has no feed, or the feed is zero.
015TOO MANY AXES COMMANDEDProgramOne block moves more axes at the same time than the control allows.
020OVER TOLERANCE OF RADIUSArcThe start point and the end point of the arc do not have the same distance to the centre.
021ILLEGAL PLANE AXIS COMMANDEDArcThe arc uses an axis that does not belong to the active plane.
022NO CIRCULAR RADIUSArcThe arc has an end point but neither R nor I, J, K.
023ILLEGAL RADIUS COMMANDArcA lathe does not accept a negative R.
028ILLEGAL PLANE SELECTProgramTwo parallel axes stand in the plane command.
029ILLEGAL OFFSET VALUEOffsetsThe value in the H offset is too big.
030ILLEGAL OFFSET NUMBEROffsetsThe number behind D or H, or the P number of an extra work offset, does not exist.
031ILLEGAL P COMMAND IN G10OffsetsThe offset number P in a G10 block is missing or too big.
033NO SOLUTION AT CRCCutter compensationWith the tool radius added, two neighbouring moves have no common point.
034NO CIRC ALLOWED IN ST-UP /EXT BLKCutter compensationCompensation starts or ends in an arc block.
036CAN NOT COMMANDED G31ProbingA skip move (probing) was started while cutter compensation was on.
037CAN NOT CHANGE PLANE IN CRCCutter compensationG17, G18 or G19 changes the plane while compensation is active.
038INTERFERENCE IN CIRCULAR BLOCKCutter compensationThe cutter would cut too deep at an arc because start or end point lies on the centre.
041INTERFERENCE IN CRCCutter compensationThe control has looked ahead and sees that the cutter would damage the contour.
044G27-G30 NOT ALLOWED IN FIXED CYCCyclesA reference return stands in the program while a drilling cycle is still active.
045ADDRESS Q NOT FOUND (G73/G83)CyclesA peck cycle has no peck depth Q, or Q is zero.
046ILLEGAL REFERENCE RETURN COMMANDProgramG30 was called with a P number other than 2, 3 or 4.
050CHF/CNR NOT ALLOWED IN THRD BLKTurning cyclesA chamfer or corner radius stands in a threading block.
055MISSING MOVE VALUE IN CHF/CNRProgramThe move is shorter than the chamfer or corner radius that should fit on it.
059PROGRAM NUMBER NOT FOUNDProgramThe control searched for a program number and did not find it.
060SEQUENCE NUMBER NOT FOUNDProgramThe N number you searched for does not exist.
061ADDRESS P/Q NOT FOUND IN G70-G73Turning cyclesA lathe roughing or finishing cycle does not know where the contour starts and ends.
062ILLEGAL COMMAND IN G71-G76Turning cyclesA value in the cycle is zero, negative or makes no sense.
063SEQUENCE NUMBER NOT FOUNDTurning cyclesThe N number in P or Q of G70 to G73 does not exist in the program.
064SHAPE PROGRAM NOT MONOTONOUSLYTurning cyclesThe contour goes back in X or Z. Type I roughing cannot cut pockets.
065ILLEGAL COMMAND IN G71-G73Turning cyclesThe first contour block is not the right kind of move.
066IMPROPER G-CODE IN G71-G73Turning cyclesA G-code that is not allowed stands between the blocks P and Q.
070NO PROGRAM SPACE IN MEMORYMemory and dataThe program memory is full.
071DATA NOT FOUNDMemory and dataA search found nothing.
072TOO MANY PROGRAMSMemory and dataThe maximum number of programs is reached, even if there is memory left.
073PROGRAM NUMBER ALREADY IN USEMemory and dataYou try to store a program with a number that already exists.
074ILLEGAL PROGRAM NUMBERMemory and dataThe program number is outside the allowed range.
075PROTECTMemory and dataThe program number is protected.
076ADDRESS P NOT DEFINEDSubprogram and macroA subprogram or macro call has no P number.
077SUB PROGRAM NESTING ERRORSubprogram and macroSubprograms call each other too deep.
078NUMBER NOT FOUNDSubprogram and macroThe program or N number that a call points to does not exist.
085COMMUNICATION ERRORMemory and dataData was damaged on the serial line. Newer controls show it as SR0085.
086DR SIGNAL OFFMemory and dataThe control does not see a ready device at the other end of the serial cable.
087BUFFER OVERFLOWMemory and dataThe sender did not stop when the control asked for a pause.
090REFERENCE RETURN INCOMPLETEReference and travelThe axis could not find its zero mark.
092AXES NOT ON THE REFERENCE POINTReference and travelG27 checked the position and the axis was not at the reference point.
100PARAMETER WRITE ENABLEParametersNot a fault: parameter writing is switched on. Newer controls show SW0100.
101PLEASE CLEAR MEMORYMemory and dataPower was lost while the control was writing program memory.
112DIVIDED BY ZEROSubprogram and macroA macro calculation divides by zero, or uses the tangent of 90°.
114FORMAT ERROR IN MACROSubprogram and macroThe macro line is written in a form the control does not understand.
115ILLEGAL VARIABLE NUMBERSubprogram and macroThe variable number does not exist on this control.
124MISSING END STATEMENTSubprogram and macroA loop has no END, or END has another number than DO.
128ILLEGAL MACRO SEQUENCE NUMBERSubprogram and macroGOTO points to an N number that does not exist.
200ILLEGAL S CODE COMMANDRigid tappingIn rigid tapping the S value is missing or too high.
201FEEDRATE NOT FOUND IN RIGID TAPRigid tappingThe rigid tapping cycle has no feed.
203PROGRAM MISS AT RIGID TAPPINGRigid tappingM29 or S stands in the wrong place.
224RETURN TO REFERENCE POINTReference and travelAutomatic mode was started before the axes had their reference return.
300APC: n AXIS NEED ZRNEncoder batteryThe absolute encoder has lost its position. Newer controls show DS0300.
307APC: BATTERY LOWEncoder batteryThe battery that keeps the absolute position is low. Newer controls show DS0307.
401SERVO ALARM: VRDY OFFServo and drivesThe servo amplifier is not ready. This is often the result of another alarm.
410SERVO ALARM: EXCESS ERROR (STOP)Servo and drivesThe axis is too far from its target although it should stand still.
411SERVO ALARM: EXCESS ERROR (MOVE)Servo and drivesThe axis does not follow the command while moving.
417SERVO ALARM: PARAMETER INCORRECTServo and drivesA digital servo parameter has an impossible value.
436SOFTTHERMAL (OVC)Servo and drivesThe software calculates that the motor is too hot.
500OVER TRAVEL: +nReference and travelThe axis has reached its positive soft limit. Newer controls show OT0500.
501OVER TRAVEL: -nReference and travelThe axis has reached its negative soft limit. Newer controls show OT0501.
506OVER TRAVEL: +n (HARD LIMIT)Reference and travelThe axis stands on the hardware limit switch.
700OVERHEAT: CONTROL UNITTemperatureThe control cabinet is too hot. Newer controls show OH0700.
701OVERHEAT: FAN MOTORTemperatureA fan on the control has stopped.
704OVERHEAT: SPINDLETemperatureThe control has detected strong spindle speed fluctuation or overheating.
740RIGID TAP ALARM: EXCESS ERRORRigid tappingSpindle and Z axis were not synchronous enough while tapping.
750SPINDLE SERIAL LINK START FAULTServo and drivesThe control does not reach the spindle amplifier after power on.
5010END OF RECORDMemory and dataThe control read the percent sign before the program was finished.

Grbl error codes

CodeMessageGroupMeaning
error 1Expected command letterTextA number came without a letter in front of it.
error 2Bad number formatTextA letter came without a valid number.
error 3Invalid statementSystem commandThe $ command does not exist.
error 4Value < 0SettingsA setting needs a positive number.
error 5Setting disabledHoming and limitsYou asked for homing, but homing is switched off.
error 6Value < 3 usecSettingsThe step pulse must be at least 3 microseconds long.
error 7EEPROM read failSettingsSettings could not be read, default values were loaded.
error 8Not idleSystem commandThis $ command works only while the machine stands still.
error 9G-code lockHoming and limitsG-code is locked because of an alarm or a jog.
error 10Homing not enabledHoming and limitsSoft limits need homing.
error 11Line overflowTextThe line is longer than the buffer.
error 12Step rate > 30kHzSettingsSpeed times steps per mm is more than the board can send.
error 13Check doorSystem commandThe safety door input is active.
error 14Line length exceededSettingsA start-up line or build info is too long to be stored.
error 15Travel exceededHoming and limitsThe jog target lies outside the travel. Nothing moves.
error 16Invalid jog commandSystem commandThe jog line has no equal sign or contains a code that is not allowed.
error 17Laser mode requires PWM outputSettingsLaser mode needs a firmware with variable spindle output.
error 20Unsupported commandG-codeGrbl does not know this G- or M-code.
error 21Modal group violationG-codeTwo codes of the same group stand in one line.
error 22Undefined feed rateG-codeA cutting move has no feed.
error 23Command requires an integer valueG-codeA code needs a whole number.
error 24Two commands use axis wordsG-codeTwo codes in the line both want the X, Y and Z values.
error 25Repeated wordG-codeThe same letter stands twice in one line.
error 26No axis words foundG-codeThe code needs an axis, but there is none.
error 27Invalid line numberG-codeThe N number is wrong.
error 28Missing value wordG-codeA code needs a value that is not there.
error 29G59.x not supportedG-codeGrbl has only the work offsets G54 to G59.
error 30G53 only with G0 and G1G-codeMachine coordinates work only with straight moves.
error 31Axis words without commandG-codeThere are axis values, but no active code uses them.
error 32Arc without axis wordG-codeAn arc needs at least one end coordinate in the active plane.
error 33Invalid motion targetG-codeThe end point of the arc or probe move is impossible.
error 34Invalid arc radiusG-codeR is too small to reach the end point.
error 35Arc without offset wordG-codeThe arc has no R and no I, J or K of the active plane.
error 36Unused value wordsG-codeThe line has values that no code uses.
error 37G43.1 wrong axisG-codeThe dynamic tool length works only on the configured axis, normally Z.
error 38Tool number too highG-codeThe T number is above the maximum of the firmware.

Grbl alarm codes

CodeMessageGroupMeaning
ALARM 1Hard limitHoming and limitsA limit switch was hit. The position is probably lost because the machine stopped at once.
ALARM 2Soft limitHoming and limitsThe program wants to leave the travel. The position is still right.
ALARM 3Abort during cycleHoming and limitsReset was pressed while the machine moved.
ALARM 4Probe fail: wrong start stateProbingThe probe was already closed before the move started.
ALARM 5Probe fail: no contactProbingThe probe did not touch within the programmed distance.
ALARM 6Homing fail: resetHoming and limitsHoming was stopped by a reset.
ALARM 7Homing fail: doorHoming and limitsThe safety door opened during homing.
ALARM 8Homing fail: pull-offHoming and limitsAfter touching the switch the machine could not leave it.
ALARM 9Homing fail: switch not foundHoming and limitsThe axis moved, but no switch answered.

Marlin 3D printer errors

CodeMessageGroupMeaning
MarlinTHERMAL RUNAWAYHeaters and thermistorsThe 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.
MarlinHeating failed, system stopped! Heater_ID: 0Heaters and thermistorsThe 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.
MarlinMINTEMP triggeredHeaters and thermistorsThe 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.
MarlinMAXTEMP triggeredHeaters and thermistorsThe thermistor reads a temperature above the maximum. Often a short circuit in the thermistor wires, which makes the reading jump very high.
MarlinPrinter halted. kill() called!SystemMarlin has stopped itself. The real reason is in the message before it (thermal error, probe error, emergency stop). The printer needs a reset.
MarlinProbing FailedHoming and limitsThe probe moved down the full distance without a trigger, or the trigger came at an impossible point.
MarlinHoming FailedHoming and limitsAn axis did not reach its endstop within the travel, or the switch did not trigger.
Marlinecho: cold extrusion preventedExtrusionThe 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.
MarlinLine Number is not Last Line Number+1CommunicationData from the host (USB) was lost or garbled. The host resends the line; many resends make blobs and pauses.
Marlinecho:Unknown command: "M…"CommunicationThe firmware does not know the command. It skips the line and continues. Common after copying start code from another printer.
MarlinSTOP called because of BLTouch errorHoming and limitsThe BLTouch reported a fault (blinking red LED). Marlin stops because Z homing is not safe.
MarlinFilament runoutExtrusionThe runout sensor reports no filament and Marlin starts the filament change (M600).

Klipper 3D printer errors

CodeMessageGroupMeaning
KlipperHeater extruder not heating at expected rateHeaters and thermistorsKlipper verify_heater found that the temperature did not rise as expected while the heater was on. It shuts down to prevent a fire.
KlipperMCU 'mcu' shutdown: ADC out of rangeHeaters and thermistorsA temperature reading is outside min_temp or max_temp. Same causes as MINTEMP/MAXTEMP in Marlin: open or shorted sensor, or wrong sensor type.
KlipperMove out of range: X Y Z [E]Homing and limitsA move in the G-code goes past position_min or position_max of an axis. Klipper refuses it and stops the print.
KlipperMust home axis firstHoming and limitsA move was sent before the axes were homed. Klipper does not know the position yet.
KlipperExtrude below minimum tempExtrusionThe extruder was asked to move while the hotend is colder than min_extrude_temp (default 170 °C). The print stops.
KlipperExtrude only move too longExtrusionA 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.
KlipperMove exceeds maximum extrusionExtrusionThe 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.
KlipperMCU 'mcu' shutdown: Timer too closeCommunicationThe microcontroller got a command too late to do it on time. The host was busy or the connection lagged.
KlipperLost communication with MCU 'mcu'CommunicationThe host lost the USB or serial connection to a board.
KlipperProbe triggered prior to movementHoming and limitsThe probe was already triggered when the probing move started.
KlipperNo trigger on probe after full movementHoming and limitsThe probe moved down the full distance without a trigger.
KlipperOption '…' is not valid in section '…'Configurationprinter.cfg has an option Klipper does not know in that section. Klipper does not start until it is fixed.
KlipperUnknown command:"…"ConfigurationThe 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

  1. Read all messages. The first one is usually the cause, the others are results.
  2. Write down number, message, program block and what the machine did.
  3. Program alarms (the 000s, 100s and 200s) are solved in the program. Servo, travel and temperature alarms are solved at the machine.
  4. Numbers from 1000 upwards mostly belong to the machine builder.
  5. 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.