Executing nc code by classicladder

More
03 Aug 2015 23:31 - 03 Aug 2015 23:32 #61143 by bladekel
bladekel created the topic: Executing nc code by classicladder
Hello My Friends,

I am so new to LinuxCnc and i am trying hard to do my best.

I need a help from anyone on this way.

I am trying to start my nc codes by externally.

Let me explain how...

I have written an nc code such as sample.ngc ,
and i have a button on parallel port pin 11.

I want my program to start by pressing that button.

How can i write its code to ladder, or another way to do it ?
Last Edit: 03 Aug 2015 23:32 by bladekel.
More
04 Aug 2015 04:12 #61147 by BigJohnT
BigJohnT replied the topic: Executing nc code by classicladder
Connect the parallel port pin to halui.program.run in your postgui.hal file. Make sure you have halui loaded in your ini file.

www.linuxcnc.org/docs/2.7/html/man/man1/halui.1.html

www.linuxcnc.org/docs/2.7/html/config/in...ig.html#_hal_section

JT
The following user(s) said Thank You: bladekel
More
04 Aug 2015 04:13 - 04 Aug 2015 04:13 #61148 by Todd Zuercher
Todd Zuercher replied the topic: Executing nc code by classicladder
I think I would use a Halui MDI command linked to your parallel port pin in HAL
linuxcnc.org/docs/html/gui/halui.html

John beat me to it.
Last Edit: 04 Aug 2015 04:13 by Todd Zuercher.
The following user(s) said Thank You: bladekel
Time to create page: 0.271 seconds
Powered by Kunena Forum