| 1 |
.PS |
| 2 |
# pwrsupply.m4 |
| 3 |
cct_init |
| 4 |
ifdef(`m4pco',`resetrgb') |
| 5 |
|
| 6 |
ifelse(0,1,` |
| 7 |
Singlephase:[ |
| 8 |
linewid = linewid*1.2 |
| 9 |
down_ |
| 10 |
T:transformer |
| 11 |
line left_ elen_/8 from T.P1 |
| 12 |
rgbdraw(0,0,1,fuse(left_ elen_/3,D)) |
| 13 |
reversed(`switch',left_ elen_*2/3) |
| 14 |
gap(down_ to (Here,T.P2)) |
| 15 |
{ fuse(right_ 2*dimen_/5 at last []) } |
| 16 |
line to T.P2 |
| 17 |
blen = dimen_/2 |
| 18 |
W: T.TS+(dimen_/2,0) |
| 19 |
N: W+(blen,blen) |
| 20 |
S: W+(blen,-blen) |
| 21 |
E: S+(blen,blen) |
| 22 |
diode(from W to N) |
| 23 |
diode(from S to E) |
| 24 |
G: gap(from E+(dimen_,0) down_ (E.y-S.y)*5/4); llabel(+,,-) |
| 25 |
C: capacitor(down_ G.start.y-G.end.y from 0.5 between E and G.start,C) |
| 26 |
|
| 27 |
setrgb(255,0,0) |
| 28 |
line from T.S1 to (T.S1,N); line to N |
| 29 |
dot |
| 30 |
diode(to E); dot |
| 31 |
line from E to G.start; dot |
| 32 |
dot(at C.start) |
| 33 |
resetrgb |
| 34 |
|
| 35 |
setrgb(0,255,0,,D) |
| 36 |
dot(at C.end) |
| 37 |
dot(at G.end) |
| 38 |
ground |
| 39 |
line to (W,Here); line to W; dot |
| 40 |
diode(to S); dot |
| 41 |
line to (T.S2,Here); line to T.S2 |
| 42 |
resetrgb |
| 43 |
] |
| 44 |
|
| 45 |
Threephase: [ |
| 46 |
L:[ loadht = 2*elen_ |
| 47 |
Load: ebox(down_ loadht,0.4,0.25); llabel(+,,-) |
| 48 |
hsep = dimen_*3/4 |
| 49 |
for_(1,3,1, |
| 50 |
`line left_ hsep; ifelse(m4x,3,,dot) |
| 51 |
{ diode(up_ loadht/3) ; line up_ loadht/3; diode(up_ loadht/3) |
| 52 |
T`'m4x: ifelse(m4x,3,Here,dot) |
| 53 |
line right hsep } ') |
| 54 |
] |
| 55 |
|
| 56 |
T:[ |
| 57 |
X1: transformer(down_ dimen_*2/3,,,,4) |
| 58 |
X2: transformer(down_ dimen_*2/3,,,,4) with .P1 at X1.P2 |
| 59 |
X3: transformer(down_ dimen_*2/3,,,,4) with .P1 at X2.P2 |
| 60 |
line from X1.M4Core1.end to X3.M4Core1.start |
| 61 |
line from X1.M4Core2.end to X3.M4Core2.start |
| 62 |
for_(1,3,1, |
| 63 |
`move to X`'m4x.P2 ; ifelse(m4x,3,,dot) |
| 64 |
line left_ dimen_ |
| 65 |
P`'m4x: dot(,,1)') |
| 66 |
line left_ dimen_/2 from X1.P1 then down X1.P1.y-P3.y; dot |
| 67 |
B: X1.S2+(dimen_/2,0) |
| 68 |
line from X1.S1 right B.x-X1.S2.x then down X1.S1.y-X3.S1.y then to X3.S1 |
| 69 |
line from X2.S1 to (B,X2.S1); dot |
| 70 |
] with .X2.S2 at L.w-(dimen_,0) |
| 71 |
|
| 72 |
line from T.X1.S2 to (L.T3,T.X1.S2); dot |
| 73 |
line from T.X2.S2 to (L.T2,T.X2.S2); dot |
| 74 |
line from T.X3.S2 to (L.T1,T.X3.S2); dot |
| 75 |
] with .sw at Singlephase.se+(0.3,0) |
| 76 |
') |
| 77 |
|
| 78 |
|
| 79 |
#.PE |
| 80 |
#.PS |
| 81 |
# PS50.m4 |
| 82 |
# Fig 9.49 p. 630 |
| 83 |
#cct_init |
| 84 |
|
| 85 |
PS50: [ |
| 86 |
svg_font(sans-serif,9bp__) |
| 87 |
|
| 88 |
h = dimen_*2.5 |
| 89 |
T: dot |
| 90 |
Cs: capacitor(down_ h/2) |
| 91 |
llabel(,"C`'svg_sub(s)" ljust "0.1-1`'svg_micro`'F" ljust) |
| 92 |
dot; { line right_ dimen_*3/4; ground(,,F) } |
| 93 |
Rs: resistor(down_ Cs.len) |
| 94 |
llabel(,"R`'svg_sub(s)" ljust "10`'svg_ohm-" ljust "100`'svg_ohm" ljust) |
| 95 |
B: dot |
| 96 |
Br: [ size=dimen_/2 |
| 97 |
N: dot; E: dot(at N+(size,-size)) |
| 98 |
W: dot(at N+(-size,-size)); S: dot(at W+(size,-size)) |
| 99 |
diode(from N to E); diode(from W to N) |
| 100 |
diode(from W to S); diode(from S to E) |
| 101 |
thinlines_ |
| 102 |
box dashed wid 3*size ht 3*size with .c at 0.5 between N and S |
| 103 |
"GBU604" at last box.n above rjust ] with .W at Cs.end+(dimen_*3/2,0) |
| 104 |
line from Br.N to (Br.N,T) then left Br.N.x-Cs.x+dimen_*3/4 |
| 105 |
{ line from (Here,B) to (Br.S,B) then to Br.S } |
| 106 |
T80: transformer(up_ h,,,W) with .P2 at Here |
| 107 |
"115 V:80 V CT" at T80+(-dimen_/4,-h/2-dimen_/3) "4 A" |
| 108 |
|
| 109 |
line from Br.E right dimen_/2 then up T.y-Br.E.y then right_ dimen_*2/3 |
| 110 |
dot; {C1: capacitor(down_ Cs.len+dimen_/3,C+); rlabel(,C`'svg_sub(1)) |
| 111 |
dot; C2: capacitor(down_ C1.len,C+); rlabel(,C`'svg_sub(2)); dot} |
| 112 |
{"2 x 8200`'svg_micro`'F" \ |
| 113 |
at C1.start+(0,dimen_/2) "80 Vdc" } |
| 114 |
{line right_ dimen_*3/2 |
| 115 |
P50: dot(,dotrad_*3/2,1) |
| 116 |
"+50 V" at last [].e ljust "2 A" ljust } |
| 117 |
dot(at 1/2 between Here and P50) |
| 118 |
R2: resistor(down_ C1.len) |
| 119 |
llabel(,"R`'svg_sub(2)" ljust "680" ljust "5 W" ljust) |
| 120 |
{dot; line to (C1,Here)} |
| 121 |
{line to (P50,Here); dot(,dotrad_*3/2,1) |
| 122 |
"COM" wid 24bp__ at last [].e ljust} |
| 123 |
R3: resistor(down_ C2.len) |
| 124 |
llabel(,"R`'svg_sub(3)" ljust "680" ljust "5 W" ljust); dot |
| 125 |
{line to (P50,Here); dot(,dotrad_*3/2,1); |
| 126 |
"-50 V" at last [].e ljust "2 A" ljust } |
| 127 |
line left_ Here.x-Br.W.x+dimen_/2; continue to (Here,Br.W) then to Br.W |
| 128 |
line from T80.TP right_ (Rs.x-T80.TP.x)/2 \ |
| 129 |
then down_ T80.TP.y-B.y + (B.y-C2.end.y)/2 |
| 130 |
continue to (Br.E+(dimen_/2,0),Here) |
| 131 |
continue to (Here,C2.start) then to C2.start |
| 132 |
dot(at (T80.S2,T)-(dimen_*4/3,0)) |
| 133 |
{ line from (T80.S2,T) to Here-(dimen_/2,0) |
| 134 |
line dashed to Here-(dimen_/2,0) chop dimen_/10; In1: Here } |
| 135 |
{ line from (T80.S2,B) to (Here-(dimen_/2,0),B) |
| 136 |
line dashed to Here-(dimen_/2,0) chop dimen_/10; In2: Here} |
| 137 |
F2: fuse(down_ h/2,D) |
| 138 |
llabel(,"F`'svg_sub(2)" ljust "100 svg_deg`'C" ljust "cutout" ljust) |
| 139 |
MOV: ebox(down_ to (Here,B)) |
| 140 |
"MOV" at last [].e ljust "130 Vac" ljust "S20K130" ljust |
| 141 |
variable(,uNN,,dimen_/2) |
| 142 |
{ arc dashed from 3rd last [].w-(2bp__,0) to 2nd last [].w-(2bp__,0) \ |
| 143 |
rad dimen_ } |
| 144 |
dot(at MOV.end) |
| 145 |
|
| 146 |
#SB: In1+(dimen_*4,dimen_/2) |
| 147 |
#ST: SB+(0,h) |
| 148 |
SB: In2 |
| 149 |
ST: In1 |
| 150 |
T880: transformer(right_ dimen_*7/8,,,WD1) at (ST+SB)/2-(2*dimen_,0) |
| 151 |
line from T880.P2 to (T880.P2,SB) then to SB; dot(,dotrad_*3/2,1) |
| 152 |
line from T880.S2 to (T880.S2,ST) then to ST; dot(,dotrad_*3/2,1) |
| 153 |
line dashed from ST.e right_ dimen_/2 chop dimen_/10 |
| 154 |
line dashed from SB.e right_ dimen_/2 chop dimen_/10 |
| 155 |
dot(at (T880.P2,ST)+(dimen_,0)) |
| 156 |
Cy: capacitor(down_ h/2); rlabel(C`'svg_sub(y),,2.2 nF); dot |
| 157 |
{line right_ dimen_/3; ground(,,F)} |
| 158 |
capacitor(down_ to (Here,SB)); rlabel(C`'svg_sub(y),,2.2 nF); dot |
| 159 |
Socket: pconnex(U,PF) at T880.w-(dimen_*3.5,0) |
| 160 |
line right_ dimen_/2 from Socket.G.e; ground(,,F) |
| 161 |
line from Socket.H.n to (Socket.H.n,ST); |
| 162 |
F1: fuse(right_ dimen_,D); llabel(,"F1"); rlabel(,"6 A SB") |
| 163 |
TS: lswitch(right_ dimen_*3/4,,D); { line to (T880.S1,Here) then to T880.S1 } |
| 164 |
dot(at Here+(dimen_/2,0)) |
| 165 |
{ R1: resistor(down_ to (Here,SB)); rlabel(,"R`'svg_sub(1)" rjust \ |
| 166 |
"1 M`'svg_ohm" rjust); dot } |
| 167 |
dot(at Here+(dimen_/2,0)) |
| 168 |
Cx: capacitor(down_ to (Here,SB)); llabel(C`'svg_sub(x),,100 nF); dot |
| 169 |
line from Socket.N.s to (Socket.N.s,SB) then to (TS.start,SB) |
| 170 |
BS: lswitch(right_ TS.len,,D); { line dashed from TS to BS chop dimen_/3 } |
| 171 |
line to (T880.P1,Here) then to T880.P1 |
| 172 |
"Qualtek 880-06/006" at Cx.start+(dimen_/2,dimen_/4) |
| 173 |
|
| 174 |
command "</g>" |
| 175 |
] #with .nw at Singlephase.sw+(0,-0.2) |
| 176 |
|
| 177 |
.PE |