Hi there. I am using the Neil F PP for Vcarve pro and when I try to load a gcode with a tool change, CM throws this error:
Error in Line 10: P value not set
The bitsetter is all setup and works when using CC, but not the Shapeoko Tool Change_mm or the GRBL_ToolChange_mm PP
Any help is appreciated!
Can you post the first ~15 lines of that G-code file ? (or more simply the g-code file itself)
Sure, I have tried each of Neils PP and everyone throws the same error. This happens in both CM 5 and CM 428
If I am not mistaken, those “G04 1” lines should be “G04 P1” , the G4 command expects a delay in seconds or milliseconds specified after a “P” value (hence CC’s error message)
Looking at @neilferreri’s post, it gets the value from [DWELL] value, which I understand is used when a “Dwell move” is generated in the G-code. But I don’t know where this is set in VCarve. I just tried a sample file of mine using this post in VCarve, and I don’t have those G04 commands generated in the output file.
I’m sure Neil will chime in soon to explain, in the meantime you should be able to remove those “G04 1” lines (the only thing they do is wait 1 second) and run that safely.
Awesome, thanks! I will give that a try.
Ha, I may have found it: by any chance do you having drilling ops in your project ?
The “[DWELL]” seems to be set in drilling toolpath:
Who knows, we MAY have found a small bug in @neilferreri’s post, it’s possible that nobody used a drilling operation with that post before, OR that other G-code senders are more permissive and e.g. CNCjs would accept “G04 1”, I’ll check that too
So rather than hand-editing the G-code file you may want to uncheck that box until this is fixed.
Yes, I am using drilling as I make a ton of wholes… I can uncheck that and see if it works
Ok, mystery solved then.
I just tried with CNCjs, and it does not like “G04 1” either (which is normal).
So actually, a much better workaround until Neil fixes this is to replace “G04 [DWELL]” by “G04 P[DWELL]” yourself in the post processor file, then it should be all good and you can keep your dwell option.
Very cool Testing is good lol I will make the change and see what happens…
Ok, so I saved one tool path with the dwell removed and I saved another after altering the PP to add a ‘P’ next to the dwell… Both loaded fine.
Great, thanks for the confirmation.
Have fun drilling drilling drilling
LOL thanks, lots of holes in carbon fiber… I appreciate the help in tracking this down… guess I need to learn GCODE better.
I don’t know what you’re talking about.
Thanks for catching that. I don’t know how programmers keep track of versions. Somehow, that’s been missing for a while. I checked my PC and I have the P (I have a slightly different version because I don’t want a toolchange on the first tool).
No problem… as a programmer myself, just making sure all changes are in version control, and or saved as different versions (one with an initial tool change and one without)… but it can still get messy in a sense.
I’d like the version without the initial tool change
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.