There are three M codes for the spindle.
M3/4 turns on the spindle cw / ccw
M5 turns the spindle off
Try just adding M3 or M4 to the gcode and see if that works.
Know nothing about the UC100 so may want to read the manual about turning the spindle on / off even though
you are doing it manually.
RICH