{"id":3166,"date":"2025-04-17T09:31:57","date_gmt":"2025-04-17T09:31:57","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=3166"},"modified":"2025-05-07T10:55:57","modified_gmt":"2025-05-07T10:55:57","slug":"sx10500-template","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/","title":{"rendered":"SX10500 template"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"605\" src=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif\" alt=\"\" class=\"wp-image-3167\"\/><\/figure>\n\n\n\n<p>The SX10500 Active Template provides easy access to a\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10500-dual-k-type-thermocouple-board\/\">SX10500 dual thermocouple Xwire peripheral board<\/a>. The board supports two\u00a0<a href=\"http:\/\/www.google.com\/search?q=K-type+thermocouples&amp;ie=UTF-8\">K-type thermocouples<\/a>\u00a0and gives temperature readings from 0\u00baC to 1024\u00baC with 0.25\u00baC resolution. The board uses the\u00a0<a href=\"http:\/\/www.google.com\/search?hl=en&amp;safe=off&amp;q=max6675&amp;btnG=Search\">MAX6675 chip<\/a>\u00a0and reflects its performance.<\/p>\n\n\n\n<p>The template settings are:<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Name box<\/h6>\n\n\n\n<p>When you Save your altered template and settings, the file produced will have this name with the extension .tp1. The name will also be used in all the program labels in the generated code, including the subroutines used to access the code generated by the template. If you change Name then all subroutine names will change.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Save button<\/h6>\n\n\n\n<p>Saves the current settings in a template file named whatever you have set in the Name box<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Builder button<\/h6>\n\n\n\n<p>When depressed, the code generated will contain Builder tags. SPLat Active Templates are designed primarily to be used with Builder. Builder gives you the ability to make your programs modular, with the various module (files) only being linked together into a single SPLat program late in the process. This template optionally inserts Builder segment tags into the generated files. You should study the code in the preview window to determine which tags you must specify in your build (*.b1d) file and how to qualify them (e.g.&nbsp;<code>ONCEONLY<\/code>).<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Preview button<\/h6>\n\n\n\n<p>Opens and closes the code preview pane<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Xwire address box<\/h6>\n\n\n\n<p>Whatever you type in here will be used as the Xwire address for the board. Please study the documentation for the board to determine\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-xwire-peripherals\/sx10500-dual-k-type-thermocouple-board\/sx10500-selecting-and-setting-address\/\">how to set its address and what addresses are possible<\/a>. You can use a symbolic name in this box so long as elsewhere in your program you assign to it the correct numeric address via a\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/equ-directive-2\/\">EQU<\/a><\/code>\u00a0directive.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Channels<\/h6>\n\n\n\n<p>Allows you to select to support one or two channels. If you select one channel, it will correspond to the TH1 input on the SX10500 board.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Scale<\/h6>\n\n\n\n<p>Allows you to select between the result being scaled in \u00baC or \u00baF. The native mode of the measurement chip is \u00baC, in 0.25\u00baC steps, so in \u00baF mode you will get readings spaced 0.45\u00baF apart.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Access method<\/h6>\n\n\n\n<p>If you select 2 channels, you have a choice of how to extract your readings.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o3499\">jndexed<\/a><\/td><td>Assuming you fully understand\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/tutorial-multitrack\/\">MultiTrack<\/a>\u00a0and the use of the J register for jndexed addressing, you can take advantage of the jndexed mode of the template. You will get one subroutine to call for both channels. The number in J determines which channel will be returned, 0 or 1.<em>Caution: The code does not check that J contains a valid value. The number must be 0 or 1.<\/em><\/td><\/tr><tr><td>indexed<\/td><td>In indexed mode you get one subroutine to call for both channels. The number in I determines which channel will be returned, 0 or 1.<\/td><\/tr><tr><td>separate subroutines<\/td><td>If you select this mode you will get 2 separate subroutine for retrieving readings from the two channels.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You can determine what subroutine name(s) to call from the generated code in the preview window.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Filtering<\/h6>\n\n\n\n<p>The board itself contains adjustable software noise filters on each channel. These simulate a simple&nbsp;<a href=\"http:\/\/www.google.com\/search?q=RC+low+pass+filter&amp;ie=UTF-8\">RC low pass filter<\/a>&nbsp;with a range of time constants from 1 second to 10 minutes. You can select separate filter time constants for each channel. If you check &#8220;change at runtime&#8221; you will get subroutines that let you change the time constants on the fly (at runtime). In that case your settings will be the initial values.<\/p>\n\n\n\n<p>In brief, one time constant is the time it takes for 63% of a step change to propagate to the result.<\/p>\n\n\n\n<p>Caution: With very long time constants you won&#8217;t see the effect of temperature changes instantly. Don&#8217;t mistake this for a fault.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Update checks<\/h6>\n\n\n\n<p>If the button in the top righthand corner is depressed, the template will automatically check online for any updates whenever it is run, assuming you have a live Internet connection.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Header comment<\/h6>\n\n\n\n<p>You can type whatever you like into this box. It will appear in the generated code as a comment near the top.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Using multiple SX10500 boards<\/h6>\n\n\n\n<p>If you need to use two or more SX10500 boards, simply use a separate copy of the template for each board and give them different names and addresses. The boards will have to be set to different bus addresses. There are 8 possible addresses. If you need to use more than 8 boards just\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/contact-us\/\">contact us<\/a>\u00a0and we will prepare boards for you with a different set of addresses to chose from.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SX10500 Active Template provides easy access to a\u00a0SX10500 dual thermocouple Xwire peripheral board. The board supports two\u00a0K-type thermocouples\u00a0and gives temperature readings from 0\u00baC to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3170,"menu_order":0,"template":"","class_list":["post-3166","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>SX10500 template - 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=\"SX10500 template - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"The SX10500 Active Template provides easy access to a\u00a0SX10500 dual thermocouple Xwire peripheral board. The board supports two\u00a0K-type thermocouples\u00a0and gives temperature readings from 0\u00baC to...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-07T10:55:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"576\" \/>\n\t<meta property=\"og:image:height\" content=\"605\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\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\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/\",\"name\":\"SX10500 template - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif\",\"datePublished\":\"2025-04-17T09:31:57+00:00\",\"dateModified\":\"2025-05-07T10:55:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#primaryimage\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif\",\"width\":576,\"height\":605},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Programming reference\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Active Templates &#8211; library modules on steroids\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SX10500 template\"}]},{\"@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":"SX10500 template - 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":"SX10500 template - SPLat Controls","og_description":"The SX10500 Active Template provides easy access to a\u00a0SX10500 dual thermocouple Xwire peripheral board. The board supports two\u00a0K-type thermocouples\u00a0and gives temperature readings from 0\u00baC to...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/","og_site_name":"SPLat Controls","article_modified_time":"2025-05-07T10:55:57+00:00","og_image":[{"width":576,"height":605,"url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif","type":"image\/gif"}],"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\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/","name":"SX10500 template - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#primaryimage"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#primaryimage"},"thumbnailUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif","datePublished":"2025-04-17T09:31:57+00:00","dateModified":"2025-05-07T10:55:57+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#primaryimage","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/04\/SX10500-template-.gif","width":576,"height":605},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/sx10500-template\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"Programming reference","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/"},{"@type":"ListItem","position":3,"name":"Active Templates &#8211; library modules on steroids","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/active-templates-library-modules-on-steroids\/"},{"@type":"ListItem","position":4,"name":"SX10500 template"}]},{"@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\/3166","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\/3170"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=3166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}