summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-16 21:51:40 +0000
committerKarl Berry <karl@freefriends.org>2018-12-16 21:51:40 +0000
commit52c4d6235300874bb21256274d1404e5cc38b86a (patch)
treeaf510a7a9a5b9aab5ec66832c0879a42dc871ad0 /Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex
parent26202548aa9622126380b91f0ca8c367667c8912 (diff)
tikz-sfc (16dec18)
git-svn-id: svn://tug.org/texlive/trunk@49424 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex90
1 files changed, 90 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex b/Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex
new file mode 100644
index 00000000000..c464ff28511
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tikz-sfc/BeamerAnimation.tex
@@ -0,0 +1,90 @@
+%% This is file `BeamerAnimation.tex'
+%% Version: 1.0.1
+%% Version date: 2018-15-12
+%%
+%% Copyright (C) 2018 by Luis Paulo Laus, laus@utfpr.edu.br
+%%
+%% This package can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or (at your option) any later version,
+%% with `The Package' referring to the software `tikzlibrarycircuits.plc.sfc.code.tex'
+%% and its accompanying documentation and `The Copyright Holder' referring to
+%% the person Luis Paulo Laus.
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For error reports, comments or suggestions in case of UNCHANGED
+%% versions send mail to:
+%% laus@utfpr.edu.br
+%%
+%%
+
+\documentclass{beamer}
+\usepackage{tikz,units}
+\usetikzlibrary{backgrounds, circuits.plc.sfc}
+
+\makeatletter
+\newcommand*{\overlaynumber}{\number\beamer@slideinframe}
+\makeatother
+
+\tikzset{ % alt and visible (overlay)
+ alt/.code args={<#1>#2#3}{%
+ \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}
+ },
+ visible/.code args={<#1>#2}{%
+ \alt<#1>{\pgfkeysalso{#2}}{}
+ }
+}
+
+\colorlet{LBlue}{blue!20}
+\colorlet{LRed}{red!30}
+
+\begin{document}
+
+\begin{frame}{Delta-star motor starter with dead time in SFC: \overlaynumber{}}
+\begin{columns}[c]
+
+\column{0.4\textwidth}
+
+\noindent \begin{center}
+\begin{tikzpicture}[circuit plc sfc,thick,x=2.6\tikzcircuitssizeunit,
+ y=1.3\tikzcircuitssizeunit,sfcaqw=9\tikzcircuitssizeunit]
+ \draw (0,0)
+ to [flow direction={pos=0.95}] ++(0,-1)
+ to [sfcstepi={info=O,visible={<1,2,7>{fill=LBlue}}}] ++(0,-4)
+ node [sfctransition={info=b1 AND NOT b0},name=t1,visible={<2>{red}}] {}
+ to [sfcstep={info=I,visible={<3-6>{fill=LBlue}},
+ sfcaction={info=K1,qualifier=N,visible={<3-6>{fill=LBlue}}},
+ sfcaction={info=K2,qualifier=L,time=T\#3s,visible={<3>{fill=LBlue}}},
+ sfcaction={info=K3,qualifier=D,time=T\#3s400ms,visible={<5-6>{fill=LBlue}}}}] ++(0,-4)
+ node [sfctransition={info=b0},name=t2,visible={<6>{red}}]{}
+ |- ++(-1,-1) |- (0,0);
+ \begin{pgfonlayer}{background}
+\visible<2>{
+ \draw[fill=LRed,LRed](t1) circle (0.4);
+}
+\visible<6>{
+ \draw[fill=LRed,LRed](t2) circle (0.4);
+}
+ \end{pgfonlayer}
+\end{tikzpicture}
+\par\end{center}
+\column{0.6\textwidth}
+Delta-star with dead time:
+\begin{itemize}[<+->]
+\item initially, the motor is off
+\item b1 is pressed
+\item K1 and K2 are activated -- star
+\item after $\unit[3]{s}$, K2 is deactivated -- dead time
+\item after $\unit[0.4]{s}$, K3 is activated -- delta
+\item b0 is pressed
+\item motor is off
+\end{itemize}
+\end{columns}
+\noindent \begin{center}
+\par\bigskip
+Copyright (C) 2018 by Luis Paulo Laus, laus@utfpr.edu.br
+\end{center}
+\end{frame}
+\end{document} \ No newline at end of file