Welcome! Log In Create A New Profile

Advanced

Filament runout echo:unknown command: M412

Posted by jimboh3 
Filament runout echo:unknown command: M412
February 16, 2019 03:45PM
I have set in configuration.h
#define FILAMENT_RUNOUT_SENSOR
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
//#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif

and in pins_rumba.h

// Runout sensors
#define FIL_RUNOUT_PIN 14
#define FIL_RUNOUT2_PIN 15

I am getting echo:unknown command: M412

Any ideas?
Re: Filament runout echo:unknown command: M412
February 16, 2019 04:18PM
I believe that this Command is only valid in Marlin 2 as shown in the attached photo. ("</>2.0.0") in green

It allows you to enable or disable the Filament run-out sensor and continue printing without a filament run-out sensor.

M412 works perfect in My Marlin 2.0.x BugFix which has been installed in both my 3D Printers.





Computer Programmer / Electronics Technician
Re: Filament runout echo:unknown command: M412
February 16, 2019 04:50PM
Thanks for the quick reply.
I am new to Marlin and 3d printers in general and and have nearly finished completing my cubex duo/rumba build. I am utilising the built in filament detector on the duo.
Runout Sensors is defined in the 1.1.9 Configuration.h file. I am surprised it would be defined but not supported.

/**
* Filament Runout Sensors
* Mechanical or opto endstops are used to check for the presence of filament.
*
* RAMPS-based boards use SERVO3_PIN for the first runout sensor.
* For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
* By default the firmware assumes HIGH=FILAMENT PRESENT.
*/
#define FILAMENT_RUNOUT_SENSOR
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
//#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif

I avoided going with 2 because I was worried about bugs (if there are any) confusing my learning curve.

Is 2 ready to use? Or should I wait and just not use the runout sensors for now?

Will my 1.1.9 configuration file be usable in 2 or will it need a lot of work?

I couldn't see any attached photo btw.
Re: Filament runout echo:unknown command: M412
February 16, 2019 05:04PM
Mostly the bugs are in the 32bit controller firmware, as I am still using a 16bit controller I do not have to worry about any 32bit errors.

They are maintaining a list of the controllers that are still having problems Here and my RAMPS, compatible is good to go so I went...

Edited 1 time(s). Last edit at 02/16/2019 05:05PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: Filament runout echo:unknown command: M412
February 16, 2019 05:08PM
Good to know. My Rumba is basically a ramps board so I should be good to go.
Re: Filament runout echo:unknown command: M412
February 16, 2019 05:20PM
I like it, it has many features that make it better, an still learning the features.

#define S_CURVE_ACCELERATION

#define JUNCTION_DEVIATION // in lieu of XYZ Jerk

#define RESTORE_LEVELING_AFTER_G28

#define PARK_HEAD_ON_PAUSE // Normally when I paused it stopped at the current location and melted the model, now stops and moves to a park location

Edited 5 time(s). Last edit at 02/16/2019 05:51PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: Filament runout echo:unknown command: M412
February 16, 2019 09:47PM
I installed Marlin 2bf and am back up and running with 'runout sensors On displayed on the LCD. Thanks for the assistance.
Sorry, only registered users may post in this forum.

Click here to login