I just generated a functional simulation model for a DPDT relay symbol I had previously downloaded (both attached).
It includes an approximate 15ms open and close delay to simulate the mechanical relay operation.
I'm posting it for others to use because I wasn't able to locate such a model elsewhere.
I've also posted it in the Yahoo LTspice Users Group.
Nice.
Slight mod suggested, since not all users put LTS files in the default location:- replace the absolute path to the diode library with .lib standard.dio
i had problem with circuit element S - as "is?" **broken link removed**
you don't seem to have L elements -- you should brief the recommended use in about. "Short Guide"
otherwise "we" appreciate adding up to ever expanding models set , Hi crutschow (muhahahahaa)
I took it, as is, but it's not working. Am I missing something? I lack of knowledge (for now) about Spice syntax so I left the .sub file untouched (including the relative path of the standard.dio).
Weird. I've attached 2 screenshots. I've looked in the .sub. Vt (trip voltage for what I could understand) should be 0.36V. So, when VPulse overcome that threshold, the relay have to switch. But it doesn't actually.
Cockpit error. I didn't look closely at your simulation times.
The relay model has a delay of about 14ms to simulate the operation of a real relay but you were trying to turn it on and off in 10ms.
Real mechanical relays generally don't operate that fast.
Omg, nice catch! Thank you I didn't notice. Now it's working perfectly.
If I want to modify the delay time, I just have to adjust the R-C value right? For example, If I set the C1 value from 15nF to 5nF I should obtain a 5ms delay (my case).
Also, tipically the switch Set time is different from the Reset time. I'm wondering how I can introduce differents delay in the model...
You would have to modify the model so that the charge time of the cap is different than the fall time.
Perhaps two resistors with a diode in series with each, one being in the opposite direction.
But unless simulating those times exactly is important in your design, it's probably not worth the effort.