Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

How to save gcode to sd card using serial port (1 reply)

$
0
0
Hello

I am looking for a way to save gcode on an SD card in a laser cutter using a python application on a Raspberry Pi connected to the cutting board via a USB cable. I made a port in python but the Gcode commands do not allow me to save. I'm currently using something like this

M21 Use this command to mount the last-selected SD card or thumb drive.
M28 This command starts a file write.
G0 ...
G1...

M29 Stop writing to a file

This code only allows me to create an empty file on the card. I also tried to use the M110 code, but it caused numerous errors (Line number not changing, errors on the terminal).

Does anyone know what the correct code should look like?

Data:
Software version: Marlin 2.1.2.1(pins_CREALITY_V4.h - changed to work as a laser cutter)
Motherboard: Creality V4.2.2

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>