5I56 + 7i76 Lathe
16 Apr 2013 06:33 #32776
by naz
5I56 + 7i76 Lathe was created by naz
I'm probably just missing something simple, but after looking for the last couple days I can't seem to find any reference to this problem. I also have few other issues but it seems easier to to tackle one at a time. My first issue is when I setup the spindle using the analog output pins of my 7i76 card it works perfectly in the forward direction but when you run the spindle in reverse the S commands are backwards aka out of a 2000 rpm spindle speed S500 in the forward direction runs 500 rpms but in reverse it runs 1500 rpms. This setup is on gang tool lathe using servos and hitachi vfd.
-michael
-michael
Please Log in or Create an account to join the conversation.
16 Apr 2013 06:46 #32777
by PCW
Replied by PCW on topic 5I56 + 7i76 Lathe
You need an absolute value function between the spindle command and the spindle out.
also the spindle minlimit should be 0 and the maxlimit should be RPM at 10V
also the spindle minlimit should be 0 and the maxlimit should be RPM at 10V
Please Log in or Create an account to join the conversation.
16 Apr 2013 07:16 #32779
by naz
Replied by naz on topic 5I56 + 7i76 Lathe
Can you give me a couple of examples, with a MINLIMIT set to 0, M4 doesn't do anyting for me.
Please Log in or Create an account to join the conversation.
16 Apr 2013 08:18 #32783
by PCW
Replied by PCW on topic 5I56 + 7i76 Lathe
Thats a good thing! M4 should not have done anything because you are handing
a negative number to a unsigned variable.
(That this does anything other than output 0V is a bug in the Hostmot2 driver)
I would change:
loadrt abs names=abs.spindle
to
loadrt abs names=abs.spindle,abs.spindle_cmd
and add this line:
addf abs.spindle_cmd servo-thread
and then change
net spindle-vel-cmd <= motion.spindle-speed-out
to
net spindle-vel-cmd abs.spindle_cmd.in <= motion.spindle-speed-out
and finally change
net spindle-vel-cmd => hm2_5i25.0.7i76.0.0.spinout
to
net abs.spindle_cmd.out => hm2_5i25.0.7i76.0.0.spinout
a negative number to a unsigned variable.
(That this does anything other than output 0V is a bug in the Hostmot2 driver)
I would change:
loadrt abs names=abs.spindle
to
loadrt abs names=abs.spindle,abs.spindle_cmd
and add this line:
addf abs.spindle_cmd servo-thread
and then change
net spindle-vel-cmd <= motion.spindle-speed-out
to
net spindle-vel-cmd abs.spindle_cmd.in <= motion.spindle-speed-out
and finally change
net spindle-vel-cmd => hm2_5i25.0.7i76.0.0.spinout
to
net abs.spindle_cmd.out => hm2_5i25.0.7i76.0.0.spinout
Please Log in or Create an account to join the conversation.
16 Apr 2013 08:49 #32784
by naz
Replied by naz on topic 5I56 + 7i76 Lathe
Wish I was bit more knowledgeable on this I hate taking up folks time. This is error message with my hal file attached.
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Sweet_Mesa.hal:130: Signal name 'abs.spindle_cmd.out' must not be the same as a pin. Did you omit the signal name?
23162
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Sweet_Mesa.hal:130: Signal name 'abs.spindle_cmd.out' must not be the same as a pin. Did you omit the signal name?
23162
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Please Log in or Create an account to join the conversation.
16 Apr 2013 08:59 #32785
by PCW
Replied by PCW on topic 5I56 + 7i76 Lathe
Sorry
net abs.spindle_cmd.out => hm2_5i25.0.7i76.0.0.spinout
should be more like
net abs-spindle-vel-cmd hm2_5i25.0.7i76.0.0.spinout <= abs.spindle_cmd.out
net abs.spindle_cmd.out => hm2_5i25.0.7i76.0.0.spinout
should be more like
net abs-spindle-vel-cmd hm2_5i25.0.7i76.0.0.spinout <= abs.spindle_cmd.out
The following user(s) said Thank You: naz
Please Log in or Create an account to join the conversation.
16 Apr 2013 09:19 #32786
by naz
Replied by naz on topic 5I56 + 7i76 Lathe
Now onto the problem with the spindle encoder not working, which might be hardware.
Please Log in or Create an account to join the conversation.
16 Apr 2013 19:02 - 16 Apr 2013 19:03 #32793
by BigJohnT
Replied by BigJohnT on topic 5I56 + 7i76 Lathe
You might want to check here for a tidbit of info on encoder index troubleshooting.
www.gnipsel.com/linuxcnc/tuning/encoder.html
John
www.gnipsel.com/linuxcnc/tuning/encoder.html
John
Last edit: 16 Apr 2013 19:03 by BigJohnT.
Please Log in or Create an account to join the conversation.
17 Apr 2013 08:15 #32819
by naz
Replied by naz on topic 5I56 + 7i76 Lathe
Think you could supply a bit more information on that, it does seem to be the index and not the rpm section of the encoder. Both I've check back at the input of the 7i76 with a scope and seem to be clean and working.
-Michael
-Michael
Please Log in or Create an account to join the conversation.
17 Apr 2013 20:00 #32837
by cncbasher
Replied by cncbasher on topic 5I56 + 7i76 Lathe
can you give details of the encoder your using and connections used
Please Log in or Create an account to join the conversation.
Time to create page: 0.115 seconds