The spindle in the Galil plugin uses a +-10 signal (just like a servo drive) when an encoder on the spindle is specified. If your spindle drive is 0 to 10v, then there will be issues reversing speed.
If your spindle runs away, then swap the A & B encoder signals and try it again. In the Galil, we use the JG command to control the spindle speed when there is an encoder on the spindle. So it's operating like a servo, which requires that the encoder signal track the correct direction of the motor. Otherwise, the following error increases and the PID loop ramps the voltage up to try and decrease the following error. So if the encoder tracking is backwards, the following error always increases.
Steve