Justin,
I took a moment to play with this and as it turns out, it's really quite easy to handle this for the XY zzeroing location. All you have to do is change how the variable for the location is set. If you open My_variables.sbc in the SB editor and find this section...
' If you always want to zero your z-axis in the same place on the table, change these values to
' the coordinates of the point that you want to use
&my_ZzeroStartX= no
&my_ZzeroStartY= no
Where 'no' will be your current value, and change the value to something like this, according to your chosen location...
&my_ZzeroStartX=-%(6)+(-2)
&my_ZzeroStartY=-%(7)+6
I just used -2 for the X location and 6 for the Y location. %(6) and %(7) are the system variables for the table base coordinates. So, if your working 0,0 is 10" from table base in X and 10" from table base in Y, you'll be moving negative that distance plus the distance from table base your Zzero location is at.
If you choose to use the keyboard to position it, you can use the set memory buttons as well.
If you never want to Zzero on a material surface, like v-carving, you may want to add a question message to determine which way you want to Zzero or just set up a separate Zzero file for doing so.
Setting up a toolchange position could be done in a similar manner by adding some user variables for it in the My_variables.sbc file and also adding some code to handle it in the MTC file. It may require that you have a prox switch on the Z axis though for setting the Z change height.


Reply With Quote

