Maybe I'm late and you already noticed, but in your last diagram you are still missing the + wire for the PEX.
Without it the FOC won't work because the transistor on the PEX is not powered.