{"id":3449,"date":"2019-03-25T17:44:21","date_gmt":"2019-03-25T20:44:21","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/setting-up-elipse-powers-command-to-write-in-tag-bits\/"},"modified":"2020-12-09T11:15:06","modified_gmt":"2020-12-09T14:15:06","slug":"setting-up-elipse-powers-command-to-write-in-tag-bits","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/","title":{"rendered":"Setting up Elipse Power&#8217;s command to write in tag bits."},"content":{"rendered":"<div align=\"justify\">\n<p><b>Question:<\/b><\/p>\n<p>How can I set up an Elipse Power&#8217;s command to write in tag bits?<br \/>\n<b><br \/>\nSolution: <\/b><\/p>\n<p>To do so, link the bit to the command unit&#8217;s <i>OperateWriteTag <\/i>property and adapt the command template&#8217;s script to write in this bit. To adapt this script, follow these procedures:<\/p>\n<p>1. Create a new command template. To do so, use <b>Add <\/b>option on <b>Commands <\/b>tab at PowerConfig object. In this example, a discrete command template called <b><i>Write_bit<\/i><\/b> was created:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5113EN\/Picture_1.jpg\" alt=\"\" width=\"500\" height=\"215\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>2. After creating the discrete command, create its semantics. In the figure below, you can see <i><b>Write_1<\/b><\/i> e <i><b>Write_0<\/b><\/i>, and all its values (<b>Operate Value<\/b>, <b>Operate Feedback<\/b>, <b>Select Value<\/b>, <b>Select Feedback<\/b>, <b>Cancel Valu<\/b>e, <b>Cancel Feedback<\/b>) were set up as either 1 or 0, according to the semantics&#8217; number.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5113EN\/Picture_2.jpg\" alt=\"\" width=\"500\" height=\"37\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p><b>NOTE<\/b>: You don&#8217;t need to create a new command template; editing an old one should be enough.<\/p>\n<p>3. Create the following script at the command&#8217;s <i>OnOperate <\/i>method:<\/p>\n<div align=\"left\"><span style=\"font-family: Courier New;\">element = Left(OperateWriteTag, Len(OperateWriteTag) &#8211; 6) <\/span><br \/>\n<span style=\"font-family: Courier New;\">auxBit = Right(OperateWriteTag, 5) <\/span><br \/>\n<span style=\"font-family: Courier New;\">Set Tag = Application.GetObject(element) <\/span><br \/>\n<span style=\"font-family: Courier New;\">Execute &#8220;Tag.&#8221; &#038; auxBit &#038; &#8221; = &#8221; &#038; WriteValue<\/span><\/div>\n<p>&nbsp;<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5113EN\/Picture_3.jpg\" alt=\"\" width=\"500\" height=\"234\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>4. This script removes the bit from the tag&#8217;s path, which makes it possible to search for the tag via <i>GetObjetct <\/i>method. After that, the bit will be concatenated again and the bit will be written in.<\/p>\n<p><b>Example<\/b>: The following tag was linked to the <i>OperateWriteTag <\/i>property:<br \/>\n<span style=\"font-family: Courier New;\">&#8220;Driver1.Tag1.Bit02&#8221;<\/span><br \/>\nAccording to the suggested script, the <b>element <\/b>variable will receive:<br \/>\n<span style=\"font-family: Courier New;\"> &#8220;Driver1.Tag1&#8221;<\/span><br \/>\nAnd the <b>auxBit <\/b>variable will receive:<br \/>\n<span style=\"font-family: Courier New;\">&#8220;bit02&#8221;<\/span><br \/>\nAfter that, the <i>GetObject <\/i>method will search for the corresponding tag from <b>element <\/b>variable, which in this case is <span style=\"font-family: Courier New;\">&#8220;Driver1.Tag1&#8221;<\/span>. Then, the tag bit will be written in, from the object (tag) concatenated to the corresponding bit (<b>auxBit<\/b>).<\/p>\n<p>5. Finally, link the command unit&#8217;s <i>OperateWriteTag <\/i>property to the desired bit, as seen below:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5113EN\/Picture_4.jpg\" alt=\"\" width=\"356\" height=\"314\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p><b>NOTE<\/b>: Remember to enable the driver&#8217;s <i>UsebitFields <\/i>property to be able to use its tags&#8217; bits.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I set up an Elipse Power&#8217;s command to write in tag bits? Solution: To do so, link the bit to the command unit&#8217;s OperateWriteTag property and adapt&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[825],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setting up Elipse Power&#039;s command to write in tag bits. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting up Elipse Power&#039;s command to write in tag bits.\" \/>\n<meta property=\"og:description\" content=\"Question: How can I set up an Elipse Power&#8217;s command to write in tag bits? Solution: To do so, link the bit to the command unit&#8217;s OperateWriteTag property and adapt&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:44:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-09T14:15:06+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5113EN\/Picture_1.jpg\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Setting up Elipse Power&#8217;s command to write in tag bits.\",\"datePublished\":\"2019-03-25T20:44:21+00:00\",\"dateModified\":\"2020-12-09T14:15:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\"},\"wordCount\":317,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Elipse Power\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\",\"name\":\"[:pt]Setting up Elipse Power's command to write in tag bits.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:44:21+00:00\",\"dateModified\":\"2020-12-09T14:15:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up Elipse Power&#8217;s command to write in tag bits.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting up Elipse Power's command to write in tag bits. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Setting up Elipse Power's command to write in tag bits.[:] - Elipse Knowledgebase","og_description":"Question: How can I set up an Elipse Power&#8217;s command to write in tag bits? Solution: To do so, link the bit to the command unit&#8217;s OperateWriteTag property and adapt&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:44:21+00:00","article_modified_time":"2020-12-09T14:15:06+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5113EN\/Picture_1.jpg"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Setting up Elipse Power&#8217;s command to write in tag bits.","datePublished":"2019-03-25T20:44:21+00:00","dateModified":"2020-12-09T14:15:06+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/"},"wordCount":317,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Elipse Power"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/","url":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/","name":"[:pt]Setting up Elipse Power's command to write in tag bits.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:44:21+00:00","dateModified":"2020-12-09T14:15:06+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/setting-up-elipse-powers-command-to-write-in-tag-bits\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Setting up Elipse Power&#8217;s command to write in tag bits."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3449"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3449"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3449\/revisions"}],"predecessor-version":[{"id":11894,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3449\/revisions\/11894"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}