G21 ; returns "!!<CR>ok<CR>"

10 views
Skip to first unread message

Julien

unread,
Apr 17, 2020, 2:43:55 PM4/17/20
to Smoothieware Support
Hi,

I'm using smoothie with openpnp.

"Sometimes", the command "G21 ; " returns "!!<CR>ok<CR>"
I did not find "!!"  string in the source code.

I did try some things with a simple terminal. Here's a screenshot:
I tried "G21;" and " G21;" (notice the space before the "G".

The behaviour seems reproductible.

Do you have an idea of what may happen?

Firmware was updated 3-5 days ago and this behaviour happens already months ago.

Thanks
Julien


smoothie.jpg

wolfmanjm

unread,
Apr 17, 2020, 4:24:41 PM4/17/20
to Smoothieware Support
getting a !! means it is in alarm mode and is rejecting the gcode.

; means a comment and everythiogn after a ; is stripped off, so why are you using it?

a space before G is probably not legal g code syntax.

Julien

unread,
Apr 17, 2020, 7:37:56 PM4/17/20
to Smoothieware Support
I need some semantic explanation:

do you mean that smoothie is in alarm mode and the consequence is that it is rejecting the gcode ?
or do you mean that the gcode is rejected throwing an alarm?

can I find any documentation about the possible reasons for alarm?

I'm using ";" for testing purpose because I see in openpnp console that openpnp sends this in command. 


Log file:
2020-04-17 23:18:44.850 OpenCvCamera DEBUG: Setting property CAP_PROP_BRIGHTNESS on camera up to 10.0
2020-04-17 23:18:46.672 ReferenceMachine DEBUG: setEnabled(true)
2020-04-17 23:18:46.730 GcodeDriver TRACE: [serial://COM44] << Smoothie
2020-04-17 23:18:46.731 GcodeDriver TRACE: [serial://COM44] << ok
2020-04-17 23:18:49.730 GcodeDriver DEBUG: sendCommand(null, 250)...
2020-04-17 23:18:49.981 GcodeDriver DEBUG: sendCommand(serial://COM44 null, 250) => [Smoothie, ok]
2020-04-17 23:18:49.981 GcodeDriver DEBUG: sendCommand(null, 250)...
2020-04-17 23:18:50.233 GcodeDriver DEBUG: sendCommand(serial://COM44 null, 250) => []
2020-04-17 23:18:50.233 GcodeDriver DEBUG: sendCommand(G21 ; Set millimeters mode, 20000)...
2020-04-17 23:18:50.234 GcodeDriver TRACE: [serial://COM44] >> G21 ; Set millimeters mode
2020-04-17 23:18:50.236 GcodeDriver TRACE: [serial://COM44] << !!
2020-04-17 23:19:10.238 MessageBoxes DEBUG: Enable Failure: Timeout waiting for response to G21 ; Set millimeters mode


That's for the log. 

Here's what I found in the code:

  commands.add(new Command(null, CommandType.CONNECT_COMMAND, "G21 ; Set millimeters mode\nG90 ; Set absolute positioning mode\nM82 ; Set absolute mode for extruder"));
      

A quick tour in some other modules seems to show that it is what is sent to the board (splitted at \n). If I remove the ";" , the result is the same ("!!").  see screenshot.

I tried space before "G21" only for investigation purpose.

Thanks for you answer.
Julien




 
smoothie.jpg

Arthur Wolf

unread,
Apr 18, 2020, 3:18:08 AM4/18/20
to Smoothieware Support
Try using Pronterface to talk to the board the same way, it is more likely to show you the error when it happens, and that should help you resolve the issue.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smoothieware-support/81688e86-0228-4356-b42a-f155461b714d%40googlegroups.com.


--
勇気とユーモア
Reply all
Reply to author
Forward
0 new messages