I am trying to recreate a part of that shutdown circuit in LTSpice but I am not getting the behaviour I expect from the optocoupler. First of all the original circuit uses the double pole relay to short the outputs of the optocoupler which is not something I understand the reason of. I think one of the contacts of relay used for latching but I am not sure how shorting the optocoupler outputs achieve that. I was also unable to find the exact optocoupler model for LTSpice in anywhere. It is a mosfet based opto instead of a BJT based one so its behavior is probably different.
The requirements of this circuit is that it consists of 3 stages and all of the stages must be clear for battery to recharge. If one of them gives error signal the progress halts until manual reset signal is applied to the optocoupler. The reason they use it is for galvanic insulation. Honestly I can build something similar with logic gates but I want to understand how this thing really works.
Can someone help me out, I am kinda lost and don't know where to start with this.