7i76 & VFD, what signals for HAL file?

More
13 Dec 2016 04:14 #84013 by nigel-tufnel
I'm attempting to get my 7i76 to work with a Hitachi SJ200 VFD. VFD requires fwd/rev, run/stop, and 0-10V signals. I went though the PNCconf setup but it didn't fully work The forward/reverse (net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir) worked but the spindle enable didn't work. The spindle enable was linked to 'machine-is-enabled' so I changed it to (net spindle-enable => hm2_5i25.0.7i76.0.0.spinena). That seemed to work. So questions are as follows:

1) is 'spindle-enable' the correct variable to use?
2) The 0-10v output doesn't work. "net spindle-vel-cmd-abs" doesn't seem like the correct variable. What should I link to hm2_5i25.0.7i76.0.0.spinout?
3) Any other glaring errors for the Spindle section in my HAL file shown below?

Any assistance is greatly appreciated. Thanks!

#*******************
# SPINDLE S
#*******************

setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true
setp pid.s.maxerror .0005

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

# ---digital potentionmeter output signals/setup---

setp hm2_5i25.0.7i76.0.0.spinout-minlim [SPINDLE_9]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_9]OUTPUT_MAX_LIMIT
setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_9]OUTPUT_SCALE

net spindle-vel-cmd-abs => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir

# ---setup spindle control signals---

net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm <= motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable

# ---Setup spindle at speed signals---

sets spindle-at-speed true

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

More
13 Dec 2016 04:40 #84014 by PCW
net spindle-vel-cmd-abs => hm2_5i25.0.7i76.0.0.spinout

needs to be:

net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i76.0.0.spinout

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

More
13 Dec 2016 13:43 #84033 by andypugh
And the spinout will need to be scaled to suit the real spindle speed, or you will get maximum speed for 1 rpm, half-speed for 0.5 rpm, etc.

As to whether "spindle-enable" is the right signal, it depends which HAL pin is set to drive that signal. Probably motions.spindle.is-on ?

HAL signal names are something that you can choose freely, there are no special names.

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

More
14 Dec 2016 04:33 - 17 Dec 2016 03:04 #84072 by nigel-tufnel
Thanks for the info. I changed the Hal file per PCW's post but no luck. I should mention that I have my VFD wired to the 7i76 but no power hooked up to the VFD yet. Questions:
1) Does the power for the 7i76 0-10V output come from the VFD (analog common?) or the 24V i have hooked to pins TB4 6 and 8?
2) If power comes from my VFD, that would explain things. However, when I Ohm across TB4 pins 1, 2, and 3 I get an open whether I have a 0rpm or 2000rpm on the Axis Spindle speed. Shouldn't I be able to measure continuity?

I have attached my wiring diagram to better clarify my setup.

Any suggestions are appreciated.

Thanks!
Attachments:
Last edit: 17 Dec 2016 03:04 by nigel-tufnel.

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

More
14 Dec 2016 12:53 #84086 by PCW
Yes +10V power for the 7I76 analog output comes from ANALOG REF
so nothing will happen unless the circuitry is powered

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

More
15 Dec 2016 03:57 #84144 by nigel-tufnel
Thanks. Hooked up power and now I can get a variable output voltage.

How do you change the pyvcp widget so the max speed display is something other than 3000? I'm referring to the horizontal bar chart titled "Spindle Speed" in the Axis add-on. Doesn't seem to be linked to the max spindle speed variable in my .ini file (set to 5000).

Thanks

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

More
15 Dec 2016 11:40 #84156 by andypugh

How do you change the pyvcp widget so the max speed display is something other than 3000?


You could do it with the Glade editor, but you might well not have that, and it isn't as stable as one might like anyway.

If you look through the pyvcp (.ui file) with a text editor you will see that it is an XML file, and there should be an obvious 3000 number that can be changed.

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

Time to create page: 0.165 seconds
Powered by Kunena Forum