Hello Guest it is January 25, 2020, 12:17:12 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - ben_mtl

Pages: 1
VB and the development of wizards / DRO numbers / squaring macro
« on: April 05, 2013, 06:18:33 PM »
Hi All,

total newbie here I'm slowing setting up my machine.
I made a z-zero button following some info I found here, at one point the script behind the button sets the z-axis DRO @ "plate thickness" through the command "Call SetDro (2, PlateThickness)".

Right now I'm looking for an easy way to square my gantry (I'm still not done with my home switches) so what I plan on doing is "cut" a square (which won't be perfectly square) and measure the diagonals so I can calculate how much I'm off and how much I could move my A axis to so the gantry is squared (X and A would temporarily be "deslaved" for the occasion).

I've looked on the mach3 wiki and on a couple other sources to find the DRO corresponding to the A axis but cannot find it ! Even stranger, on what I found the DRO #2 (which the script above modifies) is not listed as the Z axis DRO but as "Pulse Freq DRO" !
I'm sure there's something I'm missing somewhere so any help would be appreciated.

just for information here is the macro I plan on running to square the gantry, the ***offset-value*** would be calculated beforehand after measuring the diagonals of the previously cut "square", feel free to post any comment... I'm not even sure if the OEMbuttons #357 and #358 actually do what I want...

'Squaring routine  

Code "G0 X0 Y0"
DoOemButton(357)  'temporarily deslave axis
Code "G1 F4 A***offset-value***"
While IsMoving
'here I would insert the command to set the A axis to 0, just in case...
DoOemButton(358)  're-slave axis

Thanks for any help on that.

Pages: 1