Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prove synchronization between master and slave ? #653

Open
casinia opened this issue Oct 19, 2022 · 3 comments
Open

How to prove synchronization between master and slave ? #653

casinia opened this issue Oct 19, 2022 · 3 comments

Comments

@casinia
Copy link

casinia commented Oct 19, 2022

I used the examples in red_test.c. My question is what data do I need to record to prove that the master and slave are perfectly synchronized, and how do I compare these data?

@casinia
Copy link
Author

casinia commented Oct 19, 2022

The PDO cycle is 1ms, so I record the difference between the DC time received in two consecutive cycles and observe the error between this difference and 1ms. Can the synchronization between the master station and slave station be verified in this way?

@ArthurKetels
Copy link
Contributor

Yes this an accurate way to measure the relative distances between the master and slave reference clock. For synchronization I often refer to my earlier post : #487 (comment)

@casinia
Copy link
Author

casinia commented Oct 20, 2022

Thank you so much Arthur.
I grabbed the ec_DCtime of two consecutive cycles on master, and then recorded the difference between ec_DCtime (x+1) and ec_DCtime (x). Here is the data I recorded. And I think master and slave have successfully synchronized, right?

logged.txt

Plus, in # 487, you mentioned "Then you need to place the transmission of the master PDO cycle in the time slot of the slave (again by slave manufacturer data). For example when the sync0 is fired every 1000us the PDO transmission reaches the slave at 500us offset“,what functions do I need to implement it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants