Hello Guest it is April 25, 2024, 08:48:14 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Watchmaker

Pages: 1
1
Suddently config menu won't allow me to save (apply button greyed out) and it changed the T on M6 selection to use T for next tool upon start up. Need to change it back to T is current tool on M6 line, but the config won't save. Any suggestions are welcomed. Screen set is normal and all functions are working otherwise. Looked in the machine.ini file to manually change this but can't locate it.

2
Need to probe to small interpolated bores on diagonal corners of each part blank to find part center (G54,5,6,7..), and angle of rotation when flipped to side 2. Angle of rotation to be corrected via G68 on op2. Front op1, Back op2 to align within microns when flipped. Any ideas welcomed. Normal practice in my field but probing two bores does not seem to be an option in mach 4 probing page. Watch parts. Any help appreciated.


3
Looking for anything that actually works. Please post your Macro below with a brief description of execution. .

Thanks!

4
Would like to first give a big Thank You to Daz for taking the time to make his wonderful videos and knowledge sharing.

I've tweaked Daz' manual tool change - probe macro to work with my NSK pneumatic collet spindle and now building a 10 tool or so ATC. I would like to inject the added (and needed) macro pieces within this working macro as it would also make for a good base for many to have a start of their own for Mach 4. If anyone could help it would be so greatly appreciated.

My machine is custom built by myself strictly for making complicated timepiece parts that require < 1 micron of error. My ATC needs are on the small 3mm shank size max. and stay raw at the shank. ATC will be a half circle on its own mount due to my custom X fixture by MiteeBite being the entire 12" length of my table, and needing to flip, again within < 1 micron of repeatability. Motor for ATChanger is on "A" and the only movement needed is on it's 180 degree arc. Tool is released and grabbed via M7 open / M9 close (my misting is tied to spindle on/off).

Also, I know a lot of you have asked Daz if he could post his macro for tool touch off and manual tool change. I searched forever to no avail and ended up doing a manual rewrite from his vid. I'll post mine here for all to have, but it does have about 5 days of tweaks to get it working for my system and needs. Please re-reference his original here:
https://youtu.be/w1xzYPT27NY

My tweaks to Daz' Macro:
Spindle off/on
Air collet release
(please note collet grab is not part of the macro. It's on a button on my touch screen to be used after tool change message stops the macro for)
Also.. biggest problem on his code was that there was no G31 ! Now placed where it should be.

This macro now kicks.

System:
NSK 50,0000 rpm pneumatic collet release spindle
Pokeys 57cnc
X/Y/Z
A = NEMA 17 ATC half circle for 3mm shank direct inject to collet


Needs:
ATC macro placed after M7 call here:
wx.wxMessageBox ("Please change to tool number "..selectedtool.." "..changetoo.."and press ok to continue")

Greatly appreciative of all the help.

/////////////////////////////////////////////////////


 WORKING WITH SPINDLE SHUT OFF AND COLLET OPENING FOR MACH 4
 Probe_Spindle Off/On_Pneumatic Collet opening_Feed Rate per Macro

////////////////////////////////////////////////////
 function m6()

   local inst = mc.mcGetInstance();
   local selectedtool = mc.mcToolGetSelected(inst)
   local currenttool = mc.mcToolGetCurrent(inst)
   local xstart = mc.mcAxisGetPos(inst, 0)
   local ystart = mc.mcAxisGetPos(inst, 1)
   
   if selectedtool == currenttool then
   return
   mc.mcCntlSetLastError(inst, "Toolchange Activated But Not Required")
   else
    mc.mcCntlGcodeExecuteWait(inst,"G90 G53 M5 G01 G94 z-20 F500\n x3.4 y27")
    RunProbe (currenttool)
   local toolz = mc.mcAxisGetPos (inst, 2)
   mc.mcCntlGcodeExecuteWait (inst,"G90 G53 G0 z-20.0")
   mc.mcCntlGcodeExecuteWait (inst,"M7")
   local changetoo = mc.mcToolGetDesc (inst, selectedtool)
   wx.wxMessageBox ("Please change to tool number "..selectedtool.." "..changetoo.."and press ok to continue")
   mc.mcCntlGcodeExecuteWait (inst,"G90 G53 G0 x3.4 y27")
   RunProbe (selectedtool)
   mc.mcAxisSetPos (inst, 2, toolz)
   mc.mcCntlGcodeExecuteWait (inst,"G90 G53 G0 z-20.0")
   mc.mcCntlGcodeExecuteWait (inst,"G90 M3 G0 x"..xstart.." y"..ystart)
   mc.mcToolSetCurrent (inst, selectedtool)
   wx.wxMessageBox ("Toolchange finished")
   end
end
function RunProbe (tool)
   local inst = mc.mcGetInstance ()
   toollen = mc.mcToolGetData (inst, mc.MTOOL_MILL_HEIGHT, tool)
   if toollen == 0 then toollen = 20 end
   mc.mcCntlSetLastError (inst, "Changing to fallback length")
   local probestart = -59 + toollen
   mc.mcCntlGcodeExecuteWait (inst, "G90 G53 G0 z"..probestart)
   mc.mcCntlGcodeExecuteWait (inst,"G01 G91 G31 z-29.0 F100")
end

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



////////////////////////////////////////////////////////////////////////////

5
Would like to first give a big Thank You to Daz for taking the time to make his wonderful videos and knowledge sharing.

I've tweaked Daz' manual tool change - probe macro to work with my NSK pneumatic collet spindle and now building a 10 tool or so ATC. I would like to inject the added (and needed) macro pieces within this working macro as it would also make for a good base for many to have a start of their own for Mach 4. If anyone could help it would be so greatly appreciated.

My machine is custom built by myself strictly for making complicated timepiece parts that require < 1 micron of error. My ATC needs are on the small 3mm shank size max. and stay raw at the shank. ATC will be a half circle on its own mount due to my custom X fixture by MiteeBite being the entire 12" length of my table, and needing to flip, again within < 1 micron of repeatability. Motor for ATChanger is on "A" and the only movement needed is on it's 180 degree arc. Tool is released and grabbed via M7 open / M9 close (my misting is tied to spindle on/off).

Also, I know a lot of you have asked Daz if he could post his macro for tool touch off and manual tool change. I searched forever to no avail and ended up doing a manual rewrite from his vid. I'll post mine here for all to have, but it does have about 5 days of tweaks to get it working for my system and needs. Please re-reference his original here:
https://youtu.be/w1xzYPT27NY

My tweaks to Daz' Macro:
Spindle off/on
Air collet release
(please note collet grab is not part of the macro. It's on a button on my touch screen to be used after tool change message stops the macro for)
Also.. biggest problem on his code was that there was no G31 ! Now placed where it should be.

This macro now kicks.

System:
NSK 50,0000 rpm pneumatic collet release spindle
Pokeys 57cnc
X/Y/Z
A = NEMA 17 ATC half circle for 3mm shank direct inject to collet


Needs:
ATC macro placed after M7 call here:
wx.wxMessageBox ("Please change to tool number "..selectedtool.." "..changetoo.."and press ok to continue")

Greatly appreciative of all the help.

/////////////////////////////////////////////////////


 WORKING WITH SPINDLE SHUT OFF AND COLLET OPENING FOR MACH 4
 Probe_Spindle Off/On_Pneumatic Collet opening_Feed Rate per Macro

////////////////////////////////////////////////////
 function m6()

   local inst = mc.mcGetInstance();
   local selectedtool = mc.mcToolGetSelected(inst)
   local currenttool = mc.mcToolGetCurrent(inst)
   local xstart = mc.mcAxisGetPos(inst, 0)
   local ystart = mc.mcAxisGetPos(inst, 1)
   
   if selectedtool == currenttool then
   return
   mc.mcCntlSetLastError(inst, "Toolchange Activated But Not Required")
   else
    mc.mcCntlGcodeExecuteWait(inst,"G90 G53 M5 G01 G94 z-20 F500\n x3.4 y27")
    RunProbe (currenttool)
   local toolz = mc.mcAxisGetPos (inst, 2)
   mc.mcCntlGcodeExecuteWait (inst,"G90 G53 G0 z-20.0")
   mc.mcCntlGcodeExecuteWait (inst,"M7")
   local changetoo = mc.mcToolGetDesc (inst, selectedtool)
   wx.wxMessageBox ("Please change to tool number "..selectedtool.." "..changetoo.."and press ok to continue")
   mc.mcCntlGcodeExecuteWait (inst,"G90 G53 G0 x3.4 y27")
   RunProbe (selectedtool)
   mc.mcAxisSetPos (inst, 2, toolz)
   mc.mcCntlGcodeExecuteWait (inst,"G90 G53 G0 z-20.0")
   mc.mcCntlGcodeExecuteWait (inst,"G90 M3 G0 x"..xstart.." y"..ystart)
   mc.mcToolSetCurrent (inst, selectedtool)
   wx.wxMessageBox ("Toolchange finished")
   end
end
function RunProbe (tool)
   local inst = mc.mcGetInstance ()
   toollen = mc.mcToolGetData (inst, mc.MTOOL_MILL_HEIGHT, tool)
   if toollen == 0 then toollen = 20 end
   mc.mcCntlSetLastError (inst, "Changing to fallback length")
   local probestart = -59 + toollen
   mc.mcCntlGcodeExecuteWait (inst, "G90 G53 G0 z"..probestart)
   mc.mcCntlGcodeExecuteWait (inst,"G01 G91 G31 z-29.0 F100")
end

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



////////////////////////////////////////////////////////////////////////////


6
Mach4 General Discussion / Mach 4 Config Menu's Won't Save
« on: May 11, 2018, 02:28:01 PM »
Very grateful for any insight. New build that's up and running but it seems M4 won't save any menu config. changes. Can't tune motors, set soft limits on/off or specs., etc. Tried re-installing M4 and also looking for the .xml file someone noted was in M3 giving them trouble in the past. No go. System pref's seem to be set to write across the board so I'm a bit crazed on this one.

System:
M4 (build 4.2.0.3481)
Windows 10 fresh install on M4/Pokeys only brand new board
Pokeys 57cnc
Gecko 214's



Pages: 1