[Etherlab-users] Visualization/Control of Busstate via PdServ

Karl Zeilhofer karl at zeilhofer.co.at
Wed Sep 25 16:16:50 CEST 2024


Hi,

the last days I did some experiments with EtherCAT master, pdserv, 
Testmanager and DLS. Hats off for this great sofware project.

I'm thinking about getting all slave registers of the whole EtherCAT bus 
in a systematic way presented via pdserv.

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).
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).

My question is, what's the way to go.
Some suggestions:

1) Generator Programm
Build a generator script, which uses ethercat tool to scan the bus via 
"ethercat pdos".
Then generate a C file, where everything is integrated. For each 
register there are equivalents in the pdserv registration.
Then compile this file and run it.

For visualization I would suggest a ncurses GUI in the terminal, where 
all pdserv variables are listed.
Later on a visualization in the webbrowser would be great.

2) Generic Binary
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.
This would be a very dynamic approach without any further compilations.
Restart this binary, if anything on the bus has changed, and you are done.

I would be happy about any inputs.

Kind regards,
Karl

-- 

*|Karl Zeilhofer|*
|*Design Mechatronischer Systeme*|

|eMail: karl at zeilhofer.co.at (GPG-Verschlüsselung 
<http://www.zeilhofer.co.at/official/doku.php?id=gpg-key>)|
|Tel: +43 660 6591574|||

------------------------------------------------------------------------

||

|Mechatronik Karl Zeilhofer
||Steinbach 13, 4562 Steinbach am Ziehberg, AUSTRIA|
|zeilhofer.co.at <http://zeilhofer.co.at>|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20240925/ed5af31e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20240925/ed5af31e/attachment.sig>


More information about the Etherlab-users mailing list