Running LinuxCNC on a Mac

More
06 Apr 2023 13:47 #268432 by RainX
Running LinuxCNC on a Mac was created by RainX
What options are available to run LinuxCNC on Mac with the below Stepper Motors and Stepper Drivers?

My CNC configuration so far is as per the below:

1.  (3) Sanyo Denki Stepper motors Model # 103-H8221-6241 (6A) Spec Sheet enclosed.

I purchased:
2. (3) EM882S Leadshine Stepper Drivers (Spec Sheet enclosed)

What options are available?
Attachments:

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

More
11 Apr 2023 13:29 #268821 by andypugh
Replied by andypugh on topic Running LinuxCNC on a Mac
You can (probably( run LinuxCNC on a Mac _hardware_ by installing Linux in place of MacOS (or setting up dual boot)

I run LinuxCNC in a VM on my Mac using VMWare Fusion, but there is _absolutely_ no way to run hardware with a VM.

LinuxCNC itself does not run on the Mac. I think that it _could_ with modifications to use the MacOS realtime system (which I think exists) but it would be a lot of work that no-one has done.

If you do decide to install Linux then I think that your only physical interface option would be Ethernet. So something like a Mesa 7i96.

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

More
23 Nov 2023 18:15 #286352 by chowderhead
Replied by chowderhead on topic Running LinuxCNC on a Mac
A bit necro, but...

I have a 7i96 system working fine with a very old HP/Compaq that I worry will crater before long, so have been trying to get a 2014 i5 Mac Mini (A1347) setup as a backup. No joy whatsoever: following errors galore despite a mid-50's us latency and the recommended 1M ns servo period. The ini and hal are identical between the systems; the only thing I can think of is the Broadcom NetXtreme BCM57766.

Any thoughts?

Thanks!

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

More
23 Nov 2023 18:29 #286354 by PCW
Replied by PCW on topic Running LinuxCNC on a Mac
What do you ping times look like?

ping -c 4 -i .0 [card-address]
then
sudo chrt 99 ping -i .001 -q [card-address]

Let the last command run for a few minutes and then
hit control C to see the times.
The following user(s) said Thank You: chowderhead

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

More
23 Nov 2023 18:47 - 23 Nov 2023 18:49 #286356 by andypugh
Replied by andypugh on topic Running LinuxCNC on a Mac
You could try a Thunderbolt to Ethernet adaptor, though it's not a cheap experiment.
But I ran a 7i96 earlier this year with a 2014 Macbook Air and a Thunderbolt adaptor.

Having looked on eBay, you can pick up such an adaptor for < £10. 
Last edit: 23 Nov 2023 18:49 by andypugh.
The following user(s) said Thank You: chowderhead

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

More
23 Nov 2023 18:54 #286357 by chowderhead
Replied by chowderhead on topic Running LinuxCNC on a Mac
I won't be back to the machine until next week. I'll give it a try then.

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

More
30 Nov 2023 17:24 #286892 by chowderhead
Replied by chowderhead on topic Running LinuxCNC on a Mac
ping -c 4 -i .0 10.10.10.10:

--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 1ms
rtt min/avg/max/mdev = 0.171/0.180/0.193/0.008 ms, ipg/ewma 0.253/0.187 ms


chrt 99 ping -i .001 -q 10.10.10.10:

--- 10.10.10.10 ping statistics ---
297650 packets transmitted, 297650 received, 0% packet loss, time 297961ms
rtt min/avg/max/mdev = 0.112/0.166/3.342/0.053 ms

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

More
30 Nov 2023 23:47 #286918 by PCW
Replied by PCW on topic Running LinuxCNC on a Mac
3.342 ms is not good...

Not sure if this is because of power saving options still enabled
or perhaps an issue with the particular Ethernet hardware used

Here's the same test run on a old HP Elite 8300:

--- 10.10.10.10 ping statistics ---
2180801 packets transmitted, 2180801 received, 0% packet loss, time 2180799ms
rtt min/avg/max/mdev = 0.066/0.079/0.209/0.006 ms

 

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

More
01 Dec 2023 16:57 #286975 by chowderhead
Replied by chowderhead on topic Running LinuxCNC on a Mac
Yeah. It's an Apple, settings are all done via NVRAM, which doesn't seem to provide much flexibility. I'll try some of the power settings via kernel options and see if it helps.

Thanks!

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

More
03 Dec 2023 18:58 #287123 by chowderhead
Replied by chowderhead on topic Running LinuxCNC on a Mac
Looks like it was the wifi adapter; removing that driver seems to have done the trick.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum