Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/Thyristor.m4

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