Hello Guest it is October 23, 2020, 01:30:50 AM

Author Topic: Update Tool Data using G10?  (Read 10098 times)

0 Members and 1 Guest are viewing this topic.

Update Tool Data using G10?
« on: February 26, 2008, 10:14:29 PM »
I am using a surface grinder and would like to update the wheel z height after dressing.

I know how to set the tool height while running a program:

G10 L1 P1 Z1.000

Is there any syntax to update the Z value after I have removed .004 from the wheel radius? I've tried Z=(Z-.004), Z(Z -.004) etc

I'm looking around but not finding a parameter value that "might" work.

Thanks
« Last Edit: February 26, 2008, 11:25:04 PM by keithorr »
"If you tell a lie big enough and keep repeating it, people will eventually come to believe it." - Joseph Goebels

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: Update Tool Data using G10?
« Reply #1 on: February 27, 2008, 12:29:43 AM »
Hi, Keithorr

Mite be off in left field hear, If you use tool #1 and set it up, Theres a wear al-ounce in the Offsets, Save Tool Offsets, Tool-Table Box, HeightWear.

Hope this Helps, Chip

Edit: Forgot to post this
« Last Edit: February 27, 2008, 01:52:02 AM by Chip »
Re: Update Tool Data using G10?
« Reply #2 on: February 27, 2008, 01:42:10 AM »
Thanks for the reply. I don't know enough about mach3 (coming from mach2) if the wear is per cycle or a one shot offset. I'll give it some reading

Any way to read the tool z length offset to a variable?

I can use G10 L1 P1 Z[#1-0.004] if I can figure out how to get the tool table value into variable #!.

"If you tell a lie big enough and keep repeating it, people will eventually come to believe it." - Joseph Goebels

Offline Graham Waterworth

*
  • *
  •  2,186 2,186
  • Yorkshire Dales, England
    • View Profile
Re: Update Tool Data using G10?
« Reply #3 on: February 27, 2008, 02:45:52 AM »
You can use G10 in 2 modes G91 incremental and G90 absolute.

So using G90 you can set a value, in G91 you increment/decrement the existing value.

Graham.

Without engineers the world stops
Re: Update Tool Data using G10?
« Reply #4 on: February 27, 2008, 02:58:14 AM »
Thanks, I tried that a little but didn't have a consistent enough approach while noodling around and then went off to the archives and forgot where I was. I'll give it another shot.
"If you tell a lie big enough and keep repeating it, people will eventually come to believe it." - Joseph Goebels
Re: Update Tool Data using G10?
« Reply #5 on: February 27, 2008, 04:10:20 AM »
I'm missing something :( I tried the following and was hoping the tool offset would have totaled -0.008 by the end of the file but it stays at -0.004

N1 ;
N2 ;
N3 ;
N4 M05 G40 G49 G80 G90
N5 M06
N6 T20 G43 H20 D20
N7 G10 L1 P20 Z0.0 'set tool length
N8 G01 Z-.1 F1.
N9 G00 Z0.
N10 G91
N11 G10 L1 P20 Z-.004 'set new tool length
N12 G90
N13 G01 Z-.1 F1.
N14 G00 Z0.
N15 G91
N16 G10 L1 P20 Z-.004 'set new tool length
N17 G90
N18 M30

In the MachMill3 PDF section 10.7.5 states "...reset to the coordinate values given (in terms of the absolute system)."
                   
« Last Edit: February 27, 2008, 04:33:51 AM by keithorr »
"If you tell a lie big enough and keep repeating it, people will eventually come to believe it." - Joseph Goebels

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: Update Tool Data using G10?
« Reply #6 on: February 27, 2008, 08:18:45 AM »
You forgot a G92
G10 G92 L1 P20 Z-.004
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."

Offline Graham Waterworth

*
  • *
  •  2,186 2,186
  • Yorkshire Dales, England
    • View Profile
Re: Update Tool Data using G10?
« Reply #7 on: February 27, 2008, 08:36:42 AM »
You could use this macro, save it as M1000.m1s in your current profile.

Graham.

' M1000.m1s

' Macro to increment tool height offset
' using M1000 P1 Q.004
' P = offset number to update
' Q = amount to alter offset by

P_val = Param1()
Q_val = Param2()
offset = GetToolParam(P_val,2)
offset = offset + Q_val
Code "G10 L1 P" & P_val & " Z" & offset

'End
 

Without engineers the world stops
Re: Update Tool Data using G10?
« Reply #8 on: February 27, 2008, 03:41:56 PM »
Graham,
Thanks for the silver platter.
I was looking around for VB info but I'm not familiar with this scripting. I've only learned vb.net for some other apps. Also was not finding a library of terms like GetToolParam. I was only finding bits and pieces here and there so avoiding the issue.

The macro works great. I'll be trying to use my CAM to insert the M1000 Px Qx next.

FYI : I did figure a way to update the offset in session using variables but couldn't use them to poll the tool offset from the table after a reboot. Methods from the old Ahha days.

Thanks again.
"If you tell a lie big enough and keep repeating it, people will eventually come to believe it." - Joseph Goebels

Offline Graham Waterworth

*
  • *
  •  2,186 2,186
  • Yorkshire Dales, England
    • View Profile
Re: Update Tool Data using G10?
« Reply #9 on: February 27, 2008, 05:01:44 PM »
 :)

Graham.
Without engineers the world stops