You are not logged in.

#1 2023-06-14 18:56:52

etimmon2
Member
Registered: 2023-06-14
Posts: 2

Ramps terminal breaking up gcode commands

I'm using a python script in the Code After Each Layer gcode section that is normally sending around 70 lines of gcode to the RAMPS terminal. I know that the gcode injected by my python script works when sent to the printer in another software like Pronterface. However, in NanoDLP the serial terminal shows broken up and segmented commands being echo'd back every few successful lines. I've tried adding delays between each line, as well as including [[WaitForDoneMessage]] and [[MoveWait 1]] between lines of gcode, but neither helps. For example, I might send a bunch of G0 movement lines at once, and the first few echo back and are completed. Then a partial line is echo'd back, or lines are mixed together, and the rest of the lines are not completed.

Here's a reproduction of the terminal output when the error comes up. It generally happens more when many lines (something like >10) are sent at once.

18:51:37 - Manual
G0 X81.055 B67.557
G0 X81.124 B68.18
G0 X81.119 B68.545
G0 X81.076 B68.911
G0 X80.989 B69.275
G0 X80.855 B69.639
G0 X80.669 B70.019
G0 X80.37 B70.471
G0 X80.126 B70.748
G0 X79.945 B70.905
G0 X79.651 B71.111
G0 X79.363 B71.261
G0 X79.062 B71.375
G0 X78.374 B71.507
G0 X77.641 B71.564
G0 X76.906 B71.508
G0 X76.554 B71.452
G0 X76.225 B71.377
G0 X75.92 B71.262
G0 X75.632 B71.112
G0 X75.338 B70.907
G0 X75.155 B70.744
G0 X74.909 B70.466
G0 X74.613 B70.021
G0 X74.426 B69.642
G0 X74.292 B69.278
G0 X74.205 B68.914
G0 X74.161 B68.548
G0 X74.156 B68.184
G0 X74.232 B67.497
G0 X67.211 B67.497
G0 X66.961 B67.448
18:51:37
echo:G0 X81.055 B67.557
18:51:38
Z_move_comp
18:51:38
ok
18:51:38
echo:G0 X81.124 B68.18
18:51:38
Z_move_comp
18:51:38
ok
18:51:38
echo:G0 X81.119 B68.545
18:51:39
Z_move_comp
18:51:39
ok
18:51:39
echo:G0 X81.076 B68.911
18:51:39
Z_move_comp
18:51:39
ok
18:51:39
echo:G0 X80.989 B69.275
18:51:39
Z_move_comp
18:51:39
ok
18:51:39
echo:G0 X80.855 B69.639
18:51:39
Z_move_comp
18:51:39
ok
18:51:39
echo:G0 X80.6684                   // << First incorrect line
18:51:39
Z_move_comp
18:51:39
ok
18:51:39
echo:278                                   // << Partial line here
18:51:39
echo:Unknown command: "278"
18:51:39
ok

Offline

#2 2023-06-15 17:54:52

etimmon2
Member
Registered: 2023-06-14
Posts: 2

Re: Ramps terminal breaking up gcode commands

This was tested both on the latest stable build, as well as the latest beta build of NanoDLP. Additionally, a lower baud rate was tried, with no difference.

Offline

#3 2023-10-04 08:15:21

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Ramps terminal breaking up gcode commands

Try add in middle see if it does help.
[[Split]]

Seems serial communication issue.

Offline

#4 2024-02-17 02:17:15

Jimhen
Member
From: United States
Registered: 2024-02-17
Posts: 1

Re: Ramps terminal breaking up gcode commands

I'm giving this post a virtual thumbs-up!

Offline

Board footer

Powered by FluxBB