Executing nc code by classicladder
03 Aug 2015 23:31 - 03 Aug 2015 23:32 #61143
by bladekel
Executing nc code by classicladder was created 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 ?
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.
04 Aug 2015 04:12 #61147
by BigJohnT
Replied by BigJohnT on 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
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.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
04 Aug 2015 04:13 - 04 Aug 2015 04:13 #61148
by Todd Zuercher
Replied by Todd Zuercher on 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.
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.061 seconds