HI RAyWB
Thank you for your quick response and help and excuse my bad English!
I do not understand the examples, sorry.
I have started like this:
CustomEvents.h:
#define blower_fan
CustomEventsImpl.h:
#define blower_fan FAN2_PIN // blower fan on/off mit fan2_pin
but how do I define the command like M336?
//#########################################################################################
//#### MCode addition/replacement
//#########################################################################################
bool Custom_MCode(GCode *com)
{
switch(com->M) {
//XXXX is the number you want to generate
case 336:
// break;
default:
return false;
}
return true;
}
#endif
kind regards
goair