| 1 |
.PS |
| 2 |
# MotorControl.m4 |
| 3 |
cct_init |
| 4 |
|
| 5 |
trad = 2.5*dotrad_ |
| 6 |
define(`bigterminal',`circle rad trad') |
| 7 |
|
| 8 |
mrad = linewid*2/3 |
| 9 |
Motor: circle rad mrad "iflatex({\sf) Motor iflatex(})" |
| 10 |
|
| 11 |
linethick = 2 |
| 12 |
T2: Motor.n+(0,dimen_/2) |
| 13 |
|
| 14 |
for i=1 to 3 do { |
| 15 |
if i==2 then { line from Motor.n to T2 } \ |
| 16 |
else { line from Motor right (i-2)*Motor.diam chop Motor.rad chop 0 \ |
| 17 |
then up T2.y-Motor.y } |
| 18 |
bigterminal |
| 19 |
cbreaker(up_ dimen_*3/4,,T) |
| 20 |
bigterminal |
| 21 |
line up_ dimen_ |
| 22 |
bigterminal |
| 23 |
capacitor(up_ dimen_*1.2,,,dimen_/3,dimen_/6) |
| 24 |
{ circle fill_(1) rad dotrad_*3/2 thick 0.8 \ |
| 25 |
at 0.25 between last line.end and last line.start } |
| 26 |
if i==1 then { L1: last circle } \ |
| 27 |
else { if i==2 then { L2: last circle }} |
| 28 |
bigterminal |
| 29 |
line up_ dimen_/4 |
| 30 |
} |
| 31 |
linethick_(0.8) |
| 32 |
C2: circle rad mrad/3 at Motor.n+ (0,dimen_*2) |
| 33 |
line from C2.e right_ dimen_/3 then up C2.rad*1.5 |
| 34 |
continue to (L1.x-dimen_/2,Here.y) |
| 35 |
{S23: capacitor(up_ dimen_*2/3,,,dimen_/3,dimen_/6); dot(,,1) } |
| 36 |
dot(,,1) |
| 37 |
line to (L1.x-dimen_*2,Here.y) chop dotrad_ chop 0 then up dimen_/3 |
| 38 |
S1: [ bswitch(right_ dimen_/2) ] with .Bsw_T1.s at Here |
| 39 |
S2: [ bswitch(right_ dimen_/2,,C) ] at S1+(0,-dimen_) |
| 40 |
line right dimen_/6 down dimen_/6 from S1.Bsw_T2.se \ |
| 41 |
then down S1.Bsw_T2.se.y-S2.Bsw_T2.ne.y-dimen_/3 \ |
| 42 |
then to S2.Bsw_T2.ne |
| 43 |
box wid S1.wid+dimen_/2 ht S1.n.y-S2.s.y+dimen_/3 \ |
| 44 |
at 0.5 between S1.s and S2.n |
| 45 |
line left dimen_/2 from S23.end chop dotrad_ chop 0 |
| 46 |
continue to (Here,S1.Bsw_T2) then to S1.Bsw_T2.e |
| 47 |
line from S2.Bsw_T1.w left dimen_/2 |
| 48 |
continue to (Here,L1) then to L1 chop 0 chop dotrad_ |
| 49 |
|
| 50 |
dot(at 0.5 between L1 and L2,,1) |
| 51 |
{ line to L2 chop dotrad_ } |
| 52 |
S45: variable(`capacitor(down_ dimen_*2/3 chop dotrad_ chop 0,,, |
| 53 |
dimen_/3,dimen_/6)',L,,dimen_/2); dot(,,1) |
| 54 |
line to (Here,C2) then to C2.w chop dotrad_ chop 0 |
| 55 |
|
| 56 |
.PE |