Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Generating OpcUA nodes from list

Generating OpcUA nodes from list

Scheduled Pinned Locked Moved Unsolved General and Desktop
opcuaplcqml
1 Posts 1 Posters 317 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adaptine
    wrote on 3 Apr 2019, 13:42 last edited by
    #1

    Hello
    I'm working on a "small" project here where I'm going to use Qtopcua against a PLC. What I want to do is to create some reusable QML components with QML which can be connected to the PLC-variables in the graphical designer.

    I've tried the opcua examples (https://doc-snapshots.qt.io/qtopcua/qtopcua-waterpump-waterpump-qmlcpp-example.html) and got that working with my own variable, but I don't want to manually a node, signal handler connections, data subscriptions getters, notifyers etc for ever variable I want to read like they're doing in the example.

    How can I sort of automate the things I mentioned above? Specifying the node identifiers (available variables from the PLC) and its data types will be done manually. Like if I specify a node identifier as "ns=4;s=PLC.PLC_PRG.rValue" and a corresponding variable name as "tankValue", I'll be able to access that value from the OPC server in QML as for instance "uaBackend.tankValue".

    In Qts watertank example they've declared a Q_PROPERTY for every variable, but I dont want to do that nor declare everything else manually since I want this to be as simple as possible.

    1 Reply Last reply
    0

    1/1

    3 Apr 2019, 13:42

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved