Siemens SINUMERIK codes
Siemens SINUMERIKProgram/G-codeIntermediate30-120 minutes

104022

Siemens 840D 104022 - Error in present location search

Error in present location search

Siemens SINUMERIK alarm 104022: Error in present location search. This alarm indicates an error condition in the NC program or control configuration that must be resolved before the operation can continue.

Root Cause Summary

Alarm 104022 occurs when the control system cannot successfully execute a present location search operation during program execution. This typically happens when the search parameters are incorrectly defined, the measuring system provides invalid data, or the search movement encounters physical or logical limits before finding the reference point.

Safety

  • Refer to Siemens documentation
  • Ensure qualified technician performs repairs

Causes and Fixes

  1. 1

    Review the NC program block that triggered the alarm and verify the search syntax (G75 or similar) includes correct axis designation and search direction.

  2. 2

    Check machine data MD34200 $MA_ENC_REFP_MODE for the affected axis to ensure reference point mode is correctly configured for the encoder type installed.

  3. 3

    Verify machine data MD34210 $MA_ENC_REFP_CAM_DIR_IS_MINUS for correct reference cam direction setting matching your machine's physical configuration.

  4. 4

    Inspect MD34100 $MA_REFP_CAM_DIR_IS_MINUS to ensure the reference cam direction for the axis matches the actual hardware setup and search direction in the program.

Service Recommended confidence

Seeing Multiple Alarms?

Seeing another alarm with this one? Enter the code.

Get machine-aware diagnosis

AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.

Start free

Was this guide helpful?

Always verify with your machine manual or a certified technician before performing service procedures.