# Cannot align bi-direction and non-bi-directional fills at the same time

**URL:** <https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677>\
**Category:** Ruida controllers\
**Tags:** ruida, dsp, omtech\
**Created:** [September 11, 2024, 8:36pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677 "2024-09-11T20:36:27Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [September 11, 2024, 8:36pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/1 "2024-09-11T20:36:28Z")

</div>

I am able to use Scanning Offset Adjustment | Line Shift to make bi-directional fills perfect, both in terms of alternate line alignment and also alignment with other work (like lines). Alternatively, I can use Scanning Offset Adjustment | Initial Offset to make non-bi-directional fills aligned with other work (like lines). However, there is no combination of Scanning Offset Adjustments that will work for both at the same time (having a layer with bi-directional fill and a layer with non-bi-directional fill, all looking correct and aligned with other works like lines). If I have values for both Line Shift and Initial Offset then bi-directional fills are not aligned with other work; if I have only Line Shift then non-bi-directional fills are not positioned correctly, and if I have only Initial Offset then bi-directional fills are of course not correct.

Am I missing something, or is this a bug? In searching the forum, I found this from 5 years ago which seems related: [Scanning offset adjustment seeming to not apply when bi-directional fill is off](https://forum.lightburnsoftware.com/t/scanning-offset-adjustment-seeming-to-not-apply-when-bi-directional-fill-is-off/23679)

OMTech AF2028-60 / Ruida KT332N DSP:23.01.14 / Lightburn 1.6.03

---

<div class="post-metadata">

**Author:** ![ednisley](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/ednisley/32/40455_2.png) [@ednisley](https://forum.lightburnsoftware.com/u/ednisley)\
**Post date:** [September 12, 2024, 11:30am UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/2 "2024-09-12T11:30:52Z")

</div>

> [@Dithermaster](#):
>
> missing something

This may be another machine with the wrong `STEP` signal polarity for either (or both!) axes from the factory. Some earlier problems explain what’s going on:

> [@Image shifting and bunching up but cut out is OK](https://forum.lightburnsoftware.com/t/image-shifting-and-bunching-up-but-cut-out-is-ok/145984):
>
> Red-Black 90w Laser Ruida controller engrave 400mm/s 25% Fill 450mm/s 20% Cut 25mm/s 65% Birch ply held down pins belts are tight so are stepper motors When doing a engrave/fill and cut I get the fill shift while the engrave bunches up, cut out in just fine. This is repeatable, and all come out the same, like it was meant to be, how do I attach image?

> [@Cuts in the wrong location / offset](https://forum.lightburnsoftware.com/t/cuts-in-the-wrong-location-offset/149517):
>
> I’m running Lightburn 1.4.00. I should renew my subscription, but money’s been tight. All of the sudden, the cuts are being made in an offset, looks like both X (positive) and Y (negative) axis. The prototype was cut fine. After that, I made some alterations to the design and the offset appeared. The preview shows that everything should line up correctly, but the laser does something different. I’m 99.9% sure it’s not belt slippage or some other mechanical issue, since I’ve cut other designs in…

If getting the polarity right doesn’t fix it, then things get interesting. Successfully running a backlash test pattern will eliminate a bunch of other possibilities:

Scale this test pattern to fit the platform and run it as fast as it will go in `Line` mode with optimizations turned off and power set to mark cardboard:

[GrundTest.lbrn2](https://forum.lightburnsoftware.com/uploads/short-url/eWoOxMJbsAOsbrlHeINVPr1gr99.lbrn2)

Any distortion in the results on the cardboard indicates a mechanical problem, which I don’t expect …

---

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [September 13, 2024, 12:06am UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/3 "2024-09-13T00:06:12Z")

</div>

Well hello Ed! I hope your plotter is still working nicely. I recall we both have the same model OMTech laser, by coincidence (or is it?).

I already had the PWM Rising Edge issue which took a while to solve. I’d assumed it was too much acceleration or something but even with those set very low it still happened. Then after much googling I found the P.R.E. issue and when I changed ours, it worked great. Now I try to post about it whenever someone has issues that look like missed steps. It’s the second most common post I do, the first is telling people they need to calibrate scan offset before using bi-directional fills. I asked Lightburn to add a dialog box when bi-dir is enabled for the first time for a user, but they declined, and it remains one of the most common issues.

This is something else, and feels a lot like a Lightburn bug.

If adding photos with settings and results would help, I can make those.

---

<div class="post-metadata">

**Author:** ![ednisley](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/ednisley/32/40455_2.png) [@ednisley](https://forum.lightburnsoftware.com/u/ednisley)\
**Post date:** [September 13, 2024, 1:25pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/4 "2024-09-13T13:25:20Z")

</div>

> [@Dithermaster](#):
>
> plotter is still working nicely

I _knew_ there couldn’t be two of you! 😁

We moved earlier this year and … well, the plotters & supplies are unpacked on a conspicuous shelf, so that’s a start.

> [@Dithermaster](#):
>
> This is something else

Agreed.

A similar case:

> [@Scanning Offset - Text Inside Box](https://forum.lightburnsoftware.com/t/scanning-offset-text-inside-box/140483/):
>
> Seems it was time to look at my Offset Scanning, Hadnt done it for a year. I created a 45mm x 15 mm Box and put some text in it. When I adjust the offset for the sides, The text looks teribble. When i fix the Text the edges are off. I dont remember this being an issue. Can someone confirm.

We didn’t find a solution, but the thrashing around may suggest a test or approach you haven’t yet tried.

It _feels_ like an HV supply timing problem, but the fact that it isn’t handled by the timing variables LightBurn provides is worrisome. I don’t have a good model for what else it could be.

---

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [September 14, 2024, 4:45pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/5 "2024-09-14T16:45:42Z")

</div>

I did the GrundTest and it’s perfect. This does not appear to be a missed-step issue.

I’m attaching a Lightburn file. _How does it engrave for you?_  
[Scanning Offset Test.lbrn2](https://forum.lightburnsoftware.com/uploads/short-url/5iYYTPIR9WtoCXG6S8l7b10Vs5S.lbrn2) (40.5 KB)

Here is how it engraves for me, with Scan Offset settings used for each of the 3 tests. I know you like to science things out! I should have included a picture in my first post.

 ![IMG_7169](https://forum.lightburnsoftware.com/uploads/default/original/3X/4/9/4957fc37be566f4f8517efd2312086dc7fdbde82.jpeg)

---

<div class="post-metadata">

**Author:** ![ednisley](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/ednisley/32/40455_2.png) [@ednisley](https://forum.lightburnsoftware.com/u/ednisley)\
**Post date:** [September 14, 2024, 11:18pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/6 "2024-09-14T23:18:00Z")

</div>

> [@Dithermaster](#):
>
> _How does it engrave for you?_

Pretty much OK. 🙂

This is with 1.7 RC-11, not that I think it makes any difference here, and after rebuilding the `Scanning Offset Table` from 50 mm/s to 500 mm/s to ensure I wasn’t working with old cruft. I reduced the power levels in your file to not quite incinerate white cardboard at the same speeds. The photos had their contrast blown out to make the lines more visible.

The uni-directional pattern is maybe 0.1 mm to the left of where it should be:

 ![PXL_20240914_220153991 - Uni-directional fill 0.0](https://forum.lightburnsoftware.com/uploads/default/original/3X/5/2/52f9b56087e172156b51f913628d867ef6f1c2ba.jpeg)

The bi-directional pattern is dead on:

 ![PXL_20240914_220315460 - Bi-directional fill 0.0](https://forum.lightburnsoftware.com/uploads/default/original/3X/e/3/e34cf37a56954f2981682b3945b48d55b3155d54.jpeg)

Then, because I’ve never done it before, I filled in `0.1` for all the `Initial Offset` values in the table.

The uni-directional pattern now seems better aligned:

 ![PXL_20240914_220246993 - Uni-directional fill 0.1](https://forum.lightburnsoftware.com/uploads/default/original/3X/3/8/38820f846f6d6b781d5c4a1611814a87829f1f5a.jpeg)

The bi-directional pattern also skootches 0.1 mm to the right:

 ![PXL_20240914_220344090 - Bi-directional fill 0.1](https://forum.lightburnsoftware.com/uploads/default/original/3X/3/9/39ad9ed503981b7aa2e9428097630ca4c1696e49.jpeg)

So the `Initial Offset` value does what I thought it did.

So my uni- and bi-directional patterns show the same type of misalignment yours do, but to a _much_ smaller extent.

The HV power supply specs, such as they are, always seem to mention a 1 ms rise time / response time / whatever, without any further details. At the 500 mm/s pace of those engravings, 0.1 mm is only 200 µs, so I think we’re looking at tiny differences in the very leading edge of the rise time + tube firing delay: your machine is slightly slower than mine, for no good reason.

I could make a case for separate `Initial Offset` values applied to uni- and bi-directional scanning modes, although it’s unclear to me how (or if) that should vary with the scanning speed.

For whatever it’s worth, the `Scanning Offset` table:

```auto
mm/s mm
 50 0.000
100 0.050
200 0.075
300 0.100
400 0.150
500 0.200

```

I don’t believe more than one significant figure, either, but those are half the distances seen in my measuring magnifier. 😁

---

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [September 15, 2024, 6:38pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/7 "2024-09-15T18:38:54Z")

</div>

It seems you have the identical issue, but as you said, to a lesser extent since your needed offset times are smaller. Small enough I think you could split the different and have half the error on each in case you use both (or, if you only use bi-dir then optimize for that).

My value for 500 mm/s is 0.55 so nearly 3x yours, hence my outcome is that much worse. If I optimize for halfway, each are 0.5 mm off, which is more than I’m will to live with. I’m going to try to log an issue with Lightburn to see if they can address it somehow. Perhaps separate Initial Offset for uni- vs. bi-direction scanning like you suggested (although my bi-dir offset is 0; does it ever need to be anything but? If not, then “don’t apply I.O. to bi-dir” would be the fix, or, if they are only ever the same value, do away with one of the columns and just use the single value correctly for each type).

I’m afraid I don’t know anything about the HV side of things.

---

<div class="post-metadata">

**Author:** ![ednisley](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/ednisley/32/40455_2.png) [@ednisley](https://forum.lightburnsoftware.com/u/ednisley)\
**Post date:** [September 15, 2024, 10:57pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/8 "2024-09-15T22:57:56Z")

</div>

> [@Dithermaster](#):
>
> if you only use bi-dir then optimize for that

It’s all I’ve ever known: life is too short for uni-directional scanning.

😁

> [@Dithermaster](#):
>
> value for 500 mm/s is 0.55

That says the line-to-line offset is over a millimeter = the delay is over 2 ms = the power supply is _sloooowww_ compared to “what it should be” according to the minimal specs.

Not, of course, any way you could use the timing to support a warranty claim, but it definitely points toward a hardware spec problem, rather than a software issue.

Which, equally of course, _could_ be “fixed in software” if the delay remained constant, but … yick.

---

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [September 15, 2024, 11:48pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/9 "2024-09-15T23:48:15Z")

</div>

> [@ednisley](#):
>
> life is too short for uni-directional scanning

Sometimes I need things to be Very Pretty, so you can image my dismay when the pretty part was shifted compared to everything else!

---

<div class="post-metadata">

**Author:** ![NicholasL](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/nicholasl/32/40942_2.png) [@NicholasL](https://forum.lightburnsoftware.com/u/NicholasL)\
**Post date:** [September 20, 2024, 12:54am UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/10 "2024-09-20T00:54:20Z")

</div>

I _might_ know what this could be. If you have RDWorksV8 try opening and running this file: [RDWorksTest.rld.txt](https://forum.lightburnsoftware.com/uploads/short-url/uS7FYB9AJoWaS0rEZ2zDRIfbZSa.txt) (595.5 KB) (rename to remove the .txt at the end)

Set 'Offset compensation to 0, and only enter the reverse scanning amount:

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/9/7/97caac0fbc77de991dcef0b22537979733e5cc91.png)

You might need to enter -0.555 if 0.555 compensates the wrong way.

If you get a perfect result for both uni and bi directional with this test let us know.

I looks to me that with RDWorksV8 the reverse compensation (equivalent to a line shift) is being applied also to the ‘x-unilateral’ (non bi-directional) fill, which LightBurn does not seem to do (at least not in this version), but if we did - then that should correct the issue you’re seeing.

To visualise this, I have imported into LightBurn the .rd files from LightBurn 1.6.03 and RDWorksV8 8.01.62 for comparison. I haven’t got around to physically testing this yet, but it would be good to test at a few different controllers to be sure this is something that needs to change.

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/b/f/bfad7797e3250a7e7cc56bd6399aecf61e49f63d.png)

If you can install [RDWorksV8](https://www.rdacs.com/en/download?type=software) (free) and test this that would be great, if you don’t have a spare PC handy perhaps @ednisley can test?

---

<div class="post-metadata">

**Author:** ![ednisley](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/ednisley/32/40455_2.png) [@ednisley](https://forum.lightburnsoftware.com/u/ednisley)\
**Post date:** [September 21, 2024, 1:35pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/11 "2024-09-21T13:35:33Z")

</div>

> [@NicholasL](#):
>
> test this

After a bit of thrashing around getting RDWorks set up …

The engraved patterns run at 500 mm/s & 20% power.  
The lines & letters run at 100 mm/s & 8-9%.  
All on white cardboard, with image contrast blown out.

**Scanning offset = 0.2 mm** = the usual setting for my machine

In LightBurn:

 ![PXL_20240921_115227224 - Scanning Offset 0.2 - LightBurn](https://forum.lightburnsoftware.com/uploads/default/original/3X/5/9/597697337b5c031d0dfc8b7d45883c1753124b49.jpeg)

In RDWorks:

 ![PXL_20240921_115240421 - Scanning Offset 0.2 - RDWorks](https://forum.lightburnsoftware.com/uploads/default/original/3X/6/d/6d9a177f4c5d826bb606263a943a55936345ec40.jpeg)

The slight shift to the left in the LightBurn results shows LB _does not_ shift the uni-directional pattern to line up with the vector shape, which is what started this entire thread.

**Scanning offset = 1.0 mm** to accentuate the difference

The uni-directional engraved pattern is still in the same slightly shifted position relative to the vectors:

 ![PXL_20240920_195839455 - Scanning Offset 1.0 - LightBurn](https://forum.lightburnsoftware.com/uploads/default/original/3X/7/2/72b17b86cf0eea9f249ce07dc9ca47b3750addf8.jpeg)

RDWorks definitely applies the setting in both modes:

 ![PXL_20240920_195846462 - Scanning Offset 1.0 - RDWorks](https://forum.lightburnsoftware.com/uploads/default/original/3X/6/b/6b3a316d0102c5690f3944d809760ed7bc544363.jpeg)

So applying the same offset value for both uni- and bi-directional engravings would fix the (slight) offset in my machine. I _think_ it will also fix the misalignment in @Dithermaster’s machine.

Being me, of course, makes me want a _different_ offset value applied to the uni-directional case, just for fine tuning. Which would require a duplicate offset-per-speed table and _that_ looks like a UX disaster comin’ on strong.

---

<div class="post-metadata">

**Author:** ![NicholasL](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/nicholasl/32/40942_2.png) [@NicholasL](https://forum.lightburnsoftware.com/u/NicholasL)\
**Post date:** [September 21, 2024, 2:25pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/12 "2024-09-21T14:25:41Z")

</div>

Excellent, thanks Ed!

Your results help a lot.

> [@ednisley](#):
>
> _different_ offset value

Actually I have noticed that the start-stop points on a single direction fill can be offset slightly due to tube dynamics e.g.I think here in the forum somebody had to replace a CO2 tube because at lower power it exhibited a delayed start which was somewhat hidden on bidirectional fill since every other line helps to square up the edge. So I can image a scenario for this kind of additional control, but as you say - no need to clutter the UX more than needed since we are already in edge-case territory.

Cheers, will take these findings to the powers that be 🙂

---

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [September 23, 2024, 12:16am UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/13 "2024-09-23T00:16:01Z")

</div>

Thanks Ed for your RDWorks testing. I’m primarily Mac and would have had to dust off and connect a PC to do that test.

Thanks Nicholas for your continued attention to this issue, and I hope the software team can come up with a solution!

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 30, 2024, 8:10pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/15 "2024-09-30T20:10:36Z")

</div>

We don’t see a lot of people mixing Unidirectional and Bidirectional fills, and I’m honestly not sure I understand the reason for needing this, but I’ve updated the code to apply the line shift to to uni-directional fills as well.

That will appear in 1.8.

---

<div class="post-metadata">

**Author:** ![Dithermaster](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@Dithermaster](https://forum.lightburnsoftware.com/u/Dithermaster)\
**Post date:** [October 13, 2024, 3:23pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/16 "2024-10-13T15:23:38Z")

</div>

Thank you, I look forward to the fix.

It’s not only about mixing - if you have one project that uses bidirectional and another that uses unidirectional, only one will engrave correctly.

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [October 13, 2024, 6:39pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/17 "2024-10-13T18:39:05Z")

</div>

“Mixing” = someone who uses both. In general, if bidir works, you use that, because it’s significantly faster.

---

<div class="post-metadata">

**Author:** ![system](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/system/32/64335_2.png) [@system](https://forum.lightburnsoftware.com/u/system)\
**Post date:** [November 12, 2024, 6:39pm UTC](https://forum.lightburnsoftware.com/t/cannot-align-bi-direction-and-non-bi-directional-fills-at-the-same-time/149677/18 "2024-11-12T18:39:36Z")

</div>

Closed on November 12, 2024, 6:39pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
