Using PncConf wizard
31 Jul 2020 04:19 #176600
by ericg
Using PncConf wizard was created by ericg
I was looking at an old thread by tommylight, which I thought it would be handy to follow for my setup which is also a 5i25/G540 combo.
I noticed however that the I/O pins on your screenshot for I/O3 is different from mine, so some guidance would be appreciated on how to set mine up. For example according to my readhmid, Z step is pin 6 on the parallel port which is mapped to I/O 9 internally but I see no I/O 9 in my I/O3 page. Is there a later 5i25_G540 firmware I should flash? I also set on the configuration page the number of encoders and PWM generators to 0 as I use three stepper motors for axis and the SuperPID controler for spindle speed control (which is another niggling issue)
I have attached an image of my I/O 3 page and what readhmid shows me
BTW I do have a working setup which I did by hand but would like to know what the i/o numbers mean such as 000 and 00 and 0 and also 001 vs 1 etc and why the i/o pins are different to yours
your help in understanding this is appreciated
Eric
I noticed however that the I/O pins on your screenshot for I/O3 is different from mine, so some guidance would be appreciated on how to set mine up. For example according to my readhmid, Z step is pin 6 on the parallel port which is mapped to I/O 9 internally but I see no I/O 9 in my I/O3 page. Is there a later 5i25_G540 firmware I should flash? I also set on the configuration page the number of encoders and PWM generators to 0 as I use three stepper motors for axis and the SuperPID controler for spindle speed control (which is another niggling issue)
I have attached an image of my I/O 3 page and what readhmid shows me
BTW I do have a working setup which I did by hand but would like to know what the i/o numbers mean such as 000 and 00 and 0 and also 001 vs 1 etc and why the i/o pins are different to yours
your help in understanding this is appreciated
Eric
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
31 Jul 2020 08:09 #176616
by tommylight
Replied by tommylight on topic Using PncConf wizard
Do not worry about those numbers, everything will be in place after saving.
Those numbers are for orientation so 0 is stepgen 0, 1 is stepgen 1 etc.
No need to flash, it seems the firmware is set for G540.
The differences you see might be since i use the latest master branch.
Those numbers are for orientation so 0 is stepgen 0, 1 is stepgen 1 etc.
No need to flash, it seems the firmware is set for G540.
The differences you see might be since i use the latest master branch.
Please Log in or Create an account to join the conversation.
31 Jul 2020 08:23 #176622
by ericg
Replied by ericg on topic Using PncConf wizard
Thanks tommylight, I got that finally, but it still confuses me why there are 000, 00, vs 0 and 001 vs 1 etc, and also when I realized from your notes that I did not need encoders or pwm for steppers and a superPID spindle controller I put them to 0 now I have to learn how to control the spindle on/off and speed - is that done via PncConf or do I hand craft it, and if so how do I control the speed? that is how do I vary the voltage to control the speed (I know how to control on/off)
Full of dumb questions aren't I.
Full of dumb questions aren't I.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
31 Jul 2020 10:16 #176631
by tommylight
Replied by tommylight on topic Using PncConf wizard
Yes, you do need to set 1 PWM in pncconf for speed control.
So open pncconf but choose to modify an existing config, not to create a new one, and add the PWM.
So open pncconf but choose to modify an existing config, not to create a new one, and add the PWM.
Please Log in or Create an account to join the conversation.
01 Aug 2020 00:55 #176717
by ericg
Replied by ericg on topic Using PncConf wizard
I have got the spindle setting page back and set it to 5v for 30000rpm which is what my super-PID controller requires, running a program controls the spindle on/off, the Gcode calls say S10000, the pyvcp panel shows 10000rpm, but my spindle runs flat out at 30000 rpm, which setting controls the voltage level that outputs to the super-PID to control the speed. My stepconf worked OK
Here are the bits out of my .hal file re the spindle
Appreciated any help - guidance on this
# --- 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
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm-abs => pid.s.command
net spindle-vel-fb-rpm-abs => pid.s.feedback
net spindle-output <= pid.s.output
# ---PWM Generator signals/setup---
setp hm2_5i25.0.pwmgen.00.output-type 1
setp hm2_5i25.0.pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
net spindle-vel-cmd-rpm => hm2_5i25.0.pwmgen.00.value
net spindle-enable => hm2_5i25.0.pwmgen.00.enable
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true
Here are the bits out of my .hal file re the spindle
Appreciated any help - guidance on this
# --- 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
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm-abs => pid.s.command
net spindle-vel-fb-rpm-abs => pid.s.feedback
net spindle-output <= pid.s.output
# ---PWM Generator signals/setup---
setp hm2_5i25.0.pwmgen.00.output-type 1
setp hm2_5i25.0.pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
net spindle-vel-cmd-rpm => hm2_5i25.0.pwmgen.00.value
net spindle-enable => hm2_5i25.0.pwmgen.00.enable
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true
Please Log in or Create an account to join the conversation.
01 Aug 2020 03:27 #176734
by PCW
Replied by PCW on topic Using PncConf wizard
What is the value of [SPINDLE_0]OUTPUT_SCALE
( its in your .ini file? )
( its in your .ini file? )
Please Log in or Create an account to join the conversation.
01 Aug 2020 03:32 #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.
01 Aug 2020 03:39 #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.
01 Aug 2020 03:43 - 01 Aug 2020 03:47 #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: 01 Aug 2020 03:47 by ericg.
Please Log in or Create an account to join the conversation.
01 Aug 2020 04:32 - 01 Aug 2020 04:39 #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: 01 Aug 2020 04:39 by PCW.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.095 seconds