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 03-14-2010, 06:26 PM
 
Join Date: Jan 2009
Location: US
Posts: 15
bfedger is on a distinguished road
Question G54 command


Can somebody enlighten me as to how the "G54" command will work when a "P" word with an"X" and "Y" coordinate are included in the same line. This programming is on a mori machinig center.
Thanks
bfedger
Reply With Quote

  #2   Ban this user!
Old 03-14-2010, 07:04 PM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

What control is this?

G54.1 uses a "P" word to indicate which of 48 extra work offsets, similar to G54 thru G59. As far as I know, G54 by itself doesn't usually take a P. Of course it depends which control you are using.
Reply With Quote

  #3   Ban this user!
Old 03-16-2010, 10:21 AM
 
Join Date: Jan 2009
Location: US
Posts: 15
bfedger is on a distinguished road
G54 command


Thanks Beege,
I dont know what control series it is. To add more confusion ,I looked in the "offset",then "work" section of the work coordinates page. There I found 1 G54 work coordinate option and the G54.1 with extra settings up to 48. The confusion arises because in the program the comands a call out of"G54 P---".
not "G54.1 P-----".
Am I missing something?
The actual command looks like this: G54 L20 P----- .( Still not sure what "L" does in this format)


Thanks for your help
bfedger
Reply With Quote

  #4  
Old 03-16-2010, 10:50 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

This probably has something to do with G10, which is for programmed setting of offsets.

G10 L2 P1 X Z might be a sample command format.

What this does is takes those X and Z values and installs them into the G54 work offset table in your control, overwriting whatever was previously in there.

So instead of finding your G54 datum with an edgefinder or probe, you simply use G10 and some meaningful value to load the work offset. This typically has application where everything is known about the work fixture setup, for example, changing pallets on a large machine, but each pallet contains a different set of fixtures. It would be impractical to have a man standing around and rekeying in the work offsets all the time, so you write the changes into the program.

The variable L has certain definitions depending on which number follows it. For example, on my Mits control L2 is work offset register, L10 is tool offset register, and L11 is tool nose wear offset register. I've no idea whether this is standard across all cncs but once you understand what you're looking at, it's easier to find it in the book

The value written with "P" is an alias for a particular work offset or a tool number. Again, the manual may have a chart showing what the correspondence is.
__________________
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

  #5   Ban this user!
Old 03-16-2010, 11:51 AM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

Let's see a whole section of code here. Maybe there's an extra hint hidden within.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-17-2010, 12:05 PM
 
Join Date: Jan 2009
Location: US
Posts: 15
bfedger is on a distinguished road
Smile G54 command

Hi Beege,
I'll see if I can get a hardcopy of the program
Thanks again
bfedger
Reply With Quote

  #7   Ban this user!
Old 03-17-2010, 12:07 PM
 
Join Date: Jan 2009
Location: US
Posts: 15
bfedger is on a distinguished road

Thanks Hiflung
I'm in a situation where nobody in plant wants us to know too much (or so it seems)
Reply With Quote

  #8   Ban this user!
Old 03-17-2010, 06:10 PM
 
Join Date: Feb 2010
Location: US
Posts: 14
Doug_M is on a distinguished road

I have been running a Mori machining center for the last 14 years . I do NOT claim to know it all but I have only seen 2 times that a P was used . The first is what HiFlung was describing . At the start of all my programs I have a G10 L2 P1 X? Y? Z ? This is just what HiFlung says . It automatically sets my work coordinates in the Work offset when it is read in the program . L2 P1 is G54, L2 P2 would be G55 and so on .If I use more than 1 offset . The only other instance I have of a P command is not used with an L and that is if I run a program that does multiple parts I will use a subprogram for each part and the command to calll that would be P122 or whatever the program is . At the end of the sub would be a M99 which sends it back to the main program where the offsets for the next piece would be read and then back to the subprogram to machine the next piece. I am not familiar with the L 20 command but like I said I definitely don't know it all . I have a Fanuc 6MB controller and I do have the book for it at work . I'll look in it and see if I can find anything more about this .
Reply With Quote

  #9   Ban this user!
Old 03-17-2010, 07:36 PM
CNCenforced's Avatar  
Join Date: Mar 2010
Location: United States of America
Posts: 16
CNCenforced is on a distinguished road

Letter "L" also means the number of repetitions of your subprogram if your machine is using one.

Last edited by CNCenforced; 03-18-2010 at 01:57 AM. Reason: Explanation.
Reply With Quote

  #10   Ban this user!
Old 03-18-2010, 10:54 AM
 
Join Date: Jan 2009
Location: US
Posts: 15
bfedger is on a distinguished road
Smile G54 Programming

Thanks Doug M
That would be great if you could find the manuals. I'm not sure of the control series because the supervisor has them locked in his desk.
I dont know everything about cnc programming, but I can program as I have done some machining center programming and have more experience on lathes with FANUC controls. I can utilize work shifts and sub programming.
This "button pusher" attitude at work drives me crazy.
Thanks again
bfedger
Reply With Quote

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

I think that pretty much every use of a P() used on a Fanuc control has been covered by everyone so far. For us to really know what it is used for we need to see the code. Can you post the program or the line of code?

I don’t even want to know why the supervisor has the manuals locked in his desk. These should be used by the programmers and maintenance crew. You should not need them to find out what model Fanuc it is. It should say it right on the front of the control. If you find out what model it is PM your email and I will get the manuals to you. If it is not on the front of the control I have a document attached that specifies the common areas to locate the model inside the cabinet.

One other thing missed on the P() value. This can also pertain to the dwell in a canned cycle. So you could have something like
G54G82X()Y()Z()R()P()

It is really tuff to speculate what the P is for because you have a weird combination in that line of code that doesn’t make much sense. If it were using the G10L()P()X()Y() then you would not need the G54 in that line. If it were using G54M98P()L() then there would be no reason to have a X() and Y() in that line.

Stevo


Moderator….HU. I could not attach the PDF for locating the model. I have been having problems doing this lately. The file is only 171k and the PDF is 500k max. It tries to upload the file and after about 1min it bombs out and gives the standard “internet explorer cannot display the webpage”. I have tired changing file names, zipping the file, copy/paste to word.doc ect. Nothing seems to work. Any idea's?
Reply With Quote

  #12   Ban this user!
Old 03-19-2010, 03:07 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

OK..... back up the truck....

Are you confusing the programs with different Mori machines? Mori also uses another control besides FANUC.... and that's YASNAC.

Therefore, "G54P" would make sense. Since YASNAC doesn't use G54.1... It uses a P address for extended work offsets (P1 up to P27) for each "common". So you could be using offsets like G54P3... G56P16.... G58P2, etc, etc. The only weird deal would be the "L" in it and the fact you have G54.1 page (unless you're looking at different machines). However, to G10 on a YASNAC, you would then use both L and P much the same as a FANUC... except it's only "L2" (or Q2).... unless YASNAC has G54.1 now also??? very strange....
__________________
It's just a part..... cutter still goes round and round....
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
G68 command Ashish B CNC Machining Centers 6 01-22-2010 10:25 PM
Help with GOROUND command please ImanCarrot Dolphin CADCAM 9 01-14-2009 05:20 AM
M01 command slideleft Haas Mills 4 11-20-2008 03:01 PM
G03 COMMAND HELP!! hkfanatic G-Code Programing 25 08-04-2008 03:14 PM
what is the same command? hop G-Code Programing 0 06-20-2006 05:24 AM




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