Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: poppabear on September 25, 2008, 09:12:31 AM

Title: UpDate your VB Doc "Mach3 Subroutines" to:
Post by: poppabear on September 25, 2008, 09:12:31 AM
As of Mach3 Dev vs. 3.042.010

The Parameter "Macro Format" has been changed. The "S" parameter on the old one was causing the spindle to turn at that number.
So the 3rd parameter was changed from "S" to "R".

i.e.     M800 P1 Q2 R3

Using "GetParam3()" will now bring in the value "3" from the "R" above.

It has been updated on the wiki, copy of post change below.

scott



== Arguments of macro call ==

When a macro is called from the MDI line or within a part program then data can be passed to it by P, Q, and S words on the line. The values of these words are "read" in the macro using the Param functions.

 '''Function''' Param1 () '''as''' Double ' gets P word
 '''Function''' Param2 () '''as''' Double ' gets Q word
 '''Function''' Param3 () '''as''' Double ' gets S word

NOTE: There was a Bug in the S parameter that would cause the spindle to run at the S words number.

So as of Mach3 version: 3.042.011 that has been changed/Fixed The NEW Param3 is "R".

 '''Function''' Param3 () '''as''' Double ' gets R word