Welcome! Log In Create A New Profile

Advanced

Sending gcode files to SD card

Posted by composite7 
Sending gcode files to SD card
March 11, 2017 06:25PM
Hi,

New here. hello!

I like to have a simple pc interface that let user to select gcode file(s), and upload to sd card on RAMPS (smart LCD) , to be printed later. I don't want to use overcomplicated host software, usually has too many features that not needed for my need, eg. slicing etc.

Please can anyone point me the right direction how I can do the above, either modify an existing host software or written one. I familiar with vb.net and beginner of phyton.

Thank you.

Choon
Re: Sending gcode files to SD card
March 11, 2017 09:27PM
look at pronsole.py, part of printrun/pronterface
Re: Sending gcode files to SD card
March 23, 2017 07:35AM
smartLCD is not recognized as a disk-drive on your PC, so direct upload will never ever work.

Take your SD Card out of SmartLCD, put it in a Card Reader of your Choice - connected to your PC, and use any File-Explorer (e.g.: Windows Explorer).

Nothing easier than that.
Re: Sending gcode files to SD card
March 23, 2017 10:42PM
The SD doesn't need to be "recognized as a disk-drive"

You can upload to a SD from a pc just fine (but is much slower that swapping SD cards)

You send a "M28 filename.gco" to the controller
File specified by filename.gco is created (or overwritten if it exists) on the SD card and all subsequent commands sent to the machine are written to that file.

you send all gcode commands you want to be in the file.

you send a "M29 filename.gco"
File opened by M28 command is closed, and all subsequent commands sent to the machine are executed as normal.
Re: Sending gcode files to SD card
March 27, 2017 09:33AM
I did ask the question myself reprap pronterface (no reply)

I can't write to SD via Pronsole. I get. "Open failed: file xxx.g

I can list the files on SD and print them when they're on there

I see I can create a file using that M28/ M29

but as for; "you send all gcode commands you want to be in the file"

Its a bit painful to cut'n'paste an entire sliced print into it!

Can use a card reader and swapping Dancer but my SDcard is starting to break up with all the swapping.
Re: Sending gcode files to SD card
March 27, 2017 08:44PM
you don't cut and past

you create the file with M28

you hit print, and its send everything to the sd card. no waiting, no movies

You then close the file
Re: Sending gcode files to SD card
March 28, 2017 04:51AM
Hi Dust.

I see. That works.

Bit slow! 10 mins for 3.5 Mb but works.

I see Pronterface re-interprets the gcode. ie it has stripped out the comments etc from the original.

Thanks for the tip.

Cheers

Ed.
Sorry, only registered users may post in this forum.

Click here to login