Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.51k stars 5.32k forks source link

PSU Control on Duet Wifi 2 #3843

Closed fuma55 closed 3 years ago

fuma55 commented 3 years ago

Hello,

i read you can control PSU with M80 M81 Commands with the following configuration.

[output_pin power] pin: !ar12 value: 0 shutdown_value: 0

How do i know the pin number of my duet wifi 2 psu control ?

Edit: I found out pin is called !PD15. Using the command "SET_PIN pin=power value = 0" and "SET_PIN pin=power value = 1" is working. But not from PSU Octoprint Plugin as https://github.com/KevinOConnor/klipper/issues/1597 described it

klipper-gitissuebot commented 3 years ago

Hi @fuma55,

It did not look like there was a Klipper log file attached to this ticket. The log file has been engineered to answer common questions the Klipper developers have about the software and its environment (software version, hardware type, configuration, event timing, and hundreds of other questions).

Unfortunately, too many people have opened tickets without providing the log. That consumes developer time; time that would be better spent enhancing the software. If this ticket references an event that has occurred while running the software then the Klipper log must be attached to this ticket. Otherwise, this ticket will be automatically closed in a few days.

For information on obtaining the Klipper log file see: https://github.com/KevinOConnor/klipper/blob/master/docs/Contact.md

The log can still be attached to this ticket - just add a comment and attach the log to that comment.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

kaktus770 commented 3 years ago

In my config it's worked:

[output_pin psupower] pin: PD15

power on

[gcode_macro M80] gcode: SET_PIN PIN=psupower VALUE=1

power off

[gcode_macro M81] gcode: SET_PIN PIN=psupower VALUE=0

Duet pins here: https://github.com/KevinOConnor/klipper/blob/master/config/generic-duet2-duex.cfg

klipper-gitissuebot commented 3 years ago

It appears the Klipper log file was not provided. I'm closing this now, sorry. Feel free to attach the log to this ticket sometime in the future, or create a new issue once you can provide the log file.