What does octoprint expect if the 3d printer can't process a command?

#1

Let's say a feature like the SD card is not available. When octoprint sends the command M21, but there is no card, what is the error message?

#2

All commands that can't be processed by the firmware are replied with an error message.
https://reprap.org/wiki/G-code#Replies_from_the_RepRap_machine_to_the_host_computer

1 Like
#3

That link doesn't say what it should say if it's a command that the printer does not recognize. E.g.

N134 G114302 X10.0*10458

What would Marlin Say to the G114302 command?

#4

My LulzBot TAZ 6 with Marlin 1.9.34 firmware says:

Send: G114302 X10.0
Recv: echo:Unknown command: "G114302 X10.0"
#5

And your OctoPrint accepts that? "echo: Unknown command:"

#6

I guess don't understand what you are looking for. Maybe some details on why you asked the original question might help us understand how to answer it.

I sent your command example via the OctoPrint Terminal tab and received the response as shown. To me that means OctoPrint accepted it. OctoPrint didn't crash or hang or do anything else nasty.

#7

Well, I send back "notok" which causes OctoPrint to just stop there and wait for about a minute before continuing. Sometimes it doesn't continue and reports communication failure.

#8

The link that @Ewald_Ikemann posted does not show "notok" as a valid reply. That could be why OctoPrint doesn't like it.

#9

Sure it says:

#10

Right, but the LulzBot says "echo:Unknown command:" (and then the command). So what does "echo" do?

#11

Some manufactures do their own thing on Marlin.
In this case, LulzBot puts an 'echo' in front of this error message.