{"id":1740,"date":"2025-04-14T05:09:06","date_gmt":"2025-04-14T05:09:06","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=1740"},"modified":"2025-06-10T08:15:41","modified_gmt":"2025-06-10T08:15:41","slug":"spice-10200-programming","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/","title":{"rendered":"SPice 10200: Programming"},"content":{"rendered":"\n<p>Once installed on a SPLat controller, the SPice10200 appears as several regular analog and digital I\/O points. The following table shows the mappings for all the I\/O on the board. Numbers in parenthesis are the numeric analog channel numbers used with&nbsp;<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/analog-instructions\/fanin-c-d18\/\">fAnIn<\/a><\/code>&nbsp;and&nbsp;<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/analog-instructions\/fanout-c-d18\/\">fAnOut<\/a><\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>&nbsp;<\/th><th>Cnctr pin<\/th><th>SLXXX<\/th><th>MMiXXX<\/th><th>MS12<\/th><th>&nbsp;<\/th><\/tr><tr><th>Conductivity 1<\/th><th>7<\/th><td>Input 10<\/td><td>Input 13<\/td><td>Input 20<\/td><td>&nbsp;<\/td><\/tr><tr><th>Conductivity 2<\/th><th>8<\/th><td>Input 11<\/td><td>Input 14<\/td><td>Input 21<\/td><td>&nbsp;<\/td><\/tr><tr><th>Thermistor 1<\/th><th>4<\/th><td>AnInC (2)<\/td><td>AnInE (4)<\/td><td>AnInC (2)<\/td><td>&nbsp;<\/td><\/tr><tr><th>Thermistor 2<\/th><th>5<\/th><td>AnInD (3)<\/td><td>AnInF (5)<\/td><td>AnInD (3)<\/td><td>&nbsp;<\/td><\/tr><tr><th>Thermistor 3<\/th><th>6<\/th><td>AnInE (4)<\/td><td>AnInG (6)<\/td><td>AnInE (4)<\/td><td>&nbsp;<\/td><\/tr><tr><th>Thermistor Vfeed<\/th><th>9<\/th><td>AnOutG (6)<\/td><td>AnOutI (8)<\/td><td>AnOutI (8)<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">Initializing the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o366\">SPice<\/a>&nbsp;connector<\/h6>\n\n\n\n<p>Because the pins of the SPice connector, to which the SPice10200 is connected, can be configured for different functions (analog\/digital, input\/output), you need to have some code in your program that configures them to the correct settings for the SPice10200.<\/p>\n\n\n\n<p>The following section of code should be run by your program just once, at the beginning, before your program attempts to do anything else with the SPice10200.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">         <a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/splat-expansion-framework-generic-instructions\/clru\/\">ClrU<\/a><br>         <a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/splat-expansion-framework-generic-instructions\/setu-ni\/\">setu<\/a>         0,3         ;set spice connector pin 4 as analog input<br>         setu         1,3         ;set spice connector pin 5 as analog input<br>         setu         2,3         ;set spice connector pin 6 as analog input<br>         setu         3,2         ;set spice connector pin 7 as digital input<br>         setu         4,2         ;set spice connector pin 8 as digital input<br>         setu         5,4         ;set spice connector pin 9 as analog output<br>         <a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/splat-expansion-framework-generic-instructions\/spiceconfigu\/\">SpiceConfigU<\/a><br>         <a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/stack-instructions\/loadx-nn\/\">LoadX<\/a>        XXX<br>         AnOutZZZ<br><\/pre>\n\n\n\n<p>In this code replace XXX with the Vfeed value required. You will generate this when you work through the&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/tutorial-thermistor-temperature-measurement\/\">thermistor temperature measurement tutorial<\/a>. On the SPice10200 the Vfeed range is 0 to 20V (representing XXX = 0 to 255).<\/p>\n\n\n\n<p>Note: The maximum Vfeed value you can use is limited by the supply voltage to the board. The Vfeed generator can at most get to about 2V&nbsp;<em>less<\/em>&nbsp;than the supply voltage. Hence, with say a 12V supply you can at best design for a 10V Vfeed. If you are using an unregulated supply you must take into account voltage variations and ripple. With a 24V regulated supply you will be able to use the full Vfeed range up to 20V.<\/p>\n\n\n\n<p>Replace ZZZ with the analog output pin used for Vfeed (see table above).<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Programming the fluid sensor (conductivity switch) inputs.<\/h6>\n\n\n\n<p>Once the board has been initialized, the fluid sensor inputs are just like any other input. The input will be on when there is fluid present.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Programming the thermistor inputs<\/h6>\n\n\n\n<p>Once the board has been initialized, the thermistor inputs appear as three analog inputs in the locations tabulated above. You get a raw reading from the thermistor into&nbsp;<a href=\"https:\/\/www.splatco.com\/skb\/352.htm#o3808\">X<\/a>&nbsp;using the AnIn instructions in the table above. The&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/tutorial-thermistor-temperature-measurement\/\">thermistor temperature measurement tutorial<\/a>&nbsp;shows you how to convert the raw readings into temperatures.<\/p>\n\n\n\n<p>After initialization there will be a delay before the Vfeed voltage settles down. Your program should not perform any control action based on a temperature reading for at least 500mS after initialization.<\/p>\n\n\n\n<p>Note that during debug with SPLat the SPice board may not show up correctly in the I\/O window unless the board has run the initialize code. You can fix this by translating and running the above initialization sequence in the board. Add a line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a     goto    a<\/pre>\n\n\n\n<p>at the end to prevent translation and runtime errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once installed on a SPLat controller, the SPice10200 appears as several regular analog and digital I\/O points. The following table shows the mappings for all&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1730,"menu_order":8,"template":"","class_list":["post-1740","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>SPice 10200: Programming - 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=\"SPice 10200: Programming - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"Once installed on a SPLat controller, the SPice10200 appears as several regular analog and digital I\/O points. The following table shows the mappings for all...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T08:15:41+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=\"3 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-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/\",\"name\":\"SPice 10200: Programming - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-14T05:09:06+00:00\",\"dateModified\":\"2025-06-10T08:15:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/#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: SPice add-on boards\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SPice10200 &#8211; Temperature measurement and fluid level switching\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"SPice 10200: Programming\"}]},{\"@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":"SPice 10200: Programming - 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":"SPice 10200: Programming - SPLat Controls","og_description":"Once installed on a SPLat controller, the SPice10200 appears as several regular analog and digital I\/O points. The following table shows the mappings for all...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T08:15:41+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/","name":"SPice 10200: Programming - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-14T05:09:06+00:00","dateModified":"2025-06-10T08:15:41+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/spice-10200-programming\/#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: SPice add-on boards","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/"},{"@type":"ListItem","position":4,"name":"SPice10200 &#8211; Temperature measurement and fluid level switching","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-spice-add-on-boards\/spice10200-temperature-measurement-and-fluid-level-switching\/"},{"@type":"ListItem","position":5,"name":"SPice 10200: Programming"}]},{"@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\/1740","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\/1730"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=1740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}