Changes in configuration files generated in pncconfig for 7i76 to 7i78

More
10 months 2 weeks ago #340133 by PCW
There is a 7I78X2 configuration: 7c81_7i78x2d.bit 

Do you need MPG encoders or high speed encoders+index?

Please Log in to join the conversation.

More
10 months 2 weeks ago #340140 by jaro_p
[/attachment] 

Attachment not found

I know that there is a configuration 7c81_7i78x2d.bit, but there is the same on P2 as on P1 - 7i78. Another 4 axes. And I don't need that for the lathe. But I would like one MPG encoder for each axis - basically to be able to control the lathe "almost" manually. The rest of P2 controls the tool turret and on P7 there are limit switches and buttons.
So that's the goal.

Please Log in to join the conversation.

More
10 months 2 weeks ago #340158 by PCW
7C81 configuration for 7I78 on P1, INM on first 12 P2 pins

The inm module supports up to 4 MPG encoders,
it also has built in input filtering/debouncing.

The last 5 P2 pins are left as GPIO so can be inputs/outputs
as needed


 

Attachment not found



 

Please Log in to join the conversation.

More
10 months 2 weeks ago #340178 by jaro_p
Thank you very much, you are great.

Please Log in to join the conversation.

More
10 months 1 week ago #340275 by jaro_p
Unfortunately, the situation is anything but simple… I reinstalled Bookworm, but the command:
`sudo mesaflash --spi --addr /dev/spidev0.0 --device 7c81 --readhmid`

doesn't work:

- open: No such file or directory
- No 7C81 board found

The following works:

`halcmd -kf`

`halcmd: loadrt hostmot2`

`halcmd: loadrt hm2_rpspi`

`halcmd: show all hm2`

However, I don't know how to write a new bitfile. That is, the equivalent of:

`sudo mesaflash --spi --addr /dev/spidev0.0 --device 7c81 --fallback --write bitfile-name`

I tried installing an older version of LinuxCNC – Buster. However, the libraries for installing mesaflash are missing and cannot be installed because the repositories for this version no longer exist.

Please Log in to join the conversation.

More
10 months 1 week ago #340278 by unknown
What is the result of

ls /dev/spidev*

Please Log in to join the conversation.

More
10 months 1 week ago #340279 by jaro_p
cnc@raspberrypi:~$ ls /dev/spidev*

ls: cannot access '/dev/spidev*': No such file or directory

Please Log in to join the conversation.

More
10 months 1 week ago #340282 by unknown
What RPi model are you using and what image are you using.

spi hasn't been enabled in config.txt

Please Log in to join the conversation.

More
10 months 1 week ago #340283 by jaro_p
Ok mea culpa, SPI was not enabled. As an apology, after about the fourth OS change I forgot about it out of nervousness.
Thank you, I hope it will be without problems.

Please Log in to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum