Good evening.
Please sorry for my english.
I would like to ask for advice.
I just redesigned my cnc to spindle speed control and I have a problem. The spindle turns on. Speed control works, but irregularly (+/- 2000 rpm) and not at max speed.(21700). I searched a lot here on the forum, but I was not successful.

My setup:
Mach3,
Huanyang VFD
2.2KW spindle
and BSMCE04U board

My settings:
PD005: High-end frequency: 400 Hz
PD006: Middle frequency: 2.5 Hz
PD007: Low-end frequency: 0.5 Hz
PD008: High-end voltage: 220 V
PD009: Middle voltage: 15 V
PD010: Low-end voltage: 8 V
PD070: Speed control input: 0 means 0-10V.
PD071: Speed control responsiveness: Leave at the factory setting of 20.
PD072: High-end frequency: Set to 400. This sets the frequency represented by the top end of the speed control.
PD073: Low-end frequency: Set to 120. This sets the frequency represented by the bottom end of the speed control.
PD141: Rated motor voltage: Set to 220V.
PD142: Rated motor current: Set to 11A.
PD143: Number of motor poles: Set to 4.
PD144: RPM at 50Hz: Set to 3000.

I read 3 days without success. I reset vfd + new settings, reinstalled mach3, reinstalled the laptop, tried the 5v control, nothing will help. still max 21700 rpm and speed fluctuations. I set 20000 and the spindle rotates from 19000 to 21000. when I set 24000 it stops at 21700 without fluctuating.

can someone please help me what next?
thank you for your time