Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: Tarak on April 11, 2007, 06:00:23 PM

Title: How do I use an OEM code with VB?
Post by: Tarak on April 11, 2007, 06:00:23 PM
I've got a button that runs g code
e.g
CODE "G90 G00 X10.0"

Before the code runs I would like it to close any open G code program (just in case).
I noticed on the CLOSE G CODE BUTTON the OEM code is 169.
How do I use this OEM with VB?
Thanks.
Title: Re: How do I use an OEM code with VB?
Post by: Chaoticone on April 11, 2007, 08:49:07 PM
Not sure at all but think it is (Do Button #XX). Look at the ref all home button with the Vb script editor, that might help.

Brett
Title: Re: How do I use an OEM code with VB?
Post by: poppabear on April 12, 2007, 08:19:35 PM
Use:

DoButton(169), in a button or other script