luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
733 stars 304 forks source link

the movement of the axes is reversed compared to the GRBL configuration[BUG] #351

Closed Ulisse76 closed 1 year ago

Ulisse76 commented 1 year ago

In the jog rose the movement of the axes is reversed compared to the GRBL configuration. Movement works fine under Lightburn/LaserGRBL and TS35 monitor.

luc-github commented 1 year ago

what version are you using ?which what board?

Ulisse76 commented 1 year ago

firmware: 2.10 board: MkS DLC32 2.1

luc-github commented 1 year ago

you mean when you ask X+10 it is not doing X+10?

Ulisse76 commented 1 year ago

when I ask for X10 it seems to send to controller -X10. Can you show me the point in the HTML code where I could manually reverse this thing?

luc-github commented 1 year ago

the code is minified - it is not that simple - also your issue is weird

Can you do a screenshot of what you are doing ?

I cannot duplicate your issue when pressing -X side I got -X and when pressing +X side I have +X Jog

Ulisse76 commented 1 year ago

yes, i have seen the GRBL commands and they are being fixed.

At this point I think it's a Firmware problem (all versions). Firmware does not invert the axes when it takes commands from WebUI or APP (therefore from WebSocket).

The problem arises from the fact that in some CNCs it is necessary to invert the movement of the axes from the firmware --> X/Y direction pin invert ($3)

Can you help me identify in the code the point where I could put two radiobuttons to reverse X and Y ?

luc-github commented 1 year ago

I do not understand - you wrote commands are incorrect and now you mention commands are corrects also now you write it is FW issue and you want to fix it in webui ? what do you expect that adding radio buttons will do ?

Ulisse76 commented 1 year ago

yes, it's only been a few hours since I've been working on the problem and I'm slowly realizing where the problem is, looking for a solution. I can't figure out if it's a firmware or WebUI issue.

Adding the two radiobuttons in my opinion is a suggestion to improve the functions of the page. if you prefer you can close the thread and edit the Html by yourself as I did in the RoseJog thread.

Thank you

luc-github commented 1 year ago

Sorry - my issue is more : I do not understand your issue because what you describe is not clear neither consistent So I cannot fix an issue when I do not understand what is the problem you meet

luc-github commented 1 year ago

I did this - check settings to adjust index.html.gz

Let me know if this address your problem ?

Ulisse76 commented 1 year ago

I identified (and solved) the problem better. Unfortunately Lightburn, depending on the position of the homing, reverses the DIRECTION of the axes. Playing with the GRBL parameters I put the movements back in the right direction. thank you for the support then and if you want we can delete the thread.

luc-github commented 1 year ago

did you check the webui I posted ?

Ulisse76 commented 1 year ago

in this version you reversed X with Y. so it's not good. Before solving the problem, I needed to reverse the DIRECTION of X or Y

luc-github commented 1 year ago

indeed there was a typo and I did not tested fully please give a try to this one - it should help to reflect real cnc orientation index.html.gz

Ulisse76 commented 1 year ago

now it's OK! it would be nice to have two radio buttons to reverse the directions at will.

Know that this change is actually important because I haven't solved the problem with the Homing position issue.

luc-github commented 1 year ago

it would be nice to have two radio buttons to reverse the directions at will.

What do you mean ?

There are reverse X and reverse Y settings - what your settings should do in addition of existing ones ?

image

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.