Can monitor and control but not initiate prints from OctoPrint


#1

I have a MonoPrice Maker Select v2 which I'm setting up OctoPrint for.

When trying to start prints via Octoprint the Printer will home itself and then just sit there. The terminal shows repeat invalid format errors. I'm then unable to abort the print as it will get stuck in the stabilizing phase. I have to forcefully disconnect and reconnect the printer before it will let me purge the task.

I can however use the same gcode files directly on the printer without issue. Once the job is initiated directly on the printer, Octoprint is then able to monitor, pause, resume and abort the print job without issue.
Running Oct 1.3.9 on Rasbian.

Here is a sample of the errors thrown in the terminal.

Terminal

Recv: ok

Recv: skip 21

Send: N20 G92 E0*117

Recv: ok

Recv: skip 22

Recv: ok

Send: N21 G1 F200 E6*28

Recv: Error:Format error

Recv:

Recv: Resend:19

Send: N22 G92 E0*119

Recv: ok

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: Error:Format error

Recv:

Recv: Resend:19

Recv: ok

Recv: skip 20

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: ok

Recv: skip 21

Recv: ok

Send: N20 G92 E0*117

Send: N21 G1 F200 E6*28

Recv: skip 22

Recv: ok

Recv: Error:Format error

Send: N22 G92 E0*119

Recv:

Recv: Resend:19

Recv: ok

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: Error:Format error

Recv:

Recv: Resend:19

Recv: ok

Recv: skip 20

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: ok

Recv: skip 21

Recv: ok

Send: N20 G92 E0*117

Recv: skip 22

Recv: ok

Send: N21 G1 F200 E6*28

Recv: Error:Format error

Send: N22 G92 E0*119

Recv:

Recv: Resend:19

Recv: ok

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: Error:Format error

Recv:

Recv: Resend:19

Recv: ok

Recv: skip 20

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: ok

Recv: skip 21

Send: N20 G92 E0*117

Recv: ok

Recv: skip 22

Send: N21 G1 F200 E6*28

Recv: ok

Recv: Error:Format error

Recv:

Send: N22 G92 E0*119

Recv: Resend:19

Recv: ok

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: Error:Format error

Recv:

Recv: Resend:19

Recv: ok

Recv: skip 20

Recv: ok

Send: N19 G1 Z15.0 F{travel_speed}*48

Recv: skip 21

Recv: ok

Send: N20 G92 E0*117

Recv: skip 22

Send: N21 G1 F200 E6*28

Recv: ok

Recv: Error:Format error

Send: N22 G92 E0*119

Recv:


#2

Hi @gawainX1.

Maybe this helps:
Go to OctoPrint Settings -> Features -> check off the "Enable model detection..."


#3

unchecked the Enable model size detection, behaviour still persists. The nozzle homes and then just sits there against the buildtac.

Recv: ok
Send: N23 G92 E0118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}56
Recv: skip 23
Recv: ok
Send: N23 G92 E0
118
Recv: skip 24
Recv: ok
Send: N24 G1 F200 E6
25
Recv: skip 25
Recv: ok
Send: N25 G92 E0
112
Recv: Error:Format error
Recv:
Recv: Resend:22
Recv: ok
Send: N22 G1 Z15.0 F{travel_speed}*56
Recv: Error:Format error
Recv:


#4

Interesting, I can print via octoprint if if manually uploaded the file to the SD card. I just seem to have issues printing any gcode files uploaded via octoprint.


#5

On the second view I see some tokens ({travel_speed})in your gcode file.
What slicer are you using? Have you copied a start gcode script from another slicer to your used slicer?


#6

I'm using cura 3.6.0 to slice the files.

Here is my startup code, The 3 lines before M117 were borrowed but the rest is stock cura.

G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E6 ;extrude 6 mm of feed stock
G92 E0 ;zero the extruded length again
G1 F{travel_speed}
G1 Y-3.0 F500.0 ; move out of print volume
G1 X60.0 E9 F500.0 ; start purge line
G1 X100.0 E12.5 F500.0 ; finish purge line
M117 Printing...


#7

I see. But something goes wrong with the processing of your g-code file.
This {travel_speed} should be translated to a number.


#8

Hmm, It's currently set as marlin Gcode flavor (which cura reccomended). I tried reprap yesterday with the same result.

Any thoughts on tweaks or why the printer itself handles the gcode file without complaint while it throws errors via octoprint?


#9

As far as I remember this placeholder is in cura called {speed_travel} and not {travel_speed}.
So {travel_speed} is not recognized by the gcode generation and is not interpreted as it should.


Octopi hangs mid print
#10

I'm not fairly versed in Gcode, are there any specific changes you would recommend I make to the start/stop code or how to change this behavior in cura?


#11

In your start-code replace all occurences of {travel_speed} with {speed_travel}, slice a file and look what happens ...


#12

Thanks, I've overhauled the start and end gcode and it seems to be printing consistently now (aside from an unrelated serial communication issue).