6i25 (5i25) + 7i85s + 7i85s PNCconf problems and questions

More
08 Oct 2017 18:10 - 08 Oct 2017 18:14 #100090 by Marcodi
Hello everyone.

As i continue on my endeavour to learn more about linuxcnc, i am finally starting on my real setup.

I have spent the last 6 hours researching and trying but i have come to a standstill.

I managed to find out googling and reading the forum that first of all the mesa 5i25 needs to get flashed with the correct firmware. It took me a serious amount of time to understand mesaflash and to be able to find the .zip file needed.

>>>>>>> For future users. The firmware of all possible mesa card combination is found on the website freeby.mesanet.com/ than go in the menu to >>anything i/o fpga cards >> find the 5i25 card and click >> software support. This will download a zip file to your computer. Extract that zip into any folder. Than go to that folder and rightclick and select >> Open Terminal Here and write following command in the command line:
sudo apt-get install mesaflash
sudo mesaflash --device 5i25 --write (write here the setup you have).bit    my case: --write 5i25_7i85sx2
and than
sudo mesaflash --device 5i25 --reload

Secondly you have to copy all the files found in this .zip file to the correct location where PNCconf can find these files. So this is what i managed to find on forum and google. the map you need to copy to is found in /lib/firmware/hm2 and firstly you need to create a folder there for your downloaded files. Go to your terminal and go by means of cd.. or cd "foldername" to this folder and than type
sudo mkdir 5i25
next you need to copy the files downloaded to this location
sudo cp -r /home/"your username"/..."where you extracted" ... /5i25/configs/hostmot2/. /lib/firmware/hm2/5i25/
do not forget the space between the . and the /lib.

Now upon opening PNCconf wizard i have the option to choose the 5i25 card and under firmware you will be able to select the combination of cards.

OK.... Till here i get it myself now. But here are my questions:
upon selecting firmware 5i25_7i85sx2 and click apply component changes. I get 2 new tabs I/O connector 2 and I/O connector 3. i select the first one. So how do i select here my 7i85s card? I see the ability to choose several cards under SSERIAL-P1-tx, but there is no 7i85s card. Same applies to connector 3.

How do i continue from here? Please some help...

PS: i will update this first post with everything i ask, till i have a complete manual for connecting a 5i25 and 2x 7i85 cards for future reference.
Attachments:
Last edit: 08 Oct 2017 18:14 by Marcodi.

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

More
08 Oct 2017 19:01 - 08 Oct 2017 19:03 #100092 by PCW
Normally you would do this:

run pncconf
select 5i25
select 7i85sx2 firmware
accept changes
then assign stepgens:
select P3 tab (the first 7I85S with stepgens 0..3 would normally be on P3= the DB25)
select unused stepgen 0
assign it to axis X
etc etc
Last edit: 08 Oct 2017 19:03 by PCW.

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

More
08 Oct 2017 19:09 #100093 by Marcodi
Thx

But... Don't I need to get the correct card tabs next to these iO connections?

Because it's 2 db25 connectors going to the 2 7i85s cards. If for example I pick in the serial tx the 7i84 card I get extra tabs with the correct layout of that board.

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

More
08 Oct 2017 19:29 #100094 by PCW
No, there is no 7I85S specific information needed by pncconf other than the DB25 pinout
and number of modules and types (and that's all in the .xml file)

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

More
08 Oct 2017 20:29 - 08 Oct 2017 20:31 #100095 by Marcodi
Ok,

Than I am still lost. How does it work from 72 X 2 pins to barely 34 pins on dB 25.

Could u do me a favour and just give me a concrete example for the X axis and 1 limit switch and encoder feedback. I will try than to manage from there and update my first post.

What is P3 you mentioned? I don't get following

select P3 tab (the first 7I85S with stepgens 0..3 would normally be on P3= the DB25)


(In total I have 9 limits switches to independent pins... X Y Y Z and A axis spindle control. Feedback from all axis and from spindle...)
Last edit: 08 Oct 2017 20:31 by Marcodi.

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

More
08 Oct 2017 23:37 #100099 by PCW
P3 is the first I/O connector on the 5I25

If you run pncconf and select the stepgens and axis encoders it will generate a hal/ini file set for steppers
with encoder position checking , not encoder position feedback. If you want encoder position feedback
you will have to change the position feedback source for each axis (and change the tuning)

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

More
08 Oct 2017 23:53 - 08 Oct 2017 23:56 #100100 by Marcodi
Ok, but that connector is connected to the 7i85s, so how do I know which pin on the 7i85s is going to be step?

And what do I do if I have 5 axis? It seem in the config only to be able to select X y z a b, and I have a double y motor.
Last edit: 08 Oct 2017 23:56 by Marcodi.

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

More
09 Oct 2017 00:38 #100101 by PCW
For 7I85S pinouts you need to refer to the 7I85S manual and the 7i85sx2 pinout, though its done is a logical way
(TX0 = STEP0 TX1 = DIR0 etc etc)

Any configuration more complex than a very basic 3 axis setup is likely to require hand editing the hal and ini files

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

More
10 Oct 2017 23:13 #100178 by andypugh

How does it work from 72 X 2 pins to barely 34 pins on dB 25.


GPIO is often serially-addressed and encoders are multiplexed. (so 6 pins + mux control 4x3-channel encoders)
You can get the actual pinout of your firmware with
sudo mesaflash --device=5i25 --readhmid
Or you can decode this vhd file:
github.com/LinuxCNC/hostmot2-firmware/bl...c/PIN_7I85Sx2_34.vhd
Lines 105 onwards tell you what function is on what DB25 pin, then you can correlate that to the pin numbers and functions in the 7i85 manual.

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

More
11 Oct 2017 11:24 - 11 Oct 2017 11:36 #100202 by Marcodi
hi,

So i have been trying to figure this out. Sadly i couldn't get my logic analyzer to show steps on the pins i was expecting it to be, nor on a lot of different combinations i tried.

So i placed in pncconf, the third dropdownbox X axis StepGen. so that means that according to the manual this is pin2 on the db25 connector which leads me to function TX6. Which should be on the 7i85s on TB1 connector Pin 11 for TX6 and 12 for /TX6. Did i make a correct deduction here?

What is /tx? is that inverted. or is tx pul+ and /tx pul- or what does it mean.

I connected my logic analyzer on pin11 and on a ground pin 10. I let linuxcnc running the testfile, so i assume we should get steps and thus pulses. But i see nothing at all. tried pin12 and pin 10 If i touch all the pins without ground, i get a spiking pattern on all the pins.
Last edit: 11 Oct 2017 11:36 by Marcodi.

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

Moderators: cmorley
Time to create page: 0.103 seconds
Powered by Kunena Forum