You need to post the code so people can see what it is, also where your work zero is located.
I program my own code for straight thread milling and normally put the work zero at the center of the hole. Then the I in the G02/3 is the same as the G01 X move that puts the cutter at the thread radius, or J the same as X. You just have to remember they are opposite signs.