If the 5 and 24V supplies are only being used to power sensors/switches and no motion, I'd personally put them before the saftey relay, as you usually want to have inputs active before you power up the safety relay...