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

More
15 Dec 2025 16:54 #340133 by PCW
There is a 7I78X2 configuration: 7c81_7i78x2d.bit 

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

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

  • jaro_p
  • jaro_p's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 Dec 2025 19:53 - 15 Dec 2025 19:59 #340140 by jaro_p
[/attachment]  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.
Attachments:
Last edit: 15 Dec 2025 19:59 by jaro_p.

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

More
16 Dec 2025 00:32 #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


 

File Attachment:

File Name: 7c81_7i78_inm.zip
File Size:106 KB


 
Attachments:
The following user(s) said Thank You: jaro_p

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

  • jaro_p
  • jaro_p's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
16 Dec 2025 08:27 #340178 by jaro_p
Thank you very much, you are great.

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

  • jaro_p
  • jaro_p's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
18 Dec 2025 09:15 #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 or Create an account to join the conversation.

More
18 Dec 2025 10:00 #340278 by unknown
What is the result of

ls /dev/spidev*

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

  • jaro_p
  • jaro_p's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
18 Dec 2025 11:20 #340279 by jaro_p
cnc@raspberrypi:~$ ls /dev/spidev*

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

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

More
18 Dec 2025 12:51 #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 or Create an account to join the conversation.

  • jaro_p
  • jaro_p's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
18 Dec 2025 13:41 #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.
The following user(s) said Thank You: tommylight

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

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