So it was a busy week, but here is the list of keys that I modified to get the spindle running. Some of the values are specific to the spindle itself. My spindle is 2.2kw air cooled, so my max rpm is 24000 and the minimum rpm is 12000. also my pwm range is from about 5v to around 9.6, so i adjusted the values is the 5 section to make my max voltage equal 24000 rpm. the values in the parenthesis are the values that i used, but will vary depending on your spindle
P00.01 - 1
P00.03 - [MAX OUTPUT FREQUENCY] (400)
P00.04 - [MAX RUNNING FREQUENCY] (400)
P00.05 - [MIN RUNNING FREQUENCY] (200)
P00.06 - 2 [ANALOG INPUT 2]
P00.07 - 1
P00.10 - 60
P00.11 - 6 (seconds to accelerate)
P00.12 - 6 (seconds to decelerate)
P00.14 - 4.0 (2.2 KW)
P02.01 - [MOTOR RATED POWER] (2.2)
P02.02 - [MOTOR FREQUENCY] (400)
P02.03 - [MAX RPM] (24000)
P02.04 - [MOTOR VOLTAGE] (220)
P03.05 - [MOTOR RATED AMPS] (6)
with this section, anything under 5v will also give me 50% power, so the spindle can never run less than 12k rpm. just to be on the safe side, i also set the AI2 settings to the same values (37-40)
P05.32 - 5.00
P05.33 - 50.00
P05.34 - 9.6
P05.35 - 100.0
P05.37 - 5.00
P05.38 - 50.00
P05.39 - 9.6
P05.40 - 100.0
This allows me to use the stop key to override the spindle in case of emergency
P07.04 - 3