Need help with user defined m1nn
07 Sep 2009 02:01 #782
by Deotti
Need help with user defined m1nn was created 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.
07 Sep 2009 05:07 #786
by cmorley
Replied by cmorley on topic Re:Need help with user defined m1nn
Well you did something wrong ! 
Seriously need more info to help. like post your file on pastebin site so we could see them.

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.
07 Sep 2009 11:41 #787
by Deotti
Replied by Deotti on topic Re:Need help with user defined m1nn
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!
#!/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.
07 Sep 2009 11:46 #788
by Deotti
Replied by Deotti on topic Re:Need help with user defined m1nn
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!
#!/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.
07 Sep 2009 12:27 #789
by BigJohnT
Replied by BigJohnT on topic Re:Need help with user defined m1nn
You may not have set the file as an executable.
www.linuxcnc.org/docview/html//gcode_main.html#sec:M100-to-M199:
John
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.101 seconds