For the MSC-518 on a SV-50
sample code
Code:
N## G0 G43 G54 G90 X##.#### Y##.#### Z2. H##
Z.5 T## M8(GO TO YOUR INITIAL PLANE, CALL NEXT TOOL, FLOOD ON)
M29 S#### (SET SYNC MODE AND SPINDLE SPEED)
G84 Z-1. R.2 Q.4 F###.#### (FEED IS IN IPM UNITS) (Q IS FOR PECK TAPPING)
G0 Z.5 M9 (RAPID RETURN TO INITIAL PLANE, FLOOD OFF) (G0 CANCELS FIXED CYCLE LIKE G80)
Z2.
G28 G91 Z0 M1 (TAKE SPINDLE HOME FOR TOOLCHANGE)
M6 (TOOLCHANGE)
Notes:
Don't use an M3 - spindle should be off when an M29 S#### is given.
G84 - the Q value is optional and usually omitted (tap full depth in single pass)
No Z axis movement is allowed after the M29 is issued other than the actual G84 cycle.
G80 or G0 will cancel the M29
Good luck, The SV50 is a great toy!