Look here and make necessary changes.
# Generate string for spindle, mill
sm52 M34 # Spindle reverse - no coolant
sm55 M35 # Spindle off - no coolant
sm51 M33 # Spindle forward - no coolant
sm54 M34 # Spindle reverse - coolant
sm55c M35 # Spindle off - coolant
sm53 M33 # Spindle forward - coolant
spindle_m #Target for string
fstrsel sm52 g_spdir spindle_m 6 -1
This is for a Daewoo 200MS. No separate codes for with/without coolant.
HTH |