Shared Functions()
Re: Shared Functions()
Ya-Nvr-No
Great stuff.
I was thinking for my first attempt, I was going to adapt some python code to create a tabbed box.
These examples will go along way to help.
Thanks
Glenn
Great stuff.
I was thinking for my first attempt, I was going to adapt some python code to create a tabbed box.
These examples will go along way to help.
Thanks
Glenn
Re: Shared Functions()
nice piece of wood that one......
Art
Art
Re: Shared Functions()
again Ya-Nvr-No what would we do without you. Merry xmas dude. ;D
Re: Shared Functions()
Photo does not do it justice, I'm sure Mom (96) will enjoy it.
thanks again guys
Ho Ho Ho
Merry Christmas. :D
thanks again guys
Ho Ho Ho
Merry Christmas. :D
Re: Shared Functions()
Nice Job.
Art
Art
Re: Shared Functions()
Terrible for programming, but relatively easy to implement on machines and with a nearly universally supported subset.Ya-Nvr-No wrote: ...
I HATE GCODE
...
Re: Shared Functions()
All true. and yet... I too hate GCode.. lol
Art
Art
Re: Shared Functions()
But yet i find no good laser controller just the boring ones that convert raster image into a series of burn marks.Nate wrote:Terrible for programming, but relatively easy to implement on machines and with a nearly universally supported subset.Ya-Nvr-No wrote: ...
I HATE GCODE
...
This whole adventure to me is to drive my laser to do the unique, not to follow Gcode not convert raster into a smoke filled box that produces the same as a commercial system. As a hobbyist I strive to create the unusual and spur my imagination.
If I want to use old school Gcode I have 5 other 4 to 6 axis machine builds here that will make me some cool things. But I am ready to blow my mind with the unimaginable items that can be created only thru creative math and thinking beyond the past. I've been coding well over 30 years even taught at the university level. Just because there is a comfortable old seat don't mean you have to use it. It takes years of coding and using hundreds of different controllers to start to fully understand this PLC Gcode environment is old school but of course perfect for industry. We have to realize we have the computer power now to take it to the next level. You can bet that NASA don't use the same code cause it worked to get them to the moon. Just because that old pickup gets you to Wal-Mart does not stop you from dreaming "if only".
As they say "Think outside the box" Have fun, learn and adapt, as we can not live in the past and to develop any coding imagination we have to have the tools that provide it.
I do not forget this is my hobby and I do this out of pure enjoyment. I spent years as Tool & Die Maker and many more as a Manufacturing & contract programming Engineer, now can apply my experience to get a job done for me and have fun at it.
There are a lot of good coders out there that know macro B or even a few that know macro A too, But in all the years of doing this there is a small subset that can write Macro code, know what keeper relays does and then can add them with Fanuc Fapladder logic code, then add Mcodes and additional hardware I/O for loading & unloading and integrating a turnkey system. I can tell you it is a pita and c++ scripting is a breeze next to that. And the best part "Art at this time is providing it FREE" Go out and price the upgrade to a Fanuc controller to add Macro B or to add an Mcode. Call them up and ask if they can write you a special function? Ask your local machine coder what he charges to add that feature. After he gets done laughing you will realize the ability learning scripting can do for you.
Re: Shared Functions()
So I have it doing a actual squares block("MotionStill"); now instead of a squares with radiused corners.
Ya-Nvr-No's code examples in the are very helpful. Thank you!
I am trying to be patient but sometimes a kid in a candy store has a very hard time.
Looking through the Global Func's and constants didn't see a switch case.
Glenn
P.S. Did look up the Game Monkey and it does mention that no switch is available so blocks of if statements it is. :D
Re: Shared Functions()
Glenn:
A video is just uploading on general screen design, though it sounds like your beyond it anyway...
Ill include the Monkey Docs in next release as well, though I'm sure you've found them by now
online.
Art
A video is just uploading on general screen design, though it sounds like your beyond it anyway...
Ill include the Monkey Docs in next release as well, though I'm sure you've found them by now
online.
Art
Re: Shared Functions()
Art
Fleshed out some thing on buttons and what not that I was unsure of so very helpful.
Thanks
Merry Christmas.
Fleshed out some thing on buttons and what not that I was unsure of so very helpful.
Thanks
Merry Christmas.
Re: Shared Functions()
I read some concerns about scripting and motion directly from scripting.
Well why not open a file in the function and write to the file as formatted gcode?
after all its just math and numbers all doing the same thing.
What do you think a Post Processors does ???
So there is no reason not to create functions that can give us unique shapes and post the data out to your gcode read only controller.
Embrace scripting as a new vehicle to give you a new creative tool.
PS: This was my crude way to do it but it shows that its an easy process.
I'd like to see a function created, we just pass the positional data too and it writes the Gcode.
that way ever function can use the same GCodeOut() function
Well why not open a file in the function and write to the file as formatted gcode?
after all its just math and numbers all doing the same thing.
What do you think a Post Processors does ???
So there is no reason not to create functions that can give us unique shapes and post the data out to your gcode read only controller.
Embrace scripting as a new vehicle to give you a new creative tool.
PS: This was my crude way to do it but it shows that its an easy process.
I'd like to see a function created, we just pass the positional data too and it writes the Gcode.
that way ever function can use the same GCodeOut() function
Code: Select all
g0 z1
g0 x0 y0
g1 z-.1
x0.100 y0.010
x0.196 y0.040
x0.287 y0.089
x0.368 y0.156
x0.439 y0.240
x0.495 y0.339
x0.535 y0.451
x0.557 y0.574
x0.559 y0.705
x0.540 y0.841
x0.499 y0.980
x0.435 y1.118
x0.348 y1.253
x0.238 y1.380
x0.106 y1.496
x-0.047 y1.599
x-0.219 y1.686
x-0.409 y1.753
x-0.614 y1.798
x-0.832 y1.819
x-1.060 y1.813
x-1.295 y1.779
x-1.532 y1.715
x-1.770 y1.621
x-2.003 y1.496
x-2.228 y1.340
x-2.441 y1.154
x-2.638 y0.938
x-2.816 y0.694
x-2.970 y0.423
x-3.097 y0.129
x-3.195 y-0.187
x-3.259 y-0.521
x-3.287 y-0.869
x-3.278 y-1.228
x-3.228 y-1.593
x-3.138 y-1.960
x-3.006 y-2.325
x-2.831 y-2.682
x-2.615 y-3.027
x-2.357 y-3.355
x-2.059 y-3.661
x-1.723 y-3.940
x-1.352 y-4.187
x-0.949 y-4.399
x-0.516 y-4.571
x-0.058 y-4.700
x0.420 y-4.782
x0.914 y-4.814
x1.418 y-4.795
x1.928 y-4.722
x2.436 y-4.594
x2.938 y-4.411
x3.427 y-4.173
x3.898 y-3.880
x4.343 y-3.535
x4.758 y-3.139
x5.136 y-2.695
x5.472 y-2.206
x5.761 y-1.677
x5.998 y-1.111
x6.179 y-0.515
x6.299 y0.106
x6.356 y0.746
x6.348 y1.398
x6.272 y2.056
x6.126 y2.712
x5.912 y3.360
x5.629 y3.991
x5.277 y4.599
x4.860 y5.176
x4.380 y5.714
x3.840 y6.208
x3.245 y6.650
x2.600 y7.035
x1.910 y7.356
x1.181 y7.609
x0.421 y7.789
g0 z1
Last edited by Ya-Nvr-No on Fri Dec 25, 2015 1:15 am, edited 1 time in total.
Re: Shared Functions()
A function that would take info out of a .csv would be good, then you could do a spreadsheet and use voronoi math to do spirals. I have info on how to do this in another computer language.
I might see if I can find it and have a play.
I might see if I can find it and have a play.
Re: Shared Functions()
playing around, made a couple alterations.
global Phi=Const.Gold; //Fibonacci Golden Ratio, a special number approximately equal to 1.6180339887498948482
global phi=Const.Gold-1;
x = (t * math.cos(t))*Phi;
y = x*((t * math.sin(t))*phi);
tweak the sign can give you some big changes and can create some interesting patterns.
learn what tables and arrays can be used for and how you can take spreadsheet data and paste it into one or more tables. Then use the tables as a source of data points.
Investigate web sites that teaches or inspire you to use math again, like: http://mathforum.org/dr.math/faq/
find some old source code that does something cool or you can relate to.
maybe something you would like to see plotted or someday cut out for a conversational drink holder or welcome mat.
teach your kids how math is something they can have real fun with and produce their results with your machine.
Auggie can be an inspirational & educational tool that produces CNC movement for the creative and/or inquisitive mind. 8)
global Phi=Const.Gold; //Fibonacci Golden Ratio, a special number approximately equal to 1.6180339887498948482
global phi=Const.Gold-1;
x = (t * math.cos(t))*Phi;
y = x*((t * math.sin(t))*phi);
tweak the sign can give you some big changes and can create some interesting patterns.
learn what tables and arrays can be used for and how you can take spreadsheet data and paste it into one or more tables. Then use the tables as a source of data points.
Investigate web sites that teaches or inspire you to use math again, like: http://mathforum.org/dr.math/faq/
find some old source code that does something cool or you can relate to.
maybe something you would like to see plotted or someday cut out for a conversational drink holder or welcome mat.
teach your kids how math is something they can have real fun with and produce their results with your machine.
Auggie can be an inspirational & educational tool that produces CNC movement for the creative and/or inquisitive mind. 8)
Who is online
Users browsing this forum: No registered users and 17 guests