asteude
07-21-2012, 02:02 PM
Hi, y'all!
I have been using Excel to generate some fairly simple 3D cutting instructions. But I'm quickly getting to the point where I need to start programming nested loops and that's just not something Excel is terribly good at. (The reason I'm generating cutting paths directly rather than using a tool is that I need to/want to calculate them based on parameters.)
Rather than switching to a real programming language, I thought I'd try skipping the middle man and program directly in Open SBP. However, the SB programming manual is a bit sparse on information regarding support for mathematical functions. It just says "most mathematical functions are supported" and goes on to suggest I just try it in the calculator. Surely somewhere there's a list of the supported functions and how they're implemented in SBP?
I've found that trigonometric functions (at least sine) are supported. That's great. Unfortunately they take radians as an argument and I can't figure out a function to convert from degrees to radians or a function or system parameter for 'pi'. (I'm also just pig-headed enough not to just set &pi=3.14159265. Why? Because I shouldn't have to!)
So, if you're still with me, you will be my hero if you can tell me:
a) Where are the supported math functions documented?
b) Specifically, what is the function to convert degrees to radians? Or, how do you get SBP to spit out the number 'pi'?
Thanks for reading!
Andy
I have been using Excel to generate some fairly simple 3D cutting instructions. But I'm quickly getting to the point where I need to start programming nested loops and that's just not something Excel is terribly good at. (The reason I'm generating cutting paths directly rather than using a tool is that I need to/want to calculate them based on parameters.)
Rather than switching to a real programming language, I thought I'd try skipping the middle man and program directly in Open SBP. However, the SB programming manual is a bit sparse on information regarding support for mathematical functions. It just says "most mathematical functions are supported" and goes on to suggest I just try it in the calculator. Surely somewhere there's a list of the supported functions and how they're implemented in SBP?
I've found that trigonometric functions (at least sine) are supported. That's great. Unfortunately they take radians as an argument and I can't figure out a function to convert from degrees to radians or a function or system parameter for 'pi'. (I'm also just pig-headed enough not to just set &pi=3.14159265. Why? Because I shouldn't have to!)
So, if you're still with me, you will be my hero if you can tell me:
a) Where are the supported math functions documented?
b) Specifically, what is the function to convert degrees to radians? Or, how do you get SBP to spit out the number 'pi'?
Thanks for reading!
Andy