681
G-Code, CAD, and CAM discussions / Subroutine confusion.
« on: October 02, 2010, 06:43:10 PM »
So I have never really understood the term ( i thought I did but a few words seem very similar here). When using an M98 to call a subroutine like this
M98 P00001 L10 (doesnt this mean to call up a subroutine #1? And loop it 10 times?)
Is this subroutine a defined amount set up prior? If yes where are they stored? I am ass/u/me/ing they must be set up at an earlier time and stored numerically. I notice that generally when they are called, lower in the code it will give a definiition of what that sub is doing, is that like a local control you can edit on the fly? I mean by editing say the depth in the description of the sub at the bottom?
M98 P00001 L10 (doesnt this mean to call up a subroutine #1? And loop it 10 times?)
Is this subroutine a defined amount set up prior? If yes where are they stored? I am ass/u/me/ing they must be set up at an earlier time and stored numerically. I notice that generally when they are called, lower in the code it will give a definiition of what that sub is doing, is that like a local control you can edit on the fly? I mean by editing say the depth in the description of the sub at the bottom?