Hi There,
am having some issues with controlling my spindle. I have a 3 axis (servo) knee mill with a VFD on the spindle. After getting the mill running properly and making parts I decided to figure out how to get rigid tapping working. My spindle works fine when it is set up via bit control for CW, CCW, and OFF with an DAC conversion (on the S command) for speed control. So I read multiple threads on this forum (and dynomotion's forum) and came to the conclusion that I would follow Tom's advice to set it up like a servo since I now have an encoder on it. Now I cant get my spindle to run at all. It works fine using the step response tool and the I can jog CW and CCW using + and - jog values on the console utility. I am guessing I have something incorrectly set up in my C programs for jog and spindle control. I don't seem to be passing a speed value from my "S" command in the g-code to the Speed variable in my C program. I will post my programs below, and any help would be greatly appreciated!! Thanks!!