BUG? SculpFun S9 - Limit Switches rear right with HOMING_FORCE_SET_ORIGIN

on my sculpfun s9 grbl 1.1h runs with the option homing_force_set_origin when compiling. home position is selected as on my routers rear right and there are also mounted the limit switches.

with grbl-controller/candle everything works fine. but as soon as i use lightburn it doesn’t work. the homing works but with the jog-function it only works if i set ‘front left’ as home position under the device settings. with the correct setting ‘rear right’ both x- and y-axis are moving the wrong way around when jogging.

anyone any ideas?

kind regards
tom

  • the current lightburn version 1.2.04 on win7
  • switch connection: no/c->s/g
  • configuration read out with $$:
    $0=10 $1=25 $2=0 $3=0 $4=0 $5=0 $6=0 $10=1 $11=0.010 $12=0.002 $13=0 $20=1 $21=1 $22=1 $23=0 $24=200.000 $25=3000.000 $26=250 $27=3.000 $30=1000 $31=0 $32=1 $100=80.000 $101=80.000 $102=250.000 $110=6000.000 $111=6000.000 $112=1000.000 $120=1000.000 $121=1000.000 $122=1000.000 $130=380.000 $131=380.000 $132=200.000

If you have origin at top-right then I assume you want to be working in Quadrant III relative to this image:

If so, can you confirm that position shows as 0,0 after homing?

If so, then you should be able to do this:

  1. Set origin in Device Settings to top-right
  2. Change $3 in GRBL to $3=3 to invert your controls
  3. That may cause your homing to also invert. In that case also set $23=3.

Rehome and then retest.

1 Like

yes - quadrant 3 is what i want to be my workspace.

yes - after homing i get 0 0.

with your two suggestions ($3=3 and $23=3) it works for lightburn - but then candle and lasergrbl both jog the wrong direction.

something seems to be messed up - either in my setup or in lightburn?

I can’t speak to Candle or LaserGRBL. I can tell you that LightBurn only works properly in a positive coordinate system. So if origin is at top right. Numbers will be positive going left and down.

I want to say that LaserGRBL may always assume quadrant I although not sure how offsets are handled in that case. Or perhaps it’s just a matter of changing the button configuration in LaserGRBL but not sure. A quick look reveals that LaserGRBL uses G53 in its jogging commands. You can compare this to LightBurn by enabling “Show All” in LightBurn Console and then jogging.

1 Like

hmmm.

what i wonder is that after homing the displayed values for x and y do not reset to 0 - i have to click on ‘get position’ and then it says ‘0 0’. is that the normal behaviour in lightburn? candle and lasergrbl autoset the displayed machine-values to 0 after homing?

weren’t this a shame when a paid software couldn’t work in negative workspace like most professional equipment and also both before mentioned freeware?

I don’t think this is relevant as long at the position after “get position” shows 0,0. You can also check this by issuing ? in Console.

Neither candle or laserGRBL directly affect the machine origin values. That is tracked by the controller. Any software can query either machine position values or work position values.

I suggest you try the software and decide if the software and the model have merit. There are certainly benefits to how the software works. Being in compliance with all major laser programs including those for more industrial machines I think is a positive rather than conforming to CNC style traditions.

1 Like

It occurred to me that you may not be aware of an alternative. You could set a work offset to position 0,0 at bottom left and set origin accordingly. This could potentially allow you to work in a consistent way across programs.

1 Like

of course candle and lasergrbl do not affect/mess around with the machine values. but they show at the end of homing the correct machine position where lightburn needs obsolete manual interaction.

in addition in lightburn the values extremly lag while jogging - and this is also different to candle and lasergrbl. and it is quite unconvenient too.

can’t say much about the software lightburn as i bought my license just some days ago. but to force wrong settings in firmware (what then leeds to problems with other software) to work would be a very odd idea and very bad coding habit. and i cannot see a reason why the don’t translate the values in their application instead of relying on messing up the firmware?

thanks! are you speaking of what i found yesterday via google-search here in the forum?

but isn’t this again set in firmware and then brings problems as soon as i use other but grbl-compliant coded software?

Keep in mind that all of these usage scenarios are legitimate ways of configuring and using GRBL. One is not more or less compliant than the other, just a matter of convention.

If anything is a bit odd it’s that you configured homing to top-right which is just not that common. I suspect top-right is the 3rd most common configuration following bottom-left and top-left. And even then bottom-left represents I would guess over 90% of all lasers setup with GRBL.

Even with a work offset configured I don’t think you’d have any problem in LaserGRBL. I’m not as familiar with Candle but I don’t see it being a fundamental problem as work offsets are used commonly in CNC applications.

If you want to try this then try the following:

  1. Reverse previous changes
  2. Set work offset by issuing in Console:
G10 L2 P1 X-400 Y-400
  1. Set controller to report work position rather than machine position:
$10=0
  1. Rehome and retest
2 Likes

Don’t know if this is worth anything or not…

When there is a conflict with software packages and there is nothing in the ‘software’ itself to modify direction, there is usually a configuration issue.

