* M0 - Unconditional stop - Wait for user to press a button on the LCD (Only if ULTRA_LCD is enabled)
* M1 - Same as M0
* M3 - Put S<value> in laser beam control
...
...
@@ -160,7 +167,7 @@
* M205 - advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk
* M206 - Set additional homing offset
* M207 - Set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
* M208 - Set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/sec]
* M208 - Set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
* M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
* M218 - Set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y>
* M220 - Set speed factor override percentage: S<factor in percent>
// Initializes the trapezoid generator from the current block. Called whenever a new
// block begins.
FORCE_INLINEvoidtrapezoid_generator_reset(){
// Set directions TO DO This should be done once during init of trapezoid. Endstops -> interrupt
if(current_block->direction_bits!=out_bits){
out_bits=current_block->direction_bits;
set_stepper_direction();
}
#ifdef ADVANCE
advance=current_block->initial_advance;
...
...
@@ -557,8 +559,7 @@ ISR(TIMER1_COMPA_vect) {
#ifdef COREXY
}
#endif
if(TEST(out_bits,Z_AXIS)){// -direction
if(TEST(out_bits,Z_AXIS)){// z -direction
#if HAS_Z_MIN
#ifdef Z_DUAL_ENDSTOPS
...
...
@@ -601,8 +602,7 @@ ISR(TIMER1_COMPA_vect) {
old_z_probe_endstop=z_probe_endstop;
#endif
}
else{// +direction
else{// z +direction
#if HAS_Z_MAX
#ifdef Z_DUAL_ENDSTOPS
...
...
@@ -992,12 +992,12 @@ void st_init() {
#endif
#endif
#if (defined(Z_PROBE_PIN) && Z_PROBE_PIN >= 0) && defined(Z_PROBE_ENDSTOP) // Check for Z_PROBE_ENDSTOP so we don't pull a pin high unless it's to be used.
#if (defined(Z_PROBE_PIN) && Z_PROBE_PIN >= 0) && defined(Z_PROBE_ENDSTOP) // Check for Z_PROBE_ENDSTOP so we don't pull a pin high unless it's to be used.