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.
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.
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
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.
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
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
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
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
Thanks all, especially to CNC King.