Skip to content

interp's named variables for tool info are wrong #239

Description

@SebKuzminsky

Forum user jtc reports a bug with #<_current_pocket>:

https://forum.linuxcnc.org/10-advanced-configuration/32412-bug-in-current-pocket#88904

The documentation for #<_current_pocket> says:

#<_current_pocket> - Return pocket number of the current tool.

However, on startup the value is 1, which is wrong. And after Tx M6 the variable holds the index into Interp's tool table, which may differ from the pocket number in the tool table file and thus is also wrong.

To further complicate the issue, Random and Non-random tool changes differ in their behavior here.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions