Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Tarak on October 04, 2007, 03:22:50 AM

Title: Is it possible to have code for the page number?
Post by: Tarak on October 04, 2007, 03:22:50 AM
Is there a code that would suit this equation?

If Mach is on Page1(G Code page) then
Set UserLED(1020,1)
Else
Set UserLED(1020,0)
End If

Can I also force it to stay on the same work coord after the software is restarted, rather that reverting to G54?

Also on another note, is it possible to force it to Fixture Save when exiting the program, rather than the dialog asking?
Thanks
Title: Re: Is it possible to have code for the page number?
Post by: Graham Waterworth on October 05, 2007, 02:42:31 AM
There is the function GetPage() that will return the page number you are on.

Graham.
Title: Re: Is it possible to have code for the page number?
Post by: Tarak on October 05, 2007, 09:07:54 AM
Thanks Graham, I'll give it a go.
Title: Re: Is it possible to have code for the page number?
Post by: Tarak on October 06, 2007, 02:44:41 AM
Yep, she worked a treat Graham, Thanks again.