2 Replies Latest reply on Sep 5, 2011 11:30 PM by m.van.dongen

    Unknown model type for included spice model

    m.van.dongen

      I'm making a simple triac application with phase cutting, later I want to sense current trough a load.

      I made a default HLA project and selected the components from the libraries.

      triac.PNG

      The VoltageLine is connected to an Sine source of of 230Veff / 50Hz and the trigger gets every 11 milliSec a puls of 5 Volt during 1 millisecond; a simple circuit.

       

      The problem:

      When starting the simulation I get the error :

       

      .include  "..\..\genhdl\TriacPhase\TriacPhase.spi"

       

      ..\..\sym\mac320_10.mod(14):  error -- modfas is an unknown model type.

       

      ..\..\sym\mac320_10.mod(23):  error -- modfas is an unknown model type.

       

       

      The model generated by hyperlinx has indeed the modfas on line 14 and 23:

      * Subcircuit mac320_10

      .subckt mac320_10 3 2 1

      * usage: xname <mt2> <g> <mt1> mac320_10

      * external node designations

      * 1 = main terminal 1

      * 2 = gate

      * 3 = main terminal 2

      rgate 2 5 162

      cgate 2 1 218n

      vgs 5 1 0

      ytriac   vswitch 3 4 6 1 model:vswitch1

      cswitch 3 4 110p

      vas 4 1 0

      .model vswitch1 modfas

      + (ron = 0.05, roff = 90meg,

      +  von = 1.0,    voff = 0)

      fsense 1 6 poly(2) vgs vas -1 0.666 0 66666 0 2.8e4

      rsense 6 1 1

      ea 7 1 poly(1) 3 1 0 0 0.0025

      ra 7 1 1

      vbr 8 1 1

      ytriacr  vswitch 8 5 7 1 model:vswitch2

      .model vswitch2 modfas

      + (ron = 0.001, roff = 10meg,

      +  von = 1608,  voff = 396)

      cr 6 1 0.1u

      .ends

       

      When I import a spice model from another triac the simulation is partly correct, issue is that triac does not ignite.

       

      I do not know how to deal with this problem. I have made several succesfull simulations with imported and included spice parts, most of them succefull.

      Any help would be appreciated.