{"id":1370,"date":"2024-02-11T14:54:24","date_gmt":"2024-02-11T12:54:24","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1370"},"modified":"2024-02-11T14:54:24","modified_gmt":"2024-02-11T12:54:24","slug":"bringing-plc-values-to-opc-ua-mqtt-graphql","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1370","title":{"rendered":"Bringing PLC values to OPC UA, MQTT, GraphQL"},"content":{"rendered":"\n<p>With just some lines of configuration you can bring PLC values to OPC UA, MQTT and GraphQL. And to a variety of databases for tag logging&#8230;<\/p>\n\n\n\n<p>\ud83d\udca1 In that example with ModBus, but thanks to&nbsp;<a href=\"https:\/\/www.linkedin.com\/feed\/hashtag\/?keywords=plc4x&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7162173948699381760\">#plc4x<\/a>&nbsp;this should work in the same way also for the other protocols supported by PLC4X.<\/p>\n\n\n\n<p>\ud83d\udcfa See the video, ModBus values are brought to OPC UA and MQTT.<\/p>\n\n\n\n<p>\ud83d\udca3 In MQTT the topic name is enriched with a UNS ISA95 topic path.<\/p>\n\n\n\n<p>\u26a1 On MQTT SparkplugB encoded messages could be used.<\/p>\n\n\n\n<p>\ud83d\ude0e 100% GUI free and Open Source.<\/p>\n\n\n\n<p>\ud83d\udc49&nbsp;<a href=\"http:\/\/automation-gateway.com\/\">automation-gateway.com<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Servers:\r\n  GraphQL:\r\n    - Port: 4000\r\n      LogLevel: INFO\r\n      GraphiQL: true\r\n\r\n  OpcUa:\r\n    - Port: 4841\r\n      Enabled: true\r\n      LogLevel: INFO      \r\n      Topics:\r\n        - Topic: plc\/demo\/node\/holding-register:1:INT\r\n        - Topic: plc\/demo\/node\/holding-register:2:INT\r\n        - Topic: plc\/demo\/node\/holding-register:3:INT\r\nDrivers:\r\n  Plc4x:\r\n    - Id: \"demo\"\r\n      Enabled: true\r\n      Url: \"modbus:\/\/localhost:502\"\r\n      Polling:\r\n        Time: 100\r\n        OldNew: true\r\n      WriteTimeout: 100\r\n      ReadTimeout: 100\r\n      LogLevel: INFO    \r\n\r\nLoggers:\r\n  Mqtt:\r\n    - Id: mqtt1\r\n      Enabled: true\r\n      Host: 192.168.1.4\r\n      Port: 1883\r\n      Topic: modbus\r\n      Format: Raw\r\n      Logging:\r\n        - Topic: plc\/demo\/node\/holding-register:1:INT\r\n          Target: enterprise\/area1\/line1\/cell1\/speed\r\n        - Topic: plc\/demo\/node\/holding-register:2:INT\r\n          Target: enterprise\/area1\/line1\/cell1\/power\r\n        - Topic: plc\/demo\/node\/holding-register:3:INT\r\n          Target: enterprise\/area1\/line1\/cell1\/torque\r\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Bringing PLC values to OPC UA, MQTT, GraphQL\" width=\"474\" height=\"267\" src=\"https:\/\/www.youtube.com\/embed\/0Y-qdmKLhtM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>With just some lines of configuration you can bring PLC values to OPC UA, MQTT and GraphQL. And to a variety of databases for tag logging&#8230; \ud83d\udca1 In that example with ModBus, but thanks to&nbsp;#plc4x&nbsp;this should work in the same way also for the other protocols supported by PLC4X. \ud83d\udcfa See the video, ModBus values &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=1370\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Bringing PLC values to OPC UA, MQTT, GraphQL<\/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":[39,67],"tags":[68,54,35,63,55],"class_list":["post-1370","post","type-post","status-publish","format-standard","hentry","category-frankenstein","category-mqtt","tag-iot","tag-mqtt","tag-opcua","tag-plc4x","tag-uns"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1370","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=1370"}],"version-history":[{"count":1,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1370\/revisions"}],"predecessor-version":[{"id":1371,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1370\/revisions\/1371"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}