[etherlab-users] Problem About EL2252

2018-05-15 Thread mfyhit
Hi, guys I have written a program about Beckhoff EL2252. But there are some problems during running. The message is showed below. // Configuring PDOs... Activating master... Starting timer...

Re: [etherlab-users] How to perform DC time synchronisation the right way?

2018-05-15 Thread Graeme Foot
Hi, Firstly, there is no way of checking if the frame transfer is complete. One comment, to reduce the jitter and offset of the master application time, place the clock_gettime(), ecrt_master_application_time(), ecrt_master_sync_reference_clock(), ecrt_master_sync_slave_clocks() calls

Re: [etherlab-users] How to perform DC time synchronisation the right way?

2018-05-15 Thread Gavin Lambert
On 16 May 2018 4:34 a.m., quoth Michael Ruder: > Now I want to have the slaves also synchronized to this time frame and have > the following dilemma: > > - normally, I would like to call > > // cycle begins > > ecrt_master_receive(master); > ecrt_domain_process(domain1); > > // do a lot of

Re: [etherlab-users] Cyclic Synchronous Position mode

2018-05-15 Thread Graeme Foot
Note: from your previous email you are also delaying the send to the start of the next cycle, which adds another cycle of delay. Graeme. From: etherlab-users [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of Graeme Foot Sent: Wednesday, 16 May 2018 10:57 AM To: Michael Ruder

Re: [etherlab-users] Cyclic Synchronous Position mode

2018-05-15 Thread Graeme Foot
It's something like -- t = 0.0 : master receive datagram 0, receive actual position -2 t = 0.1 : master send datagram 1 (target position 1) t = 0.2 : drive receive datagram 1 (actual position -1 returned) t = 0.5 : drive sync 0, target position 1 becomes active, actual position 0 is

[etherlab-users] Cyclic Synchronous Position mode

2018-05-15 Thread Michael Ruder
Hello, I am currently experimenting with the Cyclic Synchronous Position mode of ELMO drives. I am using EtherLab 1.5.2 from the 1.5.2 branch with ec_generic on a PREEMPT RT system (kernel 4.14.28). If I compare the current position the drive reports in the frame I receive after I send a

[etherlab-users] How to perform DC time synchronisation the right way?

2018-05-15 Thread Michael Ruder
Hello, I am progressing quite well with EtherLab and am currently working on synchronizing outputs/movement with the Master time. We are using the Master 1.5.2 from the 1.5.2 branch, ec_generic driver with PREEMPT RT (kernel 4.14.28). In our application, we need to be synchronized to the real

Re: [etherlab-users] I'd like to ask a couple of questions about IgH ethercat master and AKD

2018-05-15 Thread Sebastien Blanchet
Hi, There was a bug in my example, EC_WRITE_S32 must be used (instead of EC_WRITE_S16) to set the target velocity. I have attached the new version that works. regards, -- Sebastien BLANCHET On 05/14/2018 05:57 PM, Guido wrote: Dear Sebastien Blanchet,     I've tried to use your velocity