Hello Guest it is April 23, 2024, 10:34:55 AM

Author Topic: Is it possible to have code for the page number?  (Read 3333 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarak

*
  •  229 229
    • View Profile
Is it possible to have code for the page number?
« 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
« Last Edit: October 04, 2007, 03:33:00 AM by Darc »

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Is it possible to have code for the page number?
« Reply #1 on: October 05, 2007, 02:42:31 AM »
There is the function GetPage() that will return the page number you are on.

Graham.
Without engineers the world stops

Offline Tarak

*
  •  229 229
    • View Profile
Re: Is it possible to have code for the page number?
« Reply #2 on: October 05, 2007, 09:07:54 AM »
Thanks Graham, I'll give it a go.

Offline Tarak

*
  •  229 229
    • View Profile
Re: Is it possible to have code for the page number?
« Reply #3 on: October 06, 2007, 02:44:41 AM »
Yep, she worked a treat Graham, Thanks again.