RPI4 Raspbian 64 bit & LinuxCNC

More
4 years 7 months ago #238945 by andypugh

RTAPI then tries to load milltask. However, it fails to find milltask.so in linuxcnc/modules, upon which waitpid times out.
Is the file actually there? 

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

More
4 years 7 months ago - 4 years 6 months ago #238968 by Elco
no, milltask.so is nowhere in the system; only found /usr/bin/milltask.
I used the complete SD image for installation. I'll reinstall the Linuxcnc deb and see what happens.
Elco

Edit: Reinstalling the OS and LinuxCNC cleared up the problems, LinuxCNC starts, the axis demo not yet. One error message: unexpected realtime delay on task 0 with period 100000. Setting the value to 200000 cleared that up.
Last edit: 4 years 6 months ago by Elco.

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

More
4 years 6 months ago #239394 by andypugh
Are you running a base thread? What hardware interface are you using?

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

More
4 years 6 months ago #239420 by Elco
Usually build my own interface hardware (retired EE Engineer here). Make them more robust to support experiments. (essentially74HC14's, 6N137's, single UL2003 to drive 3 controllers, DM856 drivers. LM1489's for filtered sensor input)

Currently building new CNC hardware, that takes most of the time. The RPi works, ie produces signals at its pins, and can move steppers. I am more a LinuxCNC user (since many years) than a software engineer, and do not want to spend more time on it for now. For my small CNC that would fit the RPi, I'll be testing a Biostar mini-ITX this weekend.

The RPi is cute, with not so great latency. An RPi compute module with a Remora like I/O board might be a good solution though.

Elco

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

More
4 years 6 months ago #239447 by andypugh
My question was related to whether you were using software step generation or were interfacing the Pi to an external step generator. Whilst there is a driver for the Pi GPIO pins, I don't think that they Pi latency is good enough to run steppers that way (except at lo speed, or to experiment)
The Pi4 can work well with ethernet-interfaced hardware, and I think anything 3 or better can work with the SPI interfaced boards such as the 7C80.
In those cases you would only run the 1ms servo thread, and the latency then is not a signficant issue.

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

More
4 years 6 months ago #239515 by Elco
I have not looked at connecting the Pi4 that way yet. It was an experiment, and it took already more time than expected. Way back, I started with a product (then called USBCNC) that uses an USB connected 5 axis card generating the real time signals, which works very well (I still use it for PCB engraving, as it has built-in board leveling). I hate that it is windows only though (last windows system goes out in a few weeks) and I decided years ago to turn to LCNC, which I run on CNC03 with the pp in 'X' mode. Works OK. The new larger one (4th to built) has a dual X-axis and a more sensors, and - when completed - needs a more elaborate setup.
Plan was to get - after completion of system #4 - the small system a PI4 based controller. if I get that far, it might use GPIO's, or an SPI solution depending on available documentation.

Elco

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

Time to create page: 0.343 seconds
Powered by Kunena Forum