Home › M-codes › Siemens 840D 828D › M41
M41 Gear stage selection M40 to M45
Siemens 840D 828D M-code · Mill and lathe
M41 to M45 select gear stage 1 to 5. M40 lets the control pick the gear stage from the programmed speed. Only on machines with a gearbox.
Format
M40 or M41 to M45
How it works
Modal.
Example program
M41 ; GEAR STAGE 1 FOR HIGH TORQUE
S300 M3 ; LOW SPEED
M40 ; AUTOMATIC GEAR SELECTION
S300 M3 ; LOW SPEED
M40 ; AUTOMATIC GEAR SELECTION
Example is in inch. Check offsets and clearances first.
Watch out for
- On machines without a gearbox these codes are not used or have another meaning.
- Use M40 unless a fixed gear is needed for torque.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M41 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Low gear range |
| Haas NGC | Spindle low gear override |
| Okuma OSP | Spindle gear range 1 |
| Fagor 8055 8065 | Spindle gear range 1 |
| Centroid CNC12 Acorn | Select low gear range, macro |
| Hurco WinMax (NC) | Single touch probing |
| Fadal | Low range RPM |
Every M-code for Siemens 840D 828D in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open M41 in the app All Siemens 840D 828D M-codes