Err, "upload", I mean.  Uploading is reading from the device.  I always get 
those ones mixed up.


Gavin Lambert
Senior Software Developer

[cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png]
[cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png]<http://www.compacsort.com>
 [cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png] 
<https://www.facebook.com/Compacsort>  
[cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png] 
<https://www.linkedin.com/company/compac-sorting-equipment/>  
[cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png] 
<https://vimeo.com/compacsort>  
[cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png] 
<https://twitter.com/compacsort>  
[cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png] 
<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: Gavin Lambert
Sent: Wednesday, 15 April 2020 10:19
To: Joachim Sällvin <[email protected]>; 
[email protected]
Subject: Re: [etherlab-users] reg_read ==> Failed to read register

Register 0x6004 doesn't exist.  All registers have addresses < 0x1000.  Perhaps 
you meant to use "download" instead of "reg_read"?


Gavin Lambert
Senior Software Developer


[cid:[email protected]]
[cid:[email protected]]<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>[cid:[email protected]]<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>[cid:[email protected]]<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>[cid:[email protected]]<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>[cid:[email protected]]<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>[cid:[email protected]]<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>

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%7C9323629b714e493269ec08d7e0c1e589%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637224995699700687&sdata=udYFWAMLuZKxo1uO0DwhFsDbqsfXiyECHmnX4o1s0Mc%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: Joachim Sällvin
Sent: Tuesday, 14 April 2020 21:55
To: [email protected]<mailto:[email protected]>
Subject: [etherlab-users] reg_read ==> Failed to read register

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

_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to