Heidenhain codes
HeidenhainProgram/G-codeIntermediate30-120 minutes

2D4-0000

HEIDENHAIN 2D4-0000 - Start of Python script "" failed

Start of Python script "" failed

The control failed to start a Python script due to communication issues with the PLC. This prevents execution of scripts that rely on PLC data or functionality.

Root Cause Summary

Alarm 2D4-0000 occurs when the TNC control cannot establish proper communication with the PLC to execute a Python script. This typically indicates PLC communication interface failures, incorrect Python script configuration in machine parameters, or missing Python runtime environment setup.

Safety

  • Refer to Heidenhain service manual
  • Ensure qualified technician performs repairs

Causes and Fixes

  1. 1

    Check PLC Connection Status

    Navigate to MOD function → System Info → PLC Status to verify PLC communication state and connection parameters.

    Look for 'PLC Ready' status indicator - anything else indicates communication issues

  2. 2

    Verify Network Configuration

    Access Setup → General → Network Settings and confirm PLC IP address, subnet mask, and gateway settings match your PLC configuration.

    Document current settings before making changes

  3. 3

    Test PLC Ping Response

    Use Setup → Service → Network Diagnostics to ping the PLC IP address and verify physical network connectivity.

    Response times over 10ms may indicate network congestion affecting script startup

  4. 4

    Restart Communication Services

    Execute MOD function → Reset → Communication Reset to reinitialize PLC communication interface without full system restart.

DIY Feasiblemedium confidence

Call a technician if:

  • ·PLC program modifications required
  • ·Python runtime reinstallation needed
  • ·Network infrastructure changes required

Prevention

  • Regularly backup Python scripts and PLC programs
  • Monitor PLC communication status during preventive maintenance
  • Keep Python runtime and TNC software versions synchronized

Common Mistakes

  • Modifying MP7681 without verifying file existence
  • Ignoring PLC cycle time warnings
  • Attempting to run Python scripts without proper licensing

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.