Hello Guest it is March 28, 2024, 03:31:16 PM

Author Topic: M98 program call  (Read 2394 times)

0 Members and 1 Guest are viewing this topic.

M98 program call
« 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: M98 program call
« Reply #1 on: November 06, 2012, 05:21:00 PM »
That type stuff is covered in the MACH3 manual, may want to give it a read.

Just a thought, (;-) TP
Re: M98 program call
« Reply #2 on: November 07, 2012, 12:35:39 PM »
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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: M98 program call
« Reply #3 on: November 07, 2012, 02:57:01 PM »
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