UCCNC plugin...problem?

English from Google

Hello to the community.
I found a problem using the UCCNC script, which creates the appropriate gcode (file name …UCCNC file name).
I’m attaching the original Lightburn code…
G00 G17 G40 G21 G54
G90
; Cut @ 5000 mm/min, 10% power
M8
M5
G0 X-288.333Y-595.74
; Layer SCORE
M3
G1 X-321.451Y-596.682
G1 X-321.439Y-596.833
G1 Y-598.682
; Cut @ 500 mm/min, 45% power
M8
M5
G0 X-305.973Y-612.936
; Layer CUT
M3
G1 X-305.743Y-612.852S114.8F500
G1 X-305.504Y-612.791

Now, to explain, I’m attaching the code snippet reworked from the script…

G00 G17 G40 G21 G54
G90
( Cut @ 5000 mm/min, 10% power )
M8
M5
G0 X-288.333Y-595.74
( Layer SCORE )
M4
M10 Q25.5
G1 X-288.643Y-595.667F5000
G1 X-288.961Y-595.628
G1 Y-598.682
( Cut @ 500 mm/min, 45% power )
M8
M11
G0 X-305.973Y-612.936
( Layer CUT )
M10 Q25.5 …this line is giving me problems…
M10 Q114.8
G1 X-305.743Y-612.852F500
G1 X-305.504Y-612.791
The next job doesn’t start immediately with 45% power…
Is there a solution… or correct version of the application?
Thanks, I hope that’s clear.

Buongiorno Giovanni,

I’m not sure, I follow. Can you share more details about your machine, and the controller it uses?

I don’t understand what role this UCCNC script plays here. Please explain :slight_smile:

Which LightBurn version are you using? Please export your device settings and attach them here so we can see your current settings.

Axiom Precision CNC, UK-based “stoneycnc”.
AXBBE controller and UCCNC cam.
In Lightburn, it’s configured as GRBL M3.
I created the job in Lightburn and exported it to gcode.
Now I’m loading it into UCCNC using the “lightburn” script, which creates the *.*uccnc.gc file.
I’ve indicated the problem in the file excerpts…

Thank you for the explanation.

Any specific reason, why you are not using the normal GRBL device type?

Your script appears to convert the first M3 code to M4 and adds this UCCNC-specific command: M10 Q25.5

The second occurrence of M3 looks different and that’s where the problem occurs.

Here’s a comparison of the LightBurn-generated code and the code after the script for better visibility:


You didn’t specify which LightBurn version you are using. Newer versions include the Custom Gcode device type. This allows you to select UCCNC as the GCode Flavor:

Give this a try, and let us know how if that gets you closer.

If possible, share a link to this script to get more context.

Today I switched to version 2 out of desperation.
I created a custom Gcode using UCCNC (I was hoping for something new).
I was previously using Lightburn version 1.7.
In UCCNC, M3 rotates forward_CW, M4 rotates reverse_CCW.
“S” is the variable Power value in both M3 and M4.
With the Laser, I have to insert M10 with the M10Q{power} parameter instead of “S”… M11 turns off.
This is impossible to do in custom Gcode.
I have to load the Gcode created in Lightburn into UCCNC using the UCCNC plugin “lightburn loader” found online, to get a working file.

But the file generated by the plugin has this error.
After my experience with Lightburn version 2.03, I reverted to the original 1.7.03. The reason is simply for my own peace of mind.

I’m contacting OPTLASER in hopes of finding a solution. But so far, they’re not responding.

Aronne
Thanks.
I don’t have this in-depth knowledge, and I can’t insert M10 Q{power} into the custom Gcode using UCCNC.

It should be possible?

Try this (or import the attached device), it’s not tested yet so be very careful when using these settings.

**Tool On**
M3

**Tool Off**
M11
M5

**Cut Move**
M10 Q{power}
G1 [X]{x}[Y]{y}[Z]{z}[A]{rot}[F]{speed}

**Rapid Move**
M11
G0 [X]{x}[Y]{y}[Z]{z}[A]{rot}

UCCNC.lbdev (3.5 KB)

1 Like

The suggestion from Nicolas sounds promising!
Please let us know if this allows LightBurn to generate suitable GCode directly without you having to use the plugin.

If you can send us a link to where you found this script, it could help figure out what GCode flavor and options this plugin expects.
(So far, I found this thread, where other users reported similar issues.)

Sorry, that’s the plugin…cncDrive.
After using it, I’m having this problem.
Thanks again.

The ‘Custom GCode’ device type should be able to produce the correct GCode directly without having to use any “Lightburn Loader” program.

Is it important or relevant which version of UCCNC you use?
I don’t think so, but I’m asking.
I’ll put your advice into practice tonight.

When I got home, I loaded the profile into Lightburn 1.7.03, opened the project, and generated the attached G-code.
I fed it to UCCNC with the OPT T8 laser…the result was OK!!! without using the plugin.
Description…
It starts from zero and positions itself with a slight hint of the laser being active…you wait a bit (maybe too long, but that’s okay) and then it starts working without a hitch…I repeat for this job.
Once finished, it stays in place…that’s a shame, I’d like it to return to zero.
Thanks, now I’ll put it under pressure by doing some TESTS…I’ll keep you posted.
Maybe I should go back to version 2 of Lightburn?

Is the laser is slightly on while it is moving at the very start?

Perhaps try changing the Custom GCode ‘Rapid Move’

from:

M11
G0 [X]{x}[Y]{y}[Z]{z}[A]{rot}

to this:

M10 Q0
G0 [X]{x}[Y]{y}[Z]{z}[A]{rot}

or this:

G0 [X]{x}[Y]{y}[Z]{z}[A]{rot}M10 Q0

And I notice your previous code used M4 so you could also try changing ‘Tool On’ from M3 to M4

You may need to change the ‘Start from’ to ‘Absolute Coords’ if that is what you were using before? And check your settings for ‘Return to Finish Position’.

UCCNC2.lbzip (1.9 KB)

I updated the device profile, if you could test it that would be great.

1 Like

Sorry but in lightburn 1.7.03 there is no “UCCNC” in the custom Gcode.

Nicholasl
Your UCCNC 2.lb zip file is not loading.

I uninstalled lightburn version 1.7.03. I’m going to upgrade to the latest version and start over.

Before giving you any advice…have you tried using the test function in Lightburn 2???

Updated to version 2.
Created the UCCNC profile by loading UCCNC.lbdev.
Then ran the lightburn test.
Here are the results…
Starting point?? Links between texts…
Vertical lines for high speed?