i would try putting decimal points in the d/u/h
not sure if the control needs them but my manual for a osp5020l uses them-- your control maybe like a fanuc that can do it with out the decimal points
the G97s200m3 should lock up the rpm's to 200 while threading
try single block to see just where the machine alarm's out do you get by the g97 line and alarm out on the g71 line ?