Hi,
I currently use the PC (running TwinCAT 3.1) -> EtherCAT slave controller piggyback (ET1100) -> tms320f2812 DSP (slave running SOES slave stack code).
My intention is to use Distributed clock (DC) to synchronize the communication to/from PC to the DSP.
What I understand - I need to edit the DC settings in the ESI files that will be flashed into the ET1100 through TwinCAT (or another way). There will be a SYNC signal to/from ET1100 and the DSP to keep them in sync. I also understand the DC protocol theory.
What I am doubtful - The DC is a 64 bit value that is communicated at the start of every frame by the master (in my case the PC). This value is then taken by each slave in the ethercat topology lines and then each slave adds it's local timestamp (64 bit value) to it's section of the frame. Eventually the master and the slave will take each other's values (depending on which one is made the reference) and then corrects it's own clock to the desired value. PLEASE CORRECT ME ON THIS IF I AM WRONG. I want the puzzle (SOFTWARE FLOW) to be crystal clear in my head.
What I DON"T understand (I tried to write this question to SOES rt-labs but they didn't respond and also Beckhoff wouldnt support because I am using SOES) -
How to handle the DC (functions) in the TI's DSP. In my head this understanding is very blur and some light (in the form of informaiton or sample code) in this direction will be very helpful. Please note I don't use AL_IRQ interrupts.
I will re-iterate the problem -
1. I don't have a clear understanding of how the FRAME (from master to slave and back) will look like when DC is added.
2. I don't understand how the functions will look like (what do these functions perform) in the DSP side (slave) to handle this DC.
Any information or light in this direction will be greatly appreciated. I have looked through the material in the ethercat.org and beckhoff.com website. They have information that I understand (like the theory behind DC and how it will help). I couldn't find information on the questions I ask here.
Kind Regards,
Raghu