gearchange − Select from one two speed ranges
The output will be a value scaled for the selected gear, and clamped to the min/max values for that gear. The scale of gear 1 is assumed to be 1, so the output device scale should be chosen accordingly. The scale of gear 2 is relative to gear 1, so if gear 2 runs the spindle 2.5 times as fast as gear 1, scale2 should be set to 2.5.
(requires a floating-point thread)
bit in Gear selection input
float in Speed command input
float out Speed command to DAC/PWM
bit in Direction command input
bit out Direction output - possibly inverted for second gear
float rw (default: 0) Minimum allowed speed in gear range 1
float rw (default: 100000) Maximum allowed speed in gear range 1
float rw (default: 0) Minimum allowed speed in gear range 2
float rw (default: 100000) Maximum allowed speed in gear range 2
float rw (default: 1.0) Relative scale of gear 2 vs. gear 1 Since it is assumed that gear 2 is "high gear", scale2 must be greater than 1, and will be reset to 1 if set lower.
bit rw (default: 0) Set to 1 to reverse the spindle in second gear