I have a forth axis and drive that will take step comands

I need a control that will run the fourth turn no the brake (air cyl.)

then turn a table power feed I will be using to put hex flats on a lot of shafts

what ver. and how to set up m code to run power feed on brigeport mill

Thanks
car 84