[Etherlab-users] Read/Write SDO during cyclic task
Ian Prochazka
jprochazka at persimmontech.com
Thu May 16 19:23:48 CEST 2024
Hello Clement,
you should be able to call the SDO functions, but they must NOT be
called from the cyclic task thread. AFAIR, they are blocking and they
need several cyclic task thread cycles to execute.
Best regards,
Ian
On 5/16/24 17:56, Clement Gaspard wrote:
>
>
> You don't often get email from clement.gaspard at u-bordeaux.fr. Learn
> why this is important <https://aka.ms/LearnAboutSenderIdentification>
>
>
> Good afternoon everyone,
>
> I am controlling ZeroErr eRob Actuators using the IgH EtherCAT Master
> from the stable-1.5 branch.
>
> I have defined Tx and Rx PDO registers to read/write informations
> during the cyclic task.
>
> However, is it possible to use SDO download and upload while the
> cyclic task is running?
>
> If not, what is the best way to consult SDO information in the
> shortest possible time?
>
> (I have tried to use *ecrt_master_sdo_upload* and
> *ecrt_master_sdo_download* during the cyclic task without much
> success. However, it works if I use these functions before calling
> *ecrt_master_activate*.)
>
> For example, I would like to know the temperature of the drive
> regularly (only accessible via SDO and not PDO mappable as described
> in the actuator documentation).
>
> Thank you very much in advance.
>
> Best regards,
>
> ---------------------------------
> Clément GASPARD
> Equipe Rhoban - Dpt Méthodes et Modèles Formels | LaBRI - Université
> de Bordeaux
> clement.gaspard at u-bordeaux.fr <mailto:clement.gaspard at u-bordeaux.fr>
> Département Mécatronique | ENS Rennes
> clement.gaspard at ens-rennes.fr <mailto:clement.gaspard at ens-rennes.fr>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20240516/3c2064b6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: identite-visuelle-UBX2.jpg
Type: image/jpeg
Size: 40713 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20240516/3c2064b6/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image1.png
Type: image/png
Size: 1752 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20240516/3c2064b6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ENS.png
Type: image/png
Size: 26012 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20240516/3c2064b6/attachment-0003.png>
More information about the Etherlab-users
mailing list