stl to g-code

조회 수: 18 (최근 30일)
Vincent I
Vincent I 2013년 4월 22일
답변: Thomas Llewellyn-Jones 2016년 5월 4일
Hi, I would like to build a 3d printer for my senior project design using an ramps 1.4 controlled by matlab. however all the searching that I have done so far I was unable to find any info on how to control the ramps via matlab.
I was wondering if anyone has any experience or idea if this could be done?
And is it possible to convert stl file to g-code?
Thank you Vincent
  댓글 수: 1
Karim Yahyaoui
Karim Yahyaoui 2016년 3월 5일
Hi Vincent, I would like to know if you found anything about this. Thank you.

댓글을 달려면 로그인하십시오.

답변 (1개)

Thomas Llewellyn-Jones
Thomas Llewellyn-Jones 2016년 5월 4일
Controlling a Ramps board or similar is a case of creating a serial object in Matlab and then simply writing g-code line by line to the controller, eg.
serialobject=serial('COM1','BaudRate',250000);
fopen(serialobject);
Replace 'COM1' and 250000 with the relevant values for your board port (which can be found in device manager or through INSTRFIND) and baudrate. After this to send g-code commands just use fprintf,
fprintf(serialobject,'G1 X10 \n');
Dont forget the new line terminator or the Ramps board wont recognise the end of the command. In terms of generating gcode files it is best to use an available slicer (Cura, Slic3r, MatterControl etc) or write a script for your own purposes. Hope this helps.

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by