- Posts: 198
- Thank you received: 0
7i77 -> Huanyang
11 years 8 months ago #55695
by DaBit
Replied by DaBit on topic 7i77 -> Huanyang
And it works in PnCConf? Then at least the VFD is setup correctly (must be setup for external control: PD001->1, PD002->1, PD023->1, PD070->0, PD072/073 to what you need).
Can you post your HAL file?
Can you post your HAL file?
Please Log in to join the conversation.
11 years 8 months ago #55698
by dracozny
Replied by dracozny on topic 7i77 -> Huanyang
I really need to get an Ethernet cable run to my shop, and for some reason Debian doesn't like using my phone as a USB Flash drive... anyways
here is the Hal and ini file
here is the Hal and ini file
Please Log in to join the conversation.
11 years 8 months ago #55734
by dracozny
Replied by dracozny on topic 7i77 -> Huanyang
stumbled across sliptonics ventures into the
IRC channel
and across his
github page
I made some changes. max speed on my spindle with this motor is 3600rpm so I made that change to the ini file using pncconf. I'm going to drag my system to the machine and see if it works.
Please Log in to join the conversation.
11 years 8 months ago #55739
by dracozny
Replied by dracozny on topic 7i77 -> Huanyang
well that did nothing for me it seems
Please Log in to join the conversation.
11 years 8 months ago #55740
by DaBit
Replied by DaBit on topic 7i77 -> Huanyang
Is all of this HAL file generated by pncconf?
In you HAL file I see:
net spindle-vel-cmd-abs => hm2_5i25.0.7i77.0.1.analogout5
But it has no driver.
I would change that to:
net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i77.0.1.analogout5
And then in you INI, assuming 3600rpm maximum speed when the VFD receives 10V:
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0.0
OUTPUT_MAX_LIMIT = 10.0
Then, you also have to start the VFD. I do see the CW/CCW pin, but not the run pin. Thus you might need something like
net spindle-on => hm2_5i25.0.7i77.0.0.output-09
and route the appropriate signal through a relay to the VFD, just like you did with the CW/CCW signal.
I do not have a HuanYang VFD anymore so I am doing it from memory: relay contact between DCM and FOR.
I actually doubt this will work flawless since as far as I can remember the forward/reverse rotation are just two separate inputs so a bit of HAL-logic would be needed. I ran mine in forward-only, reverse rotation is prettu useless on a highspeed spindle.
But this should allow forward rotation. When that works, we can tackle reverse rotation.
In you HAL file I see:
net spindle-vel-cmd-abs => hm2_5i25.0.7i77.0.1.analogout5
But it has no driver.
I would change that to:
net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i77.0.1.analogout5
And then in you INI, assuming 3600rpm maximum speed when the VFD receives 10V:
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0.0
OUTPUT_MAX_LIMIT = 10.0
Then, you also have to start the VFD. I do see the CW/CCW pin, but not the run pin. Thus you might need something like
net spindle-on => hm2_5i25.0.7i77.0.0.output-09
and route the appropriate signal through a relay to the VFD, just like you did with the CW/CCW signal.
I do not have a HuanYang VFD anymore so I am doing it from memory: relay contact between DCM and FOR.
I actually doubt this will work flawless since as far as I can remember the forward/reverse rotation are just two separate inputs so a bit of HAL-logic would be needed. I ran mine in forward-only, reverse rotation is prettu useless on a highspeed spindle.
But this should allow forward rotation. When that works, we can tackle reverse rotation.
Please Log in to join the conversation.
11 years 8 months ago #55749
by dracozny
Replied by dracozny on topic 7i77 -> Huanyang
100% generated by pncconf.
with pd001 and 002 set to the vfd is automatically started by the enable pins on 7177. That part I know works because when I had the minimum set higher for the actual minimal voltage for the motor to start moving, as soon as I enabled the machine it started to spin just without any rpm control. I will try manually changing the code as you suggested for everything else.
I do have boring bars that require the spindle to go in reverse. I may find I need those less often with CNC but I know there are situations that call for them.
with pd001 and 002 set to the vfd is automatically started by the enable pins on 7177. That part I know works because when I had the minimum set higher for the actual minimal voltage for the motor to start moving, as soon as I enabled the machine it started to spin just without any rpm control. I will try manually changing the code as you suggested for everything else.
I do have boring bars that require the spindle to go in reverse. I may find I need those less often with CNC but I know there are situations that call for them.
Please Log in to join the conversation.
11 years 8 months ago #55750
by dracozny
Replied by dracozny on topic 7i77 -> Huanyang
I made the changes to the code you suggested. The spindle still doesn't rotate. Physically checking the analog pins with a multimeter when I hit the "+" button after enabling the direction I get a max reading of .1 volts. it will not go any higher. pressing "-" it goes back to 0v.
Please Log in to join the conversation.
11 years 8 months ago #55751
by PCW
Replied by PCW on topic 7i77 -> Huanyang
This is probably what you want:
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 3600.0
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 3600.0
Please Log in to join the conversation.
11 years 8 months ago #55752
by dracozny
Replied by dracozny on topic 7i77 -> Huanyang
oddly I had tried that last night with no avail. so combination of things worked then
ini
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 3600.0
Hal
net spindle-vel-cmd-abs => hm2_5i25.0.7i77.0.1.analogout5
changed to
net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i77.0.1.analogout5
reverse works without issue.
I will probably add that relay Dabit suggested for the spindle on. When I hit stop the VFD does not set all the way down to zero. Probably some noise or feedback created. If I stop and start the machine the VFD is back to zero. But that is an easy fix.
Thank you both very much.
ini
[SPINDLE_9]
OUTPUT_SCALE = 3600.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 3600.0
Hal
net spindle-vel-cmd-abs => hm2_5i25.0.7i77.0.1.analogout5
changed to
net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i77.0.1.analogout5
reverse works without issue.
I will probably add that relay Dabit suggested for the spindle on. When I hit stop the VFD does not set all the way down to zero. Probably some noise or feedback created. If I stop and start the machine the VFD is back to zero. But that is an easy fix.
Thank you both very much.
Please Log in to join the conversation.
10 years 1 month ago #80738
by cmtunnel
Replied by cmtunnel on topic 7i77 -> Huanyang
I'm having trouble with how to wire up the vfd ( 2.2kw) I only need fwd and speed control. Using 5i25/7i77. Does anyone have a config that will make this work? I'm using the last output on tb8 to relay the power on to the vfd.....is this correct. It powers up the relay and turns the vfd on but now I need to control the on/off and rpm with linuxcnc.
Please Log in to join the conversation.
Time to create page: 0.059 seconds
