[etherlab-users] etherlab-users Digest, Vol 14, Issue 3

Hobin Yoon hobinyoon at gmail.com
Tue Jul 8 10:07:17 CEST 2008


I've removed unused SDOs by trial and error. Please find the attached
file. According to the 'CoE-Online' tab, I've added SDO configuration
functions.

static int __init init_mini_module(void)
{
    ecrt_request_master();

    ecrt_master_callbacks();

    ecrt_master_create_domain();

    ecrt_master_get_slave();

    if (ecrt_slave_conf_sdo8(ec_slave, 0x1C12, 0, 1)) goto out_release_master;
    if (ecrt_slave_conf_sdo16(ec_slave, 0x1C12, 1, 0x1600)) goto
out_release_master;
    if (ecrt_slave_conf_sdo8(ec_slave, 0x1C13, 0, 2)) goto out_release_master;
    if (ecrt_slave_conf_sdo16(ec_slave, 0x1C13, 1, 0x1A00)) goto
out_release_master;
    if (ecrt_slave_conf_sdo16(ec_slave, 0x1C13, 2, 0x1A01)) goto
out_release_master;

    ecrt_domain_register_pdo_list();

    ecrt_master_activate();

    start timer
}

Unfortunately, it gives the following errors after ecrt_master_activate().

EtherCAT ERROR: Timeout while checking SDO configuration on slave 0.
EtherCAT ERROR: SDO configuration failed for slave 0.
EtherCAT ERROR: Failed to configure slaves.

Regarding the DC, my XML has the following DC element. It seems to be
needed since it didn't work when removed in TwinCAT.

<Dc>
	<OpMode>
		<Name>Distributed Clocks</Name>
		<Desc>Distributed Clocks</Desc>
		<AssignActivate>#x0700</AssignActivate>
	</OpMode>
</Dc>

Best Regards,
Hobin Yoon

On Mon, Jul 7, 2008 at 6:58 PM, Florian Pose <fp at igh-essen.com> wrote:
> On Mon, Jul 07, 2008 at 02:09:21PM +0900, Hobin Yoon wrote:
>> Nothing in the 'Startup' tab. But I noticed there are a bunch of items
>> in the 'CoE-Online' tab. Plz find the attached file. Do I have to put
>> all the items into ec_slave_conf_sdo() function? I'm confused.
>
> No, this is the complete Sdo dictionary. Only certain Sdos have to be
> configured.
>
> Is it possible that the slave is configured to wait for a sync signal?
> The master 1.3 does not support DC.
>
> --
> Best regards,
> Florian Pose
>
> http://etherlab.org
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at lists.etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CoE-Online.simplified.png
Type: image/png
Size: 2759 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20080708/a33c9879/attachment-0003.png>


More information about the Etherlab-users mailing list