Skip to content

[1.1.x] Added optional NanoDLP Z movement synchronization #8337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
8 changes: 8 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/Anet/A6/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/Anet/A8/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1499,4 +1499,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/Cartesio/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1505,4 +1505,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/Felix/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/Malyan/M150/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1499,4 +1499,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1506,4 +1506,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/RigidBot/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/SCARA/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1469,4 +1469,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
9 changes: 9 additions & 0 deletions Marlin/example_configurations/TinyBoy2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1510,4 +1510,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1502,4 +1502,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1504,4 +1504,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1504,4 +1504,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1504,4 +1504,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1504,4 +1504,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1509,4 +1509,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1504,4 +1504,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Original file line number Diff line number Diff line change
Expand Up @@ -1503,4 +1503,13 @@
// tweaks made to the configuration are affecting the printer in real-time.
#endif

/**
* NanoDLP Sync support
*
* Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
* string to enable synchronization with DLP projector exposure. This change will allow to use
* [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
*/
//#define NANODLP_Z_SYNC

#endif // CONFIGURATION_ADV_H
Loading