Getting started with 6i25+7i75+7i85s

More
10 Jul 2024 14:18 #304811 by Kirvesmies
Dear gods, I've got the cards mentioned in the subject, and my purpose is to run a lathe with:
- STEP/DIR steppers for x and z axes
- quadrature linear encoders for x and z axes
- Argon servo drive to run the dc spindle motor
- a stepper, a solenoid and an absolute encoder for a tool carousel (although this one might be easier to control with a separate microcontroller?)
- relays for coolant and lubrication pumps

I've found that PncConf does not have the firmware option for my selection of cards, and now I have little clue as to how to proceed.
Why I'm in such a pickle is that I had a friend pick those boards for me, but later, he has become too busy to help me with setting them up.

So, I suppose my question is what should I do? Money or sunken costs are really not an issue. If I should buy new cards that are easier to setup, or pay someone to guide me, then I will.
Oh, and I do also have a 7i73, but no panel or pendant built or even planned yet, so I'm not so worried about that one. For now, I will be a happy man if I can just get the machine to run at all.

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

More
10 Jul 2024 14:27 #304814 by tommylight
If i remember correctly, 7i85S has 4 stepgens and 4 encoders and a smart serial, and Argon drive does work with step/dir signals, so that is all taken care of.
7i75 should be a break out board with isolation (again if i remember correctly), so it can be used for other signaling.
This might need a firmware flash, although any existing firmware that has 7i85S in the name will work, so do try the included firmwares on the downloads page of mesanet.com
With Mesa any functional pins like step/dir, PWM, encoder counter, etc can be used as normal input or output pins if those functions are not required in hal.

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

More
10 Jul 2024 16:29 - 10 Jul 2024 17:30 #304827 by PCW
I would probably start with a pncconf configuration file set
made for a 5I25 + G540. I would set the number of stepgens and
encoders to 2. Then select "accept component changes" and assign
your stepgens and encoders to the desired axis. Finally hand edit the
resulting hal/ini files to deal with the card differences. (mainly GPIO settings
for limit switches etc)

Edit: You may need to add an additional PWMgen or stepgen for controlling the spindle
and additional encoder for the spindle.
Last edit: 10 Jul 2024 17:30 by PCW.

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

More
11 Jul 2024 15:06 #304920 by Kirvesmies
Alright, I got the card flashed with the 5i25_7i85s_7i78 firmware. (I think, info on the card printed by Mesaflash is in the text file attached.)
Now, can I add the firmware to PncConf so I can use the nice dropdown menus for at least most of the configuration or will I have to go straight to the hal/ini files?
And then, how do I figure out how the pin numbers on the 6i25 correspond to the pins on the daugher cards? I guess the general I/O taken care by the 7i75 breakout board will be easy, but what about the 7i85s?
Say, I have the step pin of the x axis driver connected to pin 12 on the 7i85s TB2 connector, and its function is /TX0. So I check TX0 from the connector pinout in the 7i85s manual, and find out it corresponds to pin5, IO8 on FPGA PRIM I/O and IO25 on FPGA SEC I/O, so is my I/O number for X Axis stepgen 8, since I have the boards connected via the primary DB25 connector?
Attachments:

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

More
11 Jul 2024 15:22 #304921 by PCW
You can use pncconfs discover option to more closely match the firmware.
(then disable the unused P2 (7I75) functions by setting the number of
encoders to 4, stepgens to 4, and pwmgens to 0)

To get the correspondence from say P3 stepgen 0 to 7I85S TB pin
you can run mesaflash with the --dbname option:

sudo mesaflash --device 5i25 --dbname1 7i85s --readhmid

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

More
13 Jul 2024 12:17 #305068 by Kirvesmies
Thank you. That's a lot more handy than consulting the manual for each pin.
Now, when I try the Board Discovery option, I get the following error:

PNCconf encountered an error. The following information may be useful in troubleshooting:

LinuxCNC Version: 2.8

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pncconf/pages.py", line 914, in on_mesa0_discovery_clicked
self.a.discovery_selection_update(info,0)
File "/usr/bin/pncconf", line 1547, in discovery_selection_update
firmdata = self.parse_xml( driver,boardname,firmname,path,boardnum)
NameError: global name 'boardnum' is not defined

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

More
13 Jul 2024 15:29 #305089 by PCW
You may need to update to 2.9 for the pncconf discovery option
to work, or just use the g540 option to start

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

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