Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: Sweep on September 30, 2012, 01:11:19 PM
-
Had a great day today experimenting with VBScript as part of the Reference all Axis procedure including the ATC.
I haven't started to play with the code that cncalex created as I wanted to practice on something simpler first.
Everything works fine and i'm starting to get used to the logic of it all.
Then things started to wrong.
I can't remember where i read it but I thought there were UserDRO's available for "users" with numbers between 1000 and 2254.
I presumed that these were different from OEM DRO's for the developer of Mach3.
So, I reference the machine and ATC, choose the tool in spindle, and then thought i'd see if the tool length offset in the "offsets" screen worked ok.
Problem is that when i type in the Gauge Block Height for tool it changes the readout on my tool-in-carousel DRO to the same value!
I started looking at other items on the offsets page and there are other items that would have the same effect.
My worry is that there is other duplications lurking to smash my machine to bits when I finally get round to cutting metal.
...Sweep
-
For the time being i'll 'guess' some other numbers but is there a list of pre-allocated numbers anywhere?
...Sweep
-
Sweep, this should help. You can find the OEM and user ranges here.
http://www.machsupport.com/MachCustomizeWiki/index.php?title=Main_Page
Here is another that may help. Page 18 maybe?
http://www.machsupport.com/docs/Mach3_V3.x_Macro_Prog_Ref.pdf
Brett
-
Hi Sweep,
nice to hear that you are doing progress. sorry, but I did not ground the thought that USERDRO's used in the standart screen.
you can find out which DRO are used by using the screendesigner from Klaus Dietz. here's the link http://www.kd-dietz.com/klausphp/index_eng.html#
You can see it when you open the screen file (eg. 1024.set)with the screen designer. Then go to -> viev -> overviev
then click in "OEM Code val" that will sort the entries. At the bottom you can find the highest value used. ( see pict)
You are right the valid numbers are between 1000 and 2254. To choose a number above 2000 should be a save choice.
hope that helps, :)
Alex
-
Thanks Brett & Alex, and I probably should also thank Klaus!
So from what I understand there is no difference between User and OEM DRO's only the range they have been allocated. Even then some of those which are >1000 have already been used for OEM purposes.
I already use Klaus's Machscreen program which is great but hadn't noticed the overview section which is ideal to make sure there are no duplications or format errors. It even seems you can edit directly to that list so changing the DRO number should be a doddle.
Before long i'll be seeing code like Keanu Reeves in the Matrix!
Many thanks ...Sweep
-
Ha ha , me too ! ;D
Alex
-
No problem and yes, deffinatley thank Klaus. He has given us a great gift!
;D Let me know when it becomes a 6th sense, I could use some help.
Brett