Need help with user defined m1nn

More
07 Sep 2009 02:01 #782 by Deotti
I was created an executable and saved in program prefix directory with name M101 . But when i try to use this, emc2 returns unknown m code used . what is wrong?

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

More
07 Sep 2009 05:07 #786 by cmorley
Well you did something wrong ! :)
Seriously need more info to help. like post your file on pastebin site so we could see them.

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

More
07 Sep 2009 11:41 #787 by Deotti
this is the code:

#!/bin/sh
halcmd setp parport.0.pin-14-out True
halcmd setp pwmgen.0.value 50
exit 0

when i click, it do the function but emc2 unknown m code.
Tanks for help me!

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

More
07 Sep 2009 11:46 #788 by Deotti
his is the code:

#!/bin/sh
halcmd setp parport.0.pin-14-out True
halcmd setp pwmgen.0.value 50
exit 0

when i click, it do the function but emc2 unknown m code.
Tanks for help me!

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

More
07 Sep 2009 12:27 #789 by BigJohnT
You may not have set the file as an executable.

www.linuxcnc.org/docview/html//gcode_main.html#sec:M100-to-M199:

John

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

Time to create page: 0.112 seconds
Powered by Kunena Forum