{"id":325,"date":"2016-09-01T01:37:04","date_gmt":"2016-08-31T23:37:04","guid":{"rendered":"http:\/\/www.embedded-communication.com\/?p=325"},"modified":"2019-10-01T16:48:34","modified_gmt":"2019-10-01T14:48:34","slug":"ethercat-distributed-clocks","status":"publish","type":"post","link":"http:\/\/www.embedded-communication.com\/en\/ethercat\/ethercat-distributed-clocks\/","title":{"rendered":"EtherCAT Distributed Clocks"},"content":{"rendered":"<p><\/p>\n<h3 style=\"text-align: justify\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-330\" src=\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png\" alt=\"EtherCAT Distributed Clocks\" width=\"300\" height=\"68\" srcset=\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png 300w, http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-768x173.png 768w, http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks.png 800w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/h3>\n<h2>What are Distributed Clocks?<\/h2>\n<p style=\"text-align: justify\">\nEtherCAT uses <em>Distributed Clocks<\/em> (DC) to synchronize the timing of the slaves. To achieve this each slave needs its own local time which is provided by an local clock source. The first DC-capable slave in the network is usually used as <em>Reference Clock<\/em>. All other slave synchronize their clock based on this reference clock. To handle it the EtherCAT master regularly send a telegram which is filled with the time of the reference clock and it is read by all other slaves.<\/p>\n<p><!--more--><\/p>\n<h2 style=\"text-align: justify\"><strong>Run time measurement<\/strong><\/h2>\n<p style=\"text-align: justify\">Both the slaves as well as the cable cause a short delay of the telegrams on the network. To get a precise synchronization it is required to measure these delays and to take them into account. The master sends during the start-up phase a certain frame to determine the delays. Each slave writes the point of time of the reception of the frame into the frame &#8211; in both ways. Based on these timings the master is able to calculate the delays between each slaves.\n<\/p>\n<p style=\"text-align: justify\">In addition to the <em>Reference Clock<\/em> there is also a <em>Master Clock<\/em> which contains the real time. This clock can be used to adjust the <em>Reference Clock<\/em> at startup or later.<\/p>\n<p style=\"text-align: justify\">Thus the following effects can be compensated:<\/p>\n<ul style=\"text-align: justify\">\n<li>difference between local time and reference clock<\/li>\n<li>difference between <em>Reference Clock<\/em> and <em>Master Clock<\/em><\/li>\n<li>run time delays caused by the cables or salves<\/li>\n<li>drift of slave clocks by continuous correction of slave clocks<\/li>\n<\/ul>\n<h2 style=\"text-align: justify\">Usage of Distributed Clocks<\/h2>\n<p style=\"text-align: justify\">Normally the EtherCAT Slave Controller (ESC) has two time triggered interrupts SYNC0 and SYNC1. Using these interrupts it is possible for the application to react at a certain point of time or to trigger cyclic actions.<br \/>\nSuch actions may be the setting of output data or reading the inputs. Thus it can be ensured that all outputs of all slaves are set at the same time or all input data &#8211; e.g. used for a control loop controller &#8211; a taken at the same point of time.<br \/>\nA graphical tool such as the <a href=\"http:\/\/www.emtas.de\/en\/produkte\/ethercat-device-designer\">EtherCAT DeviceDesigner<\/a> is recommended to configure the <em>Distributed Clocks<\/em.><\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Deutsch.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[13,11,15,14,12],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-ethercat","tag-distributed-clocks","tag-ethercat","tag-synchronisation","tag-synchronisierung","tag-verteilte-uhren"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>EtherCAT Distributed Clocks - embedded communication<\/title>\n<meta name=\"description\" content=\"EtherCAT Distributed Clocks - kurz und knapp. Distributed Clocks zur Synchronisierung eines EtherCAT Netzwerkes. Prinzipien, Laufzeitbestimmung, Nutzung.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EtherCAT Distributed Clocks - embedded communication\" \/>\n<meta property=\"og:description\" content=\"EtherCAT Distributed Clocks - kurz und knapp. Distributed Clocks zur Synchronisierung eines EtherCAT Netzwerkes. Prinzipien, Laufzeitbestimmung, Nutzung.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\" \/>\n<meta property=\"og:site_name\" content=\"embedded communication\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-31T23:37:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-01T14:48:34+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png\" \/>\n<meta name=\"author\" content=\"Martin Ritz\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EmbeddedComm\" \/>\n<meta name=\"twitter:site\" content=\"@EmbeddedComm\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Martin Ritz\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\"},\"author\":{\"name\":\"Martin Ritz\",\"@id\":\"https:\/\/www.embedded-communication.com\/#\/schema\/person\/8acecf8de950ba35a4a7f9ce8bc66b60\"},\"headline\":\"EtherCAT Distributed Clocks\",\"datePublished\":\"2016-08-31T23:37:04+00:00\",\"dateModified\":\"2019-10-01T14:48:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\"},\"wordCount\":710,\"publisher\":{\"@id\":\"https:\/\/www.embedded-communication.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png\",\"keywords\":[\"Distributed Clocks\",\"EtherCAT\",\"Synchronisation\",\"Synchronisierung\",\"Verteilte Uhren\"],\"articleSection\":[\"EtherCAT\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\",\"url\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\",\"name\":\"EtherCAT Distributed Clocks - embedded communication\",\"isPartOf\":{\"@id\":\"https:\/\/www.embedded-communication.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png\",\"datePublished\":\"2016-08-31T23:37:04+00:00\",\"dateModified\":\"2019-10-01T14:48:34+00:00\",\"description\":\"EtherCAT Distributed Clocks - kurz und knapp. Distributed Clocks zur Synchronisierung eines EtherCAT Netzwerkes. Prinzipien, Laufzeitbestimmung, Nutzung.\",\"breadcrumb\":{\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage\",\"url\":\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png\",\"contentUrl\":\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/www.embedded-communication.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EtherCAT Distributed Clocks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.embedded-communication.com\/#website\",\"url\":\"https:\/\/www.embedded-communication.com\/\",\"name\":\"embedded communication\",\"description\":\"A blog about embedded communcation protocols.\",\"publisher\":{\"@id\":\"https:\/\/www.embedded-communication.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.embedded-communication.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.embedded-communication.com\/#organization\",\"name\":\"embedded communication\",\"url\":\"https:\/\/www.embedded-communication.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.embedded-communication.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/embedded-communication.png\",\"contentUrl\":\"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/embedded-communication.png\",\"width\":240,\"height\":240,\"caption\":\"embedded communication\"},\"image\":{\"@id\":\"https:\/\/www.embedded-communication.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/EmbeddedComm\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.embedded-communication.com\/#\/schema\/person\/8acecf8de950ba35a4a7f9ce8bc66b60\",\"name\":\"Martin Ritz\",\"url\":\"http:\/\/www.embedded-communication.com\/en\/author\/riemtas-de\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EtherCAT Distributed Clocks - embedded communication","description":"EtherCAT Distributed Clocks - kurz und knapp. Distributed Clocks zur Synchronisierung eines EtherCAT Netzwerkes. Prinzipien, Laufzeitbestimmung, Nutzung.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/","og_locale":"en_US","og_type":"article","og_title":"EtherCAT Distributed Clocks - embedded communication","og_description":"EtherCAT Distributed Clocks - kurz und knapp. Distributed Clocks zur Synchronisierung eines EtherCAT Netzwerkes. Prinzipien, Laufzeitbestimmung, Nutzung.","og_url":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/","og_site_name":"embedded communication","article_published_time":"2016-08-31T23:37:04+00:00","article_modified_time":"2019-10-01T14:48:34+00:00","og_image":[{"url":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png","type":"","width":"","height":""}],"author":"Martin Ritz","twitter_card":"summary_large_image","twitter_creator":"@EmbeddedComm","twitter_site":"@EmbeddedComm","twitter_misc":{"Written by":"Martin Ritz","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#article","isPartOf":{"@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/"},"author":{"name":"Martin Ritz","@id":"https:\/\/www.embedded-communication.com\/#\/schema\/person\/8acecf8de950ba35a4a7f9ce8bc66b60"},"headline":"EtherCAT Distributed Clocks","datePublished":"2016-08-31T23:37:04+00:00","dateModified":"2019-10-01T14:48:34+00:00","mainEntityOfPage":{"@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/"},"wordCount":710,"publisher":{"@id":"https:\/\/www.embedded-communication.com\/#organization"},"image":{"@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage"},"thumbnailUrl":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png","keywords":["Distributed Clocks","EtherCAT","Synchronisation","Synchronisierung","Verteilte Uhren"],"articleSection":["EtherCAT"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/","url":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/","name":"EtherCAT Distributed Clocks - embedded communication","isPartOf":{"@id":"https:\/\/www.embedded-communication.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage"},"image":{"@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage"},"thumbnailUrl":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png","datePublished":"2016-08-31T23:37:04+00:00","dateModified":"2019-10-01T14:48:34+00:00","description":"EtherCAT Distributed Clocks - kurz und knapp. Distributed Clocks zur Synchronisierung eines EtherCAT Netzwerkes. Prinzipien, Laufzeitbestimmung, Nutzung.","breadcrumb":{"@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#primaryimage","url":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png","contentUrl":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/distributed-clocks-300x68.png"},{"@type":"BreadcrumbList","@id":"http:\/\/www.embedded-communication.com\/ethercat\/ethercat-distributed-clocks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/www.embedded-communication.com\/"},{"@type":"ListItem","position":2,"name":"EtherCAT Distributed Clocks"}]},{"@type":"WebSite","@id":"https:\/\/www.embedded-communication.com\/#website","url":"https:\/\/www.embedded-communication.com\/","name":"embedded communication","description":"A blog about embedded communcation protocols.","publisher":{"@id":"https:\/\/www.embedded-communication.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.embedded-communication.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.embedded-communication.com\/#organization","name":"embedded communication","url":"https:\/\/www.embedded-communication.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.embedded-communication.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/embedded-communication.png","contentUrl":"http:\/\/www.embedded-communication.com\/wp-content\/uploads\/2016\/08\/embedded-communication.png","width":240,"height":240,"caption":"embedded communication"},"image":{"@id":"https:\/\/www.embedded-communication.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/EmbeddedComm"]},{"@type":"Person","@id":"https:\/\/www.embedded-communication.com\/#\/schema\/person\/8acecf8de950ba35a4a7f9ce8bc66b60","name":"Martin Ritz","url":"http:\/\/www.embedded-communication.com\/en\/author\/riemtas-de\/"}]}},"_links":{"self":[{"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":15,"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":851,"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/posts\/325\/revisions\/851"}],"wp:attachment":[{"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.embedded-communication.com\/en\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}