[etherlab-users] PDOs Mapping
BUSSIERES Vincent
vincent.bussieres at hemeria-group.com
Mon Feb 10 14:03:08 CET 2020
Thanks, I found the solution to my problem.
Indeed, digital outputs are drivable from the 32 bits object 0x60FE at index 1.
I mapped correctly PDO with index 1 for this object as you can see below.
[cid:image013.jpg at 01D5E01A.C78DD3F0]
The first digital output is controled by the 16th bit of the word.
So I need to shift one byte (I presume corresponding to index 0) to drive the output.
EC_WRITE_U32(domain1_pd + off_DigitalOuptut, lValue << 8) ;
Is it the normal behaviour ?
Best regards
Cordialement
Vincent BUSSIERES
Responsable Technique Logiciel
[1572337113342]
24 Avenue de Pasleck
16400 LA COURONNE
-----------------------------------
www.hemeria-group.com<https://webmail.nexeya.fr/owa/redir.aspx?C=GK_BqKCZef7LtPZnqnd_LGYr1NG9sz4Smy3iKIwO-pXqtJC7VgzXCA..&URL=http%3a%2f%2fwww.hemeria-group.com%2f>
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>
Envoyé : dimanche 9 février 2020 23:10
À : BUSSIERES Vincent <vincent.bussieres at hemeria-group.com>; etherlab-users at etherlab.org
Objet : RE: PDOs Mapping
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:image015.png at 01D5E01A.C78DD3F0]
[TOMRA]<http://www.compacsort.com>[Facebook]<https://www.facebook.com/Compacsort>[Linkedin]<https://www.linkedin.com/company/compac-sorting-equipment/>[Youtube]<https://vimeo.com/compacsort>[twitter]<https://twitter.com/compacsort>[instagram]<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<mailto: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
[1572337113342]
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:image015.png at 01D5E01A.C78DD3F0]
[TOMRA]<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>[Facebook]<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>[Linkedin]<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>[Youtube]<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>[twitter]<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>[instagram]<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:image022.jpg at 01D5E01A.C78DD3F0]
[cid:image023.jpg at 01D5E01A.C78DD3F0]
Mapping seems to be OK
[cid:image024.jpg at 01D5E01A.C78DD3F0]
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:image025.jpg at 01D5E01A.C78DD3F0]
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
[1572337113342]
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/20200210/6202b433/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image013.jpg
Type: image/jpeg
Size: 41301 bytes
Desc: image013.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0020.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image014.png
Type: image/png
Size: 5034 bytes
Desc: image014.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0032.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image015.png
Type: image/png
Size: 11438 bytes
Desc: image015.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0033.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image016.png
Type: image/png
Size: 1629 bytes
Desc: image016.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0034.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image017.png
Type: image/png
Size: 1750 bytes
Desc: image017.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0035.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image018.png
Type: image/png
Size: 1855 bytes
Desc: image018.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0036.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image019.png
Type: image/png
Size: 1970 bytes
Desc: image019.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0037.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image020.png
Type: image/png
Size: 20278 bytes
Desc: image020.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0038.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image021.png
Type: image/png
Size: 1506 bytes
Desc: image021.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0039.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image022.jpg
Type: image/jpeg
Size: 21730 bytes
Desc: image022.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0021.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image023.jpg
Type: image/jpeg
Size: 5340 bytes
Desc: image023.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0022.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image024.jpg
Type: image/jpeg
Size: 24839 bytes
Desc: image024.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0023.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image025.jpg
Type: image/jpeg
Size: 100801 bytes
Desc: image025.jpg
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200210/6202b433/attachment-0024.jpg>
More information about the Etherlab-users
mailing list