<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hello Lucas,<br>
<br>
I am not sure to what "code syntax" you refer to. I think it is best
to start with a basic Simulink model to read/write all the slave
data.<br>
So I guess you would "write code" in Simulink using function blocks.
So:<br>
<ul>
<li>
<pre><code>/opt/etherlab/bin/ethercat pdos --skin etherlab</code><code></code></pre>
</li>
<li>
<pre><code>create matlab functions from that</code></pre>
</li>
<li><code>create a simulink model with either generic slave blocks
pointing to these Matlab functions or use pre-defined Beckhoff
slave blocks, if applicable</code></li>
<li><code>you have to configure the slave blocks according to your
configuration, which you read out with the `ethercat pdos`
command</code><br>
</li>
<li><code>you have to create a test manager application to see the
signals of the Simulink model</code><br>
</li>
</ul>
I wrote a basic tutorial for my team, unfortunately in German, but
the code should stand for itself:<br>
<ul>
<li>
<pre><code>a few commands to start working: <a class="moz-txt-link-freetext" href="https://github.com/SchapplM/etherlab-examples/blob/master/README.MD#eigene-modelle-erstellen">https://github.com/SchapplM/etherlab-examples/blob/master/README.MD#eigene-modelle-erstellen</a></code></pre>
</li>
<li>Basic model to read out one slave:
<a class="moz-txt-link-freetext" href="https://github.com/SchapplM/etherlab-examples/tree/master/ixxat">https://github.com/SchapplM/etherlab-examples/tree/master/ixxat</a></li>
</ul>
<p>Perhaps this helps you.</p>
<p>Best regards,</p>
<p>Moritz<br>
</p>
<div class="moz-cite-prefix">On 07.04.20 17:54, Lucas Gregorio
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+jS2ycpAL6qNbxvgA_Rgy7rGJdaaUWLidwdeO33TEw_v4StsA@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hello to all,</div>
<div>I am a beginner on Etherlab and I have six Delta motors.
Previously, I got them working regularly on TwinCAT (Windows).
Turns out I need them working on Linux and I could
successfully install Etherlab on my Ubuntu 18.04 with 4.19
kernel, and all sysconfig commands from tutorial worked just
fine. <br>
</div>
<div>But now I want to write the code for my servos using the
user example file, but I can't find any good documentation
explaining the code syntax (what are the command variables,
feedback and so on). Could anyone please give me a light on
how to start? Any documentation or guidance should help me a
lot.<br>
</div>
<div>Thank you, <br>
</div>
<div>Lucas.<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
etherlab-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
__________________________________________________________
M. Sc. Moritz Schappler
Wissenschaftlicher Mitarbeiter und Gruppenleiter
Robotik & autonome Systeme
Gottfried Wilhelm Leibniz Universität Hannover
Institut für Mechatronische Systeme
An der Universität 1, Gebäude 8142 (Etage 1, Raum 108)
30823 Garbsen
Fon: +49 (0)511 762-4116
Fax: +49 (0)511 762-19976
</pre>
</body>
</html>