Hello Guest it is June 28, 2022, 03:10:43 PM

Author Topic: Looking for a little help with simple script.  (Read 565 times)

0 Members and 1 Guest are viewing this topic.

Looking for a little help with simple script.
« on: May 20, 2020, 05:54:17 PM »
I am looking to add a DRO to the main page that i can set the material thickness on. then call for it on my auto tool zero. 

 Something like  [+0.7500] as the dro setting i set.
 
Then since my touch plate is 1/4 i can name the variable  Tool0 = .250 - (what ever i need to call for my dro setting)

 I  have a vague idea of what i am doing. just need help connecting the dots.  pretty please

Offline Graham Waterworth

*
  • *
  •  2,457 2,457
  • Yorkshire Dales, England
    • View Profile
Re: Looking for a little help with simple script.
« Reply #1 on: May 24, 2020, 08:24:09 PM »
In the screen editor (machscreen or Screen4) place a DRO and give it a number in the 'Standard code' section of 1800 to 1850 you can then add a label saying what it is.

In your macro you read it by

var = GetOEMDRO(1800)

and update it by

SetOEMDRO(1800,val)

That is the short version
Without engineers the world stops