Spindle control PWM output pin. etc.
Now I’m trying to provide spindle speed conrol PWM output to pin D6 according to this code: M03 S125?
I did not found any line in the TOOLS menu, which allow me to set spindle PWM to this pin.
I also tried to find this PWM output Pin in the sketches texts, but without success.
Please inform how to do spindle PWM output to D6 pin?
2) How to provide
emergency E-stop button in the RAMPS 1.4 board? What line of Repetier Firmware
configurator allow to assign pin for this button? If for example, CNC works in
offline mode and cutter/engraver broke. I push E-stop. Is it possible to
remember tool position before E-stop pushing and come several lines back? Maybe under Repetier Host only?
3) Please inform how to connect and use Z-probe with RAMPS 1.4? Does it work in manual table height sensing mode or auto leveling also? I need some manual for Z-probe use.
Comments
As you see you can do this in a custom routine EVENT_SPINDLE_CCW that return false. Then you can do it. Problem is that most timers are in use for controlling motors/temperatures/servos/beeper/software pwm. So you need to use timer 4 or 5 on the arduino with a matching pin as output. If pwm frequency does not matter you can use analogWrite to set it.
2) Best is to use reset pin for immediate stop. There is no function to remember position for offline prints so that would not help anyway if you use the internal function. There is a kill action you can put on a key that you configure if you want software solution but it is always slower and no real gain to reset button.
3) Not sure what you want here. Just connect to a end stop pin and configure firmware with that pin.
You can use it for autoleveling if you have no z min endstop (so z min endstop and z probe pin are identical) or if you home to z max instead.
With G30 you can also use it to probe material height and make that Z=0 - see G30 description in repetier.ino:
Do you have such actions? Maybe online work under Repeater Host is able to do it or even come several lines back in the program?
In ui.h you see all the actions you can put on buttons.
Is what you want. You can assign it a custom key connected. A paused print can be continued. There is also a park position that is assumed when you hit pause. Make sure to raise Z before moving. For FDM not required but if you are cutting it would be bad.