Running two LinuxCNC instances in parallel
- Fusseldieb
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
13 Jul 2025 01:10 - 13 Jul 2025 01:12 #331744
by Fusseldieb
Running two LinuxCNC instances in parallel was created by Fusseldieb
Hi there,
This is my first post here, and I haven't really found a "definitive" answer to my question.
Is it possible to run two LinuxCNC instances in parallel?
I have two CNC machines and would like to run two separate jobs on both machines. Nothing shared - just two jobs and two machines, really.
I already redirected the port 5005 to a different one for the other instance, but HAL still complains about using duplicated ressources. As I've read in another thread, using two computers and a third to control the other two seems... counterintuitive, to say the least.
Where lies the problem? Is there any way to overcome it?
Thanks in advance!
This is my first post here, and I haven't really found a "definitive" answer to my question.
Is it possible to run two LinuxCNC instances in parallel?
I have two CNC machines and would like to run two separate jobs on both machines. Nothing shared - just two jobs and two machines, really.
I already redirected the port 5005 to a different one for the other instance, but HAL still complains about using duplicated ressources. As I've read in another thread, using two computers and a third to control the other two seems... counterintuitive, to say the least.
Where lies the problem? Is there any way to overcome it?
Thanks in advance!
Last edit: 13 Jul 2025 01:12 by Fusseldieb.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20455
- Thank you received: 6964
13 Jul 2025 01:35 #331745
by tommylight
Replied by tommylight on topic Running two LinuxCNC instances in parallel
This was mentioned before, and seems some work around were mentioned on github
github.com/LinuxCNC/linuxcnc/issues/2716
And here
forum.linuxcnc.org/38-general-linuxcnc-q...grams-simultaneously
github.com/LinuxCNC/linuxcnc/issues/2716
And here
forum.linuxcnc.org/38-general-linuxcnc-q...grams-simultaneously
Please Log in or Create an account to join the conversation.
- Fusseldieb
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
13 Jul 2025 02:00 - 13 Jul 2025 02:06 #331747
by Fusseldieb
Replied by Fusseldieb on topic Running two LinuxCNC instances in parallel
Thank you for your answer. Seems like you're everywhere haha
Anyways, I saw both, and the first GitHub Issue seems to have died down, whereas the second link talks about something much more involved, which is coordinating two systems with one program. The second link is actually something another user archieved in a YouTube video , but it's not what I need since both machines in said video acted "as one".
Anyways, I saw both, and the first GitHub Issue seems to have died down, whereas the second link talks about something much more involved, which is coordinating two systems with one program. The second link is actually something another user archieved in a YouTube video , but it's not what I need since both machines in said video acted "as one".
Last edit: 13 Jul 2025 02:06 by Fusseldieb.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20455
- Thank you received: 6964
13 Jul 2025 02:50 #331749
by tommylight
Replied by tommylight on topic Running two LinuxCNC instances in parallel
Nope, not the same thing, link is to running two programs at the same time, the video is using two Mesa cards that can easily be done by LinuxCNC, as well as any combination of multiple parallel ports, Mesa, EtherCAT.
Would your situation be possible using two PC's and many IO to communicate between them with feed holds and waits and whatever necessary?
Would your situation be possible using two PC's and many IO to communicate between them with feed holds and waits and whatever necessary?
Please Log in or Create an account to join the conversation.
- pippin88
- Away
- Elite Member
-
Less
More
- Posts: 271
- Thank you received: 49
13 Jul 2025 03:42 #331753
by pippin88
Replied by pippin88 on topic Running two LinuxCNC instances in parallel
What is the goal here?
Two completely separate CNC machines?
Are you just trying to have 1 computer running 2 machines?
Just buy a 2nd computer. Second hand business machines work fine
Two completely separate CNC machines?
Are you just trying to have 1 computer running 2 machines?
Just buy a 2nd computer. Second hand business machines work fine
Please Log in or Create an account to join the conversation.
- Fusseldieb
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
13 Jul 2025 21:21 #331784
by Fusseldieb
Replied by Fusseldieb on topic Running two LinuxCNC instances in parallel
Thank you for the answers.
I think tommylight is understanding it wrong. I don't want anything synchronized. I wanted two machines running on one PC, completely independant from each other. Separate G-Codes and movements. Literally just a second LinuxCNC instance connecting to the other machine.
I think tommylight is understanding it wrong. I don't want anything synchronized. I wanted two machines running on one PC, completely independant from each other. Separate G-Codes and movements. Literally just a second LinuxCNC instance connecting to the other machine.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20455
- Thank you received: 6964
13 Jul 2025 21:47 #331789
by tommylight
Replied by tommylight on topic Running two LinuxCNC instances in parallel
OK, that is not what i was thinking/answering, but the replies are still valid, namely most of the pin names would be the same on both instances.
But, having two separate machines/configs with two separate controllers/electronics is for sure possible ... as long as you do not need both running at the same time.
But, having two separate machines/configs with two separate controllers/electronics is for sure possible ... as long as you do not need both running at the same time.
Please Log in or Create an account to join the conversation.
- Fusseldieb
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
13 Jul 2025 23:14 #331792
by Fusseldieb
Replied by Fusseldieb on topic Running two LinuxCNC instances in parallel
> as long as you do not need both running at the same time.
Exactly that's what I wanted.
Is there any workaround that could work, too, without having to use two separate machines?
Exactly that's what I wanted.
Is there any workaround that could work, too, without having to use two separate machines?
Please Log in or Create an account to join the conversation.
- pippin88
- Away
- Elite Member
-
Less
More
- Posts: 271
- Thank you received: 49
13 Jul 2025 23:17 #331793
by pippin88
Replied by pippin88 on topic Running two LinuxCNC instances in parallel
You need to be clearer please, loose terminology is confusing things.
You are using "machine" to mean multiple things.
Suggest:
Computer (the hardware linuxcnc runs one)
CNC machines
You are using "machine" to mean multiple things.
Suggest:
Computer (the hardware linuxcnc runs one)
CNC machines
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20455
- Thank you received: 6964
13 Jul 2025 23:27 #331794
by tommylight
Replied by tommylight on topic Running two LinuxCNC instances in parallel
Not that i am aware of, and now we know what you're after we can easily point you in the right direction: Get another PC! 
Having two machines controlled by the same PC is not safe as any issue with the PC would stop both machines, together with the materials scraped that may or may not be recoverable.
If space is the issue, most monitors have at least two inputs, some can show both inputs at the same time, some also have KVM so connecting mouse/keyboard to monitor will switch those whenever you switch monitor inputs.
Keep in mind having two PC's on the same monitor without a KVM has the inherit drawback of clicking on keyboard/mouse several times till it dawns it's the wrong PC on.
Done this a lot as i have a monitor in the shop with 7 inputs and usually 2-5 PC's connected.
What about using laptops? There are several i tested that work OK for normal "non mission critical" use:
forum.linuxcnc.org/18-computer/54369-use...mesa-ethernet-boards

Having two machines controlled by the same PC is not safe as any issue with the PC would stop both machines, together with the materials scraped that may or may not be recoverable.
If space is the issue, most monitors have at least two inputs, some can show both inputs at the same time, some also have KVM so connecting mouse/keyboard to monitor will switch those whenever you switch monitor inputs.
Keep in mind having two PC's on the same monitor without a KVM has the inherit drawback of clicking on keyboard/mouse several times till it dawns it's the wrong PC on.

What about using laptops? There are several i tested that work OK for normal "non mission critical" use:
forum.linuxcnc.org/18-computer/54369-use...mesa-ethernet-boards
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds