Executing nc code by classicladder

More
03 Aug 2015 23:31 - 03 Aug 2015 23:32 #61143 by bladekel
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.

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

More
04 Aug 2015 04:12 #61147 by BigJohnT
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

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

More
04 Aug 2015 04:13 - 04 Aug 2015 04:13 #61148 by Todd Zuercher
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

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

Time to create page: 0.065 seconds
Powered by Kunena Forum