M-codes location

  • eduard
  • eduard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 Jul 2024 13:48 #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. 

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

  • eduard
  • eduard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 Jul 2024 13:56 - 16 Jul 2024 13:58 #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. 
Attachments:
Last edit: 16 Jul 2024 13:58 by eduard.

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

More
16 Jul 2024 14:02 #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 or Create an account to join the conversation.

  • eduard
  • eduard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 Jul 2024 15:48 - 16 Jul 2024 15:48 #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? 
Last edit: 16 Jul 2024 15:48 by eduard.

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

More
16 Jul 2024 15:53 #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 or Create an account to join the conversation.

  • eduard
  • eduard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 Jul 2024 16:29 #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 or Create an account to join the conversation.

More
16 Jul 2024 16:36 - 16 Jul 2024 16:39 #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.
Last edit: 16 Jul 2024 16:39 by Aciera.
The following user(s) said Thank You: eduard

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

Time to create page: 0.074 seconds
Powered by Kunena Forum