Support for BariCUDA Paste Extruder derived from MakerBot Frostruder. Using Ultimachine RAMBo board. M126/M127 and M128/M129.
This commit is contained in:
committed by
Erik van der Zalm
parent
90664d20a4
commit
fbd899a37d
@@ -101,6 +101,10 @@
|
||||
// M115 - Capabilities string
|
||||
// M117 - display message
|
||||
// M119 - Output Endstop status to serial port
|
||||
// M126 - Solenoid Air Valve Open (BariCUDA support by jmil)
|
||||
// M127 - Solenoid Air Valve Closed (BariCUDA vent to atmospheric pressure by jmil)
|
||||
// M128 - EtoP Open (BariCUDA EtoP = electricity to air pressure transducer by jmil)
|
||||
// M129 - EtoP Closed (BariCUDA EtoP = electricity to air pressure transducer by jmil)
|
||||
// M140 - Set bed target temp
|
||||
// M190 - Wait for bed current temp to reach target temp.
|
||||
// M200 - Set filament diameter
|
||||
@@ -168,6 +172,8 @@ float extruder_offset[2][EXTRUDERS] = {
|
||||
#endif
|
||||
uint8_t active_extruder = 0;
|
||||
int fanSpeed=0;
|
||||
int ValvePressure=0;
|
||||
int EtoPPressure=0;
|
||||
|
||||
#ifdef FWRETRACT
|
||||
bool autoretract_enabled=true;
|
||||
@@ -1169,6 +1175,37 @@ void process_commands()
|
||||
break;
|
||||
#endif //FAN_PIN
|
||||
|
||||
// PWM for HEATER_1_PIN
|
||||
#if HEATER_1_PIN > -1
|
||||
case 126: //M126 valve open
|
||||
if (code_seen('S')){
|
||||
ValvePressure=constrain(code_value(),0,255);
|
||||
}
|
||||
else {
|
||||
ValvePressure=255;
|
||||
}
|
||||
break;
|
||||
case 127: //M127 valve closed
|
||||
ValvePressure = 0;
|
||||
break;
|
||||
#endif //HEATER_1_PIN
|
||||
|
||||
// PWM for HEATER_2_PIN
|
||||
#if HEATER_2_PIN > -1
|
||||
case 128: //M128 valve open
|
||||
if (code_seen('S')){
|
||||
EtoPPressure=constrain(code_value(),0,255);
|
||||
}
|
||||
else {
|
||||
EtoPPressure=255;
|
||||
}
|
||||
break;
|
||||
case 129: //M129 valve closed
|
||||
EtoPPressure = 0;
|
||||
break;
|
||||
#endif //HEATER_2_PIN
|
||||
|
||||
|
||||
#if (PS_ON_PIN > -1)
|
||||
case 80: // M80 - ATX Power On
|
||||
SET_OUTPUT(PS_ON_PIN); //GND
|
||||
|
Reference in New Issue
Block a user