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.
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.
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.
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
- 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 |