Can the OPI5 be Configured to Run LCNC?

More
3 years 4 months ago - 3 years 4 months ago #273809 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
I think you need to install:
sudo apt install python-is-python3

Otherwise you could just make a symlink
cd /usr/bin
sudo ln -s python3 python
 
Last edit: 3 years 4 months ago by royka.
More
3 years 4 months ago #273821 by echristley
Replied by echristley on topic Can the OPI5 be Configured to Run LCNC?
IT'S ALLIIIIVE!!!

I got the OPi5 to run my steppers. Granted I had to switch to open loop mode, and I'm getting "failed to read" errors from the 7i96s, but it has taken me a couple weeks to get anything running.

Time to celebrate with a glass of Bulleit (Kentucky Bourbon).
The following user(s) said Thank You: rodw, buzzFab
More
3 years 4 months ago #273858 by echristley
Replied by echristley on topic Can the OPI5 be Configured to Run LCNC?
Solved the "failed to read" errors. PCW, a moderator here, suggested doubling the servo period, and cutting the P term on each motor in half. Didn't have time run extensive tests, but it got through the 3D_Chips example ngc file. Before, it would throw the error before completing two lines.

I reading in another thread that there my be a kernel fix to make the long servo period unnecessary.
More
3 years 4 months ago - 3 years 4 months ago #273873 by rodw
Replied by rodw on topic Can the OPI5 be Configured to Run LCNC?
If you are getting an "Error Finishing Read" it means the network latency exceeds the available time in the servo thread a few times in a row. So you can have the fastest latency in the world but if the NIC is not up to the task you will get errors. This is more prevalent with Realtec NIC's
sudo ethtool -i  eth0 may give some clues to the NIC on the OPI (where eth0 is the NIC name returned by ip a)

Network latency first became an issue on kernel 5.1 and continued to improve with each kernel version.

​​​​​In summary, perhaps Bullseye was not an ideal choice. As a minimum, I would rebuild using Bookworm (Deiban 12) and it's 6.1 kernel (or higher)

For more information, about the problem, it's covered in the 2.9 docs I wrote here  linuxcnc.org/docs/2.9/html/getting-start...ltek_network_drivers
Last edit: 3 years 4 months ago by rodw.
More
3 years 4 months ago #273880 by echristley
Replied by echristley on topic Can the OPI5 be Configured to Run LCNC?
Well, the solution isn't the best. Doubling the servo period will slow the machine down. I looked into updating the RealTek network drivers, but it OPi5 uses a YT8531 chip.

Maybe there is a setting that can improve the perfomance of YT8531? If not, I'm thinking that a 2000000 servo period is the best we're going to be able to do with an OPi5
More
3 years 4 months ago #273882 by rodw
Replied by rodw on topic Can the OPI5 be Configured to Run LCNC?

Well, the solution isn't the best. Doubling the servo period will slow the machine down. I looked into updating the RealTek network drivers, but it OPi5 uses a YT8531 chip.
 
I was not intending you attempt to follow the realtek path but i you investigate the NIC and the driver in use as I suggested, you may get some clues. But it will be a kernel issue so updating to a later kernel will help.
The following user(s) said Thank You: echristley
Time to create page: 1.273 seconds
Powered by Kunena Forum