Good Morning SBotters, it's almost the weekend,
So here's a situation I could use some input/help with:
I am running 8 parts in a fixture, these parts are 48" long. I will be performing a profile operation on each end (LeftSide and RightSide) to clean the part and add some features. I have written a masterfile to run my profile operations as routines with [FP] which are offset with parameters after a move to the said offset. Both routines have zeroes off the ends of the parts and z on the top of the part.
Something like this (with 3 parts to simplify):
M2, 0, 0
LSprofile.sbp, , , , ,2 'Run LS profile on Part 1
M2, 2.000, 0
LSprofile.sbp, , , , ,2 'Run LS profile on Part 2 (which is offset 2.000" behind Part 1)
M2, 4.000, 0
LSprofile.sbp, , , , ,2 'Run LS profile on Part 3 (which is offset 2.000" behind Part 2)
'
'Insert Jog moves to Move around the fixture)
'
M2, 4.000, 48.000, , , , ,2
RSprofile.sbp, , , , ,2 'Run RS profile on Part 3 (48" from the left side)
M2, 2.000, 48.000, , , , ,2
RSprofile.sbp, , , , ,2 'Run RS profile on Part 3 (48" from the left side)
M2, 0.000, 48.000, , , , ,2
RSprofile.sbp, , , , ,2 'Run RS profile on Part 3 (48" from the left side)
'
'Insert Jog Commands to come Home near the Beginning of Part one.
Looks very similar to what you find in the first few pages of our User Guide right? Simple enough. This is nice as it doesn't care about where my Z is, and I can hold at a Clearance Distance 1.000" above my part as I come in and out of my routines.
Now, my part is actually .020" higher on the right-end (RS) compared to the left-end (LS)(poor fixture design/maintenance, table issue; or whatever doesn't matter). So I want to also offset my Z to compensate. At first glance it may look something like:
M2, 0, 0
LSprofile.sbp, , , , ,2 'Run LS profile on Part 1
M2, 2.000, 0
LSprofile.sbp, , , , ,2 'Run LS profile on Part 2 (which is offset 2.000" behind Part 1)
M2, 4.000, 0
LSprofile.sbp, , , , ,2 'Run LS profile on Part 3 (which is offset 2.000" behind Part 2)
'
'Insert Jog moves to Move around the fixture)
'
M2, 4.000, 48.000
MZ, 0.020 'Move to compensate for Z difference and Run Routine in 3D [FP]
RSprofile.sbp, , , , ,3 'Run RS profile on Part 3 (48" from the left side) in 3D [FP]
M2, 2.000, 48.000
MZ, 0.020
RSprofile.sbp, , , , ,3 'Run RS profile on Part 3 (48" from the left side)
M2, 0.000, 48.000
MZ, 0.020
RSprofile.sbp, , , , ,3 'Run RS profile on Part 3 (48" from the left side)
Great! This would be fine except that I move my tool to the Zero of my part including the Z. Which means gouging or touching the top of my part before I run my routine. The RScode would produce:
Tool at clearance
Move to X/Y
Move to Z (face of part and GOUGE)
Move to 1.000" clearance above my part (from routine)**Facepalm*
*
Run Routine *sigh*
So, seemingly, this is not the way to do this. I need to be able to set my Z to a location without a move command.
This looks like it can be accomplished with [VA] and it's parameters. Does anyone have a simpler solution?
Thanks again in advance,
Brandan