Debian Codegraph @

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

raw
1 .PS
2 # PS50.m4
3 # See Horowitz and Hill Fig 9.49 p. 630
4 cct_init
5 command "{\small"
6
7 # pconnex(U,PF)
8
9 h = dimen_*2.5
10 T: dot
11 Cs: capacitor(down_ h/2)
12 llabel(,"$C_s$" ljust "$0.1{-}\SI{1}{\micro\farad}$" ljust)
13 dot; { line right_ dimen_*3/4; ground(,,F) }
14 Rs: resistor(down_ Cs.len)
15 llabel(,"$R_s$" ljust "$\SI{10}{\ohm}{-}$" ljust "\SI{100}{\ohm}" ljust)
16 B: dot
17 Br: [ size=dimen_/2; W: dot;
18 { diode(to Here+(size, size)); N: dot
19 diode(to Here+( size,-size)); E: dot }
20 diode(to Here+( size,-size)); S: dot; diode(to E)
21 box thick 0.4 dashed wid 3*size ht 3*size with .c at 0.5 between N and S
22 "\scriptsize GBU604" at last box.n above rjust ] \
23 with .W at Cs.end+(dimen_*3/2,0)
24 line from Br.N to (Br.N,T) then left Br.N.x-Cs.x+dimen_*3/4
25 { line from (Here,B) to (Br.S,B) then to Br.S }
26 T80: transformer(up_ h,,,W) with .P2 at Here
27 "\SI{115}{\volt}:\SI{80}{V} CT" at T80+(-dimen_/4,-h/2-dimen_/3) \
28 "\SI{4}{\ampere}"
29
30 line from Br.E right dimen_/2 then up T.y-Br.E.y then right_ dimen_*2/3
31 dot; {C1: capacitor(down_ Cs.len+dimen_/3,C+); rlabel(,C_1)
32 dot; C2: capacitor(down_ C1.len,C+); rlabel(,C_2); dot}
33 {"$2$ $\times$ \SI{8200}{\micro\farad}" at C1.start+(0,dimen_/2) \
34 "\SI{80}{\volt}dc" }
35 {line right_ dimen_*3/2
36 P50: dot(,dotrad_*3/2,1)
37 "${+}\SI{50}{\volt}$" wid 29bp__ at last [].e ljust \
38 "\SI{2}{\ampere}" ljust }
39 dot(at 1/2 between Here and P50)
40 R2: resistor(down_ C1.len)
41 llabel(,"$R_2$" ljust "$680$" ljust "\SI{5}{\watt}" ljust)
42 {dot; line to (C1,Here)}
43 {line to (P50,Here); dot(,dotrad_*3/2,1)
44 "\scriptsize COM" at last [].e ljust}
45 R3: resistor(down_ C2.len)
46 llabel(,"$R_3$" ljust "$680$" ljust "\SI{5}{\watt}" ljust); dot
47 {line to (P50,Here); dot(,dotrad_*3/2,1);
48 "${-}\SI{50}{\volt}$" at last [].e ljust "\SI{2}{\ampere}" ljust }
49 line left_ Here.x-Br.W.x+dimen_/2; continue to (Here,Br.W) then to Br.W
50 line from T80.TP right_ (Rs.x-T80.TP.x)/2 \
51 then down_ T80.TP.y-B.y + (B.y-C2.end.y)/2
52 continue to (Br.E+(dimen_/2,0),Here)
53 continue to (Here,C2.start) then to C2.start
54 dot(at (T80.S2,T)-(dimen_*4/3,0))
55 { line from (T80.S2,T) to Here-(dimen_/2,0)
56 line dashed to Here-(dimen_/2,0) chop dimen_/10; In1: Here }
57 { line from (T80.S2,B) to (Here-(dimen_/2,0),B)
58 line dashed to Here-(dimen_/2,0) chop dimen_/10; In2: Here}
59 F2: fuse(down_ h/2,D)
60 llabel(,"$F_2$" ljust "\SI{100}{\celsius}" ljust "cutout" ljust)
61 MOV: ebox(down_ to (Here,B))
62 variable(,uNN,,dimen_/2)
63 "\scriptsize MOV" at last [].e ljust \
64 "$130\hbox{V}_{\hbox{\scriptsize ac}}$" ljust "\scriptsize S20K130" ljust
65 { arc dashed from 3rd last [].w-(2bp__,0) to 2nd last [].w-(2bp__,0) \
66 rad dimen_ }
67 dot(at MOV.end)
68
69 SB: In1+(dimen_*4,dimen_/2)
70 ST: SB+(0,h)
71 T880: transformer(right_ dimen_*7/8,,,WD1) at (ST+SB)/2-(2*dimen_,0)
72 line from T880.P2 to (T880.P2,SB) then to SB; dot(,dotrad_*3/2,1)
73 line from T880.S2 to (T880.S2,ST) then to ST; dot(,dotrad_*3/2,1)
74 line dashed from ST.e right_ dimen_/2 chop dimen_/10
75 line dashed from SB.e right_ dimen_/2 chop dimen_/10
76 dot(at (T880.P2,ST)+(dimen_,0))
77 Cy: capacitor(down_ h/2); rlabel(C_y,,\SI{2.2}{\nano\farad}); dot
78 {line right_ dimen_/3; ground(,,F)}
79 capacitor(down_ to (Here,SB)); rlabel(C_y,,\SI{2.2}{\nano\farad}); dot
80 Socket: pconnex(U,PF) at T880.w-(dimen_*3.5,0)
81 line right_ dimen_/2 from Socket.G.e; ground(,,F)
82 line from Socket.H.n to (Socket.H.n,ST);
83 F1: fuse(right_ dimen_,D); llabel(,"F1"); rlabel(,"\SI{6}{\ampere} SB")
84 TS: lswitch(right_ dimen_*3/4,,D); { line to (T880.S1,Here) then to T880.S1 }
85 dot(at Here+(dimen_/2,0))
86 { R1: resistor(down_ to (Here,SB)); rlabel(,"$R_1$" rjust \
87 "\SI{1}{\mega\ohm}" rjust); dot }
88 dot(at Here+(dimen_/2,0))
89 Cx: capacitor(down_ to (Here,SB)); llabel(C_{\hbox{\scriptsize x}},,
90 \SI{100}{\nano\farad}); dot
91 line from Socket.N.s to (Socket.N.s,SB) then to (TS.start,SB)
92 BS: lswitch(right_ TS.len,,D); { line dashed from TS to BS chop dimen_/3 }
93 line to (T880.P1,Here) then to T880.P1
94 "Qualtek 880-06/006" at Cx.start+(dimen_/2,dimen_/4)
95
96 command "}%"
97 .PE