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

100413

Siemens 840D 100413 - Error var. access: Value illegal

Error var. access: Value illegal

Siemens SINUMERIK alarm 100413: Error var. access: Value illegal. 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

SIEMENS alarm 100413 occurs when an illegal value is written to or read from a system variable, typically during NC program execution or HMI operations. This alarm indicates that a variable access operation has failed due to invalid data type, out-of-range values, or attempting to write to read-only system variables.

Safety

  • Refer to Siemens documentation
  • Ensure qualified technician performs repairs

Causes and Fixes

  1. 1

    Check NC program line causing alarm

    Navigate to Diagnostics > Alarms > Detail view to identify the specific NC block and variable mentioned in %1 parameter.

    Use single block mode (SBL1) to isolate the exact program line causing the issue

  2. 2

    Verify variable value ranges

    Check if assigned values are within valid ranges for the specific system variable using SINUMERIK documentation or HMI variable monitor.

    Never assign values outside documented ranges as this can cause system instability

  3. 3

    Validate data type compatibility

    Ensure the assigned value matches the expected data type (INTEGER, REAL, STRING) for the target variable using variable list in HMI.

    Use DEF statements to explicitly declare variable types in subroutines

  4. 4

    Test with corrected values

    Modify the NC program with valid values and test in single block mode before full execution.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Machine data corruption requires factory defaults
  • ·System variables show persistent corruption after restart
  • ·Multiple related alarms indicate hardware failure

Prevention

  • Always validate variable ranges before NC program execution
  • Use proper access levels when modifying system variables
  • Regularly backup machine data and NC programs
  • Implement program syntax checking in development process

Common Mistakes

  • Attempting to write to read-only system variables
  • Using incorrect data types for variable assignments
  • Modifying variables without proper access rights
  • Not checking variable syntax in NC programs

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.