I have spindle controlled with 0-10V VFD ( sensores vector control drive ).
Spindle has got two gear reductions. On low it drives from 255 - 1048RPM and in high gear ratio from 1 - 255 RPM.
I would have two outputs on mesa IO board .
How can i configure hal to turn on high gear when RPM is <=255 and turn on low gear when RPM is > 255 RPM
LOW_GEAR = 0.00954 ( 10Volts/1048 )
HIGH_GEAR = 0.039215 ( 10Volts/ 255 )
Also, it is posible to configure and use PID for RPM ? . In this situation i wouldn't neet to use gain for high and low reduction.
I have got 1024CPR encoder on spindle and it is configure for velocity and works just fine if i use G95 code.
It give me 4096 pulses / revolution.