Skip to content

M48 / M49: enabling and canceling the panel overrides

M49 cancels the panel override dials so the feedrate and spindle speed are exactly as programmed, and M48 enables them again. You use them in the stretches where turning a dial ruins the operation or puts it at risk: threading, critical finish passes, carefully calculated lead-ins. Outside those stretches, leave them enabled, because the override is the operator's main tool for reacting when something sounds wrong.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Auxiliary
Machine
Milling, Turning, Mill-turn
Risk
Medium
Example
M48 / M49

Syntax by control

Fanuc (milling and turning)
M49 ; ... ; M48
They are not standard Fanuc codes: the machine builder defines them. No parameters. They are modal: M49 locks the overrides out until an M48, a reset or the end of the program comes along. The exact scope, whether it affects only feed or also spindle and rapid, depends on the PLC configuration.
Haas
M48 / M49
On Haas they are something else: M48 is the program validity check and M49 sets the pallet status. They do not lock out the overrides.
Siemens 840D / 828D
Lockout through machine data or synchronization
Siemens does not use M48 and M49 as standard: override behavior is controlled with machine data, synchronized actions or the options of the cycle itself. If you see M48 or M49 in a Siemens program, it is a machine builder M code.
During threading cycles
The control already locks it out on its own
In rigid tapping and in lathe threading cycles, most controls ignore the feed override without you having to program anything, precisely because touching it would break the spindle-feed synchronization.

Address letters used with it

LetterWhat it setsUnit
M49Cancels the overrides: feed and speed run at exactly 100% of the programmed value, and the dial has no effect.no parameters
M48Hands override control back to the panel. This is the normal state of the machine when a program starts.no parameters
Lockout scopeWhich dials are canceled, only feed or also spindle and rapid, is decided by the machine configuration. Check it on the machine itself; do not assume it.PLC configuration
Emergency stop and feed holdThese are never locked out. M49 cancels the dials, not the safeties: the emergency stop, feed hold and door keep working.always active

Worked example

Finishing a tight-tolerance contour where the feed is calculated to produce a specific finish, followed by roughing where you do want the operator able to adjust it. The example shows where the lockout opens and where it closes, and why it is not left on from start to end of the program.

O0480 (ACABADO CON AVANCE BLOQUEADO)
( Program header. )
G21 G17 G40 G49 G80
( Safety block. )
T8 M06
( Finishing end mill. )
G90 G54 G00 X-20. Y0.
( Positioning for the lead-in to the contour, outside the part. )
G43 H08 Z50. M03 S9000
( Length offset and spindle. )
M08
( Coolant. )
G00 Z-5.
( Down to the finish pass depth. )
G01 G42 D08 X0. Y0. F1200
( Lead-in with cutter compensation to the right, already at the finishing feed. The path runs counterclockwise around the outside of the part, which is why it is G42. )
M49
( Locks out the overrides. From here on the feed is exactly 1200 mm/min, which is what gives the finish the print calls for. )
G01 X100.
( First stretch of the contour. )
G03 X120. Y20. R20.
( Corner radius. This is where a turned-down override would leave a visible mark on the wall. )
G01 Y80.
( Second stretch. )
G01 X-20.
( Third stretch, running out past the left face. The contour stays open: the X0 wall is not cut in this pass. )
M48
( Gives override control back to the operator as soon as the critical stretch ends. Keeping it locked out longer than necessary takes away the operator's main defense. )
G01 G40 X-20. Y100.
( Lead-out canceling cutter compensation, moving away from the part. Canceling on a diagonal back to Y0 would bite into the left face. )
G00 Z50. M09
( Retract and coolant off. )
G91 G28 Z0. M05
( Z to the reference point and spindle stop. )
G90 M30
( Back to absolute and end of program. )
Open the simulator to check the example

Practical keys to using M48/M49 in the workshop

When a lockout makes sense

The lockout is justified when the feed is part of the result and not just a question of productivity. A finish whose roughness depends on feed per tooth, a helical entry calculated not to exceed the angle the cutter can take, a stretch where the combination of feed and speed avoids chatter: in all of those cases, a dial at 60% ruins the part and nobody understands why. Outside those stretches, locking out is counterproductive, because the override is the operator's immediate response to a strange noise or to chips that are not coming off the way they should.

What M49 does not lock out

Be clear that M49 cancels dials, not safeties. The emergency stop keeps working, feed hold stops the program, an open door still stops the machine and single block is still available. It does not take away the ability to stop and edit either. What does vary between machines is whether the lockout reaches the rapid and spindle overrides or only the feed override, and that is decided by the machine builder's configuration. The way to find out is to try it on the machine itself with a test program, cutting air.

Threading usually does not need it

Threading cycles, both rigid tapping on a mill and the lathe cycles, already ignore the feed override on most controls, because touching it would break the coupling between spindle rotation and carriage travel. On some machines the spindle override is also limited during the cycle. That is why putting M49 before a G76 or a G84 usually changes nothing: it does no harm, but it is not what saves the thread. What does matter there is the pitch, the speed and the tool geometry.

Mistakes that cost you a part (or a tool)

  • Leaving M49 active through the whole program: the operator loses the most useful tool for reacting to a problem.
  • Locking out the overrides during the first prove-out of a new program, which is exactly when being able to turn the feed down matters most.
  • Assuming M49 also locks out rapid on every machine: it depends on the machine builder's configuration.
  • Forgetting the M48 at the end of a critical stretch and leaving the machine locked out for the next program if the control does not reset it.
  • Believing M49 prevents you from stopping the machine: the safeties and feed hold keep working and must keep working.
  • Using M49 as a substitute for a properly calculated feed: if the part only comes out right at exactly 100%, the problem is usually somewhere else.

Frequently asked questions

Does M49 also lock out the emergency stop?

No, and it could not. M49 cancels the feed override dial and, depending on the machine, the spindle override dial. All the safeties stay active: emergency stop, feed hold, door and single block. It is a lockout of fine adjustment, not of machine control.

Does it affect the rapid override?

It depends on the machine. In some configurations the lockout reaches the rapid dial and in others it does not. Since you cannot work this out from the code, the only reliable way is to dry-run it on your machine with the rapid dial at 5% and see whether the move goes slowly or at full speed.

Do I need M49 before threading?

Generally no, because threading cycles already ignore the feed override so they do not break synchronization. Adding it does no harm, but it is not what protects the thread. If your control is old or behaves strangely, checking the manual is more useful than adding M codes just in case.

What is the Siemens equivalent?

Siemens does not use M48 and M49 as standard. Override behavior is handled with machine data, synchronized actions or options of the cycle itself. If those M codes show up in a Siemens program, they are machine builder functions and you have to look at the machine's table.

Does the lockout reset when the program ends?

On most controls, M30 or reset brings back the normal state, that is, overrides enabled. Even so, writing M48 explicitly when you close the critical stretch is the healthy habit: it makes clear in the code itself where the lockout starts and ends, and it does not depend on how the machine is configured.

Related codes

M00/M01M03/M04/M05G08/G09G60M38/M39

Other codes in Auxiliary

See the full list of G and M codes

Related apps