Good day to everyone. I can't figure out how to add an additional M-code when threading both with axial threading and with a drive tool (Fanuc).
Example of an axial threading program:
M43
T1000
G00 Z50.0
G00 C0.0
G98 G00 X115.0 M13 S300
M126 Add code to the postprocessor
M129
G4 X1.
G84 Z10.0 R-5.0 F525 M90
C120.0
C240.0
M127 Add code to the postprocessor
G80
G00 Z90.0 M15
M91
G28 U0.
M40
M30
Threading with the main spindle
T1000
G00 Z50.0
G98 G00 X0. M3 S300
M122 Add code to the postprocessor
M129
G4 X0.
G84 Z10.0 R-5.0 F525
M128 Add code to the postprocessor
G80
G00 Z90.0
G28 U0.
M30