<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
<span>Hi, what could cause this? What should I try to do next, ideas?<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><b>$ ethercat -p1 reg_read 0x6004 4</b><br>
</span>
<div>Failed to read register: Input/output error</div>
<div><br>
</div>
<div><b>dmesg </b><span><br>
</span></div>
<div><span>[417280.571018] Datagram received.<br>
</span><span>[417280.571024] EtherCAT ERROR 0-main-1: Register request failed (working counter is 0).</span><br>
</div>
<div><br>
</div>
<div>My application fails to exchange process data so I figured I'd try the command line tool. What could cause this kind of problem?
<br>
</div>
<div><br>
</div>
<div>Some info about my system:</div>
<div><br>
</div>
<div><span><b>$ ethercat version</b><br>
</span>
<div>IgH EtherCAT master 1.5.2 35e7f0841303<br>
</div>
<span></span><br>
</div>
<div><br>
</div>
<span></span><span>$ ethercat slaves<br>
</span>
<div>0 701:0 PREOP + EP3174-0002 4K. Ana. Eingang +/-10V, 0-10V, 0/4-20mA konfigurie<br>
</div>
<div>1 601:0 PREOP + LeineAndLinde Encoder</div>
<div><br>
</div>
<div><br>
</div>
<span></span><span>$ ethercat -p1 cstruct<br>
</span>
<div>/* Master 0, Slave 1, "LeineAndLinde Encoder"<br>
</div>
<div> * Vendor ID: 0x00000194<br>
</div>
<div> * Product code: 0x00000600<br>
</div>
<div> * Revision number: 0x00000001<br>
</div>
<div> */<br>
</div>
<div><br>
</div>
<div>ec_pdo_entry_info_t slave_1_pdo_entries[] = {<br>
</div>
<div> {0x6004, 0x00, 32},<br>
</div>
<div> {0x1001, 0x00, 16},<br>
</div>
<div> {0x6503, 0x00, 16},<br>
</div>
<div> {0x6505, 0x00, 16},<br>
</div>
<div> {0x2060, 0x00, 32},<br>
</div>
<div> {0x6030, 0x00, 16},<br>
</div>
<div> {0x6040, 0x00, 16},<br>
</div>
<div> {0x2100, 0x00, 16},<br>
</div>
<div>};<br>
</div>
<div><br>
</div>
<div>ec_pdo_info_t slave_1_pdos[] = {<br>
</div>
<div> {0x1a00, 8, slave_1_pdo_entries + 0}, /* Configurable TxPDO map with max 8 PDO */<br>
</div>
<div>};</div>
<div><br>
</div>
<span>ec_sync_info_t slave_1_syncs[] = {<br>
</span>
<div> {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},<br>
</div>
<div> {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},<br>
</div>
<div> {2, EC_DIR_OUTPUT, 0, NULL, EC_WD_ENABLE},<br>
</div>
<div> {3, EC_DIR_INPUT, 1, slave_1_pdos + 0, EC_WD_DISABLE},<br>
</div>
<div> {0xff}<br>
</div>
<div>};<br>
</div>
<span></span>
<div><br>
</div>
<span> Thanks in advance,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Joachim Sällvin</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span></span><br>
</div>
</body>
</html>