how to use heater pins as general i/o
-
I would like to use heaters E5 and E6 on the Duex5 board as signal pins to control SSR's. Is there a writeup available anywhere that would show me how to configure the heaters for general i/o and what gcodes I need to send to turn E5/E6 on or off ?
-
@jens55 Yes there is a guide:
https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins#Section_Logical_pin_numbersIf you are running RRF 2 you need to unmap the heaters using M307 and then you can use M42 to control them
-
Thank you Tony, I had seen the document you referred to but it seemed a bit cryptic and I was hoping there was some additional 'how to' for mere mortals available. I will try to work through things and see how far I get.
Thanks! -
One more quick question:
In the documentation for M42 there are parameters for P,S and F but the example code given is :M42 P3 I1 S0.5 F500 ; set Heater 3 pin to 50% PWM at 500Hz
There seems to be no mention of the I parameter. Is that documented somewhere else ?
-
In the documentation for M42 there are parameters for P,S and F…
The “I“ parameter is in the course of being dropped during the ongoing transition to RRF3. - From the documentation:
In RRF_3, the F and I parameters are no longer supported in M42. Instead, use the F and I parameters in M950 when you create the GPIO port.
-
@infiniteloop, I noticed that RRF_3 example but there is no documentation om I under M950 either.
What does it stand for and what are it's possible values ? -
@jens55 the “I“ parameter stands (stood?) for inversion. In RRF_3, they use an exclamation mark preceding the pin’s name - in the description of M950, it’s a bit hidden in the last example.
-
@infiniteloop, thanks!