My self designed awesome 3D printer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linear_bearing.scad 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. include <bearing_idler.scad>
  2. include <e3d_v6_all_metall_hotend.scad>
  3. // #######################################################
  4. // ################### Linear Bearings ###################
  5. // #######################################################
  6. lm8uu_outer = 15;
  7. lm8uu_inner = 8;
  8. lm8uu_height = 24;
  9. x_rail_dist = 70;
  10. lm8uu_dia_add = 0.5;
  11. lm8uu_len_add = 1.0;
  12. rail_dia_add = 3.0;
  13. y_carriage_wall = 10; // z-axis
  14. y_carriage_len_add = 15; // y-axis
  15. y_carriage_width = 25; // x-axis
  16. y_carriage_block_width = 10; // x-axis
  17. y_carriage_block_height = 10; // z-axis
  18. y_carriage_rail_support = 2; // dist between rail and edge
  19. y_carriage_length = x_rail_dist + (2 * y_carriage_len_add);
  20. rail_mount_dia_add = 0.4;
  21. x_rail_mount_width = 10;
  22. x_rail_cutout_z = 0.5; // in x-axis
  23. x_rail_cutout_x = 0.5; // in z-axis
  24. x_rail_cutout_y = x_rail_dist - (2 * y_carriage_len_add);
  25. x_rail_hole_off = 5;
  26. x_rail_block_len = (y_carriage_length - x_rail_cutout_y) / 2;
  27. x_carriage_width = 80;
  28. x_carriage_len_add = 10;
  29. x_carriage_wall = 10;
  30. x_carriage_bearing_off = 3;
  31. x_carriage_belt_off = 19;
  32. x_carriage_belt_block_width = 8;
  33. x_carriage_belt_block_length = 8;
  34. x_carriage_belt_block_height = 25;
  35. x_carriage_belt_block_height_b = x_carriage_belt_block_height - 7;
  36. x_carriage_block_hole_off = 6.0;
  37. x_carriage_block_length = 4;
  38. x_carriage_block_off = 2.5;
  39. x_carriage_block_add = 4.4;
  40. x_carriage_length = x_rail_dist + (2 * x_carriage_len_add);
  41. x_carriage_block_height = 2 * (x_carriage_block_hole_off + x_carriage_block_add);
  42. x_cutout_width = x_carriage_width - (2 * x_carriage_belt_block_width) - 5;
  43. x_cutout_length = x_rail_dist - 25;
  44. // y-carriage belt idlers
  45. idler_a_blue = [ 19, 15, 5.5];
  46. idler_a_red = [ 19, x_rail_dist + 15, 12.5];
  47. idler_b_blue = [30.3, x_rail_dist + 15, 12.5];
  48. idler_b_red = [30.3, 15, 5.5];
  49. e3d_v6_dist_x = 23 + 5;
  50. e3d_v6_dist_y = 18 + 1;
  51. e3d_v6_z_off = 13;
  52. e3d_clamp_width = x_cutout_width;
  53. e3d_clamp_width_add = 10;
  54. e3d_clamp_length = e3d_v6_dist_y;
  55. e3d_clamp_b_length = ((x_cutout_length - e3d_clamp_length) / 2) + 7;
  56. e3d_clamp_height = e3d_upper_small_height;
  57. e3d_clamp_dia_add = 0.2;
  58. e3d_clamp_cut = 0.2; // x2
  59. e3d_clamp_hole_off = 4;
  60. e3d_hole_dia = 3.2;
  61. draw_x_carriage = true;
  62. draw_y_carriage = false;
  63. draw_y_carriage_idlers = true;
  64. draw_rail_len = 200;
  65. module lm8uu() {
  66. $fn = 15;
  67. difference() {
  68. cylinder(d = lm8uu_outer, h = lm8uu_height);
  69. translate([0, 0, -1])
  70. cylinder(d = lm8uu_inner, h = lm8uu_height + 2);
  71. }
  72. }
  73. // TODO add cable tie canal for lm8uu mounting
  74. // TODO get ready to actually print these
  75. module generate_spacer(pos) {
  76. color("green")
  77. translate([pos[0], pos[1], -0.5])
  78. bearing_spacer(pos[2] + 0.5 + ((idler_outer_height - bearing_height) / 2), 2, 1, true, 3);
  79. }
  80. module y_carriage(idler_a = [0, 0, 0], idler_b = [0, 0, 0]) {
  81. $fn = 20;
  82. // attaching to x-rails
  83. color("green")
  84. translate([y_carriage_width, 0, -y_carriage_block_height])
  85. difference() {
  86. cube([x_rail_mount_width, y_carriage_length, y_carriage_block_height + y_carriage_wall]);
  87. translate([0, -1, y_carriage_block_height])
  88. cube([x_rail_cutout_z, y_carriage_length + 2, y_carriage_wall + 1]);
  89. translate([0, -1, y_carriage_block_height - (x_rail_cutout_x / 2)])
  90. cube([y_carriage_block_width + 1, y_carriage_length + 2, x_rail_cutout_x]);
  91. translate([0, (y_carriage_length - x_rail_cutout_y) / 2, y_carriage_block_height])
  92. cube([y_carriage_block_width + 1, x_rail_cutout_y, y_carriage_wall + 1]);
  93. for (i = [y_carriage_len_add : x_rail_dist : x_rail_dist + y_carriage_len_add]) {
  94. translate([0, i, y_carriage_block_height])
  95. rotate([0, 90, 0])
  96. cylinder(d = lm8uu_inner + rail_mount_dia_add, h = y_carriage_block_width + 1);
  97. }
  98. for (i = [0 : x_rail_block_len + x_rail_cutout_y : x_rail_block_len + x_rail_cutout_y]) {
  99. translate([y_carriage_block_width / 2, x_rail_hole_off + i, -1]) {
  100. cylinder(d = 3.2, h = y_carriage_wall + 2 + y_carriage_block_height);
  101. cylinder(d = 6.1, h = 3.8, $fn = 6);
  102. translate([0, 0, y_carriage_wall + y_carriage_block_height - 2.5])
  103. cylinder(d = 6.1, h = 3.8);
  104. }
  105. translate([y_carriage_block_width / 2, x_rail_block_len - x_rail_hole_off + i, -1]) {
  106. cylinder(d = 3.2, h = y_carriage_wall + 2 + y_carriage_block_height);
  107. cylinder(d = 6.1, h = 3.8, $fn = 6);
  108. translate([0, 0, y_carriage_wall + y_carriage_block_height - 2.5])
  109. cylinder(d = 6.1, h = 3.8);
  110. }
  111. }
  112. }
  113. // attaching to y-rail
  114. color("green")
  115. difference() {
  116. union() {
  117. cube([y_carriage_width, y_carriage_length, y_carriage_wall]);
  118. translate([y_carriage_width - y_carriage_block_width, 0, -y_carriage_block_height])
  119. cube([y_carriage_block_width, y_carriage_length, y_carriage_block_height]);
  120. }
  121. translate([(lm8uu_outer + lm8uu_dia_add) / 2 + y_carriage_rail_support, 0, 0])
  122. rotate([-90, 0, 0]) {
  123. translate([0, 0, -1])
  124. cylinder(d = lm8uu_inner + rail_dia_add, h = y_carriage_length + 2);
  125. translate([0, 0, y_carriage_rail_support - lm8uu_len_add / 2])
  126. cylinder(d = lm8uu_outer + lm8uu_dia_add, h = lm8uu_height + lm8uu_len_add);
  127. translate([0, 0, y_carriage_length - lm8uu_height - y_carriage_rail_support - lm8uu_len_add / 2])
  128. cylinder(d = lm8uu_outer + lm8uu_dia_add, h = lm8uu_height + lm8uu_len_add);
  129. }
  130. }
  131. color("magenta")
  132. translate([(lm8uu_outer + lm8uu_dia_add) / 2 + y_carriage_rail_support, 0, 0])
  133. rotate([-90, 0, 0]) {
  134. // y-bearings
  135. %translate([0, 0, y_carriage_rail_support])
  136. lm8uu();
  137. %translate([0, 0, y_carriage_length - lm8uu_height - y_carriage_rail_support])
  138. lm8uu();
  139. }
  140. // idlers for the corexy belts
  141. translate([0, 0, y_carriage_wall]) {
  142. if (draw_y_carriage_idlers) {
  143. translate(idler_a)
  144. bearing_idler();
  145. translate(idler_b)
  146. bearing_idler();
  147. }
  148. generate_spacer(idler_a);
  149. generate_spacer(idler_b);
  150. }
  151. }
  152. module belt_fix() {
  153. difference() {
  154. color("green")
  155. cube([x_carriage_belt_block_width, x_carriage_block_length, x_carriage_block_height]);
  156. translate([x_carriage_belt_block_width / 2, -1, x_carriage_block_hole_off - 0.2])
  157. rotate([-90, 0, 0]) {
  158. cylinder(d = 3.2, h = x_carriage_belt_block_length + 2);
  159. cylinder(d = 6.1, h = 3.8, $fn = 6);
  160. }
  161. translate([x_carriage_belt_block_width / 2, -1, x_carriage_block_height - -x_carriage_block_hole_off - 9])
  162. rotate([-90, 0, 0]) {
  163. cylinder(d = 3.2, h = x_carriage_belt_block_length + 2);
  164. cylinder(d = 6.1, h = 3.8, $fn = 6);
  165. }
  166. }
  167. }
  168. module belt_mount(top, up) {
  169. $fn = 15;
  170. difference() {
  171. color("green")
  172. if (top) {
  173. cube([x_carriage_belt_block_width, x_carriage_belt_block_length, x_carriage_belt_block_height]);
  174. } else {
  175. cube([x_carriage_belt_block_width, x_carriage_belt_block_length, x_carriage_belt_block_height_b]);
  176. }
  177. if (top) {
  178. translate([-1, x_carriage_belt_block_length / 2, 16])
  179. rotate([0, 90, 0])
  180. cylinder(d = 2.6, h = x_carriage_belt_block_width + 2);
  181. translate([x_carriage_belt_block_width / 2, -1, 16 + x_carriage_block_hole_off])
  182. rotate([-90, 0, 0])
  183. cylinder(d = 3.2, h = x_carriage_belt_block_length + 2);
  184. translate([x_carriage_belt_block_width / 2, -1, 16 - x_carriage_block_hole_off])
  185. rotate([-90, 0, 0])
  186. cylinder(d = 3.2, h = x_carriage_belt_block_length + 2);
  187. } else {
  188. translate([-1, x_carriage_belt_block_length / 2, 9])
  189. rotate([0, 90, 0])
  190. cylinder(d = 2.7, h = x_carriage_belt_block_width + 2);
  191. translate([x_carriage_belt_block_width / 2, -1, 9 + x_carriage_block_hole_off])
  192. rotate([-90, 0, 0])
  193. cylinder(d = 3.2, h = x_carriage_belt_block_length + 2);
  194. translate([x_carriage_belt_block_width / 2, -1, 9 - x_carriage_block_hole_off])
  195. rotate([-90, 0, 0])
  196. cylinder(d = 3.2, h = x_carriage_belt_block_length + 2);
  197. }
  198. }
  199. if (up) {
  200. if (top) {
  201. translate([0, x_carriage_belt_block_length + x_carriage_block_off, x_carriage_belt_block_height - x_carriage_block_height])
  202. belt_fix();
  203. } else {
  204. translate([0, x_carriage_belt_block_length + x_carriage_block_off, x_carriage_belt_block_height_b - x_carriage_block_height])
  205. belt_fix();
  206. }
  207. } else {
  208. if (top) {
  209. translate([0, -x_carriage_block_length - x_carriage_block_off, x_carriage_belt_block_height - x_carriage_block_height])
  210. belt_fix();
  211. } else {
  212. translate([0, -x_carriage_block_length - x_carriage_block_off, x_carriage_belt_block_height_b - x_carriage_block_height])
  213. belt_fix();
  214. }
  215. }
  216. }
  217. module belt_mounts() {
  218. translate([0, x_carriage_belt_off, 0])
  219. belt_mount(false, true);
  220. translate([0, x_carriage_length - x_carriage_belt_off - x_carriage_belt_block_length, 0])
  221. belt_mount(true, false);
  222. translate([x_carriage_width - x_carriage_belt_block_width, x_carriage_belt_off, 0])
  223. belt_mount(true, true);
  224. translate([x_carriage_width - x_carriage_belt_block_width, x_carriage_length - x_carriage_belt_off - x_carriage_belt_block_length, 0])
  225. belt_mount(false, false);
  226. }
  227. module x_carriage() {
  228. $fn = 20;
  229. //color("green")
  230. difference() {
  231. union() {
  232. color("green")
  233. cube([x_carriage_width, x_rail_dist + (2 * x_carriage_len_add), x_carriage_wall]);
  234. translate([0, 0, x_carriage_wall])
  235. belt_mounts();
  236. }
  237. // big center cutout
  238. translate([x_carriage_width / 2, x_carriage_length / 2, x_carriage_wall / 2])
  239. cube([x_cutout_width, x_cutout_length, x_carriage_wall + 2], center=true);
  240. for (i = [0 : 1 : 1]) {
  241. translate([lm8uu_height + x_carriage_bearing_off + (i * (x_carriage_width - (2 * x_carriage_bearing_off) - lm8uu_height)), 0, ])
  242. rotate([0, -90, 0]) {
  243. // x-bearings
  244. color("magenta")
  245. %translate([0, x_carriage_len_add, 0])
  246. lm8uu();
  247. color("magenta")
  248. %translate([0, x_rail_dist + x_carriage_len_add, 0])
  249. lm8uu();
  250. color("green")
  251. translate([0, x_carriage_len_add, 0])
  252. cylinder(d = lm8uu_outer + lm8uu_dia_add, h = lm8uu_height + lm8uu_len_add);
  253. color("green")
  254. translate([0, x_rail_dist + x_carriage_len_add, 0])
  255. cylinder(d = lm8uu_outer + lm8uu_dia_add, h = lm8uu_height + lm8uu_len_add);
  256. color("green")
  257. translate([0, x_carriage_len_add, -x_carriage_width])
  258. cylinder(d = lm8uu_inner + rail_dia_add, h = x_carriage_width * 2);
  259. color("green")
  260. translate([0, x_rail_dist + x_carriage_len_add, -x_carriage_width])
  261. cylinder(d = lm8uu_inner + rail_dia_add, h = x_carriage_width * 2);
  262. }
  263. }
  264. /* mounting for hotend / tool */
  265. // left mounting screw
  266. translate([5.5, x_carriage_length / 2, -1])
  267. cylinder(d = e3d_hole_dia, h = x_carriage_wall + 12);
  268. // right mounting screw
  269. translate([x_carriage_width - 5.5, x_carriage_length / 2, -1])
  270. cylinder(d = e3d_hole_dia, h = x_carriage_wall + 12);
  271. // bottom mounting screw
  272. translate([x_carriage_width / 2, 19, -1])
  273. cylinder(d = e3d_hole_dia, h = x_carriage_wall + 12);
  274. // top mounting screw
  275. translate([x_carriage_width / 2, x_carriage_length - 19, -1])
  276. cylinder(d = e3d_hole_dia, h = x_carriage_wall + 12);
  277. }
  278. e3d_v6_triple_mount();
  279. }
  280. module e3d_v6_triple_mount() {
  281. translate([x_carriage_width / 2, x_carriage_length / 2, -e3d_v6_height + x_carriage_wall + e3d_v6_z_off]) {
  282. color("red")
  283. %translate([-e3d_v6_dist_x / 2, e3d_v6_dist_y / 2, 0])
  284. e3d_v6();
  285. color("yellow")
  286. %translate([e3d_v6_dist_x / 2, e3d_v6_dist_y / 2, 0])
  287. e3d_v6();
  288. color("blue")
  289. %translate([0, (e3d_v6_dist_y / 2) - e3d_v6_dist_y, 0])
  290. rotate([0, 0, 180])
  291. e3d_v6();
  292. }
  293. echo(m3_screw_len=e3d_clamp_length + (2 * e3d_clamp_b_length));
  294. // hotend clamp center piece
  295. translate([(x_carriage_width - e3d_clamp_width) / 2, (x_carriage_length - e3d_clamp_length) / 2, x_carriage_wall])
  296. difference() {
  297. union() {
  298. // center clamp part
  299. color("magenta")
  300. translate([-e3d_clamp_width_add, e3d_clamp_cut, 0])
  301. cube([e3d_clamp_width + (2 * e3d_clamp_width_add), e3d_clamp_length - (2 * e3d_clamp_cut), e3d_clamp_height]);
  302. // blue clamp
  303. color("cyan")
  304. translate([0, -e3d_clamp_b_length, 0])
  305. cube([e3d_clamp_width, e3d_clamp_b_length - e3d_clamp_cut, e3d_clamp_height]);
  306. // red & yellow clamp
  307. color("cyan")
  308. translate([0, e3d_clamp_length + e3d_clamp_cut, 0])
  309. cube([e3d_clamp_width, e3d_clamp_b_length - e3d_clamp_cut, e3d_clamp_height]);
  310. }
  311. // cable holes
  312. translate([9.5, 6, -1])
  313. cylinder(d = 7, h = e3d_clamp_height + 2);
  314. translate([e3d_clamp_width - 9.5, 6, -1])
  315. cylinder(d = 7, h = e3d_clamp_height + 2);
  316. // left clamping screw
  317. translate([e3d_clamp_hole_off, -e3d_clamp_b_length - 1, e3d_clamp_height / 2])
  318. rotate([-90, 0, 0])
  319. cylinder(d = e3d_hole_dia, h = x_cutout_width + 2);
  320. // right clamping screw
  321. translate([x_cutout_width - e3d_clamp_hole_off, -e3d_clamp_b_length - 1, e3d_clamp_height / 2])
  322. rotate([-90, 0, 0])
  323. cylinder(d = e3d_hole_dia, h = x_cutout_width + 2);
  324. // left mounting screw
  325. translate([-5, e3d_clamp_length / 2, -1])
  326. cylinder(d = e3d_hole_dia, h = e3d_clamp_height + 2);
  327. // right mounting screw
  328. translate([e3d_clamp_width + e3d_clamp_width_add - 5, e3d_clamp_length / 2, -1])
  329. cylinder(d = e3d_hole_dia, h = e3d_clamp_height + 2);
  330. // bottom mounting screw
  331. translate([e3d_clamp_width / 2, -e3d_clamp_b_length + 3.5, -1])
  332. cylinder(d = e3d_hole_dia, h = e3d_clamp_height + 2);
  333. // top mounting screw
  334. translate([e3d_clamp_width / 2, e3d_clamp_length + e3d_clamp_b_length - 3.5, -1])
  335. cylinder(d = e3d_hole_dia, h = e3d_clamp_height + 2);
  336. // red e3d clamp cutout
  337. translate([(e3d_clamp_width - e3d_v6_dist_x) / 2, e3d_clamp_length, -1])
  338. cylinder(d = e3d_upper_small_dia + e3d_clamp_dia_add, h = e3d_clamp_height + 2);
  339. // yellow e3d clamp cutout
  340. translate([(e3d_clamp_width + e3d_v6_dist_x) / 2, e3d_clamp_length, -1])
  341. cylinder(d = e3d_upper_small_dia + e3d_clamp_dia_add, h = e3d_clamp_height + 2);
  342. // blue e3d clamp cutout
  343. translate([e3d_clamp_width / 2, 0, -1])
  344. cylinder(d = e3d_upper_small_dia + e3d_clamp_dia_add, h = e3d_clamp_height + 2);
  345. }
  346. fan_mount_wall = 5;
  347. fan_mount_inset = 5;
  348. fan_width = 40;
  349. fan_height = 20;
  350. difference() {
  351. union() {
  352. translate([x_carriage_width, (x_carriage_length - fan_width) / 2, -fan_width]) {
  353. // hotend cooling fan
  354. color("grey")
  355. %translate([fan_mount_wall, 0, 0])
  356. difference() {
  357. cube([fan_height, fan_width, fan_width]);
  358. translate([-1, fan_width / 2, fan_width / 2])
  359. rotate([0, 90, 0])
  360. cylinder(d = fan_width - 5, h = fan_height + 2);
  361. }
  362. // fan mount
  363. color("orange")
  364. difference() {
  365. cube([fan_mount_wall, fan_width, fan_width + x_carriage_wall]);
  366. translate([-1, fan_mount_inset, fan_mount_inset])
  367. cube([fan_mount_wall + 2, fan_width - (fan_mount_inset * 2), fan_width - (fan_mount_inset * 2)]);
  368. }
  369. }
  370. // fan duct
  371. color("orange")
  372. translate([x_carriage_width, (x_carriage_length - fan_width) / 2, 0])
  373. difference() {
  374. fan_duct(40, (fan_width - 40) / 2);
  375. fan_duct(37, (fan_width - 37) / 2);
  376. }
  377. }
  378. // TODO mounting holes
  379. // TODO fan holes
  380. }
  381. }
  382. module fan_duct(size, off) {
  383. difference() {
  384. translate([0, off, -size - off]) {
  385. hull() {
  386. cube([1, size, size]);
  387. translate([-10, 0, 10])
  388. cube([1, size, size - 11]);
  389. }
  390. hull() {
  391. translate([-10, 0, 10])
  392. cube([1, size, size - 11]);
  393. translate([-15, -6, 17])
  394. cube([1, size + 12, size - 18]);
  395. }
  396. hull() {
  397. translate([-15, -6, 17])
  398. cube([1, size + 12, size - 18]);
  399. translate([-25, -6, 17])
  400. cube([1, size + 12, size - 20]);
  401. }
  402. hull() {
  403. translate([-25, -6, 17])
  404. cube([1, size + 12, size - 20]);
  405. translate([-55, -6, 17])
  406. cube([1, size + 12, size - 20]);
  407. }
  408. hull() {
  409. translate([-55, -6, 17])
  410. cube([1, size + 12, size - 20]);
  411. if (off > 0) {
  412. translate([-71, 15, 17])
  413. cube([1, size - 12, size - 20]);
  414. } else {
  415. translate([-70, 15, 17])
  416. cube([1, size - 12, size - 20]);
  417. }
  418. }
  419. }
  420. translate([-26, 29.5, -size - 20])
  421. cylinder(d = e3d_max_dia + 3, h = 100);
  422. translate([-26 - e3d_v6_dist_x, 29.5, -size - 20])
  423. cylinder(d = e3d_max_dia + 3, h = 100);
  424. translate([-26 - e3d_v6_dist_x / 2, 29.5 - e3d_v6_dist_y, -size - 20])
  425. cylinder(d = e3d_max_dia + 3, h = 100);
  426. }
  427. }
  428. if (draw_y_carriage) {
  429. translate([(lm8uu_outer + lm8uu_dia_add) / 2 + y_carriage_rail_support, 0, 0])
  430. rotate([-90, 0, 0]) {
  431. // y-bearings
  432. %translate([0, 0, y_carriage_rail_support])
  433. lm8uu();
  434. %translate([0, 0, y_carriage_length - lm8uu_height - y_carriage_rail_support])
  435. lm8uu();
  436. }
  437. // x-rails
  438. for (i = [y_carriage_len_add : x_rail_dist : x_rail_dist + y_carriage_len_add]) {
  439. %translate([y_carriage_width + 1, i, 0])
  440. rotate([0, 90, 0])
  441. cylinder(d = lm8uu_inner, h = draw_rail_len);
  442. }
  443. y_carriage(idler_a_blue, idler_b_blue);
  444. translate([(2 * y_carriage_width + y_carriage_block_width) + draw_rail_len -5, y_carriage_length, 0])
  445. rotate([0, 0, 180])
  446. y_carriage(idler_a_red, idler_b_red);
  447. if (draw_x_carriage) {
  448. translate([y_carriage_width + y_carriage_block_width + ((draw_rail_len - x_carriage_width) / 2), y_carriage_len_add - x_carriage_len_add, 0])
  449. x_carriage();
  450. }
  451. } else if (draw_x_carriage) {
  452. x_carriage();
  453. }