Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: StoMMie on November 06, 2012, 03:43:50 PM
-
Hi there,
I like to call so code from the main pgm that contains machine specific code.
Like a retract to a safe position ore a datum shift that holds the build upp extra head!!
The code must remain accessible for the cnc operators for little changes.
One solution is a M98!!
But in what folder must this sub-program being placed? And can I force it to a specified folder?
Another solution could be to write a macro!!
How can I make something like that?
Ore is there another better solution?
Thanks, StoMMie
-
That type stuff is covered in the MACH3 manual, may want to give it a read.
Just a thought, (;-) TP
-
Hi BR549,
My glasses know I read the manual, but I basically do not know what I am looking for (the best way to solve this).,
So I you are willing to give me a hint into the right direction, I gladly read it again 8)
Thanks in advance
-
In the Mach3 manaul section 10.8.7 covers subroutines M98/99. The default directory to store subs is C:\mach3\subroutines.
The option is to store it anywhere you want then call it by path from the Gcode program.
Mcodes are discussed in part in section 10.9.1. There a 3 other manuals that concern Mcodes(macros)
Customizing MAch2
CypressBasic programmers reference
Mach3 Programers reference
(;-) TP