Debian Codegraph @

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

raw
1 .PS
2 # Three.m4: three-phase oscillator
3 cct_init
4
5 definergbcolor(Dandelion,0.825,0.825,0)
6 define(`section',`[ I: Here
7 resistor(right elen_*0.75); llabel(,R/2)
8 T: dot
9 line down dimen_/2 then right_ dimen_/4
10 Amp: opamp(,,,body=shaded "Dandelion") with .In1 at Here
11 line left dimen_/4 from Amp.In2 then down dimen_/4; G: ground
12 resistor(from T to (Amp.Out,T)); llabel(,R)
13 O: dot
14 { arrow up dimen_*0.5 then right dimen_/4 up dimen_/4
15 "$`$1^\circ'$" above }
16 line to Amp.Out
17 dot(at T+(dimen_/4,0)); line up dimen_*0.6
18 capacitor(right_ Amp.Out.x-Here.x-dimen_/4,C); llabel(,2C)
19 line to (Here,T); dot
20 ]')
21
22 A: section(0)
23 B: section(120) with .I at A.O
24 C: section(-120) with .I at B.O
25
26 ground(at (A.I,A.G)+(dimen_/3,0),,)
27 P:potentiometer(down_ dimen_/2,,0.75,dimen_/2) with .End at Here
28 line from P.Start to (A.I,P.Start); dot
29 resistor(up_ dimen_*0.75 from P.T1)
30 line to A.T
31
32 dot(at B.Amp.Out+(dimen_/3,0)); { "$V_c$" above }
33 resistor(down_ dimen_*0.75)
34 { dot; line right (C.T.x-Here.x)/2
35 reversed(`diode',up_ dimen_)
36 line to C.T }
37 resistor(down_ dimen_*0.75)
38 dot
39 line from C.O right dimen_/4 then down C.O.y-Here.y then to (A.I,Here) \
40 then to A.I
41 .PE