Y axis inverted and offset on Neje max e4 v1

Im using Neje max4 v2 with extension kit.

I replaced my circuit board because one of the slots came lose, I Did everything the right way as far as Im concerned. Only I have a problem with the y-axis. It seems to be inverted and the origin is in the wrong position. Even after doing all the steps provided by both Neje and the things I found on forums. After initially added the machine manually and homing for a couple of times, when i press “get position” it says and shows it is at y:-460…

After that I have origin position set at bottom left, I have changed the size of the laser in machine settings to y:1030 (which I can only do via console and not via the actual “machine settings”)
Now after homing when I request the position it says: y:110

Which kinda makes sense if you add the numbers, but it doesn’t solve the problem.
When I Jog my laser it behaves weird, the y-axis seems to be inverted.
After playing with the origin position I can get the laser to jog the right way, but then after drawing a shape and have the laser frame that shape, it wants to move to position off the artboard.
Also inverting the y-axis in machine settings doesnt work, it just flips the whole problem the other way around…

It’s hard to explain what is actually happening because of the orientation of how I have my laser set up.

I hope the screenshots provided illustrate my problem clearly… Am I missing something? I tried everything within my possibility’s, it’s getting a bit frustrating now 🙂

Need more input.

  1. What did you extend?
  2. Did you change either GRBL parameter $130 or $131?
  3. In the first image, is the laser module sitting close to the Home position?

Which one is wrong, Home or Origin?

Home - A machine physical location determined by limit switches. It cannot be moved (by physically relocating the switches) to any location other than one of the 4 corners. The controller may set this location to 0,0 for the Origin, but not always.
Origin - A software or program location designated as the 0,0 location. The Origin can be anywhere within the machine frame. Moving the Origin requires a strong working knowledge of graphic coordinate systems. Lightburn requires operating in the First quadrant, where all locations are +X+Y values.
G54 - A work coordinate offset, normally all zeroes. If any of the 3 positions (X, Y, or Z on that order) are non-Zero, then the numbers are algebraically added to the Origin numbers. This essentially moves the “working” Origin to a new location.

Hi MikeyH,

Thanks for your reply,

I physically extended the y axis from 460 to 1030. the machine was working fine for about 1,5 years, after changing the circuit board this problem appeared.

-It homes fine to the upper left corner.
-In the settings, the origin is set to bottom left corner.
-when I home my machine: it moves to the upper left corner like it should, no problems with that.
-But when I press “get location” it gives me these coordinates: x:0 y:-460
-And yes I have changed the $131 parameter to 1030 to match the size of my machine
-After homing, when I press “get location” it says it is at: x:0 y:110

What you are trying to explain to me about g54 I really don’t understand Im afraid.

I hope I have explained my problem somehow clearly.

Why? Yours should be the top left button (red X would be front left Home position).

You Home it and get one setting, then Home it again and get different numbers?

Do not worry about those non-zero numbers. That is what some controllers do at the Home position. There is a cosmetic fix for that, but not until you get your Homing procedure under control.

Yes, so I start lightburn, it gives me coordinates 0 0 0 , After jogging x and y and then homing i get coordinates: 0 110 0.

I provided a screen recording of the problem in the link:

Origin is set at top right.

Also provided a screen rec after changing the origin to top left:
It just moves the problem to the other corner.

That is because Lightburn DOES NOT KNOW where the laser module is located. The assumption is that the Origin is wherever the head is located when it is powered up. This is how users without limit switches have to operate.

When you Home the machine, then Lightburn is told where the controller says the head is located.

When you Home the machine, does it travel to the front left corner? If not, what are the X and Y values at that front-left position?

Thanks for clarifying.
My laser does use limit switches.
After homing it travels to the front left corner and gives the coordinates:
x:0 y:110 z:0

If that 110 bothers you, try entering G54 Y-110 in the Console window. I hope I got the polarity right.

So if I understand correctly (please bear in mind I’m a grbl noob and not native English) the command G54 Y-110 offsets the origin by -110 temporarily? I put it in the console command and the laser moved, the origin in lightburn changed, but the origin is now off of the working area…. See screenshot above

Also after homing that y-offset is back to its original before the G54 Y-110 command

However. I found another workaround. See the screenshot below:

When I frame the blue rectangle my laser goes off-limits, but when I frame the red rectangle it doesn’t
So in my console I typed the command $131=1950. It moves the origin to the top left corner, where my laser actually homes. And then everything works just fine.

So it works for now, but it doesn’t feel right that my machine max Y travel distance has to be set to 1950 when it actually is 1030. I just hope that I wont run into problems later on because of these settings…

It will remember this even when you power down the laser.

I hope this makes more sense to someone else than it does to me.

Where did you get this number? It does not compute based on what you have provided so far.

You can almost be sure it will. When you get free time, we can dig into what is really happening here. I think it is going to take a step-by-step setting up the machine.

Your screen shows still shows a -110mm in the Yaxis box. It should have changed to zero or -220 in the display. Maybe the change did not take.

That’s the thing, it didn’t take the change…

How would you approach this? because I would love to..!

