AstroBox icon indicating copy to clipboard operation
AstroBox copied to clipboard

Feature Request: Chain Gcode Commands (separated by "\n")

Open filipgoc opened this issue 9 years ago • 3 comments

It would be lovely if the gcode terminal automatically parsed commands separated by semicolons! (Like marlin does internally.)

For example, imagine this gcode chain for calibration purposes:

instead of

G28 (send)
G29 (send)
G1 X50 Y50 F5000 (send)

I'd do

G28; G29; G1 X50 Y50 F5000 (send)

filipgoc avatar Mar 25 '16 17:03 filipgoc

That would definitely be lovely~

avluis avatar Mar 25 '16 17:03 avluis

I thought that anything that follows a ';' is ignored as a comment.

CoDanny avatar Mar 25 '16 21:03 CoDanny

@CoDanny of course! I can't even believe what I had said. I got confused with another interface.

updated wish:

I'd happily do

G28\nG29\nG1 X50 Y50 F5000 (send)

MARLIN has a function for parsing commands into new lines ... through deliberate \n at least in the menu. not sure how it's implemented throughout; there's multiple enqueue functions

What about deliberate support for "\n" then? Sounds reasonable! Even typing/pasting multiple lines of codes would in a way work.

PS: in Marlin, the original implementation as per parsing inputs through LCD started here https://github.com/MarlinFirmware/Marlin/pull/1423

filipgoc avatar Mar 28 '16 06:03 filipgoc