M571 does not recognize my logical pin number
-
I am driving a relay via a mosfet triggered on logical pin P1 which I setup using:
M950 P1 C"exp.9" ; create GPIO pin 1 on pin 9 of expansion connector
M42 P1 S0 ; set GPIO port 1 to LowI intend on using the M571 command to open a solenoid valve during extrude moves
An M42 P1 S1 activates the solenoid, but for some reason If I enter a command:
M571 P1 S1 I get an error stating "M571 P1 S1 Missing port name string".Running RRF3 on a Duet2 Wifi Rev 1.04c.
Does anyone have any experience with this?
Thanks. -
I'm sorry, I forgot to document the change to M571. It now takes a port name, not a port number. So you don't need to create a GPIO port for it using M950, just specify the port name for it in the M571 command. The parameter for it is either P or C. I will update the documentation tomorrow.
-
Thank you for getting back to me so quickly! I'll give it a try.
-
Will I be able to use the M571 to drive a fan output (F2), or only GPIO pins? I am driving a solenoid during extrude commands.
Currently I am using external circuitry (mosfet) activated by GPIO, so activating a fan output directly to drive the solenoid would save some circuitry. -
@Scrabart said in M571 does not recognize my logical pin number:
Will I be able to use the M571 to drive a fan output (F2), or only GPIO pins? I am driving a solenoid during extrude commands.
You can use any output pin: heater, fan, or GPIO. The syntax is:
M571 P"pin-name" Snn
where nn is the required PWM value as before.
-
Thank you for getting this to me.
On a related note, my application uses my two duet extruders for other axes.
I don't actually need an extruder per se. However I do need to use the M571 to open and close a valve.
Do I need to attach a Duex5 so that I can define an extruder to reference? I currently do not have one attached, but I have one available.
I tried defining all 9 drives in my config.g [...M569 P5 S1], Mapping it to drive 5 [M584 E5] as well as setting up a Tools that use the extruder, but I get a tool definition error if I try to use an extruder other than D0 or D1 in my M563 command. [M563 P0 D2 S"Color 1" F0 ].