Hello Richard, thank you for your quick repsonse and your advice.
We modified our program to fit your remarks, but the ecrt_slave_config_complete_sdo(...) function fails with the error "Failed to configure SDO: Invalid argument" and a return code smaller than zero. Also some errors appear in dmesq log: [ +0,359596] EtherCAT ERROR 0-4: SDO upload 0x1600:00 aborted. [ +0,000010] EtherCAT ERROR 0-4: SDO abort message 0x06020000: "This object does not exist in the object directory". [ +0,000005] EtherCAT ERROR 0-4: Failed to read number of mapped PDO entries. [ +0,000005] EtherCAT WARNING 0-4: Failed to read PDO entries for PDO 0x1600. After starting the program, the "Run" led of the EL6631 stays green, the "Pn Run/Err" keeps blinking green and the "Pn Err" is off. What am I missing? Attached you find the whole C program source code, dmesg log, output of the program and the XML definitions exported from TwinCAT. Best regards, Carlos Herkt Am 10.09.2014 09:16, schrieb Richard Hacker: > I don't see you using pn_config_master_0xf800 et al. anywhere in your > proggie! Besides you're missing CoE 0x8002. > > Mit freundlichem Gruß > > Richard Hacker >
/* Dmesg output after starting program */ [ +10,975693] EtherCAT: Requesting master 0... [ +0,000008] EtherCAT: Successfully requested master 0. [ +3,000440] EtherCAT 0: Domain0: Logical address 0x00000000, 98 byte, expected working counter 3. [ +0,000006] EtherCAT 0: Datagram domain0-0-main: Logical offset 0x00000000, 98 byte, type LRW. [ +0,000129] EtherCAT 0: Master thread exited. [ +0,000006] EtherCAT 0: Starting EtherCAT-OP thread. [ +0,001573] EtherCAT WARNING 0: No app_time received up to now, but master already active. [ +0,359596] EtherCAT ERROR 0-4: SDO upload 0x1600:00 aborted. [ +0,000010] EtherCAT ERROR 0-4: SDO abort message 0x06020000: "This object does not exist in the object directory". [ +0,000005] EtherCAT ERROR 0-4: Failed to read number of mapped PDO entries. [ +0,000005] EtherCAT WARNING 0-4: Failed to read PDO entries for PDO 0x1600. [ +0,579982] EtherCAT ERROR 0-4: SDO upload 0x1A00:00 aborted. [ +0,000012] EtherCAT ERROR 0-4: SDO abort message 0x06020000: "This object does not exist in the object directory". [ +0,000005] EtherCAT ERROR 0-4: Failed to read number of mapped PDO entries. [ +0,000004] EtherCAT WARNING 0-4: Failed to read PDO entries for PDO 0x1A00. [ +0,679983] EtherCAT 0: Domain 0: Working counter changed to 3/3. [ +0,050383] EtherCAT 0: Slave states on main device: PREOP, OP. [ +3,776881] EtherCAT 0: Releasing master... [ +0,000063] EtherCAT 0: Master thread exited. [ +0,000021] EtherCAT 0: Starting EtherCAT-IDLE thread. [ +0,000702] EtherCAT 0: Released. [ +0,138335] EtherCAT 0: Slave states on main device: PREOP.
ÿþ<