Welcome! Log In Create A New Profile


If statement for macro trigger in RRF

Posted by daninet 
If statement for macro trigger in RRF
November 16, 2023 01:34PM
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
;load gcode

Thank you
Re: If statement for macro trigger in RRF
November 18, 2023 02:01AM
I see that your similar question at [forum.duet3d.com] has been answered.

Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login