Skip to content

Enhanced Renes changes to the non-random tool changer so the tool id …#593

Closed
mydani wants to merge 1 commit into
LinuxCNC:2.7-pocket-fixfrom
mydani:mydani/2.7-pocket-fix
Closed

Enhanced Renes changes to the non-random tool changer so the tool id …#593
mydani wants to merge 1 commit into
LinuxCNC:2.7-pocket-fixfrom
mydani:mydani/2.7-pocket-fix

Conversation

@mydani

@mydani mydani commented May 17, 2019

Copy link
Copy Markdown

…/ pockets are correct with internal as well as remapped m6. Non-random means:

Tool is loaded from and returned to the same pocket as given in the tool table
Tool 0 is special -> no tool.
Pocket 0 is special -> do not return to ATC but manual change instead (ToDo).
Current_Pocket -> original (tool table) pocket of the tool currently in spindle.

Signed-off-by: mydani mydani@gmx.de

…/ pockets are correct with internal as well as remapped m6. Non-random means:

Tool is loaded from and returned to the same pocket as given in the tool table
Tool 0 is special -> no tool.
Pocket 0 is special -> do not return to ATC but manual change instead (ToDo).
Current_Pocket -> original (tool table) pocket of the tool currently in spindle.

Signed-off-by: mydani <mydani@gmx.de>
@mydani

mydani commented May 17, 2019

Copy link
Copy Markdown
Author

Tests are still left untouched, might fail. Will adapt them in a new commit.

@rene-dev

Copy link
Copy Markdown
Member

It might work, but adding the index everywhere is not the way to go.
the index should go entirely, as it is not required, and will be removed in a future version.

@rene-dev

Copy link
Copy Markdown
Member

there are no tests checking for what you are fixing. you need to cherrypick and fix sebs toolinfo test from my branch to actually test the tool info.

@mydani

mydani commented May 17, 2019

Copy link
Copy Markdown
Author

It might work, but adding the index everywhere is not the way to go.
the index should go entirely, as it is not required, and will be removed in a future version.

Can you give me a pointer to the recent implementation? Tool table index = pocket sucks imho ;)

@rene-dev

Copy link
Copy Markdown
Member

#528
there are a few issues left, and a lot of unpushed code which fixes them that Im still cleaning up.
the tool number is the only thing that should get passed around, as its unique, the only thing that the interpreter cares about, and you can get everything from the tool number.
This is because Im also preparing the code for the new sqlite based tooltable, which has pockets, but no index. this also allows to add arbitrary fields, like max rpm, tool hours, ...

@mydani

mydani commented May 17, 2019

Copy link
Copy Markdown
Author

Sounds very reasonable. Let me know when you need some support or a reviewer. I will close the pull request and keep the SW running at my machines until your branch is available.

@mydani mydani closed this May 17, 2019
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

Successfully merging this pull request may close these issues.

2 participants