
axismd.ai
Heidenhain Controller
Program/G-code · Intermediate · 30-120 minutes
HEIDENHAIN 1A0-0179 - Facing slide: M140 not allowed
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.
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
Causes and Fixes
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.
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.
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.
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.
Call a technician if:
Prevention
Common Mistakes
Seeing Multiple Alarms?
Seeing another alarm with this one? Enter the code.
AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.
Start freeWas this guide helpful?
Always verify with your machine manual or a certified technician before performing service procedures.