%!TEX TS-program = pdflatex
\documentclass[12pt,ngerman,tikz]{standalone}
\begin{document}
\begin{tikzpicture}[red,draw=red, fill=red]
% a plug
\newcommand{\plug}[2]{% three circles, inner one is filled
\fill (#1,#2) circle (0.1875cm);
\draw (#1,#2) circle (0.28cm);
\draw (#1,#2) circle (0.42cm);
}
% buttons
\newcommand{\button}[2]{% three circles, inner one is filled
\fill (#1,#2) circle (0.5cm);
\fill[white] (#1,#2) circle (0.4cm);
}
% a plug with a label above
\newcommand{\labelplug}[3]{%
\fill (#1,#2) circle (0.1875cm);
\draw (#1,#2) circle (0.28cm);
\draw (#1,#2) circle (0.42cm);
\node[above=0.35cm,font=\sffamily\bfseries\scriptsize] at (#1,+#2) {#3};
}
% \knob{x}{y}{size}{angle}
\newcommand{\knob}[4]{%
\pgfmathsetmacro{\radius}{#3}%
\pgfmathsetmacro{\reduced}{\radius * 0.8}%
\pgfmathsetmacro{\tikzAngle}{90 - #4}%
\draw[thick, fill=white!30] (#1,#2) circle (\radius cm);
\draw[line width=2pt, red] (#1,#2) -- ++(\tikzAngle:\reduced cm);
}
% plug with label and led, in a frame
\newcommand{\labelplugled}[3]{%
\fill (#1,#2) circle (0.1875cm);
\draw (#1,#2) circle (0.28cm);
\draw (#1,#2) circle (0.42cm);
\node[above=0.35cm,font=\sffamily\bfseries\scriptsize] at (#1,#2) {#3};
\draw[rounded corners=2pt]
(#1-0.5, #2-0.5)
rectangle
(#1+0.5, {#2+1.2});
\draw (#1,#2+0.945) circle (0.1cm);
}
% plug with label but no led, in a frame
\newcommand{\labelplugnoled}[3]{%
\fill (#1,#2) circle (0.1875cm);
\draw (#1,#2) circle (0.28cm);
\draw (#1,#2) circle (0.42cm);
\node[above=0.35cm,font=\sffamily\bfseries\scriptsize] at (#1,#2) {#3};
\draw[rounded corners=2pt]
(#1-0.5, #2-0.5)
rectangle
(#1+0.5, {#2+1.2});
}
% Screenshot from the manual, in the background
%\node[anchor=north west ,inner sep=0] (frame1) at (1,13) {\includegraphics[width=10cm]{2025-09-20 04 09 06.png}};
% grid
\draw[help lines,red] (0,0) grid (13,14);
\draw[very thick, rounded corners=2pt](1,0.35) rectangle (11,13);
\labelplug{1.75}{11.5}{IN 1};
\labelplug{2.85}{11.5}{TRIG 1};
\labelplug{5.45}{11.5}{IN 2};
\labelplug{6.55}{11.5}{IN 3};
\labelplug{9.175}{11.5}{TRIG 4};
\labelplug{10.25}{11.5}{IN 4};
\plug{1.75}{10.2};
\plug{1.75}{9};
\plug{1.75}{7.9};
\plug{1.75}{6.55};
\plug{10.25}{10.2};
\plug{10.25}{9};
\plug{10.25}{7.9};
\plug{10.25}{6.55};
\labelplugled{1.75}{1.8}{EOR};
\labelplugled{2.9}{1.8}{$\smallint$};
\labelplugnoled{4.9}{1.8}{OR};
\labelplugled{6}{1.8}{SUM};
\labelplugnoled{7.1}{1.8}{INV};
\labelplugled{9.14}{1.8}{$\smallint$};
\labelplugled{10.25}{1.8}{EOC};
\labelplugnoled{4.25}{3.6}{OUT 1};
\labelplugnoled{5.4}{3.6}{OUT 2};
\labelplugnoled{6.55}{3.6}{OUT 3};
\labelplugnoled{7.7}{3.6}{OUT 4};
\knob{3.5}{10.2}{0.7}{0}
\knob{8.5}{10.2}{0.7}{0}
\knob{3.5}{7.9}{0.7}{0}
\knob{8.5}{7.9}{0.7}{0}
\knob{3.5}{5.7}{0.7}{0}
\knob{8.5}{5.7}{0.7}{0}
\knob{5}{9}{0.35}{0}
\knob{7}{9}{0.35}{0}
\knob{5}{6.75}{0.35}{0}
\knob{7}{6.75}{0.35}{0}
\button{2.3}{4.15}
\button{9.7}{4.15}
\node at (5,9.6){\sffamily\bfseries\footnotesize1};
\node at (7,9.6){\sffamily\bfseries\footnotesize4};
\node at (5,7.35){\sffamily\bfseries\footnotesize2};
\node at (7,7.35){\sffamily\bfseries\footnotesize4};
\node at (4.75,8.5){\sffamily\bfseries--};
\node at (5.3,8.5){\sffamily\bfseries+};
\node at (4.75,6.25){\sffamily\bfseries--};
\node at (5.3,6.25){\sffamily\bfseries+};
\node at (6.75,8.5){\sffamily\bfseries--};
\node at (7.3,8.5){\sffamily\bfseries+};
\node at (6.75,6.25){\sffamily\bfseries--};
\node at (7.3,6.25){\sffamily\bfseries+};
\draw[very thick] (3.4,11.5) -- (3.95,11.5) -- (5,10.5) -- (5,9.8);
\draw[very thick] (8.7,11.5) -- (8.1,11.5) -- (7,10.5) -- (7,9.8);
\draw[very thick] (5.45,10.85) -- (5.7,10.6) -- (5.7,7.5) -- (5.3,7.1);
\draw[very thick] (6.55,10.85) -- (6.3,10.6) -- (6.3,7.5) -- (6.7,7.1);
\foreach \x in {0,1,2,3,4,5,6,7,8,9,10,11,12} {
\node(a) at (\x,-0.5){\x};}
\foreach \y in {0,1,2,3,4,5,6,7,8,9,10,11,12,13} {
\node(a) at (0.5,\y){\y};}
\end{tikzpicture}
\end{document} |