{"id":1389,"date":"2024-03-29T11:05:50","date_gmt":"2024-03-29T09:05:50","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1389"},"modified":"2024-03-29T11:09:34","modified_gmt":"2024-03-29T09:09:34","slug":"wincc-oa-nodered-integration","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1389","title":{"rendered":"WinCC OA &#038; Node-Red Integration"},"content":{"rendered":"\n<p>It is very easy to get data from WinCC Open Architecture to NodeRed. <\/p>\n\n\n\n<p>Add a new user to WinCC OA &#8211; System Management \/ Permission \/ User Administation. <\/p>\n\n\n\n<p>We will use &#8220;node&#8221; as username.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"210\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2-1024x210.png\" alt=\"\" class=\"wp-image-1391\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2-1024x210.png 1024w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2-300x61.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2-768x157.png 768w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2-1536x314.png 1536w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-2.png 1676w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Add Config Entry <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;wssServer]\nhttpsPort = 8449\nresourceName = \"\/websocket\"<\/code><\/pre>\n\n\n\n<p>Start Control Manager &#8220;wss.ctl -user &lt;username&gt;:&#8221; Note the trailing &#8220;:&#8221; !!<\/p>\n\n\n<p>wss.ctl -user node:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"42\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-1.png\" alt=\"\" class=\"wp-image-1390\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-1.png 680w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-300x19.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-1-672x42.png 672w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/figure>\n\n\n\n<p>Node-Red: Install Palette &#8220;node-red-contrib-winccoa&#8221;<a href=\"https:\/\/flows.nodered.org\/node\/node-red-contrib-winccoa\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"422\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-3-1024x422.png\" alt=\"\" class=\"wp-image-1392\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-3-1024x422.png 1024w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-3-300x124.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-3-768x317.png 768w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-3.png 1418w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>You can now add a Node. In that example we will use the dpQuery node and use &#8220;SELECT &#8216;_online.._value&#8217; FROM &#8216;Meter_Input_WattAct.'&#8221; as query. So we just query the online value of one tag. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"599\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-5.png\" alt=\"\" class=\"wp-image-1395\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-5.png 1018w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-5-300x177.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-5-768x452.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/a><\/figure>\n\n\n\n<p>You have to configure the Server by clicking on the pencil button. This points to the before started Websocket Control Manager and you have to set the username and password we have added in one of the previous steps.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"385\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-4.png\" alt=\"\" class=\"wp-image-1394\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-4.png 1018w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-4-300x113.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/03\/image-4-768x290.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is very easy to get data from WinCC Open Architecture to NodeRed. Add a new user to WinCC OA &#8211; System Management \/ Permission \/ User Administation. We will use &#8220;node&#8221; as username. Add Config Entry Start Control Manager &#8220;wss.ctl -user &lt;username&gt;:&#8221; Note the trailing &#8220;:&#8221; !! Node-Red: Install Palette &#8220;node-red-contrib-winccoa&#8221; You can now &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=1389\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WinCC OA &#038; Node-Red Integration<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[74,26],"class_list":["post-1389","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-wincc-oa","tag-nodered","tag-wincc-oa"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1389"}],"version-history":[{"count":6,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1389\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1389\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}