{"id":2014,"date":"2025-04-14T12:53:55","date_gmt":"2025-04-14T12:53:55","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=2014"},"modified":"2025-06-10T09:10:28","modified_gmt":"2025-06-10T09:10:28","slug":"sx10509-date-and-time","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/","title":{"rendered":"SX10509: Date and Time"},"content":{"rendered":"\n<p>The SX10509 synchronises the date and time on power-up, and every 24 hours, with an internet NTP server. The time and date are very easy to read out, and can be used for example to time stamp data being sent to the server.<\/p>\n\n\n\n<p>The timezone offset for your local time may be set in the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-configuring-your-sch\/sx10509-time-configuration\/\">Time Configuration<\/a>&nbsp;tab. If you set it to zero you will get GMT (Zulu time). There is no automatic provision for daylight saving time. You may choose to ignore both the date and time items, or have your controller receive one or both. Just add the address for each one you want to your Xwire configuration table.<\/p>\n\n\n\n<p>The following tables depict how the Xwire data blocks need to appear in memory.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Time Address<\/h6>\n\n\n\n<p>The Xwire time address handles the internet synchronised time from the SX10509 real time clock. This is optional and requires its own an Xwire receive data block if used.<\/p>\n\n\n\n<p>Note: This address is set to 65 by default but can be changed in the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-configuring-your-sch\/sx10509-xwire-configuration\/\">Xwire Configuration<\/a>&nbsp;tab.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire time receive data block:<\/h6>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Memory<\/th><th>Description<\/th><th>Format<\/th><\/tr><tr><td>0<\/td><td>Hours<\/td><td>Byte<\/td><\/tr><tr><td>1<\/td><td>Minutes<\/td><td>Byte<\/td><\/tr><tr><td>2<\/td><td>Seconds<\/td><td>Byte<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Note that this data block does not need to start at memory location 0. The data block can be moved anywhere in memory as long as it stays together, is in the order above and is defined in the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o2970\">NVEM<\/a>&nbsp;Xwire table in the program code.<\/p>\n\n\n\n<p>Memory location 0 in the Xwire receive data block corresponds to the &#8216;Hours&#8217;, this is where the hour count from the SX10509 Real Time Clock will appear.<\/p>\n\n\n\n<p>The &#8216;Hours&#8217; byte is an 8-bit integer (binary) in 24-hour format.<\/p>\n\n\n\n<p>Memory location 1 in the Xwire receive data block corresponds to the &#8216;Minutes&#8217;, this is where the minute count from the SX10509s Real Time Clock will appear.<\/p>\n\n\n\n<p>Memory location 2 in the Xwire receive data block corresponds to the &#8216;Seconds&#8217;, this is where the second count from the SX10509s Real Time Clock will appear.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Date Address<\/h6>\n\n\n\n<p>The Xwire date address handles the internet synchronised Local Date from the SX10509 real time clock. This is optional and requires its own an Xwire receive data block if used.<\/p>\n\n\n\n<p>Note: This address is set to 66 by default but can be changed in the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-configuring-your-sch\/sx10509-xwire-configuration\/\">Xwire Configuration<\/a>&nbsp;tab.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire date receive data block:<\/h6>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Memory<\/th><th>Description<\/th><th>Format<\/th><\/tr><tr><td>0<\/td><td>Day of the Week<\/td><td>Byte<\/td><\/tr><tr><td>1<\/td><td>Day of the Month<\/td><td>Byte<\/td><\/tr><tr><td>2<\/td><td>Month<\/td><td>Byte<\/td><\/tr><tr><td>3<\/td><td>Year<\/td><td>Byte<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Note that this data block does not need to start at memory location 0. The data block can be moved anywhere in memory as long as it stays together, is in the order above and is defined in the NVEM Xwire table in the program code.<\/p>\n\n\n\n<p>Memory location 0 in the Xwire date receive data block corresponds to the &#8216;Day of the Week&#8217;, this is where the day of the week from the SX10509&#8217;s Real Time Clock will appear.<br>The byte will contain a binary number 0-6. 0 = Sunday. 6 = Saturday.<\/p>\n\n\n\n<p>Memory location 1 in the Xwire receive data block corresponds to the &#8216;Day of the Month&#8217;, this is where the day of the month from the SX10509&#8217;s Real Time Clock will appear.<br>The byte ranges from 1 thru 31 depending upon the number of days in the month.<\/p>\n\n\n\n<p>Memory location 2 in the Xwire receive data block corresponds to the &#8216;Month&#8217;, this is where the month from the SX10509&#8217;s Real Time Clock will appear.<br>The month ranges from 1 (January) thru 12 (December).<\/p>\n\n\n\n<p>Memory location 3 in the Xwire receive data block corresponds to the &#8216;Year&#8217;, this is where year from the SX10509&#8217;s Real Time Clock will appear. This is the year since 2000, so if a number of 10 was recalled from the &#8216;Year&#8217; byte it would mean it&#8217;s 2010.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Time Xwire buffer example:<\/h6>\n\n\n\n<p>To access this time, setup your SPLat controller with a zero length transmit buffer and a 3 byte receive buffer, for example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">;SX10509 TIME buffer\n               defBLOCK 3     ;receive buffer\nbHour          defBYTE\nbMin           defBYTE\nbSec           defBYTE\n\n   NVEM0\n \n   ;SX10509 Xwire TIME configuration\n\n   NV0Byte     65            ;Address of the SX10509 SPLat Call Home board, TIME\n   NV0Byte     0             ;Address of the Tx buffer (placeholder ... there is none)\n   NV0Byte     0             ;Length of the Tx buffer (there is none)\n   NV0Byte     bHour         ;Address of the Rx buffer\n   NV0Byte     3             ;Length of the Rx buffer\n   NV0Byte 255               ;End of table sentinel. <\/pre>\n\n\n\n<p>As shown in the example above, the time will be returned in 3 bytes as hours, minutes and seconds. Hours ranges from 0 thru 23, that is, 24 hour time.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Date Xwire buffer example:<\/h6>\n\n\n\n<p>To access this time, setup your SPLat controller with a zero length transmit buffer and a 4 byte receive buffer, for example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">;SX10509 DATE Buffer\n                defBLOCK 4     ;receive buffer\nbWDay           defBYTE\nbMDay           defBYTE\nbMon            defBYTE\nbYear2000       defBYTE\n\n\n   NVEM0\n \n   ;SX10509 Xwire DATE configuration\n\n   NV0Byte     66             ;Address of the SX10509 SPLat Call Home board, DATE\n   NV0Byte     0              ;Address of the Tx buffer\n   NV0Byte     0              ;Length of the Tx buffer\n   NV0Byte     bYear2000      ;Address of the Rx buffer\n   NV0Byte     4              ;Length of the Rx buffer\n \n   NV0Byte      255           ;End of table sentinel. <\/pre>\n\n\n\n<p>As shown in the example above, the date will be returned in 4 bytes as day of week, day of month, month and year since 2000.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SX10509 synchronises the date and time on power-up, and every 24 hours, with an internet NTP server. The time and date are very easy&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2007,"menu_order":2,"template":"","class_list":["post-2014","spl_knowledgebase","type-spl_knowledgebase","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SX10509: Date and Time - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SX10509: Date and Time - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"The SX10509 synchronises the date and time on power-up, and every 24 hours, with an internet NTP server. The time and date are very easy...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T09:10:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/\",\"name\":\"SX10509: Date and Time - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-14T12:53:55+00:00\",\"dateModified\":\"2025-06-10T09:10:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Product documentation\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Product documentation: Xwire peripherals\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SX10509: Ethernet\/Internet &#8220;SPLat Call Home&#8221;\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"SX10509: Programming the SPLat controller\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"SX10509: Date and Time\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SX10509: Date and Time - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"SX10509: Date and Time - SPLat Controls","og_description":"The SX10509 synchronises the date and time on power-up, and every 24 hours, with an internet NTP server. The time and date are very easy...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T09:10:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/","name":"SX10509: Date and Time - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-14T12:53:55+00:00","dateModified":"2025-06-10T09:10:28+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/sx10509-date-and-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"Product documentation","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/"},{"@type":"ListItem","position":3,"name":"Product documentation: Xwire peripherals","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/"},{"@type":"ListItem","position":4,"name":"SX10509: Ethernet\/Internet &#8220;SPLat Call Home&#8221;","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/"},{"@type":"ListItem","position":5,"name":"SX10509: Programming the SPLat controller","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10509-ethernet-internet-splat-call-home\/sx10509-programming-the-splat-controller\/"},{"@type":"ListItem","position":6,"name":"SX10509: Date and Time"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/2014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/spl_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"up":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/2007"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=2014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}