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
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.
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 |
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
- Refer to your machine manual.
- Check the behavior at the machine.
- 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.
- 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 |