What is M302 undo command?

Have questions or comments about Simplify3D, Slic3r, Cura, Reptier, etc? Or wondering about which CAD software to use...discuss it here...
Post Reply
Lateralg
Posts: 138
Joined: Mon Apr 14, 2014 8:21 am

What is M302 undo command?

Post by Lateralg » Thu Jun 26, 2014 9:38 pm

M302 allows cold extrusion.
After sending M302, how do I return to normal?
Gary
Make Better Things
Make Things Better

Dale Reed
Posts: 376
Joined: Thu Apr 10, 2014 1:39 am
Location: Cleveland Heights, Ohio USA

Re: What is M302 undo command?

Post by Dale Reed » Thu Jun 26, 2014 10:24 pm

Lateralg,

Couldn't find one on RepRap wiki or Marlin sites. I did find a firmware called "5DPrint" that uses M302 P1 to allow cold extrudes, and M302 P0 to disallow cold extrudes. I suppose you could try those commands and see what happens.... Maybe Marlin will incorporate (someday)?

Otherwise, I suppose you'll have to initiate a machine reboot or cycle power...

Dale

User avatar
Tim
Posts: 1205
Joined: Thu Apr 10, 2014 2:19 pm
Location: Poolesville, Maryland
Contact:

Re: What is M302 undo command?

Post by Tim » Thu Jun 26, 2014 11:59 pm

The actual Marlin code for M302 is:

Code: Select all

    case 302: // allow cold extrudes, or set the minimum extrude temperature
    {
          float temp = .0;
          if (code_seen('S')) temp=code_value();
      set_extrude_min_temp(temp);
    }
    break;
So if you do just "M302", this is equivalent to "M302 S0", or allow extruding at any temperature above 0C.
If you want to return to normal, do for example "M302 S150", with S set to something slightly below your set temperature.

Dale Reed
Posts: 376
Joined: Thu Apr 10, 2014 1:39 am
Location: Cleveland Heights, Ohio USA

Re: What is M302 undo command?

Post by Dale Reed » Fri Jun 27, 2014 2:06 am

The source code!!! OF COURSE!!! I'll have to save a copy on my work PC so I can offer USEFUL responses when I sneak a look at the forum when I'm supposed to be working.... ;-)

Thanks, Tim!
Dale

sprior
Posts: 381
Joined: Thu Apr 10, 2014 8:37 pm

Re: What is M302 undo command?

Post by sprior » Fri Jun 27, 2014 2:25 am

Use The Source Luke!

Post Reply