Closed Edphoenixmax closed 8 months ago
Thanks a lot for your help! I will have it try, Do I have to start a new thread to read the register system time difference?
I use the ecx_BRD function to read the value of 0x92c , but the value of it is a little strange. Is the value 0x800001a3 normal? Here is the wireshark trace , would you please help me with it? Thank you very much! ethercat-dc01.zip
The highest bit is the sign, eg. +/-. So you should disregard that to know that the differnece is 419 ns. Is that acceptable for you, then your good.
I'll close this issue, you have so many going on in parallel.
I have three problems: 1.If I have two slaves, how to make sure that I have settled the DC correctly? Can I get it from the pcap I caught by wireshark? 2.I use codesys and TwinCAT to settle DC, and I export the ENI file , there is some differences confuse me. There is a Initcmd called Set DC activation , the value of this cmd is 003( I understand that is sync0 activated ),but the address of this cmd is not 0x981 but 0x980,and I check the pcap caught by wireshark , I find that the value of ox981 is in the frame of 0x980, and I donnot know why.(the two picture is ecat.ado==0x980 filter and ecat==0x981 filter) 3.I use ecx_sync0 function and ENI file to set cycletime after configdc(),but I check the frame from wireshark, the last value of 0x981 is 0 instead of 3 , and I cannot change to state OP. Thank you very much!