Huanyang VFD Spindle won't work from within CM

As a start, have you read this thread?