{"id":3183,"date":"2025-04-17T09:46:58","date_gmt":"2025-04-17T09:46:58","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=3183"},"modified":"2025-05-07T11:12:28","modified_gmt":"2025-05-07T11:12:28","slug":"nv0byte-directive-d15","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/","title":{"rendered":"NV0Byte Directive [D>=15]"},"content":{"rendered":"\n<p>This applies only to SPLat\/PC versions 6.15.1 or later, and is relevant only to SPLat controllers with language dialect 15 or later.<\/p>\n\n\n\n<p>The NV0Byte directive causes SPLat\/PC to create one or more data bytes in NVEM0 memory. The argument to NV0Byte consists of a comma-delimited list of bytes in any of the following formats<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Example<\/th><th>Max value<\/th><th>Description<\/th><\/tr><tr><td>23<\/td><td>255<\/td><td>Decimal constant<\/td><\/tr><tr><td>&#8216;A3<\/td><td>255<\/td><td>Hex constant<\/td><\/tr><tr><td>%10101100<\/td><td>255<\/td><td>Binary constant<\/td><\/tr><tr><td>FooBar<\/td><td>255<\/td><td>A previously EQUated constant<\/td><\/tr><tr><td>T<\/td><td>255<\/td><td>Boolean True = %11111111<\/td><\/tr><tr><td>F<\/td><td>255<\/td><td>Boolean False = %0000000<\/td><\/tr><tr><td>&#8220;Hello&#8221;<\/td><td>&nbsp;<\/td><td>A quoted text string<\/td><\/tr><tr><td>#WORD<\/td><td>65535<\/td><td>A 15 or 16 bit value preceded by #. New in SPLat\/PC V7.16.4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Strings may be any printable characters, enclosed in quotes. A quotation mark is represented by two quotation marks in a row, viz &#8220;&#8221;<\/p>\n\n\n\n<p>Any number of individual bytes, words and strings may be concatenated, with commas separating them. Spaces are not allowed except within quoted strings.<\/p>\n\n\n\n<p>The #WORD form is supported in SPLat\/PC V7.16.4 and later. It simplifies building of ModBus master scripts. It allows 16-bit values to be embedded in byte lists, but does have the limitation that values over 32767 expressed in anything other than decimal will be rejected. It is also not possible to include a 16-bit\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o2970\">NVEM<\/a>\u00a0pointer value.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">WordConst  EQU\t     51234                     ;A long decimal constant<br>MaxSpeed   EQU       100                       ;A byte constant<br><br>MyTable    NV0Byte   45                        ;Decimal constant<br>           NV0Byte   'A9                       ;Hex constant<br>           NV0Byte   %10101100                 ;Binary constant<br>           NV0Byte   45,'A9,%10101100          ;All 3 of above combined<br>           NV0Byte   MaxSpeed                  ;Symbolic constant defined in an EQU<br>           NV0Byte   \"The quick brown fox\"     ;Simple text string<br>           NV0Byte   \"Said \"\"I will bite you\"\"\" ;Quotes within a string<br>           NV0Byte   \"Hello World\",'0D,'0A     ;Mixed<br>           NV0Byte   MaxSpeed,#WordConst,\"OK\"  ;Mixed<\/pre>\n\n\n\n<p>Please refer to the\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/non-volatile-extended-memory-nvem-users-guide\/nvem-type-specific-information\/nvem0-documentation\/\">NVEM0 documentation<\/a>\u00a0for more details and examples.<\/p>\n\n\n\n<p>Note that from SPLat\/PC build 329 you may place NVEM directives anywhere in your code.&nbsp; If you do this, then the line label for an NV0Byte directive must be on the same line. The following is not allowed:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MyTable:    **** ILLEGAL!!! *****<br>            NV0Byte 45<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This applies only to SPLat\/PC versions 6.15.1 or later, and is relevant only to SPLat controllers with language dialect 15 or later. The NV0Byte directive&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3171,"menu_order":11,"template":"","class_list":["post-3183","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>NV0Byte Directive [D&gt;=15] - 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=\"NV0Byte Directive [D&gt;=15] - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"This applies only to SPLat\/PC versions 6.15.1 or later, and is relevant only to SPLat controllers with language dialect 15 or later. The NV0Byte directive...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-07T11:12:28+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\/directives\/nv0byte-directive-d15\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/\",\"name\":\"NV0Byte Directive [D>=15] - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-17T09:46:58+00:00\",\"dateModified\":\"2025-05-07T11:12:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/#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\":\"Directives\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"NV0Byte Directive [D>=15]\"}]},{\"@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":"NV0Byte Directive [D>=15] - 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":"NV0Byte Directive [D>=15] - SPLat Controls","og_description":"This applies only to SPLat\/PC versions 6.15.1 or later, and is relevant only to SPLat controllers with language dialect 15 or later. The NV0Byte directive...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/","og_site_name":"SPLat Controls","article_modified_time":"2025-05-07T11:12:28+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\/directives\/nv0byte-directive-d15\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/","name":"NV0Byte Directive [D>=15] - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-17T09:46:58+00:00","dateModified":"2025-05-07T11:12:28+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/nv0byte-directive-d15\/#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":"Directives","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/"},{"@type":"ListItem","position":4,"name":"NV0Byte Directive [D>=15]"}]},{"@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\/3183","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\/3171"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=3183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}