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 08-03-2005, 03:57 PM
 
Join Date: Jun 2005
Location: USA
Posts: 12
firedog is on a distinguished road
Using G-Code for setting offsets

Within the last couple of weeks, there was a post in one of the forums about using a G10 line to set tool length offsets, cutter comp, work co-ordinates and other related values. I have been unable to find that post again and was hoping someone out there could direct me to it.

Thanks in advance,

Firedog
Reply With Quote

  #2   Ban this user!
Old 08-03-2005, 04:49 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Are you on a Fanuc type control?

Depending of the offset type you are using and I'll assume this is a mill. Type A ( Single offset only ), Type B (Length and wear offsets), Type C (length, length wear, geometry, geometry wear).

For Type A:
G90 G10 L11 P??? R??? (L11 = offsetting, P = offset number, R = value)

For Type B:
G90 G10 L10 P??? R??? (L10 = length offsetting, P = offset number, R = value)
G90 G10 L11 L??? R??? (L11 = wear offsetting, P = offset number, R = value)

For Type C:
G90 G10 L10 P??? R??? (L10 = length offsetting, P = offset number, R = value)
G90 G10 L11 L??? R??? (L11 = "H" wear offsetting, P = offset number, R = value)
G90 G10 L12 P??? R??? (L12 = "D" geometry offsetting, P = offset number, R = value)
G90 G10 L13 L??? R??? (L13 = "D" wear offsetting, P = offset number, R = value)


HTH
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #3   Ban this user!
Old 08-04-2005, 08:15 AM
 
Join Date: Jun 2005
Location: USA
Posts: 12
firedog is on a distinguished road

Thanks psychomill!!
It is a Fanuc type control, and it is a mill. The post I remember seeing would put this at the end of the program, after the M30. The operator would start the program the first time at the very end, after the M30, to load the values. After that, all adjustments would be made on the offset pages, not in the program.

I was hoping to find that post again so I could use the same sequence they were using.

Thanks,
Firedog
Reply With Quote

  #4   Ban this user!
Old 08-07-2005, 01:43 PM
MILLMANM's Avatar  
Join Date: Jul 2004
Location: United States
Posts: 93
MILLMANM is on a distinguished road

this is how we do it

O2741 (0040-77741 2ND OP)
/M0 (OPERATOR CHECK STOP)
G10 L2 P1 J1 X-6.8311 Y-12.6290 Z-20.2510 B270.
G10 L2 P2 J1 X-21.9588 Y-12.6290 Z-25.3986 B0
G10 L2 P3 J1 X-1.6843 Y-12.6290 Z-25.3802 B180.

but it has a yasnac control and it writes it to the x,y,z,b, offset every time it runs
__________________
IF ITS NOT BROKE YOUR NOT TRYING HARD ENOUGH

Ashes to ashes , dust to dust , If it wasnt for Harleys the fast lane would rust.

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

  #5   Ban this user!
Old 08-08-2005, 09:17 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

I guess I forgot to add the G10s for work coordinates. Yasnacs use J offsets (G54 J1, G55 J4, G54J3 etc.) On Fanuc it will be like this:

G10 L2 P1 X?? Y?? Z?? B?? (A?? if you have it or even C?? for 5axis)

L2 = G54 ofsetting
P? = offset number (1= G54, 2 = G55, 3 = G56 etc)

Or for extended offsetting (G54.1):

G10 L20 P1 X?? Y?? Z?? B?? etc, etc

L20 = G54.1
P?? = offset number
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-23-2009, 07:12 AM
 
Join Date: Feb 2009
Location: india
Posts: 48
chetan is on a distinguished road

Hi can anybody tell me,
what is Q in G10 format. My m/c is cnc sliding head turning
Format is something like this.G10 P...... X....... Z........R..... Q....?
I heard that it is tool type from 1 to 9
Does it affects the size of the part.

Thanks in Advance
Reply With Quote

  #7   Ban this user!
Old 06-23-2009, 07:49 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

It is the imaginary tip number (0-9) for use with G41/G42. If you don't program G41/G42, it doesn't do anything.
Reply With Quote

  #8   Ban this user!
Old 06-24-2009, 05:05 AM
 
Join Date: Feb 2009
Location: india
Posts: 48
chetan is on a distinguished road

Hi
My machine is tornos bechler enc 162 Fanuc OT. When i use tool for front turning i dont have any problem with diameters. But when i use the same tool for back turning , the first two diameters are coming correctly what i have mentioned in program, but later diameters are coming undersize and some are over sizes. I dont know why is this happening so. The only good news is that every subsequent part is having same variations. I dont know what to do. PLease help me.
Reply With Quote

  #9   Ban this user!
Old 05-04-2010, 12:59 AM
Algirdas's Avatar  
Join Date: Mar 2009
Location: Lithuania
Posts: 858
Algirdas is on a distinguished road

chetan, Your explanation is very messy, but the problem is clear.
You have several solutions here:
1. Diagnose and remove the problem roots
2. use cure #1
3. use cure #2
4. find better solution
Detailed:
1. You need to investigate, why this happens. Maybe problem is mechanical.
2. You can use separate tool offsets. It doesn't helps much, if You cut the shape with different diameters by one tool.
3. You can use separate zero offsets. This solution can partially compensate mechanical problem.
4. You can combine some and find Yours.
The main obstacle is that it in not clear, why it happens.
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 07:54 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