[etherlab-users] Etherlab example mini module
p.monden at gmail.com
p.monden at gmail.com
Wed Jul 25 18:07:16 CEST 2007
Hi Thomas,
thanks for your patches. I applied each (not both) and changed the
slave configuration in the ecdb.h according to my slave's .xml. (It
wasn't very different to yours)
My /sys/ethercat0/slave000/info now also contains all data, and the
configuration runs without errors in syslog.
I also changed the slave configuration in the mini module example
accordingly to:
ec_pdo_reg_t domain1_pdos[] = {
// ring position , vendor ID, product code, index and subindex of the PDO to map
{"0", 0x00000044, 0x7874656E, 0x2003, 0x07, &r_dig_out},
// {"0", 0x00000044, 0x7874656E, 0x2003, 0x04, &r_dig_in},
{}
};
However, inserting the module brings strange problems, as you already
see I commented out the second PDO, because Etherlab complains
EtherCAT ERROR: Slave 0 does not provide PDO 0x2003:4.
though it is specified in the xml and ecdb as well as the first PDO.
Commenting it out leads until configuration of the SyncManagers.
The Master sends the according datagram - and the netx does not
respond at all, and causes the functions to fail.
Strange thing is, that during slave setup the slave reacts positively
- to the same datagram...
Same thing happens when I start the master - stop it and start again
without reseting the slave. Etherlab complains: "Failed to set sync
managers - slave 0 did not respond."
Maybe the slave is in some strange state?
These things also happened before I applied the LRD/LWR patch. So it
is probably not an issue in that matter.
Any idea what is going wrong? Soon I will get a second netx-slave. I
already wonder what is happening then...
Greetings,
Philipp
More information about the Etherlab-users
mailing list