o-codes and ngc file

More
03 Sep 2024 21:05 #309306 by greg23_78
I'm in the process of remapping M-code for my tailstrock.

Question about M-code :

I haven't found any M-codes already made for the tailstock.
I saw that haas uses M21 and M22.
Can we remap these two M-codes or should we remap only M100-M199?

 

Question on ngc file.

I would like to make only 1 file for all my remaps. Is it possible to put several o-sub in a single ngc file?

like :
o<tailstock_advance> sub
.
.
.
o<tailstock_advance> endsub

o<tailstock_retract> sub
.
.
.
o<tailstock_retract> endsub


 
Attachments:

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

More
04 Sep 2024 06:18 #309338 by Aciera
Replied by Aciera on topic o-codes and ngc file
1. You are free to allocate either M21 or M22
linuxcnc.org/docs/devel/html/remap/remap...:unallocated-m-codes

2. The ngc file needs to have the same name as the subroutine it contains so you need to create separate files for M21 and M22 subroutines.

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

More
04 Sep 2024 16:27 #309366 by greg23_78
Replied by greg23_78 on topic o-codes and ngc file
Thx you for your answere, all works fine

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

Time to create page: 0.067 seconds
Powered by Kunena Forum