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 12-15-2010, 08:10 PM
 
Join Date: May 2006
Location: USA
Posts: 54
bmlw is on a distinguished road
G01 Parameters

Back to Basics!
I have been given a program and told to run it just like it is.
My problem is I do not recognize one of the parameters for G01.
The program was for a Yasnac control on a Mori SL1 and I will be running it on a PUMA with FANUC 15T control.

Here is the code
N5 (NPR50.5)
G51
G97T500S4500M3
G0-.02Z.05T505
G1ZoF.002
X.02
X-.376K-.024
G51
M1

What is the K-.024 for. I understand this in a drill cycle for peck depth but for linear interpolation?

Thanks
Geoff
Reply With Quote

  #2   Ban this user!
Old 12-15-2010, 08:33 PM
littlerob's Avatar  
Join Date: Jan 2008
Location: usa
Age: 35
Posts: 570
littlerob is on a distinguished road

Originally Posted by bmlw View Post
Back to Basics!
I have been given a program and told to run it just like it is.
My problem is I do not recognize one of the parameters for G01.
The program was for a Yasnac control on a Mori SL1 and I will be running it on a PUMA with FANUC 15T control.

Here is the code
N5 (NPR50.5)
G51
G97T500S4500M3
G0-.02Z.05T505
G1ZoF.002
X.02
X-.376K-.024
G51
M1

What is the K-.024 for. I understand this in a drill cycle for peck depth but for linear interpolation?

Thanks
Geoff
Geof you know the answer; sorry inside joke. Disregard

The K is an incremental command for Z- alot of that code would be accepted on a Yasnac without being in G91 mode(incremental). I don't think the 15t will buy it though, so you'll have to change it to Z- instead of K-. But it's just a chamfer, looks like .0084c with a .0156r tool.

Robert
__________________
The beaten path, is exclusively for beaten men.
Reply With Quote

  #3   Ban this user!
Old 12-15-2010, 10:01 PM
 
Join Date: May 2006
Location: USA
Posts: 54
bmlw is on a distinguished road

Robert,
Thanks for the quick reply.
Please enlighten me on the inside joke.

Just to clarify the chamfer,
The chamfer will start at x -.02, z 0
and end up at x.376, z-.024? Is that what you see?

Thanks
Geoff
Reply With Quote

  #4   Ban this user!
Old 12-15-2010, 10:01 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

littlerob, I beg to differ. Every Yasnac I've ever seen has used W for incremental Z, not K.

On a Yasnac, K is used for chamfering with the G11 command, but I've never seen it with G01 on a Yasnac.

Are you sure your example came from a Yasnac? It looks more like a Haas (in Yasnac mode) program with that G51 in there.

Most of the Fanucs (at least from the 6T on) will use K with a straight X and I with a straight Z feed to chamfer at the end of the line.

I don't have any early 15T manuals, but I believe it should run. Get rid of the G51's though, I know the Fanuc will fail on that.
Reply With Quote

  #5   Ban this user!
Old 12-15-2010, 10:16 PM
 
Join Date: May 2006
Location: USA
Posts: 54
bmlw is on a distinguished road

Dcoupar & Robert

Here is What my edited file looks like at the present with the exception of the K parameter for the G01

N5 (NPR50.5) *This kennametal insert has a .005r
G00T1104
G97S4500M3
G0X.02Z.05
G1Z0F.002
x-.02
X.376 (WHAT THE HECK DO I DO WITH THIS K-.024?)
T1100
M1

Geoff
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-15-2010, 10:18 PM
 
Join Date: May 2006
Location: USA
Posts: 54
bmlw is on a distinguished road

Dcoupar,
I have seen the Mori SL1 and the owner is the original owner. He states the control is Yasnac. Me, I just have to make it work on my FANUC 15T.

Geoff
Reply With Quote

  #7   Ban this user!
Old 12-15-2010, 10:25 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Originally Posted by bmlw View Post
Dcoupar & Robert

Here is What my edited file looks like at the present with the exception of the K parameter for the G01

N5 (NPR50.5) *This kennametal insert has a .005r
G00T1104
G97S4500M3
G0X.02Z.05
G1Z0F.002
x-.02
X.376 (WHAT THE HECK DO I DO WITH THIS K-.024?)
T1100
M1

Geoff
Put the K-0.024 back in with the X.376. But I believe you'll have to do a Z- move in the block following to make it work.

X.376 K-.024
Z-.03 (IIRC this must be > than the K value).
Reply With Quote

  #8   Ban this user!
