Heidenhain codes
HeidenhainProgram/G-codeIntermediate30-120 minutes

1A0-0179

HEIDENHAIN 1A0-0179 - Facing slide: M140 not allowed

Facing slide: M140 not allowed

This TNC7/TNC 640 error (1A0-0179) relates to 'Facing slide: M140 not allowed'. Tool retraction (M140) not allowed with an active facing slide

Root Cause Summary

The alarm is triggered by the PLC detecting an incompatible M-function call for the machine's facing slide configuration. Facing slides require manufacturer-specific tool handling sequences that differ from standard M140 retraction. The PLC blocks M140 to prevent mechanical conflicts or unsafe conditions specific to facing slide kinematics.

Safety

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

Causes and Fixes

  1. 1

    Locate M140 in NC program

    Open the NC program in Program Run or Test Run mode. Use the search function (GOTO block number or FIND function) to locate all instances of M140 in the active program.

    In Test Run mode, use the 'Search' softkey and enter 'M140' to quickly find all occurrences without manual scrolling.

  2. 2

    Identify correct facing slide M-code

    Check machine manufacturer's programming manual for the correct M-code used for tool retraction on facing slide. Common alternatives include M141, M142, or manufacturer-specific codes like M340-M349 range.

    The correct M-code is often documented in MOD > Machine Parameter > M-Function Table or in PLC marker assignments M4300-M4500.

  3. 3

    Replace M140 with correct M-code

    Edit the NC program and replace M140 with the manufacturer-specified facing slide retraction M-code. Save the modified program and reset the alarm with CE key.

    Test the modified program in single block mode first to verify proper facing slide movement.

  4. 4

    Verify program execution

    Run the program in Test Run mode or with dry run active to confirm the facing slide retracts correctly without triggering the alarm. Monitor axis positions on the position display.

    Use the 'Program Test' function (MOD > Program Test) to simulate the complete program without axis movement if available on your control version.

DIY Feasiblehigh confidence

Call a technician if:

  • ·PLC modifications required
  • ·Machine parameter changes needed
  • ·Mechanical facing slide issues

Prevention

  • Always terminate facing slide cycles properly before tool changes
  • Use structured programming with clear cycle boundaries
  • Regularly verify facing slide reference status

Common Mistakes

  • Programming M140 within active cycles
  • Forgetting cycle termination commands
  • Ignoring facing slide position feedback

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.