Trigger gcode execution question
-
Hi!
I am trying to set up a sensor, which will indicate the level of pellet material in the extruder, in the case when no material is detected, it will trigger a trigger, and perform the action of loading pellets, by setting a valve ON for a certain amount of time. My question is, does pause gcode (G4 command) return the attention to the printed file, while executed in a trigger.g? Ideally, I would want something like this:
set_valve_on(); // freeze this thread for 30 seconds G4 S30 set_valve_off()
Best regards,
AW -
-
@awitc yes the printing file will continue to execute in parallel with the trigger macro. However, no new triggers except emergency stop will be activated until that trigger macro has completed, because a single GCode channel handles all triggers.