Trovare coordinate elementi tikz/grafcet

  • Creatore
    Topic
  • #82223
    Up
    0
    Down
    ::


    Ciao

    sto facendo un disegno con grafect, vorrei sapere se c’è un modo per conoscere alcuni punti esatti del disegno che grafcet compone. Nell esempio che allego vorrei conoscere il punto finale di quel pezzo di linea in fondo (quello ‘sospeso’). Vorrei collegarci una freccia o altre cose. Avevo pensato di farlo manualmente disegnando una griglia e ricavando ad occhio il punto, ma non viene precisissimo (se notate l ho fatto per allungare quella “doppia barra” arrivando a step di griglia 0.1 ma non è perfetto).

    `
    \documentclass{standalone}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{lmodern}
    \usepackage{microtype}
    \usepackage[english,italian]{babel}
    \usepackage{mathtools}
    \usepackage{amsmath}
    \usepackage{amssymb}

    \usepackage{grafcet}

    \renewcommand{\ActionX}[3][2.5]{
    \DecaleNoeudx[#1]{#2}{A#2};
    \draw (#2) — (A#2.east);
    \foreach \x in {#3}
    {\node (NoeudGraf) at (A#2.east) [draw, rectangle, right,minimum height=2.5em,
    minimum width=2.5em,align=left] (A#2) {\x};
    }
    }

    \begin{document}
    \begin{tikzpicture}
    \draw[step=0.5cm,color=gray](-15,-15) grid (15,15);

    \EtapeInit[-5,0]{101}
    \Transition{tpres1}
    \Etape{102}
    \Transition{ttrue}
    \DivET{Tttrue}{-3/br1}
    \Transition[Vbr1]{ttrue1}
    \Etape{103}
    \Transition{tcomplex1}
    \Etape{104}
    \Transition{tFCA1}
    \Etape{105}
    \Transition{tcomplex2}
    \Etape{106}
    \Transition{tFCD1}
    %\Etape{107}
    \DivET{TtFCD1}{-1/br2,2/br3}
    %\DecaleNoeudy[-2]{conv1}{conv1}
    \LienRetour[5]{br2}{X101}

    \ActionX{X103}{$seize1(S);$}
    \ActionX{X104}{$forward1;$}
    \ActionX{X105}{$seize1(R);$}
    \ActionX{X106}{$n=n+1;$\\$back1;$}
    \Recepts{
    tpres1/pres1,
    ttrue/true,
    ttrue1/true,
    tcomplex1/GS103.t>=t\#3ms,
    tFCA1/FCA1,
    tcomplex2/GS105.t>=t\#3ms,
    tFCD1/FCD1
    }

    \draw[thick] (-5,-3.028)–(-3,-3.028);
    \draw[thick] (-5,-3.1096)–(-3,-3.1096);

    \end{tikzpicture}

    \end{document}

    `

  • Devi essere connesso per rispondere a questo topic.

Go to top