{"id":1979,"date":"2025-04-14T12:15:27","date_gmt":"2025-04-14T12:15:27","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=1979"},"modified":"2025-06-10T08:58:17","modified_gmt":"2025-06-10T08:58:17","slug":"sx10508-xwire-logging","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/","title":{"rendered":"SX10508: Xwire Logging"},"content":{"rendered":"\n<p>The SX10508 uses 3 XWire addresses.<\/p>\n\n\n\n<p>Xwire address 10 handles the Data that is sent to the SX10508 to be logged.&nbsp; This consists of an Xwire transmit and receive data block.<\/p>\n\n\n\n<p>Xwire address 11 handles the Time from the SX10508 real time clock.&nbsp; This is optional and consists of receive data block.<\/p>\n\n\n\n<p>Xwire address 12 handles the Date from the SX10508 real time clock.&nbsp; This is optional and consists of receive data block.<\/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\">Xwire address 10: Logging Data<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire transmit 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>Command<\/td><td>Byte<\/td><\/tr><tr><td>1<\/td><td>Length<\/td><td>Byte<\/td><\/tr><tr><td>2<\/td><td>Data0<\/td><td>Byte<\/td><\/tr><tr><td>3<\/td><td>Data1<\/td><td>Byte<\/td><\/tr><tr><td>&#8230;<\/td><td>&#8230;<\/td><td>&#8230;<\/td><\/tr><tr><td>n<\/td><td>DataN<\/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 transmit data block corresponds to the &#8216;<strong>Command<\/strong>&#8216; as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>;--Logger Commands<br>XLkCMD_Idle       EQU  '00  ;no action<br>XLkCMD_Write      EQU  '01  ;write data, length is the number of bytes to write<br>XLkCMD_Datestamp  EQU  '02  ;write a datestamp, length is number of directive characters, data is directive characters<br>XLkCMD_NewFile    EQU  '03  ;data may be an optional file name, otherwise the automatic sequence number is used<br>XLkCMD_AppendFile EQU  '04  ;data may be an optional file name, otherwise the automatic sequence number is used<br>XLkCMD_DeleteFile EQU  '05  ;data may be an optional file name, otherwise the current file is deleted<br>XLkCMD_GetTime    EQU  '06  ;gets the time from the clock in the logger board, returns HOURS,MINUTES,SECONDS<br>XLkCMD_GetDate    EQU  '07  ;gets the date from the clock in the logger board, returns DAY,MONTH,YEAR (year is 00 - 99)<br>XLkCMD_GetDOW     EQU  '08  ;gets the day of week, 0 = Monday thru 6 = Sunday<br>XLkCMD_SetTime    EQU  '09  ;sets the time where DATA1 thru 3 are HOURS,MINUTES,SECONDS<br>XLkCMD_SetDate    EQU  '0A  ;sets tha date where DATA1 thru 3 are DAY,MONTH,YEAR (year is 00 - 99)<br>XLkCMD_FlushData  EQU  '0B  ;force any data currently in the cache to be written to the card (this may decrease the life of your card)<br><\/pre>\n\n\n\n<p>When the &#8216;<strong>Length<\/strong>&#8216; and &#8216;<strong>DataX<\/strong>&#8216; bytes have all been set, load the &#8220;<strong>Command<\/strong>&#8221; byte to instruct the logger to execute the command.&nbsp; Some of the details of the commands are explained in the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/\">Serial Logging<\/a>&nbsp;page.<\/p>\n\n\n\n<p>If you need to send the same command (like Write) multiple times, simply toggle bit 7 of the command byte.&nbsp; In essence, bit 7 can be thought of as a &#8220;RepeatCommand&#8221; bit.&nbsp; Be sure to toggle only after you&#8217;ve loaded the&nbsp;<strong>Data<\/strong>&nbsp;and&nbsp;<strong>Length<\/strong>&nbsp;bytes.<\/p>\n\n\n\n<p>Memory location 1 in the Xwire transmit data block corresponds to the &#8216;<strong>Length<\/strong>&#8216; byte. This byte is set to the number of bytes of data that the Data Logger needs to log.<\/p>\n\n\n\n<p>Memory location 2, 3,<\/p>\n\n\n\n<p>The Transmit data block may consist of up to 32 bytes total.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire 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>CommandEcho<\/td><td>Byte<\/td><\/tr><tr><td>1<\/td><td>Result<\/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 receive data block corresponds to the &#8216;<strong>CommandEcho<\/strong>&#8216; byte from the Data Logger. When the &#8216;<strong>CommandEcho<\/strong>&#8216; byte matches the &#8216;<strong>Command<\/strong>&#8216; byte, the SDLogger has finished executing the command.<\/p>\n\n\n\n<p>Memory location 1 in the Xwire receive data block corresponds to the &#8216;<strong>Result<\/strong>&#8216; byte from the Data Logger. After a log attempt, the &#8216;<strong>Result<\/strong>&#8216; byte will be set to a value of 0-5 depending on whether it was a success or a failure.<\/p>\n\n\n\n<p>The following table depicts the result codes:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Result byte<\/th><th>Description<\/th><\/tr><tr><td>0<\/td><td>Successful<\/td><\/tr><tr><td>1<\/td><td>Card Not Present<\/td><\/tr><tr><td>2<\/td><td>Card Write Protected<\/td><\/tr><tr><td>3<\/td><td>Unknown File system<\/td><\/tr><tr><td>4<\/td><td>Open Error<\/td><\/tr><tr><td>5<\/td><td>General Failure<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire address 11: Time<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire 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 NVEM 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 Data loggers Real Time Clock will appear.<\/p>\n\n\n\n<p>The &#8216;Hours&#8217; byte is 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 Data loggers 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 Data loggers Real Time Clock will appear.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire address 12: Date<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire 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 receive data block corresponds to the &#8216;Day of the Week&#8217;, this is where the day of the week from the Data Loggers Real Time Clock will appear.<\/p>\n\n\n\n<p>The byte will contain a 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 Data Loggers Real Time Clock will appear.<\/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 Data Loggers Real Time Clock will appear.<\/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 Data Loggers 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\">Serial Logging<\/h6>\n\n\n\n<p>The SX10508 also allows&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-serial-logging\/\">serial logging<\/a>, using ASCII strings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SX10508 uses 3 XWire addresses. Xwire address 10 handles the Data that is sent to the SX10508 to be logged.&nbsp; This consists of an&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1962,"menu_order":4,"template":"","class_list":["post-1979","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>SX10508: Xwire Logging - 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=\"SX10508: Xwire Logging - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"The SX10508 uses 3 XWire addresses. Xwire address 10 handles the Data that is sent to the SX10508 to be logged.&nbsp; This consists of an...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T08:58:17+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\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/\",\"name\":\"SX10508: Xwire Logging - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-14T12:15:27+00:00\",\"dateModified\":\"2025-06-10T08:58:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/#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\":\"SX10508: Xwire SD Logger\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"SX10508: Xwire Logging\"}]},{\"@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":"SX10508: Xwire Logging - 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":"SX10508: Xwire Logging - SPLat Controls","og_description":"The SX10508 uses 3 XWire addresses. Xwire address 10 handles the Data that is sent to the SX10508 to be logged.&nbsp; This consists of an...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T08:58:17+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\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/","name":"SX10508: Xwire Logging - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-14T12:15:27+00:00","dateModified":"2025-06-10T08:58:17+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/sx10508-xwire-logging\/#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":"SX10508: Xwire SD Logger","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10508-xwire-sd-logger\/"},{"@type":"ListItem","position":5,"name":"SX10508: Xwire Logging"}]},{"@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\/1979","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\/1962"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=1979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}