I have a Duet 3 that I'm trying to configure as a cnc router. I have io3.out going to a relay to turn the router on and off. I also have io6.out to control a rc servo that turns the speed potentiometer of the router.
What would be the best way to configure this setup?
So far the code below works for the relay, but I can't figure out how to make the servo move. I've tried M280 P1 S0, M280 P1 S90, and M280 P1 S180 but no movement.
M950 P0 C"io3.out" ;Assign P0 to control enable relay using "io3.out"
M950 R0 C"io6.out" L10000 Q50 ;Create spindle index 0, with PWM pin on io3 and 10000 RPM achieved at full PWM with a 50Hz PWM
M563 P1 S"Spindle 1" R0 ; Create tool 1 with spindle 0 and call it "Spindle 1"