<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi, <br>
</p>
<p>the last days I did some experiments with EtherCAT master,
pdserv, Testmanager and DLS. Hats off for this great sofware
project. <br>
</p>
<p>I'm thinking about getting all slave registers of the whole
EtherCAT bus in a systematic way presented via pdserv. <br>
</p>
<p>Then a python skript connected via pdcom should do the control
and I/O towards the enduser (all non realtime, but hey - this is
acceptable in the case of home automation or energy management). <br>
For development/debugging purposes, another pdcom client should be
able to visualize all variables on pdserv. Also it should be able
to force specific variables to a preset value (similar to
TwinCAT). <br>
</p>
<p>My question is, what's the way to go. <br>
Some suggestions:</p>
<p>1) Generator Programm<br>
Build a generator script, which uses ethercat tool to scan the bus
via "ethercat pdos". <br>
Then generate a C file, where everything is integrated. For each
register there are equivalents in the pdserv registration. <br>
Then compile this file and run it. <br>
</p>
<p>For visualization I would suggest a ncurses GUI in the terminal,
where all pdserv variables are listed. <br>
Later on a visualization in the webbrowser would be great. <br>
</p>
<p>2) Generic Binary<br>
Another approach would be to write a C/C++ program, which uses the
same libs ethercat tool uses, to scan the bus and provide the data
via pdserv. <br>
This would be a very dynamic approach without any further
compilations. <br>
Restart this binary, if anything on the bus has changed, and you
are done. <br>
</p>
<p>I would be happy about any inputs. <br>
</p>
<p>Kind regards, <br>
Karl<br>
</p>
<div class="moz-signature">-- <br>
<p><strong><code>
Karl Zeilhofer</code></strong><br>
<code><strong>
Design Mechatronischer Systeme</strong></code></p>
<p><code>
eMail: <a class="moz-txt-link-abbreviated" href="mailto:karl@zeilhofer.co.at">karl@zeilhofer.co.at</a> (<a
href="http://www.zeilhofer.co.at/official/doku.php?id=gpg-key">GPG-Verschlüsselung</a>)</code><br>
<code>
Tel: +43 660 6591574</code><code></code></p>
<hr>
<p><code></code></p>
<p><code>Mechatronik Karl Zeilhofer<br>
</code><code>Steinbach 13, 4562 Steinbach am Ziehberg, AUSTRIA</code><br>
<code><a href="http://zeilhofer.co.at">zeilhofer.co.at</a></code></p>
</div>
</body>
</html>