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 09-01-2007, 11:02 AM
 
Join Date: Aug 2007
Location: UK
Posts: 6
batmill is on a distinguished road
Line numbers

I'm new to NC coding, and I need to know if lines HAVE to be numbered in chronological sequence: N1
N2
N3 etc.
Would an M98 sub pgm. call have to have the same line number as the sub programme?

Thanks, Barry.
Reply With Quote

  #2   Ban this user!
Old 09-01-2007, 11:10 AM
 
Join Date: Mar 2007
Location: USA
Posts: 207
John3 is on a distinguished road

I think the correct answer is, it depends......

Most machine controllers don't care about the line numbers most of the time.

Some older controllers might care all of the time.

There are certain times that most all controllers care about the order. For instance in the G7x series of lathe canned cycles, N block/line numbers must be included, they must follow a certain order and most of all, must be unique, not duplicated anywhere else in the program.

John
Reply With Quote

  #3   Ban this user!
Old 09-01-2007, 01:32 PM
 
Join Date: Aug 2007
Location: UK
Posts: 6
batmill is on a distinguished road

Originally Posted by John3 View Post
I think the correct answer is, it depends......

Most machine controllers don't care about the line numbers most of the time.

Some older controllers might care all of the time.

There are certain times that most all controllers care about the order. For instance in the G7x series of lathe canned cycles, N block/line numbers must be included, they must follow a certain order and most of all, must be unique, not duplicated anywhere else in the program.

John
Hi John, the controller is Ultimax on a new Hurco VM2 mill. Similar to Fanuc I believe.
Reply With Quote

  #4   Ban this user!
Old 09-01-2007, 01:46 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by batmill View Post
.... Would an M98 sub pgm. call have to have the same line number as the sub programme?

Thanks, Barry.
I think the M98 call needs the program number not a line number; it is an external call. M97 is an internal call to a line number in the same program. The letter used to label the program number or line number is different for different machines but I think the M98 calling outside the program and M97 within the program is universal.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #5   Ban this user!
Old 09-01-2007, 02:21 PM
 
Join Date: Mar 2007
Location: USA
Posts: 207
John3 is on a distinguished road

Originally Posted by batmill View Post
Would an M98 sub pgm. call have to have the same line number as the sub programme?
Your controller most likely doesn't need any line numbers except for special functions.

You could put them in if you wanted to.

What Geof said is right, the line numbers that you asked about are irrelevant to use of the M98 sub-program call. For the line with the M98 you could have any or no line number on it. But you must give it a valid program number for the subroutine.

Be careful with M97, if its a subroutine call on your machine it DOES have to reference a valid line number. On my Milltronics VMC however M97 is pocket clear!! (so much for standardized G-code)

As a friend of mine says, "The great thing about standards, is that there are so many of them to choose from."

John
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-01-2007, 02:49 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by John3 View Post
....... On my Milltronics VMC however M97 is pocket clear!! (so much for standardized G-code)

As a friend of mine says, "The great thing about standards, is that there are so many of them to choose from."

John
I sometimes wish I had a pet ghost I could commission to haunt the people who screwed up the original concept of standardized G codes. Excuse the minor hijack it is one of my (many) pet peeves.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #7   Ban this user!
Old 09-05-2007, 11:30 AM
cnc-king's Avatar  
Join Date: Jul 2003
Location: united states
Posts: 232
cnc-king is on a distinguished road

Originally Posted by batmill View Post
Hi John, the controller is Ultimax on a new Hurco VM2 mill. Similar to Fanuc I believe.
the ultimax is nowhere near to the fanucs

you dont really need line numbers, the only time you need them is if you have a problem in your prog and need to search for it, all line numbers does is take up memory.

we run 2 to 3 megs programs in our Hurcos with no line numbers, the operators hate line numbers.

the Ultimax only needs line numbers when you are using Hurco's programming system not in ISNC mode
__________________
If you can ENVISION it I can make it
Reply With Quote

  #8   Ban this user!
Old 09-05-2007, 06:37 PM
 
Join Date: Jun 2007
Location: usa
Posts: 21
bob@apc is on a distinguished road
Smile

We only use N numbers at the beginning of each tool work within the program so its easy to call this line up if you need to make changes within that portion of the program or re-run a particular tool;

N1(drill work)
code
code
ect,,,
N2(tap)
code
code
ect,,,
N3(endmill work)
code
code
ect.

This also makes the program easy to follow for editting and proving
Reply With Quote

  #9  
Old 09-05-2007, 07:47 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by Geof View Post
I sometimes wish I had a pet ghost I could commission to haunt the people who screwed up the original concept of standardized G codes. Excuse the minor hijack it is one of my (many) pet peeves.
I'll give a Good Example of this. Acromatic 2100E made by Siemens.

They use "P" instead of "R" for Arcs. This can be changed in the Windows 98 Controllers but I have heard that it is a PITA.

There Drilling Canned Cycles have Too many Options that do not apply to 90% of what needs to be done.

I have to say that the Fanuc and Yasnac MX Series are two of the best though out Controls, IMPO.

Sorry for the Hijack but this is annoying pet peeve that I have had for many years.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
Reply With Quote

  #10   Ban this user!
Old 09-08-2007, 08:44 PM
 
Join Date: Feb 2007
Location: USA
Posts: 531
skullworks is on a distinguished road
Arrow

Originally Posted by bob@apc View Post
We only use N numbers at the beginning of each tool work within the program so its easy to call this line up if you need to make changes within that portion of the program or re-run a particular tool;

N1(drill work)
code
code
ect,,,
N2(tap)
code
code
ect,,,
N3(endmill work)
code
code
ect.

This also makes the program easy to follow for editting and proving
Yes this is a prefered method - with an optional stop on the line before each Nxxx starting point.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-08-2007, 09:47 PM
 
Join Date: Jun 2007
Location: usa
Posts: 21
bob@apc is on a distinguished road

Originally Posted by skullworks View Post
Yes this is a prefered method - with an optional stop on the line before each Nxxx starting point.
Correct,, That would be part of the ect,ect I refer to before the next N# .
Reply With Quote

  #12   Ban this user!
Old 09-16-2007, 03:25 AM
 
Join Date: Aug 2007
Location: UK
Posts: 6
batmill is on a distinguished road

Thanks all, especially to CNC King.
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
Tool Numbers Mike Mattera EdgeCam 10 02-04-2008 10:18 AM
Line numbers Fanuc OMD Gncc50 Fanuc 1 08-22-2007 01:30 PM
How to get rid of line numbers in NC code mcoughlin CamWorks 1 04-16-2007 10:30 PM
G-Code Line Numbers? Imagineering G-Code Programing 3 08-17-2005 07:26 AM
How do I engrave numbers... slp_prlzys DIY-CNC Router Table Machines 7 10-15-2004 02:35 PM




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