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

104201

Siemens 840D 104201 - Error on setting/resetting semaphores

Error on setting/resetting semaphores

Siemens SINUMERIK alarm 104201: Error on setting/resetting semaphores. 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 104201 indicates a semaphore handling error in the NC program, typically occurring when synchronized actions or resource locking operations fail. This happens when SET or CLEAR semaphore commands are improperly configured, semaphore resources are exhausted, or conflicting semaphore operations occur between channels or programs.

Safety

  • Refer to Siemens documentation
  • Ensure qualified technician performs repairs

Causes and Fixes

  1. 1

    Review the NC program around the alarm occurrence for SET and CLEAR commands. Verify syntax matches format: SETM(semaphore_number[,channel]) or CLEARM(semaphore_number[,channel]).

  2. 2

    Check that semaphore numbers used are within valid range (1-16 for most 840D systems, verify in machine data 10722 $MN_SEMAPHORE_MAXCOUNT).

  3. 3

    Ensure every SETM command has a corresponding CLEARM command and that semaphores are not cleared before being set or cleared multiple times without resetting.

  4. 4

    Test the corrected program in single block mode to verify proper semaphore sequence execution.

    Always backup original NC programs before making modifications.

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.