Adding a toggle switch to Power window logic

I’ve managed to get my H Bridge to get my power windows to work in a fashion

Well at least I’ve managed to get the to open on power up and close on shut down thanks to ECUmaster prompt replies from the tech dept.

I’ve run out of talent though when trying to add a toggle switch into the mix. I’m wanting essentially have a push button (doesn’t mechanically latch) change whatever the current state is but retain the (close on shut down/ open on power up logic)

could someone a bit better at navigating the software look at my configurations and see what I need to do?

PMU24 config

H Bridge

Thanks for anyone who takes te time to have a look

I’m not sure how you have connected your push button, but you can try the modified project attached below.

N___TRD Front PMU24.pmu (7.1 KB)

Thanks, ill give it a try.

Essentially, the motor circuit has 2 12v limit switches that open /close at either end of the motors travel. Ive wired each one to a1 and a2 in the H brudge and send that data to the pmu24