CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-29-2006, 01:01 PM
 
Join Date: Apr 2005
Location: Romania
Posts: 28
ddanutz is on a distinguished road
Toolchanging and offsets gcode programming

Hello guys,

I am dealing with a problem i cannot solve.
I do have a table of offsets for multiple tools.
The offsets are measured from the upper edge of a standard toolholder.
For example:
#Tool :: #offset
1 :: 100;
2 :: 110;
3 :: 90;
I first take tool 1, position it on a workpiece and change the absolut coordinates to 0 : G92 X0 Y0 Z0;
Run a program with this tool, then change to tool no 2.
How can i change automacally the absolute coordinates on Z axis to match to this tool offset, actually not the tooloffset but the difference between this tool and the previous one, i mean Z=Z-10??
If i enter this: G90G43Z0H2, the machine will go to 112 in absolute coordinates.
I want to do this, because i want a bigger partprogram to change the tools automatically and adjust for it's tooloffsets.
How do you guys do it?

Thank you in advance,
ddanutz
Reply With Quote

  #2  
Old 10-29-2006, 01:42 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

The controller should take care of applying the length offsets when you call the new tool number and new H number. The displays do not need to be programmed manually at all (with G92), unless you are running a very old machine with no work offsets. What kind of control is it?

If you must use G92, why would you call the tool home position Z0? Why not set it to be the distance of the standard toolholder above the part surface? Either that, or make your tool offsets the full distance from tool home, to the part surface (Z0). This is risky because the tool can rapid right into the part if you have not set a Z rapid clearance plane at the beginning of each process for each tool. You would be better to set the length offsets to a rapid plane 25 or 50 mm above the part (use a gage block or something) and at least then, your tool will move to this rapid clearance plane when the length offset executes.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 10-29-2006, 04:28 PM
 
Join Date: Apr 2005
Location: Romania
Posts: 28
ddanutz is on a distinguished road

Hi,

My control is Fanuc 18MC.
I do not use Z0 as a home, i use G92 for taking part origins.
My problem was that the renishaw i got enters the offsets for each tool measured from the toolholder for example.
T1=100mm
T2=110mm
T3=90mm;

If i first machine with T1, and take Z=0 with the tip of the tool touching the upper face of the part, then applying H2 when changing tool no.2 causes the spindle to raise 110mm, instead of 10mm, which is the difference between length of T2 and T1. The same for T3, etc.
One solution might be to measure all the tools, then put to the offsets the following:
T1 > 100-100=0 (the first tool, the one which i use for touching the surface and enter Z=0);
T2> 110-100=10mm;
T3> 90-100=-10mm;
then the offsets stored on the table should be: H1=0; H2=10; H3=-10.
But this is something i would like to avoid, can the controller do this automatically, or by some Gcode programming. How do you work with these?

Thank you,
ddanutz
Reply With Quote

  #4   Ban this user!
Old 10-30-2006, 03:17 AM
 
Join Date: Mar 2006
Location: Australia
Posts: 163
Ozemale6t9 is on a distinguished road

It would be better to set your workpiece zero with G54 as I mentioned in you other thread. If you are using a tool which has an offset, eg. tool 1 = 100mm, when you touch the Z datum face you calculate the Z value with the tool 1 offset. Offset - Work offset - Select G54 - type Z100. - Measure.

Once the work offset and all the tool offsets have been set, I usually use G0 G43 Z10. H2 ( or whatever offset number) as my first Z axis move after calling up the tool. This will bring whichever tool I am using down to 10mm above the datum surface with the offset active. This allows you to check your tool offset is correct as well, because you can see how far your tool is from the job as it comes down and how far it has to go with the distance to go display.

regards, Oz
Reply With Quote

  #5   Ban this user!
Old 10-30-2006, 12:57 PM
 
Join Date: Apr 2005
Location: Romania
Posts: 28
ddanutz is on a distinguished road

Well,

