\section{Mesin Pemotong}
\textbf{Tujuan}
\begin{itemize}
	%<*tujuan>
    \item Mengoprasikan silinder single-acting secara tidak langsung
	    menggunakan rangkaian logika AND.
	%</tujuan>
\end{itemize}
\textbf{Deskripsi Perangkat}
\begin{itemize}
    \item Menggunakan mesin pemotong, sebuah lembaran terpotong pada ukuran tertentu.
          Dengan mengoprasikan dua saklar pushbutton, piston silinder memanjang dan mendorong pisau.
          Dengan melepaskan salah satu saklar pushbutton nya, pisau kembali ke posisi semula.
\end{itemize}
\begin{center}
    \begin{tabular}{p{.6\textwidth} p{.4\textwidth}}
        \includegraphics[scale=.4]{Screenshot_2021-04-05_09-59-17.png} &
        \begin{tabular}{|p{.32\textwidth}| p{.04\textwidth}|} \hline
            \textbf{Komponen}                              & \textbf{N} \\ \hline
            Service unit with on-off valve                 & 1               \\
            Manifold                                       & 1               \\
            Double-acting cylinder                         & 1               \\
            3/2-way single solenoid valve, normally closed & 1               \\
            5/2-way single solenoid valve                  & 1               \\
            Relay, 3-off                                   & 1               \\
            Signal input plate, electrical                 & 1               \\
            Indicator and distributor plate, electrical    & 1               \\
            Cabel set, universal                           & 1               \\
            Electrical power supply unit, 24 V             & 1               \\
            \hline
        \end{tabular}
    \end{tabular}
\end{center}
\subsection{Tugas Praktik}
\input{tugas_praktek.tex}
\subsection{Evaluasi}
\begin{enumerate}
    \item Ceritakan cara kerja rangkaian yang telah dipraktikkan apabila terpasang pada perangkat sebenarnya!
%<*pemantik>
    \item Apa manfaat dari rangkaian secara tidak langsung?
%</pemantik>
\end{enumerate}


\ifdef{\showhiden}
{
    \textbf{Kesimpulan}
    \begin{enumerate}
        %<*kesimpulan>
	    \item ok cok
         %</kesimpulan>
    \end{enumerate}

    \textbf{Slide} \\
    %<*slide>
    \section{Cara Kerja Silinder}

    \subsection{Double Acting}
    \begin{frame}
        \frametitle{Cara Kerja Silinder Double Acting }
        \framesubtitle{Menggunakan Valve Pneumatic [YT :\href{https://youtu.be/5q7YasmwXCs?t=868}{link}, \href{https://youtu.be/5q7YasmwXCs?t=1712}{link}]}
    \end{frame}

    %</slide>
}{}

\newpage
\subsection{Lembar Kerja Pneumatic}
\begin{tabular}{p{.35\textwidth} p{.65\textwidth}}
    \begin{center}
        \begin{tabular}{| p{.3\textwidth} | c |} \hline
            \textbf{Daftar Komponen}       & \textbf{n} \\ \hline
            Service unit with on-off valve & 1          \\ \hline
            Manifold                       & 1          \\ \hline
            3/2-way valve with pushbutton  & 1          \\ \hline
            Single acting cylinder         & 1          \\ \hline
        \end{tabular}
    \end{center}
     &
    \begin{center}
        \ifdef{\drawCircuit}
        {
            \includegraphics{2022-09-08_20-16.png}
        }{
            \ifdef{\drawPartialCircuit}
            {
                \includegraphics{2022-09-08_20-18.png}
            }{
                \vspace{10cm}
            }
        }
    \end{center}
    \\
\end{tabular}
\subsection*{Diagram Pergerakan}
\begin{drawGrafikPergerakan}
\end{drawGrafikPergerakan}

\newpage
\subsection{Lembar Kerja Pneumatic}
\begin{tabular}{p{.35\textwidth} p{.65\textwidth}}
    \begin{center}
        \begin{tabular}{| p{.3\textwidth} | c |} \hline
            \textbf{Daftar Komponen}       & \textbf{n} \\ \hline
            Service unit with on-off valve & 1          \\ \hline
            Manifold                       & 1          \\ \hline
            3/2-way valve with pushbutton  & 1          \\ \hline
            Single acting cylinder         & 1          \\ \hline
        \end{tabular}
    \end{center}
     &
    \begin{center}
        \ifdef{\drawCircuit}
        {
            \includegraphics{2022-09-08_20-16.png}
        }{
            \ifdef{\drawPartialCircuit}
            {
                \includegraphics{2022-09-08_20-18.png}
            }{
                \vspace{10cm}
            }
        }
    \end{center}
    \\
\end{tabular}
\subsection*{Diagram Pergerakan}
\begin{drawGrafikPergerakan}
\end{drawGrafikPergerakan}










\newpage
\subsubsection{JAWABAN}
\textbf{Gambar Rangkaian}\\
\ifdef{\drawCircuit}{
    \includegraphics[scale=.7]{Screenshot_2021-08-31_07-44-06.png}
    \includegraphics[scale=.7]{Screenshot_2021-08-31_07-44-15.png}\\
}{
    \vspace{10cm} \\
}
\textbf{Diagram Langkah Perpindahan yang Seharusnya (Presentasi)}\\
\vspace{1cm} \\
\begin{tikzpicture}
    \begin{axis}[
            height = 4cm,
            width=\textwidth,
            xlabel={step(t)},
            %            ylabel={1= Up/ 0= Down},
            xmin=0, xmax=4,
            ymin=0, ymax=1,
            xtick={0,1,2,3,4},
            ytick={0,1},
            grid=both,
            grid style={line width=.8pt},
        ]
    \end{axis}
\end{tikzpicture}\\
\textbf{Diagram Langkah Perpindahan (Praktik)}\\
\vspace{1cm} \\
\begin{tikzpicture}
    \begin{axis}[
            height = 4cm,
            width=\textwidth,
            xlabel={step(t)},
            %            ylabel={1= Up/ 0= Down},
            xmin=0, xmax=4,
            ymin=0, ymax=1,
            xtick={0,1,2,3,4},
            ytick={0,1},
            grid=both,
            grid style={line width=.8pt},
        ]
    \end{axis}
\end{tikzpicture}
