<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Webdings;
panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Not all slaves will let you reconfigure and/or reassign PDOs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Enable “ethercat debug 1” and then look at the syslog output after starting your app.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<P
style="FONT-SIZE: 100%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"><STRONG>Gavin Lambert<BR></STRONG>Senior Software Developer<BR></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<TABLE>
<TBODY
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"> </TBODY></TABLE></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><IMG border=0
src="cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png"><BR><A
href="http://www.compacsort.com"><IMG border=0 alt=TOMRA
src="cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png" width=33
height=37></A> <A href="https://www.facebook.com/Compacsort"><IMG border=0
alt=Facebook src="cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png" width=35
height=37></A> <A
href="https://www.linkedin.com/company/compac-sorting-equipment/"><IMG border=0
alt=Linkedin src="cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png" width=35
height=37></A> <A href="https://vimeo.com/compacsort"><IMG border=0 alt=Youtube
src="cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png" width=37 height=37></A>
<A href="https://twitter.com/compacsort"><IMG border=0 alt=twitter
src="cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png" width=33 height=37></A>
<A href="https://www.instagram.com/compacsort/"><IMG border=0 alt=instagram
src="cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png" width=33 height=37></A>
</P>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"><B>COMPAC
SORTING EQUIPMENT LTD</B> | 4 Henderson Pl | Onehunga | Auckland 1061 | New
Zealand<BR>Switchboard: +64 96 34 00 88 | <A
href="http://www.tomra.com">tomra.com</A> </P>
<TABLE
style="BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-COLLAPSE: collapse; BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD
style="BORDER-LEFT-STYLE: none; BORDER-TOP: #595959 1pt solid; BORDER-BOTTOM: #595959 1pt solid; BORDER-RIGHT-STYLE: none"
vAlign=top>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)">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.
</P></TD></TR></TBODY></TABLE>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"></P><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> BUSSIERES Vincent<br>
<b>Sent:</b> Tuesday, 28 January 2020 23:52<br>
<b>To:</b> etherlab-users@etherlab.org<br>
<b>Subject:</b> [etherlab-users] Read / Write PDOs & PDO Mapping<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">Hello<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">I am a beginner in EtherCAT technology.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">I try to control a servodrive using PDOs. I succeded in settings parameters like homing mode using SDOs.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">Now, I’d like to send command and read status using PDOs. I tried to make PDO mapping like in « examples/user/main.c » example.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><img width="698" height="120" style="width:7.2708in;height:1.25in" id="Image_x0020_2" src="cid:image003.jpg@01D5D694.051D5550"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><img width="693" height="149" style="width:7.2187in;height:1.552in" id="Image_x0020_3" src="cid:image005.jpg@01D5D694.051D5550"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">You can see my source code below :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static unsigned int off_ctl_word;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static unsigned int off_status;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static unsigned int off_position_value;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">const static ec_pdo_entry_reg_t domain1_regs[] = {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0, 0, 0x0000009A, 0x00030924, 0x6040, 0, &off_ctl_word},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0, 0, 0x0000009A, 0x00030924, 0x6041, 0, &off_status},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0, 0, 0x0000009A, 0x00030924, 0x6064, 0, &off_position_value},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">ec_pdo_entry_info_t slave_0_pdo_entries[] = {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0x6040, 0x00, 16},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0x6041, 0x00, 16},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0x6064, 0x00, 32},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">ec_pdo_info_t slave_0_pdos[] = {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0x160a, 1, slave_0_pdo_entries + 0},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0x1a0a, 1, slave_0_pdo_entries + 1},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0x1a0e, 1, slave_0_pdo_entries + 2},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">ec_sync_info_t slave_0_syncs[] = {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {2, EC_DIR_OUTPUT, 1, slave_0_pdos + 0, EC_WD_ENABLE},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {3, EC_DIR_INPUT, 2, slave_0_pdos + 1, EC_WD_DISABLE},<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {0xff}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static ec_master_t *master = nullptr;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static ec_domain_t *domain1 = nullptr;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static ec_slave_config_t *sc_elmo = nullptr;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">static ec_slave_info_t slaveInfo;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">int main(int argc, char *argv[])<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> QCoreApplication a(argc, argv);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> master = ecrt_request_master(0);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if ( !master ) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> domain1 = ecrt_master_create_domain(master);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if ( !domain1 ) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if ( !(sc_elmo = ecrt_master_slave_config(master, 0, 0, 0x0000009A, 0x00030924)) ) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> fprintf(stderr, "Failed to get slave configuration for AKD.\n");<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> uint32_t abort_code = 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> uint8_t lHomingMethod[] = {33};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> uint8_t lModeOfOperation[] = {6};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if(ecrt_master_sdo_download(master, 0, 0x6098, 0, (const uint8_t*)lHomingMethod, sizeof(lHomingMethod), &abort_code)<0)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if(ecrt_master_sdo_download(master, 0, 0x6060, 0, (const uint8_t*)lModeOfOperation, sizeof(lModeOfOperation), &abort_code)<0)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if (ecrt_slave_config_pdos(sc_elmo, EC_END, slave_0_syncs))<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if (ecrt_domain_reg_pdo_entry_list(domain1, domain1_regs))<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> if ( ecrt_master_activate( master ) ) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> exit( EXIT_FAILURE );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> ecrt_release_master(master);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR"> return a.exec();<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="FR" style="font-size:10.0pt;mso-fareast-language:FR">}</span><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">I have no error, but PDO mapping doesn’t seem to be done when I compare it with command lines tool below :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><img width="551" height="298" style="width:5.7395in;height:3.1041in" id="Image_x0020_4" src="cid:image007.jpg@01D5D694.051D5550"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">Did I miss anything ?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">Moreover I don’t know how to read and write in PDOs. In user example, I only see how to write in PDO using EC_WRITE_XX, but I don’t know how to read ? Is it with EC_READ_XX ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">We don’t know if data are available, is there a callback function to be notified is data has been updated ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">What is the period of EtherCAT cycle ? Is it the period of the while loop in the cyclic task ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:FR">Vincent BUSSIERES<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:FR">Responsable Technique Logiciel<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="FR" style="color:black;mso-fareast-language:FR"><img width="96" height="72" style="width:1.0in;height:.75in" id="Image_x0020_1" src="cid:image008.png@01D5D694.051D5550" alt="1572337113342"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:navy;mso-fareast-language:FR">24 Avenue de Pasleck</span></i><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:navy;mso-fareast-language:FR">16400 LA COURONNE</span></i><span lang="FR" style="font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR"><br>
</span><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:FR">-----------------------------------</span></i><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#999999;mso-fareast-language:FR"><a href="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%7C114cd0ac38c54d1fc5e908d7a3e01ede%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637158055294741739&sdata=9Lv9HBRmeqG1Vxf7H6i5mOuuB0KDsGqWSPDzn7M7Wbc%3D&reserved=0" target="_blank">www.hemeria-group.com</a></span></i><span lang="FR" style="color:black;mso-fareast-language:FR"> <br>
</span><span lang="FR" style="font-size:16.0pt;font-family:Webdings;color:green;mso-fareast-language:FR">P</span><span lang="FR" style="color:black;mso-fareast-language:FR"> </span><span lang="FR" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:#99CC00;mso-fareast-language:FR">Afin
de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de nécessité.</span><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray;mso-fareast-language:FR">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.</span><span lang="FR" style="color:black;mso-fareast-language:FR"><br>
</span><span lang="EN-GB" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray;mso-fareast-language:FR">This email and any files transmitted with it are confidential, intented solely for the unique use of the recipients and don't commit HEMERIA.</span><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;color:black;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
</div>
</body>
</html>