{"id":2328,"date":"2025-04-15T10:15:26","date_gmt":"2025-04-15T10:15:26","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=2328"},"modified":"2025-06-10T07:01:31","modified_gmt":"2025-06-10T07:01:31","slug":"iiprintfill-destcountvalue-d23","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-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&nbsp;<code>count<\/code>&nbsp;bytes of&nbsp;<code>value<\/code><em>&nbsp;to&nbsp;<\/em><code>dest<\/code><em>.&nbsp;<\/em>If&nbsp;<code>dest<\/code>&nbsp;is in&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o414\">RAM<\/a>, fills&nbsp;<em>count<\/em>&nbsp;bytes. If&nbsp;<code>dest<\/code>&nbsp;is a serial output channel, sends&nbsp;<code>count<\/code>&nbsp;characters.<\/p>\n\n\n\n<p><code>count<\/code>&nbsp;can 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&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o370\">Firmware<\/a>&nbsp;revisions). 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&nbsp;<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>&nbsp;to 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&nbsp;<code>dest<\/code><em>.<\/em>&nbsp;It will occupy as many RAM locations as are needed to contain the result, one location per character. For example, the result of&nbsp;<code>iifPrintWFW 25,7,3<\/code>&nbsp;will 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&nbsp;<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o3499\">jndexed<\/a><\/strong>. Instead they use&nbsp;<code>I<\/code>&nbsp;as an offset from the&nbsp;<code><em>dest<\/em><\/code>&nbsp;address, and automatically increment&nbsp;<code>I<\/code>&nbsp;by 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&nbsp;count&nbsp;bytes of&nbsp;value&nbsp;to&nbsp;dest.&nbsp;If&nbsp;dest&nbsp;is in&nbsp;RAM, fills&nbsp;count&nbsp;bytes. If&nbsp;dest&nbsp;is a serial output channel, sends&nbsp;count&nbsp;characters. count&nbsp;can&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2256,"menu_order":11,"template":"","class_list":["post-2328","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&nbsp;count&nbsp;bytes of&nbsp;value&nbsp;to&nbsp;dest.&nbsp;If&nbsp;dest&nbsp;is in&nbsp;RAM, fills&nbsp;count&nbsp;bytes. If&nbsp;dest&nbsp;is a serial output channel, sends&nbsp;count&nbsp;characters. count&nbsp;can...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T07:01:31+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\/communications-instructions\/iiprintfill-destcountvalue-d23\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/\",\"name\":\"iiPrintFill dest#,count,value [D>=23] - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-15T10:15:26+00:00\",\"dateModified\":\"2025-06-10T07:01:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-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\":\"Communications instructions\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-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&nbsp;count&nbsp;bytes of&nbsp;value&nbsp;to&nbsp;dest.&nbsp;If&nbsp;dest&nbsp;is in&nbsp;RAM, fills&nbsp;count&nbsp;bytes. If&nbsp;dest&nbsp;is a serial output channel, sends&nbsp;count&nbsp;characters. count&nbsp;can...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T07:01:31+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\/communications-instructions\/iiprintfill-destcountvalue-d23\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/","name":"iiPrintFill dest#,count,value [D>=23] - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-15T10:15:26+00:00","dateModified":"2025-06-10T07:01:31+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-instructions\/iiprintfill-destcountvalue-d23\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-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":"Communications instructions","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/communications-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\/2328","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\/2256"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=2328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}