limo
Newbie level 3
circuitmaker lib
Hi,
Could someone help me to apply a varistor model in Circuitmaker 2000 ???
I found following models but I do not know how to change this syntax according to CM2000 spice syntax requirements (this is taken from SIEM.LIB file) ?
**********
*SRC=SIMENSVAR;SIMENSVAR;Varistors;Siemens;Generic Version
*SYM=MOV
.SUBCKT SIMENSVAR 1 2 {T=1 C=1pF L=1nH B1=10 B2=1 B3=0 B4=0}
X1 1 2 SIOV {T=T C=C L=L B1=B1 B2=B2 B3=B3 B4=B4}
.ENDS
*INCLUDE SIEMMOV.LIB
***********
*SRC=S14K14;S14K14;Varistors;Siemens;
*SYM=MOV
.SUBCKT S14K14 1 2 {TOL=0}
X1 1 2 SIOV {T=1+TOL/100 C=9000pF L=12.0nH B1=1.5028624 B2=0.0495676 B3=-0.0005627 B4=0.0146198}
.ENDS
*INCLUDE SIEMMOV.LIB
***********
.SUBCKT SIOV 1 2 {T=1 C=1p L=1n B1=10 B2=1 B3=0 B4=0}
R_SERIES 1 3 100u
L_SERIES 3 4 {L}
V_I_SENSE 4 5 0V
H_I_SENSE 6 0 V_I_SENSE 10k
*R_I_SENSE 6 0 1G
BE_VAR 5 2 V = {T} * (10^({B1} + {B2} * (LOG(V(BL1))-4) +
+ {B3} * EXP(-LOG(V(BL1))+4) + {B4} * EXP(LOG(V(BL1))-4)) -
+ 10^({B1} + {B2} * (LOG(-V(BL2))-4) +
+ {B3} * EXP(-LOG(-V(BL2))+4) + {B4} * EXP(LOG(-V(BL2))-4)) + V(Limitf))
BL3 BL1 0 V= V(6) < 1m ? 1m : V(6) > 100G ? 100G : V(6) ; = LIMIT(V(6),1m,100G)
BL4 BL2 0 V= V(6) < -100G ? -100G : V(6) > -1m ? -1m : V(6) ; = LIMIT(V(6),-100G,-1m)
BLf Limitf 0 V= V(6) * 1k * V(7) < -V(7) ? -V(7) : V(6) * 1k * V(7) > V(7) ? V(7) : V(6) * 1k * V(7) ; = LIMIT((V(6) * 1k * V(7)),-V(7),V(7)))
* Old model syntax *
*BE_VAR 5 2 V = {T} * (PWR(10,{B1}+{B2} * (LOG10(LIMIT(V(6),1m,100G))-4) +
*+ {B3} * EXP(-LOG10(LIMIT(V(6),1m,100G))+4) + B4 * EXP(LOG10(LIMIT(V(6),1m,100G))-4))
*+ - PWR(10,{B1}+{B2}*(LOG10(-LIMIT(V(6),-100G,-1m))-4) +
*+ {B3} * EXP(-LOG10(-LIMIT(V(6),-100G,-1m))+4) + {B4} * EXP(LOG10(-LIMIT(V(6),-100G,-1m))-4))
*+ LIMIT((V(6) * 1k * V(7)),-V(7),V(7)))
C_PAR 4 2 {C}
BE_SW 7 0 V= V(999) * 10^({B1} + {B2} * (-7) + {B3} * EXP(7) + {B4} * EXP(-7))
V_SW 999 0 1
*R_SW 7 0 1G
.ENDS
*INCLUDE SIEMMOV.LIB
**********
Example of CM2000 Zener diode model (I think the easiest way is to put varistor model to this part for example):
*9.1V 1000mW Si pkg:SOD-123 1,2
.SUBCKT XMMSZ9V1T1 1 2
* TERMINALS: A K
D1 1 2 DF
DZ 3 1 DR
VZ 2 3 8.578
.MODEL DF D (IS=1.8E-91 RS=42M N=1.7 CJO=79.4P VJ=0.75 M=0.33 TT=50.1N)
.MODEL DR D (IS=365N RS=4.5 N=2)
.ENDS XMMSZ9V1T1
Thx,
Hi,
Could someone help me to apply a varistor model in Circuitmaker 2000 ???
I found following models but I do not know how to change this syntax according to CM2000 spice syntax requirements (this is taken from SIEM.LIB file) ?
**********
*SRC=SIMENSVAR;SIMENSVAR;Varistors;Siemens;Generic Version
*SYM=MOV
.SUBCKT SIMENSVAR 1 2 {T=1 C=1pF L=1nH B1=10 B2=1 B3=0 B4=0}
X1 1 2 SIOV {T=T C=C L=L B1=B1 B2=B2 B3=B3 B4=B4}
.ENDS
*INCLUDE SIEMMOV.LIB
***********
*SRC=S14K14;S14K14;Varistors;Siemens;
*SYM=MOV
.SUBCKT S14K14 1 2 {TOL=0}
X1 1 2 SIOV {T=1+TOL/100 C=9000pF L=12.0nH B1=1.5028624 B2=0.0495676 B3=-0.0005627 B4=0.0146198}
.ENDS
*INCLUDE SIEMMOV.LIB
***********
.SUBCKT SIOV 1 2 {T=1 C=1p L=1n B1=10 B2=1 B3=0 B4=0}
R_SERIES 1 3 100u
L_SERIES 3 4 {L}
V_I_SENSE 4 5 0V
H_I_SENSE 6 0 V_I_SENSE 10k
*R_I_SENSE 6 0 1G
BE_VAR 5 2 V = {T} * (10^({B1} + {B2} * (LOG(V(BL1))-4) +
+ {B3} * EXP(-LOG(V(BL1))+4) + {B4} * EXP(LOG(V(BL1))-4)) -
+ 10^({B1} + {B2} * (LOG(-V(BL2))-4) +
+ {B3} * EXP(-LOG(-V(BL2))+4) + {B4} * EXP(LOG(-V(BL2))-4)) + V(Limitf))
BL3 BL1 0 V= V(6) < 1m ? 1m : V(6) > 100G ? 100G : V(6) ; = LIMIT(V(6),1m,100G)
BL4 BL2 0 V= V(6) < -100G ? -100G : V(6) > -1m ? -1m : V(6) ; = LIMIT(V(6),-100G,-1m)
BLf Limitf 0 V= V(6) * 1k * V(7) < -V(7) ? -V(7) : V(6) * 1k * V(7) > V(7) ? V(7) : V(6) * 1k * V(7) ; = LIMIT((V(6) * 1k * V(7)),-V(7),V(7)))
* Old model syntax *
*BE_VAR 5 2 V = {T} * (PWR(10,{B1}+{B2} * (LOG10(LIMIT(V(6),1m,100G))-4) +
*+ {B3} * EXP(-LOG10(LIMIT(V(6),1m,100G))+4) + B4 * EXP(LOG10(LIMIT(V(6),1m,100G))-4))
*+ - PWR(10,{B1}+{B2}*(LOG10(-LIMIT(V(6),-100G,-1m))-4) +
*+ {B3} * EXP(-LOG10(-LIMIT(V(6),-100G,-1m))+4) + {B4} * EXP(LOG10(-LIMIT(V(6),-100G,-1m))-4))
*+ LIMIT((V(6) * 1k * V(7)),-V(7),V(7)))
C_PAR 4 2 {C}
BE_SW 7 0 V= V(999) * 10^({B1} + {B2} * (-7) + {B3} * EXP(7) + {B4} * EXP(-7))
V_SW 999 0 1
*R_SW 7 0 1G
.ENDS
*INCLUDE SIEMMOV.LIB
**********
Example of CM2000 Zener diode model (I think the easiest way is to put varistor model to this part for example):
*9.1V 1000mW Si pkg:SOD-123 1,2
.SUBCKT XMMSZ9V1T1 1 2
* TERMINALS: A K
D1 1 2 DF
DZ 3 1 DR
VZ 2 3 8.578
.MODEL DF D (IS=1.8E-91 RS=42M N=1.7 CJO=79.4P VJ=0.75 M=0.33 TT=50.1N)
.MODEL DR D (IS=365N RS=4.5 N=2)
.ENDS XMMSZ9V1T1
Thx,