Is your colleague using exactly the same device as you are (i.e. you are moving 
your device to their desk) or are they using a different but theoretically 
identical device? If one or both devices have previously been used with a 
different master then they may have different default configurations, or you 
may be relying on a configured address that is not the default device state.  
Or if the devices are not identical (they might be the same model but different 
revisions) then they might require or default to different PDO layouts.

Ensure that you have called ecrt_slave_config_pdos or equivalent in addition to 
ecrt_domain_reg_pdo_entry_list or equivalent.

Inspect the output of ethercat slaves -v on both systems before attempting to 
run your application (reboot the device first if you have previously attempted 
to run your app).

Gavin Lambert

Software Engineer



[cid:TOMRA_CMYK_final_size_times_two_cd761a01-1d1f-446e-9316-8012271820b6.png]
 [cid:TF-FB-icon_b77c57e4-4990-4f9d-b3a2-8e6ab45df7f2.jpg] 
<https://www.facebook.com/TOMRA.Food/>  
[cid:TF-LinkedIn-icon_d54c4829-dcb9-450c-9187-34b26e85ebaa.jpg] 
<https://www.linkedin.com/company/tomra-food/>  
[cid:icons-social-media-twitter_small_2_4bae5ad2-4add-4314-a352-5b317f784956.jpg]
 <https://twitter.com/TOMRAFood>  
[cid:TF-Youtube-icon_8b2c830c-70d9-48da-a4db-db9191d346ba.jpg] 
<https://www.youtube.com/playlist?list=PLDD3B1A7BAE919EC6>  
[cid:TOMRAinstagram_45b30c55-490a-4f32-8fd3-998c152e3494.jpg] 
<https://www.instagram.com/tomrafood/>
 Compac Technologies Ltd | 4 Henderson Place | PO Box 13 516 | Onehunga 1061 | 
New Zealand

 Phone: +64 96 34 00 88 | https://www.compacsort.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: Pranay Tummalapalli
Sent: Friday, April 5, 2024 8:07 PM
To: etherlab-users@etherlab.org
Subject: [Etherlab-users] Slave shows INVALID PDO MAPPING even after giving PDO 
mapping



I have a fully functional and tested setup in my system for Ethercat running a 
DC Motor with a single EtherCAT drive. Below are my system configurations:

Master source: vectioneer/stable branch

OS: Ubuntu 22.04

Kernel: 5.15.0-97-generic

I am using the systemd ethercat service. And I have a custom folder under the 
examples where I have all source and exec files for my project. I have added 
the folder in examples/Makefile.am and added the directory to 
configure.ac<http://configure.ac>. In my system it build well and everything 
works. Motor runs, all EtherCAT functionalities work and motor goes to setpoint 
position in OP.

When I try to run the same setup in my colleague's system with the same 
configuration as my system including master source and kernel version, the same 
drive remains in PREOP. When I try to run the same script as my system, the 
drive goes to PREOP+ERR and system logs display INVALID PDO MAPPING, SLAVE 
REFUSED TO CHANGE STATE with error 0x0024.
What a I missing in this?
-- 
Etherlab-users mailing list
Etherlab-users@etherlab.org
https://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to