<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you, clearly I have misunderstood this.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ethercat -p1 upload -t uint32 0x6004 0x00 answers with</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
0x00000000 0 (encoder position value) which is not what I expect. It all works fine with TwinCAT and I get resonable values.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I run my application I can not make any of my slaves go into OP state and I can not read the process data. This works fine with TwinCAT.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any suggestions where to start debugging this?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I run my application:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>$ ethercat slaves<br>
</span>
<div>0 701:0 PREOP + EP3174-0002 4K. Ana. Eingang +/-10V, 0-10V, 0/4-20mA konfigurie<br>
</div>
<span>1 601:0 PREOP+ERROR E LeineAndLinde Encoder</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My dmesg printout (debug level 1 rather long I'm afraid):</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>[160715.196194] EtherCAT 0: 1 slave(s) responding on main device.<br>
</span>
<div>[160715.230681] EtherCAT 0: Scanning bus.<br>
</div>
<div>[160731.152010] EtherCAT 0: Bus scanning completed in 15952 ms.<br>
</div>
<div>[160731.152013] EtherCAT 0: Using slave main-0 as DC reference clock.<br>
</div>
<div>[160731.172030] EtherCAT WARNING 0: No app_time received up to now, abort DC time offset calculation.<br>
</div>
<div>[160756.175539] e1000e: enp11s0 NIC Link is Down<br>
</div>
<div>[160756.180245] EtherCAT 0: Link state of ecm0 changed to DOWN.<br>
</div>
<div>[160756.191321] EtherCAT WARNING 0: 2 datagrams TIMED OUT!<br>
</div>
<div>[160756.191333] EtherCAT ERROR 0-main-0: Failed to receive AL state datagram: Datagram error.<br>
</div>
<div>[160756.207260] EtherCAT 0: 0 slave(s) responding on main device.<br>
</div>
<div>[160758.383706] EtherCAT 0: Releasing master...<br>
</div>
<div>[160758.383740] EtherCAT 0: Master thread exited.<br>
</div>
<div>[160758.383748] EtherCAT 0: Starting EtherCAT-IDLE thread.<br>
</div>
<div>[160758.383788] EtherCAT 0: Released.<br>
</div>
<div>[160758.415495] EtherCAT WARNING: Datagram ffff8da6d7024340 (master-fsm) was SKIPPED 1 time.<br>
</div>
<div>[160778.270034] EtherCAT 0: Master thread exited.<br>
</div>
<div>[160778.270049] EtherCAT 0: Releasing main device 2C:94:64:00:26:63.<br>
</div>
<div>[160778.317206] ec_generic: Unloading.<br>
</div>
<div>[160778.340876] EtherCAT: Master module cleaned up.<br>
</div>
<div>[160815.777706] EtherCAT: Master driver 1.5.2 35e7f0841303<br>
</div>
<div>[160815.777955] EtherCAT: 1 master waiting for devices.<br>
</div>
<div>[160815.786627] ec_generic: EtherCAT master generic Ethernet device module 1.5.2 35e7f0841303<br>
</div>
<div>[160815.786651] EtherCAT: Accepting 2C:94:64:00:26:63 as main device for master 0.<br>
</div>
<div>[160815.786661] ec_generic: Binding socket to interface 6 (enp11s0).<br>
</div>
<div>[160815.799994] EtherCAT 0: Starting EtherCAT-IDLE thread.<br>
</div>
<div>[160823.431705] EtherCAT 0: Master thread exited.<br>
</div>
<div>[160823.431709] EtherCAT 0: Releasing main device 2C:94:64:00:26:63.<br>
</div>
<div>[160823.464663] ec_generic: Unloading.<br>
</div>
<div>[160823.488998] EtherCAT: Master module cleaned up.<br>
</div>
<div>[160858.720503] e1000e: enp11s0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None<br>
</div>
<div>[160858.720634] e1000e 0000:0b:00.0 enp11s0: 10/100 speed: disabling TSO<br>
</div>
<div>[160859.579559] e1000e: enp11s0 NIC Link is Down<br>
</div>
<div>[160861.261205] e1000e: enp11s0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None<br>
</div>
<div>[160861.261336] e1000e 0000:0b:00.0 enp11s0: 10/100 speed: disabling TSO<br>
</div>
<div>[160872.605681] EtherCAT: Master driver 1.5.2 35e7f0841303<br>
</div>
<div>[160872.605933] EtherCAT: 1 master waiting for devices.<br>
</div>
<div>[160872.613974] ec_generic: EtherCAT master generic Ethernet device module 1.5.2 35e7f0841303<br>
</div>
<div>[160872.613996] EtherCAT: Accepting 2C:94:64:00:26:63 as main device for master 0.<br>
</div>
<div>[160872.614002] ec_generic: Binding socket to interface 6 (enp11s0).<br>
</div>
<div>[160872.644426] EtherCAT 0: Starting EtherCAT-IDLE thread.<br>
</div>
<div>[160872.644577] EtherCAT 0: Link state of ecm0 changed to UP.<br>
</div>
<div>[160872.652413] EtherCAT 0: 1 slave(s) responding on main device.<br>
</div>
<div>[160872.652420] EtherCAT 0: Slave states on main device: PREOP.<br>
</div>
<div>[160872.653254] EtherCAT 0: Scanning bus.<br>
</div>
<div>[160873.054044] EtherCAT 0: Bus scanning completed in 400 ms.<br>
</div>
<div>[160873.054046] EtherCAT 0: Using slave main-0 as DC reference clock.<br>
</div>
<div>[160873.092391] EtherCAT 0: Slave states on main device: INIT.<br>
</div>
<div>[160873.140447] EtherCAT 0: Slave states on main device: PREOP.<br>
</div>
<div>[160945.654077] EtherCAT 0: 3 slave(s) responding on main device.<br>
</div>
<div>[160945.655528] EtherCAT 0: Scanning bus.<br>
</div>
<div>[160947.943148] EtherCAT 0: Bus scanning completed in 2288 ms.<br>
</div>
<div>[160947.943150] EtherCAT 0: Using slave main-0 as DC reference clock.<br>
</div>
<div>[160947.982211] EtherCAT 0: Slave states on main device: INIT, PREOP.<br>
</div>
<div>[160948.014240] EtherCAT 0: Slave states on main device: INIT.<br>
</div>
<div>[160948.046242] EtherCAT 0: Slave states on main device: PREOP.<br>
</div>
<div>[160984.085059] EtherCAT 0: 2 slave(s) responding on main device.<br>
</div>
<div>[160984.086367] EtherCAT 0: Scanning bus.<br>
</div>
<div>[160984.487953] EtherCAT 0: Bus scanning completed in 400 ms.<br>
</div>
<div>[160984.487955] EtherCAT 0: Using slave main-0 as DC reference clock.<br>
</div>
<div>[160984.517021] EtherCAT 0: Slave states on main device: INIT, PREOP.<br>
</div>
<div>[160984.541063] EtherCAT 0: Slave states on main device: INIT.<br>
</div>
<div>[160984.565093] EtherCAT 0: Slave states on main device: INIT, PREOP.<br>
</div>
<div>[160984.589103] EtherCAT 0: Slave states on main device: PREOP.<br>
</div>
<div>[161157.597419] EtherCAT: Requesting master 0...<br>
</div>
<div>[161157.597424] EtherCAT: Successfully requested master 0.<br>
</div>
<div>[161157.597587] EtherCAT 0: Domain0: Logical address 0x00000000, 36 byte, expected working counter 2.<br>
</div>
<div>[161157.597589] EtherCAT 0: Datagram domain0-0-main: Logical offset 0x00000000, 36 byte, type LRD at ffff8da6f70ecc18.<br>
</div>
<div>[161157.597601] EtherCAT 0: Master thread exited.<br>
</div>
<div>[161157.597603] EtherCAT 0: Starting EtherCAT-OP thread.<br>
</div>
<div>[161157.802764] EtherCAT WARNING 0: No app_time received up to now, abort DC time offset calculation.<br>
</div>
<div>[161158.602536] EtherCAT 0: Slave states on main device: INIT, PREOP.<br>
</div>
<div>[161159.706658] EtherCAT 0: Slave states on main device: PREOP.<br>
</div>
<div>[161168.507348] EtherCAT ERROR 0-main-1: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).<br>
</div>
<div>[161168.707340] EtherCAT 0: Slave states on main device: PREOP + ERROR.<br>
</div>
<div>[161168.707362] EtherCAT ERROR 0-main-1: AL status message 0x0050: "EEPROM No Access".<br>
</div>
<div>[161169.107372] EtherCAT 0-main-1: Acknowledged state PREOP.<br>
</div>
<div>[161169.307400] EtherCAT 0: Slave states on main device: PREOP.<br>
</div>
<span></span><br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Joachim<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Från:</b> Gavin Lambert <gavin.lambert@tomra.com><br>
<b>Skickat:</b> den 15 april 2020 01:49<br>
<b>Till:</b> Joachim Sällvin <joachim.sallvin@corpowerocean.com>; etherlab-users@etherlab.org <etherlab-users@etherlab.org><br>
<b>Ämne:</b> RE: reg_read ==> Failed to read register</font>
<div> </div>
</div>
<div lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
Err, “upload”, I mean. Uploading is reading from the device. I always get those ones mixed up.</p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
</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"></p>
<table>
<tbody style="font-size:75%; font-family:Calibri,Candara,Segoe,Optima,Arial,sans-serif; color:rgb(89,89,89)">
</tbody>
</table>
<p></p>
<p style="font-size:10pt; font-family:Arial"><img style="max-width: 100%; height: auto;" border="0" data-outlook-trace="F:1|T:1" src="cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png"><br>
<a href="http://www.compacsort.com"><img alt="TOMRA" width="33" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png"></a>
<a href="https://www.facebook.com/Compacsort"><img alt="Facebook" width="35" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png"></a>
<a href="https://www.linkedin.com/company/compac-sorting-equipment/"><img alt="Linkedin" width="35" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png"></a>
<a href="https://vimeo.com/compacsort"><img alt="Youtube" width="37" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png"></a>
<a href="https://twitter.com/compacsort"><img alt="twitter" width="33" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png"></a>
<a href="https://www.instagram.com/compacsort/"><img alt="instagram" width="33" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png"></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 0cm 0cm 0cm">
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b>From:</b> Gavin Lambert<br>
<b>Sent:</b> Wednesday, 15 April 2020 10:19<br>
<b>To:</b> Joachim Sällvin <joachim.sallvin@corpowerocean.com>; etherlab-users@etherlab.org<br>
<b>Subject:</b> Re: [etherlab-users] reg_read ==> Failed to read register</p>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
</p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
Register 0x6004 doesn’t exist. All registers have addresses < 0x1000. Perhaps you meant to use “download” instead of “reg_read”?</p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
</p>
<p><strong><span style="font-family:"Calibri",sans-serif; color:#595959">Gavin Lambert</span></strong><b><span style="color:#595959"><br>
</span></b><span style="color:#595959">Senior Software Developer</span></p>
<table class="x_MsoNormalTable" cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p><span style="font-size:10.0pt; font-family:"Arial",sans-serif"><img id="x_Picture_x0020_1" style="width:3.75in; height:1.0625in" width="360" height="102" data-outlook-trace="F:1|T:1" src="cid:image001.png@01D6131B.D84518A0"></span><span style="font-size:10.0pt; font-family:"Arial",sans-serif"><br>
</span><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.compacsort.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699680702&sdata=hP1tqYmJd1HpvkGbckxldzGUAWXuIecxUL9TzOHK8Po%3D&reserved=0"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; text-decoration:none"><img id="x_Picture_x0020_2" alt="TOMRA" style="width:.3437in; height:.3854in" width="33" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:image002.png@01D6131B.D84518A0"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FCompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699680702&sdata=plHesJhh12oiukMTw2DVbcPaZbKxMmUECQmJhMscYR4%3D&reserved=0"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; text-decoration:none"><img id="x_Picture_x0020_3" alt="Facebook" style="width:.3645in; height:.3854in" width="35" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:image003.png@01D6131B.D84518A0"></span></a><a href="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%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699690694&sdata=vMCuikpZenxP7idOFcwhqu%2FioAWTIV7r51%2B%2F27uWk3c%3D&reserved=0"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; text-decoration:none"><img id="x_Picture_x0020_4" alt="Linkedin" style="width:.3645in; height:.3854in" width="35" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:image004.png@01D6131B.D84518A0"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699690694&sdata=400fmao%2FjOiMbR9B18p8amPElwNTaOwE%2F3TykZoyBd4%3D&reserved=0"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; text-decoration:none"><img id="x_Picture_x0020_5" alt="Youtube" style="width:.3854in; height:.3854in" width="37" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:image005.png@01D6131B.D84518A0"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699690694&sdata=GLABUfRXWz1FJ2G9IeBqPUGwReI4EchE65itaEIwlBA%3D&reserved=0"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; text-decoration:none"><img id="x_Picture_x0020_6" alt="twitter" style="width:.3437in; height:.3854in" width="33" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:image006.png@01D6131B.D84518A0"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fcompacsort%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699700687&sdata=hVCwb6RKESpc9p4fJgR%2BKdHurbWDlQXDVSj5v0fRzko%3D&reserved=0"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; text-decoration:none"><img id="x_Picture_x0020_7" alt="instagram" style="width:.3437in; height:.3854in" width="33" height="37" border="0" data-outlook-trace="F:1|T:1" src="cid:image007.png@01D6131B.D84518A0"></span></a><span style="font-size:10.0pt; font-family:"Arial",sans-serif"></span></p>
<p><b><span style="font-size:8.5pt; color:#595959">COMPAC SORTING EQUIPMENT LTD</span></b><span style="font-size:8.5pt; color:#595959"> | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand<br>
Switchboard: +64 96 34 00 88 | <a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tomra.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699700687&sdata=udYFWAMLuZKxo1uO0DwhFsDbqsfXiyECHmnX4o1s0Mc%3D&reserved=0">
tomra.com</a> </span></p>
<table class="x_MsoNormalTable" style="border-collapse:collapse" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="border-top:solid #595959 1.0pt; border-left:none; border-bottom:solid #595959 1.0pt; border-right:none; padding:0cm 0cm 0cm 0cm" valign="top">
<p><span style="font-size:8.5pt; color:#595959">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. </span></p>
</td>
</tr>
</tbody>
</table>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b>From:</b> Joachim Sällvin<br>
<b>Sent:</b> Tuesday, 14 April 2020 21:55<br>
<b>To:</b> <a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> [etherlab-users] reg_read ==> Failed to read register</p>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
</p>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Hi, what could cause this? What should I try to do next, ideas?</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="font-size:12.0pt; color:black">$ ethercat -p1 reg_read 0x6004 4</span></b></p>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Failed to read register: Input/output error</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="font-size:12.0pt; color:black">dmesg </span></b></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">[417280.571018] Datagram received.<br>
[417280.571024] EtherCAT ERROR 0-main-1: Register request failed (working counter is 0).</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">My application fails to exchange process data so I figured I'd try the command line tool. What could cause this kind of problem?
</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Some info about my system:</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="font-size:12.0pt; color:black">$ ethercat version</span></b></p>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">IgH EtherCAT master 1.5.2 35e7f0841303</span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">$ ethercat slaves</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">0 701:0 PREOP + EP3174-0002 4K. Ana. Eingang +/-10V, 0-10V, 0/4-20mA konfigurie</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">1 601:0 PREOP + LeineAndLinde Encoder</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">$ ethercat -p1 cstruct</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">/* Master 0, Slave 1, "LeineAndLinde Encoder"</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> * Vendor ID: 0x00000194</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> * Product code: 0x00000600</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> * Revision number: 0x00000001</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> */</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">ec_pdo_entry_info_t slave_1_pdo_entries[] = {</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x6004, 0x00, 32},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x1001, 0x00, 16},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x6503, 0x00, 16},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x6505, 0x00, 16},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x2060, 0x00, 32},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x6030, 0x00, 16},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x6040, 0x00, 16},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x2100, 0x00, 16},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">};</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">ec_pdo_info_t slave_1_pdos[] = {</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0x1a00, 8, slave_1_pdo_entries + 0}, /* Configurable TxPDO map with max 8 PDO */</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">};</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">ec_sync_info_t slave_1_syncs[] = {</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {2, EC_DIR_OUTPUT, 0, NULL, EC_WD_ENABLE},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {3, EC_DIR_INPUT, 1, slave_1_pdos + 0, EC_WD_DISABLE},</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> {0xff}</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">};</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> Thanks in advance,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Joachim Sällvin</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
</div>
</div>
</body>
</html>