problem with Spindle forward & reverse output

  • markd
  • Topic Author
  • New Member
  • New Member
More
10 years 5 months ago #74828 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

Attachment not found

Please Log in to join the conversation.

More
10 years 5 months ago #74829 by BigJohnT
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

Please Log in to join the conversation.

  • markd
  • Topic Author
  • New Member
  • New Member
More
10 years 5 months ago #74841 by markd
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.

Please Log in to join the conversation.

More
10 years 5 months ago #74844 by BigJohnT

markd wrote: Is this in the INI file in my machine directory?


Yes.

JT

Please Log in to join the conversation.

  • markd
  • Topic Author
  • New Member
  • New Member
More
10 years 5 months ago #74845 by markd
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.

Please Log in to join the conversation.

More
10 years 5 months ago #74870 by cncbasher
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

Please Log in to join the conversation.

More
10 years 5 months ago #74872 by BigJohnT

markd wrote: 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
Code:
# trick Axis net trick-axis motion.spindle-reverse

JT

Please Log in to join the conversation.

  • markd
  • Topic Author
  • New Member
  • New Member
More
10 years 5 months ago #74904 by markd
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?

Please Log in to join the conversation.

More
10 years 5 months ago #74910 by PCW
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

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum