Is LinuxCNC right tool for load / unload?
14 Mar 2017 12:43 #89581
by joemc
Is LinuxCNC right tool for load / unload? was created by joemc
Hi. I'm new here. I have been running CNC machines for close to 20 years.
I'm interested in creating my own one day, but I'd first like to create a load / unload machine for sheet metal laser I already have.
I figured using LinuxCNC to create my load/unload machine would give me experience I can use when I go to create my own CNC machine.
A load / unload machine cannot run purely off of g-code. It needs to respond to inputs. I have found a few examples of using python with LinuxCNC to do this, but they did not give a lot of details.
My question is, is this possible with LinuxCNC and would you recommend it? Could you recommend a better (easier ?) solution to controlling stepper motors for a project like this?
I'm interested in creating my own one day, but I'd first like to create a load / unload machine for sheet metal laser I already have.
I figured using LinuxCNC to create my load/unload machine would give me experience I can use when I go to create my own CNC machine.
A load / unload machine cannot run purely off of g-code. It needs to respond to inputs. I have found a few examples of using python with LinuxCNC to do this, but they did not give a lot of details.
My question is, is this possible with LinuxCNC and would you recommend it? Could you recommend a better (easier ?) solution to controlling stepper motors for a project like this?
Please Log in or Create an account to join the conversation.
14 Mar 2017 17:27 #89615
by andypugh
Replied by andypugh on topic Is LinuxCNC right tool for load / unload?
You could definitely use linuxCNC. You could even use G-code, and the M66 "Wait on Input" commands to run the cycle based on button presses.
It might make more sense to use something like an Arduino, though.
It might make more sense to use something like an Arduino, though.
The following user(s) said Thank You: joemc
Please Log in or Create an account to join the conversation.
16 Mar 2017 16:58 #89755
by joemc
Replied by joemc on topic Is LinuxCNC right tool for load / unload?
Thank you for reply.
Does LinuxCNC provide an environment where I can write a C program to send step, and dir signals?
or even better would be a system call to send a MDI command?
C would be great but other languages are fine.
something like below:
if (a==b)
{
MDI("G91G00X5.0Y5.0");
}
else {...}
Does LinuxCNC provide an environment where I can write a C program to send step, and dir signals?
or even better would be a system call to send a MDI command?
C would be great but other languages are fine.
something like below:
if (a==b)
{
MDI("G91G00X5.0Y5.0");
}
else {...}
Please Log in or Create an account to join the conversation.
16 Mar 2017 18:12 #89761
by andypugh
Replied by andypugh on topic Is LinuxCNC right tool for load / unload?
Yes, you can send MDI commands from the Python interface:
linuxcnc.org/docs/2.7/html/config/python-interface.html
The commands are easily added to the callback handler in a GladeVCP panel.
linuxcnc.org/docs/2.7/html/gui/gladevcp.html
Alternatively you could write a HAL Component in C which created HAL pins that you could connect directly to a stepgen in HAL.
linuxcnc.org/docs/2.7/html/hal/comp.html
(Or, in fact, both, or even the middle-ground of a userspace Python HAL component: linuxcnc.org/docs/2.7/html/hal/halmodule.html )
I think that I would be looking at the GladeVCP panel, but that does require the motion module to be loaded to allow G-code to run. The other approaches only require HAL.
There is a tutorial here on creating a custom GUI from scratch. You might want to start a little simpler, perhaps with a simple embedded tab.
Incidentally, there is a very similar discussion on the mailing list,
sourceforge.net/p/emc/mailman/emc-users/...spt.com/#msg35726272
There are replies, but I can't figure out how to get a threaded view in that interface.
linuxcnc.org/docs/2.7/html/config/python-interface.html
The commands are easily added to the callback handler in a GladeVCP panel.
linuxcnc.org/docs/2.7/html/gui/gladevcp.html
Alternatively you could write a HAL Component in C which created HAL pins that you could connect directly to a stepgen in HAL.
linuxcnc.org/docs/2.7/html/hal/comp.html
(Or, in fact, both, or even the middle-ground of a userspace Python HAL component: linuxcnc.org/docs/2.7/html/hal/halmodule.html )
I think that I would be looking at the GladeVCP panel, but that does require the motion module to be loaded to allow G-code to run. The other approaches only require HAL.
There is a tutorial here on creating a custom GUI from scratch. You might want to start a little simpler, perhaps with a simple embedded tab.
Incidentally, there is a very similar discussion on the mailing list,
sourceforge.net/p/emc/mailman/emc-users/...spt.com/#msg35726272
There are replies, but I can't figure out how to get a threaded view in that interface.
The following user(s) said Thank You: joemc
Please Log in or Create an account to join the conversation.
Time to create page: 0.117 seconds