Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOSender 2.0.37 Tooloffset, 2 bugs? #228

Closed
Team-Deepflights opened this issue May 29, 2022 · 3 comments
Closed

IOSender 2.0.37 Tooloffset, 2 bugs? #228

Team-Deepflights opened this issue May 29, 2022 · 3 comments

Comments

@Team-Deepflights
Copy link

Btw, it found a few "bugs" in IOSender 2.0.37:
I tried C&P the X Z values into the tooloffset, the values are there but if I click the button to save them, nothing happens. I had to retype them manually.
If a tool with offsets is loaded, the value is gone in the offset page if you click on "Reset", it´s lost at all. also rebootig keeps the affected toolfield to 0,00 0,00. ( I was lucky, I copied the values into a TXT) :-)

@terjeio
Copy link
Owner

terjeio commented May 31, 2022

I tried C&P the X Z values into the tooloffset, the values are there but if I click the button to save them, nothing happens. I had to retype them manually.

Fixed in the latest edge version .

If a tool with offsets is loaded, the value is gone in the offset page if you click on "Reset", it´s lost at all.

I am a bit usure about what you mean by this... Do you have a controller with a tooltable compiled in or are you using the generic offsets (G5x)?

also rebootig keeps the affected toolfield to 0,00 0,00.

A reboot clears current tool and active tool offset. M61 can be used to reestablish the current tool. The offset has to be reestablished as well either from the tooltable or explicitly.

@Team-Deepflights
Copy link
Author

The tooltable is compiled because I have more different tools (18) as the usual G5x offsets.
I use M61 in a homingmacro to set tool 0 for reference.
Call M61 is worthless if the tooltable have no offsets set. :-)

I tell you that happened, please remember we are talking about a lathe, the gcode load tool 16, but while going G0 to the starting point, I realize that the material to be processed is not at ZO so I hit reset the lathe stops as it should.
I know, cycle stop would have been better, but G0 in my lathe is really fast, there was no time for a decision :-)
So I home again, set the material to Z0 and start the cycle again, the lathe go to do the toolchange and wait (manual toolchange). There I saw that the coordinates did not change and so I took a look at the tooltable, tool 16 was 0,000 in both axis.

I tried this 2 times with different toolstation numbers to replicate, could have also been my mistake, on both the called tool was erased after stopping with emergency stop.

@terjeio
Copy link
Owner

terjeio commented Jun 1, 2022

There are bugs related to this, change this code to

        case ToolLengthOffset_Cancel:
            idx = N_AXIS;
            do {
                idx--;
                tlo_changed |= gc_state.tool_length_offset[idx] != 0.0f;
                gc_state.tool_length_offset[idx] = 0.0f;
#ifndef N_TOOLS
                gc_state.tool->offset[idx] = 0.0f;
#endif
            } while(idx);
            break;

        case ToolLengthOffset_EnableDynamic:
            {
                float new_offset = offset / settings.axis[idx].steps_per_mm;
                tlo_changed |= gc_state.tool_length_offset[idx] != new_offset;
                gc_state.tool_length_offset[idx] = new_offset;
#ifndef N_TOOLS
                gc_state.tool->offset[idx] = offset;
#endif
            }
            break;

and try again. I will look into this in more detail a bit later since there is a todo comment in the code about whether the offset should be kept over a soft reset/e-stop when a tool table is compiled in. Do you know how other controllers handle this?

terjeio added a commit to grblHAL/core that referenced this issue Jun 12, 2022
…o allow backlash compensation. Ref [ESP32 issue 25](grblHAL/ESP32#25).

Fixed feed rate handling for corexy kinematics. Ref issue #147.
Fixed tool table/tool change bugs. Ref. [ioSender issue 228](terjeio/ioSender#228).
@terjeio terjeio closed this as completed Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants