ramps with masive drivers help please

ok so I know its been done before but cant find anything…my build is with ramps 1.4 because estlcam wont work on my mach3 card… so I need to know is how to hook (pinout) for external 5 amp drivers …yes theres a 5v will be running 1 12v p/s for ramps and 1 24vp/s for the drivers with 426 nema 23


Careful, people have literally ripped there machines apart with 23’s. One was on first power up…