problem with Spindle forward & reverse output
18 May 2016 22:26 #74828
by markd
problem with Spindle forward & reverse output was created by markd
This is a new lathe build using mesa 5i25 with 7i77 cards. The hal file created by pcConfig did not link the Axis panel buttons for spindle forward and reverse to the spindle-cw and spindle-ccw outputs. My question is how to ling the buttons to hal so the machine checkout can continue.
VFD TECO JNEV-201-H1
VFD TECO JNEV-201-H1
Please Log in or Create an account to join the conversation.
18 May 2016 23:10 #74829
by BigJohnT
Replied by BigJohnT on topic problem with Spindle forward & reverse output
In Axis that is an ini setting, look at the spindle group here
linuxcnc.org/docs/2.7/html/gui/axis.html#_manual_control
JT
linuxcnc.org/docs/2.7/html/gui/axis.html#_manual_control
JT
Please Log in or Create an account to join the conversation.
19 May 2016 13:13 #74841
by markd
Replied by markd on topic problem with Spindle forward & reverse output
Is this in the INI file in my machine directory? Even thought I have been using LinuxCNC since ver 2.2 the machines did not require any hand coding. (router, bridgeport) This build is also my first time using servos and a VFD.
As you can see I have much to learn.
As you can see I have much to learn.
Please Log in or Create an account to join the conversation.
19 May 2016 14:01 #74844
by BigJohnT
Replied by BigJohnT on topic problem with Spindle forward & reverse output
Please Log in or Create an account to join the conversation.
19 May 2016 14:21 #74845
by markd
Replied by markd on topic problem with Spindle forward & reverse output
OK I looked at the INI file again but can't see how I would connect the axis spindle direction buttons to the hal spindle-cw which is connected to output 14 of the 7i77 already. If I try to connect the button to spindle-cw I get an error that the pin is already assigned.
I apologize for my lack of knowledge but I have not found a solution in the manuals so far.
I apologize for my lack of knowledge but I have not found a solution in the manuals so far.
Please Log in or Create an account to join the conversation.
20 May 2016 09:27 - 20 May 2016 09:53 #74870
by cncbasher
Replied by cncbasher on topic problem with Spindle forward & reverse output
you dont need to connect twice , which is what the error message says
the axis direction buttons are already connected , axis is configured internally.
you appear to be sending the spindle enable out through a second 7i77 (.0.1.spinena) rather than the default .0.0
and using a different gpio to the Spindle direction
i.e net spindle-ccw => hm2_5i25.0.7i77.0.0.spindir
if your spindle enable is correct then for the default direction output opto the line would be
net spindle-ccw => hm2_5i25.0.7i77.0.1.spindir
your outputing to a gpio pin
if the relay is not switching you may need to invert the pin , if your using the opto direction output , it's probably the way it's wired
the spindle pins are connected here: ,
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
as your gpio pins are connected as :
net spindle-ccw hm2_5i25.0.7i77.0.0.output-15
then this is correct , however your not enabing the correct channel
some entrys you have as i assume correct as .0.0. others for the same channel as 0.1.
have you hand edited and slipped in a few typo's perhaps
the axis direction buttons are already connected , axis is configured internally.
you appear to be sending the spindle enable out through a second 7i77 (.0.1.spinena) rather than the default .0.0
and using a different gpio to the Spindle direction
i.e net spindle-ccw => hm2_5i25.0.7i77.0.0.spindir
if your spindle enable is correct then for the default direction output opto the line would be
net spindle-ccw => hm2_5i25.0.7i77.0.1.spindir
your outputing to a gpio pin
if the relay is not switching you may need to invert the pin , if your using the opto direction output , it's probably the way it's wired
the spindle pins are connected here: ,
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
as your gpio pins are connected as :
net spindle-ccw hm2_5i25.0.7i77.0.0.output-15
then this is correct , however your not enabing the correct channel
some entrys you have as i assume correct as .0.0. others for the same channel as 0.1.
have you hand edited and slipped in a few typo's perhaps
Last edit: 20 May 2016 09:53 by cncbasher.
Please Log in or Create an account to join the conversation.
20 May 2016 10:45 #74872
by BigJohnT
I'm sorry sometimers must have crept in not the ini but the hal file. Here is my hal file to get the reverse button to show up in Axis. If Axis sees the motion.spindle-reverse it shows the reverse button. Same for the fwd button
JT
Replied by BigJohnT on topic problem with Spindle forward & reverse output
OK I looked at the INI file again but can't see how I would connect the axis spindle direction buttons to the hal spindle-cw which is connected to output 14 of the 7i77 already. If I try to connect the button to spindle-cw I get an error that the pin is already assigned.
I apologize for my lack of knowledge but I have not found a solution in the manuals so far.
I'm sorry sometimers must have crept in not the ini but the hal file. Here is my hal file to get the reverse button to show up in Axis. If Axis sees the motion.spindle-reverse it shows the reverse button. Same for the fwd button
# trick Axis
net trick-axis motion.spindle-reverse
JT
Please Log in or Create an account to join the conversation.
21 May 2016 03:54 #74904
by markd
Replied by markd on topic problem with Spindle forward & reverse output
Hi cncbasher
I am a little confused as the only hand editing I have done so far is for the estop chain and the output 14 & 15 everything else was created by PNCconf.
Is the problem that all of the references to 7i77.0.1. for a second board?
I am a little confused as the only hand editing I have done so far is for the estop chain and the output 14 & 15 everything else was created by PNCconf.
Is the problem that all of the references to 7i77.0.1. for a second board?
Please Log in or Create an account to join the conversation.
21 May 2016 14:29 - 21 May 2016 14:29 #74910
by PCW
Replied by PCW on topic problem with Spindle forward & reverse output
7I77s are divided into 2 parts: the digital section (Digital I/O, MPGs, etc)
and the analog section (+-10V outputs and enables)
The digital section will have a 7i77.0.0 in the name and the analog section will have 7i77.0.1 in the name
and the analog section (+-10V outputs and enables)
The digital section will have a 7i77.0.0 in the name and the analog section will have 7i77.0.1 in the name
Last edit: 21 May 2016 14:29 by PCW.
Please Log in or Create an account to join the conversation.
Time to create page: 0.095 seconds