Mesa 7I76 with Spindle encoder and MPG-need help

More
28 Mar 2016 18:51 - 28 Mar 2016 19:00 #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"
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.
Last edit: 28 Mar 2016 19:00 by Todd Zuercher.

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

More
28 Mar 2016 19:11 #72260 by eman5oh
First many Thanks for helping me. I used the float for now and I now get this error.
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 or Create an account to join the conversation.

More
28 Mar 2016 19:26 #72261 by andypugh

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
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 or Create an account to join the conversation.

More
28 Mar 2016 23:11 - 28 Mar 2016 23:15 #72272 by eman5oh

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.

Last edit: 28 Mar 2016 23:15 by eman5oh.

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

More
30 Mar 2016 17:49 #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 or Create an account to join the conversation.

More
30 Mar 2016 17:58 #72408 by PCW
The 7I76 has 2 MPG encoders available on field input pins 16,17,18 ,19:

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
The following user(s) said Thank You: cncbasher

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

More
30 Mar 2016 18:00 #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 or Create an account to join the conversation.

More
31 Mar 2016 15:24 #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.
Attachments:
The following user(s) said Thank You: cncbasher, Clive S

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

More
17 Feb 2017 10:26 #88104 by eneias_eringer

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 or Create an account to join the conversation.

More
31 Mar 2020 03:11 #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 or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum