Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 05:52:08 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Feature Requests
| | |-+  Subroutine library ability?
Pages: 1   Go Down
Print
Author Topic: Subroutine library ability?  (Read 358 times)
0 Members and 1 Guest are viewing this topic.
rcaffin
Active Member

Offline Offline

Posts: 261


View Profile
« on: August 22, 2010, 10:58:34 PM »

I am machining a number of different bits. I control the dimensions by having a 'data file' external to the main g-code file: it contains just parameter setting statements and is called as an external subroutine. To alter a part I just edit the dimanions in the data file.

I also use several canned routines for many vaguely similar parts. It seems (I may be wrong) that these canned routines must be included at the end of the main g-code file. I would love to be able to put them in a separate library file instead, and invoke that at the start of the main g-code file. However, it seems that when Mach3 reads in a subroutine file during the load process, it does not register any subroutine labels in that file for use from the main code file. On the other hand, it obviously does register all the subroutine labels when it reads in the main code file.

It would be very nice if Mach4 could register multiple labels from within a subroutine file (common library routines) and be able to call them. All it would take is a slight change to the loader. Would this be possible?

Cheers
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!