Hi Tony,
Thanks for your reply. I was thinking on similar lines but incremental ie in the slicer set start g code to run M180
Then the Duet runs M180 which turns on the output, runs a while loop waiting for an input to change ie Heaters change voltage of an input on the duet board or powers one of the opto isolated inputs once they are up to temperature. Then the while loop is broken and can continue, Assume
T0 M568 S200
T1 M568 S220
T2 M568 S240
T3 M568 S250
This of coarse is simplified, there would be a few safety interlocks and checks.
In your example M1040, M568, M1060 run in parallel? The question would be bringing on outputs and checking inputs. I still having issues with both. I seem to have had success declaring outputs and inputs in the config.g file but only had success turning on the heater outputs from a macro. No luck turning on GPIO outputs or checking GPIO inputs. Any ideas or examples?
Thanks Mark