Calling a sub program in VR Milling v5
Posted: Mon 26 Apr , 2010 10:30 am
We've been asked a couple of times recently about calling a sub program with any filename from VR Milling v5.
Instead of having to name your program something like 9001.fnc you can use the [SUBPROGRAM directive which allows a number to be associated with any file
eg:
[SUBPROGRAM 9001 U:\Denford Subprograms\RectangularPocketSub
M98 P9001
Will define the file RectangularPocketSub.fnc located on the network drive: U:\Denford Subprograms\ to be the program called by M98 P9001
So, the file can be named anything you like, and located anywhere locally or externally (network)
Instead of having to name your program something like 9001.fnc you can use the [SUBPROGRAM directive which allows a number to be associated with any file
eg:
[SUBPROGRAM 9001 U:\Denford Subprograms\RectangularPocketSub
M98 P9001
Will define the file RectangularPocketSub.fnc located on the network drive: U:\Denford Subprograms\ to be the program called by M98 P9001
So, the file can be named anything you like, and located anywhere locally or externally (network)