[etherlab-users] reg_read ==> Failed to read register
Gavin Lambert
gavin.lambert at tomra.com
Wed Apr 15 01:49:04 CEST 2020
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 <joachim.sallvin at corpowerocean.com>; etherlab-users at etherlab.org
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:image001.png at 01D6131B.D84518A0]
[cid:image002.png at 01D6131B.D84518A0]<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:image003.png at 01D6131B.D84518A0]<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:image004.png at 01D6131B.D84518A0]<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:image005.png at 01D6131B.D84518A0]<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:image006.png at 01D6131B.D84518A0]<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:image007.png at 01D6131B.D84518A0]<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: etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11438 bytes
Desc: image001.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0056.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1629 bytes
Desc: image002.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0057.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1750 bytes
Desc: image003.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0058.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1855 bytes
Desc: image004.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0059.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 1970 bytes
Desc: image005.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0060.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 20278 bytes
Desc: image006.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0061.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 1506 bytes
Desc: image007.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0062.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png
Type: image/png
Size: 11438 bytes
Desc: logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0063.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png
Type: image/png
Size: 1629 bytes
Desc: compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0064.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png
Type: image/png
Size: 1750 bytes
Desc: facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0065.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png
Type: image/png
Size: 1855 bytes
Desc: linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0066.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png
Type: image/png
Size: 1970 bytes
Desc: youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0067.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png
Type: image/png
Size: 20278 bytes
Desc: twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0068.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png
Type: image/png
Size: 1506 bytes
Desc: insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200414/79d7d540/attachment-0069.png>
More information about the Etherlab-users
mailing list