G43 adds an H value to the Z specified after the G00.
So, if i have an offset of 100mm for T1, command G00 Z1. will move the machine to 101mm. Maybe i cannot follow you, but this is what i did, to simplify things in my head.
measured 4 tools:
H1 = 100;
H2 = 110;
H3 = 90;
H4 = 120;
then i subtract the H1 value from all other, and make h1=0, and use it for the first tool of the job.
So, it would look like:
h1=0;
h2=10;
h3=-10;
h4=20;

There must be some other way, i read your info 100 times more to understand better, now i don't!

Thank you,
ddanutz
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-31-2006, 04:25 AM
 
Join Date: Mar 2006
Location: Australia
Posts: 163
Ozemale6t9 is on a distinguished road

Originally Posted by ddanutz View Post
If i enter this: G90G43Z0H2, the machine will go to 112 in absolute coordinates.
When you say the machine goes to 112 in absolute coordinates, do you mean the display shows 112mm, or it is actually 112mm from tip of tool to Z datum?

regards, Oz
Reply With Quote

  #7   Ban this user!
Old 11-01-2006, 10:53 AM
 
Join Date: Apr 2005
Location: Romania
Posts: 28
ddanutz is on a distinguished road

Dear Oz,

both, it would display 112 on absolute coordinates and go to 112mm distance from tip to my Zero surface.

ddanutz
Reply With Quote

  #8   Ban this user!
Old 11-01-2006, 02:39 PM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

I have to ask: before using T1 to zero Z, have you got it's offset applied (H1)?
Reply With Quote

  #9   Ban this user!
Old 11-02-2006, 02:09 PM
 
Join Date: Apr 2005
Location: Romania
Posts: 28
ddanutz is on a distinguished road

Hmm, actually not!
I did not, should I?
Measure offsets of the tools (T1=112.345, T2= etc).
Then enter in MDI and input H1. Then put the tip of T1 on the surface and put Z0 ->hit measure. After that G54 in MDI. and update. I do not believe this would work.

Regards,
ddanutz
Reply With Quote

  #10   Ban this user!
Old 11-02-2006, 04:00 PM
 
Join Date: Aug 2004
Location: Greece
Posts: 145
CNCgr is on a distinguished road

If you don't use a G43 H1, it assumes a zero offset for T1. So when you set Z0, the controller thinks it's the spindle at Z0, not the tool tip.

So when you call T2, instead of compensating for the lenght difference of the two tools, it compensates for the lenght of T2 minus zero.

Oh, have to ask also, you use G43, right? Because I didn't see you mention it.

Nikolas
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-03-2006, 03:10 AM
 
Join Date: Mar 2006
Location: Australia
Posts: 163
Ozemale6t9 is on a distinguished road

Originally Posted by ddanutz View Post
Hmm, actually not!
I did not, should I?
Measure offsets of the tools (T1=112.345, T2= etc).
Then enter in MDI and input H1. Then put the tip of T1 on the surface and put Z0 ->hit measure. After that G54 in MDI. and update. I do not believe this would work.

Regards,
ddanutz
What you have typed here is more or less what I explained in the other thread, except you don't need to call the offset by MDI first.

Measure offsets of the tools (T1=112.345, T2= etc).
Then put the tip of T1 on the surface > press offset key > press work softkey > highlight g54 (group 01 - also make sure group 00 is all zero) > type Z112.345 ( or whatever tool 1 offset is ) > press measure softkey.

By using the method above, you can use any tool for which you know the offset, which is easy when you have a probe.

regards, Oz
Reply With Quote

  #12   Ban this user!
Old 11-04-2006, 09:11 AM
 
Join Date: Apr 2005
Location: Romania
Posts: 28
ddanutz is on a distinguished road

hellooo,

it is working! Thank you very much for your explanation.
However, i do not know why, but i do feel more confortable and safe with the method of zeroing the first tool offset and subtract the original first tool offset from all others. I guess i might need to work more on it!
With this, i found some strange things going on the controller!!
If i enter some G54 work coordinates, and call this coordinates in MDI, by G54, the absolute coordinates do not update correctly, they update with other values. This does not happen all the time, but when it happens, i must adjust absolute coordinates by G92. That is why i feel safer with first Tool on Z=0 and offset zero. What do you think about this, what am i doing wrong?

Thanks,
ddanutz
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 08:14 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361