Old 12-15-2010, 10:31 PM
 
Join Date: May 2006
Location: USA
Posts: 54
bmlw is on a distinguished road

Dave and Robert,

The mentioning of the chamfer sent me to page 188 of my operators manual under Chamfering and Corner R.
It lists the comand format as G01XbK+/-k; Specifies movement to point b with an absolute or incremental comand.

Therefore I beleive the correct line for my program should read
G01Z0F.002
X-.02
X.376K-.024 which will give me a 45deg chamfer starting at X.352,Z0 and ending up at X.376,Z-.024.

Regards
Geoff
Reply With Quote

  #9   Ban this user!
Old 12-15-2010, 11:37 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road
Post

Originally Posted by bmlw View Post
Dcoupar & Robert

Here is What my edited file looks like at the present with the exception of the K parameter for the G01

N5 (NPR50.5) *This kennametal insert has a .005r
G00T1104
G97S4500M3
G0X.02Z.05
G1Z0F.002
x-.02
X.376 (WHAT THE HECK DO I DO WITH THIS K-.024?)
T1100
M1

Geoff
Geoff,

The K is to machine a chamfer when used in conjunction with G01.

With a Fanuc control the next block must be a movement along the axis perpendicular to the axis containing the K.

The code that you have now could be a bit risky to use, because without seeing the code that may precede the code you've posted, there is no movement to a tool change position. The G51 in your first sample program was to cancel the tool offset and return home. Accordingly, with a Fanuc control I would modify the program to something like this:

Regards,

Bill

N5 (NPR50.5) *This kennametal insert has a .005r
G28 U0.0 W0.0
G00T1104
G97S4500M3
G0X.02Z.05
G1Z0F.002
X-.02
X.376 K-.024
Z-0.025 (WITHOUT A Z MOVE AFTER THE CHAMFER BLOCK, THE CONTROL WILL ALARM)
G28 U0.0 W0.0
M1

Alternatively, the last part of the program could be written as follows:
X-0.020
X0.328
X0.376 Z-0.024
G28 U0 W0
M01
Reply With Quote

  #10   Ban this user!
Old 12-16-2010, 12:07 AM
littlerob's Avatar  
Join Date: Jan 2008
Location: usa
Age: 35
Posts: 570
littlerob is on a distinguished road
hold the phone

I was wrong, Dcoupar is right about the coding. K for chamfer with G11 only.

The inside joke is a member here on The Zone, who is really an authority on coding. With a very similar name to yours.

But now I'm looking at post 3 and the answer is no, it will not leave a 45 chamfer. The tool starts at X-.02 and ends at X.376 with an (assumed) -Z movement of .024. Friends that's a tapered face not a chamfer!! It's all my fault . I agree with all posts (except mine), and the alternate toolpath that Bill posted is the easiest and correct. IF you want a 45 degree chamfer that will measure about .008. Don't forget to add the line X.328 line before the chamfer.

Robert
__________________
The beaten path, is exclusively for beaten men.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-16-2010, 10:38 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

I have an old 12t out on the floor which is still using G50’s. They have used the K values for chamfering in the past but IIRC the operator once told me it was related to using cutter comp.

Now I do know on the Fanucs that U is for incremental X and W is incremental Z so if you need to make a chamfer in incremental mode then use U and W. I also agree with Dave and Angel that you should remove the G51 as I don’t see this listed in any of my Fanuc lathe G-codes. I only see it on my machining centers as “scaling”.

Stevo
Reply With Quote

  #12   Ban this user!
Old 12-16-2010, 12:06 PM
 
Join Date: May 2006
Location: USA
Posts: 54
bmlw is on a distinguished road

Hi to you all,
Thanks for the input.
I have modified the program as follows to include a Z move to clear the material for a tool change as follows

N5 (NPR50.5) *This kennametal insert has a .005r
G00T1104
G97S4500M3
G0X.02Z.05
G1Z0F.002
x-.02
X.376K-.024
Z2.0
T1100
M1

Thanks
Geoff
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameters 281 and 282 on 0T guhl Fanuc 1 10-25-2009 02:03 PM
Need Help!- Parameters, I think heavy metal Fanuc 19 07-02-2009 01:48 PM
plc parameters savancnc Fanuc 4 03-13-2008 08:37 AM
plc parameters savancnc General Electronics Discussion 2 12-11-2007 02:48 AM
G83/G87 parameters DocHod Fanuc 2 11-04-2007 01:54 PM




All times are GMT -5. The time now is 07:51 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