o-codes and ngc file

More
2 years 1 month ago #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?

 

Attachment not found



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


 

Please Log in to join the conversation.

More
2 years 1 month ago #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 to join the conversation.

More
2 years 1 month ago #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 to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum