Welcome! Log In Create A New Profile

Advanced

sending Gcode via serial, how it tracks xyz?

Posted by scancool 
sending Gcode via serial, how it tracks xyz?
March 29, 2019 12:31AM
I'm sending gcode using python over serial the motor moves fine but is not tracking the movement, is this not done on marlin or it has to be done outside marlin?


pi@raspberry:~/python $ python sendserial.py
run gcode : 1
Sending: M114 : X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0 Y:0 Z:0
Sending: G01 X10 F50 : ok
Sending: M84 : ok
Sending: : echo:busy: processing
pi@raspberry:~/python $ python sendserial.py
run gcode : 2
Sending: M114 : X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0 Y:0 Z:0
Re: sending Gcode via serial, how it tracks xyz?
March 29, 2019 02:28AM
Connecting serial can reset the controller, I suspect this is what is happening to you,

Most reprap boards are designed to reset if the DTR signal goes low.

Some boards have jumpers to deactivate the feature.

Your gcode look ok. you might want to add in a M400 to wait for all moves to complete
Re: sending Gcode via serial, how it tracks xyz?
March 29, 2019 08:36PM
Hi Dust, you are right, if I close the serial port it resets

Thank you!

Edited 1 time(s). Last edit at 03/29/2019 08:57PM by scancool.
Re: sending Gcode via serial, how it tracks xyz?
March 29, 2019 08:43PM
F50 is 50/60 0.833333333 mm/s

so X10 will take 12 seconds to complete
Re: sending Gcode via serial, how it tracks xyz?
March 29, 2019 08:58PM
I didn't see your response and I edit my last one, but you are right!!

Edited 1 time(s). Last edit at 03/29/2019 08:58PM by scancool.
Sorry, only registered users may post in this forum.

Click here to login