| 1 |
.PS |
| 2 |
# `ThyristorDPV.m4' |
| 3 |
cct_init(svg_font(sans-serif,11bp__,1.5bp__)) |
| 4 |
|
| 5 |
vL = 0.35; vS = 0.22; vv = vS |
| 6 |
define(`labels',`{ ifelse(`$8',,,vv = vS) |
| 7 |
ifelse(`$1',,,"svg_it(`$1')" `$2' at last[].`$1') |
| 8 |
ifelse(`$3',,,"svg_it(`$3')" `$4' at last[].`$3') |
| 9 |
ifelse(`$5',,,"svg_it(`$5')" `$6' at last[].`$5') |
| 10 |
ifelse(`$7',,,"svg_tt(`$7')" `$9' \ |
| 11 |
at (last[].s+(0,-vv`'ifelse(`$8',,,`+(`$8')'))) )} |
| 12 |
if vv == vS then { vv = vL } else { vv = vS } ') |
| 13 |
|
| 14 |
define(`Placed',`with .A at last [].A+(ifelse(`$1',,0.5,`$1'),0)') |
| 15 |
|
| 16 |
setdir_(D) |
| 17 |
Row1: [ |
| 18 |
SCR: thyristor(,SCR); labels(A,above,K,below,G,ljust,`(,SCR)',,wid 36bp__) |
| 19 |
thyristor(,SCRE) Placed; labels(A,above,K,below,G,ljust below,`(,SCRE)') |
| 20 |
thyristor(,SUS) Placed; labels(A,above,K,below,G,rjust,`(,SUS)') |
| 21 |
thyristor(,SUSK) Placed; labels(A,above,K,below,G,rjust,`(,SUSK)') |
| 22 |
thyristor(,SBS) Placed; labels(T1,above,T2,below,G,rjust,`(,SBS)') |
| 23 |
thyristor(,IEC) Placed; labels(A,above,K,below,G,ljust,`(,IEC)') |
| 24 |
thyristor(,GTO) Placed; labels(A,above,K,below,G,ljust,`(,GTO)') |
| 25 |
GTOE: thyristor(,GTOE) Placed; labels(A,above,K,below,G,ljust,`(,GTOE)') |
| 26 |
GTON: thyristor(,GTON) Placed; labels(A,above,K,below,Ga,rjust,`(,GTON)') |
| 27 |
thyristor(,GTS) Placed(0.4); labels(A,above,K,below,G,ljust,`(,GTS)') |
| 28 |
thyristor(,SCS) Placed(0.55) |
| 29 |
labels(A,above,K,below,G,ljust,`(,SCS)',0,wid 36bp__) |
| 30 |
{"svg_it(Ga)" rjust above at last[].Ga} |
| 31 |
] |
| 32 |
|
| 33 |
Row2: [ |
| 34 |
thyristor(,DIAC) ; labels(A,above,K,below,G,below ljust,`(,DIAC)',,wid 40bp__) |
| 35 |
DIAC2: thyristor(,DIAC2) Placed; labels(A,above,K,below,,ljust,`(,DIAC2)') |
| 36 |
{arrow <- thick 0.4 from DIAC2.G right_ dimen_/6 up_ dimen_/4 |
| 37 |
"svg_it(G)" above} |
| 38 |
down_; |
| 39 |
DIAC3: thyristor(,DIAC3) Placed(0.6);labels(A,above,K,below,G,below,`(,DIAC3)') |
| 40 |
ETO: thyristor(,ETO) Placed; labels(A,above,K,below,G,ljust,`(,ETO)') |
| 41 |
{"svg_it(Go)" rjust at ETO.Go} |
| 42 |
RCT: thyristor(,RCT) Placed; labels(A,above,K,below,G,rjust,`(,RCT)') |
| 43 |
RCTA: thyristor(,RCTA) Placed; labels(A,above,K,below,Ga,rjust,`(,RCTA)') |
| 44 |
MTO: thyristor(,MTO) Placed; labels(A,above,K,below,G,ljust,`(,MTO)') |
| 45 |
{"svg_it(Go)" rjust at MTO.Go} |
| 46 |
IGCT: thyristor(,IGCT) Placed; labels(A,above,K,below,G,ljust,`(,IGCT)') |
| 47 |
SIDAC: thyristor(,SIDAC) Placed ; labels(A,above,K,below,,ljust,`(,SIDAC)',0) |
| 48 |
thyristor(,B) Placed(0.4) ; labels(A,above,K,below,G,ljust,`(,B)',-0.16) |
| 49 |
thyristor(,V,G: G+(dimen_/5,dimen_/3)) Placed(0.4) |
| 50 |
labels(A,above,K,below,G,ljust,`(,V)',0) |
| 51 |
{thinlines_ |
| 52 |
line <- from last [].Gm.end to last [].G +(0,-4bp__) |
| 53 |
thicklines_} |
| 54 |
] with .nw at last [].sw + (0,-0.15) |
| 55 |
|
| 56 |
Row3: [ |
| 57 |
Sch:thyristor(,Sch) ; labels(A,above,K,below,G,ljust,`(,Sch)',-0.16,wid 34bp__) |
| 58 |
Sch2:thyristor(,Sch2) Placed(0.6) ; labels(A,above,K,below,G,rjust,`(,Sch2)',0) |
| 59 |
thyristor(,F) Placed(0.25); labels(A,above,K,below,G,ljust,`(,F)',0) |
| 60 |
thyristor(,N) Placed(0.45); labels(A,above,K,below,Ga,rjust,`(,N)',0) |
| 61 |
thyristor(,dC) Placed(0.45); labels(A,above,K,below,G,ljust,`(,dC)',0) |
| 62 |
thyristor(,dD) Placed(0.45); labels(A,above,K,below,G,ljust,`(,dD)',0) |
| 63 |
thyristor(,rb) Placed(0.45) ; labels(A,above,K,below,G,ljust,`(,rb)',0) |
| 64 |
thyristor(,H) Placed(0.45) ; labels(A,above,K,below,G,ljust,`(,H)',0) |
| 65 |
thyristor(,P) Placed(0.45) ; labels(A,above,K,below,G,ljust,`(,P)',0) |
| 66 |
thyristor(,S) Placed(0.45) ; labels(A,above,K,below,G,ljust,`(,S)',0) |
| 67 |
thyristor(,T) Placed(0.45) ; labels(A,above,K,below,G,ljust,`(,T)',0) |
| 68 |
thyristor(,X) Placed(0.45) ; labels(A,above,K,below,G,ljust,`(,X)',0) |
| 69 |
] with .nw at last [].sw + (0,-0.10) |
| 70 |
|
| 71 |
setdir_(R) |
| 72 |
Row4: [ |
| 73 |
T4: [{ Qs: scr(,K,Q) ; "svg_tt(`scr'(,K,Q))" ljust } |
| 74 |
{"svg_it(Q.G)" at Q.G above } |
| 75 |
|
| 76 |
move down 0.4; right_ |
| 77 |
{ Q2: scs(,,Q2) ; "svg_tt(`scs'(,,Q2))" ljust } |
| 78 |
{"svg_it(Q2.G)" at Q2.G above } |
| 79 |
{"svg_it(Q2.Ga)" at Q2.Ga below } |
| 80 |
] |
| 81 |
|
| 82 |
T5: [{Q3s: sus(,RE,Q3) ; "svg_tt(`sus'(,RE,Q3))" ljust} |
| 83 |
{"svg_it(Q3.G)" at Q3.G above } |
| 84 |
|
| 85 |
move down 0.4; right_ |
| 86 |
{ sbs(,E,Q4) ; "svg_tt(`sbs'(,E,Q4))" ljust} |
| 87 |
{"svg_it(Q4.G)" at Q4.G below } |
| 88 |
] with .Q3s.start at T4.Qs.end+(1.0,0) |
| 89 |
|
| 90 |
T6: [{Q5s: gto(,E,Q5) ; "svg_tt(`gto'(,E,Q5))" ljust} |
| 91 |
{"svg_it(Q5.G)" at Q5.G above ljust } |
| 92 |
|
| 93 |
move down 0.4; right_ |
| 94 |
{Q6s: gts(,RE,Q6) ; "svg_tt(`gts'(,RE,Q6))" ljust} |
| 95 |
{"svg_it(Q6.G)" at Q6.G below ljust} |
| 96 |
] with .Q5s.start at T5.Q3s.end+(1.2,0) |
| 97 |
] with .nw at last [].sw + (0,-0.10) |
| 98 |
|
| 99 |
command "</g>" # end font |
| 100 |
.PE |