Running macros in response to conditions?
-
Thanks, David. In the arrangement I have now, the only movement command in config.g is G28. The others are all in the macros.
Understood on heating the bed first - I generally do G32 again after getting the bed and nozzle to temperature. The first G32 is only intended to make sure I at least do one before printing even if it is approximate - without it I used to forget and ended up carving notches in the print surface!
Richard
-
If you really want to run your trigger followed by G28 you could set up trigger 3 to do the G28, using a spare endstop input that is always high (e.g. on the expansion connector or on CONN_LCD). The triggers will be run in trigger number order.
As you only want to run each trigger macro once, for safety I suggest you end each macro with a M581 command to disable the trigger.
-
I'm missing something, David, I'm sorry but I don't understand.
At the moment I only run a blocking message and a G28 (last line) in the config.g. This is on a large delta and it homes to max Z. Do you recommend not putting the G28 in the config.g?
The hold message reminds me to run the delta_start macro that will call the trigger function. After reading your note above I will move the M581 command from the config.g to this macro so that it is only called when I run that macro. I will also use the S-1 notation to disable it afterwards.
Thanks for your help.
Richard
-
I was suggesting a way in which you can make your macro run automatically and defer the G28 until after the macro has run.
-
Oh, OK, thanks for clarifying.
I'm very happy with where this ended up - when the printer starts up it displays a message telling me to run the Delta_Start macro.
This sets the trigger (M581), checks which Smart Effector is installed, then homes the printer, runs delta config and then disables the trigger condition.
It works great and I won't get caught out with the Volcano installed and think I have the shorter v6!
Thanks for your help.
Richard