Thanks so far.

This can be a problem. Some manufacturers lock out being able to make GRBL parameter adjustments. In the Console window, right click and Clear Window. Enter $$ and you should see the list of parameters. If not, game over.

If you do, copy/paste in a Reply. Also copy/paste into a text file and save in a safe place. Enter $25=1000 (Homing Seek speed) in the Console window, or something different than what is already there for $25. Enter $$ again to see if the new value stuck. If not, making corrections in the next section will be useless.

  1. Establish the location of the Home position switches.
  2. Make sure the four dot Origin in Device Settings window matches the Home position on your machine.
  3. Verify the travel for Home is the correct direction ($23). HINT: Use the Machine Settings window so you can correct one axis at a time.
  4. Verify the Jog directions are correct ($3).

If you made it this far, then Home the machine and report the X and Y numbers from the Move window.

$$

$0=10

$1=255

$2=0

$3=0

$4=0

$5=0

$6=0

$10=3

$11=0.010

$12=0.002

$13=0

$20=0

$21=0

$22=1

$23=1

$24=250.000

$25=2500.000

$26=250

$27=1.000

$30=1000

$31=0

$32=1

$40=0.200

$41=10

$42=10

$43=0

$44=0

$100=80.000

$101=80.000

$102=800.000

$103=8.889

$110=24000.000

$111=7500.000

$112=1200.000

$113=21600.000

$120=400.000

$121=250.000

$122=20.000

$123=250.000

$130=750.000

$131=1950.000

$132=45.000

$133=360.000

So it takes the changes alright, I will now try the next steps…

Excellent, you now have a backup plan

1 Like

This Xaxis max speed is unrealistic if it is not a galvo machine. I see other settings that are questionable, but we will attack them after the original issues are sorted out.

1: Well the new circuit board doesn’t have the home position switches the way my old circuitboard did. However, it does automatically home, and doesn’t go beyond it’s boundaries. So can it be there is a build-in system? See the picture below, the blue and black switches are the homing switches on the old board.

2: I have set it to the right corner

3: It homes in the right position with these settings:
x homing direction invert ($23) = true
y homing direction invert ($23) = false

4: The jog directions are correct, although jogging Y in + direction is the arrow pointing up, not sure if this is supposed to be like this, feels counter-intuitive.

  1. Not sure what you mean about the new board and the switches. But I doubt there is a built in system. It should be switches to wire it connectors to controller board. I missed the part about getting a new controller board. I do not see blue and black switches in the image.
  2. You said the “right” corner, but did not say which corner.
  3. Ok, Homing cycle confirmed.
  4. Imagine a pice of graph paper with 0,0 in the lower left corner. Then +Y would be up the paper. Continous Jog is off in your image. Did you check that too?

It looks like you are ready for the next step, but go thru all the steps listed above again. This is just to make sure all the ducks are in a row. :grin:

1: I marked them in the image…..The blue one was the switch for the Y-axis, the black one for the X-axis. So they would normally be triggered when hitting the top left corner (that’s also the corner you’re looking at in the picture) Those switches are not there on the new board, but still homing alright,…..

2: In my mind the “right” corner is the top left corner. The corner where the laser homes… And then it should be logical to have your origin in the top left corner also right?

And a picture of the actual situation:

  1. Continious jog doesn’t make a difference in this situation, it’ jogs continiously, which is nice to have. but direction stays the same.

That does not make sense. Maybe there are other switches on the machine? When you click on the Home button in Lightburn, does it Home as described below?

HOME

  1. Trolley and gantry rapid move towards the switches.
  2. When the switches are hit, the machine will stop and reverse. First Zaxis must complete if installed, then X and Y. It may not reverse X or Y until both switches are found for X and Y.
  3. The machine will pull off the switches slowly until the switches open.
  4. The machine will reverse back onto the switches very slowly until the switches close.
  5. The machine will reverse and pull off the switches slowly until they open.
  6. The controller establishes this as the Home (and Origin) position. It is usually shown as something very close to 0,0 as the position if the controller is set for the first quadrant. If it shows large numbers, this can be changed with the G10 command or the CNC Mode switch.

There is no other version of the Home cycle. If you have limit switches, this is how it should work.

If you do not have limit switches, where it powers up is the Origin. Home is a machine mechanical function. Origin is a software design position. They are not the same thing.

Correct corner, but not always. If your laser shows a non-zero value at the Home position, then Origin can be somewhere else. See my explanation of Home and Origin above.

Yes, based on your layout, that is the top left corner. You are standing at the side of the laser, and not the bottom. From the end view (opposite the gantry), your Origin (NOT Home) position would be the front left corner. (Note: This means [I think I am right] that you should select the lower left Origin button in the Device Settings window.) But from this view, X+ goes right and Y+ goes away. This means you are in Quadrant 1 and Lightburn is happy. :grin:

Good! We now have Home working and Jog is in the right direction.

Let me know If I am right on the Origin radio button. Power up everything and there should be a small green square in the lower left corner of the Grid. The scales should both be zero there and go positive both up and right.

If we are good to go, there is just one more step.