Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: CNC-Steuerung on November 24, 2006, 03:43:27 PM
-
Hi,
Ive used a lot of OEMDROs in my screens to configure toolmeasure and change...
What happens if I use the same OEM-DRO numbers in sev. wizards? Ive tested it and
it seems to work fine, but Im not shure not to have progrmming side effects later...
Thanks and Greetings,
Wolfram
-
The wizards use there own DRO's and will not harm the data in DRO's that you have in Mach3 :)
-
Hi
Thought I'd save starting a new post and ask a question here. I have a wizard which uses userDRO's on the first screen. It then steps through the screens - on the final screen when you hit the create G-code button it refers to the userdro's on the earlier screens. Will these DROs remain global or will I need to write them to global variables before leaving each screen?
Cheers
Dave
-
Hi Dave,
If the DRO is in the same wizard, you should be able to access to it. If not, you had to save the value in a variable, which could be read
if needed...
DROvalue = GetUserDRO (nn) ' where nn is your DRO number
SetVar(var1, DROvalue). ' stores the read value in Mach3 variable (var1)
..
.
Readlater = GetVar(var1) ' reads the var1 value and stores it to Readlater..
That would be my solution..
Greetings from Germany
Wolfram
-
Hi Wolfram
That's what I was planning to do but I just wondered whether anyone could give me a definitive answer before I start the task of programming all the buttons.
Cheers
Dave
-
Hi Brian,
"The wizards use there own DRO's and will not harm the data in DRO's that you have in Mach3"
sorry, but that not the whole true..
Ive found that there are side effects with Mach3 which causes incredible faults in Mach3! >:(
So my ToolChange Position will be changed after using a wizard.....
What can we do?
Thanks and Greetings from Germany
Wolfram
-
Darn.. there is a range that will work in and out of the wizards...
I have a mail to Art asking the range.
thanks
Brian
-
Hi Brian,
Problem found and fixed!
If you start the wizards with double click instead of "run" the OEM DROs will be
destroyed....
Thanks to ART, we need a few mails and videos to detect it :)
Greetings from Germany,
Wolfram
-
You did well to find that one!!
Thank you for the help
Brian