Probably not a great idea to "program for a thread", as that generally involves reversing the spindle. Threading generally assumes some knowledge of the spindle position which we don't have here.

In this case we use the "feed per rev" in Fusion CAM to get the correct pitch - and we know when to stop feeding based on the height / z position. It's only really possible to use this method because the spindle speed is known and constant, unlike a rigid tapping move. Once we start to withdraw the tapping head, it takes care of the reversing. That's the benefit of the Tapmatic type head.

If you run your pork pie over the thread above you will see how we have considered how to get the feedrate right for the required thread pitch and also how to cater for the (twice) faster reverse.

I have tension compression tapping heads too but without a spindle positioning system (aka encoder), I reckon trying to control the depth of threading via a VFD would be fraught and expensive.