Comments (8)
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 ?
from octoprint-bettergrblsupport.
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 S035
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
from octoprint-bettergrblsupport.
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 S035
Changing monitoring state from "Error" to "Offline after error"
Connection closed, closing down monitor
from octoprint-bettergrblsupport.
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.
from octoprint-bettergrblsupport.
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?
from octoprint-bettergrblsupport.
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
from octoprint-bettergrblsupport.
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
from octoprint-bettergrblsupport.
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
from octoprint-bettergrblsupport.
Related Issues (20)
- version needs to be updated in release 2.2.2 HOT 8
- Issue when upgrading HOT 3
- Easier jogging - joystick and keyboard? HOT 10
- Clean up Feed Hold and Cycle Start/Resume Handling
- Invalid Argument Error on install HOT 10
- Grbl Settings Mismatch between GrblHAL and Grbl_Esp32 HOT 1
- cant have 3D printer and laser cutter on same Raspberry Pi. HOT 2
- Managing offsets and baby stepping HOT 3
- Rest API? HOT 1
- ability to convert inches to mm HOT 3
- can only have one printer profile HOT 1
- Octoprint 1.9 - Bettergrbl wont work at all? HOT 21
- Add support for X/Y position before Z probe HOT 3
- OctoPrint 1.9.0 Broke Better GRBL Support HOT 2
- Octoprint GRBL help HOT 1
- Xtool D1 - Controls Grayed out HOT 4
- Missing Tabs after switching to 3d-printer HOT 4
- GRBL Settings -- No settings appear HOT 3
- Oddities when rebooting / reconnecting to ESP32 XPro V5 Controller
- Octoprint 1.8.6 Error when installing plugin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-bettergrblsupport.