Dear Andreas and Jorge

Thanks very much for your help, I was able to get it working with no
trouble at all on PREEMPT_RT. I include the configuration code in case
other users find it helpful (the DC offsets may need to be adjusted).

Regards

James

    int s;
    for(s = 1; s < oversampling_factor; s++)
    {
        assert(ecrt_slave_config_pdo_mapping_add(sc, 0x1a00, 0x6000 + s
* 0x0010, 0x01, 16) == 0);
    }

    for(s = 0; s < oversampling_factor; s++)
    {
        off_ain[s] = ecrt_slave_config_reg_pdo_entry(sc, 0x6000 + s *
0x0010, 1, domain1, NULL);
    }

    off_count  = ecrt_slave_config_reg_pdo_entry(sc, 0x6800, 1, domain1,
NULL);

    ecrt_slave_config_dc(sc, 0x0730, PERIOD_NS / oversampling_factor, 0,
PERIOD_NS, 0);


> -----Original Message-----
> From: Andreas Stewering-Bone [mailto:[email protected]]
> Sent: 17 December 2010 15:45
> To: [email protected]
> Cc: Rowland, James (DLSLtd,RAL,DIA)
> Subject: Re: [etherlab-users] Beckhoff EL3702 and EL4732
> 
> Hello James,
> 
> It is possible to use this modules,
> but they are real complex slaves.
> 
> - First of all you you have to set up a system with good realtime
> behavior.
> - Setup DC
> - Dependend on your oversampling factor you have to calc your pdo
> configuration, please see the entries in the oversampling section of
> the slave
> description.
> - Code your configuration to C
> - Have fun
> 
> Greatings
> 
> Andreas
> 
> Am Donnerstag 16 Dezember 2010 schrieb [email protected]:
> > Hi
> >
> > Please can anyone let me know if they have been able to make
Beckhoff
> > oversampling modules work in oversampling mode. I have a EL3702 and
a
> > EL4732 and I would be very grateful for any examples.
> >
> > Regards
> >
> > James


-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 



_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to