Shared Librarys()

Discussions and file drops for Auggie
Post Reply
Ya-Nvr-No
Old Timer
Posts: 188
Joined: Wed Sep 08, 2010 11:15 am

Shared Librarys()

Post by Ya-Nvr-No »

This is where we hope to deposit and grow a vast resource of Library functions.

Remember all library's have to be in the "Script folder" and the library name has to be found as the "Script" name the "folder" it is in and the "header line" must have all the same name.

here tested in the MultiLine-MDI fold, I use the #5 pokies axis as a spindle turn it on and sets the velocity to 500 * steps per unit.
{
FreeSetAxisMode(5,1);
FreeSetSpeed(5,500);
GoldenSpiral( 10, .01, .02, .02 , 1 , 0) ;
FreeSetSpeed(5,0);
}
m30

The images are from the above code. I only controlled the GoldenSpiral for the additional control but wanted you to see how passing info to a function can then be used for condition statements.

and the last image was from my original test, notice you don't have to pass the conditions as they are set by default.
GoldenSpiral( 10, .1, .01, .01 ) ;

The bonus here is you can checkout a library script make changes, hit run then go test it while its still checked out. If all works and your happy check it back in. (note: watch the toolpath display for messages of errors and go to log to see what line the issue was on)

1:14:373  error (32) parse error, expecting `'(''

in this case it was a typo on line 32 of my library script

Just Have Fun  ;)

oops: forgot to mention that you can edit the path in the script of where you want your gcode files to be saved too.
just notice and use the "//" between your folder paths.
these are examples and as we all learn more we can all benefit.
Attachments
Spirals_lib.zip
(1.36 KiB) Downloaded 269 times
goldenspiral.JPG
goldenspiral3.JPG
goldenspiral2.JPG
Last edited by Ya-Nvr-No on Tue Jan 05, 2016 6:32 am, edited 1 time in total.
Ya-Nvr-No
Old Timer
Posts: 188
Joined: Wed Sep 08, 2010 11:15 am

Re: Shared Librarys()

Post by Ya-Nvr-No »

Here is the getday function I showed in the Shared Functions() thread provided as a Library.

Add the Date folder to the Script folder and then check it in, you can just use the "Script" fold to run the function and then look in the log file to find the results.

Code: Select all

weekday=getday(1,12,2016); // goodbye mom, love ya
print("The day of the week was: "+weekday);
Attachments
Dates.zip
(990 Bytes) Downloaded 258 times
Ya-Nvr-No
Old Timer
Posts: 188
Joined: Wed Sep 08, 2010 11:15 am

Re: Shared Librarys()

Post by Ya-Nvr-No »

Starting testing on a new feature called Dialogs

shows how to use textboxes, tables, buttons, sliders, drop downs, and how they all can interact.
Attachments
DialogsTest.zip
(1.48 KiB) Downloaded 265 times
dialogtest.JPG
Post Reply

Who is online

Users browsing this forum: No registered users and 86 guests