Using PncConf wizard

More
01 Aug 2020 04:37 #176749 by ericg
Replied by ericg on topic Using PncConf wizard
thanks, but I still don't understand,. I set my max voltage to 5v with a max rpm of 30000, if gcode calls for S10000 i.e. 1/3rd of max speed, should that not output 1/3rd of 5v or about 1.666 V?

Please Log in or Create an account to join the conversation.

More
01 Aug 2020 04:46 - 01 Aug 2020 04:48 #176750 by PCW
Replied by PCW on topic Using PncConf wizard

thanks, but I still don't understand,. I set my max voltage to 5v with a max rpm of 30000, if gcode calls for S10000 i.e. 1/3rd of max speed, should that not output 1/3rd of 5v or about 1.666 V?


Yes if the PWM scale is set properly, It looks like it is not because there's a name mismatch
between the ini and hal files:

INI file: spindle stuff
#********************
# Spindle 
#********************
[SPINDLE_9]
^^^^^^^^^^^
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 30000
OUTPUT_SCALE = 30000
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 30000

HAL file spindle stuff:
# --- SPINDLE-CW ---
setp hm2_5i25.0.gpio.007.is_output true
net spindle-cw => hm2_5i25.0.gpio.007.out
and
#*******************
# SPINDLE
#*******************

setp pid.s.Pgain [SPINDLE_0]P
                 ^^^^^^^^^^^^
setp pid.s.Igain [SPINDLE_0]I
setp pid.s.Dgain [SPINDLE_0]D
setp pid.s.bias [SPINDLE_0]BIAS
setp pid.s.FF0 [SPINDLE_0]FF0
setp pid.s.FF1 [SPINDLE_0]FF1
setp pid.s.FF2 [SPINDLE_0]FF2
setp pid.s.deadband [SPINDLE_0]DEADBAND
setp pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT
setp pid.s.error-previous-target true
Last edit: 01 Aug 2020 04:48 by PCW.

Please Log in or Create an account to join the conversation.

More
01 Aug 2020 06:04 - 01 Aug 2020 06:06 #176756 by ericg
Replied by ericg on topic Using PncConf wizard
Thanks for that, I did find that earlier and fixed it but it may have contributed to the issue but I finally found the problem, and as usual it was between my ears,
I followed tommylight's notes on it blindly, and left the PWM frequency to 20000 when the super-pid controller wants a PWM of 50hz, big difference, now my spindle is running much slower and I now have to find a scale number to get everything to match which I assume i need to hand craft in the .ini file or is there somewhere in PncConf to do it.
And according to the super-pid notes the PWM input is on parallel port pin 14 which according to readhmid maps to i/o 1 but the PWM generator is seen on i/o 0 so this becomes so confusing for a beginner.
Now I need to fix one button on my HB04 pendant something about cannot home in joint mode then I should be happy
Many thanks for the assistance
Last edit: 01 Aug 2020 06:06 by ericg.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.104 seconds
Powered by Kunena Forum