Thank you Martin for your notes.Thank you Mr Chips for drawing the circuit in a logical manner! Much appreciated. I'm confused by HS3-1. Is it negative or positive or switching between the two? The problem I'm having is seeing how the PEMOS transistor switches properly, as surely it's source needs to be connected to the +32 volt supply. I can see R3 pulls the gate to +32 and turns the transistor off, and OPT1 provides the voltage from D4 to turn it on, but surely only if the source id connected to +32v.What have I overlooked?
The NEMOS transistor circuit I can see clearly ( now that the circuit has been redrawn properly), though I think R4 value is too high to turn the transistor off quickly, same comment to R3.
Yes, H3-1-2 can vary its polarity by switching between the two, so that the magnet can either attract or repel.
The stable 32V is just to trigger the MOSFET gates through the optocouplers. That's independent by the power coming from H3-1-2.
As for R3 and R4, what value would you suggest to make it faster? From my tests 10k works just fine for my application, but if I can improve that, even better... maybe 5k would be better?