Hi,
As a European I can give you a Metric example for a Haas ST25Y Next Gen control for a Metric Fine thread M18 x 1.5
It's a M18 x 1.5 mm pitch with the numbers you can find in a thread table or the Internet.
Thread height is 0.92mm, so the minor diameter in X = 18 - (2x0.92) = 16.16 mm
Thread angle is 60 degrees.
Pitch diameter for your gauge is 17.026 mm
Haas uses Settings to control your parameters like Chamfer ON/OFF, Chamfer Angle, Minimum cut, Last cut, etc.
If you want a Chamfer at the end of the thread you have to program M23, if you don't want it M24.
Setting 95 is Chamfer Size ( multiplied by pitch, max. 1 ) and Setting 96 is Chamfer Angle, these numbers are for M23 - Chamfer ON.
Setting 99 is Minimum Cut in radius.
Setting 289 is Finish Allowance in radius / Last Cut.
Simple would be:
------
------
G00 X25. Z5.
M23 ( M23 = Chamfer ON or M24 = Chamfer OFF )
G76 X16.16 Z-20. K0.92 D0.25 A60 F1.5
------
------
X16.16 = minor diameter
Z-20 = 20mm thread lenght
K0.92 = height of thread for pitch 1.5mm
D0.25 = first cut
A60 = thread angle
F1.5 = pitch 1.5mm