OK, thanks, I'll look into that also.
This never really crashes, just hangs up to where the mouse wont move the cursor, device mgr. wont open, totally stuck (or does that qualify as a crash). Only one way out ... kill it.
The code always runs fine. Never a hitch, except for the rpm during threading.
The PWM out must be wavering, will check that the best I can.
There are few and only slightly varying S calls in the code, so I might be able to do away with the pwm output / 106 board all together and just use the spindle relay on the 122, setting the single desired speed in the VFD itself. If the rpm stability returns, I can go that route until I get a permanent fix.
Thanks again Hood,
regards,
Russ