- Posts: 138
- Thank you received: 10
Using PncConf wizard
- ericg
- Offline
- Premium Member
-
Less
More
6 years 3 months ago #176735
by ericg
Replied by ericg on topic Using PncConf wizard
it's 30500, but I have changed around with no effect
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago #176739
by PCW
Replied by PCW on topic Using PncConf wizard
Is this with a G540 drive?
Can you also post your .ini file?
Can you also post your .ini file?
Please Log in or Create an account to join the conversation.
- ericg
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 10
6 years 3 months ago - 6 years 3 months ago #176741
by ericg
Replied by ericg on topic Using PncConf wizard
Yes, it's with a G540 wired to use variable 5v supply, which one of the reasons I don't understand why I wouls need a PWM generator in the PncConf wizard to set it up, I did find an old thread which has different ini file setup but I think that was for a PWM signal to the super-pid , regardless, I'm confused as usual
I just changed the output scal to 10000 just to see and that is what I just sent
I just changed the output scal to 10000 just to see and that is what I just sent
Last edit: 6 years 3 months ago by ericg.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago - 6 years 3 months ago #176746
by PCW
Replied by PCW on topic Using PncConf wizard
"OUTPUT_SCALE = 10000"
Would give you full output (5V) at a requested spindle speed of 10000 RPM
It would probably be helpful to measure the spindel output voltage of the G540
at different spindle speed settings to see a bit better what's going on
The PWM would work with a constant 5V to the G540 and should provide
0 to 5V when the commanded speed is 0 to 30000 RPM (assuming OUTPUT_SCALE is 30000)
Would give you full output (5V) at a requested spindle speed of 10000 RPM
It would probably be helpful to measure the spindel output voltage of the G540
at different spindle speed settings to see a bit better what's going on
The PWM would work with a constant 5V to the G540 and should provide
0 to 5V when the commanded speed is 0 to 30000 RPM (assuming OUTPUT_SCALE is 30000)
Last edit: 6 years 3 months ago by PCW.
Please Log in or Create an account to join the conversation.
- ericg
- Offline
- Premium Member
-
Less
More
- Posts: 138
- Thank you received: 10
6 years 3 months ago #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.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago - 6 years 3 months ago #176750
by PCW
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
Replied by PCW on topic Using PncConf wizard
ericg wrote: 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
Code:
#********************
# 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: 6 years 3 months ago by PCW.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.131 seconds