有人可能有 Circuitikz 的 IEC nc、no 和 co 開關嗎

有人可能有 Circuitikz 的 IEC nc、no 和 co 開關嗎

我參考了 E1218 至 E1220,需要更好的符號並進行以下改進:

  • 移動滑塊需要相同的長度;
  • co 需要像 E1224 一樣對稱;
  • 稍後我們需要添加接觸修飾符 - 特別是 E1229-E1232;
  • 我們還需要能夠為滑塊添加機械屬性。

注意操作時滑桿應始終順時針方向移動。

我還附上IEC 符號參考注意到它是一個非常舊的版本。

在此輸入影像描述

在此輸入影像描述

這是一些檢查當前開關符號對齊情況的黑客代碼:

在此輸入影像描述

    \begin{circuitikz}
    { % 
    \coordinate (a) at (-1,0);
    \draw (a)
%   node {X}%debug
    ++(-1,-0.25) node [anchor=east] {$U_n$} 
    to[short, o-] 
    ++(1,0)
    ++(-1,1.25) node [anchor=east] {$U_c$} 
    to[short, o-]
    ++(1,0)
    ++(-1,1) node [anchor=east] {$U_b$} 
    to[short, o-]
    ++(1,0)
    ++(-1,1) node [anchor=east] {$U_a$} 
    to[short, o-]
    ++(1,0);
    }
    \draw (-1,1) -- (-1,0.25);
    \draw (0.00,+0.25) to[nos,l=$\ $, ] ++(-1,0);
    \draw (0.00,-0.0)node[ocirc]{} to[nos,l=$\ $, ] ++(-1,0);
    \draw (-0.05,-0.25) to[ncs,l=$\ $,mirror, ] ++(-1,0);
    \end{circuitikz}

我現在已經完成了一個粗略的設計,可以滿足我目前的需求 - 與最終程式碼不接近。

{% no nc co switch
\coordinate (a) at (-0,01);
\draw (a)
node {x}%debug
to[short, -o] ++(-0.25,0);%fixed contact
{%
\draw[thick]($(a)+(-0.25,0)$) -- ++(-0.5,-0.225);%nc wiper
\draw ($(a)+(-0.75,-0.225)$) -- ++(-0.045,0.11);%early
\draw ($(a)+(-0.75,-0.225)$) -- ++(+0.045,-0.11);%late
}
{%
\draw[thick]($(a)+(-0.25,0)$) -- ++(-0.55,+0.05);%centre nc wiper
\draw ($(a)+(-0.8,+0.05)$) -- ++(0.01,0.11);%early
\draw ($(a)+(-0.8,+0.05)$) -- ++(-0.01,-0.11);%late
}
{%
\draw[thick]($(a)+(-0.25,0)$) -- ++(-0.5,-0.25);%no wiper
\draw ($(a)+(-0.75,-0.25)$) -- ++(-0.045,0.11);%early
\draw ($(a)+(-0.75,-0.25)$) -- ++(+0.045,-0.11);%late
}
\draw (a) ++(-0.625,-0.125) |- ++(-0.375,-0.125);%nc contact 
\draw (a) ++(-0.625,0.125) |- ++(-0.375,-0.125);%centre nc contact 
\draw(a) ++(-1,+0.25) -- ++(0.275,0);%no contact
\draw(a) ++(-1,+0) -- ++(0.25,0);%centre no contact
}

在此輸入影像描述

相關內容