[etherlab-users] Ethercat/ProfiNet - add correct slave configuration to program
Richard Hacker
ha at igh.de
Wed Sep 10 15:25:44 CEST 2014
I am not sure where the problem is. Where did you get this CoE
configuration from? Where did you get the PDO's from?
Increase the debugging:
# ethercat debug 1
or even
# ethercat debug 2
if you're brave in another step.
Am 2014-09-10 14:15, schrieb Carlos Herkt:
> 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
>>
>
>
>
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
More information about the Etherlab-users
mailing list