{"id":747,"date":"2025-09-21T14:48:06","date_gmt":"2025-09-21T14:48:06","guid":{"rendered":"https:\/\/protolinker.com\/?post_type=docs&#038;p=747"},"modified":"2025-09-23T09:55:24","modified_gmt":"2025-09-23T09:55:24","password":"","slug":"what-is-a-tag","status":"publish","type":"docs","link":"https:\/\/protolinker.com\/en\/documentation\/what-is-a-tag\/","title":{"rendered":"What is a Tag"},"content":{"rendered":"\n\n<p class=\"wp-block-paragraph \" style=\"\">A <strong>tag<\/strong> in Protolinker represents a <strong>specific piece of data<\/strong> exchanged through a protocol.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">In other words, while a <strong>protocol<\/strong> defines <em>how devices talk<\/em>, a <strong>tag<\/strong> defines <em>what information is being talked about<\/em>.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">For example, a temperature sensor connected via Modbus might have a tag called temperature, which holds the current reading in &deg;C.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"why-tags-are-important\"><strong>Why Tags Are Important<\/strong><\/h2>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">Tags provide a consistent way to reference data across different protocols. Instead of remembering device addresses, register numbers, or message IDs, you work with clear, human-readable names.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">This makes complex integrations much easier to manage, since you can:<\/p>\n\n\n<ul class=\"wp-block-list wp-block-list\">\n<li>\n<strong>Identify values<\/strong> by meaningful names (e.g., motor_speed instead of register 40001).<\/li>\n\n\n\n<li>\n<strong>Link protocols<\/strong> together by mapping tags from one protocol to another.<\/li>\n\n\n\n<li>\n<strong>Monitor and debug<\/strong> data flow in a way that is understandable without deep protocol knowledge.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-tags-work-in-protolinker\"><strong>How Tags Work in Protolinker<\/strong><\/h2>\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\n<strong>Tag Creation<\/strong><ul class=\"wp-block-list wp-block-list wp-block-list\">\n<li>Tags are created inside Protolinker by defining a name (e.g., temperature), data type (e.g., float), and source (e.g., a Modbus register).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\n<strong>Tag Linking<\/strong><ul class=\"wp-block-list wp-block-list\">\n<li>Once defined, tags can be linked between different protocols.<\/li>\n\n\n\n<li>For example: A Modbus tag temperature can be linked to an MQTT tag sensor\/temperature, making the data from the Modbus sensor available to the MQTT topic and vice versa.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\n<strong>Tag Transformation (Optional)<\/strong><ul class=\"wp-block-list wp-block-list\">\n<li>Protolinker supports applying simple transformations to tags using scripts.<\/li>\n\n\n\n<li>This is useful when you need to scale, convert, or filter the data before forwarding it.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\n<strong>Tag Usage<\/strong><ul class=\"wp-block-list wp-block-list\">\n<li>Applications or external systems connected to Protolinker will only &ldquo;see&rdquo; or &ldquo;publish&rdquo; the tags, not the raw protocol addresses.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<h2 class=\"wp-block-heading\" id=\"example\"><strong>Example<\/strong><\/h2>\n\n\n<ul class=\"wp-block-list wp-block-list\">\n<li>\n<strong>Device side:<\/strong> Modbus sensor reports register 40001 = 253 (raw value).<\/li>\n\n\n\n<li>\n<strong>Protolinker tag:<\/strong> temperature = 25.3 &deg;C (scaled).<\/li>\n\n\n\n<li>\n<strong>Output side:<\/strong> Published via MQTT as sensor\/temperature = 25.3.<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">This way, tags act as the <strong>bridge between raw protocol data and meaningful, usable information<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A tag in Protolinker represents a specific piece of data exchanged through a protocol. In other words, while a protocol defines how devices talk, a tag defines what information is being talked about. For example, a temperature sensor connected via Modbus might have a tag called temperature, which holds the current reading in &deg;C. Why &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[15],"doc_tag":[],"class_list":["post-747","docs","type-docs","status-publish","hentry","doc_category-tags"],"year_month":"2026-07","word_count":292,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"beraldoigor","author_nicename":"beraldoigor","author_url":"https:\/\/protolinker.com\/en\/author\/beraldoigor\/"},"doc_category_info":[{"term_name":"Tags","term_url":"https:\/\/protolinker.com\/en\/docs-category\/tags\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/docs\/747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/comments?post=747"}],"version-history":[{"count":0,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/docs\/747\/revisions"}],"wp:attachment":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/media?parent=747"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/doc_category?post=747"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/doc_tag?post=747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}