{"id":1397,"date":"2025-04-10T11:51:04","date_gmt":"2025-04-10T11:51:04","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=1397"},"modified":"2025-04-28T06:26:23","modified_gmt":"2025-04-28T06:26:23","slug":"hmi430-700-rtc","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/","title":{"rendered":"HMI430\/700: RTC"},"content":{"rendered":"\n<h6 class=\"wp-block-heading\">Accuracy<\/h6>\n\n\n\n<p>The RTC on the HMI430\/700 is factory calibrated to better than 1ppm.&nbsp; This means it may lose or gain no more than 2 seconds per month.&nbsp; The usual caveats about variations in temperature and humidity apply as both will also impact the clock accuracy and make the 2 second figure worse.&nbsp; Anyway we do what we can to make it pretty good.<\/p>\n\n\n\n<p>Note though, that there is an interesting point relating to how the HMI CPU keeps the RTC accurate.&nbsp; At some point within a 36hr window, it will either add or remove one whole second.&nbsp; So if you&#8217;re watching the clock just at the moment it decides to remove a second you&#8217;ll see the time go:<\/p>\n\n\n\n<p><strong>11:43:25<\/strong><br><strong>11:43:27<\/strong><\/p>\n\n\n\n<p>Yes dear reader, 1 whole second may disappear, in this case 11:43:26 ceased to exist.&nbsp; This is the CPU tweaking the time to ensure that over the long term, it remains accurate.&nbsp; It means that when the time said 11:43:25 it was much. much nearer 11:43:26.&nbsp; So when the next second ticked over, the CPU adjusted the clock to 11:43:27 and it&#8217;s now accurate again.<\/p>\n\n\n\n<p>If you are using the RTC to trigger events, your best plan is to use the RTCEvent functions as these can cope with missing or added seconds.&nbsp; However if you&#8217;re doing yourself, simply avoid making &#8220;equal to&#8221; comparisons.&nbsp; Instead use &#8220;greater than or equal to&#8221; so any missing seconds won&#8217;t foil your application.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Day of Week<\/h6>\n\n\n\n<p>This should make your day.&nbsp; Unlike some other SPLat controllers, the day of week is calculated automatically.&nbsp; For example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   LoadX 24<br>   RTCPopSS       ;set the day<br>   LoadX 9<br>   RTCPopMM       ;set the month<br>   LoadX 14<br>   RTCPopHH       ;set the year<br>   RTCWriteDate   ;write the date to the RTC<\/pre>\n\n\n\n<p>Will automatically set the day to Wednesday (the date is 24 September 2014).\u00a0 Note if you replace\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/realtime-clock\/rtc-instructions\/rtcwritedate-d16\/\">RTCWriteDate<\/a>\u00a0with\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/realtime-clock\/rtcwritedn-d16\/\">RTCWriteDN<\/a>, the day number will be set to match the date in the RTC registers\u00a0<strong>without<\/strong>\u00a0altering the actual date.\u00a0 This can make it easy to display the day while your user is entering the date\/month.year.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Accuracy The RTC on the HMI430\/700 is factory calibrated to better than 1ppm.&nbsp; This means it may lose or gain no more than 2 seconds&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1346,"menu_order":16,"template":"","class_list":["post-1397","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>HMI430\/700: RTC - 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=\"HMI430\/700: RTC - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"Accuracy The RTC on the HMI430\/700 is factory calibrated to better than 1ppm.&nbsp; This means it may lose or gain no more than 2 seconds...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-28T06:26:23+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=\"2 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-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/\",\"name\":\"HMI430\/700: RTC - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-10T11:51:04+00:00\",\"dateModified\":\"2025-04-28T06:26:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/#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: Controllers\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"HMI430\/700 product documentation\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"HMI430\/700: RTC\"}]},{\"@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":"HMI430\/700: RTC - 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":"HMI430\/700: RTC - SPLat Controls","og_description":"Accuracy The RTC on the HMI430\/700 is factory calibrated to better than 1ppm.&nbsp; This means it may lose or gain no more than 2 seconds...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/","og_site_name":"SPLat Controls","article_modified_time":"2025-04-28T06:26:23+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/","name":"HMI430\/700: RTC - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-10T11:51:04+00:00","dateModified":"2025-04-28T06:26:23+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/hmi430-700-rtc\/#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: Controllers","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/"},{"@type":"ListItem","position":4,"name":"HMI430\/700 product documentation","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/"},{"@type":"ListItem","position":5,"name":"HMI430\/700: RTC"}]},{"@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\/1397","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\/1346"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=1397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}