Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framing Issue #35

Closed
criticallimit opened this issue May 6, 2021 · 8 comments
Closed

Framing Issue #35

criticallimit opened this issue May 6, 2021 · 8 comments
Assignees
Labels
bug Something isn't working cannot reproduce help wanted Extra attention is needed question Further information is requested
Milestone

Comments

@criticallimit
Copy link

Have a error trying do do Framing. Have a Neje Laser Master 2.

Send: M4 F1000 S1
Recv: ok
Send: G4 P0
Recv: error:2
Changing monitoring state from "Operational" to "Error"
Send: M112
Send: N1 M11232
Send: N2 M104 T0 S0
35
Changing monitoring state from "Error" to "Offline after error"
Connection closed, closing down monitor

Somebody here who knows what exactly the problem is and how to solve it?
Suspect the G4 P0 causes this Fault. But where can I change commands for Framing?

Thanx
Dirk

@criticallimit
Copy link
Author

even when I comment out all in the code, he starts framing and stops after a few mm travelling:

Send: $32=0
Send: M4 F1000 S1
Recv: ok
Send: $32=1
Send: G1 X100.000000 F2000 S1
Recv: error:2
Changing monitoring state from "Operational" to "Error"

But when I put the G1 X100.000000 F2000 S1 in the command line in the terminal, it is moving correctly

What do I have to change ?

@criticallimit
Copy link
Author

criticallimit commented May 6, 2021

ok. here is another guess:

def send_frame_init_gcode(self):
    # self._printer.commands("G4 P0")
    #self._printer.commands("$32=1")
    # self._printer.commands("G00 G17 G40 G21 G54")
    self._printer.commands("G90")
    # self._printer.commands("M4")
    # self._printer.commands("M4 F1000 S{}".format(self.weakLaserValue))
    # self._printer.commands("G91")
    # self._printer.commands("M8")

Send: $32=0
Send: M4 F1000 S0
Recv: ok
Send: G90
Recv: error:2
Changing monitoring state from "Operational" to "Error"
Send: M112
Send: N1 M11232
Send: N2 M104 T0 S0
35
Send: N3 M140 S0*102
Changing monitoring state from "Error" to "Offline after error"
Connection closed, closing down monitor

No matter what the command in the frame_init part. After executing, it receives a Fault

@criticallimit
Copy link
Author

Slowly I think it´s a timing Problem. No matter which command is given, it gives error2 after the first "G..." command

I´m a totally noob in programming. Can someone tell me what to change in the code?

Recv: <Idle|MPos:50.000,50.000,0.000|FS:0,0>
Recv: [GC:G0 G54 G17 G21 G90 G94 M5 M M9 T0 F0 S0]
Recv: ok
Send: $32=0
Send: M4 F1000 S1
Recv: ok
Send: $32=1
Send: G0 X10.000000 F2000 S1
Recv: error:2
Changing monitoring state from "Operational" to "Error"
Send: M112
Send: N1 M11232
Send: N2 M104 T0 S0
35
Changing monitoring state from "Error" to "Offline after error"
Connection closed, closing down monitor

@synman
Copy link
Owner

synman commented May 14, 2021

What version of GRBL are you running?

error:2 is a number format error

2 | Bad number format | Missing the expected G-code word value or numeric value format is not valid.

I'm going to guess It is barfing on the X value being passed in.

@synman synman added the question Further information is requested label May 14, 2021
@criticallimit
Copy link
Author

It's GRBL 1.1f

I checked already the gcode. All files are tested where the same as direct connected to the computer. The gcode in your bettergrbl has more digits after the point. Can I reduce it to 2 or 3?

@criticallimit
Copy link
Author

criticallimit commented May 14, 2021

But even if there is only a G90 is sent, there is error2
And that happens only when framing command is sent. All gcode Files are working perfect when started with bettergrbl.
So, due to framing , i guess it must be something in your code

@Tennissocke
Copy link

I have the same problem with the Neje Master 2s. everything works, only when I want to drive off the frame error 2 comes up

@synman synman added bug Something isn't working cannot reproduce help wanted Extra attention is needed labels Dec 13, 2021
@synman synman self-assigned this Dec 16, 2021
@synman
Copy link
Owner

synman commented Dec 16, 2021

This is turning into an extensive, but very necessary, exercise. I've brought a lot of stuff into scope here including laser detection based on $32 value, usage of Grbl 1.1 jogging for framing operations, and backwards compatibility for older devices.

I'd rather just drop support for pre 1.1 firmwares but recognize there are probably a bunch of people stuck on .9.

I'm also revisiting all embedded gcode and refactoring many of the commands used by the plugin today for various operations.

Lastly, I've finally, just moments ago, pulled trigger on a budget CNC machine. I went with this bad boy: https://www.foxalien.com/collections/cnc-router/products/cnc-router-machine-masuter-with-300w-spindle-bundle-kit

So yeah, anticipate some major improvements over the next month or so as I adapt the plugin to cover all my own CNC needs.

Shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot reproduce help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants