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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
\documentclass[a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\input{etc.tex}
\begin{document}
\section*{NAND-Schaltpläne mit dem Paket \texttt{relaycircuit} erstellen}
\begin{lstlisting}[gobble=7,multicols=2,basicstyle=\footnotesize,caption={}]
\begin{tikzpicture}
\draw (0,6.8) node [left] {\(+\)}
-- (9,6.8);
\draw (0,0) node [left] {\(-\)}
-- (9,0);
\draw (4.5,0) to[short, *-]
(4.5,0) node [ground] {};
\draw (7.4,2.5) to[short,*-]
(7.5,2.5) to[lamp] (9,2.5)
node[ground] {};
\draw (2.5,5.8) node[arbeits
relais] (a1) {};
\draw (2.5,4) node[arbeits relais]
(a2) {};
\draw (2.4,6.8) to[short,*-]
(a1.anschluss);
\draw (a1.ausgabe) --
(a2.anschluss);
\draw (2.5,1) node[ruhe relais]
(r1) {};
\draw (a2.ausgabe) --
(r1.anschluss);
\draw (r1.ausgabe) to[short,-*]
(2.4,0);
\draw (5,1) node[ruhe relais]
(r2) {};
\draw (r2.ausgabe) to[short,-*]
(4.9,0);
\draw (7.5,1) node[arbeits relais]
(a3) {};
\draw (7.5,4) node[ruhe relais]
(r3) {};
\draw (a3.anschluss) --
(r3.ausgabe);
\draw (a3.ausgabe) to[short,-*]
(7.4,0);
\draw (r3.anschluss) to[short,-*]
(7.4,6.8);
\draw (2.4,2.5) to[short,*-*]
(4.9,2.5) -| (a3.eingabe);
\draw (r2.anschluss) |-
(r3.eingabe);
\draw (0,4.7) node [left] {A}
to[short,-*] (0.2,4.7)
-- (a2.eingabe);
\draw (0.2,4.7) |- (r1.eingabe);
\draw (0,2.1) node [left] {B}
to[short,-*] (0.4,2.1)
-| (r2.eingabe);
\draw (0.4,2.1) |- (a1.eingabe);
\end{tikzpicture}
\end{lstlisting}
\vspace{0.6cm}
\hrule width \textwidth
\vspace{1cm}
\scalebox{0.8}{
\begin{tikzpicture}
\draw (0,6.8) node [left] {\(+\)} -- (9,6.8);
\draw (0,0) node [left] {\(-\)} -- (9,0);
\draw (4.5,0) to[short, *-] (4.5,0) node [ground] {};
\draw (7.4,2.5) to[short,*-] (7.5,2.5) to[lamp] (9,2.5) node[ground] {};
\draw (2.5,5.8) node[arbeits relais] (a1) {};
\draw (2.5,4) node[arbeits relais] (a2) {};
\draw (2.4,6.8) to[short,*-] (a1.anschluss);
\draw (a1.ausgabe) -- (a2.anschluss);
\draw (2.5,1) node[ruhe relais] (r1) {};
\draw (a2.ausgabe) -- (r1.anschluss);
\draw (r1.ausgabe) to[short,-*] (2.4,0);
\draw (5,1) node[ruhe relais] (r2) {};
\draw (r2.ausgabe) to[short,-*] (4.9,0);
\draw (7.5,1) node[arbeits relais] (a3) {};
\draw (7.5,4) node[ruhe relais] (r3) {};
\draw (a3.anschluss) -- (r3.ausgabe);
\draw (a3.ausgabe) to[short,-*] (7.4,0);
\draw (r3.anschluss) to[short,-*] (7.4,6.8);
\draw (2.4,2.5) to[short,*-*] (4.9,2.5) -| (a3.eingabe);
\draw (r2.anschluss) |- (r3.eingabe);
\draw (0,4.7) node [left] {A} to[short,-*] (0.2,4.7) -- (a2.eingabe);
\draw (0.2,4.7) |- (r1.eingabe);
\draw (0,2.1) node [left] {B} to[short,-*] (0.4,2.1) -| (r2.eingabe);
\draw (0.4,2.1) |- (a1.eingabe);
\end{tikzpicture}
}
\end{document}
|