@D-J-Klomp There's a thread about this, and having max and min limit switches wired together, here: https://forum.duet3d.com/topic/34395/wiring-multiple-endstops-in-parallel-or-series-with-duet-6xd/
Initially a different way of setting up the endstop pins, trigger pins and triggers was used, until we remembered the X and Y parameter in M581, and came up with pretty much the same as you, here: https://forum.duet3d.com/post/329959
Ian