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 11-27-2003, 12:34 PM
 
Join Date: Nov 2003
Location: Canada
Posts: 1
hay171717 is on a distinguished road
Question Linear Array

Hi Guys,

Can you do a linear array using G-Code?? My manual does not have anything on this subject.

Cheers,
Shawn
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 11-30-2003, 09:52 PM
 
Join Date: May 2003
Location: United States
Posts: 126
DLMACHINE is on a distinguished road

Most controllers allow you to do a zero-shift then run program again in new location. Set it up to run then shift-zero incrementaly and run again and so on-- then you send home and reset zero. This set up can be told how many times to shift.
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 12-01-2003, 08:43 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

Odd, I never looked at linear arrays in a physical sense, only programmatically..

Look for info on G92, M98 and M99. The G92 is the coordinate offset for most machines, and M98 is a sub program call.

G92 X0 Y0

will set coords to X0 Y0 from where ever the machine sits at the time the command is issued.

M98 P3

Will call Program Number 3. (O0003, etc)

HTH

'Rekd
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

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

Last edited by Rekd; 12-01-2003 at 08:57 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 12-01-2003, 08:44 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

BTW, be very careful, and make sure you understand how the G92 works.

It has teeth and likes to bite..

'Rekd
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

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

  #5   Ban this user!
Old 12-01-2003, 11:03 AM
 
Join Date: Oct 2003
Location: USA
Age: 64
Posts: 263
mrainey is on a distinguished road

I'd recommend staying away from G92 - there's always a better (safer) way to get the job done. G92 will eventually "get" you.

Look at the idea of an incremental (G91) subroutine called a specific number of times.

Sub format:

G91
G0X2.Y0.
G90
G81R.1Z-1.F.006
G80

In this example, the first hole would drill 2 inches in X and 0 inches in Y from the position you're at when you call the sub. Each subsequent call would result in a hole 2 inches from the previous hole.

For a five hole array, call the sub five times in succession (or, on a Fanuc, call it once with five executions - an optional L value, I believe).

You could, of course, change the Y value instead, or even X and Y for an angled row of holes.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 12-01-2003, 11:27 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

mrainey is correct, the G92 is a modal command that (usually) does not reset itself after the cycle, so you would have to mathematically reset the G92 when you're done. And chances are it will get you sooner or later.

There are times when I've had not choice but to use it, but it's not very often.

'Rekd
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

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

  #7   Ban this user!
Old 05-28-2004, 02:18 AM
Paul_S's Avatar  
Join Date: Mar 2003
Location: Mira Loma, California
Posts: 147
Paul_S is on a distinguished road
G92 or G54, G55, G56 thru G59 or G52

If your control supports G54 thru G59 fixture offsets use them instead of G92.

If you have the local fixture offset feature G52, that will allow you move your coordinate system and back.

G92 defines where you are at in you coordinate system. And unless you are back to the same machine postion at the end of your program from when you started. Your coordinate system will drift.

G54 sets your program coordinate system relative to the machine zero.

The machine being one shot G53 command.

Now G52 is a local coordinate system shift. Which is canceled by a G52 X0 Y0 or Z0

G52 is very useful for a program pattern written in absolute mode verses having to use G91 mode.

I stopped using G92 when I started using G54 thru G59 fixture offsets.

When writing manual code, I sometimes use G52 to shift the coordinate system so I can use numbers right off the drawing. Especially for hole patterns from another hole from a datum. To make the program more readable. (If it doesn't make the code more understandable don't bother.)


One thing to remember the local offset G52 is universal in effect. Whether it is used before fixture offset call or after. The G52 local offset shifts relative to all coordinate systems. So don't forget to cancel with the G52 X0 Y0 Z0, between calls.

And depending on the control G52 Z0 before tool changes. And any fixture offset during tool change Z value may need to be zero too. (On a Mark Century 1050 control once dropped 6" radius cutter because the Z value fixture offset I was using had a non-zero Z value. {suprise suprise} From that point on I used fixture offset pairs. One for machining and the second for tool change. Only the X and Y values would be the same.)
__________________
Safety - Quality - Production.

Last edited by Paul_S; 05-28-2004 at 02:27 AM.
Tweet this Post!Share on Facebook
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
Linear Motion FAQ Cutters Cove DIY-CNC Router Table Machines 6 09-30-2009 02:36 AM
newbie Quest. Basic Static Load on Linear Bearing Block kNewton ? Calico Linear and Rotary Motion 4 06-27-2007 07:10 PM
a cheap linear bearing mocnc DIY-CNC Router Table Machines 8 03-26-2005 05:52 PM
Linear bearing spacing & Sizing linear rails? fyffe555 DIY-CNC Router Table Machines 3 12-07-2004 02:09 PM
Linear rails, rod which is better for cnc? snokid DIY-CNC Router Table Machines 9 12-29-2003 08:12 PM




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