-
-
Notifications
You must be signed in to change notification settings - Fork 386
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
Problem: M6 Macro is reporting the same value for _current_tool, _selected_tool and #5400 #1350
Comments
Sorry for the delay. I can look into this problem now. Do you know if there is a standard parameter number for current tool. I did not find anything at LinuxCNC. I saw some Fanuc references to #4120 |
There is a new branch that should fix the problem. https://github.com/bdring/FluidNC/tree/Fix_selected_tool_param This will go into the next release. Testing is appreciated. |
I will adjust my M6 Script and try it tomorrow... |
Did you get a chance to test this? |
No as i accidently blew up my esp32. Replaced it lay night going to test tonight. |
Wasn't able to give it a extensive test but it appears to be working |
Wiki Search Terms
_current_tool _selected_tool
Controller Board
6-pack
Machine Description
Queenbee (C-Beam based) with Huyang vfd
Input Circuits
No response
Configuration file
Startup Messages
User Interface Software
Webui
What happened?
When attempting to use M6_Macro for tool change _current_tool, _selected_tool, #5400 (from wiki) all report the same tool. current_tool should be what is in the spindle, _selected_tool should be what is passed in M6 T. _current tool would be used to put the tool back and selected_tool would be used to indicate what tool needs picked up
GCode File
(debug, Current tool #<_current_tool> Selected Tool #<_selected_tool> 5400 #5400)
Other Information
M6 T1
[MSG:DBG: VFD setState:5 SpindleSpeed:0]
[MSG:DBG: RPM:0 mapped to device units:0]
[MSG:DBG: VFD setState:5 SpindleSpeed:0]
[MSG:DBG: RPM:0 mapped to device units:0]
[MSG:INFO: Huanyang spindle changed to tool:1 using m6_macro]
[MSG:INFO: Huanyang spindle run macro: $SD/Run=atc/tc.nc]
ok
[MSG:DBG: Macro line: $SD/Run=atc/tc.nc]
<Idle|MPos:-5.000,-5.000,-5.000,0.000|FS:0,0|Ov:100,100,100|SD:100.00,>
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T1 F0 S0]
[MSG:DBG: DEBUG, Current tool 1.000000Selected Tool 1.0000005400 1.000000]
[MSG:DBG: DEBUG, Current tool selected. Tool change bypassed.]
[MSG:DBG: /atc/tc.nc job sent]
[MSG:DBG: job sent]
<Idle|MPos:-5.000,-5.000,-5.000,0.000|FS:0,0>
$G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T1 F0 S0]
ok
M6 T2
[MSG:DBG: VFD setState:5 SpindleSpeed:0]
[MSG:DBG: RPM:0 mapped to device units:0]
[MSG:DBG: VFD setState:5 SpindleSpeed:0]
[MSG:DBG: RPM:0 mapped to device units:0]
[MSG:INFO: Huanyang spindle changed to tool:2 using m6_macro]
[MSG:INFO: Huanyang spindle run macro: $SD/Run=atc/tc.nc]
ok
[MSG:DBG: Macro line: $SD/Run=atc/tc.nc]
<Idle|MPos:-5.000,-5.000,-5.000,0.000|FS:0,0|WCO:-751.093,-1152.339,-97.600,671.223|SD:100.00,>
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T2 F0 S0]
[MSG:DBG: DEBUG, Current tool 2.000000Selected Tool 2.0000005400 2.000000]
[MSG:DBG: DEBUG, Current tool selected. Tool change bypassed.]
[MSG:DBG: /atc/tc.nc job sent]
[MSG:DBG: job sent]
<Idle|MPos:-5.000,-5.000,-5.000,0.000|FS:0,0>
The text was updated successfully, but these errors were encountered: