You would need to have it set as a spindle and an axis. What you would do is use it as an axis for nomral 4 axis work then have a macro to do a swap axis and you could then make it run as a spindle. Only issue would be is you could not have another spindle set up in that profile, Mach 4 is to support multiple spindles.
Hood