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.
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:
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.