M codes
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 758
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.
- piasdom
-
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
back to the net.
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
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.
- piasdom
-
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
m110.???
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
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.
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175

2.5 has pins to set the feed rate with a value...
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Platinum Member
-
- Posts: 469
- Thank you received: 10
Please Log in or Create an account to join the conversation.