Execute G-code when triggered by an external input (on parallel port input pin)

More
08 Nov 2024 09:34 #314067 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.

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

More
08 Nov 2024 10:26 #314072 by Aciera
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.
The following user(s) said Thank You: sk_linuxcnc

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

More
08 Nov 2024 11:41 #314074 by sk_linuxcnc
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.

Time to create page: 0.055 seconds
Powered by Kunena Forum