- Posts: 80
- Thank you received: 0
M-codes location
2 years 3 months ago #305350
by eduard
M-codes location was created by eduard
Where are Lcnc M-codes are stored?
I having hard time to run a custom macro in qtdragon_hd since the ini pah of subroutines not working. The macro itself is working. I also read and followed the docs on how to add multiple path to subroutines in the ini.
I having hard time to run a custom macro in qtdragon_hd since the ini pah of subroutines not working. The macro itself is working. I also read and followed the docs on how to add multiple path to subroutines in the ini.
Please Log in to join the conversation.
2 years 3 months ago #305354
by eduard
Replied by eduard on topic M-codes location
Here is the part of the doc refering to custom M-codes:"The external program named M100 through M199 (no extension, a capital M, found in directory pointed by [DISPLAY] PROGRAM_PREFIX parameter of the INI file) is executed with the optional P and Q values as its two arguments."I followed this and the lcnc did not find the macro.
the txt must added to post to forum, but not used in lcnc.
the txt must added to post to forum, but not used in lcnc.
Please Log in to join the conversation.
2 years 3 months ago #305355
by Aciera
Replied by Aciera on topic M-codes location
Have you set the files permission to 'Allow executing file as program'?
Please Log in to join the conversation.
2 years 3 months ago #305367
by eduard
Replied by eduard on topic M-codes location
Now I set it. Working. Thanks.
But where are the other M codes in the system?
But where are the other M codes in the system?
Please Log in to join the conversation.
2 years 3 months ago #305368
by Aciera
Replied by Aciera on topic M-codes location
The built in Mcodes (eg M2, M3, M4, M5) are hard coded in the software, if that is what you mean.
Please Log in to join the conversation.
2 years 3 months ago #305373
by eduard
Replied by eduard on topic M-codes location
Yes, exactly what I'm looking for. Then if I need to change M6 let say, how can I do that?
Please Log in to join the conversation.
2 years 3 months ago #305374
by Aciera
Replied by Aciera on topic M-codes location
M6 is one of the built-in Mcodes that can be 'remapped', Depending on the complexity of the customiziation it can be as easy as an ngc file or as complex as a python script:
linuxcnc.org/docs/2.9/html/remap/remap.h...lated_codes_t_m6_m61
[edit]
If you only require minimal changes to then start with section 5.6 in the document above.
linuxcnc.org/docs/2.9/html/remap/remap.h...lated_codes_t_m6_m61
[edit]
If you only require minimal changes to then start with section 5.6 in the document above.
Please Log in to join the conversation.
Time to create page: 0.081 seconds
