Welcome! Log In Create A New Profile

Advanced

Marlin 2.0.x M42 command is not working

Posted by sairfan1 
Marlin 2.0.x M42 command is not working
September 09, 2021 11:50AM
I recently bought RAMPS 1.6 board, I downloaded and installed latest Marline 2.x firmware,
Before installing firmware I configured it for 5 Axes, as I'm not using it for 3D printer so i set Extruder to Zero. I double checked board for marlin is selected RAMPS

I want to turn ON/OFF D8, D9 and D10 when i send command M42 along with parameters it says unknown command, can someone help me how can i control D8, D9 and D10 to turn ON/OFF through commands, is there something to enable or disable this command or i need to change in firmware etc.

Edited 1 time(s). Last edit at 09/09/2021 11:51AM by sairfan1.
Re: Marlin 2.0.x M42 command is not working
September 09, 2021 02:02PM
You need to enable the following in Configuration_adv.h

//
// M42 - Set pin states
//
//#define DIRECT_PIN_CONTROL
Re: Marlin 2.0.x M42 command is not working
September 09, 2021 02:27PM
Thanks, just looking for a quick tip, as I'm using RAMPS board how will I refer to a I/O pin

For example D8 on the board, can i refer in command like M42 P8
Sorry, only registered users may post in this forum.

Click here to login