Macro error
-
Hello everyone, I've installed a 3D touch probe on my duet run CNC machine and I'm having an issue with the macro that I'm trying to use for probing the X and Y of the workpiece.
Here is the macro that I'm using and when I call it it runs fine, but I get an error that says:
M98 P"0:/macros/Touch Probe/3D Probe corner"
Error: SD card has open file(s);This will probe the bottom Left corner of the work piece ;First Probe the Z height M21 ;This macro uses mm moves M98 P"/macros/Touch Probe/z probe.g" ;Run Z probe to find surface of material G91 ;Set relative moves G0 X-25 ;Move 25mm away from current position G0 Z-8 ;Move down 8mm, 3mm below surface of work piece G90 ;Set Absolute moves M98 P"/macros/Touch Probe/X Probe.g" ;Run X probe macro G91 ;Set Relative moves G0 Z10 ;Lift probe to clear work piece G0 X20 Y-45 ;Move Probe to position for Y probe G0 z-10 ;Move Probe into Z position for Y probe G90 ;Set Absolute moves M98 P"/macros/Touch Probe/Y Probe.g" ;Run Y probe macro G91 ;Relative move G0 Z10 ;Lift probe to clear material G90 ;Absolute move G1 X0 Y0 F500 ;Move to new soft home
I don't see any thing about this error in my google search or a search of the duet documentation site.
There are no errors is I run the files individually, only if I run the main macro.
-
I found my issue, I was using a M21 where I should have had G21 to put the macro into mm.
-
-