MachineryFix

Siemens CNC control · alarm code

SINUMERIK 808D 20004: Axis reference mark missing

20004 on the Siemens SINUMERIK 808D is the “Axis reference mark missing” alarm. Siemens calls every message on the 808D an alarm. The manual gives each alarm's reaction: most stop the part program and disable NC Start, and the serious ones also take the NC or the axes out of control.

The control has lost, or could not establish, the link between where the machine is and what its position detector says. It happens after the absolute encoder's battery backup fails, after an encoder or motor is replaced or disconnected, or when a reference return cannot complete.

Code
20004
Type
Alarm (stops the CNC)
Control
Siemens SINUMERIK 808D, SINUMERIK 808D ADVANCED
Kind of fault
Reference position

01 / Causes

What causes 20004

  • On a distance-coded length measuring system, two reference marks were not found within the search distance in MD34060 $MA_REFP_MAX_MARKER_DIST, counted from the start point.

02 / Checks

What to check for 20004

In the order Siemens gives them.

  1. 01Find the distance between two odd reference marks (20.00 mm on Heidenhain scales) and enter it in MD34060 $MA_REFP_MAX_MARKER_DIST.
  2. 02Check the scale's reference track and the electronics that evaluate it.

Also in the manual

  • Reaction: the program stops and NC Start is disabled.
  • To clear it: press RESET, then start the part program again.

03 / Clearing it

How to clear 20004

  • Each alarm clears its own way, shown on its row or page: switching the control off and on, the RESET key, the alarm clear key or NC START, or by itself once the cause is gone.
  • After an alarm that puts the axes into follow-up mode or says they must be referenced again, reference the axes before running a program.
  • Clear an alarm only after its cause is found; one that comes straight back is telling you something.

Clear it once. If 20004 comes straight back, stop resetting and find the cause: repeated resets on servo and spindle alarms can turn a cable or motor fault into a damaged amplifier.

04 / On site

How reference position faults are traced on site

General practice for this kind of alarm on CNC machines, in the order a technician works. Switch off and let the servo and spindle amplifiers' DC link discharge before touching terminals.

  1. 01Check the absolute encoder backup battery; replace batteries with the control powered on, so the stored position is not lost.
  2. 02Check the encoder cable and its connectors on the motor and the amplifier.
  3. 03Return the axis to its reference position (or set it by the machine builder's procedure for axes without a deceleration dog), then reset.
  4. 04Before running a program, confirm the position against a known point on the machine.
  5. 05If the alarm returns with a good battery and cable, check the encoder's supply voltage and the encoder itself.

05 / Repair

When 20004 means a repair

Points to a repair when the battery and cables are good but the position is still lost, or a reference return will not complete: a failing encoder, encoder cable or axis card.

If 20004 keeps returning, send the alarm number, a photo of the alarm screen and what the machine was doing when it stopped to MachineryFix on WhatsApp or call +91 70133 33007. We match a technician who works on Siemens CNC systems, and they arrive knowing what to look for.

06 / Other drives

Reference position: the same fault on other drives

Each maker numbers this protection differently. Codes from each maker's own manual.

DriveCodes
FANUC 0i-DDS0020 REFERENCE RETURN INCOMPLETE · DS0300 APC ALARM: NEED REF RETURN · DS0306 APC ALARM: BATTERY VOLTAGE 0 · DS0307 APC ALARM: BATTERY LOW 1 · DS0308 APC ALARM: BATTERY LOW 2 · DS0309 APC ALARM: REF RETURN IMPOSSIBLE
FANUC 0i-D Program (PS)PS0090 REFERENCE RETURN INCOMPLETE · PS0091 MANUAL REFERENCE POSITION RETURN IS NOT PERFORMED IN FEED HOLD · PS0092 ZERO RETURN CHECK (G27) ERROR · PS0224 ZERO RETURN NOT FINISHED · PS0301 RESETTING OF REFERENCE RETURN IS INHIBITED · PS0302 SETTING THE REFERENCE POSITION WITHOUT DOG IS NOT PERFORMED
Mitsubishi Electric M800/M80M01 0001 Dog overrun · M01 0002 Some ax does not pass Z phase · M01 0003 R-pnt direction illegal · M01 0009 Ref point return No. invalid · M01 0020 Ref point retract invalid · M01 0021 Tool ofs invld after R-pnt

07 / More codes

Other SINUMERIK 808D codes

Source

Siemens, SINUMERIK 808D, SINUMERIK 808D ADVANCED Diagnostics Manual, 02/2016, Chapter 5 (NCK, drive and PLC alarms) and 6.2 (cancel criteria).

Codes, names, causes and remedies are taken from that edition of the manual and reworded; nothing is added to them. Firmware and manual editions differ, so check your drive's own manual before changing parameters. MachineryFix is independent of Siemens and is not its authorised service partner.

Written & reviewed by MachineryFix — last reviewed — questions? Call +91 70133 33007

20004 won't clear? Get a technician who knows the SINUMERIK 808D.

Send the code and what the machine was doing when it stopped. We'll match a technician who works on that control.