Mesa 7I76 with Spindle encoder and MPG-need help

More
10 years 7 months ago #72257 by Todd Zuercher
That would be this line in your hal file
net mpg-scale <= mux16.0.out
It should be either "net mpg-scale <= mux16.0.out-f" or "net mpg-scale <= mux16.0.out-s" depending on whether you want a float or an s32 output.

The important part of the error message that Linuxcnc pukes out when it fails to open is usually found under "Debug file Information"
Code:
Debug file information: . ./custom.hal:32: Pin 'mux16.0.out' does not exist 8472
Then I just googled "Linuxcnc mux16" to quickly look up the appropriate man page and found that you had the pin name a little bit wrong (you needed the -f or -s to designate the type of number the output should be)

Armed with this info maybe you can finish debugging your hal file.

Please Log in to join the conversation.

More
10 years 7 months ago #72260 by eman5oh
First many Thanks for helping me. I used the float for now and I now get this error.
Code:
Print file information: Debug file information: ./custom.hal:48: Pin 'hm2_5i25.0.7i76.0.0.enc0.count' does not exist 9861 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components

Please Log in to join the conversation.

More
10 years 7 months ago #72261 by andypugh

eman5oh wrote: First many Thanks for helping me. I used the float for now and I now get this error.
./custom.hal:48: Pin 'hm2_5i25.0.7i76.0.0.enc0.count' does not exist


The good news is that you are nearly at the bottom of the HAL file.

If you temporarily add a line
Code:
show pin *7i76*
in the HAL file just above the error line then you will get a full list of all the 7i76 pins, and you should be able to see the actual spelling of the enc0.count pin name.

Is the 7i76 in software mode 2?

Please Log in to join the conversation.

More
10 years 7 months ago #72272 by eman5oh

andypugh wrote:

eman5oh wrote: Is the 7i76 in software mode 2?


Well I had set it to mode two with pncconf , but the resulting halfile had it set to mode 0. It seems most of my trouble getting every thing working has come from errors with pncconf. I am not sure if something went wrong with my install or what but it has produced an number of errors in the hal file. Now to sort the rest of my issues.

Thanks again to everyone for the help.

Please Log in to join the conversation.

More
10 years 7 months ago #72407 by cncbasher
as far as I know . you can't use software encoders on a 7i76 i.e via the gpio pins , as the gpio pins are mapped via the on board sserial bus , this board only has one hardware encoder per port , and your probably using that for the spindle .

so , either add a 7i73 pendant to connect 2 handwheels , this will then connect to the rs422 serial bus , which the gpio pins are mapped to as well , or connect to the second port of the 5i25 ( internal 20 pin header ) and use the encoder their

i'm also looking at this particular problem , so i'm also looking to work this one out
but if someone has 2 encoders as well as the spindle with a 7i76 , i'd love to know how
if your wanting 2 mpg's , then I feel the 7i73 pendant is the correct way .

of course with any of the other mesa cards 7i90 etc then additional encoders can be added to the bit file

it may well be an additional 2 mpg encoders could be added to a special firmware for the 7i76 , perhaps PCW could advise
and i'll go from that .

Please Log in to join the conversation.

More
10 years 7 months ago #72408 by PCW
The 7I76 has 2 MPG encoders available on field input pins 16,17,18 ,19:

Code:
TB5.1 IN16 MPG-0 A TB5.2 IN17 MPG-0 B TB5.3 IN18 MPG-1 A TB5.4 IN19 MPG-1 B

These only become available if the 7I76 mode is set to 2

Please Log in to join the conversation.

More
10 years 7 months ago #72409 by eman5oh
Mode 2 sserial_port_0=2xxxxx will allow 2 additional mpg encoders to work with the 7i76. I now have the mpg encoder working in this mode. The issue was my hal file had an error in it with the 7i76 set to mode 0.

Please Log in to join the conversation.

More
10 years 7 months ago #72480 by eman5oh
For anyone that it will help I have attached my config folders that I used to get this to work. I had a message asking for it and figured I would share it.

full_config is with pendant
BossSmooth is with pendant using ilowpass to smooth the motion.

Please Log in to join the conversation.

More
9 years 8 months ago #88104 by eneias_eringer

PCW wrote: The 7I76 MPG inputs will work with 5V signals (they have a 2.5V threshold)

If you have a single MPG, its A and B lines would connect to field inputs 16 and 17


Will this work at 7i78 ???
I have two MPG encoders on my Lathe and are wired direct(with opto couplers) to P2 on 5I25...


Please Log in to join the conversation.

More
6 years 7 months ago #162196 by Becksvill
Hi there I just downloaded your config files and have some questions on the hal file. Just wondering if you are still kicking around here.

for anywone else I am just trying to connect a mpg to my 7i76 card and having trouble working out all the things I need to do.

Regards

Andrew

Please Log in to join the conversation.

Time to create page: 0.499 seconds
Powered by Kunena Forum