Programmatically accessing MSM probing routines?

MSM Mill mode support
Post Reply
danielbriggs
Posts: 22
Joined: Sun Nov 16, 2014 8:49 am

Programmatically accessing MSM probing routines?

Post by danielbriggs »

Hi Dave,
I had a quick search, but couldn't find my answer to this on this forum.

I have started making a batch of parts on a variety of fixture plates which can have anything from 3 to 30 units. I've programmed the part in CAM (Fusion 360) and it posts the part multiple times in G54, G55... etc. This works really well, but I want to add some semi-automated way to probe all of the bits of stock for that fixture in one hit during setup before it goes off and cuts them all. It no issue to do it manually for 2-4 parts, but becomes really tedious with a fixture plate of 30x parts each with their own WCS.

Now, Fusion 360 does offer basic probing routines, but I don't think they're as good as what's built into MSM, so I'd like to programmatically use yours. The aim is to write a small separate macro which probes around all the areas it thinks a corner of the various bits of stock should be, and then updates all the WCS G54 - G59 P'x'.
Then, load up the posted CAM file to do the cutting.

So, how do I call from G-code your probing routines, rather than clicking on the graphics to run them?
Is there a list for the dozens of routines you have built in?

Pseudo G-code:

Code: Select all

M6 T100 (Probe)

G54
G00 X0 Y0
G59 P2
***Run MSM probing routine to find Z height and X/Y corner of block***

G54
G00 X50 Y0
G59 P3
***Run MSM probing routine to find Z height and X/Y corner of block***

G54
G00 X100 Y0
G59 P4
***Run MSM probing routine to find Z height and X/Y corner of block***
G54
etc...
User avatar
DaveCVI
Site Admin
Posts: 798
Joined: Mon Feb 04, 2013 3:15 pm
Contact:

Re: Programmatically accessing MSM probing routines?

Post by DaveCVI »

hi,
The easiest thing to do would to be to create an M code which runs the MSM routine you want. To find he code to invoke an MSM robing routine, use the mach "edit button script" menu to see the code in the MSM button for the routine yuo want. copy that code **Exactly** and put it in the M code you make. Then insert the M code in your gcode sequence when you want to invoke the MSM probing routine.
Dave
Productivity Software for Personal CNC Machinists
http://www.CalypsoVentures.com
Post Reply