mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-29 10:20:55 +00:00
Add NanoDLP Z movement synchronization option
Implemented synchronization message output for NanoDLP printers (nanodlp.com). If optional feature is enabled in `Configuration_adv.h`, Marlin will ouput "Z_move_comp" string to serial after completing any G0/G1 Z-axis movements. This feature patched on previous versions(1.0) is used by NanoDLP to synchronize Z-axis movement with projector exposure in DLP stereolithography printers.
This commit is contained in:
parent
5c087727a9
commit
f8e30f49d7
32 changed files with 279 additions and 0 deletions
Marlin
|
@ -3430,6 +3430,14 @@ inline void gcode_G0_G1(
|
|||
#else
|
||||
prepare_move_to_destination();
|
||||
#endif
|
||||
|
||||
#if ENABLED(NANODLP_Z_SYNC)
|
||||
// If G0/G1 command include Z-axis, wait for move and output sync text.
|
||||
if (parser.seenval('Z')) {
|
||||
stepper.synchronize();
|
||||
SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue