M codes

More
20 Jun 2011 13:01 #10651 by BigJohnT
Replied by BigJohnT on topic Re:M codes
You get the "unknown m code" error for any kind of error with M1nn.

John

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

More
20 Jun 2011 13:02 #10652 by piasdom
Replied by piasdom on topic Re:M codes
ok.

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

More
20 Jun 2011 16:23 #10671 by ArcEye
Replied by ArcEye on topic Re:M codes
Hi

EMC normally internally converts just about everything to lowercase and you can't have capitalised sub file names for instance because of this.

Linux sees M101 and m101 as completely different files

If you name your file m101 but type in M101 at the MDI prompt, you will get the 'unknown M Code' error

If however you name your file M101, you can execute it with both M101 and m101 at the MDI prompt.

Why exactly the second one works I don't know, but it does, I have just done it!

regards

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

More
20 Jun 2011 17:11 #10672 by piasdom
Replied by piasdom on topic Re:M codes
Thanks ArcEye , but all are small lettering.
back to the net.

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

More
20 Jun 2011 17:27 #10673 by BigJohnT
Replied by BigJohnT on topic Re:M codes
piasdom wrote:

working on Mnnn
i have the file m101 in my PROGRAM_PREFIX directory and it's executable.
i'm trying to call it in my program with m101 p4. i'm getting "unknown m code used"
T'anks !

my m101 file;
#!/bin/sh

feedrate=$2

halcmd setp thc.feedrate $feedrate

exit 0


Do you have a plasma torch now?

Did you load the thc component?

John

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

More
20 Jun 2011 19:08 - 20 Jun 2011 19:09 #10677 by piasdom
Replied by piasdom on topic Re:M codes
does the m1nn file have a file type to be executed ?
m110.???
Last edit: 20 Jun 2011 19:09 by piasdom.

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

More
20 Jun 2011 19:17 #10679 by BigJohnT
Replied by BigJohnT on topic Re:M codes
Nope, what are you doing with the torch height control component?


John

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

More
20 Jun 2011 19:40 - 20 Jun 2011 19:54 #10680 by piasdom
Replied by piasdom on topic Re:M codes
BigJohnT wrote:

piasdom wrote:

working on Mnnn
i have the file m101 in my PROGRAM_PREFIX directory and it's executable.
i'm trying to call it in my program with m101 p4. i'm getting "unknown m code used"
T'anks !

my m101 file;
#!/bin/sh

feedrate=$2

halcmd setp thc.feedrate $feedrate

exit 0


Do you have a plasma torch now?

Did you load the thc component?

John



that must be it. no torch :)
and don't know anything about thc.
was trying to get a feed variable
saw it in the doc and thought it was something else
thanks anyway.
Last edit: 20 Jun 2011 19:54 by piasdom.

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

More
20 Jun 2011 20:44 #10682 by BigJohnT
Replied by BigJohnT on topic Re:M codes
It shows your doing some looking around in the docs :)

2.5 has pins to set the feed rate with a value...

John

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

More
20 Jun 2011 21:35 #10685 by piasdom
Replied by piasdom on topic Re:M codes
Thanks John, i'll have to wait.

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

Time to create page: 0.144 seconds
Powered by Kunena Forum