How to move main spindle specific num. of rotations at a feedrate (Siemens 840D)

My machine has a Siemens 840D controller. Is there a way to do the following?

I want to spin the main spindle at a slow rate, say about 10 rpm, but only for EXACTLY 5 rotations while having the Z2 axis move in synchronization with that – at a specific feedrate, say 0.050″/rev.

G95 is feed per revolution mode, so “G95 G1 Z2=-0.25 F0.050” would move Z2 the correct distance per rev of the spindle, but I don’t want to just turn the spindle on because I want to command it to rotate exactly 5 revolutions and then stop.

And now that I think of it, the 5 rotations is what is important, not so much the speed of the spindle…

I am not sure how to do that. Any ideas?

-Tom