summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/svg/RelaySVG.m4
blob: df633176b0184c32e8e31d08b0d6d8d9dbd87771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.PS
# `Relay.m4'
cct_init(svg_font(sans-serif,11bp__))
 
{contact
 {`"contact"' wid 0.8 at last [].s+(0,-0.2)
  "svg_it(P)" rjust at last [].P.w
  "svg_it(O)" ljust at last [].O
  "svg_it(C)" ljust at last [].C }
 move right_ 1.0; contact(R,)
 {`"contact(,R)"' at last [].s+(0,-0.2)
  "svg_it(P)" rjust at last [].P.w
  "svg_it(O)" ljust at last [].O
  "svg_it(C)" ljust at last [].C }
 move right_ 1.0; contact(P)
 {`"contact(P)"' at last [].s+(0,-0.2)
  "svg_it(P)" rjust at last [].P.w
  "svg_it(O)" ljust at last [].O
  "svg_it(C)" ljust at last [].C }
 move right_ 1.0; contact(O,); {`"contact(O,)"' at last [].s+(0,-0.2)}
 move right_ 1.0; contact(C,); {`"contact(C,)"' at last [].s+(0,-0.2)}
}
move down 0.8
right_
{contact(I)
 {`"contact(I)"' at last [].s+(0,-0.2)
  "svg_it(P)" rjust at last [].P.w
  "svg_it(O)" ljust at last [].O.e
  "svg_it(C)" ljust at last [].C.e }
 move right_ 1.0; contact(RI)
 {`"contact(RI)"' at last [].s+(0,-0.2)
  "svg_it(P)" rjust at last [].P.w
  "svg_it(O)" ljust at last [].O.e
  "svg_it(C)" ljust at last [].C.e }
 move right_ 1.0; contact(PI)
 {`"contact(PI)"' at last [].s+(0,-0.2)
  "svg_it(P)" rjust at last [].P.w
  "svg_it(O)" ljust at last [].O.e
  "svg_it(C)" ljust at last [].C.e }
 move right_ 1.0; contact(OI); {`"contact(OI)"' at last [].s+(0,-0.2)}
 move right_ 1.0; contact(CI); {`"contact(CI)"' at last [].s+(0,-0.2) wid 1}
}
move down 1.3
right_
{
relay
 {"svg_it(V1)" rjust at last [].V1
  "svg_it(V2)" ljust at last [].V2
  "svg_it(P1)" rjust at last [].P1.w
  "svg_it(O1)" ljust at last [].O1
  "svg_it(C1)" ljust at last [].C1 }
`"relay"' at last [].s+(0,-0.2)
relay(2) with .sw at last [].sw+(1.2,0)
 {"svg_it(V1)" rjust at last [].V1
  "svg_it(V2)" ljust at last [].V2
  "svg_it(P1)" rjust at last [].P1.w
  "svg_it(O1)" ljust at last [].O1
  "svg_it(C1)" ljust below at last [].C1
  "svg_it(P2)" rjust at last [].P2.w
  "svg_it(O2)" ljust at last [].O2
  "svg_it(C2)" ljust at last [].C2 }
`"relay(2)"' at last [].s+(0,-0.2)
relay(2,RPI) with .sw at last [].sw+(1.2,0)
 {"svg_it(V1)" rjust at last [].V1
  "svg_it(V2)" ljust at last [].V2
  "svg_it(P1)" rjust at last [].P1.w
  "svg_it(O1)" wid 0.2 ljust at last [].O1.e
  "svg_it(C1)" wid 0.2 ljust at last [].C1.e+(0,2pt__)
  "svg_it(P2)" rjust at last [].P2.w
  "svg_it(O2)" wid 0.2 ljust at last [].O2.e+(0,-2pt__)
  "svg_it(C2)" wid 0.2 ljust at last [].C2.e }
`"relay(2,RIP)"' at last [].s+(0,-0.2)
relay(2,O) with .sw at last [].sw+(1.2,0)
`"relay(2,O)"' at last [].s+(0,-0.2)
relay(2,CT) with .sw at last [].sw+(1.2,0)
`"relay(2,CT)"' at last [].s+(0,-0.2)
}

 command "</g>" # end font
.PE