- LinuxCNC
- General LinuxCNC Questions
- Execute G-code when triggered by an external input (on parallel port input pin)
Execute G-code when triggered by an external input (on parallel port input pin)
- sk_linuxcnc
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
08 Nov 2024 09:34 #314067
by sk_linuxcnc
Execute G-code when triggered by an external input (on parallel port input pin) was created by sk_linuxcnc
Hello, i am new to the linuxCNC systems.
I wish to build a simple rotating axis controlled by linuxcnc gcode. And i have a external robot which would perform some machining operations on the rotating part.
Now i want to sync both the machines. such that when i start the robot, the linuxcnc should also start executing the gcode.
Is it possible to execute the gcode when an input is provided through one of the parallel port input pins?
does the M66 code work here?
how to then pause the program if i pause the action of the robot (incase i have to e-stop the robot) and how to make sure then that the gcode is resumed from the paused location once the robot restarts and sends execution trigger to the linux cnc.
I wish to build a simple rotating axis controlled by linuxcnc gcode. And i have a external robot which would perform some machining operations on the rotating part.
Now i want to sync both the machines. such that when i start the robot, the linuxcnc should also start executing the gcode.
Is it possible to execute the gcode when an input is provided through one of the parallel port input pins?
does the M66 code work here?
how to then pause the program if i pause the action of the robot (incase i have to e-stop the robot) and how to make sure then that the gcode is resumed from the paused location once the robot restarts and sends execution trigger to the linux cnc.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3925
- Thank you received: 1687
08 Nov 2024 10:26 #314072
by Aciera
Replied by Aciera on topic Execute G-code when triggered by an external input (on parallel port input pin)
Have a look at the halui.program.* halpins:
linuxcnc.org/docs/html/man/man1/halui.1.html
Depending on the gui you are using it may provide its own hal pins to steer program execution.
linuxcnc.org/docs/html/man/man1/halui.1.html
Depending on the gui you are using it may provide its own hal pins to steer program execution.
The following user(s) said Thank You: sk_linuxcnc
Please Log in or Create an account to join the conversation.
- sk_linuxcnc
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
08 Nov 2024 11:41 #314074
by sk_linuxcnc
Replied by sk_linuxcnc on topic Execute G-code when triggered by an external input (on parallel port input pin)
thank you for the guide. i am looking into it and so far it seems promising. i might have some questions down the line when i start building my g-code around the suggested solution.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Execute G-code when triggered by an external input (on parallel port input pin)
Time to create page: 0.055 seconds