5i25 + 7i73

More
7 years 4 months ago #137504 by Reinhard
5i25 + 7i73 was created by Reinhard
Hi,

I have a 5i25 with an individual bitfile, that should drive three 7i73 slaves.
I created an xml-file as firmware-input for pncconf, which already works.
What does not work as expected is the handling of the 7i73 ...
I'd like to use the 7i73 in 8x8 keypad mode wih analog inputs.
So I have to change direction of some pins

... the analog inputs should be interpreted as override controls. But override options allow switches or mpg only. No support for analog input. But I know, that linuxcnc supports analog inputs as override-controls.

So is there any guide on how to patch pncconf to bring those features into play?

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

More
7 years 4 months ago #137505 by PCW
Replied by PCW on topic 5i25 + 7i73
I suspect it would be easier to just add the needed connections to your hal file

(and a working hal file this would be useful as model if you wanted add
an analog feed rate override option to pncconf )

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

More
7 years 4 months ago #137569 by Reinhard
Replied by Reinhard on topic 5i25 + 7i73

I suspect it would be easier to just add the needed connections to your hal file

bad luck!

I don't know hal and xml-tweaking for pncconf was pretty easy, so I thought, may be I can patch pncconf to get it create a working hal for me ;)

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

More
7 years 4 months ago #137602 by PCW
Replied by PCW on topic 5i25 + 7i73
Yes, but xml tweaking will not add hal structural parts like analog --> feed override
that would need to be added to pncconfs feed override page and hal net /setp / generation

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

More
7 years 4 months ago #137637 by Reinhard
Replied by Reinhard on topic 5i25 + 7i73
So I hope you don't mind me asking questions ...

In the generated hal-file there's a config line like this:
Code:
loadrt hm2_pci config=" num_encoders=5 num_pwmgens=1 num_stepgens=5 sserial_port_0=1110xx"
I have 3 smart serial ports, so where do I get those addresses from?
Application claims on start, that there is no "hm2_pci" device.
How do I create that device?

Through testing I found this line:
Code:
net spindle-cw hm2_5i25.0.7i73.0.2.output-02
and it seems, as if the last number before ".output" is the number of the 7i73 card (or the number of the smart serial port, which might be the same).
The 7i73 has 2 ports - but they are not distinguished?
The pin numbering is a bit hard to get in sync with the docs from mesanet.

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

More
7 years 4 months ago - 7 years 4 months ago #137649 by PCW
Replied by PCW on topic 5i25 + 7i73
Sserial device channel/port numbers are determined by the firmware
you can check this with
sudo mesaflash --device [cardname] --readhmid
(for PCI cards) or
mesaflash --device [cardname] --addr [ipaddress] --readhmid
( for Ethernet cards )

or lookin at the existing .pin or xml file for the FPGA configuration you are using

If you have a 5i25 card install and the loadrt hm2_pci fails with a "no such device" error
this indicates a hardware failure of some kind.

Serial device pin names have this format
hm2_[FCard].[FNumb].[SName].[SPort].[SChan].[SPin]

where:

FCard is the FPGA card name
Fnumb is the FPGA card number (just 0 unless you have multiple FPGA cards)
SName is the Sserial remote device name
SPort is the Sserial port (0..3 just 0 if you have only 1 port)
SChan is the Sserial device channel ( 0..7 )

The 7I73 does not have ports, OUT2 is on P1 pin 33 (manual page 5)
Last edit: 7 years 4 months ago by PCW.

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

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