Custom Macro For Tuning a Heater
-
I wrote this macro for my menu display, just wondering if after calling
M307
should the macro not be interrupted by the tuning itself? The DWC says it's tuning but the macro continues down to the end. Do I need some conditional code to halt the macro while the tune is running?Thanks!
;---------------------------------------------------------------------------- ;------------------------Tune Bed Heater------------------------------------- ;---------------------------------------------------------------------------- ; when M986 is called do: M400 ; allow buffer to finish for lighting M150 U255 R55 ; Set caution light ;tone for operator M300 S550 P200 G4 P200 M300 S800 P200 G4 P200 M300 S1100 P200 M291 S3 P"Proceed?" R"BED HEATER TUNE" M400 M150 U255 B65 ; set light purple for heating up M303 H0 S75 ; run tune for bed ;tune finished sound tone for operator M300 S550 P200 G4 P200 M300 S800 P200 G4 P200 M300 S1100 P200 M400 ; allow buffer to finish for lighting M150 U255 R55 ; Set caution light M291 S3 P"Save Settings?" R"TUNE COMPLETE" M400 ; allow buffer to finish for lighting M150 R255 ; Set caution light M500 ;tone for operator M300 S550 P200 G4 P200 M300 S800 P200 G4 P200 M300 S1100 P200
-
The heater tuning doesn't really work inside of a macro because it's on it's own process as far as I understand. So it's not going to behave in the same predictable manner.
The tuning process shouldn't be left unattended if at all possible anyway. I can understand the desire to wrap it in some niceties, but running the tuning command, watching for errors, and then evaluating the results and saving with M500 isn't too tedious, is it?
-
@phaedrux haha. wise guy! Its not that I need to leave them unattended while tuning or that it is hard the way it is. We have a warehouse with racks full of printers... Everyday we are repairing 5 or more printers and when there are quite a few on the bench being serviced, it would be nice to have a tone to know when the tune is done so it can go back on the rack and get making us money! Id like to think paying an employee to needlessly stare at a screen waiting 20 minutes for the tune to complete is just not necessary. Also to access the results from the 12864 screen to press ok which sends M500 rather than trying to remember what window that printer was on with the desktop would be helpful. Heaven forbid you start sending commands to the wrong printer and wreck a print!