is this going to be integrated with a card access system as well? if so use a relay to trigger the Rex for this zone. with the relay door controller driver.
if not use a relay +12 v (power to maglock) to trigger the maglock with the same driver.
you should add contacts to know if the door is open and closed.