PDA

View Full Version : Recommendation of XYzeroing



bcondon
01-26-2011, 10:15 PM
I am setting up the new desktop system for a fellow in New England
and it is going well.

The operator will have minimal programming and N/C experience so
I a trying to set up the system in a turn key fashion... It is a wicked fun project!

One of the key items is that we use the prox switch to set the origin
and then the perminently mounted fixture will be based off that location.

I want the origin (0,0) to be set to absolute (1,1) position

The XYZero routine uses VA and I could set it to
VA -1 , -1 would set the origin to the absolute coordinates of (1,1).

I could also run the xyzero route and do a

m2,1,1
zx
zy

to do the same and only during xyzero.

====

I believe that I could probably set the variables (&my_XYzeroOffsetX=-0.5
&my_XYzeroOffsetY=-0.5)
in the sbparts/custom/my_variables.sbc file but not sure what I should set
it to as it uses the va command...

Any thoughts?

If not, I will play in the morning!

srwtlc
01-26-2011, 10:48 PM
Bob,

Just a thought. How about positioning the machine at the location of the fixture's 0,0, do a Z2 and then with the same slower speed used in the XYzero routine (1"/sec I think), move towards the prox switches and note the value when it stops. Do this several times to get an average of the readings for both X and Y then put that in your "my_variables.sbc" file.

For example....

&my_XYzeroOffsetX=-3.47
&my_XYzeroOffsetY=-1.65

No need to worry about the VA command.

bcondon
01-28-2011, 09:08 PM
SO if I understand, I run C3 and get x.y to the origin via the prox switches... Now if my fixtures origin is at (1.21, .8993) then I would set


&my_XYzeroOffsetX=-1.21
&my_XYzeroOffsetY=-.8993

in "my_variables.sbc" ??

That is exactly what I wanted to do but saw the VA command in the xyzero
file.

I will play in the morning...

srwtlc
01-29-2011, 12:07 AM
Bob,

If the 0,0 origin of your fixture is 1.21, .8993 away from the prox switches, then yes. Then anytime you run C3 it should reset the machine to the fixture and zero itself out.

If that's not the distance from the fixture to the prox switches, then position it at the fixture (with a touch off fixture, a v-bit, or just a straight bit and adjust for the diameter, etc.), Z2 and then find the distance from there to the prox switches. Put that distance in the "my_variables.sbc" file on the line that has...

&my_XYzeroOffsetX= X.XXX
&my_XYzeroOffsetY= X.XXX

That file is found in C:\SBParts\Custom.

The VA command in the routine is just changing the value of the X and Y to the value that is set for the &my_XYzeroOffsetX and Y value when the prox switches are hit, then it jogs back out to the newly set zero.

Scott

bcondon
01-29-2011, 07:20 PM
Thanks Scott!

srwtlc
01-29-2011, 07:52 PM
Good, you're welcome.

bcondon
01-29-2011, 09:50 PM
Thanks Scott!