Debian Codegraph @

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

raw
1 .PS
2 # Relay
3 cct_init
4
5 skip = 1.1
6
7 R1:relay
8 {"\sl V1" wid 0.16 rjust at last [].V1
9 "\sl V2" ljust at last [].V2
10 "\sl P1" rjust at last [].P1-(dotrad_,0)
11 "\sl O1" ljust at last [].O1
12 "\sl C1" ljust at last [].C1 }
13 S: `"\tt relay"' at last [].s+(0,-0.2)
14
15 R5:relay(2,CTh) with .sw at last [].sw+(skip,0)
16 { for_(1,2,1,`
17 "\sl P`'m4x" rjust at last [].P`'m4x-(dotrad_,0)
18 "\sl C`'m4x" ljust at last [].C`'m4x ') }
19 `"\tt (2,CTh)"' at (last [],S)
20
21 R4:relay(2,O) with .sw at last [].sw+(skip,0)
22 {for_(1,2,1,`
23 "\sl P1" rjust at last [].P1-(dotrad_,0)
24 "\sl O`'m4x" ljust at last [].O`'m4x ')}
25 `"\tt (2,O)"' at (last [],S)
26
27 R3:relay(2,PIAX) with .sw at last [].sw+(skip,0)
28 {"\sl V1" rjust at last [].V1
29 "\sl V2" rjust at last [].V2
30 for_(1,2,1,
31 `"\sl P`'m4x" rjust at last [].P`'m4x-(dotrad_,0)
32 "\sl O`'m4x" ljust at last [].O`'m4x+(dotrad_,0)
33 "\sl C`'m4x" ljust at last [].C`'m4x+(dotrad_,-2pt__) ') }
34 `"\tt (2,PIAX)"' at (last [],S)
35
36 R2:relay(2,R) with .sw at last [].sw+(skip,0)
37 {"\sl V1" rjust at last [].V1
38 "\sl V2" ljust at last [].V2
39 for_(1,2,1,
40 `"\sl P`'m4x" rjust at last [].P`'m4x-(dotrad_,0)
41 "\sl O`'m4x" ljust at last [].O`'m4x
42 "\sl C`'m4x" ljust at last [].C`'m4x ') }
43 `"\tt relay(2,R)"' at (last [],S)
44 .PE