Below you can find threading macro with description and pictures.
P – >pitch<
Q – absolute threading depth >depth<
S – >rpm ffd<
R – >rpm rev<
Positive value of threading pitch >pitch< lets for threading using M3 revs
Negative value of threading pitch >pitch< lets for threading using M4 revs
In this new version of M84 macro, the Q parameter is an absolute threading depth.
It means that if we enter Q-20 then the depth will be to Z-20 [Rys.1a].
In turn if we type in – Q5 – then threading depth will be to Z5 [Rys.1b].
The macro has protection that stops the program and scrolls the g code to the top
when Zstart < Q or Zstart = Q.
Zstart < Q is a situation where the tool is below the thread end [Rys.2a]
Zstart = Q is a situation where the tool is already on the thread end point [Rys.2b]
There is also protection in case one of the parameters: P, S or R was equal to 0, in this case, the program will also be stopped and scrolled to the top.