[etherlab-users] reg_read ==> Failed to read register

Joachim Sällvin joachim.sallvin at corpowerocean.com
Tue Apr 14 11:54:43 CEST 2020


Hi, what could cause this? What should I try to do next, ideas?

$ ethercat -p1 reg_read 0x6004 4
Failed to read register: Input/output error

dmesg
[417280.571018] Datagram received.
[417280.571024] EtherCAT ERROR 0-main-1: Register request failed (working counter is 0).

My application fails to exchange process data so I figured I'd try the command line tool. What could cause this kind of problem?

Some info about my system:

$ ethercat version
IgH EtherCAT master 1.5.2 35e7f0841303


$ ethercat slaves
0  701:0  PREOP  +  EP3174-0002 4K. Ana. Eingang +/-10V, 0-10V, 0/4-20mA konfigurie
1  601:0  PREOP  +  LeineAndLinde Encoder


$ ethercat -p1 cstruct
/* Master 0, Slave 1, "LeineAndLinde Encoder"
 * Vendor ID:       0x00000194
 * Product code:    0x00000600
 * Revision number: 0x00000001
 */

ec_pdo_entry_info_t slave_1_pdo_entries[] = {
    {0x6004, 0x00, 32},
    {0x1001, 0x00, 16},
    {0x6503, 0x00, 16},
    {0x6505, 0x00, 16},
    {0x2060, 0x00, 32},
    {0x6030, 0x00, 16},
    {0x6040, 0x00, 16},
    {0x2100, 0x00, 16},
};

ec_pdo_info_t slave_1_pdos[] = {
    {0x1a00, 8, slave_1_pdo_entries + 0}, /* Configurable TxPDO map with max 8 PDO */
};

ec_sync_info_t slave_1_syncs[] = {
    {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},
    {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},
    {2, EC_DIR_OUTPUT, 0, NULL, EC_WD_ENABLE},
    {3, EC_DIR_INPUT, 1, slave_1_pdos + 0, EC_WD_DISABLE},
    {0xff}
};

 Thanks in advance,

Joachim Sällvin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/232573de/attachment-0002.htm>


More information about the Etherlab-users mailing list