Hello Guest it is May 15, 2024, 04:24:58 PM

Recent Posts

Pages: 1 2 3 4 5 6 7 8 9 10
1
Thanks Swifty. I found the setting but for some reason it won't stick. When I set it, close the config dialog. Open it again, the setting is stuck on "Tool is the Next Tool". Any thoughts ?
2
Go to Configure>Control and on the Tools tab make sure “T on m6 line is tool to use”
3
I have written a M6 manual tool change macro. All the probing operations work as expected. The problem occurs when I run the M6 script more than once. I wrote a test gcode file that does this :

T1 M6
T2 M6
T3 M6
M30


On the first M6 call, the current tool is initially 99, selected tool is 1, then the current tool is set to 1(selected tool)
On the second M6 call, the current tool is initially 1 AND the selected tool is ALSO 1 !!!current tool is set again to 1!
On the third M6 call, the current tool is initially 1 AGAIN !!  and the selected tool is 2

T3 is never "selected"

Any ideas why the selected tool does not track the program T* setting ??


---------
This is the simple m6 test

function m6()
   local inst = mc.mcGetInstance();
   
    --get current state
    mc.mcCntlSetLastError(inst, "M6 Tool Change Test Started!")
      local selectedTool = mc.mcToolGetSelected(inst)
   selectedTool = math.tointeger(selectedTool)
   local currentTool = mc.mcToolGetCurrent(inst)
   currentTool = math.tointeger(currentTool)
    mc.mcCntlSetLastError(inst, "Starting Current Tool "..tostring(currentTool).." Selected Tool "..tostring(selectedTool))
 
    
   -- set current tool to new(selected) tool number
    mc.mcToolSetCurrent(inst, selectedTool)

   currentTool = mc.mcToolGetCurrent(inst)
   currentTool = math.tointeger(currentTool)
   
   mc.mcCntlSetLastError(inst, "Ending Current Tool "..tostring(currentTool).." Selected Tool "..tostring(selectedTool))
     selectedTool = 0
    mc.mcCntlSetLastError(inst, "Tool Change Test Finished\n")

end

if (mc.mcInEditor() == 1) then
 m6()
end

4
Works in progress / Dark Screen set
« Last post by Mike_Parkin on May 14, 2024, 06:32:56 AM »
I like the dark screen set, but how do i get into settings.  There is no settings tab???
5
General Mach Discussion / Re: G31 is sometimes moving the wrong axis.
« Last post by Powerman on May 13, 2024, 09:33:02 PM »
I have experienced this same problem with movement commands moving the wrong axis. This issue was resolved by adding the following line, code "G90 G17" near the top of my code. Hope this helps someone else!
6
Works in progress / Re: WaterJet
« Last post by birillo1959 on May 13, 2024, 11:34:01 AM »
Is it paid or can you post the screenset?
7
Mach4 General Discussion / Re: Mach4 Trace not generating tool path
« Last post by Rob G on May 13, 2024, 10:46:29 AM »
We are looking at this right now.  Thank you for the report!
8
Mach4 General Discussion / Re: Lathe spindle encoder
« Last post by Steve Stallings on May 13, 2024, 10:03:38 AM »
Note that if you use the Z channel of the encoder, the encoder must be "geared" 1:1 with the spindle.
9
Mach4 General Discussion / Re: Lathe spindle encoder
« Last post by JohnHaine on May 13, 2024, 04:33:46 AM »
Thanks Graham.  So the answer is yes, and the encoder either needs to have a z channel or a separate 1 ppr sensor.
10
Mach4 General Discussion / Re: Lathe spindle encoder
« Last post by Graham Waterworth on May 12, 2024, 07:32:57 PM »
I use the Z channel on the encoder for the index pulse.
Pages: 1 2 3 4 5 6 7 8 9 10