{"id":2585,"date":"2025-04-16T06:14:54","date_gmt":"2025-04-16T06:14:54","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=2585"},"modified":"2025-06-10T11:55:25","modified_gmt":"2025-06-10T11:55:25","slug":"iiprintfill-destcountvalue-d23","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/","title":{"rendered":"iiPrintFill dest#,count,value [D>=23]"},"content":{"rendered":"\n<p><code>&lt;dest[0...count-1]&gt; = value; I = (dest &lt; 250) ? (I + count) : I<\/code><\/p>\n\n\n\n<p>Send\u00a0<code>count<\/code>\u00a0bytes of\u00a0<code>value<\/code><em>\u00a0to\u00a0<\/em><code>dest<\/code><em>.\u00a0<\/em>If\u00a0<code>dest<\/code>\u00a0is in\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o414\">RAM<\/a>, fills\u00a0<em>count<\/em>\u00a0bytes. If\u00a0<code>dest<\/code>\u00a0is a serial output channel, sends\u00a0<code>count<\/code>\u00a0characters.<\/p>\n\n\n\n<p><code>count<\/code>\u00a0can be 1 to 255, so long as it doesn&#8217;t overflow RAM (if RAM is the destination). The maximum number of bytes per message to the serial port is 255. However, the serial transmit buffer is 128 bytes (which could change in future\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o370\">Firmware<\/a>\u00a0revisions). If you try to send out more than the buffer can hold, your program will stall until there is room in the buffer (this is your whole program, not just a single MultiTrack task). You can avoid this by using\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/default-serial-port\/comtx_space-d23\/\">COMTx_Space<\/a><\/code>\u00a0to ensure there is room before attempting to output.<\/p>\n\n\n\n<p>Used mainly to clear a RAM data block. Typically RAM will be used as the destination when data is destined for an Xwire device.<\/p>\n\n\n\n<p>This instruction is automatically indexed.<\/p>\n\n\n\n<p>When printing to RAM the index register&nbsp;<code>I<\/code>&nbsp;is added to the dest address and the result is stored in that location.&nbsp;<code>I<\/code>&nbsp;is then incremented by the number of characters stored. This allows several things to be &#8220;printed&#8221; to RAM.<\/p>\n\n\n\n<p>&#8220;Printing&#8221; to RAM is typically used for communicating with an Xwire peripheral.<\/p>\n\n\n\n<p>The&nbsp;<code>dest<\/code>&nbsp;argument determines where the result of the instruction is directed.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Destination address (<code>dest<\/code><em>)<\/em><\/td><td>Where the result is directed<\/td><\/tr><tr><td>0 &#8211; 249<\/td><td>The result is stored in successive RAM locations, starting at\u00a0<code>dest<\/code><em>.<\/em>\u00a0It will occupy as many RAM locations as are needed to contain the result, one location per character. For example, the result of\u00a0<code>iifPrintWFW 25,7,3<\/code>\u00a0will occupy 7 bytes, RAM locations 25 through 31, because the format specifier calls for 7 digits of output. A runtime error will occur if the output over-runs the end of RAM (address 249). Using RAM as the destination is particularly useful for sending data out on Xwire.<strong>Note: These addresses are not\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o3499\">jndexed<\/a><\/strong>. Instead they use\u00a0<code>I<\/code>\u00a0as an offset from the\u00a0<code><em>dest<\/em><\/code>\u00a0address, and automatically increment\u00a0<code>I<\/code>\u00a0by the number of bytes stored in RAM by the instruction.<\/td><\/tr><tr><td>251 &#8211; 254<\/td><td>The result is directed to the serial port at the address given, providing the selected protocol is &#8220;User programmable&#8221;, and that the controller you are programming has a serial port at that address. This is the primary means of generating any arbitrary serial output under program control.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o2825\">Dialect<\/a>\u00a0exclusions: Not available in dialects before 23<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;dest[0&#8230;count-1]&gt; = value; I = (dest &lt; 250) ? (I + count) : I Send\u00a0count\u00a0bytes of\u00a0value\u00a0to\u00a0dest.\u00a0If\u00a0dest\u00a0is in\u00a0RAM, fills\u00a0count\u00a0bytes. If\u00a0dest\u00a0is a serial output channel, sends\u00a0count\u00a0characters. count\u00a0can&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2572,"menu_order":11,"template":"","class_list":["post-2585","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>iiPrintFill dest#,count,value [D&gt;=23] - 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=\"iiPrintFill dest#,count,value [D&gt;=23] - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"&lt;dest[0...count-1]&gt; = value; I = (dest &lt; 250) ? (I + count) : I Send\u00a0count\u00a0bytes of\u00a0value\u00a0to\u00a0dest.\u00a0If\u00a0dest\u00a0is in\u00a0RAM, fills\u00a0count\u00a0bytes. If\u00a0dest\u00a0is a serial output channel, sends\u00a0count\u00a0characters. count\u00a0can...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T11:55:25+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\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/\",\"name\":\"iiPrintFill dest#,count,value [D>=23] - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-16T06:14:54+00:00\",\"dateModified\":\"2025-06-10T11:55:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/#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\":\"Instructions arranged by function\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Index register instructions\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"iiPrintFill dest#,count,value [D>=23]\"}]},{\"@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":"iiPrintFill dest#,count,value [D>=23] - 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":"iiPrintFill dest#,count,value [D>=23] - SPLat Controls","og_description":"&lt;dest[0...count-1]&gt; = value; I = (dest &lt; 250) ? (I + count) : I Send\u00a0count\u00a0bytes of\u00a0value\u00a0to\u00a0dest.\u00a0If\u00a0dest\u00a0is in\u00a0RAM, fills\u00a0count\u00a0bytes. If\u00a0dest\u00a0is a serial output channel, sends\u00a0count\u00a0characters. count\u00a0can...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T11:55:25+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\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/","name":"iiPrintFill dest#,count,value [D>=23] - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-16T06:14:54+00:00","dateModified":"2025-06-10T11:55:25+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/iiprintfill-destcountvalue-d23\/#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":"Instructions arranged by function","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/"},{"@type":"ListItem","position":4,"name":"Index register instructions","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/index-register-instructions\/"},{"@type":"ListItem","position":5,"name":"iiPrintFill dest#,count,value [D>=23]"}]},{"@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\/2585","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\/2572"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=2585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}