prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.6k stars 1.91k forks source link

Fan Header Selector? #1416

Open HikariNoKitsune opened 5 years ago

HikariNoKitsune commented 5 years ago

Version

1.41.1-rc

Operating system type + version

Win10 64bit

Behavior

No ability to control WHICH fans are used...

Is this a new feature request? Basically, unless there is another way to do this within Silc3r that I'm unaware about after 2+ hours of online searching.

Basically, I have a Duet WiFi... My default fan header for a cooling fan just isn't working anymore. It can't output enough power to turn on a fan... it'll output 12v, but it just doesn't have the current it seems to do anything.

SO I switched to the next controllable fan header which works just fine.

Problem is, I can't get Slic3r to USE this fan header! It needs to be changed so that I can actually USE my part cooler, otherwise its useless... And I don't feel like coughing up 150+ to some company who thinks its slicer is so god like that it poops gold. . .

Anyone know of how this can be accomplished? Or is it something that has to be coded into the slicer? I know I can just go into the GCODE and manually change the fan.. but why on earth take the time to go through thousands of lines of code, hunting for a single line countless times, and changing it to the correct fan header? That would take more time than I'd care to like...

StephenRC commented 5 years ago

You can set any fan to act as fan1 with a gcode. https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_fans

On Mon, 19 Nov 2018 18:32:51 +0000 (UTC), HikariNoKitsune notifications@github.com had a flock of green cheek conures squawk out:

Version

1.41.1-rc

Operating system type + version

Win10 64bit

Behavior

No ability to control WHICH fans are used...

Is this a new feature request? Basically, unless there is another way to do this within Silc3r that I'm unaware about after 2+ hours of online searching.

Basically, I have a Duet WiFi... My default fan header for a cooling fan just isn't working anymore. It can't output enough power to turn on a fan... it'll output 12v, but it just doesn't have the current it seems to do anything.

SO I switched to the next controllable fan header which works just fine.

Problem is, I can't get Slic3r to USE this fan header! It needs to be changed so that I can actually USE my part cooler, otherwise its useless... And I don't feel like coughing up 150+ to some company who thinks its slicer is so god like that it poops gold. . .

Anyone know of how this can be accomplished? Or is it something that has to be coded into the slicer? I know I can just go into the GCODE and manually change the fan.. but why on earth take the time to go through thousands of lines of code, hunting for a single line countless times, and changing it to the correct fan header? That would take more time than I'd care to like...

--

Stephen

CONGRESS.SYS Corrupted: Re-boot Washington D.C. (Y/N)


This email has been checked for viruses by AVG. https://www.avg.com

HikariNoKitsune commented 5 years ago

You can set any fan to act as fan1 with a gcode. https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_fans On Mon, 19 Nov 2018 18:32:51 +0000 (UTC), HikariNoKitsune notifications@github.com had a flock of green cheek conures squawk out:

Version 1.41.1-rc ### Operating system type + version Win10 64bit ### Behavior No ability to control WHICH fans are used... Is this a new feature request? Basically, unless there is another way to do this within Silc3r that I'm unaware about after 2+ hours of online searching. Basically, I have a Duet WiFi... My default fan header for a cooling fan just isn't working anymore. It can't output enough power to turn on a fan... it'll output 12v, but it just doesn't have the current it seems to do anything. SO I switched to the next controllable fan header which works just fine. Problem is, I can't get Slic3r to USE this fan header! It needs to be changed so that I can actually USE my part cooler, otherwise its useless... And I don't feel like coughing up 150+ to some company who thinks its slicer is so god like that it poops gold. . . Anyone know of how this can be accomplished? Or is it something that has to be coded into the slicer? I know I can just go into the GCODE and manually change the fan.. but why on earth take the time to go through thousands of lines of code, hunting for a single line countless times, and changing it to the correct fan header? That would take more time than I'd care to like...

-- Stephen CONGRESS.SYS Corrupted: Re-boot Washington D.C. (Y/N) --- This email has been checked for viruses by AVG. https://www.avg.com

Yes I know. This is how the firmware is currently set up.

The issue is, Prusa Slic3r does not allow you to SPECIFY which fan to use. It defaults to FAN0, as the wiki states. Simply changing the firmware to use FAN1 or FAN2 does not do 'anything' if the slicer in question does not allow you to specify which fan to use. As such, even though the board knows that there is a fan on say, FAN2, it will not use that fan as the default fan because in gcode, the slicer is calling on FAN0.

With Simplify3D you can specifically tell it "hey, my cooler fan is on FAN2, so use FAN2 when referencing a cooling fan"...

supermerill commented 5 years ago

In the meantime, you can replace "M106 (S[0-9]+)" by "M106 P1 $1" and "M107" by "M107 P1"

You write that in a script file. Then, you add it in printSettings ->output options -> Post-processing scripts (see https://manual.slic3r.org/advanced/post-processing, don't use perl, use python or your os batch)

HikariNoKitsune commented 5 years ago

That's something I didn't know Slic3r could do, run a script. Or were you referring to just creating any ol script and running it afterwards?

supermerill commented 5 years ago

That's something I didn't know Slic3r could do, run a script

yes, you can create a script and slic3r run it (with the gcode filepath put at the end of the "command line") after exporting the gcode file.

bubnikv commented 5 years ago

I like the idea of Simplify3D to do the basic script post processing using the REPLACE, PREPEND, APPEND, DELETE ... commands, which covers most of your needs.

https://forum.simplify3d.com/viewtopic.php?t=1959

Or should we just embed the unix sed tool?