How to run two programs simultaneously
10 Jan 2024 12:35 #290353
by wisao
How to run two programs simultaneously was created by wisao
Hello everyone, everything good?
Would it be possible to run two machining programs simultaneously within Linux CNC?
I have a lathe with 2 spindles, each spindle has its respective X and Z.
So I can work with simultaneous cycles at the same time.
Thanks
Would it be possible to run two machining programs simultaneously within Linux CNC?
I have a lathe with 2 spindles, each spindle has its respective X and Z.
So I can work with simultaneous cycles at the same time.
Thanks
Please Log in or Create an account to join the conversation.
10 Jan 2024 12:55 #290354
by Aciera
Replied by Aciera on topic How to run two programs simultaneously
This is currently not possible.
If you are experimental you could try running two PCs with LinuxCNC on each and then think of a way to control gcode execution of one PC with the other.
If you are experimental you could try running two PCs with LinuxCNC on each and then think of a way to control gcode execution of one PC with the other.
Please Log in or Create an account to join the conversation.
10 Jan 2024 14:28 #290368
by wisao
Replied by wisao on topic How to run two programs simultaneously
Do you know if anyone has tried this?
Would it be very difficult to make this modification in Linux?
My objective would be to control a machine with 6 spindles
Would it be very difficult to make this modification in Linux?
My objective would be to control a machine with 6 spindles
Please Log in or Create an account to join the conversation.
10 Jan 2024 14:30 #290369
by wisao
Replied by wisao on topic How to run two programs simultaneously
a machine like this:
Please Log in or Create an account to join the conversation.
10 Jan 2024 14:41 #290370
by Aciera
Replied by Aciera on topic How to run two programs simultaneously
Well, now you have gone from a lathe with 2 spindles to a machine with 6 in two posts.
I don't know of any reports on using more than one instance of LinuxCNC, so it would be experimental even for 2 spindles let alone for 6.
I don't know of any reports on using more than one instance of LinuxCNC, so it would be experimental even for 2 spindles let alone for 6.
Please Log in or Create an account to join the conversation.
10 Jan 2024 14:50 - 10 Jan 2024 14:53 #290372
by Mecanix
Synchronized channels are only possible if post-processed as such. Often using a "wait cycle" or M function for the sync flag, hence the wait-server required to sync both workstations in the context of what member Aciera rightly advised already. You'll also need to acquire a CAM that is adapted for a multi channel machine-tool -the like showcased in your video.
Replied by Mecanix on topic How to run two programs simultaneously
Yes. I know of someone who've accomplished a dual-workstation synchronized motion controller. One of them servicing gcode and acting as a "wait-server" and the other servicing gcode only. Wasn't made with linuxcnc, however the same can be achieved given a significant amount of passion.Do you know if anyone has tried this?
Synchronized channels are only possible if post-processed as such. Often using a "wait cycle" or M function for the sync flag, hence the wait-server required to sync both workstations in the context of what member Aciera rightly advised already. You'll also need to acquire a CAM that is adapted for a multi channel machine-tool -the like showcased in your video.
Last edit: 10 Jan 2024 14:53 by Mecanix.
Please Log in or Create an account to join the conversation.
10 Jan 2024 15:00 - 10 Jan 2024 15:00 #290374
by Mecanix
Replied by Mecanix on topic How to run two programs simultaneously
Last edit: 10 Jan 2024 15:00 by Mecanix.
Please Log in or Create an account to join the conversation.
14 Jan 2024 17:07 #290667
by robh
Replied by robh on topic How to run two programs simultaneously
i too have looked at this many a times and always has been alot of folks asking over the years for it. and it seems the issue for 1 PC is getting the linuxcnc code to allow multi instances to run at once and talk.
on my citizen (this is a mitsubishi control)
each program is seperated by $ followed by a number
so $1 is path 1 , $2 is path 2,,, etc so you end up with 1 code file.
they use L followed by a number, and you just increment it each time you want to wait for another "program Path" in each path section to finish or start.
it does have a Mcode way also which is just a wait signal , iv never used it
but a Mcode wait , this you can do with two linuxcnc yes very easy as said
This is how one of our old 80's machines did it running two Fanuc controls side by side before fanuc had multipath program ability. it had a switch to change display & key pannel between the two. and a M code from each that interfaced into each PLC. it worked in them times, it had its issues now and then. in no way was it aware what each NC code was doing. so could not do anything crazy fancy like super imposed moves etc
there are many different ways i have seen it done on many controls over the years. it always just seems to diff how the machine brand thinks best is the way forward or todo it.
but on a slider you have bar moving in guide bush in and out, so they also have superimposed mode, so slave axis can follow in real time the bar moving in and out in Z direction,
ie turn an OD with 1 turret whiel bar moves in and out in Z
and 2nd can bore a complex hole while the bar is moving in Z
this would be complex and hard with two PCs running as need to pass off the axis postions so you can offset in real time the postion ontop , becasue you can tap ahole in the mode also!
on my citizen (this is a mitsubishi control)
each program is seperated by $ followed by a number
so $1 is path 1 , $2 is path 2,,, etc so you end up with 1 code file.
they use L followed by a number, and you just increment it each time you want to wait for another "program Path" in each path section to finish or start.
it does have a Mcode way also which is just a wait signal , iv never used it
but a Mcode wait , this you can do with two linuxcnc yes very easy as said
This is how one of our old 80's machines did it running two Fanuc controls side by side before fanuc had multipath program ability. it had a switch to change display & key pannel between the two. and a M code from each that interfaced into each PLC. it worked in them times, it had its issues now and then. in no way was it aware what each NC code was doing. so could not do anything crazy fancy like super imposed moves etc
there are many different ways i have seen it done on many controls over the years. it always just seems to diff how the machine brand thinks best is the way forward or todo it.
but on a slider you have bar moving in guide bush in and out, so they also have superimposed mode, so slave axis can follow in real time the bar moving in and out in Z direction,
ie turn an OD with 1 turret whiel bar moves in and out in Z
and 2nd can bore a complex hole while the bar is moving in Z
this would be complex and hard with two PCs running as need to pass off the axis postions so you can offset in real time the postion ontop , becasue you can tap ahole in the mode also!
Please Log in or Create an account to join the conversation.
30 Jan 2024 18:08 #291998
by glbreil
Replied by glbreil on topic How to run two programs simultaneously
Hi Rob, sorry to bust in on a thread off topic, but I have been trying to figure out how to contact you about a really old topic where you retrofitted a Hardinge CHNC lathe and put a servo on the tool turret.
I would love to get some more information on what parts you used, size of servo and maybe a picture or two that doesn’t have that photo bucket banner across it.
Thanks in advance Gary Breiling.
I would love to get some more information on what parts you used, size of servo and maybe a picture or two that doesn’t have that photo bucket banner across it.
Thanks in advance Gary Breiling.
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds