Re: How to program the formula for decimal degrees when using a rotary table?
You can do it all in integer.if you could have a set resolution of 0.01 degrees or 36000 counts defined per turn. (360*100)
So each degree is 100 counts. Then its easy for you to decode decimal input knowing the 2 decimal places is 0-9 counts or 0-99 extra.
Then use bregenhams integer algorithm to scale the comanded (0-36000) counts to what the real machine counts per rev is.
Larry
Manufacturer of CNC routers and Viper Servo Drives
www.LarkenCNC.com and www.Viperservo.com