Retracting in the tool axis with M140

Application

With M140 the control retracts the tool in the tool axis.

Description of function

Effect

M140 is in effect blockwise and takes effect at the start of the block.

Application example

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

11 LBL "SAFE"

12 M140 MB MAX

; Retract by the maximum distance in the tool axis

13 L X+350 Y+400 R0 FMAX M91

; Approach a safe position in the working plane

14 LBL 0

Here M140 is in a subprogram in which the control moves the tool to a safe position.

With M140 MB MAX the control retracts the tool by the maximum distance in the positive direction in the tool axis. The control stops the tool before reaching a limit switch or a collision object.

In the next NC block the control moves the tool to a safe position in the working plane.

Without M140 the control does not execute a retraction.

Input

If you define M140, the control continues the dialog and prompts you for the retraction distance MB. You can program the retraction distance as a positive or negative incremental value. With MB MAX the control retracts the tool in the positive direction in the tool axis before reaching a limit switch or a collision object.

After MB you can define a feed rate for the retraction movement. If you do not define a feed rate, the control retracts the tool at rapid traverse.

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

21 L Y+38.5 F125 M140 MB+50 F750

; Retract tool at feed rate of 750 mm/min by 50 mm in the positive direction of the tool axis

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

21 L Y+38.5 F125 M140 MB MAX

; Retract tool at rapid traverse by the maximum distance in the positive direction in the tool axis

Notes

 
Notice
Danger of collision!
The machine manufacturer has various options for configuring Dynamic Collision Monitoring (DCM (#40 / #5-03-1)). Depending on the machine, the control can continue with the NC program without an error message despite the detected collision. The control stops the tool at the last position without a collision and continues the NC program from this position. This configuration of DCM results in movements that are not defined in the program. This behavior occurs no matter whether collision monitoring is active or inactive. There is a danger of collision during these movements!
  1. Refer to your machine manual.
  2. Check the behavior at the machine.
 
Notice
Danger of collision!
If you use M118 to modify the position of a rotary axis with the handwheel and then execute M140, the control ignores the superimposed values during the retraction movement. This results in unwanted and unpredictable movements, especially when using machines with head rotation axes. There is a danger of collision during these retraction movements!
  1. Do not combine M118 with M140 when using machines with head rotation axes.
  • M140 is also in effect with a tilted working plane. For machines with head rotation axes the control moves the tool in the tool coordinate system T-CS.
  • Tool coordinate system T-CS

  • With M140 MB MAX the control retracts the tool only in the positive direction in the tool axis.
  • If you define a negative value for MB, the control retracts the tool in the negative direction in the tool axis.
  • The control gleans the necessary information about the tool axis for M140 from the tool call.
  • In the optional machine parameter moveBack (no. 200903) the machine manufacturer defines the distance to a limit switch or a collision object upon a maximum retraction with MB MAX.

Definition

Abbreviation

Definition

MB (move back)

Tool axis retraction