Originally Posted by
dak1
What machine & where is #137 value assigned?Single surface for z position. Add notes like I've done here & you may see the issue. You are using P1 as the offset for the probe, & resetting P1 in the cycle. This changes the values of the variable, but I'm not sure if it picks up the new values unless you re-issue the G54.1 P1 code. I'd use a static offset to drive all the probing (say P1), & let it set the values in another (say P2 (S102)), then use the P2 values to set others. That's always seemed easier to keep track of to me.
T226(RENISHAW PROBE)
M6
M132
N100G0G90G54.1P1X0Y0B-90.C0M19 (Activate P1 & position)
M131
G43Z2.T7
M87
M108
G65P9810Z.3F50. (Protected positioning)
G65P9814D.936S101 (Probe .936 diameter & RESET P1 X & Y)
#7002=#7002-.001 (Define P1 Y as the result -.001)
#7081=#7001 (Define P5 X to = P1 X)
#7161=#7001 (Define P9 X to = P1 X)
G0Z1. (FROM HERE UP WORKS GOOD)
There are 11 more stations and they have their own individual P#. They go from P1 to P36 and It looks like this'
/G54.1P2X0Y0
/G65P9810Z.3F50.
/G65P9814D.936S102
/#7022=#7022-.001
/#7101=#7021
/#7181=#7021
/G0Z1.
and so on.
I added this in with the hopes of capturing the difference of the .075.
G65P9810X.35Y-.606F50.
G65P9810Z.3F50.
G65P9811Z.075S101 (probe Z & set P1 Z as the result)
The probe is taking a hit that is supposed to be .075 on the Z...So how would i fix it?
On the above line, there is nothing defining what this Z is supposed to be. Therefore, I think it is defining the probed result as 0, NOT 0.075)
IF[#137GT0]THEN#7082=#7082+[#137-.075]
(If condition, set P5 Y to current P5 Y -.075)
So these look right for what I need.
IF[#137LT0]THEN#7082=#7082-[#137-.075]
(If condition, set P5 Y to current P5 Y -.075)
IF[#137GT0]THEN#7162=#7162-[#137-.075]
(If condition, set P9 Y to current P9 Y -.075)
IF[#137LT0]THEN#7162=#7162+[#137-.075]
(If condition, set P9 Y to current P9 Y -.075)
G0Z2.
(this repeats 11 times)