I do not know your control, but in general, this can be done.
You would use G32.
Your starting Z for the subsequent thread sections will need to be a function of the original starting Z and the thread pitch.
You will also need to traverse into the previous thread section to blend in the meeting points.
This should get you started, good luck.