24 V supply

Supply the main row and the auxiliary row separately with 24 V. Connect the 24 V supply in both rows to the last module on the far right.