There are so many ways to ‘invert’ the control signals and sometimes they conflict. One inverts a bunch of things, then to correct that you flip other controls to inverted that and end up with a mess… Software A works, B doesn’t go the right directions…

I’ve got 5 grbl machines, a Ruida and an MKS32 to play with… seen it a couple of times… Still working with the Maker Space board.

Is there a standard S9 configuration that is common and you can double check the directional values?

Good luck

:smile_cat:

2 Likes

I think PY already explained everything, just wanted to add that his is also described in the documentation already: Common GRBL/GCode Setups - LightBurn Software Documentation
Maybe this helps as well: Coordinate systems & workpiece alignment - Diode Laser Wiki

1 Like

so from what i read here it doesn’t seem to be a configuration error of mine then.

rear right is the standard in the professional field - and also in grbl a rule-compliant approach. this does not change that in the hobby area apparently many use front left.

that this standard is perfectly implemented by a free program like candle although its development stopped long before the last release of grbl shows the advantages of good coding. that lightburn abuses the firmware settings of grbl devices for its internal approach to need everything in the positive area is unfortunately a less than professional approach. it would have been possible without any problems to translate this in real time in the own software.

it has caused me several hours of headache - and it prevents a cross-software correct firmware setting. here should be urgently improved if you charge money for software and then solves it partly worse than freeware.

a bug - without question.

I suspect it probably is… when you look at 100 problems and 99 of them are configuration… I’m always dubious after hearing that exact claim a hundred times…

Where is this ‘stated’ in any ‘standard’ for grbl? You might be used to this, but much like ‘C’, how it’s implemented for each machine is usually not defined.


I’ve had to interface to many different cnc machines and a good controller will home in any quadrant. Any diy person will lay it out how they want it laid out…

There is no standard with grbl for actual ‘$values’ registers … one controller may have many different interpretations of what a ‘code’ will mean… some use bit patterns to identify pins/operation many are read as true or false… Many are just not used in some applications but could be.

I’ve been in hardware/software for fifty years this month, although now retired. I’ve used probably thousands of ‘packages’. Lightburn is by far the most simple to ‘drive’ to get excellent results more than any other. It is more intuitive than any other package I’ve ever used and the people that write it are here to help you, even when I think they need to get away from it now and then for a vacation…

If you quit on Lightburn then

  1. You won’t like any of the other packages, I can assure you of that
  2. you can’t image the ease of development in Lightburn

I sometimes think it can read my mine… :face_with_spiral_eyes:

So take a breath, get a cup of joe, settle down and relax a bit… It’s easy to get frustrated when something is happening you don’t understand… Hang in there…

You’ll do fine here … just relax…

:smile_cat:

2 Likes

i am deeply relaxed . but this kind of programming is annoying. and because i only use the program for cutting and labeling i am not interested in the rudimentary design area of lightburn. in this area solidworks and illustrator are lightyears better …

cheers from germany

No matter what package you use, you will have to learn to get artwork in and out of it. You can probably do it all within Lightburn.

If you really don’t like it, RDWorks is free and runs on your machine. With it you should have no issues.

In the end you have to choose your poison…

Good luck

:smile_cat:

1 Like

rear right is the standard in the professional field - and also in grbl a rule-compliant approach. this does not change that in the hobby area apparently many use front left.

I think you mixed two things here. Back-right is a quasi-standard in CNC (not lasers!). And this comes from the fact that common CNC machines use a moving x/y-bed below a fixed z-axis. So, if you place an object on that table, if the CNC drives to the back-right coordinate, this means that the object you are working on is moved to the front-left. So logically, it’s exactly the same.
Lasers though use a different approach with a moving x-y-gantry and a fixed bed. In this case, it makes perfectly sense to have the home position front-left.

That’s why LigthBurns decision to use this kind of coordinates makes totally sense and is completely aligned with design guidelines.

Just my opinion, though :wink:

3 Likes

thanx again!

i’ll try this way tomorrow and see if the $10=0 firmware setting does not conflict with other software like the before mentioned solution for lightburn via $3 and $23.

cheers
tom

that’s mostly correct of course and i didn’t claim anything contrary. but also big multiaxis machines with a fixed table do it that way and i’m just annoyed by the laser when it’s in the way in front and being forced to use a different layout than my cnc has. but also the decision of lightburn to make it standard like the hobby sector is completely ok.

but this has nothing to do with the way lightburn implemented it. namely stupid settings in the device firmware instead of solving it cleanly in their own code.

and that’s the only thing i criticize. and anyone who can write reasonable code and program to other interfaces/api will see it similar.

set $3=0 and $23=0 → G10 L2 P1 X-380 Y-380 → $10=0

nope. does not work and leads lightburn to a complete nervous breakdown:
→ jogging inverted
→ jogs just about half way in x and y then complains about limits and does not jog again at all
→ afther homing and press ‘get position’ that’s how lightburn looks while laser is top-right

p.s. funny thing is that candle and lasergrbl again work fine with this setting after homing just report workcords 380 380 instead of 0 0 before