I'm having some difficulty getting LTSpice to like a TRIAC model.
The specific error it throws is "Missing model definition for VGT-0.65". The trouble is that VGT is a subcircuit parameter, not a model.
The thyristor library is one I found while googling for a SPICE model for the MAC97 (MAC97A8 specifically). It's located here and looks like a decent, well-built thyristor library. It abstracts a single SCR and single Triac subcircuit, and then lists dozens of models of various thyristors which call up one of these two models.
The subcircuit line that is throwing the error is this one:
Rseries gate gate1 {(Vgt-0.65)/Igt}
Now I've tried putting Vgt in parentheses all by itself (to try to separate the "-0.65" from the "Vgt", but then the LTSpice error just says it's got a missing model for VGT.
The specific model for the MAC97A8 also looks fine, and defines Vgt:
.subckt MAC97A8 MT2 gate MT1
* Min and Max parameters
X1 MT2 gate MT1 Triac params:
+ Vdrm=600v Idrm=10u Ih=10ma dVdt=25e6 Ton=2u
+ Igt=5ma Vgt=2.0v Vtm=1.9v Itm=.85
* 90-5-18 Motorola DL137, Rev 2, 3/89
.ends
*$
I've tried a few other TRIAC models to see if there was something specifically goofy about this one but that does not appear to be the case. At this point I'm starting to wonder if there is something odd about LTSpice's handling of the Triac subcircuit, but LTSpice is a pretty decent SPICE program so I'm hesitant to blame it, especially with a thyristor library found out on the random 'net.
Has anyone simulated TRIAC circuits with LTSpice before? Is there something specific that I am missing?