Calling a sub program in VR Milling v5

Submit any comments, issues or requests relating to the use of VR Milling Version 5 and 2

Moderators: Martin, Steve, Mr Magoo

Post Reply
User avatar
Denford Admin
Site Admin
Posts: 3635
Joined: Fri 10 Feb , 2006 12:40 pm
Hardware/Software: Go to User Control Panel > Profile
Enter as much information about your CNC hardware and software as you can - it makes it easier for everyone to know what you're talking about then.
Location: Sunny Brighouse
Contact:

Calling a sub program in VR Milling v5

Post by Denford Admin » 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)

Post Reply