<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MKS gen2Z v1.1 Marlin configuration</title>
        <description> Folks,
My vendor sold me an MKS gen2z v1.1 sincerely thinking it would be a better choice than a Ramps 1.4 and it is in many ways except I am now stuck with dual z axis which I don&#039;t need. Of the little information available, I gather that the second Z output is hardwired to the first but I just don&#039;t have a reliable copy of the Marlin.ino for that board to see how the pre-installed firmware is configured for it.

Can anyone provide a copy of the Marlin.ino that would come pre-loaded on that board?  I asume it would be for the Prusa I3 as that seems to be the common machine using that board. Alternately, if you know of a way to reconfigure pins.h or configuration.h to re-assign or even swap the Z axis for another, I would be happy to do that. For example, if I could just swap the dual Z axis for dual Y axis that would be awesome.

Thanks</description>
        <link>https://reprap.org/forum/read.php?219,624126,624126#msg-624126</link>
        <lastBuildDate>Tue, 21 Jul 2026 09:55:08 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?219,624126,896832#msg-896832</guid>
            <title>Re: MKS gen2Z v1.1 Marlin configuration SOLUTION</title>
            <link>https://reprap.org/forum/read.php?219,624126,896832#msg-896832</link>
            <description><![CDATA[ Hello I have a solution! The Author of this post is probably not looking for the solution anymore but who ever is reading this most likely still is.<br />
<br />
The MKS 2Z boards are named "2Z" because the Z1 and Z2 are hardwired to the same Z stepper signal. So basically where other RAMPS boards would have had a E1 axis is just a second pinout to the same exact signal as on the Z1.<br />
<br />
The solution to changing to a dual Y-axis you ask? I found two:<br />
<br />
<b>Solution 1 (both Y-axis will have the same signal)</b><br />
In the pins_RAMPS.h file of marlin change the variable names (or pins) between Z and Y. This will then change your mirrored Z1 and Z2 port into Y1 and Y2 and the Y port will be your new Z<br />
<br />
#define Z_STEP_PIN         60<br />
#define Z_DIR_PIN          61<br />
#define Z_ENABLE_PIN       56<br />
#define Z_CS_PIN           49<br />
<br />
#define Y_STEP_PIN         46<br />
#define Y_DIR_PIN          48<br />
#define Y_ENABLE_PIN       62<br />
#define Y_CS_PIN           40<br />
<br />
<b>Solution 2 (this will let you control the Y axis individually and put Y2 on the extruder port)</b><br />
Change the pins for E1 to E0 and vice versa. As the 2Z boards only has 4 individual stepper outputs this will remove the possibility to have an extruder but for a CNC you don't need one.<br />
Your E0 port will now be Y2 after commenting and uncommenting the corresponding lines in the configuration_adv.h file<br />
<br />
<b>pins_RAMPS.h code to change to:</b><br />
<br />
#define E1_STEP_PIN        26<br />
#define E1_DIR_PIN         28 <br />
#define E1_ENABLE_PIN      24<br />
#define E1_CS_PIN          42<br />
<br />
#define E0_STEP_PIN        36<br />
#define E0_DIR_PIN         34<br />
#define E0_ENABLE_PIN      30<br />
#define E0_CS_PIN          44<br />
<br />
<b>configuration_adv.h code to change to:</b><br />
<br />
#define Y_DUAL_STEPPER_DRIVERS<br />
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)<br />
  // Set true if the two Y motors need to rotate in opposite directions<br />
  #define INVERT_Y2_VS_Y_DIR true<br />
#endif<br />
<br />
<br />
<br />
As I'm old school and of no interest in any other garbage like sensors and or end stops I made a modified version of marlin 1.1.6 with all of the 3D printer settings removed from the UI and only a move axis, set 0,0,0 and start machining operation from SD card.<br />
<br />
well... it does have some tuning features like speed acc jerk and steps per mm still but those come in handy.]]></description>
            <dc:creator>maxr</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Thu, 22 May 2025 11:11:22 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,624126,742070#msg-742070</guid>
            <title>Re: MKS gen2Z v1.1 Marlin configuration</title>
            <link>https://reprap.org/forum/read.php?219,624126,742070#msg-742070</link>
            <description><![CDATA[ Folks,<br />
Update to this .... I did manage to configure Marlin to use the MKS board the way I needed and it continues to serve well. Now I am using the MKS gen V1.4 and all issues are resolved. Its a great board and I would recommend it for 3D or light CNC.]]></description>
            <dc:creator>MikeP</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Wed, 25 Jan 2017 09:38:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,624126,742010#msg-742010</guid>
            <title>Re: MKS gen2Z v1.1 Marlin configuration</title>
            <link>https://reprap.org/forum/read.php?219,624126,742010#msg-742010</link>
            <description><![CDATA[ This is basically a single board version of arduino+ramps 1.4  so can be programmed with marlin or repetier firmware via usb using the arduino software.]]></description>
            <dc:creator>obewan</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Wed, 25 Jan 2017 06:30:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,624126,741934#msg-741934</guid>
            <title>Re: MKS gen2Z v1.1 Marlin configuration</title>
            <link>https://reprap.org/forum/read.php?219,624126,741934#msg-741934</link>
            <description><![CDATA[ I have the same board as well and am having a tough time finding firmware and how to flash it. Is it flashable through usb or does it have to be ISP header and serial? I want to add a proximity sensor for leveling but have no idea on the firmware version on this board.  Did you find anymore info or do you have any info that could help me? Any help would be greatly appreciated. <br />
<br />
Thanks]]></description>
            <dc:creator>zr580</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Wed, 25 Jan 2017 00:50:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,624126,624126#msg-624126</guid>
            <title>MKS gen2Z v1.1 Marlin configuration</title>
            <link>https://reprap.org/forum/read.php?219,624126,624126#msg-624126</link>
            <description><![CDATA[ Folks,<br />
My vendor sold me an MKS gen2z v1.1 sincerely thinking it would be a better choice than a Ramps 1.4 and it is in many ways except I am now stuck with dual z axis which I don't need. Of the little information available, I gather that the second Z output is hardwired to the first but I just don't have a reliable copy of the Marlin.ino for that board to see how the pre-installed firmware is configured for it.<br />
<br />
Can anyone provide a copy of the Marlin.ino that would come pre-loaded on that board?  I asume it would be for the Prusa I3 as that seems to be the common machine using that board. Alternately, if you know of a way to reconfigure pins.h or configuration.h to re-assign or even swap the Z axis for another, I would be happy to do that. For example, if I could just swap the dual Z axis for dual Y axis that would be awesome.<br />
<br />
Thanks]]></description>
            <dc:creator>MikeP</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Tue, 09 Feb 2016 21:09:28 -0500</pubDate>
        </item>
    </channel>
</rss>
