-// Z motor mounts
-translate([-board_w/2-5,0,42])
-rotate(-90)
-zmotorholder();
-
-translate([board_w/2+5,0,42])
-rotate(-90)
-mirror([0,1,0])
-zmotorholder();
-
-// Z rod mounts
-translate([-board_w/2-5,0,260])
-rotate(-90)
-zrodholder();
-
-translate([board_w/2+5,0,260])
-rotate(-90)
-mirror([0,1,0])
-zrodholder();
+if (frame_type == frame_alu) {
+ // Z motor mounts
+ translate([-board_w/2-5,0,55 - 6])
+ rotate(-90)
+ zmotorholder (thickness=55, bottom_thickness=6);
+
+ translate([board_w/2+5,0,55 - 6])
+ rotate(-90)
+ mirror([0,1,0])
+ zmotorholder(thickness=55, bottom_thickness=6);
+
+ // Z rod mounts
+ // 6 = bottom_thickness
+ translate([-board_w/2-5,0,board_h - 6/2])
+ rotate(-90)
+ zrodholder(thickness=board_thickness * 2 + 5, ylen = board_thickness * 2 + 10, bottom_x=43 + zaxis_delta_x, bottom_thickness=6);
+
+ translate([board_w/2+5,0,board_h - 6/2])
+ rotate(-90)
+ mirror([0,1,0])
+ zrodholder(thickness=board_thickness * 2 + 5, ylen = board_thickness * 2 + 10, bottom_x=43 + zaxis_delta_x, bottom_thickness=6);
+} else {
+ // Z motor mounts
+ translate([-board_w/2-5,0,42])
+ rotate(-90)
+ zmotorholder ()
+
+ translate([board_w/2+5,0,42])
+ rotate(-90)
+ mirror([0,1,0])
+ zmotorholder();
+
+ // Z rod mounts
+ translate([-board_w/2-5,0,260])
+ rotate(-90)
+ zrodholder();
+
+ translate([board_w/2+5,0,260])
+ rotate(-90)
+ mirror([0,1,0])
+ zrodholder();
+}