[etherlab-users] PDOs Mapping

Gavin Lambert gavin.lambert at tomra.com
Sun Feb 9 23:09:48 CET 2020


Using only one domain is the normal case.

Some (very old) slaves will require you to use separate domains for input and output data (as they don't support the LRW datagram), but other than that the choice of domains is entirely up to the application.

Typical division points are where you want to have different cycle rates for different slave groups, or if you want to have "hot connect" groups where you can more easily detect whether a given cluster of slaves is present or absent on the network based on whether their domain is being processed or not.

You don't have to use separate domains for this - my app uses a single domain where any of the slaves can potentially drop in and out, and uses a different method to get some slaves processing faster than others - but it does simplify some of these use cases.

I don't think it's likely to be related to the issue you're having.


Have you confirmed that all the PDO mappings were successful, and that the offsets read by your application match those shown in "ethercat domain -v"?  And that you are using these same offsets correctly in the EC_WRITE_* calls?  Don't forget that you have to offset the domain base address with the PDO offset when the former is a uint8_t*, not cast to any other type.  Also, digital output data is usually bitwise, and you may need to take into account bit ordering differences between the master and slave.


Gavin Lambert
Senior Software Developer

[cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png]
[cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png]<http://www.compacsort.com> [cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png] <https://www.facebook.com/Compacsort>  [cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png] <https://www.linkedin.com/company/compac-sorting-equipment/>  [cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png] <https://vimeo.com/compacsort>  [cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png] <https://twitter.com/compacsort>  [cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png] <https://www.instagram.com/compacsort/>

COMPAC SORTING EQUIPMENT LTD | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand
Switchboard: +64 96 34 00 88 | tomra.com<http://www.tomra.com>

The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed. If you have received this communication in error, please notify the sender and delete the communication.

From: BUSSIERES Vincent
Sent: Saturday, 8 February 2020 05:07
To: etherlab-users at etherlab.org
Subject: Re: [etherlab-users] PDOs Mapping

Dear all,

I wonder if the reason of my problem on multi PDO outputs mapping describe below could be because I use only one domain.
In which case should we use several domains ?

Best regards

Vincent BUSSIERES
Responsable Technique Logiciel

[cid:image001.png at 01D5E000.DD7371D0]
24 Avenue de Pasleck
16400 LA COURONNE
-----------------------------------
www.hemeria-group.com<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwebmail.nexeya.fr%2Fowa%2Fredir.aspx%3FC%3DGK_BqKCZef7LtPZnqnd_LGYr1NG9sz4Smy3iKIwO-pXqtJC7VgzXCA..%26URL%3Dhttp%253a%252f%252fwww.hemeria-group.com%252f&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532502484&sdata=mdDoXfmuWbmzUXpOMZPUueIzUNC1kBlSrQY%2B8%2B5%2FA4s%3D&reserved=0>
P Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de nécessité.
Ce message et les fichiers pouvant être attachés sont confidentiels, réservés à l'usage unique des destinataires et n'engagent HEMERIA sous aucune forme que ce soit.
This email and any files transmitted with it are confidential, intented solely for the unique use of the recipients and don't commit HEMERIA.



De : Gavin Lambert <gavin.lambert at tomra.com<mailto:gavin.lambert at tomra.com>>
Envoyé : jeudi 6 février 2020 22:52
À : BUSSIERES Vincent <vincent.bussieres at hemeria-group.com<mailto:vincent.bussieres at hemeria-group.com>>; etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
Objet : RE: PDOs Mapping

I can't speak to the servo drive mapping itself, but as to the other question:

ecrt_slave_config_sdoX is to specify SDO values that should be set during the PREOP -> SAFEOP -> OP transition.  It is intended for any SDO configuration required to bring the device to the intended operational state, especially eg. If the device disconnects or is rebooted during operation.  It must never be used for PDOs - neither for values, nor for the PDO Assign/Config objects.

It is different from the sdo_download requests because the latter only occur once at the time the call is made, while the config_sdo is stored and executed on every later PREOP -> SAFEOP transition (until the master is deactivated).  (These should also never be used for PDOs.)


Gavin Lambert
Senior Software Developer


[cid:image002.png at 01D5E000.DD7371D0]
[cid:image003.png at 01D5E000.DD7371D0]<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.compacsort.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532502484&sdata=VdfobNWEwldGXv3sz2LExwqeZs4pLc9gAcYMqrX%2F258%3D&reserved=0>[cid:image004.png at 01D5E000.DD7371D0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FCompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532512480&sdata=sjcidLWnKRqHuOFW0RDJ5dmEGs130fqZdtmp5un5yqQ%3D&reserved=0>[cid:image005.png at 01D5E000.DD7371D0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcompac-sorting-equipment%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532512480&sdata=2C9YV0LCh2b2hLDPZ6BoOf%2Bs9vJc3dpalhN3AUW%2BL6o%3D&reserved=0>[cid:image006.png at 01D5E000.DD7371D0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532522474&sdata=NmQV7SaMXrxq0PN2DqFjytwP78gVrsl8P08khE9gdNU%3D&reserved=0>[cid:image007.png at 01D5E000.DD7371D0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532522474&sdata=Lgn5bd1wsJprAtwB%2F4c76qzeEfV6MFHxOVCqy%2F5HnFs%3D&reserved=0>[cid:image008.png at 01D5E000.DD7371D0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fcompacsort%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532532467&sdata=EfE1GAYlW0sHhoHECY%2FmhfKYjSKBUHYiU2MOqv7NQ%2BA%3D&reserved=0>

COMPAC SORTING EQUIPMENT LTD | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand
Switchboard: +64 96 34 00 88 | tomra.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tomra.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532532467&sdata=2dLf6azPkMwvtcAt5ZeZapa6AVO1RGLVLW3axWW%2FoT4%3D&reserved=0>

The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed. If you have received this communication in error, please notify the sender and delete the communication.

From: BUSSIERES Vincent
Sent: Friday, 7 February 2020 09:03
To: etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
Subject: [etherlab-users] PDOs Mapping

Dear All,

I mapped the two RxPdo's objects below of my Elmo servodrive.
[cid:image009.jpg at 01D5E000.DD7371D0]

[cid:image010.jpg at 01D5E000.DD7371D0]

Mapping seems to be OK
[cid:image011.jpg at 01D5E000.DD7371D0]

But when I write in digital output PDO, nothing is sent. This PDO is peculiar because digital outputs are witten at subindex 1. I don't know if it's because of that reason.

[cid:image012.jpg at 01D5E000.DD7371D0]

6 is the value sent in the controlword of the PDO 0x1605 but nothing for digital outputs.

You can see my PDO mapping code in the attached file. I have noticed that some people use « ecrt_slave_config_sdoX » function to clear and define Pdo. Is it necessary and what is the difference between this function and sdo download function ?

Regards

Vincent BUSSIERES
Responsable Technique Logiciel

[cid:image001.png at 01D5E000.DD7371D0]
24 Avenue de Pasleck
16400 LA COURONNE
-----------------------------------
www.hemeria-group.com<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwebmail.nexeya.fr%2Fowa%2Fredir.aspx%3FC%3DGK_BqKCZef7LtPZnqnd_LGYr1NG9sz4Smy3iKIwO-pXqtJC7VgzXCA..%26URL%3Dhttp%253a%252f%252fwww.hemeria-group.com%252f&data=02%7C01%7Cgavin.lambert%40tomra.com%7C7ffcbe9d88464d5fe2bb08d7abe7d5c7%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637166884532542465&sdata=P%2FrCmMABbD8jwtYtE%2FgWiF8VbHm%2BSz%2Bds8KWIH1EsPA%3D&reserved=0>
P Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de nécessité.
Ce message et les fichiers pouvant être attachés sont confidentiels, réservés à l'usage unique des destinataires et n'engagent HEMERIA sous aucune forme que ce soit.
This email and any files transmitted with it are confidential, intented solely for the unique use of the recipients and don't commit HEMERIA.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5034 bytes
Desc: image001.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0060.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 11438 bytes
Desc: image002.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0061.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1629 bytes
Desc: image003.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0062.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1750 bytes
Desc: image004.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0063.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 1855 bytes
Desc: image005.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0064.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 1970 bytes
Desc: image006.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0065.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 20278 bytes
Desc: image007.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0066.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 1506 bytes
Desc: image008.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0067.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.jpg
Type: image/jpeg
Size: 21730 bytes
Desc: image009.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0016.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.jpg
Type: image/jpeg
Size: 5340 bytes
Desc: image010.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0017.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.jpg
Type: image/jpeg
Size: 24839 bytes
Desc: image011.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0018.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.jpg
Type: image/jpeg
Size: 100801 bytes
Desc: image012.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0019.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png
Type: image/png
Size: 11438 bytes
Desc: logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0068.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png
Type: image/png
Size: 1629 bytes
Desc: compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0069.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png
Type: image/png
Size: 1750 bytes
Desc: facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0070.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png
Type: image/png
Size: 1855 bytes
Desc: linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0071.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png
Type: image/png
Size: 1970 bytes
Desc: youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0072.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png
Type: image/png
Size: 20278 bytes
Desc: twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0073.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png
Type: image/png
Size: 1506 bytes
Desc: insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200209/ca246a4f/attachment-0074.png>


More information about the Etherlab-users mailing list