<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Help needed for SLS printer</title>
        <description> Hi guys

I am building a SLS printer. I am using Ramps 1.4 and Marlin 1.1.0 RC5. I configured Marlin to work with my machines specifics.
For turning on and off the laser diode I planed to use the extruder 0 &#039;s direction pin, when the extruder would extrude the direction pin gives 5V when not it retract and gives 0V. It is working while printing the layers but when changing layer it doesn&#039;t want to work. I tried diferent things:
 With Slic3r I tried Retract when layer chang Tried adding costom gcode lines befor and after layer change  But nothing works. Last I found M42 command to turn on/off pins. For this to work I had to comment out a line in Marlin because it is a sensitive pin which shoudn&#039;t be turned on/off from gcode. Now from manual command I can turn this pin on/off with this M42 P28 S0/S255 line, but not from generated gcode.  Hope somebody can help me with this problem. Thanks guys</description>
        <link>https://reprap.org/forum/read.php?415,659110,659110#msg-659110</link>
        <lastBuildDate>Thu, 11 Jun 2026 09:28:45 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,660797#msg-660797</guid>
            <title>Re: Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,660797#msg-660797</link>
            <description><![CDATA[ Ok thanks for the help. I will try the fan connectors. Can you suggest a page with  good instructions on how to connect and program it? <br />
Thanks]]></description>
            <dc:creator>rada0620</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Fri, 06 May 2016 02:55:38 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,660625#msg-660625</guid>
            <title>Re: Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,660625#msg-660625</link>
            <description><![CDATA[ M42 is protected. You aren't allowed to modify certain pins with this command, if Marlin is using them. Specifically, the current version of Marlin will not allow you to use M42 with the following pins – See "pins.h" …<br />
<br />
<pre class="bbcode">
#define SENSITIVE_PINS { 0, 1, \
    X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
    Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
    Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
    PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, CONTROLLERFAN_PIN, \
    EXTRUDER_0_AUTO_FAN_PIN, EXTRUDER_1_AUTO_FAN_PIN, EXTRUDER_2_AUTO_FAN_PIN, EXTRUDER_3_AUTO_FAN_PIN, \
    _E0_PINS _E1_PINS _E2_PINS _E3_PINS \
    analogInputToDigitalPin(TEMP_BED_PIN) \
  }</pre>
<br />
This is checked in gcode_M42 with:<br />
<br />
<pre class="bbcode">
for (uint8_t i = 0; i &lt; COUNT(sensitive_pins); i++)
      if (pin_number == sensitive_pins<i>) return;
</i></pre>
<br />
It should probably be modified to print a message, but currently it will just return and fail silently.]]></description>
            <dc:creator>Thinkyhead</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Thu, 05 May 2016 13:11:54 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,660446#msg-660446</guid>
            <title>Re: Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,660446#msg-660446</link>
            <description><![CDATA[ I didn't planed to connect the laser directly to the direction pin, my idea is to connect it to a transistor's base leg. I upload the circuit I use. It works on printing but not on layer change the laser don't turn off. I find it strange a command works from manual command but not from gcode. Maybe there are some more lines in Marlin what I didn't find and it disables the M42 command. Please help me find a way to make it work.<br />
Thanks]]></description>
            <dc:creator>rada0620</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Thu, 05 May 2016 05:28:55 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,660367#msg-660367</guid>
            <title>Re: Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,660367#msg-660367</link>
            <description><![CDATA[ Extruder direction pin might not be the best choice. Do you want to be able to set variable power? Probably the laser should be connected to one of the pins usually reserved for fans. I don't know if PWM can work to tune a variable laser, but that would also be an option by using a fan pin.]]></description>
            <dc:creator>Thinkyhead</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Wed, 04 May 2016 22:52:50 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,659632#msg-659632</guid>
            <title>Re: Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,659632#msg-659632</link>
            <description><![CDATA[ As you say, I give the command to the pin but it don't turn off on layer change, it works on manual command but not from gcode. If you need more information I can give more details about the machine and my changes of Marlin.<br />
Thanks]]></description>
            <dc:creator>rada0620</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Tue, 03 May 2016 04:30:09 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,659450#msg-659450</guid>
            <title>Re: Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,659450#msg-659450</link>
            <description><![CDATA[ What is the problem with switching layers?  Is it leaving the laser turned on as it changes position?   And I presume, you want the laser off while it is changing layers???]]></description>
            <dc:creator>Roxy</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Mon, 02 May 2016 14:04:47 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,659110,659110#msg-659110</guid>
            <title>Help needed for SLS printer</title>
            <link>https://reprap.org/forum/read.php?415,659110,659110#msg-659110</link>
            <description><![CDATA[ Hi guys<br />
<br />
I am building a SLS printer. I am using Ramps 1.4 and Marlin 1.1.0 RC5. I configured Marlin to work with my machines specifics.<br />
For turning on and off the laser diode I planed to use the extruder 0 's direction pin, when the extruder would extrude the direction pin gives 5V when not it retract and gives 0V. It is working while printing the layers but when changing layer it doesn't want to work. I tried diferent things:<br />
<ul><li> With Slic3r I tried Retract when layer chang</li><li> Tried adding costom gcode lines befor and after layer change<br /> <br /> But nothing works.<br /> Last I found M42 command to turn on/off pins. For this to work I had to comment out a line in Marlin because it is a sensitive pin which shoudn't be turned on/off from gcode. Now from manual command I can turn this pin on/off with this M42 P28 S0/S255 line, but not from generated gcode.<br /> <br /> Hope somebody can help me with this problem.<br /> Thanks guys</li></ul>]]></description>
            <dc:creator>rada0620</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Sun, 01 May 2016 14:47:47 -0400</pubDate>
        </item>
    </channel>
</rss>
