I'm converting a parallel lathe to Linux CNC. It has nine speeds, which are manually changed using two levers with three positions each. The motor always runs at the same speed, and direction changes are achieved via electromechanical clutches. I want to control the motor speed at each speed using a NIETZ AT20 VFD with speed feedback from an encoder. Therefore, the motor speed at each speed will vary between 0 and 1630 RPM, and the gearbox will convert this to a range between 0 and the maximum of that range. For example, range 1 would be from 0 to 36 RPM, range 2 from 36 to 90, range 3 from 90 to 155, range 4 from 155 to 200, and so on. I know there's a gearchange component, but it only supports two speeds. For the speed selection logic, I think I can use 3 instances of lut5 and mux16, what I don't understand is if I can use the gearchange component or if a version that handles 9 speeds is required.