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 ProgrammBuild 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 BinaryAnother 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: k...@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>|
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- Etherlab-users mailing list Etherlab-users@etherlab.org https://lists.etherlab.org/mailman/listinfo/etherlab-users