Hello,
I need help with syntax. I have duet 2 board with RRF.
I have a button that calls trigger2.g
So far this is ok.
I have a filament runout sensor switch connected to zstop.
Depending on the state of the sensor I either want to start filament loading or filament unloading.
So if it is triggered unload the filament, if not triggered start loading the filament. The sensor is right at the extruder so it is a good indication of which gcode to start upon button press.
How is my if statement will look like?
if sensors.???.triggered
;unload gcode
else
;load gcode
endif
Thank you