# Custom Gcode Size

**URL:** <https://forum.lightburnsoftware.com/t/custom-gcode-size/193501>\
**Category:** LightBurn Software Questions\
**Tags:** rotary, linuxcnc\
**Created:** [October 27, 2026, 1:33am UTC](https://forum.lightburnsoftware.com/t/custom-gcode-size/193501 "2026-10-27T01:33:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dunnr](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@Dunnr](https://forum.lightburnsoftware.com/u/Dunnr)\
**Post date:** [October 27, 2026, 1:33am UTC](https://forum.lightburnsoftware.com/t/custom-gcode-size/193501/1 "2026-10-27T01:33:15Z")

</div>

Not sure what I’m doing wrong but I have a linuxcnc setup with custom g-code so it will use Q power along with M62/M67. When I create a gcode file it outputs a file that is much larger than my lightburn file. A 400mm text ends up being 14000mm? I’ve checked the rotary and it is not on. When I use the standard linuxcnc device the output is correct (but not using Q power).

---

<div class="post-metadata">

**Author:** ![Dominic](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/dominic/32/25713_2.png) [@Dominic](https://forum.lightburnsoftware.com/u/Dominic)\
**Post date:** [October 27, 2026, 6:19am UTC](https://forum.lightburnsoftware.com/t/custom-gcode-size/193501/2 "2026-10-27T06:19:31Z")

</div>

Hi @Dunnr

Could you try exporting a simple 100 × 100mm square using both the standard LinuxCNC device and your Custom GCode device, then attach both GCode files here?

Please also share screenshots of the Dimensions/Units and Custom GCode sections under **Laser Tools → Device Settings**.

This should help us determine whether the coordinates are being scaled incorrectly during export or interpreted differently by LinuxCNC.

---

<div class="post-metadata">

**Author:** ![Dunnr](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@Dunnr](https://forum.lightburnsoftware.com/u/Dunnr)\
**Post date:** [November 7, 2026, 5:47pm UTC](https://forum.lightburnsoftware.com/t/custom-gcode-size/193501/4 "2026-11-07T17:47:30Z")

</div>

Dominic - thanks for your reply, I did check 100x100mm square and it gave good results.

G0 X-100Y0

;Layer C00

G1 X-100 Y-100 M67 E0 Q20 F6000

G1 X100 Y-100 M67 E0 Q20 F6000

G1 X0 Y100 M67 E0 Q20 F6000

G1 X-100 Y0 M67 E0 Q20 F6000

;return to starting pos

G0 X100Y0

Attached is gcode for some lettering which is ~200x43mm as per snip below

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/9/8/98fea89d5c74fbbd3581b42c47e3c9f4fad3228b.png)

I copied the code into excel and added up the x/y moves (column 1/2) and as you can see it seems to grow beyond my machine limits:

| **Code** | **Column1** | **Column2** | **Column3** | **X** | **Y** |
| --- | --- | --- | --- | --- | --- |
| G1 X-146.45 Y0.74 M67 E0 Q20 F6000 | -146.45 | 0.74 | | -146.45 | 0.74 |
| G1 X11.14 Y-23.834 M67 E0 Q20 F6000 | -135.310 | -23.094 | | 11.14 | -23.834 |
| G1 X-135.31 Y-0.74 M67 E0 Q20 F6000 | -270.620 | -23.834 | | -135.31 | -0.74 |
| G1 X-0.93 Y-24.574 M67 E0 Q20 F6000 | -271.550 | -48.408 | | -0.93 | -24.574 |
| G1 X-0.443 Y-0.014 M67 E0 Q20 F6000 | -271.993 | -48.422 | | -0.443 | -0.014 |
| G1 X-0.435 Y-0.073 M67 E0 Q20 F6000 | -272.428 | -48.495 | | -0.435 | -0.073 |

…

| G1 X0.252 Y0.356 M67 E0 Q20 F6000 | -12752.529 | -1349.542 | | 0.252 | 0.356 |
| --- | --- | --- | --- | --- | --- |
| G1 X0.313 Y0.304 M67 E0 Q20 F6000 | -12752.216 | -1349.238 | | 0.313 | 0.304 |
| G1 X0.366 Y0.242 M67 E0 Q20 F6000 | -12751.850 | -1348.996 | | 0.366 | 0.242 |
| G1 X0.412 Y0.171 M67 E0 Q20 F6000 | -12751.438 | -1348.825 | | 0.412 | 0.171 |
| G1 X0.45 Y0.091 M67 E0 Q20 F6000 | -12750.988 | -1348.734 | | 0.45 | 0.091 |

Here are some snips from device settings, hopefully it is something simple that I’ve entered inproperly…

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/c/1/c14101f0d2821588a05ba66123f5aed8a33d49f1.png)

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/6/c/6ceb5095c9a3347073c308fd343b8b523f2a067d.png)

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/e/5/e550201bc6f1cf4340e1bc88d6e905187f911fc5.png)

Thanks, Rob
